.
[platform/upstream/coreutils.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for GNU coreutils 4.5.5.
4 #
5 # Report bugs to <bug-coreutils@gnu.org>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
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 -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47     eval $as_var=C; export $as_var
48   else
49     $as_unset $as_var
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   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245 # Name of the host.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
250 exec 6>&1
251
252 #
253 # Initializations.
254 #
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
262
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete.  It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
267
268 # Identity of this package.
269 PACKAGE_NAME='GNU coreutils'
270 PACKAGE_TARNAME='coreutils'
271 PACKAGE_VERSION='4.5.5'
272 PACKAGE_STRING='GNU coreutils 4.5.5'
273 PACKAGE_BUGREPORT='bug-coreutils@gnu.org'
274
275 ac_unique_file="src/ls.c"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_config_libobj_dir=lib
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE PERL CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB GNU_PACKAGE HELP2MAN OPTIONAL_BIN_PROGS OPTIONAL_BIN_ZCRIPTS MAN DF_PROG U ANSI2KNR LIBOBJS ALLOCA YACC LIB_NANOSLEEP NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS LIB_CLOCK_GETTIME POW_LIB SEQ_LIBM GLIBC21 LIBICONV LTLIBICONV SQRT_LIBM FESETROUND_LIBM LIB_CRYPT MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE USE_NLS INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS'
315 ac_subst_files=''
316
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
336
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
354
355 ac_prev=
356 for ac_option
357 do
358   # If the previous option needs an argument, assign it.
359   if test -n "$ac_prev"; then
360     eval "$ac_prev=\$ac_option"
361     ac_prev=
362     continue
363   fi
364
365   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367   # Accept the important Cygnus configure options, so we can diagnose typos.
368
369   case $ac_option in
370
371   -bindir | --bindir | --bindi | --bind | --bin | --bi)
372     ac_prev=bindir ;;
373   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374     bindir=$ac_optarg ;;
375
376   -build | --build | --buil | --bui | --bu)
377     ac_prev=build_alias ;;
378   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379     build_alias=$ac_optarg ;;
380
381   -cache-file | --cache-file | --cache-fil | --cache-fi \
382   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383     ac_prev=cache_file ;;
384   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386     cache_file=$ac_optarg ;;
387
388   --config-cache | -C)
389     cache_file=config.cache ;;
390
391   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392     ac_prev=datadir ;;
393   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394   | --da=*)
395     datadir=$ac_optarg ;;
396
397   -disable-* | --disable-*)
398     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399     # Reject names that are not valid shell variable names.
400     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402    { (exit 1); exit 1; }; }
403     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404     eval "enable_$ac_feature=no" ;;
405
406   -enable-* | --enable-*)
407     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408     # Reject names that are not valid shell variable names.
409     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411    { (exit 1); exit 1; }; }
412     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413     case $ac_option in
414       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415       *) ac_optarg=yes ;;
416     esac
417     eval "enable_$ac_feature='$ac_optarg'" ;;
418
419   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421   | --exec | --exe | --ex)
422     ac_prev=exec_prefix ;;
423   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425   | --exec=* | --exe=* | --ex=*)
426     exec_prefix=$ac_optarg ;;
427
428   -gas | --gas | --ga | --g)
429     # Obsolete; use --with-gas.
430     with_gas=yes ;;
431
432   -help | --help | --hel | --he | -h)
433     ac_init_help=long ;;
434   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435     ac_init_help=recursive ;;
436   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437     ac_init_help=short ;;
438
439   -host | --host | --hos | --ho)
440     ac_prev=host_alias ;;
441   -host=* | --host=* | --hos=* | --ho=*)
442     host_alias=$ac_optarg ;;
443
444   -includedir | --includedir | --includedi | --included | --include \
445   | --includ | --inclu | --incl | --inc)
446     ac_prev=includedir ;;
447   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448   | --includ=* | --inclu=* | --incl=* | --inc=*)
449     includedir=$ac_optarg ;;
450
451   -infodir | --infodir | --infodi | --infod | --info | --inf)
452     ac_prev=infodir ;;
453   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454     infodir=$ac_optarg ;;
455
456   -libdir | --libdir | --libdi | --libd)
457     ac_prev=libdir ;;
458   -libdir=* | --libdir=* | --libdi=* | --libd=*)
459     libdir=$ac_optarg ;;
460
461   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462   | --libexe | --libex | --libe)
463     ac_prev=libexecdir ;;
464   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465   | --libexe=* | --libex=* | --libe=*)
466     libexecdir=$ac_optarg ;;
467
468   -localstatedir | --localstatedir | --localstatedi | --localstated \
469   | --localstate | --localstat | --localsta | --localst \
470   | --locals | --local | --loca | --loc | --lo)
471     ac_prev=localstatedir ;;
472   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475     localstatedir=$ac_optarg ;;
476
477   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478     ac_prev=mandir ;;
479   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480     mandir=$ac_optarg ;;
481
482   -nfp | --nfp | --nf)
483     # Obsolete; use --without-fp.
484     with_fp=no ;;
485
486   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487   | --no-cr | --no-c | -n)
488     no_create=yes ;;
489
490   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492     no_recursion=yes ;;
493
494   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496   | --oldin | --oldi | --old | --ol | --o)
497     ac_prev=oldincludedir ;;
498   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501     oldincludedir=$ac_optarg ;;
502
503   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504     ac_prev=prefix ;;
505   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506     prefix=$ac_optarg ;;
507
508   -program-prefix | --program-prefix | --program-prefi | --program-pref \
509   | --program-pre | --program-pr | --program-p)
510     ac_prev=program_prefix ;;
511   -program-prefix=* | --program-prefix=* | --program-prefi=* \
512   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513     program_prefix=$ac_optarg ;;
514
515   -program-suffix | --program-suffix | --program-suffi | --program-suff \
516   | --program-suf | --program-su | --program-s)
517     ac_prev=program_suffix ;;
518   -program-suffix=* | --program-suffix=* | --program-suffi=* \
519   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520     program_suffix=$ac_optarg ;;
521
522   -program-transform-name | --program-transform-name \
523   | --program-transform-nam | --program-transform-na \
524   | --program-transform-n | --program-transform- \
525   | --program-transform | --program-transfor \
526   | --program-transfo | --program-transf \
527   | --program-trans | --program-tran \
528   | --progr-tra | --program-tr | --program-t)
529     ac_prev=program_transform_name ;;
530   -program-transform-name=* | --program-transform-name=* \
531   | --program-transform-nam=* | --program-transform-na=* \
532   | --program-transform-n=* | --program-transform-=* \
533   | --program-transform=* | --program-transfor=* \
534   | --program-transfo=* | --program-transf=* \
535   | --program-trans=* | --program-tran=* \
536   | --progr-tra=* | --program-tr=* | --program-t=*)
537     program_transform_name=$ac_optarg ;;
538
539   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540   | -silent | --silent | --silen | --sile | --sil)
541     silent=yes ;;
542
543   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544     ac_prev=sbindir ;;
545   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546   | --sbi=* | --sb=*)
547     sbindir=$ac_optarg ;;
548
549   -sharedstatedir | --sharedstatedir | --sharedstatedi \
550   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551   | --sharedst | --shareds | --shared | --share | --shar \
552   | --sha | --sh)
553     ac_prev=sharedstatedir ;;
554   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557   | --sha=* | --sh=*)
558     sharedstatedir=$ac_optarg ;;
559
560   -site | --site | --sit)
561     ac_prev=site ;;
562   -site=* | --site=* | --sit=*)
563     site=$ac_optarg ;;
564
565   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566     ac_prev=srcdir ;;
567   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568     srcdir=$ac_optarg ;;
569
570   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571   | --syscon | --sysco | --sysc | --sys | --sy)
572     ac_prev=sysconfdir ;;
573   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575     sysconfdir=$ac_optarg ;;
576
577   -target | --target | --targe | --targ | --tar | --ta | --t)
578     ac_prev=target_alias ;;
579   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580     target_alias=$ac_optarg ;;
581
582   -v | -verbose | --verbose | --verbos | --verbo | --verb)
583     verbose=yes ;;
584
585   -version | --version | --versio | --versi | --vers | -V)
586     ac_init_version=: ;;
587
588   -with-* | --with-*)
589     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590     # Reject names that are not valid shell variable names.
591     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592       { echo "$as_me: error: invalid package name: $ac_package" >&2
593    { (exit 1); exit 1; }; }
594     ac_package=`echo $ac_package| sed 's/-/_/g'`
595     case $ac_option in
596       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597       *) ac_optarg=yes ;;
598     esac
599     eval "with_$ac_package='$ac_optarg'" ;;
600
601   -without-* | --without-*)
602     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603     # Reject names that are not valid shell variable names.
604     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605       { echo "$as_me: error: invalid package name: $ac_package" >&2
606    { (exit 1); exit 1; }; }
607     ac_package=`echo $ac_package | sed 's/-/_/g'`
608     eval "with_$ac_package=no" ;;
609
610   --x)
611     # Obsolete; use --with-x.
612     with_x=yes ;;
613
614   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615   | --x-incl | --x-inc | --x-in | --x-i)
616     ac_prev=x_includes ;;
617   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619     x_includes=$ac_optarg ;;
620
621   -x-libraries | --x-libraries | --x-librarie | --x-librari \
622   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623     ac_prev=x_libraries ;;
624   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626     x_libraries=$ac_optarg ;;
627
628   -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630    { (exit 1); exit 1; }; }
631     ;;
632
633   *=*)
634     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635     # Reject names that are not valid shell variable names.
636     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638    { (exit 1); exit 1; }; }
639     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640     eval "$ac_envvar='$ac_optarg'"
641     export $ac_envvar ;;
642
643   *)
644     # FIXME: should be removed in autoconf 3.0.
645     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649     ;;
650
651   esac
652 done
653
654 if test -n "$ac_prev"; then
655   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656   { echo "$as_me: error: missing argument to $ac_option" >&2
657    { (exit 1); exit 1; }; }
658 fi
659
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
662 do
663   eval ac_val=$`echo $ac_var`
664   case $ac_val in
665     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667    { (exit 1); exit 1; }; };;
668   esac
669 done
670
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673               localstatedir libdir includedir oldincludedir infodir mandir
674 do
675   eval ac_val=$`echo $ac_var`
676   case $ac_val in
677     [\\/$]* | ?:[\\/]* ) ;;
678     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679    { (exit 1); exit 1; }; };;
680   esac
681 done
682
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
689
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692   if test "x$build_alias" = x; then
693     cross_compiling=maybe
694     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695     If a cross compiler is detected then cross compile mode will be used." >&2
696   elif test "x$build_alias" != "x$host_alias"; then
697     cross_compiling=yes
698   fi
699 fi
700
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704 test "$silent" = yes && exec 6>/dev/null
705
706
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709   ac_srcdir_defaulted=yes
710   # Try the directory containing this script, then its parent.
711   ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713          X"$0" : 'X\(//\)[^/]' \| \
714          X"$0" : 'X\(//\)$' \| \
715          X"$0" : 'X\(/\)' \| \
716          .     : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720           /^X\(\/\/\)$/{ s//\1/; q; }
721           /^X\(\/\).*/{ s//\1/; q; }
722           s/.*/./; q'`
723   srcdir=$ac_confdir
724   if test ! -r $srcdir/$ac_unique_file; then
725     srcdir=..
726   fi
727 else
728   ac_srcdir_defaulted=no
729 fi
730 if test ! -r $srcdir/$ac_unique_file; then
731   if test "$ac_srcdir_defaulted" = yes; then
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733    { (exit 1); exit 1; }; }
734   else
735     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736    { (exit 1); exit 1; }; }
737   fi
738 fi
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741    { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
775
776 #
777 # Report the --help message.
778 #
779 if test "$ac_init_help" = "long"; then
780   # Omit some internal or obsolete options to make the list less imposing.
781   # This message is too long to be a string in the A/UX 3.1 sh.
782   cat <<_ACEOF
783 \`configure' configures GNU coreutils 4.5.5 to adapt to many kinds of systems.
784
785 Usage: $0 [OPTION]... [VAR=VALUE]...
786
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE.  See below for descriptions of some of the useful variables.
789
790 Defaults for the options are specified in brackets.
791
792 Configuration:
793   -h, --help              display this help and exit
794       --help=short        display options specific to this package
795       --help=recursive    display the short help of all the included packages
796   -V, --version           display version information and exit
797   -q, --quiet, --silent   do not print \`checking...' messages
798       --cache-file=FILE   cache test results in FILE [disabled]
799   -C, --config-cache      alias for \`--cache-file=config.cache'
800   -n, --no-create         do not create output files
801       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
802
803 _ACEOF
804
805   cat <<_ACEOF
806 Installation directories:
807   --prefix=PREFIX         install architecture-independent files in PREFIX
808                           [$ac_default_prefix]
809   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
810                           [PREFIX]
811
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
816
817 For better control, use the options below.
818
819 Fine tuning of the installation directories:
820   --bindir=DIR           user executables [EPREFIX/bin]
821   --sbindir=DIR          system admin executables [EPREFIX/sbin]
822   --libexecdir=DIR       program executables [EPREFIX/libexec]
823   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
824   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
825   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
826   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
827   --libdir=DIR           object code libraries [EPREFIX/lib]
828   --includedir=DIR       C header files [PREFIX/include]
829   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
830   --infodir=DIR          info documentation [PREFIX/info]
831   --mandir=DIR           man documentation [PREFIX/man]
832 _ACEOF
833
834   cat <<\_ACEOF
835
836 Program names:
837   --program-prefix=PREFIX            prepend PREFIX to installed program names
838   --program-suffix=SUFFIX            append SUFFIX to installed program names
839   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
840
841 System types:
842   --build=BUILD     configure for building on BUILD [guessed]
843   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
844 _ACEOF
845 fi
846
847 if test -n "$ac_init_help"; then
848   case $ac_init_help in
849      short | recursive ) echo "Configuration of GNU coreutils 4.5.5:";;
850    esac
851   cat <<\_ACEOF
852
853 Optional Features:
854   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
855   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
856   --disable-dependency-tracking Speeds up one-time builds
857   --enable-dependency-tracking  Do not reject slow dependency extractors
858   --disable-largefile     omit support for large files
859   --disable-assert        turn off assertions
860   --disable-rpath         do not hardcode runtime library paths
861   --disable-nls           do not use Native Language Support
862
863 Optional Packages:
864   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
865   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
866   --without-included-regex don't compile regex; this is the default on
867                           systems with version 2 of the GNU C library
868                           (use with caution on other system)
869   --with-gnu-ld           assume the C compiler uses GNU ld default=no
870   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
871   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
872   --with-libintl-prefix=DIR  search for libintl in DIR/include and DIR/lib
873   --without-libintl-prefix     don't search for libintl in includedir and libdir
874
875 Some influential environment variables:
876   CC          C compiler command
877   CFLAGS      C compiler flags
878   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
879               nonstandard directory <lib dir>
880   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
881               headers in a nonstandard directory <include dir>
882   CPP         C preprocessor
883
884 Use these variables to override the choices made by `configure' or to help
885 it to find libraries and programs with nonstandard names/locations.
886
887 Report bugs to <bug-coreutils@gnu.org>.
888 _ACEOF
889 fi
890
891 if test "$ac_init_help" = "recursive"; then
892   # If there are subdirs, report their specific --help.
893   ac_popdir=`pwd`
894   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895     test -d $ac_dir || continue
896     ac_builddir=.
897
898 if test "$ac_dir" != .; then
899   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900   # A "../" for each directory in $ac_dir_suffix.
901   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902 else
903   ac_dir_suffix= ac_top_builddir=
904 fi
905
906 case $srcdir in
907   .)  # No --srcdir option.  We are building in place.
908     ac_srcdir=.
909     if test -z "$ac_top_builddir"; then
910        ac_top_srcdir=.
911     else
912        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913     fi ;;
914   [\\/]* | ?:[\\/]* )  # Absolute path.
915     ac_srcdir=$srcdir$ac_dir_suffix;
916     ac_top_srcdir=$srcdir ;;
917   *) # Relative path.
918     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919     ac_top_srcdir=$ac_top_builddir$srcdir ;;
920 esac
921 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
922 # absolute.
923 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
924 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
925 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
926 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
927
928     cd $ac_dir
929     # Check for guested configure; otherwise get Cygnus style configure.
930     if test -f $ac_srcdir/configure.gnu; then
931       echo
932       $SHELL $ac_srcdir/configure.gnu  --help=recursive
933     elif test -f $ac_srcdir/configure; then
934       echo
935       $SHELL $ac_srcdir/configure  --help=recursive
936     elif test -f $ac_srcdir/configure.ac ||
937            test -f $ac_srcdir/configure.in; then
938       echo
939       $ac_configure --help
940     else
941       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
942     fi
943     cd $ac_popdir
944   done
945 fi
946
947 test -n "$ac_init_help" && exit 0
948 if $ac_init_version; then
949   cat <<\_ACEOF
950 GNU coreutils configure 4.5.5
951 generated by GNU Autoconf 2.57
952
953 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
954 Free Software Foundation, Inc.
955 This configure script is free software; the Free Software Foundation
956 gives unlimited permission to copy, distribute and modify it.
957 _ACEOF
958   exit 0
959 fi
960 exec 5>config.log
961 cat >&5 <<_ACEOF
962 This file contains any messages produced by compilers while
963 running configure, to aid debugging if configure makes a mistake.
964
965 It was created by GNU coreutils $as_me 4.5.5, which was
966 generated by GNU Autoconf 2.57.  Invocation command line was
967
968   $ $0 $@
969
970 _ACEOF
971 {
972 cat <<_ASUNAME
973 ## --------- ##
974 ## Platform. ##
975 ## --------- ##
976
977 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
978 uname -m = `(uname -m) 2>/dev/null || echo unknown`
979 uname -r = `(uname -r) 2>/dev/null || echo unknown`
980 uname -s = `(uname -s) 2>/dev/null || echo unknown`
981 uname -v = `(uname -v) 2>/dev/null || echo unknown`
982
983 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
984 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
985
986 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
987 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
988 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
989 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
990 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
991 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
992 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
993
994 _ASUNAME
995
996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
997 for as_dir in $PATH
998 do
999   IFS=$as_save_IFS
1000   test -z "$as_dir" && as_dir=.
1001   echo "PATH: $as_dir"
1002 done
1003
1004 } >&5
1005
1006 cat >&5 <<_ACEOF
1007
1008
1009 ## ----------- ##
1010 ## Core tests. ##
1011 ## ----------- ##
1012
1013 _ACEOF
1014
1015
1016 # Keep a trace of the command line.
1017 # Strip out --no-create and --no-recursion so they do not pile up.
1018 # Strip out --silent because we don't want to record it for future runs.
1019 # Also quote any args containing shell meta-characters.
1020 # Make two passes to allow for proper duplicate-argument suppression.
1021 ac_configure_args=
1022 ac_configure_args0=
1023 ac_configure_args1=
1024 ac_sep=
1025 ac_must_keep_next=false
1026 for ac_pass in 1 2
1027 do
1028   for ac_arg
1029   do
1030     case $ac_arg in
1031     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1032     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033     | -silent | --silent | --silen | --sile | --sil)
1034       continue ;;
1035     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1036       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037     esac
1038     case $ac_pass in
1039     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1040     2)
1041       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1042       if test $ac_must_keep_next = true; then
1043         ac_must_keep_next=false # Got value, back to normal.
1044       else
1045         case $ac_arg in
1046           *=* | --config-cache | -C | -disable-* | --disable-* \
1047           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1048           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1049           | -with-* | --with-* | -without-* | --without-* | --x)
1050             case "$ac_configure_args0 " in
1051               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1052             esac
1053             ;;
1054           -* ) ac_must_keep_next=true ;;
1055         esac
1056       fi
1057       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1058       # Get rid of the leading space.
1059       ac_sep=" "
1060       ;;
1061     esac
1062   done
1063 done
1064 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1065 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1066
1067 # When interrupted or exit'd, cleanup temporary files, and complete
1068 # config.log.  We remove comments because anyway the quotes in there
1069 # would cause problems or look ugly.
1070 # WARNING: Be sure not to use single quotes in there, as some shells,
1071 # such as our DU 5.0 friend, will then `close' the trap.
1072 trap 'exit_status=$?
1073   # Save into config.log some information that might help in debugging.
1074   {
1075     echo
1076
1077     cat <<\_ASBOX
1078 ## ---------------- ##
1079 ## Cache variables. ##
1080 ## ---------------- ##
1081 _ASBOX
1082     echo
1083     # The following way of writing the cache mishandles newlines in values,
1084 {
1085   (set) 2>&1 |
1086     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1087     *ac_space=\ *)
1088       sed -n \
1089         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1090           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1091       ;;
1092     *)
1093       sed -n \
1094         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1095       ;;
1096     esac;
1097 }
1098     echo
1099
1100     cat <<\_ASBOX
1101 ## ----------------- ##
1102 ## Output variables. ##
1103 ## ----------------- ##
1104 _ASBOX
1105     echo
1106     for ac_var in $ac_subst_vars
1107     do
1108       eval ac_val=$`echo $ac_var`
1109       echo "$ac_var='"'"'$ac_val'"'"'"
1110     done | sort
1111     echo
1112
1113     if test -n "$ac_subst_files"; then
1114       cat <<\_ASBOX
1115 ## ------------- ##
1116 ## Output files. ##
1117 ## ------------- ##
1118 _ASBOX
1119       echo
1120       for ac_var in $ac_subst_files
1121       do
1122         eval ac_val=$`echo $ac_var`
1123         echo "$ac_var='"'"'$ac_val'"'"'"
1124       done | sort
1125       echo
1126     fi
1127
1128     if test -s confdefs.h; then
1129       cat <<\_ASBOX
1130 ## ----------- ##
1131 ## confdefs.h. ##
1132 ## ----------- ##
1133 _ASBOX
1134       echo
1135       sed "/^$/d" confdefs.h | sort
1136       echo
1137     fi
1138     test "$ac_signal" != 0 &&
1139       echo "$as_me: caught signal $ac_signal"
1140     echo "$as_me: exit $exit_status"
1141   } >&5
1142   rm -f core core.* *.core &&
1143   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1144     exit $exit_status
1145      ' 0
1146 for ac_signal in 1 2 13 15; do
1147   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1148 done
1149 ac_signal=0
1150
1151 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1152 rm -rf conftest* confdefs.h
1153 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1154 echo >confdefs.h
1155
1156 # Predefined preprocessor variables.
1157
1158 cat >>confdefs.h <<_ACEOF
1159 #define PACKAGE_NAME "$PACKAGE_NAME"
1160 _ACEOF
1161
1162
1163 cat >>confdefs.h <<_ACEOF
1164 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1165 _ACEOF
1166
1167
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1170 _ACEOF
1171
1172
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_STRING "$PACKAGE_STRING"
1175 _ACEOF
1176
1177
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1180 _ACEOF
1181
1182
1183 # Let the site file select an alternate cache file if it wants to.
1184 # Prefer explicitly selected file to automatically selected ones.
1185 if test -z "$CONFIG_SITE"; then
1186   if test "x$prefix" != xNONE; then
1187     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1188   else
1189     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1190   fi
1191 fi
1192 for ac_site_file in $CONFIG_SITE; do
1193   if test -r "$ac_site_file"; then
1194     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1195 echo "$as_me: loading site script $ac_site_file" >&6;}
1196     sed 's/^/| /' "$ac_site_file" >&5
1197     . "$ac_site_file"
1198   fi
1199 done
1200
1201 if test -r "$cache_file"; then
1202   # Some versions of bash will fail to source /dev/null (special
1203   # files actually), so we avoid doing that.
1204   if test -f "$cache_file"; then
1205     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1206 echo "$as_me: loading cache $cache_file" >&6;}
1207     case $cache_file in
1208       [\\/]* | ?:[\\/]* ) . $cache_file;;
1209       *)                      . ./$cache_file;;
1210     esac
1211   fi
1212 else
1213   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1214 echo "$as_me: creating cache $cache_file" >&6;}
1215   >$cache_file
1216 fi
1217
1218 # Check that the precious variables saved in the cache have kept the same
1219 # value.
1220 ac_cache_corrupted=false
1221 for ac_var in `(set) 2>&1 |
1222                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1223   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1224   eval ac_new_set=\$ac_env_${ac_var}_set
1225   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1226   eval ac_new_val="\$ac_env_${ac_var}_value"
1227   case $ac_old_set,$ac_new_set in
1228     set,)
1229       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1230 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1231       ac_cache_corrupted=: ;;
1232     ,set)
1233       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1234 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1235       ac_cache_corrupted=: ;;
1236     ,);;
1237     *)
1238       if test "x$ac_old_val" != "x$ac_new_val"; then
1239         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1240 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1241         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1242 echo "$as_me:   former value:  $ac_old_val" >&2;}
1243         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1244 echo "$as_me:   current value: $ac_new_val" >&2;}
1245         ac_cache_corrupted=:
1246       fi;;
1247   esac
1248   # Pass precious variables to config.status.
1249   if test "$ac_new_set" = set; then
1250     case $ac_new_val in
1251     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1253     *) ac_arg=$ac_var=$ac_new_val ;;
1254     esac
1255     case " $ac_configure_args " in
1256       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1257       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1258     esac
1259   fi
1260 done
1261 if $ac_cache_corrupted; then
1262   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1263 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1264   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1265 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1266    { (exit 1); exit 1; }; }
1267 fi
1268
1269 ac_ext=c
1270 ac_cpp='$CPP $CPPFLAGS'
1271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303 ac_aux_dir=
1304 for ac_dir in config $srcdir/config; do
1305   if test -f $ac_dir/install-sh; then
1306     ac_aux_dir=$ac_dir
1307     ac_install_sh="$ac_aux_dir/install-sh -c"
1308     break
1309   elif test -f $ac_dir/install.sh; then
1310     ac_aux_dir=$ac_dir
1311     ac_install_sh="$ac_aux_dir/install.sh -c"
1312     break
1313   elif test -f $ac_dir/shtool; then
1314     ac_aux_dir=$ac_dir
1315     ac_install_sh="$ac_aux_dir/shtool install -c"
1316     break
1317   fi
1318 done
1319 if test -z "$ac_aux_dir"; then
1320   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1321 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1322    { (exit 1); exit 1; }; }
1323 fi
1324 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1325 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1326 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1327
1328           ac_config_headers="$ac_config_headers config.h:config.hin"
1329
1330 # Make sure we can run config.sub.
1331 $ac_config_sub sun4 >/dev/null 2>&1 ||
1332   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1333 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1334    { (exit 1); exit 1; }; }
1335
1336 echo "$as_me:$LINENO: checking build system type" >&5
1337 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1338 if test "${ac_cv_build+set}" = set; then
1339   echo $ECHO_N "(cached) $ECHO_C" >&6
1340 else
1341   ac_cv_build_alias=$build_alias
1342 test -z "$ac_cv_build_alias" &&
1343   ac_cv_build_alias=`$ac_config_guess`
1344 test -z "$ac_cv_build_alias" &&
1345   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1346 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1347    { (exit 1); exit 1; }; }
1348 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1349   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1350 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1351    { (exit 1); exit 1; }; }
1352
1353 fi
1354 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1355 echo "${ECHO_T}$ac_cv_build" >&6
1356 build=$ac_cv_build
1357 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1358 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1359 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1360
1361
1362 echo "$as_me:$LINENO: checking host system type" >&5
1363 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1364 if test "${ac_cv_host+set}" = set; then
1365   echo $ECHO_N "(cached) $ECHO_C" >&6
1366 else
1367   ac_cv_host_alias=$host_alias
1368 test -z "$ac_cv_host_alias" &&
1369   ac_cv_host_alias=$ac_cv_build_alias
1370 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1371   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1372 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1373    { (exit 1); exit 1; }; }
1374
1375 fi
1376 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1377 echo "${ECHO_T}$ac_cv_host" >&6
1378 host=$ac_cv_host
1379 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1382
1383
1384
1385 am__api_version="1.7"
1386 # Find a good install program.  We prefer a C program (faster),
1387 # so one script is as good as another.  But avoid the broken or
1388 # incompatible versions:
1389 # SysV /etc/install, /usr/sbin/install
1390 # SunOS /usr/etc/install
1391 # IRIX /sbin/install
1392 # AIX /bin/install
1393 # AmigaOS /C/install, which installs bootblocks on floppy discs
1394 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1395 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1396 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1397 # ./install, which can be erroneously created by make from ./install.sh.
1398 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1399 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1400 if test -z "$INSTALL"; then
1401 if test "${ac_cv_path_install+set}" = set; then
1402   echo $ECHO_N "(cached) $ECHO_C" >&6
1403 else
1404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1405 for as_dir in $PATH
1406 do
1407   IFS=$as_save_IFS
1408   test -z "$as_dir" && as_dir=.
1409   # Account for people who put trailing slashes in PATH elements.
1410 case $as_dir/ in
1411   ./ | .// | /cC/* | \
1412   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1413   /usr/ucb/* ) ;;
1414   *)
1415     # OSF1 and SCO ODT 3.0 have their own names for install.
1416     # Don't use installbsd from OSF since it installs stuff as root
1417     # by default.
1418     for ac_prog in ginstall scoinst install; do
1419       for ac_exec_ext in '' $ac_executable_extensions; do
1420         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1421           if test $ac_prog = install &&
1422             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1423             # AIX install.  It has an incompatible calling convention.
1424             :
1425           elif test $ac_prog = install &&
1426             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1427             # program-specific install script used by HP pwplus--don't use.
1428             :
1429           else
1430             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1431             break 3
1432           fi
1433         fi
1434       done
1435     done
1436     ;;
1437 esac
1438 done
1439
1440
1441 fi
1442   if test "${ac_cv_path_install+set}" = set; then
1443     INSTALL=$ac_cv_path_install
1444   else
1445     # As a last resort, use the slow shell script.  We don't cache a
1446     # path for INSTALL within a source directory, because that will
1447     # break other packages using the cache if that directory is
1448     # removed, or if the path is relative.
1449     INSTALL=$ac_install_sh
1450   fi
1451 fi
1452 echo "$as_me:$LINENO: result: $INSTALL" >&5
1453 echo "${ECHO_T}$INSTALL" >&6
1454
1455 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1456 # It thinks the first close brace ends the variable substitution.
1457 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1458
1459 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1460
1461 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1462
1463 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1464 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1465 # Just in case
1466 sleep 1
1467 echo timestamp > conftest.file
1468 # Do `set' in a subshell so we don't clobber the current shell's
1469 # arguments.  Must try -L first in case configure is actually a
1470 # symlink; some systems play weird games with the mod time of symlinks
1471 # (eg FreeBSD returns the mod time of the symlink's containing
1472 # directory).
1473 if (
1474    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1475    if test "$*" = "X"; then
1476       # -L didn't work.
1477       set X `ls -t $srcdir/configure conftest.file`
1478    fi
1479    rm -f conftest.file
1480    if test "$*" != "X $srcdir/configure conftest.file" \
1481       && test "$*" != "X conftest.file $srcdir/configure"; then
1482
1483       # If neither matched, then we have a broken ls.  This can happen
1484       # if, for instance, CONFIG_SHELL is bash and it inherits a
1485       # broken ls alias from the environment.  This has actually
1486       # happened.  Such a system could not be considered "sane".
1487       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1488 alias in your environment" >&5
1489 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1490 alias in your environment" >&2;}
1491    { (exit 1); exit 1; }; }
1492    fi
1493
1494    test "$2" = conftest.file
1495    )
1496 then
1497    # Ok.
1498    :
1499 else
1500    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1501 Check your system clock" >&5
1502 echo "$as_me: error: newly created file is older than distributed files!
1503 Check your system clock" >&2;}
1504    { (exit 1); exit 1; }; }
1505 fi
1506 echo "$as_me:$LINENO: result: yes" >&5
1507 echo "${ECHO_T}yes" >&6
1508 test "$program_prefix" != NONE &&
1509   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1510 # Use a double $ so make ignores it.
1511 test "$program_suffix" != NONE &&
1512   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1513 # Double any \ or $.  echo might interpret backslashes.
1514 # By default was `s,x,x', remove it if useless.
1515 cat <<\_ACEOF >conftest.sed
1516 s/[\\$]/&&/g;s/;s,x,x,$//
1517 _ACEOF
1518 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1519 rm conftest.sed
1520
1521
1522 # expand $ac_aux_dir to an absolute path
1523 am_aux_dir=`cd $ac_aux_dir && pwd`
1524
1525 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1526 # Use eval to expand $SHELL
1527 if eval "$MISSING --run true"; then
1528   am_missing_run="$MISSING --run "
1529 else
1530   am_missing_run=
1531   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1532 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1533 fi
1534
1535 for ac_prog in gawk mawk nawk awk
1536 do
1537   # Extract the first word of "$ac_prog", so it can be a program name with args.
1538 set dummy $ac_prog; ac_word=$2
1539 echo "$as_me:$LINENO: checking for $ac_word" >&5
1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1541 if test "${ac_cv_prog_AWK+set}" = set; then
1542   echo $ECHO_N "(cached) $ECHO_C" >&6
1543 else
1544   if test -n "$AWK"; then
1545   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1546 else
1547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548 for as_dir in $PATH
1549 do
1550   IFS=$as_save_IFS
1551   test -z "$as_dir" && as_dir=.
1552   for ac_exec_ext in '' $ac_executable_extensions; do
1553   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1554     ac_cv_prog_AWK="$ac_prog"
1555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1556     break 2
1557   fi
1558 done
1559 done
1560
1561 fi
1562 fi
1563 AWK=$ac_cv_prog_AWK
1564 if test -n "$AWK"; then
1565   echo "$as_me:$LINENO: result: $AWK" >&5
1566 echo "${ECHO_T}$AWK" >&6
1567 else
1568   echo "$as_me:$LINENO: result: no" >&5
1569 echo "${ECHO_T}no" >&6
1570 fi
1571
1572   test -n "$AWK" && break
1573 done
1574
1575 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1576 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1577 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1578 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1579   echo $ECHO_N "(cached) $ECHO_C" >&6
1580 else
1581   cat >conftest.make <<\_ACEOF
1582 all:
1583         @echo 'ac_maketemp="$(MAKE)"'
1584 _ACEOF
1585 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1586 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1587 if test -n "$ac_maketemp"; then
1588   eval ac_cv_prog_make_${ac_make}_set=yes
1589 else
1590   eval ac_cv_prog_make_${ac_make}_set=no
1591 fi
1592 rm -f conftest.make
1593 fi
1594 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1595   echo "$as_me:$LINENO: result: yes" >&5
1596 echo "${ECHO_T}yes" >&6
1597   SET_MAKE=
1598 else
1599   echo "$as_me:$LINENO: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1601   SET_MAKE="MAKE=${MAKE-make}"
1602 fi
1603
1604  # test to see if srcdir already configured
1605 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1606    test -f $srcdir/config.status; then
1607   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1608 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1609    { (exit 1); exit 1; }; }
1610 fi
1611
1612 # test whether we have cygpath
1613 if test -z "$CYGPATH_W"; then
1614   if (cygpath --version) >/dev/null 2>/dev/null; then
1615     CYGPATH_W='cygpath -w'
1616   else
1617     CYGPATH_W=echo
1618   fi
1619 fi
1620
1621
1622 # Define the identity of the package.
1623  PACKAGE=coreutils
1624  VERSION=4.5.5
1625
1626
1627 cat >>confdefs.h <<_ACEOF
1628 #define PACKAGE "$PACKAGE"
1629 _ACEOF
1630
1631
1632 cat >>confdefs.h <<_ACEOF
1633 #define VERSION "$VERSION"
1634 _ACEOF
1635
1636 # Some tools Automake needs.
1637
1638 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1639
1640
1641 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1642
1643
1644 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1645
1646
1647 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1648
1649
1650 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1651
1652
1653 AMTAR=${AMTAR-"${am_missing_run}tar"}
1654
1655 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1656
1657 # Installed binaries are usually stripped using `strip' when the user
1658 # run `make install-strip'.  However `strip' might not be the right
1659 # tool to use in cross-compilation environments, therefore Automake
1660 # will honor the `STRIP' environment variable to overrule this program.
1661 if test "$cross_compiling" != no; then
1662   if test -n "$ac_tool_prefix"; then
1663   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1664 set dummy ${ac_tool_prefix}strip; ac_word=$2
1665 echo "$as_me:$LINENO: checking for $ac_word" >&5
1666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1667 if test "${ac_cv_prog_STRIP+set}" = set; then
1668   echo $ECHO_N "(cached) $ECHO_C" >&6
1669 else
1670   if test -n "$STRIP"; then
1671   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1672 else
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 for as_dir in $PATH
1675 do
1676   IFS=$as_save_IFS
1677   test -z "$as_dir" && as_dir=.
1678   for ac_exec_ext in '' $ac_executable_extensions; do
1679   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1680     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682     break 2
1683   fi
1684 done
1685 done
1686
1687 fi
1688 fi
1689 STRIP=$ac_cv_prog_STRIP
1690 if test -n "$STRIP"; then
1691   echo "$as_me:$LINENO: result: $STRIP" >&5
1692 echo "${ECHO_T}$STRIP" >&6
1693 else
1694   echo "$as_me:$LINENO: result: no" >&5
1695 echo "${ECHO_T}no" >&6
1696 fi
1697
1698 fi
1699 if test -z "$ac_cv_prog_STRIP"; then
1700   ac_ct_STRIP=$STRIP
1701   # Extract the first word of "strip", so it can be a program name with args.
1702 set dummy strip; ac_word=$2
1703 echo "$as_me:$LINENO: checking for $ac_word" >&5
1704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1706   echo $ECHO_N "(cached) $ECHO_C" >&6
1707 else
1708   if test -n "$ac_ct_STRIP"; then
1709   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1710 else
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1713 do
1714   IFS=$as_save_IFS
1715   test -z "$as_dir" && as_dir=.
1716   for ac_exec_ext in '' $ac_executable_extensions; do
1717   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718     ac_cv_prog_ac_ct_STRIP="strip"
1719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720     break 2
1721   fi
1722 done
1723 done
1724
1725   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1726 fi
1727 fi
1728 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1729 if test -n "$ac_ct_STRIP"; then
1730   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1731 echo "${ECHO_T}$ac_ct_STRIP" >&6
1732 else
1733   echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1735 fi
1736
1737   STRIP=$ac_ct_STRIP
1738 else
1739   STRIP="$ac_cv_prog_STRIP"
1740 fi
1741
1742 fi
1743 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1744
1745 # We need awk for the "check" target.  The system "awk" is bad on
1746 # some platforms.
1747
1748
1749
1750
1751
1752 cat >>confdefs.h <<\_ACEOF
1753 #define _GNU_SOURCE 1
1754 _ACEOF
1755
1756
1757
1758       echo "$as_me:$LINENO: checking for perl5.003 or newer" >&5
1759 echo $ECHO_N "checking for perl5.003 or newer... $ECHO_C" >&6
1760   if test "${PERL+set}" = set; then
1761     # `PERL' is set in the user's environment.
1762     candidate_perl_names="$PERL"
1763     perl_specified=yes
1764   else
1765     candidate_perl_names='perl perl5'
1766     perl_specified=no
1767   fi
1768
1769   found=no
1770
1771   PERL="$missing_dir/missing perl"
1772   for perl in $candidate_perl_names; do
1773     # Run test in a subshell; some versions of sh will print an error if
1774     # an executable is not found, even if stderr is redirected.
1775     if ( $perl -e 'require 5.003; use File::Compare' ) > /dev/null 2>&1; then
1776       PERL=$perl
1777       found=yes
1778       break
1779     fi
1780   done
1781
1782   echo "$as_me:$LINENO: result: $found" >&5
1783 echo "${ECHO_T}$found" >&6
1784   test $found = no && { echo "$as_me:$LINENO: WARNING:
1785 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1786          a usable version of the Perl File::Compare module.  As a result,
1787          you may be unable to run a few tests or to regenerate certain
1788          files if you modify the sources from which they are derived.
1789  " >&5
1790 echo "$as_me: WARNING:
1791 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1792          a usable version of the Perl File::Compare module.  As a result,
1793          you may be unable to run a few tests or to regenerate certain
1794          files if you modify the sources from which they are derived.
1795  " >&2;}
1796
1797 ac_ext=c
1798 ac_cpp='$CPP $CPPFLAGS'
1799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1802 if test -n "$ac_tool_prefix"; then
1803   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1804 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1805 echo "$as_me:$LINENO: checking for $ac_word" >&5
1806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1807 if test "${ac_cv_prog_CC+set}" = set; then
1808   echo $ECHO_N "(cached) $ECHO_C" >&6
1809 else
1810   if test -n "$CC"; then
1811   ac_cv_prog_CC="$CC" # Let the user override the test.
1812 else
1813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1814 for as_dir in $PATH
1815 do
1816   IFS=$as_save_IFS
1817   test -z "$as_dir" && as_dir=.
1818   for ac_exec_ext in '' $ac_executable_extensions; do
1819   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1820     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1822     break 2
1823   fi
1824 done
1825 done
1826
1827 fi
1828 fi
1829 CC=$ac_cv_prog_CC
1830 if test -n "$CC"; then
1831   echo "$as_me:$LINENO: result: $CC" >&5
1832 echo "${ECHO_T}$CC" >&6
1833 else
1834   echo "$as_me:$LINENO: result: no" >&5
1835 echo "${ECHO_T}no" >&6
1836 fi
1837
1838 fi
1839 if test -z "$ac_cv_prog_CC"; then
1840   ac_ct_CC=$CC
1841   # Extract the first word of "gcc", so it can be a program name with args.
1842 set dummy gcc; ac_word=$2
1843 echo "$as_me:$LINENO: checking for $ac_word" >&5
1844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1846   echo $ECHO_N "(cached) $ECHO_C" >&6
1847 else
1848   if test -n "$ac_ct_CC"; then
1849   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1850 else
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852 for as_dir in $PATH
1853 do
1854   IFS=$as_save_IFS
1855   test -z "$as_dir" && as_dir=.
1856   for ac_exec_ext in '' $ac_executable_extensions; do
1857   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858     ac_cv_prog_ac_ct_CC="gcc"
1859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860     break 2
1861   fi
1862 done
1863 done
1864
1865 fi
1866 fi
1867 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1868 if test -n "$ac_ct_CC"; then
1869   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1870 echo "${ECHO_T}$ac_ct_CC" >&6
1871 else
1872   echo "$as_me:$LINENO: result: no" >&5
1873 echo "${ECHO_T}no" >&6
1874 fi
1875
1876   CC=$ac_ct_CC
1877 else
1878   CC="$ac_cv_prog_CC"
1879 fi
1880
1881 if test -z "$CC"; then
1882   if test -n "$ac_tool_prefix"; then
1883   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1884 set dummy ${ac_tool_prefix}cc; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_CC+set}" = set; then
1888   echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890   if test -n "$CC"; then
1891   ac_cv_prog_CC="$CC" # Let the user override the test.
1892 else
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1895 do
1896   IFS=$as_save_IFS
1897   test -z "$as_dir" && as_dir=.
1898   for ac_exec_ext in '' $ac_executable_extensions; do
1899   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900     ac_cv_prog_CC="${ac_tool_prefix}cc"
1901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902     break 2
1903   fi
1904 done
1905 done
1906
1907 fi
1908 fi
1909 CC=$ac_cv_prog_CC
1910 if test -n "$CC"; then
1911   echo "$as_me:$LINENO: result: $CC" >&5
1912 echo "${ECHO_T}$CC" >&6
1913 else
1914   echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1916 fi
1917
1918 fi
1919 if test -z "$ac_cv_prog_CC"; then
1920   ac_ct_CC=$CC
1921   # Extract the first word of "cc", so it can be a program name with args.
1922 set dummy cc; ac_word=$2
1923 echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1926   echo $ECHO_N "(cached) $ECHO_C" >&6
1927 else
1928   if test -n "$ac_ct_CC"; then
1929   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1930 else
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 for as_dir in $PATH
1933 do
1934   IFS=$as_save_IFS
1935   test -z "$as_dir" && as_dir=.
1936   for ac_exec_ext in '' $ac_executable_extensions; do
1937   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938     ac_cv_prog_ac_ct_CC="cc"
1939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940     break 2
1941   fi
1942 done
1943 done
1944
1945 fi
1946 fi
1947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1948 if test -n "$ac_ct_CC"; then
1949   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1950 echo "${ECHO_T}$ac_ct_CC" >&6
1951 else
1952   echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6
1954 fi
1955
1956   CC=$ac_ct_CC
1957 else
1958   CC="$ac_cv_prog_CC"
1959 fi
1960
1961 fi
1962 if test -z "$CC"; then
1963   # Extract the first word of "cc", so it can be a program name with args.
1964 set dummy cc; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_CC+set}" = set; then
1968   echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970   if test -n "$CC"; then
1971   ac_cv_prog_CC="$CC" # Let the user override the test.
1972 else
1973   ac_prog_rejected=no
1974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 for as_dir in $PATH
1976 do
1977   IFS=$as_save_IFS
1978   test -z "$as_dir" && as_dir=.
1979   for ac_exec_ext in '' $ac_executable_extensions; do
1980   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1982        ac_prog_rejected=yes
1983        continue
1984      fi
1985     ac_cv_prog_CC="cc"
1986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987     break 2
1988   fi
1989 done
1990 done
1991
1992 if test $ac_prog_rejected = yes; then
1993   # We found a bogon in the path, so make sure we never use it.
1994   set dummy $ac_cv_prog_CC
1995   shift
1996   if test $# != 0; then
1997     # We chose a different compiler from the bogus one.
1998     # However, it has the same basename, so the bogon will be chosen
1999     # first if we set CC to just the basename; use the full file name.
2000     shift
2001     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2002   fi
2003 fi
2004 fi
2005 fi
2006 CC=$ac_cv_prog_CC
2007 if test -n "$CC"; then
2008   echo "$as_me:$LINENO: result: $CC" >&5
2009 echo "${ECHO_T}$CC" >&6
2010 else
2011   echo "$as_me:$LINENO: result: no" >&5
2012 echo "${ECHO_T}no" >&6
2013 fi
2014
2015 fi
2016 if test -z "$CC"; then
2017   if test -n "$ac_tool_prefix"; then
2018   for ac_prog in cl
2019   do
2020     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2022 echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_CC+set}" = set; then
2025   echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027   if test -n "$CC"; then
2028   ac_cv_prog_CC="$CC" # Let the user override the test.
2029 else
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 for as_dir in $PATH
2032 do
2033   IFS=$as_save_IFS
2034   test -z "$as_dir" && as_dir=.
2035   for ac_exec_ext in '' $ac_executable_extensions; do
2036   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039     break 2
2040   fi
2041 done
2042 done
2043
2044 fi
2045 fi
2046 CC=$ac_cv_prog_CC
2047 if test -n "$CC"; then
2048   echo "$as_me:$LINENO: result: $CC" >&5
2049 echo "${ECHO_T}$CC" >&6
2050 else
2051   echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2053 fi
2054
2055     test -n "$CC" && break
2056   done
2057 fi
2058 if test -z "$CC"; then
2059   ac_ct_CC=$CC
2060   for ac_prog in cl
2061 do
2062   # Extract the first word of "$ac_prog", so it can be a program name with args.
2063 set dummy $ac_prog; ac_word=$2
2064 echo "$as_me:$LINENO: checking for $ac_word" >&5
2065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2067   echo $ECHO_N "(cached) $ECHO_C" >&6
2068 else
2069   if test -n "$ac_ct_CC"; then
2070   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2071 else
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073 for as_dir in $PATH
2074 do
2075   IFS=$as_save_IFS
2076   test -z "$as_dir" && as_dir=.
2077   for ac_exec_ext in '' $ac_executable_extensions; do
2078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2079     ac_cv_prog_ac_ct_CC="$ac_prog"
2080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081     break 2
2082   fi
2083 done
2084 done
2085
2086 fi
2087 fi
2088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2089 if test -n "$ac_ct_CC"; then
2090   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2091 echo "${ECHO_T}$ac_ct_CC" >&6
2092 else
2093   echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6
2095 fi
2096
2097   test -n "$ac_ct_CC" && break
2098 done
2099
2100   CC=$ac_ct_CC
2101 fi
2102
2103 fi
2104
2105
2106 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2107 See \`config.log' for more details." >&5
2108 echo "$as_me: error: no acceptable C compiler found in \$PATH
2109 See \`config.log' for more details." >&2;}
2110    { (exit 1); exit 1; }; }
2111
2112 # Provide some information about the compiler.
2113 echo "$as_me:$LINENO:" \
2114      "checking for C compiler version" >&5
2115 ac_compiler=`set X $ac_compile; echo $2`
2116 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2117   (eval $ac_compiler --version </dev/null >&5) 2>&5
2118   ac_status=$?
2119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120   (exit $ac_status); }
2121 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2122   (eval $ac_compiler -v </dev/null >&5) 2>&5
2123   ac_status=$?
2124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125   (exit $ac_status); }
2126 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2127   (eval $ac_compiler -V </dev/null >&5) 2>&5
2128   ac_status=$?
2129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130   (exit $ac_status); }
2131
2132 cat >conftest.$ac_ext <<_ACEOF
2133 #line $LINENO "configure"
2134 /* confdefs.h.  */
2135 _ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h.  */
2139
2140 int
2141 main ()
2142 {
2143
2144   ;
2145   return 0;
2146 }
2147 _ACEOF
2148 ac_clean_files_save=$ac_clean_files
2149 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2150 # Try to create an executable without -o first, disregard a.out.
2151 # It will help us diagnose broken compilers, and finding out an intuition
2152 # of exeext.
2153 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2154 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2155 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2156 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2157   (eval $ac_link_default) 2>&5
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); }; then
2161   # Find the output, starting from the most likely.  This scheme is
2162 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2163 # resort.
2164
2165 # Be careful to initialize this variable, since it used to be cached.
2166 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2167 ac_cv_exeext=
2168 # b.out is created by i960 compilers.
2169 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2170 do
2171   test -f "$ac_file" || continue
2172   case $ac_file in
2173     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2174         ;;
2175     conftest.$ac_ext )
2176         # This is the source file.
2177         ;;
2178     [ab].out )
2179         # We found the default executable, but exeext='' is most
2180         # certainly right.
2181         break;;
2182     *.* )
2183         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2184         # FIXME: I believe we export ac_cv_exeext for Libtool,
2185         # but it would be cool to find out if it's true.  Does anybody
2186         # maintain Libtool? --akim.
2187         export ac_cv_exeext
2188         break;;
2189     * )
2190         break;;
2191   esac
2192 done
2193 else
2194   echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2196
2197 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: C compiler cannot create executables
2200 See \`config.log' for more details." >&2;}
2201    { (exit 77); exit 77; }; }
2202 fi
2203
2204 ac_exeext=$ac_cv_exeext
2205 echo "$as_me:$LINENO: result: $ac_file" >&5
2206 echo "${ECHO_T}$ac_file" >&6
2207
2208 # Check the compiler produces executables we can run.  If not, either
2209 # the compiler is broken, or we cross compile.
2210 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2211 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2212 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2213 # If not cross compiling, check that we can run a simple program.
2214 if test "$cross_compiling" != yes; then
2215   if { ac_try='./$ac_file'
2216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217   (eval $ac_try) 2>&5
2218   ac_status=$?
2219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220   (exit $ac_status); }; }; then
2221     cross_compiling=no
2222   else
2223     if test "$cross_compiling" = maybe; then
2224         cross_compiling=yes
2225     else
2226         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2227 If you meant to cross compile, use \`--host'.
2228 See \`config.log' for more details." >&5
2229 echo "$as_me: error: cannot run C compiled programs.
2230 If you meant to cross compile, use \`--host'.
2231 See \`config.log' for more details." >&2;}
2232    { (exit 1); exit 1; }; }
2233     fi
2234   fi
2235 fi
2236 echo "$as_me:$LINENO: result: yes" >&5
2237 echo "${ECHO_T}yes" >&6
2238
2239 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2240 ac_clean_files=$ac_clean_files_save
2241 # Check the compiler produces executables we can run.  If not, either
2242 # the compiler is broken, or we cross compile.
2243 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2244 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2245 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2246 echo "${ECHO_T}$cross_compiling" >&6
2247
2248 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2249 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2251   (eval $ac_link) 2>&5
2252   ac_status=$?
2253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254   (exit $ac_status); }; then
2255   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2256 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2257 # work properly (i.e., refer to `conftest.exe'), while it won't with
2258 # `rm'.
2259 for ac_file in conftest.exe conftest conftest.*; do
2260   test -f "$ac_file" || continue
2261   case $ac_file in
2262     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2263     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2264           export ac_cv_exeext
2265           break;;
2266     * ) break;;
2267   esac
2268 done
2269 else
2270   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&2;}
2274    { (exit 1); exit 1; }; }
2275 fi
2276
2277 rm -f conftest$ac_cv_exeext
2278 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279 echo "${ECHO_T}$ac_cv_exeext" >&6
2280
2281 rm -f conftest.$ac_ext
2282 EXEEXT=$ac_cv_exeext
2283 ac_exeext=$EXEEXT
2284 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2286 if test "${ac_cv_objext+set}" = set; then
2287   echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289   cat >conftest.$ac_ext <<_ACEOF
2290 #line $LINENO "configure"
2291 /* confdefs.h.  */
2292 _ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h.  */
2296
2297 int
2298 main ()
2299 {
2300
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 rm -f conftest.o conftest.obj
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307   (eval $ac_compile) 2>&5
2308   ac_status=$?
2309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310   (exit $ac_status); }; then
2311   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2312   case $ac_file in
2313     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2314     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2315        break;;
2316   esac
2317 done
2318 else
2319   echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.$ac_ext >&5
2321
2322 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2323 See \`config.log' for more details." >&5
2324 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2325 See \`config.log' for more details." >&2;}
2326    { (exit 1); exit 1; }; }
2327 fi
2328
2329 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2330 fi
2331 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2332 echo "${ECHO_T}$ac_cv_objext" >&6
2333 OBJEXT=$ac_cv_objext
2334 ac_objext=$OBJEXT
2335 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2336 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2337 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2338   echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340   cat >conftest.$ac_ext <<_ACEOF
2341 #line $LINENO "configure"
2342 /* confdefs.h.  */
2343 _ACEOF
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h.  */
2347
2348 int
2349 main ()
2350 {
2351 #ifndef __GNUC__
2352        choke me
2353 #endif
2354
2355   ;
2356   return 0;
2357 }
2358 _ACEOF
2359 rm -f conftest.$ac_objext
2360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361   (eval $ac_compile) 2>&5
2362   ac_status=$?
2363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364   (exit $ac_status); } &&
2365          { ac_try='test -s conftest.$ac_objext'
2366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367   (eval $ac_try) 2>&5
2368   ac_status=$?
2369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370   (exit $ac_status); }; }; then
2371   ac_compiler_gnu=yes
2372 else
2373   echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2375
2376 ac_compiler_gnu=no
2377 fi
2378 rm -f conftest.$ac_objext conftest.$ac_ext
2379 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2380
2381 fi
2382 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2383 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2384 GCC=`test $ac_compiler_gnu = yes && echo yes`
2385 ac_test_CFLAGS=${CFLAGS+set}
2386 ac_save_CFLAGS=$CFLAGS
2387 CFLAGS="-g"
2388 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2389 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2390 if test "${ac_cv_prog_cc_g+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   cat >conftest.$ac_ext <<_ACEOF
2394 #line $LINENO "configure"
2395 /* confdefs.h.  */
2396 _ACEOF
2397 cat confdefs.h >>conftest.$ac_ext
2398 cat >>conftest.$ac_ext <<_ACEOF
2399 /* end confdefs.h.  */
2400
2401 int
2402 main ()
2403 {
2404
2405   ;
2406   return 0;
2407 }
2408 _ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411   (eval $ac_compile) 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); } &&
2415          { ac_try='test -s conftest.$ac_objext'
2416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417   (eval $ac_try) 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; }; then
2421   ac_cv_prog_cc_g=yes
2422 else
2423   echo "$as_me: failed program was:" >&5
2424 sed 's/^/| /' conftest.$ac_ext >&5
2425
2426 ac_cv_prog_cc_g=no
2427 fi
2428 rm -f conftest.$ac_objext conftest.$ac_ext
2429 fi
2430 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2431 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2432 if test "$ac_test_CFLAGS" = set; then
2433   CFLAGS=$ac_save_CFLAGS
2434 elif test $ac_cv_prog_cc_g = yes; then
2435   if test "$GCC" = yes; then
2436     CFLAGS="-g -O2"
2437   else
2438     CFLAGS="-g"
2439   fi
2440 else
2441   if test "$GCC" = yes; then
2442     CFLAGS="-O2"
2443   else
2444     CFLAGS=
2445   fi
2446 fi
2447 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2448 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2449 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2450   echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452   ac_cv_prog_cc_stdc=no
2453 ac_save_CC=$CC
2454 cat >conftest.$ac_ext <<_ACEOF
2455 #line $LINENO "configure"
2456 /* confdefs.h.  */
2457 _ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h.  */
2461 #include <stdarg.h>
2462 #include <stdio.h>
2463 #include <sys/types.h>
2464 #include <sys/stat.h>
2465 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2466 struct buf { int x; };
2467 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2468 static char *e (p, i)
2469      char **p;
2470      int i;
2471 {
2472   return p[i];
2473 }
2474 static char *f (char * (*g) (char **, int), char **p, ...)
2475 {
2476   char *s;
2477   va_list v;
2478   va_start (v,p);
2479   s = g (p, va_arg (v,int));
2480   va_end (v);
2481   return s;
2482 }
2483 int test (int i, double x);
2484 struct s1 {int (*f) (int a);};
2485 struct s2 {int (*f) (double a);};
2486 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2487 int argc;
2488 char **argv;
2489 int
2490 main ()
2491 {
2492 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2493   ;
2494   return 0;
2495 }
2496 _ACEOF
2497 # Don't try gcc -ansi; that turns off useful extensions and
2498 # breaks some systems' header files.
2499 # AIX                   -qlanglvl=ansi
2500 # Ultrix and OSF/1      -std1
2501 # HP-UX 10.20 and later -Ae
2502 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2503 # SVR4                  -Xc -D__EXTENSIONS__
2504 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2505 do
2506   CC="$ac_save_CC $ac_arg"
2507   rm -f conftest.$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509   (eval $ac_compile) 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); } &&
2513          { ac_try='test -s conftest.$ac_objext'
2514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515   (eval $ac_try) 2>&5
2516   ac_status=$?
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); }; }; then
2519   ac_cv_prog_cc_stdc=$ac_arg
2520 break
2521 else
2522   echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2524
2525 fi
2526 rm -f conftest.$ac_objext
2527 done
2528 rm -f conftest.$ac_ext conftest.$ac_objext
2529 CC=$ac_save_CC
2530
2531 fi
2532
2533 case "x$ac_cv_prog_cc_stdc" in
2534   x|xno)
2535     echo "$as_me:$LINENO: result: none needed" >&5
2536 echo "${ECHO_T}none needed" >&6 ;;
2537   *)
2538     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2539 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2540     CC="$CC $ac_cv_prog_cc_stdc" ;;
2541 esac
2542
2543 # Some people use a C++ compiler to compile C.  Since we use `exit',
2544 # in C++ we need to declare it.  In case someone uses the same compiler
2545 # for both compiling C and C++ we need to have the C++ compiler decide
2546 # the declaration of exit, since it's the most demanding environment.
2547 cat >conftest.$ac_ext <<_ACEOF
2548 #ifndef __cplusplus
2549   choke me
2550 #endif
2551 _ACEOF
2552 rm -f conftest.$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554   (eval $ac_compile) 2>&5
2555   ac_status=$?
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); } &&
2558          { ac_try='test -s conftest.$ac_objext'
2559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560   (eval $ac_try) 2>&5
2561   ac_status=$?
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); }; }; then
2564   for ac_declaration in \
2565    ''\
2566    '#include <stdlib.h>' \
2567    'extern "C" void std::exit (int) throw (); using std::exit;' \
2568    'extern "C" void std::exit (int); using std::exit;' \
2569    'extern "C" void exit (int) throw ();' \
2570    'extern "C" void exit (int);' \
2571    'void exit (int);'
2572 do
2573   cat >conftest.$ac_ext <<_ACEOF
2574 #line $LINENO "configure"
2575 /* confdefs.h.  */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h.  */
2580 #include <stdlib.h>
2581 $ac_declaration
2582 int
2583 main ()
2584 {
2585 exit (42);
2586   ;
2587   return 0;
2588 }
2589 _ACEOF
2590 rm -f conftest.$ac_objext
2591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592   (eval $ac_compile) 2>&5
2593   ac_status=$?
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); } &&
2596          { ac_try='test -s conftest.$ac_objext'
2597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598   (eval $ac_try) 2>&5
2599   ac_status=$?
2600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); }; }; then
2602   :
2603 else
2604   echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.$ac_ext >&5
2606
2607 continue
2608 fi
2609 rm -f conftest.$ac_objext conftest.$ac_ext
2610   cat >conftest.$ac_ext <<_ACEOF
2611 #line $LINENO "configure"
2612 /* confdefs.h.  */
2613 _ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h.  */
2617 $ac_declaration
2618 int
2619 main ()
2620 {
2621 exit (42);
2622   ;
2623   return 0;
2624 }
2625 _ACEOF
2626 rm -f conftest.$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628   (eval $ac_compile) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); } &&
2632          { ac_try='test -s conftest.$ac_objext'
2633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634   (eval $ac_try) 2>&5
2635   ac_status=$?
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); }; }; then
2638   break
2639 else
2640   echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2642
2643 fi
2644 rm -f conftest.$ac_objext conftest.$ac_ext
2645 done
2646 rm -f conftest*
2647 if test -n "$ac_declaration"; then
2648   echo '#ifdef __cplusplus' >>confdefs.h
2649   echo $ac_declaration      >>confdefs.h
2650   echo '#endif'             >>confdefs.h
2651 fi
2652
2653 else
2654   echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2656
2657 fi
2658 rm -f conftest.$ac_objext conftest.$ac_ext
2659 ac_ext=c
2660 ac_cpp='$CPP $CPPFLAGS'
2661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664 rm -f .deps 2>/dev/null
2665 mkdir .deps 2>/dev/null
2666 if test -d .deps; then
2667   DEPDIR=.deps
2668 else
2669   # MS-DOS does not allow filenames that begin with a dot.
2670   DEPDIR=_deps
2671 fi
2672 rmdir .deps 2>/dev/null
2673
2674
2675           ac_config_commands="$ac_config_commands depfiles"
2676
2677
2678 am_make=${MAKE-make}
2679 cat > confinc << 'END'
2680 doit:
2681         @echo done
2682 END
2683 # If we don't find an include directive, just comment out the code.
2684 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2685 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2686 am__include="#"
2687 am__quote=
2688 _am_result=none
2689 # First try GNU make style include.
2690 echo "include confinc" > confmf
2691 # We grep out `Entering directory' and `Leaving directory'
2692 # messages which can occur if `w' ends up in MAKEFLAGS.
2693 # In particular we don't look at `^make:' because GNU make might
2694 # be invoked under some other name (usually "gmake"), in which
2695 # case it prints its new name instead of `make'.
2696 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2697    am__include=include
2698    am__quote=
2699    _am_result=GNU
2700 fi
2701 # Now try BSD make style include.
2702 if test "$am__include" = "#"; then
2703    echo '.include "confinc"' > confmf
2704    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2705       am__include=.include
2706       am__quote="\""
2707       _am_result=BSD
2708    fi
2709 fi
2710
2711
2712 echo "$as_me:$LINENO: result: $_am_result" >&5
2713 echo "${ECHO_T}$_am_result" >&6
2714 rm -f confinc confmf
2715
2716 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2717 if test "${enable_dependency_tracking+set}" = set; then
2718   enableval="$enable_dependency_tracking"
2719
2720 fi;
2721 if test "x$enable_dependency_tracking" != xno; then
2722   am_depcomp="$ac_aux_dir/depcomp"
2723   AMDEPBACKSLASH='\'
2724 fi
2725
2726
2727 if test "x$enable_dependency_tracking" != xno; then
2728   AMDEP_TRUE=
2729   AMDEP_FALSE='#'
2730 else
2731   AMDEP_TRUE='#'
2732   AMDEP_FALSE=
2733 fi
2734
2735
2736
2737
2738 depcc="$CC"   am_compiler_list=
2739
2740 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2741 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2742 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2743   echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2746   # We make a subdir and do the tests there.  Otherwise we can end up
2747   # making bogus files that we don't know about and never remove.  For
2748   # instance it was reported that on HP-UX the gcc test will end up
2749   # making a dummy file named `D' -- because `-MD' means `put the output
2750   # in D'.
2751   mkdir conftest.dir
2752   # Copy depcomp to subdir because otherwise we won't find it if we're
2753   # using a relative directory.
2754   cp "$am_depcomp" conftest.dir
2755   cd conftest.dir
2756
2757   am_cv_CC_dependencies_compiler_type=none
2758   if test "$am_compiler_list" = ""; then
2759      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2760   fi
2761   for depmode in $am_compiler_list; do
2762     # We need to recreate these files for each test, as the compiler may
2763     # overwrite some of them when testing with obscure command lines.
2764     # This happens at least with the AIX C compiler.
2765     echo '#include "conftest.h"' > conftest.c
2766     echo 'int i;' > conftest.h
2767     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2768
2769     case $depmode in
2770     nosideeffect)
2771       # after this tag, mechanisms are not by side-effect, so they'll
2772       # only be used when explicitly requested
2773       if test "x$enable_dependency_tracking" = xyes; then
2774         continue
2775       else
2776         break
2777       fi
2778       ;;
2779     none) break ;;
2780     esac
2781     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2782     # mode.  It turns out that the SunPro C++ compiler does not properly
2783     # handle `-M -o', and we need to detect this.
2784     if depmode=$depmode \
2785        source=conftest.c object=conftest.o \
2786        depfile=conftest.Po tmpdepfile=conftest.TPo \
2787        $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
2788        grep conftest.h conftest.Po > /dev/null 2>&1 &&
2789        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2790       am_cv_CC_dependencies_compiler_type=$depmode
2791       break
2792     fi
2793   done
2794
2795   cd ..
2796   rm -rf conftest.dir
2797 else
2798   am_cv_CC_dependencies_compiler_type=none
2799 fi
2800
2801 fi
2802 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2803 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2804 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2805
2806
2807
2808 if
2809   test "x$enable_dependency_tracking" != xno \
2810   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2811   am__fastdepCC_TRUE=
2812   am__fastdepCC_FALSE='#'
2813 else
2814   am__fastdepCC_TRUE='#'
2815   am__fastdepCC_FALSE=
2816 fi
2817
2818
2819 ac_ext=c
2820 ac_cpp='$CPP $CPPFLAGS'
2821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2824 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2825 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2826 # On Suns, sometimes $CPP names a directory.
2827 if test -n "$CPP" && test -d "$CPP"; then
2828   CPP=
2829 fi
2830 if test -z "$CPP"; then
2831   if test "${ac_cv_prog_CPP+set}" = set; then
2832   echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834       # Double quotes because CPP needs to be expanded
2835     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2836     do
2837       ac_preproc_ok=false
2838 for ac_c_preproc_warn_flag in '' yes
2839 do
2840   # Use a header file that comes with gcc, so configuring glibc
2841   # with a fresh cross-compiler works.
2842   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2843   # <limits.h> exists even on freestanding compilers.
2844   # On the NeXT, cc -E runs the code through the compiler's parser,
2845   # not just through cpp. "Syntax error" is here to catch this case.
2846   cat >conftest.$ac_ext <<_ACEOF
2847 #line $LINENO "configure"
2848 /* confdefs.h.  */
2849 _ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h.  */
2853 #ifdef __STDC__
2854 # include <limits.h>
2855 #else
2856 # include <assert.h>
2857 #endif
2858                      Syntax error
2859 _ACEOF
2860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2861   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2862   ac_status=$?
2863   grep -v '^ *+' conftest.er1 >conftest.err
2864   rm -f conftest.er1
2865   cat conftest.err >&5
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); } >/dev/null; then
2868   if test -s conftest.err; then
2869     ac_cpp_err=$ac_c_preproc_warn_flag
2870   else
2871     ac_cpp_err=
2872   fi
2873 else
2874   ac_cpp_err=yes
2875 fi
2876 if test -z "$ac_cpp_err"; then
2877   :
2878 else
2879   echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.$ac_ext >&5
2881
2882   # Broken: fails on valid input.
2883 continue
2884 fi
2885 rm -f conftest.err conftest.$ac_ext
2886
2887   # OK, works on sane cases.  Now check whether non-existent headers
2888   # can be detected and how.
2889   cat >conftest.$ac_ext <<_ACEOF
2890 #line $LINENO "configure"
2891 /* confdefs.h.  */
2892 _ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
2895 /* end confdefs.h.  */
2896 #include <ac_nonexistent.h>
2897 _ACEOF
2898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2899   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2900   ac_status=$?
2901   grep -v '^ *+' conftest.er1 >conftest.err
2902   rm -f conftest.er1
2903   cat conftest.err >&5
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); } >/dev/null; then
2906   if test -s conftest.err; then
2907     ac_cpp_err=$ac_c_preproc_warn_flag
2908   else
2909     ac_cpp_err=
2910   fi
2911 else
2912   ac_cpp_err=yes
2913 fi
2914 if test -z "$ac_cpp_err"; then
2915   # Broken: success on invalid input.
2916 continue
2917 else
2918   echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921   # Passes both tests.
2922 ac_preproc_ok=:
2923 break
2924 fi
2925 rm -f conftest.err conftest.$ac_ext
2926
2927 done
2928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2929 rm -f conftest.err conftest.$ac_ext
2930 if $ac_preproc_ok; then
2931   break
2932 fi
2933
2934     done
2935     ac_cv_prog_CPP=$CPP
2936
2937 fi
2938   CPP=$ac_cv_prog_CPP
2939 else
2940   ac_cv_prog_CPP=$CPP
2941 fi
2942 echo "$as_me:$LINENO: result: $CPP" >&5
2943 echo "${ECHO_T}$CPP" >&6
2944 ac_preproc_ok=false
2945 for ac_c_preproc_warn_flag in '' yes
2946 do
2947   # Use a header file that comes with gcc, so configuring glibc
2948   # with a fresh cross-compiler works.
2949   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2950   # <limits.h> exists even on freestanding compilers.
2951   # On the NeXT, cc -E runs the code through the compiler's parser,
2952   # not just through cpp. "Syntax error" is here to catch this case.
2953   cat >conftest.$ac_ext <<_ACEOF
2954 #line $LINENO "configure"
2955 /* confdefs.h.  */
2956 _ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h.  */
2960 #ifdef __STDC__
2961 # include <limits.h>
2962 #else
2963 # include <assert.h>
2964 #endif
2965                      Syntax error
2966 _ACEOF
2967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2968   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2969   ac_status=$?
2970   grep -v '^ *+' conftest.er1 >conftest.err
2971   rm -f conftest.er1
2972   cat conftest.err >&5
2973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974   (exit $ac_status); } >/dev/null; then
2975   if test -s conftest.err; then
2976     ac_cpp_err=$ac_c_preproc_warn_flag
2977   else
2978     ac_cpp_err=
2979   fi
2980 else
2981   ac_cpp_err=yes
2982 fi
2983 if test -z "$ac_cpp_err"; then
2984   :
2985 else
2986   echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2988
2989   # Broken: fails on valid input.
2990 continue
2991 fi
2992 rm -f conftest.err conftest.$ac_ext
2993
2994   # OK, works on sane cases.  Now check whether non-existent headers
2995   # can be detected and how.
2996   cat >conftest.$ac_ext <<_ACEOF
2997 #line $LINENO "configure"
2998 /* confdefs.h.  */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h.  */
3003 #include <ac_nonexistent.h>
3004 _ACEOF
3005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3006   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3007   ac_status=$?
3008   grep -v '^ *+' conftest.er1 >conftest.err
3009   rm -f conftest.er1
3010   cat conftest.err >&5
3011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012   (exit $ac_status); } >/dev/null; then
3013   if test -s conftest.err; then
3014     ac_cpp_err=$ac_c_preproc_warn_flag
3015   else
3016     ac_cpp_err=
3017   fi
3018 else
3019   ac_cpp_err=yes
3020 fi
3021 if test -z "$ac_cpp_err"; then
3022   # Broken: success on invalid input.
3023 continue
3024 else
3025   echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3027
3028   # Passes both tests.
3029 ac_preproc_ok=:
3030 break
3031 fi
3032 rm -f conftest.err conftest.$ac_ext
3033
3034 done
3035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3036 rm -f conftest.err conftest.$ac_ext
3037 if $ac_preproc_ok; then
3038   :
3039 else
3040   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3041 See \`config.log' for more details." >&5
3042 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3043 See \`config.log' for more details." >&2;}
3044    { (exit 1); exit 1; }; }
3045 fi
3046
3047 ac_ext=c
3048 ac_cpp='$CPP $CPPFLAGS'
3049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3052
3053
3054
3055 echo "$as_me:$LINENO: checking for egrep" >&5
3056 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3057 if test "${ac_cv_prog_egrep+set}" = set; then
3058   echo $ECHO_N "(cached) $ECHO_C" >&6
3059 else
3060   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3061     then ac_cv_prog_egrep='grep -E'
3062     else ac_cv_prog_egrep='egrep'
3063     fi
3064 fi
3065 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3066 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3067  EGREP=$ac_cv_prog_egrep
3068
3069
3070 if test $ac_cv_c_compiler_gnu = yes; then
3071     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3072 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3073 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3074   echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076     ac_pattern="Autoconf.*'x'"
3077   cat >conftest.$ac_ext <<_ACEOF
3078 #line $LINENO "configure"
3079 /* confdefs.h.  */
3080 _ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h.  */
3084 #include <sgtty.h>
3085 Autoconf TIOCGETP
3086 _ACEOF
3087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3088   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3089   ac_cv_prog_gcc_traditional=yes
3090 else
3091   ac_cv_prog_gcc_traditional=no
3092 fi
3093 rm -f conftest*
3094
3095
3096   if test $ac_cv_prog_gcc_traditional = no; then
3097     cat >conftest.$ac_ext <<_ACEOF
3098 #line $LINENO "configure"
3099 /* confdefs.h.  */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h.  */
3104 #include <termio.h>
3105 Autoconf TCGETA
3106 _ACEOF
3107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3108   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3109   ac_cv_prog_gcc_traditional=yes
3110 fi
3111 rm -f conftest*
3112
3113   fi
3114 fi
3115 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3116 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3117   if test $ac_cv_prog_gcc_traditional = yes; then
3118     CC="$CC -traditional"
3119   fi
3120 fi
3121
3122 if test -n "$ac_tool_prefix"; then
3123   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3124 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3125 echo "$as_me:$LINENO: checking for $ac_word" >&5
3126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3127 if test "${ac_cv_prog_RANLIB+set}" = set; then
3128   echo $ECHO_N "(cached) $ECHO_C" >&6
3129 else
3130   if test -n "$RANLIB"; then
3131   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3132 else
3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 for as_dir in $PATH
3135 do
3136   IFS=$as_save_IFS
3137   test -z "$as_dir" && as_dir=.
3138   for ac_exec_ext in '' $ac_executable_extensions; do
3139   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3142     break 2
3143   fi
3144 done
3145 done
3146
3147 fi
3148 fi
3149 RANLIB=$ac_cv_prog_RANLIB
3150 if test -n "$RANLIB"; then
3151   echo "$as_me:$LINENO: result: $RANLIB" >&5
3152 echo "${ECHO_T}$RANLIB" >&6
3153 else
3154   echo "$as_me:$LINENO: result: no" >&5
3155 echo "${ECHO_T}no" >&6
3156 fi
3157
3158 fi
3159 if test -z "$ac_cv_prog_RANLIB"; then
3160   ac_ct_RANLIB=$RANLIB
3161   # Extract the first word of "ranlib", so it can be a program name with args.
3162 set dummy ranlib; ac_word=$2
3163 echo "$as_me:$LINENO: checking for $ac_word" >&5
3164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3165 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3166   echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168   if test -n "$ac_ct_RANLIB"; then
3169   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174   IFS=$as_save_IFS
3175   test -z "$as_dir" && as_dir=.
3176   for ac_exec_ext in '' $ac_executable_extensions; do
3177   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178     ac_cv_prog_ac_ct_RANLIB="ranlib"
3179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3180     break 2
3181   fi
3182 done
3183 done
3184
3185   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3186 fi
3187 fi
3188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3189 if test -n "$ac_ct_RANLIB"; then
3190   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3191 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3192 else
3193   echo "$as_me:$LINENO: result: no" >&5
3194 echo "${ECHO_T}no" >&6
3195 fi
3196
3197   RANLIB=$ac_ct_RANLIB
3198 else
3199   RANLIB="$ac_cv_prog_RANLIB"
3200 fi
3201
3202
3203 echo "$as_me:$LINENO: checking for AIX" >&5
3204 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3205 cat >conftest.$ac_ext <<_ACEOF
3206 #line $LINENO "configure"
3207 /* confdefs.h.  */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h.  */
3212 #ifdef _AIX
3213   yes
3214 #endif
3215
3216 _ACEOF
3217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3218   $EGREP "yes" >/dev/null 2>&1; then
3219   echo "$as_me:$LINENO: result: yes" >&5
3220 echo "${ECHO_T}yes" >&6
3221 cat >>confdefs.h <<\_ACEOF
3222 #define _ALL_SOURCE 1
3223 _ACEOF
3224
3225 else
3226   echo "$as_me:$LINENO: result: no" >&5
3227 echo "${ECHO_T}no" >&6
3228 fi
3229 rm -f conftest*
3230
3231
3232 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3233 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3234 if test "${ac_cv_header_stdc+set}" = set; then
3235   echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237   cat >conftest.$ac_ext <<_ACEOF
3238 #line $LINENO "configure"
3239 /* confdefs.h.  */
3240 _ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h.  */
3244 #include <stdlib.h>
3245 #include <stdarg.h>
3246 #include <string.h>
3247 #include <float.h>
3248
3249 int
3250 main ()
3251 {
3252
3253   ;
3254   return 0;
3255 }
3256 _ACEOF
3257 rm -f conftest.$ac_objext
3258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3259   (eval $ac_compile) 2>&5
3260   ac_status=$?
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); } &&
3263          { ac_try='test -s conftest.$ac_objext'
3264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265   (eval $ac_try) 2>&5
3266   ac_status=$?
3267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268   (exit $ac_status); }; }; then
3269   ac_cv_header_stdc=yes
3270 else
3271   echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3273
3274 ac_cv_header_stdc=no
3275 fi
3276 rm -f conftest.$ac_objext conftest.$ac_ext
3277
3278 if test $ac_cv_header_stdc = yes; then
3279   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3280   cat >conftest.$ac_ext <<_ACEOF
3281 #line $LINENO "configure"
3282 /* confdefs.h.  */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h.  */
3287 #include <string.h>
3288
3289 _ACEOF
3290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3291   $EGREP "memchr" >/dev/null 2>&1; then
3292   :
3293 else
3294   ac_cv_header_stdc=no
3295 fi
3296 rm -f conftest*
3297
3298 fi
3299
3300 if test $ac_cv_header_stdc = yes; then
3301   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3302   cat >conftest.$ac_ext <<_ACEOF
3303 #line $LINENO "configure"
3304 /* confdefs.h.  */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h.  */
3309 #include <stdlib.h>
3310
3311 _ACEOF
3312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3313   $EGREP "free" >/dev/null 2>&1; then
3314   :
3315 else
3316   ac_cv_header_stdc=no
3317 fi
3318 rm -f conftest*
3319
3320 fi
3321
3322 if test $ac_cv_header_stdc = yes; then
3323   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3324   if test "$cross_compiling" = yes; then
3325   :
3326 else
3327   cat >conftest.$ac_ext <<_ACEOF
3328 #line $LINENO "configure"
3329 /* confdefs.h.  */
3330 _ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h.  */
3334 #include <ctype.h>
3335 #if ((' ' & 0x0FF) == 0x020)
3336 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3337 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3338 #else
3339 # define ISLOWER(c) \
3340                    (('a' <= (c) && (c) <= 'i') \
3341                      || ('j' <= (c) && (c) <= 'r') \
3342                      || ('s' <= (c) && (c) <= 'z'))
3343 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3344 #endif
3345
3346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3347 int
3348 main ()
3349 {
3350   int i;
3351   for (i = 0; i < 256; i++)
3352     if (XOR (islower (i), ISLOWER (i))
3353         || toupper (i) != TOUPPER (i))
3354       exit(2);
3355   exit (0);
3356 }
3357 _ACEOF
3358 rm -f conftest$ac_exeext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3360   (eval $ac_link) 2>&5
3361   ac_status=$?
3362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365   (eval $ac_try) 2>&5
3366   ac_status=$?
3367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368   (exit $ac_status); }; }; then
3369   :
3370 else
3371   echo "$as_me: program exited with status $ac_status" >&5
3372 echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3374
3375 ( exit $ac_status )
3376 ac_cv_header_stdc=no
3377 fi
3378 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3379 fi
3380 fi
3381 fi
3382 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3383 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3384 if test $ac_cv_header_stdc = yes; then
3385
3386 cat >>confdefs.h <<\_ACEOF
3387 #define STDC_HEADERS 1
3388 _ACEOF
3389
3390 fi
3391
3392 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3403                   inttypes.h stdint.h unistd.h
3404 do
3405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3406 echo "$as_me:$LINENO: checking for $ac_header" >&5
3407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3409   echo $ECHO_N "(cached) $ECHO_C" >&6
3410 else
3411   cat >conftest.$ac_ext <<_ACEOF
3412 #line $LINENO "configure"
3413 /* confdefs.h.  */
3414 _ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h.  */
3418 $ac_includes_default
3419
3420 #include <$ac_header>
3421 _ACEOF
3422 rm -f conftest.$ac_objext
3423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3424   (eval $ac_compile) 2>&5
3425   ac_status=$?
3426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427   (exit $ac_status); } &&
3428          { ac_try='test -s conftest.$ac_objext'
3429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430   (eval $ac_try) 2>&5
3431   ac_status=$?
3432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433   (exit $ac_status); }; }; then
3434   eval "$as_ac_Header=yes"
3435 else
3436   echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3438
3439 eval "$as_ac_Header=no"
3440 fi
3441 rm -f conftest.$ac_objext conftest.$ac_ext
3442 fi
3443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3446   cat >>confdefs.h <<_ACEOF
3447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3448 _ACEOF
3449
3450 fi
3451
3452 done
3453
3454
3455 if test "${ac_cv_header_minix_config_h+set}" = set; then
3456   echo "$as_me:$LINENO: checking for minix/config.h" >&5
3457 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3458 if test "${ac_cv_header_minix_config_h+set}" = set; then
3459   echo $ECHO_N "(cached) $ECHO_C" >&6
3460 fi
3461 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3462 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3463 else
3464   # Is the header compilable?
3465 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3466 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3467 cat >conftest.$ac_ext <<_ACEOF
3468 #line $LINENO "configure"
3469 /* confdefs.h.  */
3470 _ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h.  */
3474 $ac_includes_default
3475 #include <minix/config.h>
3476 _ACEOF
3477 rm -f conftest.$ac_objext
3478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3479   (eval $ac_compile) 2>&5
3480   ac_status=$?
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); } &&
3483          { ac_try='test -s conftest.$ac_objext'
3484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485   (eval $ac_try) 2>&5
3486   ac_status=$?
3487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488   (exit $ac_status); }; }; then
3489   ac_header_compiler=yes
3490 else
3491   echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494 ac_header_compiler=no
3495 fi
3496 rm -f conftest.$ac_objext conftest.$ac_ext
3497 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3498 echo "${ECHO_T}$ac_header_compiler" >&6
3499
3500 # Is the header present?
3501 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3502 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3503 cat >conftest.$ac_ext <<_ACEOF
3504 #line $LINENO "configure"
3505 /* confdefs.h.  */
3506 _ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h.  */
3510 #include <minix/config.h>
3511 _ACEOF
3512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3513   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3514   ac_status=$?
3515   grep -v '^ *+' conftest.er1 >conftest.err
3516   rm -f conftest.er1
3517   cat conftest.err >&5
3518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519   (exit $ac_status); } >/dev/null; then
3520   if test -s conftest.err; then
3521     ac_cpp_err=$ac_c_preproc_warn_flag
3522   else
3523     ac_cpp_err=
3524   fi
3525 else
3526   ac_cpp_err=yes
3527 fi
3528 if test -z "$ac_cpp_err"; then
3529   ac_header_preproc=yes
3530 else
3531   echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3533
3534   ac_header_preproc=no
3535 fi
3536 rm -f conftest.err conftest.$ac_ext
3537 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3538 echo "${ECHO_T}$ac_header_preproc" >&6
3539
3540 # So?  What about this header?
3541 case $ac_header_compiler:$ac_header_preproc in
3542   yes:no )
3543     { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3544 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3545     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3546 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3547     (
3548       cat <<\_ASBOX
3549 ## ------------------------------------ ##
3550 ## Report this to bug-autoconf@gnu.org. ##
3551 ## ------------------------------------ ##
3552 _ASBOX
3553     ) |
3554       sed "s/^/$as_me: WARNING:     /" >&2
3555     ;;
3556   no:yes )
3557     { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3558 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3559     { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3560 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3561     { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3562 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3563     (
3564       cat <<\_ASBOX
3565 ## ------------------------------------ ##
3566 ## Report this to bug-autoconf@gnu.org. ##
3567 ## ------------------------------------ ##
3568 _ASBOX
3569     ) |
3570       sed "s/^/$as_me: WARNING:     /" >&2
3571     ;;
3572 esac
3573 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3574 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3575 if test "${ac_cv_header_minix_config_h+set}" = set; then
3576   echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578   ac_cv_header_minix_config_h=$ac_header_preproc
3579 fi
3580 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3581 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3582
3583 fi
3584 if test $ac_cv_header_minix_config_h = yes; then
3585   MINIX=yes
3586 else
3587   MINIX=
3588 fi
3589
3590
3591 if test "$MINIX" = yes; then
3592
3593 cat >>confdefs.h <<\_ACEOF
3594 #define _POSIX_SOURCE 1
3595 _ACEOF
3596
3597
3598 cat >>confdefs.h <<\_ACEOF
3599 #define _POSIX_1_SOURCE 2
3600 _ACEOF
3601
3602
3603 cat >>confdefs.h <<\_ACEOF
3604 #define _MINIX 1
3605 _ACEOF
3606
3607 fi
3608
3609
3610
3611 for ac_func in uname
3612 do
3613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3614 echo "$as_me:$LINENO: checking for $ac_func" >&5
3615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3616 if eval "test \"\${$as_ac_var+set}\" = set"; then
3617   echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619   cat >conftest.$ac_ext <<_ACEOF
3620 #line $LINENO "configure"
3621 /* confdefs.h.  */
3622 _ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h.  */
3626 /* System header to define __stub macros and hopefully few prototypes,
3627     which can conflict with char $ac_func (); below.
3628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3629     <limits.h> exists even on freestanding compilers.  */
3630 #ifdef __STDC__
3631 # include <limits.h>
3632 #else
3633 # include <assert.h>
3634 #endif
3635 /* Override any gcc2 internal prototype to avoid an error.  */
3636 #ifdef __cplusplus
3637 extern "C"
3638 {
3639 #endif
3640 /* We use char because int might match the return type of a gcc2
3641    builtin and then its argument prototype would still apply.  */
3642 char $ac_func ();
3643 /* The GNU C library defines this for functions which it implements
3644     to always fail with ENOSYS.  Some functions are actually named
3645     something starting with __ and the normal name is an alias.  */
3646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3647 choke me
3648 #else
3649 char (*f) () = $ac_func;
3650 #endif
3651 #ifdef __cplusplus
3652 }
3653 #endif
3654
3655 int
3656 main ()
3657 {
3658 return f != $ac_func;
3659   ;
3660   return 0;
3661 }
3662 _ACEOF
3663 rm -f conftest.$ac_objext conftest$ac_exeext
3664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3665   (eval $ac_link) 2>&5
3666   ac_status=$?
3667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668   (exit $ac_status); } &&
3669          { ac_try='test -s conftest$ac_exeext'
3670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671   (eval $ac_try) 2>&5
3672   ac_status=$?
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); }; }; then
3675   eval "$as_ac_var=yes"
3676 else
3677   echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3679
3680 eval "$as_ac_var=no"
3681 fi
3682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3683 fi
3684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3686 if test `eval echo '${'$as_ac_var'}'` = yes; then
3687   cat >>confdefs.h <<_ACEOF
3688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3689 _ACEOF
3690  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uname" MAN="$MAN uname.1"
3691 fi
3692 done
3693
3694
3695 for ac_func in chroot
3696 do
3697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3698 echo "$as_me:$LINENO: checking for $ac_func" >&5
3699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3700 if eval "test \"\${$as_ac_var+set}\" = set"; then
3701   echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703   cat >conftest.$ac_ext <<_ACEOF
3704 #line $LINENO "configure"
3705 /* confdefs.h.  */
3706 _ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h.  */
3710 /* System header to define __stub macros and hopefully few prototypes,
3711     which can conflict with char $ac_func (); below.
3712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3713     <limits.h> exists even on freestanding compilers.  */
3714 #ifdef __STDC__
3715 # include <limits.h>
3716 #else
3717 # include <assert.h>
3718 #endif
3719 /* Override any gcc2 internal prototype to avoid an error.  */
3720 #ifdef __cplusplus
3721 extern "C"
3722 {
3723 #endif
3724 /* We use char because int might match the return type of a gcc2
3725    builtin and then its argument prototype would still apply.  */
3726 char $ac_func ();
3727 /* The GNU C library defines this for functions which it implements
3728     to always fail with ENOSYS.  Some functions are actually named
3729     something starting with __ and the normal name is an alias.  */
3730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3731 choke me
3732 #else
3733 char (*f) () = $ac_func;
3734 #endif
3735 #ifdef __cplusplus
3736 }
3737 #endif
3738
3739 int
3740 main ()
3741 {
3742 return f != $ac_func;
3743   ;
3744   return 0;
3745 }
3746 _ACEOF
3747 rm -f conftest.$ac_objext conftest$ac_exeext
3748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3749   (eval $ac_link) 2>&5
3750   ac_status=$?
3751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752   (exit $ac_status); } &&
3753          { ac_try='test -s conftest$ac_exeext'
3754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755   (eval $ac_try) 2>&5
3756   ac_status=$?
3757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758   (exit $ac_status); }; }; then
3759   eval "$as_ac_var=yes"
3760 else
3761   echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3763
3764 eval "$as_ac_var=no"
3765 fi
3766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3767 fi
3768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3770 if test `eval echo '${'$as_ac_var'}'` = yes; then
3771   cat >>confdefs.h <<_ACEOF
3772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3773 _ACEOF
3774  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS chroot" MAN="$MAN chroot.1"
3775 fi
3776 done
3777
3778
3779 for ac_func in gethostid
3780 do
3781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3782 echo "$as_me:$LINENO: checking for $ac_func" >&5
3783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3784 if eval "test \"\${$as_ac_var+set}\" = set"; then
3785   echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787   cat >conftest.$ac_ext <<_ACEOF
3788 #line $LINENO "configure"
3789 /* confdefs.h.  */
3790 _ACEOF
3791 cat confdefs.h >>conftest.$ac_ext
3792 cat >>conftest.$ac_ext <<_ACEOF
3793 /* end confdefs.h.  */
3794 /* System header to define __stub macros and hopefully few prototypes,
3795     which can conflict with char $ac_func (); below.
3796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3797     <limits.h> exists even on freestanding compilers.  */
3798 #ifdef __STDC__
3799 # include <limits.h>
3800 #else
3801 # include <assert.h>
3802 #endif
3803 /* Override any gcc2 internal prototype to avoid an error.  */
3804 #ifdef __cplusplus
3805 extern "C"
3806 {
3807 #endif
3808 /* We use char because int might match the return type of a gcc2
3809    builtin and then its argument prototype would still apply.  */
3810 char $ac_func ();
3811 /* The GNU C library defines this for functions which it implements
3812     to always fail with ENOSYS.  Some functions are actually named
3813     something starting with __ and the normal name is an alias.  */
3814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3815 choke me
3816 #else
3817 char (*f) () = $ac_func;
3818 #endif
3819 #ifdef __cplusplus
3820 }
3821 #endif
3822
3823 int
3824 main ()
3825 {
3826 return f != $ac_func;
3827   ;
3828   return 0;
3829 }
3830 _ACEOF
3831 rm -f conftest.$ac_objext conftest$ac_exeext
3832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3833   (eval $ac_link) 2>&5
3834   ac_status=$?
3835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836   (exit $ac_status); } &&
3837          { ac_try='test -s conftest$ac_exeext'
3838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839   (eval $ac_try) 2>&5
3840   ac_status=$?
3841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842   (exit $ac_status); }; }; then
3843   eval "$as_ac_var=yes"
3844 else
3845   echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3847
3848 eval "$as_ac_var=no"
3849 fi
3850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3851 fi
3852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3853 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3854 if test `eval echo '${'$as_ac_var'}'` = yes; then
3855   cat >>confdefs.h <<_ACEOF
3856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3857 _ACEOF
3858  OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS hostid" MAN="$MAN hostid.1"
3859 fi
3860 done
3861
3862
3863
3864         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3865 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3866 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3867   echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869   ac_check_lib_save_LIBS=$LIBS
3870 LIBS="-lcposix  $LIBS"
3871 cat >conftest.$ac_ext <<_ACEOF
3872 #line $LINENO "configure"
3873 /* confdefs.h.  */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h.  */
3878
3879 /* Override any gcc2 internal prototype to avoid an error.  */
3880 #ifdef __cplusplus
3881 extern "C"
3882 #endif
3883 /* We use char because int might match the return type of a gcc2
3884    builtin and then its argument prototype would still apply.  */
3885 char strerror ();
3886 int
3887 main ()
3888 {
3889 strerror ();
3890   ;
3891   return 0;
3892 }
3893 _ACEOF
3894 rm -f conftest.$ac_objext conftest$ac_exeext
3895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3896   (eval $ac_link) 2>&5
3897   ac_status=$?
3898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899   (exit $ac_status); } &&
3900          { ac_try='test -s conftest$ac_exeext'
3901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902   (eval $ac_try) 2>&5
3903   ac_status=$?
3904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905   (exit $ac_status); }; }; then
3906   ac_cv_lib_cposix_strerror=yes
3907 else
3908   echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911 ac_cv_lib_cposix_strerror=no
3912 fi
3913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3914 LIBS=$ac_check_lib_save_LIBS
3915 fi
3916 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3917 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3918 if test $ac_cv_lib_cposix_strerror = yes; then
3919   LIBS="$LIBS -lcposix"
3920 fi
3921
3922
3923
3924 # Check whether --enable-largefile or --disable-largefile was given.
3925 if test "${enable_largefile+set}" = set; then
3926   enableval="$enable_largefile"
3927
3928 fi;
3929 if test "$enable_largefile" != no; then
3930
3931   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3932 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3933 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3934   echo $ECHO_N "(cached) $ECHO_C" >&6
3935 else
3936   ac_cv_sys_largefile_CC=no
3937      if test "$GCC" != yes; then
3938        ac_save_CC=$CC
3939        while :; do
3940          # IRIX 6.2 and later do not support large files by default,
3941          # so use the C compiler's -n32 option if that helps.
3942          cat >conftest.$ac_ext <<_ACEOF
3943 #line $LINENO "configure"
3944 /* confdefs.h.  */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h.  */
3949 #include <sys/types.h>
3950  /* Check that off_t can represent 2**63 - 1 correctly.
3951     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3952     since some C++ compilers masquerading as C compilers
3953     incorrectly reject 9223372036854775807.  */
3954 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3955   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3956                        && LARGE_OFF_T % 2147483647 == 1)
3957                       ? 1 : -1];
3958 int
3959 main ()
3960 {
3961
3962   ;
3963   return 0;
3964 }
3965 _ACEOF
3966          rm -f conftest.$ac_objext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3968   (eval $ac_compile) 2>&5
3969   ac_status=$?
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); } &&
3972          { ac_try='test -s conftest.$ac_objext'
3973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974   (eval $ac_try) 2>&5
3975   ac_status=$?
3976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977   (exit $ac_status); }; }; then
3978   break
3979 else
3980   echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983 fi
3984 rm -f conftest.$ac_objext
3985          CC="$CC -n32"
3986          rm -f conftest.$ac_objext
3987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3988   (eval $ac_compile) 2>&5
3989   ac_status=$?
3990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991   (exit $ac_status); } &&
3992          { ac_try='test -s conftest.$ac_objext'
3993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994   (eval $ac_try) 2>&5
3995   ac_status=$?
3996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997   (exit $ac_status); }; }; then
3998   ac_cv_sys_largefile_CC=' -n32'; break
3999 else
4000   echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4002
4003 fi
4004 rm -f conftest.$ac_objext
4005          break
4006        done
4007        CC=$ac_save_CC
4008        rm -f conftest.$ac_ext
4009     fi
4010 fi
4011 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4012 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4013   if test "$ac_cv_sys_largefile_CC" != no; then
4014     CC=$CC$ac_cv_sys_largefile_CC
4015   fi
4016
4017   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4018 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4019 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4020   echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022   while :; do
4023   ac_cv_sys_file_offset_bits=no
4024   cat >conftest.$ac_ext <<_ACEOF
4025 #line $LINENO "configure"
4026 /* confdefs.h.  */
4027 _ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h.  */
4031 #include <sys/types.h>
4032  /* Check that off_t can represent 2**63 - 1 correctly.
4033     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4034     since some C++ compilers masquerading as C compilers
4035     incorrectly reject 9223372036854775807.  */
4036 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4037   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4038                        && LARGE_OFF_T % 2147483647 == 1)
4039                       ? 1 : -1];
4040 int
4041 main ()
4042 {
4043
4044   ;
4045   return 0;
4046 }
4047 _ACEOF
4048 rm -f conftest.$ac_objext
4049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4050   (eval $ac_compile) 2>&5
4051   ac_status=$?
4052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053   (exit $ac_status); } &&
4054          { ac_try='test -s conftest.$ac_objext'
4055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4056   (eval $ac_try) 2>&5
4057   ac_status=$?
4058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059   (exit $ac_status); }; }; then
4060   break
4061 else
4062   echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4064
4065 fi
4066 rm -f conftest.$ac_objext conftest.$ac_ext
4067   cat >conftest.$ac_ext <<_ACEOF
4068 #line $LINENO "configure"
4069 /* confdefs.h.  */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h.  */
4074 #define _FILE_OFFSET_BITS 64
4075 #include <sys/types.h>
4076  /* Check that off_t can represent 2**63 - 1 correctly.
4077     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4078     since some C++ compilers masquerading as C compilers
4079     incorrectly reject 9223372036854775807.  */
4080 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4081   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4082                        && LARGE_OFF_T % 2147483647 == 1)
4083                       ? 1 : -1];
4084 int
4085 main ()
4086 {
4087
4088   ;
4089   return 0;
4090 }
4091 _ACEOF
4092 rm -f conftest.$ac_objext
4093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4094   (eval $ac_compile) 2>&5
4095   ac_status=$?
4096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097   (exit $ac_status); } &&
4098          { ac_try='test -s conftest.$ac_objext'
4099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100   (eval $ac_try) 2>&5
4101   ac_status=$?
4102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103   (exit $ac_status); }; }; then
4104   ac_cv_sys_file_offset_bits=64; break
4105 else
4106   echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4108
4109 fi
4110 rm -f conftest.$ac_objext conftest.$ac_ext
4111   break
4112 done
4113 fi
4114 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4115 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4116 if test "$ac_cv_sys_file_offset_bits" != no; then
4117
4118 cat >>confdefs.h <<_ACEOF
4119 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4120 _ACEOF
4121
4122 fi
4123 rm -f conftest*
4124   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4125 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4126 if test "${ac_cv_sys_large_files+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129   while :; do
4130   ac_cv_sys_large_files=no
4131   cat >conftest.$ac_ext <<_ACEOF
4132 #line $LINENO "configure"
4133 /* confdefs.h.  */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h.  */
4138 #include <sys/types.h>
4139  /* Check that off_t can represent 2**63 - 1 correctly.
4140     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4141     since some C++ compilers masquerading as C compilers
4142     incorrectly reject 9223372036854775807.  */
4143 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4144   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4145                        && LARGE_OFF_T % 2147483647 == 1)
4146                       ? 1 : -1];
4147 int
4148 main ()
4149 {
4150
4151   ;
4152   return 0;
4153 }
4154 _ACEOF
4155 rm -f conftest.$ac_objext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157   (eval $ac_compile) 2>&5
4158   ac_status=$?
4159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160   (exit $ac_status); } &&
4161          { ac_try='test -s conftest.$ac_objext'
4162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163   (eval $ac_try) 2>&5
4164   ac_status=$?
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); }; }; then
4167   break
4168 else
4169   echo "$as_me: failed program was:" >&5
4170 sed 's/^/| /' conftest.$ac_ext >&5
4171
4172 fi
4173 rm -f conftest.$ac_objext conftest.$ac_ext
4174   cat >conftest.$ac_ext <<_ACEOF
4175 #line $LINENO "configure"
4176 /* confdefs.h.  */
4177 _ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h.  */
4181 #define _LARGE_FILES 1
4182 #include <sys/types.h>
4183  /* Check that off_t can represent 2**63 - 1 correctly.
4184     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4185     since some C++ compilers masquerading as C compilers
4186     incorrectly reject 9223372036854775807.  */
4187 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4188   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4189                        && LARGE_OFF_T % 2147483647 == 1)
4190                       ? 1 : -1];
4191 int
4192 main ()
4193 {
4194
4195   ;
4196   return 0;
4197 }
4198 _ACEOF
4199 rm -f conftest.$ac_objext
4200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4201   (eval $ac_compile) 2>&5
4202   ac_status=$?
4203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204   (exit $ac_status); } &&
4205          { ac_try='test -s conftest.$ac_objext'
4206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207   (eval $ac_try) 2>&5
4208   ac_status=$?
4209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210   (exit $ac_status); }; }; then
4211   ac_cv_sys_large_files=1; break
4212 else
4213   echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4215
4216 fi
4217 rm -f conftest.$ac_objext conftest.$ac_ext
4218   break
4219 done
4220 fi
4221 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4222 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4223 if test "$ac_cv_sys_large_files" != no; then
4224
4225 cat >>confdefs.h <<_ACEOF
4226 #define _LARGE_FILES $ac_cv_sys_large_files
4227 _ACEOF
4228
4229 fi
4230 rm -f conftest*
4231 fi
4232
4233
4234
4235
4236 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4237 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
4238 if test "${am_cv_prog_cc_stdc+set}" = set; then
4239   echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241   am_cv_prog_cc_stdc=no
4242 ac_save_CC="$CC"
4243 # Don't try gcc -ansi; that turns off useful extensions and
4244 # breaks some systems' header files.
4245 # AIX                   -qlanglvl=ansi
4246 # Ultrix and OSF/1      -std1
4247 # HP-UX 10.20 and later -Ae
4248 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4249 # SVR4                  -Xc -D__EXTENSIONS__
4250 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4251 do
4252   CC="$ac_save_CC $ac_arg"
4253   cat >conftest.$ac_ext <<_ACEOF
4254 #line $LINENO "configure"
4255 /* confdefs.h.  */
4256 _ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h.  */
4260 #include <stdarg.h>
4261 #include <stdio.h>
4262 #include <sys/types.h>
4263 #include <sys/stat.h>
4264 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4265 struct buf { int x; };
4266 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4267 static char *e (p, i)
4268      char **p;
4269      int i;
4270 {
4271   return p[i];
4272 }
4273 static char *f (char * (*g) (char **, int), char **p, ...)
4274 {
4275   char *s;
4276   va_list v;
4277   va_start (v,p);
4278   s = g (p, va_arg (v,int));
4279   va_end (v);
4280   return s;
4281 }
4282 int test (int i, double x);
4283 struct s1 {int (*f) (int a);};
4284 struct s2 {int (*f) (double a);};
4285 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4286 int argc;
4287 char **argv;
4288
4289 int
4290 main ()
4291 {
4292
4293 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4294
4295   ;
4296   return 0;
4297 }
4298 _ACEOF
4299 rm -f conftest.$ac_objext
4300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4301   (eval $ac_compile) 2>&5
4302   ac_status=$?
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); } &&
4305          { ac_try='test -s conftest.$ac_objext'
4306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4307   (eval $ac_try) 2>&5
4308   ac_status=$?
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); }; }; then
4311   am_cv_prog_cc_stdc="$ac_arg"; break
4312 else
4313   echo "$as_me: failed program was:" >&5
4314 sed 's/^/| /' conftest.$ac_ext >&5
4315
4316 fi
4317 rm -f conftest.$ac_objext conftest.$ac_ext
4318 done
4319 CC="$ac_save_CC"
4320
4321 fi
4322
4323 if test -z "$am_cv_prog_cc_stdc"; then
4324   echo "$as_me:$LINENO: result: none needed" >&5
4325 echo "${ECHO_T}none needed" >&6
4326 else
4327   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4328 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
4329 fi
4330 case "x$am_cv_prog_cc_stdc" in
4331   x|xno) ;;
4332   *) CC="$CC $am_cv_prog_cc_stdc" ;;
4333 esac
4334
4335
4336
4337 echo "$as_me:$LINENO: checking for function prototypes" >&5
4338 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4339 if test "$am_cv_prog_cc_stdc" != no; then
4340   echo "$as_me:$LINENO: result: yes" >&5
4341 echo "${ECHO_T}yes" >&6
4342
4343 cat >>confdefs.h <<\_ACEOF
4344 #define PROTOTYPES 1
4345 _ACEOF
4346
4347   U= ANSI2KNR=
4348 else
4349   echo "$as_me:$LINENO: result: no" >&5
4350 echo "${ECHO_T}no" >&6
4351   U=_ ANSI2KNR=./ansi2knr
4352 fi
4353 # Ensure some checks needed by ansi2knr itself.
4354 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4355 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4356 if test "${ac_cv_header_stdc+set}" = set; then
4357   echo $ECHO_N "(cached) $ECHO_C" >&6
4358 else
4359   cat >conftest.$ac_ext <<_ACEOF
4360 #line $LINENO "configure"
4361 /* confdefs.h.  */
4362 _ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h.  */
4366 #include <stdlib.h>
4367 #include <stdarg.h>
4368 #include <string.h>
4369 #include <float.h>
4370
4371 int
4372 main ()
4373 {
4374
4375   ;
4376   return 0;
4377 }
4378 _ACEOF
4379 rm -f conftest.$ac_objext
4380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4381   (eval $ac_compile) 2>&5
4382   ac_status=$?
4383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384   (exit $ac_status); } &&
4385          { ac_try='test -s conftest.$ac_objext'
4386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387   (eval $ac_try) 2>&5
4388   ac_status=$?
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); }; }; then
4391   ac_cv_header_stdc=yes
4392 else
4393   echo "$as_me: failed program was:" >&5
4394 sed 's/^/| /' conftest.$ac_ext >&5
4395
4396 ac_cv_header_stdc=no
4397 fi
4398 rm -f conftest.$ac_objext conftest.$ac_ext
4399
4400 if test $ac_cv_header_stdc = yes; then
4401   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4402   cat >conftest.$ac_ext <<_ACEOF
4403 #line $LINENO "configure"
4404 /* confdefs.h.  */
4405 _ACEOF
4406 cat confdefs.h >>conftest.$ac_ext
4407 cat >>conftest.$ac_ext <<_ACEOF
4408 /* end confdefs.h.  */
4409 #include <string.h>
4410
4411 _ACEOF
4412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4413   $EGREP "memchr" >/dev/null 2>&1; then
4414   :
4415 else
4416   ac_cv_header_stdc=no
4417 fi
4418 rm -f conftest*
4419
4420 fi
4421
4422 if test $ac_cv_header_stdc = yes; then
4423   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4424   cat >conftest.$ac_ext <<_ACEOF
4425 #line $LINENO "configure"
4426 /* confdefs.h.  */
4427 _ACEOF
4428 cat confdefs.h >>conftest.$ac_ext
4429 cat >>conftest.$ac_ext <<_ACEOF
4430 /* end confdefs.h.  */
4431 #include <stdlib.h>
4432
4433 _ACEOF
4434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4435   $EGREP "free" >/dev/null 2>&1; then
4436   :
4437 else
4438   ac_cv_header_stdc=no
4439 fi
4440 rm -f conftest*
4441
4442 fi
4443
4444 if test $ac_cv_header_stdc = yes; then
4445   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4446   if test "$cross_compiling" = yes; then
4447   :
4448 else
4449   cat >conftest.$ac_ext <<_ACEOF
4450 #line $LINENO "configure"
4451 /* confdefs.h.  */
4452 _ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h.  */
4456 #include <ctype.h>
4457 #if ((' ' & 0x0FF) == 0x020)
4458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4460 #else
4461 # define ISLOWER(c) \
4462                    (('a' <= (c) && (c) <= 'i') \
4463                      || ('j' <= (c) && (c) <= 'r') \
4464                      || ('s' <= (c) && (c) <= 'z'))
4465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4466 #endif
4467
4468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4469 int
4470 main ()
4471 {
4472   int i;
4473   for (i = 0; i < 256; i++)
4474     if (XOR (islower (i), ISLOWER (i))
4475         || toupper (i) != TOUPPER (i))
4476       exit(2);
4477   exit (0);
4478 }
4479 _ACEOF
4480 rm -f conftest$ac_exeext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4482   (eval $ac_link) 2>&5
4483   ac_status=$?
4484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487   (eval $ac_try) 2>&5
4488   ac_status=$?
4489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); }; }; then
4491   :
4492 else
4493   echo "$as_me: program exited with status $ac_status" >&5
4494 echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4496
4497 ( exit $ac_status )
4498 ac_cv_header_stdc=no
4499 fi
4500 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4501 fi
4502 fi
4503 fi
4504 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4505 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4506 if test $ac_cv_header_stdc = yes; then
4507
4508 cat >>confdefs.h <<\_ACEOF
4509 #define STDC_HEADERS 1
4510 _ACEOF
4511
4512 fi
4513
4514
4515 for ac_header in string.h
4516 do
4517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4519   echo "$as_me:$LINENO: checking for $ac_header" >&5
4520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4522   echo $ECHO_N "(cached) $ECHO_C" >&6
4523 fi
4524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4526 else
4527   # Is the header compilable?
4528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4530 cat >conftest.$ac_ext <<_ACEOF
4531 #line $LINENO "configure"
4532 /* confdefs.h.  */
4533 _ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4536 /* end confdefs.h.  */
4537 $ac_includes_default
4538 #include <$ac_header>
4539 _ACEOF
4540 rm -f conftest.$ac_objext
4541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4542   (eval $ac_compile) 2>&5
4543   ac_status=$?
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); } &&
4546          { ac_try='test -s conftest.$ac_objext'
4547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548   (eval $ac_try) 2>&5
4549   ac_status=$?
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); }; }; then
4552   ac_header_compiler=yes
4553 else
4554   echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4556
4557 ac_header_compiler=no
4558 fi
4559 rm -f conftest.$ac_objext conftest.$ac_ext
4560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4561 echo "${ECHO_T}$ac_header_compiler" >&6
4562
4563 # Is the header present?
4564 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4566 cat >conftest.$ac_ext <<_ACEOF
4567 #line $LINENO "configure"
4568 /* confdefs.h.  */
4569 _ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h.  */
4573 #include <$ac_header>
4574 _ACEOF
4575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4576   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4577   ac_status=$?
4578   grep -v '^ *+' conftest.er1 >conftest.err
4579   rm -f conftest.er1
4580   cat conftest.err >&5
4581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); } >/dev/null; then
4583   if test -s conftest.err; then
4584     ac_cpp_err=$ac_c_preproc_warn_flag
4585   else
4586     ac_cpp_err=
4587   fi
4588 else
4589   ac_cpp_err=yes
4590 fi
4591 if test -z "$ac_cpp_err"; then
4592   ac_header_preproc=yes
4593 else
4594   echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4596
4597   ac_header_preproc=no
4598 fi
4599 rm -f conftest.err conftest.$ac_ext
4600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4601 echo "${ECHO_T}$ac_header_preproc" >&6
4602
4603 # So?  What about this header?
4604 case $ac_header_compiler:$ac_header_preproc in
4605   yes:no )
4606     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4610     (
4611       cat <<\_ASBOX
4612 ## ------------------------------------ ##
4613 ## Report this to bug-autoconf@gnu.org. ##
4614 ## ------------------------------------ ##
4615 _ASBOX
4616     ) |
4617       sed "s/^/$as_me: WARNING:     /" >&2
4618     ;;
4619   no:yes )
4620     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4622     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4626     (
4627       cat <<\_ASBOX
4628 ## ------------------------------------ ##
4629 ## Report this to bug-autoconf@gnu.org. ##
4630 ## ------------------------------------ ##
4631 _ASBOX
4632     ) |
4633       sed "s/^/$as_me: WARNING:     /" >&2
4634     ;;
4635 esac
4636 echo "$as_me:$LINENO: checking for $ac_header" >&5
4637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4639   echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641   eval "$as_ac_Header=$ac_header_preproc"
4642 fi
4643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4645
4646 fi
4647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4648   cat >>confdefs.h <<_ACEOF
4649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4650 _ACEOF
4651
4652 fi
4653
4654 done
4655
4656
4657 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4658 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4659 if test "${ac_cv_c_bigendian+set}" = set; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   # See if sys/param.h defines the BYTE_ORDER macro.
4663 cat >conftest.$ac_ext <<_ACEOF
4664 #line $LINENO "configure"
4665 /* confdefs.h.  */
4666 _ACEOF
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h.  */
4670 #include <sys/types.h>
4671 #include <sys/param.h>
4672
4673 int
4674 main ()
4675 {
4676 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4677  bogus endian macros
4678 #endif
4679
4680   ;
4681   return 0;
4682 }
4683 _ACEOF
4684 rm -f conftest.$ac_objext
4685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4686   (eval $ac_compile) 2>&5
4687   ac_status=$?
4688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689   (exit $ac_status); } &&
4690          { ac_try='test -s conftest.$ac_objext'
4691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692   (eval $ac_try) 2>&5
4693   ac_status=$?
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); }; }; then
4696   # It does; now see whether it defined to BIG_ENDIAN or not.
4697 cat >conftest.$ac_ext <<_ACEOF
4698 #line $LINENO "configure"
4699 /* confdefs.h.  */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h.  */
4704 #include <sys/types.h>
4705 #include <sys/param.h>
4706
4707 int
4708 main ()
4709 {
4710 #if BYTE_ORDER != BIG_ENDIAN
4711  not big endian
4712 #endif
4713
4714   ;
4715   return 0;
4716 }
4717 _ACEOF
4718 rm -f conftest.$ac_objext
4719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4720   (eval $ac_compile) 2>&5
4721   ac_status=$?
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); } &&
4724          { ac_try='test -s conftest.$ac_objext'
4725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726   (eval $ac_try) 2>&5
4727   ac_status=$?
4728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729   (exit $ac_status); }; }; then
4730   ac_cv_c_bigendian=yes
4731 else
4732   echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4734
4735 ac_cv_c_bigendian=no
4736 fi
4737 rm -f conftest.$ac_objext conftest.$ac_ext
4738 else
4739   echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4741
4742 # It does not; compile a test program.
4743 if test "$cross_compiling" = yes; then
4744   # try to guess the endianness by grepping values into an object file
4745   ac_cv_c_bigendian=unknown
4746   cat >conftest.$ac_ext <<_ACEOF
4747 #line $LINENO "configure"
4748 /* confdefs.h.  */
4749 _ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h.  */
4753 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4754 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4755 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4756 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4757 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4758 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4759 int
4760 main ()
4761 {
4762  _ascii (); _ebcdic ();
4763   ;
4764   return 0;
4765 }
4766 _ACEOF
4767 rm -f conftest.$ac_objext
4768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4769   (eval $ac_compile) 2>&5
4770   ac_status=$?
4771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772   (exit $ac_status); } &&
4773          { ac_try='test -s conftest.$ac_objext'
4774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775   (eval $ac_try) 2>&5
4776   ac_status=$?
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); }; }; then
4779   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4780   ac_cv_c_bigendian=yes
4781 fi
4782 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4783   if test "$ac_cv_c_bigendian" = unknown; then
4784     ac_cv_c_bigendian=no
4785   else
4786     # finding both strings is unlikely to happen, but who knows?
4787     ac_cv_c_bigendian=unknown
4788   fi
4789 fi
4790 else
4791   echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4793
4794 fi
4795 rm -f conftest.$ac_objext conftest.$ac_ext
4796 else
4797   cat >conftest.$ac_ext <<_ACEOF
4798 #line $LINENO "configure"
4799 /* confdefs.h.  */
4800 _ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h.  */
4804 int
4805 main ()
4806 {
4807   /* Are we little or big endian?  From Harbison&Steele.  */
4808   union
4809   {
4810     long l;
4811     char c[sizeof (long)];
4812   } u;
4813   u.l = 1;
4814   exit (u.c[sizeof (long) - 1] == 1);
4815 }
4816 _ACEOF
4817 rm -f conftest$ac_exeext
4818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4819   (eval $ac_link) 2>&5
4820   ac_status=$?
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824   (eval $ac_try) 2>&5
4825   ac_status=$?
4826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827   (exit $ac_status); }; }; then
4828   ac_cv_c_bigendian=no
4829 else
4830   echo "$as_me: program exited with status $ac_status" >&5
4831 echo "$as_me: failed program was:" >&5
4832 sed 's/^/| /' conftest.$ac_ext >&5
4833
4834 ( exit $ac_status )
4835 ac_cv_c_bigendian=yes
4836 fi
4837 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4838 fi
4839 fi
4840 rm -f conftest.$ac_objext conftest.$ac_ext
4841 fi
4842 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4843 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4844 case $ac_cv_c_bigendian in
4845   yes)
4846
4847 cat >>confdefs.h <<\_ACEOF
4848 #define WORDS_BIGENDIAN 1
4849 _ACEOF
4850  ;;
4851   no)
4852      ;;
4853   *)
4854     { { echo "$as_me:$LINENO: error: unknown endianness
4855 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4856 echo "$as_me: error: unknown endianness
4857 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4858    { (exit 1); exit 1; }; } ;;
4859 esac
4860
4861 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4862 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4863 if test "${ac_cv_c_const+set}" = set; then
4864   echo $ECHO_N "(cached) $ECHO_C" >&6
4865 else
4866   cat >conftest.$ac_ext <<_ACEOF
4867 #line $LINENO "configure"
4868 /* confdefs.h.  */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h.  */
4873
4874 int
4875 main ()
4876 {
4877 /* FIXME: Include the comments suggested by Paul. */
4878 #ifndef __cplusplus
4879   /* Ultrix mips cc rejects this.  */
4880   typedef int charset[2];
4881   const charset x;
4882   /* SunOS 4.1.1 cc rejects this.  */
4883   char const *const *ccp;
4884   char **p;
4885   /* NEC SVR4.0.2 mips cc rejects this.  */
4886   struct point {int x, y;};
4887   static struct point const zero = {0,0};
4888   /* AIX XL C 1.02.0.0 rejects this.
4889      It does not let you subtract one const X* pointer from another in
4890      an arm of an if-expression whose if-part is not a constant
4891      expression */
4892   const char *g = "string";
4893   ccp = &g + (g ? g-g : 0);
4894   /* HPUX 7.0 cc rejects these. */
4895   ++ccp;
4896   p = (char**) ccp;
4897   ccp = (char const *const *) p;
4898   { /* SCO 3.2v4 cc rejects this.  */
4899     char *t;
4900     char const *s = 0 ? (char *) 0 : (char const *) 0;
4901
4902     *t++ = 0;
4903   }
4904   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4905     int x[] = {25, 17};
4906     const int *foo = &x[0];
4907     ++foo;
4908   }
4909   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4910     typedef const int *iptr;
4911     iptr p = 0;
4912     ++p;
4913   }
4914   { /* AIX XL C 1.02.0.0 rejects this saying
4915        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4916     struct s { int j; const int *ap[3]; };
4917     struct s *b; b->j = 5;
4918   }
4919   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4920     const int foo = 10;
4921   }
4922 #endif
4923
4924   ;
4925   return 0;
4926 }
4927 _ACEOF
4928 rm -f conftest.$ac_objext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4930   (eval $ac_compile) 2>&5
4931   ac_status=$?
4932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933   (exit $ac_status); } &&
4934          { ac_try='test -s conftest.$ac_objext'
4935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4936   (eval $ac_try) 2>&5
4937   ac_status=$?
4938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939   (exit $ac_status); }; }; then
4940   ac_cv_c_const=yes
4941 else
4942   echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4944
4945 ac_cv_c_const=no
4946 fi
4947 rm -f conftest.$ac_objext conftest.$ac_ext
4948 fi
4949 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4950 echo "${ECHO_T}$ac_cv_c_const" >&6
4951 if test $ac_cv_c_const = no; then
4952
4953 cat >>confdefs.h <<\_ACEOF
4954 #define const
4955 _ACEOF
4956
4957 fi
4958
4959 echo "$as_me:$LINENO: checking for working volatile" >&5
4960 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4961 if test "${ac_cv_c_volatile+set}" = set; then
4962   echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964   cat >conftest.$ac_ext <<_ACEOF
4965 #line $LINENO "configure"
4966 /* confdefs.h.  */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h.  */
4971
4972 int
4973 main ()
4974 {
4975
4976 volatile int x;
4977 int * volatile y;
4978   ;
4979   return 0;
4980 }
4981 _ACEOF
4982 rm -f conftest.$ac_objext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984   (eval $ac_compile) 2>&5
4985   ac_status=$?
4986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987   (exit $ac_status); } &&
4988          { ac_try='test -s conftest.$ac_objext'
4989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990   (eval $ac_try) 2>&5
4991   ac_status=$?
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); }; }; then
4994   ac_cv_c_volatile=yes
4995 else
4996   echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4998
4999 ac_cv_c_volatile=no
5000 fi
5001 rm -f conftest.$ac_objext conftest.$ac_ext
5002 fi
5003 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5004 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5005 if test $ac_cv_c_volatile = no; then
5006
5007 cat >>confdefs.h <<\_ACEOF
5008 #define volatile
5009 _ACEOF
5010
5011 fi
5012
5013 echo "$as_me:$LINENO: checking for inline" >&5
5014 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5015 if test "${ac_cv_c_inline+set}" = set; then
5016   echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018   ac_cv_c_inline=no
5019 for ac_kw in inline __inline__ __inline; do
5020   cat >conftest.$ac_ext <<_ACEOF
5021 #line $LINENO "configure"
5022 /* confdefs.h.  */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h.  */
5027 #ifndef __cplusplus
5028 typedef int foo_t;
5029 static $ac_kw foo_t static_foo () {return 0; }
5030 $ac_kw foo_t foo () {return 0; }
5031 #endif
5032
5033 _ACEOF
5034 rm -f conftest.$ac_objext
5035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5036   (eval $ac_compile) 2>&5
5037   ac_status=$?
5038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039   (exit $ac_status); } &&
5040          { ac_try='test -s conftest.$ac_objext'
5041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042   (eval $ac_try) 2>&5
5043   ac_status=$?
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); }; }; then
5046   ac_cv_c_inline=$ac_kw; break
5047 else
5048   echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5050
5051 fi
5052 rm -f conftest.$ac_objext conftest.$ac_ext
5053 done
5054
5055 fi
5056 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5057 echo "${ECHO_T}$ac_cv_c_inline" >&6
5058 case $ac_cv_c_inline in
5059   inline | yes) ;;
5060   no)
5061 cat >>confdefs.h <<\_ACEOF
5062 #define inline
5063 _ACEOF
5064  ;;
5065   *)  cat >>confdefs.h <<_ACEOF
5066 #define inline $ac_cv_c_inline
5067 _ACEOF
5068  ;;
5069 esac
5070
5071 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
5072 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
5073 if test "${ac_cv_c_long_double+set}" = set; then
5074   echo $ECHO_N "(cached) $ECHO_C" >&6
5075 else
5076   cat >conftest.$ac_ext <<_ACEOF
5077 #line $LINENO "configure"
5078 /* confdefs.h.  */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h.  */
5083 #include <float.h>
5084           long double foo = 0.0;
5085 int
5086 main ()
5087 {
5088 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug.  */
5089           (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
5090           | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
5091 test_array [0] = 0
5092
5093   ;
5094   return 0;
5095 }
5096 _ACEOF
5097 rm -f conftest.$ac_objext
5098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5099   (eval $ac_compile) 2>&5
5100   ac_status=$?
5101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102   (exit $ac_status); } &&
5103          { ac_try='test -s conftest.$ac_objext'
5104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105   (eval $ac_try) 2>&5
5106   ac_status=$?
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); }; }; then
5109   ac_cv_c_long_double=yes
5110 else
5111   echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5113
5114 ac_cv_c_long_double=no
5115 fi
5116 rm -f conftest.$ac_objext conftest.$ac_ext
5117 fi
5118 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
5119 echo "${ECHO_T}$ac_cv_c_long_double" >&6
5120 if test $ac_cv_c_long_double = yes; then
5121
5122 cat >>confdefs.h <<\_ACEOF
5123 #define HAVE_LONG_DOUBLE 1
5124 _ACEOF
5125
5126 fi
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166 for ac_header in \
5167     errno.h  \
5168     fcntl.h \
5169     float.h \
5170     hurd.h \
5171     limits.h \
5172     memory.h \
5173     mntent.h \
5174     mnttab.h \
5175     netdb.h \
5176     paths.h \
5177     stdlib.h \
5178     stddef.h \
5179     stdint.h \
5180     string.h \
5181     sys/filsys.h \
5182     sys/fs/s5param.h \
5183     sys/fs_types.h \
5184     sys/fstyp.h \
5185     sys/ioctl.h \
5186     sys/mntent.h \
5187     sys/mount.h \
5188     sys/param.h \
5189     sys/resource.h \
5190     sys/socket.h \
5191     sys/statfs.h \
5192     sys/statvfs.h \
5193     sys/sysctl.h \
5194     sys/systeminfo.h \
5195     sys/time.h \
5196     sys/timeb.h \
5197     sys/vfs.h \
5198     sys/wait.h \
5199     syslog.h \
5200     termios.h \
5201     unistd.h \
5202     utime.h \
5203     values.h \
5204
5205 do
5206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5208   echo "$as_me:$LINENO: checking for $ac_header" >&5
5209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5211   echo $ECHO_N "(cached) $ECHO_C" >&6
5212 fi
5213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5215 else
5216   # Is the header compilable?
5217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5219 cat >conftest.$ac_ext <<_ACEOF
5220 #line $LINENO "configure"
5221 /* confdefs.h.  */
5222 _ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h.  */
5226 $ac_includes_default
5227 #include <$ac_header>
5228 _ACEOF
5229 rm -f conftest.$ac_objext
5230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5231   (eval $ac_compile) 2>&5
5232   ac_status=$?
5233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234   (exit $ac_status); } &&
5235          { ac_try='test -s conftest.$ac_objext'
5236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237   (eval $ac_try) 2>&5
5238   ac_status=$?
5239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240   (exit $ac_status); }; }; then
5241   ac_header_compiler=yes
5242 else
5243   echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5245
5246 ac_header_compiler=no
5247 fi
5248 rm -f conftest.$ac_objext conftest.$ac_ext
5249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5250 echo "${ECHO_T}$ac_header_compiler" >&6
5251
5252 # Is the header present?
5253 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5255 cat >conftest.$ac_ext <<_ACEOF
5256 #line $LINENO "configure"
5257 /* confdefs.h.  */
5258 _ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h.  */
5262 #include <$ac_header>
5263 _ACEOF
5264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5265   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5266   ac_status=$?
5267   grep -v '^ *+' conftest.er1 >conftest.err
5268   rm -f conftest.er1
5269   cat conftest.err >&5
5270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271   (exit $ac_status); } >/dev/null; then
5272   if test -s conftest.err; then
5273     ac_cpp_err=$ac_c_preproc_warn_flag
5274   else
5275     ac_cpp_err=
5276   fi
5277 else
5278   ac_cpp_err=yes
5279 fi
5280 if test -z "$ac_cpp_err"; then
5281   ac_header_preproc=yes
5282 else
5283   echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5285
5286   ac_header_preproc=no
5287 fi
5288 rm -f conftest.err conftest.$ac_ext
5289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5290 echo "${ECHO_T}$ac_header_preproc" >&6
5291
5292 # So?  What about this header?
5293 case $ac_header_compiler:$ac_header_preproc in
5294   yes:no )
5295     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5299     (
5300       cat <<\_ASBOX
5301 ## ------------------------------------ ##
5302 ## Report this to bug-autoconf@gnu.org. ##
5303 ## ------------------------------------ ##
5304 _ASBOX
5305     ) |
5306       sed "s/^/$as_me: WARNING:     /" >&2
5307     ;;
5308   no:yes )
5309     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5311     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5315     (
5316       cat <<\_ASBOX
5317 ## ------------------------------------ ##
5318 ## Report this to bug-autoconf@gnu.org. ##
5319 ## ------------------------------------ ##
5320 _ASBOX
5321     ) |
5322       sed "s/^/$as_me: WARNING:     /" >&2
5323     ;;
5324 esac
5325 echo "$as_me:$LINENO: checking for $ac_header" >&5
5326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5328   echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5330   eval "$as_ac_Header=$ac_header_preproc"
5331 fi
5332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5334
5335 fi
5336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5337   cat >>confdefs.h <<_ACEOF
5338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5339 _ACEOF
5340
5341 fi
5342
5343 done
5344
5345
5346
5347
5348
5349
5350
5351 ac_header_dirent=no
5352 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5353   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5354 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5355 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5357   echo $ECHO_N "(cached) $ECHO_C" >&6
5358 else
5359   cat >conftest.$ac_ext <<_ACEOF
5360 #line $LINENO "configure"
5361 /* confdefs.h.  */
5362 _ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h.  */
5366 #include <sys/types.h>
5367 #include <$ac_hdr>
5368
5369 int
5370 main ()
5371 {
5372 if ((DIR *) 0)
5373 return 0;
5374   ;
5375   return 0;
5376 }
5377 _ACEOF
5378 rm -f conftest.$ac_objext
5379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5380   (eval $ac_compile) 2>&5
5381   ac_status=$?
5382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383   (exit $ac_status); } &&
5384          { ac_try='test -s conftest.$ac_objext'
5385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5386   (eval $ac_try) 2>&5
5387   ac_status=$?
5388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389   (exit $ac_status); }; }; then
5390   eval "$as_ac_Header=yes"
5391 else
5392   echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5394
5395 eval "$as_ac_Header=no"
5396 fi
5397 rm -f conftest.$ac_objext conftest.$ac_ext
5398 fi
5399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5402   cat >>confdefs.h <<_ACEOF
5403 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5404 _ACEOF
5405
5406 ac_header_dirent=$ac_hdr; break
5407 fi
5408
5409 done
5410 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5411 if test $ac_header_dirent = dirent.h; then
5412
5413   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5414 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5415 if test "${ac_cv_search_opendir+set}" = set; then
5416   echo $ECHO_N "(cached) $ECHO_C" >&6
5417 else
5418
5419     ac_func_search_save_LIBS=$LIBS
5420     ac_cv_search_opendir=no
5421     cat >conftest.$ac_ext <<_ACEOF
5422 #line $LINENO "configure"
5423 /* confdefs.h.  */
5424 _ACEOF
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h.  */
5428
5429 /* Override any gcc2 internal prototype to avoid an error.  */
5430 #ifdef __cplusplus
5431 extern "C"
5432 #endif
5433 /* We use char because int might match the return type of a gcc2
5434    builtin and then its argument prototype would still apply.  */
5435 char opendir ();
5436 int
5437 main ()
5438 {
5439 opendir ();
5440   ;
5441   return 0;
5442 }
5443 _ACEOF
5444 rm -f conftest.$ac_objext conftest$ac_exeext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5446   (eval $ac_link) 2>&5
5447   ac_status=$?
5448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449   (exit $ac_status); } &&
5450          { ac_try='test -s conftest$ac_exeext'
5451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5452   (eval $ac_try) 2>&5
5453   ac_status=$?
5454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455   (exit $ac_status); }; }; then
5456   ac_cv_search_opendir='none required'
5457 else
5458   echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5460
5461 fi
5462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5463     if test "$ac_cv_search_opendir" = no; then
5464       for ac_lib in dir; do
5465         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5466         cat >conftest.$ac_ext <<_ACEOF
5467 #line $LINENO "configure"
5468 /* confdefs.h.  */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h.  */
5473
5474 /* Override any gcc2 internal prototype to avoid an error.  */
5475 #ifdef __cplusplus
5476 extern "C"
5477 #endif
5478 /* We use char because int might match the return type of a gcc2
5479    builtin and then its argument prototype would still apply.  */
5480 char opendir ();
5481 int
5482 main ()
5483 {
5484 opendir ();
5485   ;
5486   return 0;
5487 }
5488 _ACEOF
5489 rm -f conftest.$ac_objext conftest$ac_exeext
5490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5491   (eval $ac_link) 2>&5
5492   ac_status=$?
5493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494   (exit $ac_status); } &&
5495          { ac_try='test -s conftest$ac_exeext'
5496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497   (eval $ac_try) 2>&5
5498   ac_status=$?
5499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500   (exit $ac_status); }; }; then
5501   ac_cv_search_opendir="-l$ac_lib"; break
5502 else
5503   echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5505
5506 fi
5507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5508       done
5509     fi
5510     LIBS=$ac_func_search_save_LIBS
5511
5512 fi
5513 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5514 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5515
5516   if test "$ac_cv_search_opendir" = no; then :
5517
5518   else
5519     if test "$ac_cv_search_opendir" = 'none required'; then :
5520
5521     else
5522       LIBS="$ac_cv_search_opendir $LIBS"
5523
5524     fi
5525   fi
5526
5527 else
5528
5529   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5530 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5531 if test "${ac_cv_search_opendir+set}" = set; then
5532   echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534
5535     ac_func_search_save_LIBS=$LIBS
5536     ac_cv_search_opendir=no
5537     cat >conftest.$ac_ext <<_ACEOF
5538 #line $LINENO "configure"
5539 /* confdefs.h.  */
5540 _ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h.  */
5544
5545 /* Override any gcc2 internal prototype to avoid an error.  */
5546 #ifdef __cplusplus
5547 extern "C"
5548 #endif
5549 /* We use char because int might match the return type of a gcc2
5550    builtin and then its argument prototype would still apply.  */
5551 char opendir ();
5552 int
5553 main ()
5554 {
5555 opendir ();
5556   ;
5557   return 0;
5558 }
5559 _ACEOF
5560 rm -f conftest.$ac_objext conftest$ac_exeext
5561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5562   (eval $ac_link) 2>&5
5563   ac_status=$?
5564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565   (exit $ac_status); } &&
5566          { ac_try='test -s conftest$ac_exeext'
5567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568   (eval $ac_try) 2>&5
5569   ac_status=$?
5570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571   (exit $ac_status); }; }; then
5572   ac_cv_search_opendir='none required'
5573 else
5574   echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5576
5577 fi
5578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5579     if test "$ac_cv_search_opendir" = no; then
5580       for ac_lib in x; do
5581         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5582         cat >conftest.$ac_ext <<_ACEOF
5583 #line $LINENO "configure"
5584 /* confdefs.h.  */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h.  */
5589
5590 /* Override any gcc2 internal prototype to avoid an error.  */
5591 #ifdef __cplusplus
5592 extern "C"
5593 #endif
5594 /* We use char because int might match the return type of a gcc2
5595    builtin and then its argument prototype would still apply.  */
5596 char opendir ();
5597 int
5598 main ()
5599 {
5600 opendir ();
5601   ;
5602   return 0;
5603 }
5604 _ACEOF
5605 rm -f conftest.$ac_objext conftest$ac_exeext
5606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5607   (eval $ac_link) 2>&5
5608   ac_status=$?
5609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610   (exit $ac_status); } &&
5611          { ac_try='test -s conftest$ac_exeext'
5612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613   (eval $ac_try) 2>&5
5614   ac_status=$?
5615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616   (exit $ac_status); }; }; then
5617   ac_cv_search_opendir="-l$ac_lib"; break
5618 else
5619   echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5621
5622 fi
5623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5624       done
5625     fi
5626     LIBS=$ac_func_search_save_LIBS
5627
5628 fi
5629 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5630 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5631
5632   if test "$ac_cv_search_opendir" = no; then :
5633
5634   else
5635     if test "$ac_cv_search_opendir" = 'none required'; then :
5636
5637     else
5638       LIBS="$ac_cv_search_opendir $LIBS"
5639
5640     fi
5641   fi
5642
5643 fi
5644
5645 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
5646 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
5647 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
5648   echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650   cat >conftest.$ac_ext <<_ACEOF
5651 #line $LINENO "configure"
5652 /* confdefs.h.  */
5653 _ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h.  */
5657 $ac_includes_default
5658 int
5659 main ()
5660 {
5661 static struct stat ac_aggr;
5662 if (ac_aggr.st_blocks)
5663 return 0;
5664   ;
5665   return 0;
5666 }
5667 _ACEOF
5668 rm -f conftest.$ac_objext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5670   (eval $ac_compile) 2>&5
5671   ac_status=$?
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); } &&
5674          { ac_try='test -s conftest.$ac_objext'
5675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676   (eval $ac_try) 2>&5
5677   ac_status=$?
5678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679   (exit $ac_status); }; }; then
5680   ac_cv_member_struct_stat_st_blocks=yes
5681 else
5682   echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5684
5685 cat >conftest.$ac_ext <<_ACEOF
5686 #line $LINENO "configure"
5687 /* confdefs.h.  */
5688 _ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h.  */
5692 $ac_includes_default
5693 int
5694 main ()
5695 {
5696 static struct stat ac_aggr;
5697 if (sizeof ac_aggr.st_blocks)
5698 return 0;
5699   ;
5700   return 0;
5701 }
5702 _ACEOF
5703 rm -f conftest.$ac_objext
5704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5705   (eval $ac_compile) 2>&5
5706   ac_status=$?
5707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708   (exit $ac_status); } &&
5709          { ac_try='test -s conftest.$ac_objext'
5710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711   (eval $ac_try) 2>&5
5712   ac_status=$?
5713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714   (exit $ac_status); }; }; then
5715   ac_cv_member_struct_stat_st_blocks=yes
5716 else
5717   echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5719
5720 ac_cv_member_struct_stat_st_blocks=no
5721 fi
5722 rm -f conftest.$ac_objext conftest.$ac_ext
5723 fi
5724 rm -f conftest.$ac_objext conftest.$ac_ext
5725 fi
5726 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
5727 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
5728 if test $ac_cv_member_struct_stat_st_blocks = yes; then
5729
5730 cat >>confdefs.h <<_ACEOF
5731 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5732 _ACEOF
5733
5734
5735 cat >>confdefs.h <<\_ACEOF
5736 #define HAVE_ST_BLOCKS 1
5737 _ACEOF
5738
5739 else
5740   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
5741 fi
5742
5743
5744 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5745 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5746 if test "${ac_cv_struct_tm+set}" = set; then
5747   echo $ECHO_N "(cached) $ECHO_C" >&6
5748 else
5749   cat >conftest.$ac_ext <<_ACEOF
5750 #line $LINENO "configure"
5751 /* confdefs.h.  */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h.  */
5756 #include <sys/types.h>
5757 #include <time.h>
5758
5759 int
5760 main ()
5761 {
5762 struct tm *tp; tp->tm_sec;
5763   ;
5764   return 0;
5765 }
5766 _ACEOF
5767 rm -f conftest.$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769   (eval $ac_compile) 2>&5
5770   ac_status=$?
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); } &&
5773          { ac_try='test -s conftest.$ac_objext'
5774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775   (eval $ac_try) 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); }; }; then
5779   ac_cv_struct_tm=time.h
5780 else
5781   echo "$as_me: failed program was:" >&5
5782 sed 's/^/| /' conftest.$ac_ext >&5
5783
5784 ac_cv_struct_tm=sys/time.h
5785 fi
5786 rm -f conftest.$ac_objext conftest.$ac_ext
5787 fi
5788 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5789 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5790 if test $ac_cv_struct_tm = sys/time.h; then
5791
5792 cat >>confdefs.h <<\_ACEOF
5793 #define TM_IN_SYS_TIME 1
5794 _ACEOF
5795
5796 fi
5797
5798 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5799 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5800 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5801   echo $ECHO_N "(cached) $ECHO_C" >&6
5802 else
5803   cat >conftest.$ac_ext <<_ACEOF
5804 #line $LINENO "configure"
5805 /* confdefs.h.  */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h.  */
5810 #include <sys/types.h>
5811 #include <$ac_cv_struct_tm>
5812
5813
5814 int
5815 main ()
5816 {
5817 static struct tm ac_aggr;
5818 if (ac_aggr.tm_zone)
5819 return 0;
5820   ;
5821   return 0;
5822 }
5823 _ACEOF
5824 rm -f conftest.$ac_objext
5825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5826   (eval $ac_compile) 2>&5
5827   ac_status=$?
5828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829   (exit $ac_status); } &&
5830          { ac_try='test -s conftest.$ac_objext'
5831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832   (eval $ac_try) 2>&5
5833   ac_status=$?
5834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835   (exit $ac_status); }; }; then
5836   ac_cv_member_struct_tm_tm_zone=yes
5837 else
5838   echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5840
5841 cat >conftest.$ac_ext <<_ACEOF
5842 #line $LINENO "configure"
5843 /* confdefs.h.  */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h.  */
5848 #include <sys/types.h>
5849 #include <$ac_cv_struct_tm>
5850
5851
5852 int
5853 main ()
5854 {
5855 static struct tm ac_aggr;
5856 if (sizeof ac_aggr.tm_zone)
5857 return 0;
5858   ;
5859   return 0;
5860 }
5861 _ACEOF
5862 rm -f conftest.$ac_objext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5864   (eval $ac_compile) 2>&5
5865   ac_status=$?
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); } &&
5868          { ac_try='test -s conftest.$ac_objext'
5869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870   (eval $ac_try) 2>&5
5871   ac_status=$?
5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873   (exit $ac_status); }; }; then
5874   ac_cv_member_struct_tm_tm_zone=yes
5875 else
5876   echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5878
5879 ac_cv_member_struct_tm_tm_zone=no
5880 fi
5881 rm -f conftest.$ac_objext conftest.$ac_ext
5882 fi
5883 rm -f conftest.$ac_objext conftest.$ac_ext
5884 fi
5885 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5886 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5887 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5888
5889 cat >>confdefs.h <<_ACEOF
5890 #define HAVE_STRUCT_TM_TM_ZONE 1
5891 _ACEOF
5892
5893
5894 fi
5895
5896 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5897
5898 cat >>confdefs.h <<\_ACEOF
5899 #define HAVE_TM_ZONE 1
5900 _ACEOF
5901
5902 else
5903   echo "$as_me:$LINENO: checking for tzname" >&5
5904 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5905 if test "${ac_cv_var_tzname+set}" = set; then
5906   echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908   cat >conftest.$ac_ext <<_ACEOF
5909 #line $LINENO "configure"
5910 /* confdefs.h.  */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h.  */
5915 #include <time.h>
5916 #ifndef tzname /* For SGI.  */
5917 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
5918 #endif
5919
5920 int
5921 main ()
5922 {
5923 atoi(*tzname);
5924   ;
5925   return 0;
5926 }
5927 _ACEOF
5928 rm -f conftest.$ac_objext conftest$ac_exeext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5930   (eval $ac_link) 2>&5
5931   ac_status=$?
5932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933   (exit $ac_status); } &&
5934          { ac_try='test -s conftest$ac_exeext'
5935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936   (eval $ac_try) 2>&5
5937   ac_status=$?
5938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939   (exit $ac_status); }; }; then
5940   ac_cv_var_tzname=yes
5941 else
5942   echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5944
5945 ac_cv_var_tzname=no
5946 fi
5947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5948 fi
5949 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5950 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5951   if test $ac_cv_var_tzname = yes; then
5952
5953 cat >>confdefs.h <<\_ACEOF
5954 #define HAVE_TZNAME 1
5955 _ACEOF
5956
5957   fi
5958 fi
5959
5960 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5961 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5962 if test "${ac_cv_header_stat_broken+set}" = set; then
5963   echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965   cat >conftest.$ac_ext <<_ACEOF
5966 #line $LINENO "configure"
5967 /* confdefs.h.  */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h.  */
5972 #include <sys/types.h>
5973 #include <sys/stat.h>
5974
5975 #if defined(S_ISBLK) && defined(S_IFDIR)
5976 # if S_ISBLK (S_IFDIR)
5977 You lose.
5978 # endif
5979 #endif
5980
5981 #if defined(S_ISBLK) && defined(S_IFCHR)
5982 # if S_ISBLK (S_IFCHR)
5983 You lose.
5984 # endif
5985 #endif
5986
5987 #if defined(S_ISLNK) && defined(S_IFREG)
5988 # if S_ISLNK (S_IFREG)
5989 You lose.
5990 # endif
5991 #endif
5992
5993 #if defined(S_ISSOCK) && defined(S_IFREG)
5994 # if S_ISSOCK (S_IFREG)
5995 You lose.
5996 # endif
5997 #endif
5998
5999 _ACEOF
6000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6001   $EGREP "You lose" >/dev/null 2>&1; then
6002   ac_cv_header_stat_broken=yes
6003 else
6004   ac_cv_header_stat_broken=no
6005 fi
6006 rm -f conftest*
6007
6008 fi
6009 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6010 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6011 if test $ac_cv_header_stat_broken = yes; then
6012
6013 cat >>confdefs.h <<\_ACEOF
6014 #define STAT_MACROS_BROKEN 1
6015 _ACEOF
6016
6017 fi
6018
6019 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
6020 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
6021 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
6022   echo $ECHO_N "(cached) $ECHO_C" >&6
6023 else
6024   ac_save_CPPFLAGS="$CPPFLAGS"
6025     ac_cv_struct_st_mtim_nsec=no
6026     # tv_nsec -- the usual case
6027     # _tv_nsec -- Solaris 2.6, if
6028     #   (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
6029     #    && !defined __EXTENSIONS__)
6030     # st__tim.tv_nsec -- UnixWare 2.1.2
6031     for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
6032       CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
6033       cat >conftest.$ac_ext <<_ACEOF
6034 #line $LINENO "configure"
6035 /* confdefs.h.  */
6036 _ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h.  */
6040 #include <sys/types.h>
6041 #include <sys/stat.h>
6042 int
6043 main ()
6044 {
6045 struct stat s; s.st_mtim.ST_MTIM_NSEC;
6046   ;
6047   return 0;
6048 }
6049 _ACEOF
6050 rm -f conftest.$ac_objext
6051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6052   (eval $ac_compile) 2>&5
6053   ac_status=$?
6054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055   (exit $ac_status); } &&
6056          { ac_try='test -s conftest.$ac_objext'
6057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6058   (eval $ac_try) 2>&5
6059   ac_status=$?
6060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061   (exit $ac_status); }; }; then
6062   ac_cv_struct_st_mtim_nsec=$ac_val; break
6063 else
6064   echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6066
6067 fi
6068 rm -f conftest.$ac_objext conftest.$ac_ext
6069     done
6070     CPPFLAGS="$ac_save_CPPFLAGS"
6071 fi
6072 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
6073 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
6074
6075   if test $ac_cv_struct_st_mtim_nsec != no; then
6076
6077 cat >>confdefs.h <<_ACEOF
6078 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
6079 _ACEOF
6080
6081   fi
6082
6083
6084 echo "$as_me:$LINENO: checking for st_dm_mode in struct stat" >&5
6085 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6
6086 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
6087   echo $ECHO_N "(cached) $ECHO_C" >&6
6088 else
6089   cat >conftest.$ac_ext <<_ACEOF
6090 #line $LINENO "configure"
6091 /* confdefs.h.  */
6092 _ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h.  */
6096 #include <sys/types.h>
6097 #include <sys/stat.h>
6098 int
6099 main ()
6100 {
6101 struct stat s; s.st_dm_mode;
6102   ;
6103   return 0;
6104 }
6105 _ACEOF
6106 rm -f conftest.$ac_objext
6107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6108   (eval $ac_compile) 2>&5
6109   ac_status=$?
6110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111   (exit $ac_status); } &&
6112          { ac_try='test -s conftest.$ac_objext'
6113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114   (eval $ac_try) 2>&5
6115   ac_status=$?
6116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117   (exit $ac_status); }; }; then
6118   ac_cv_struct_st_dm_mode=yes
6119 else
6120   echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6122
6123 ac_cv_struct_st_dm_mode=no
6124 fi
6125 rm -f conftest.$ac_objext conftest.$ac_ext
6126 fi
6127 echo "$as_me:$LINENO: result: $ac_cv_struct_st_dm_mode" >&5
6128 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6
6129
6130   if test $ac_cv_struct_st_dm_mode = yes; then
6131
6132 cat >>confdefs.h <<\_ACEOF
6133 #define HAVE_ST_DM_MODE 1
6134 _ACEOF
6135
6136   fi
6137
6138
6139 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6140 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6141 if test "${ac_cv_header_time+set}" = set; then
6142   echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144   cat >conftest.$ac_ext <<_ACEOF
6145 #line $LINENO "configure"
6146 /* confdefs.h.  */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h.  */
6151 #include <sys/types.h>
6152 #include <sys/time.h>
6153 #include <time.h>
6154
6155 int
6156 main ()
6157 {
6158 if ((struct tm *) 0)
6159 return 0;
6160   ;
6161   return 0;
6162 }
6163 _ACEOF
6164 rm -f conftest.$ac_objext
6165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6166   (eval $ac_compile) 2>&5
6167   ac_status=$?
6168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169   (exit $ac_status); } &&
6170          { ac_try='test -s conftest.$ac_objext'
6171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172   (eval $ac_try) 2>&5
6173   ac_status=$?
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); }; }; then
6176   ac_cv_header_time=yes
6177 else
6178   echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6180
6181 ac_cv_header_time=no
6182 fi
6183 rm -f conftest.$ac_objext conftest.$ac_ext
6184 fi
6185 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6186 echo "${ECHO_T}$ac_cv_header_time" >&6
6187 if test $ac_cv_header_time = yes; then
6188
6189 cat >>confdefs.h <<\_ACEOF
6190 #define TIME_WITH_SYS_TIME 1
6191 _ACEOF
6192
6193 fi
6194
6195
6196
6197   echo "$as_me:$LINENO: checking for struct timespec" >&5
6198 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
6199 if test "${fu_cv_sys_struct_timespec+set}" = set; then
6200   echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202   cat >conftest.$ac_ext <<_ACEOF
6203 #line $LINENO "configure"
6204 /* confdefs.h.  */
6205 _ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h.  */
6209
6210 #      if TIME_WITH_SYS_TIME
6211 #       include <sys/time.h>
6212 #       include <time.h>
6213 #      else
6214 #       if HAVE_SYS_TIME_H
6215 #        include <sys/time.h>
6216 #       else
6217 #        include <time.h>
6218 #       endif
6219 #      endif
6220
6221 int
6222 main ()
6223 {
6224 static struct timespec x; x.tv_sec = x.tv_nsec;
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>&5
6232   ac_status=$?
6233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234   (exit $ac_status); } &&
6235          { ac_try='test -s conftest.$ac_objext'
6236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237   (eval $ac_try) 2>&5
6238   ac_status=$?
6239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240   (exit $ac_status); }; }; then
6241   fu_cv_sys_struct_timespec=yes
6242 else
6243   echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6245
6246 fu_cv_sys_struct_timespec=no
6247 fi
6248 rm -f conftest.$ac_objext conftest.$ac_ext
6249
6250 fi
6251 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
6252 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
6253
6254   if test $fu_cv_sys_struct_timespec = yes; then
6255
6256 cat >>confdefs.h <<\_ACEOF
6257 #define HAVE_STRUCT_TIMESPEC 1
6258 _ACEOF
6259
6260   fi
6261
6262 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6263 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6264 if test "${ac_cv_type_uid_t+set}" = set; then
6265   echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267   cat >conftest.$ac_ext <<_ACEOF
6268 #line $LINENO "configure"
6269 /* confdefs.h.  */
6270 _ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h.  */
6274 #include <sys/types.h>
6275
6276 _ACEOF
6277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6278   $EGREP "uid_t" >/dev/null 2>&1; then
6279   ac_cv_type_uid_t=yes
6280 else
6281   ac_cv_type_uid_t=no
6282 fi
6283 rm -f conftest*
6284
6285 fi
6286 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6287 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6288 if test $ac_cv_type_uid_t = no; then
6289
6290 cat >>confdefs.h <<\_ACEOF
6291 #define uid_t int
6292 _ACEOF
6293
6294
6295 cat >>confdefs.h <<\_ACEOF
6296 #define gid_t int
6297 _ACEOF
6298
6299 fi
6300
6301 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6302 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6303 if test "${ac_cv_type_getgroups+set}" = set; then
6304   echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306   if test "$cross_compiling" = yes; then
6307   ac_cv_type_getgroups=cross
6308 else
6309   cat >conftest.$ac_ext <<_ACEOF
6310 #line $LINENO "configure"
6311 /* confdefs.h.  */
6312 _ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h.  */
6316 /* Thanks to Mike Rendell for this test.  */
6317 #include <sys/types.h>
6318 #define NGID 256
6319 #undef MAX
6320 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6321
6322 int
6323 main ()
6324 {
6325   gid_t gidset[NGID];
6326   int i, n;
6327   union { gid_t gval; long lval; }  val;
6328
6329   val.lval = -1;
6330   for (i = 0; i < NGID; i++)
6331     gidset[i] = val.gval;
6332   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6333                  gidset);
6334   /* Exit non-zero if getgroups seems to require an array of ints.  This
6335      happens when gid_t is short but getgroups modifies an array of ints.  */
6336   exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6337 }
6338 _ACEOF
6339 rm -f conftest$ac_exeext
6340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6341   (eval $ac_link) 2>&5
6342   ac_status=$?
6343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346   (eval $ac_try) 2>&5
6347   ac_status=$?
6348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349   (exit $ac_status); }; }; then
6350   ac_cv_type_getgroups=gid_t
6351 else
6352   echo "$as_me: program exited with status $ac_status" >&5
6353 echo "$as_me: failed program was:" >&5
6354 sed 's/^/| /' conftest.$ac_ext >&5
6355
6356 ( exit $ac_status )
6357 ac_cv_type_getgroups=int
6358 fi
6359 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6360 fi
6361 if test $ac_cv_type_getgroups = cross; then
6362         cat >conftest.$ac_ext <<_ACEOF
6363 #line $LINENO "configure"
6364 /* confdefs.h.  */
6365 _ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h.  */
6369 #include <unistd.h>
6370
6371 _ACEOF
6372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6373   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6374   ac_cv_type_getgroups=gid_t
6375 else
6376   ac_cv_type_getgroups=int
6377 fi
6378 rm -f conftest*
6379
6380 fi
6381 fi
6382 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6383 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
6384
6385 cat >>confdefs.h <<_ACEOF
6386 #define GETGROUPS_T $ac_cv_type_getgroups
6387 _ACEOF
6388
6389
6390 echo "$as_me:$LINENO: checking for mode_t" >&5
6391 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
6392 if test "${ac_cv_type_mode_t+set}" = set; then
6393   echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395   cat >conftest.$ac_ext <<_ACEOF
6396 #line $LINENO "configure"
6397 /* confdefs.h.  */
6398 _ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h.  */
6402 $ac_includes_default
6403 int
6404 main ()
6405 {
6406 if ((mode_t *) 0)
6407   return 0;
6408 if (sizeof (mode_t))
6409   return 0;
6410   ;
6411   return 0;
6412 }
6413 _ACEOF
6414 rm -f conftest.$ac_objext
6415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6416   (eval $ac_compile) 2>&5
6417   ac_status=$?
6418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419   (exit $ac_status); } &&
6420          { ac_try='test -s conftest.$ac_objext'
6421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422   (eval $ac_try) 2>&5
6423   ac_status=$?
6424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425   (exit $ac_status); }; }; then
6426   ac_cv_type_mode_t=yes
6427 else
6428   echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6430
6431 ac_cv_type_mode_t=no
6432 fi
6433 rm -f conftest.$ac_objext conftest.$ac_ext
6434 fi
6435 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6436 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
6437 if test $ac_cv_type_mode_t = yes; then
6438   :
6439 else
6440
6441 cat >>confdefs.h <<_ACEOF
6442 #define mode_t int
6443 _ACEOF
6444
6445 fi
6446
6447 echo "$as_me:$LINENO: checking for off_t" >&5
6448 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6449 if test "${ac_cv_type_off_t+set}" = set; then
6450   echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452   cat >conftest.$ac_ext <<_ACEOF
6453 #line $LINENO "configure"
6454 /* confdefs.h.  */
6455 _ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h.  */
6459 $ac_includes_default
6460 int
6461 main ()
6462 {
6463 if ((off_t *) 0)
6464   return 0;
6465 if (sizeof (off_t))
6466   return 0;
6467   ;
6468   return 0;
6469 }
6470 _ACEOF
6471 rm -f conftest.$ac_objext
6472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6473   (eval $ac_compile) 2>&5
6474   ac_status=$?
6475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476   (exit $ac_status); } &&
6477          { ac_try='test -s conftest.$ac_objext'
6478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479   (eval $ac_try) 2>&5
6480   ac_status=$?
6481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482   (exit $ac_status); }; }; then
6483   ac_cv_type_off_t=yes
6484 else
6485   echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6487
6488 ac_cv_type_off_t=no
6489 fi
6490 rm -f conftest.$ac_objext conftest.$ac_ext
6491 fi
6492 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6493 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6494 if test $ac_cv_type_off_t = yes; then
6495   :
6496 else
6497
6498 cat >>confdefs.h <<_ACEOF
6499 #define off_t long
6500 _ACEOF
6501
6502 fi
6503
6504 echo "$as_me:$LINENO: checking for pid_t" >&5
6505 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6506 if test "${ac_cv_type_pid_t+set}" = set; then
6507   echo $ECHO_N "(cached) $ECHO_C" >&6
6508 else
6509   cat >conftest.$ac_ext <<_ACEOF
6510 #line $LINENO "configure"
6511 /* confdefs.h.  */
6512 _ACEOF
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h.  */
6516 $ac_includes_default
6517 int
6518 main ()
6519 {
6520 if ((pid_t *) 0)
6521   return 0;
6522 if (sizeof (pid_t))
6523   return 0;
6524   ;
6525   return 0;
6526 }
6527 _ACEOF
6528 rm -f conftest.$ac_objext
6529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6530   (eval $ac_compile) 2>&5
6531   ac_status=$?
6532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533   (exit $ac_status); } &&
6534          { ac_try='test -s conftest.$ac_objext'
6535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536   (eval $ac_try) 2>&5
6537   ac_status=$?
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); }; }; then
6540   ac_cv_type_pid_t=yes
6541 else
6542   echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6544
6545 ac_cv_type_pid_t=no
6546 fi
6547 rm -f conftest.$ac_objext conftest.$ac_ext
6548 fi
6549 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6550 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6551 if test $ac_cv_type_pid_t = yes; then
6552   :
6553 else
6554
6555 cat >>confdefs.h <<_ACEOF
6556 #define pid_t int
6557 _ACEOF
6558
6559 fi
6560
6561 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6562 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6563 if test "${ac_cv_type_signal+set}" = set; then
6564   echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566   cat >conftest.$ac_ext <<_ACEOF
6567 #line $LINENO "configure"
6568 /* confdefs.h.  */
6569 _ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h.  */
6573 #include <sys/types.h>
6574 #include <signal.h>
6575 #ifdef signal
6576 # undef signal
6577 #endif
6578 #ifdef __cplusplus
6579 extern "C" void (*signal (int, void (*)(int)))(int);
6580 #else
6581 void (*signal ()) ();
6582 #endif
6583
6584 int
6585 main ()
6586 {
6587 int i;
6588   ;
6589   return 0;
6590 }
6591 _ACEOF
6592 rm -f conftest.$ac_objext
6593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6594   (eval $ac_compile) 2>&5
6595   ac_status=$?
6596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597   (exit $ac_status); } &&
6598          { ac_try='test -s conftest.$ac_objext'
6599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600   (eval $ac_try) 2>&5
6601   ac_status=$?
6602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603   (exit $ac_status); }; }; then
6604   ac_cv_type_signal=void
6605 else
6606   echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6608
6609 ac_cv_type_signal=int
6610 fi
6611 rm -f conftest.$ac_objext conftest.$ac_ext
6612 fi
6613 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6614 echo "${ECHO_T}$ac_cv_type_signal" >&6
6615
6616 cat >>confdefs.h <<_ACEOF
6617 #define RETSIGTYPE $ac_cv_type_signal
6618 _ACEOF
6619
6620
6621 echo "$as_me:$LINENO: checking for size_t" >&5
6622 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6623 if test "${ac_cv_type_size_t+set}" = set; then
6624   echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626   cat >conftest.$ac_ext <<_ACEOF
6627 #line $LINENO "configure"
6628 /* confdefs.h.  */
6629 _ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h.  */
6633 $ac_includes_default
6634 int
6635 main ()
6636 {
6637 if ((size_t *) 0)
6638   return 0;
6639 if (sizeof (size_t))
6640   return 0;
6641   ;
6642   return 0;
6643 }
6644 _ACEOF
6645 rm -f conftest.$ac_objext
6646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6647   (eval $ac_compile) 2>&5
6648   ac_status=$?
6649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650   (exit $ac_status); } &&
6651          { ac_try='test -s conftest.$ac_objext'
6652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653   (eval $ac_try) 2>&5
6654   ac_status=$?
6655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656   (exit $ac_status); }; }; then
6657   ac_cv_type_size_t=yes
6658 else
6659   echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6661
6662 ac_cv_type_size_t=no
6663 fi
6664 rm -f conftest.$ac_objext conftest.$ac_ext
6665 fi
6666 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6667 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6668 if test $ac_cv_type_size_t = yes; then
6669   :
6670 else
6671
6672 cat >>confdefs.h <<_ACEOF
6673 #define size_t unsigned
6674 _ACEOF
6675
6676 fi
6677
6678
6679   echo "$as_me:$LINENO: checking for unsigned long long" >&5
6680 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6681 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6682   echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684   cat >conftest.$ac_ext <<_ACEOF
6685 #line $LINENO "configure"
6686 /* confdefs.h.  */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h.  */
6691 unsigned long long ull = 1; int i = 63;
6692 int
6693 main ()
6694 {
6695 unsigned long long ullmax = (unsigned long long) -1;
6696      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6697   ;
6698   return 0;
6699 }
6700 _ACEOF
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703   (eval $ac_link) 2>&5
6704   ac_status=$?
6705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706   (exit $ac_status); } &&
6707          { ac_try='test -s conftest$ac_exeext'
6708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709   (eval $ac_try) 2>&5
6710   ac_status=$?
6711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712   (exit $ac_status); }; }; then
6713   ac_cv_type_unsigned_long_long=yes
6714 else
6715   echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6717
6718 ac_cv_type_unsigned_long_long=no
6719 fi
6720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6721 fi
6722 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6723 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6724   if test $ac_cv_type_unsigned_long_long = yes; then
6725
6726 cat >>confdefs.h <<\_ACEOF
6727 #define HAVE_UNSIGNED_LONG_LONG 1
6728 _ACEOF
6729
6730   fi
6731
6732
6733
6734   echo "$as_me:$LINENO: checking for uintmax_t" >&5
6735 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
6736 if test "${ac_cv_type_uintmax_t+set}" = set; then
6737   echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739   cat >conftest.$ac_ext <<_ACEOF
6740 #line $LINENO "configure"
6741 /* confdefs.h.  */
6742 _ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h.  */
6746 $ac_includes_default
6747 int
6748 main ()
6749 {
6750 if ((uintmax_t *) 0)
6751   return 0;
6752 if (sizeof (uintmax_t))
6753   return 0;
6754   ;
6755   return 0;
6756 }
6757 _ACEOF
6758 rm -f conftest.$ac_objext
6759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6760   (eval $ac_compile) 2>&5
6761   ac_status=$?
6762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763   (exit $ac_status); } &&
6764          { ac_try='test -s conftest.$ac_objext'
6765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766   (eval $ac_try) 2>&5
6767   ac_status=$?
6768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769   (exit $ac_status); }; }; then
6770   ac_cv_type_uintmax_t=yes
6771 else
6772   echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6774
6775 ac_cv_type_uintmax_t=no
6776 fi
6777 rm -f conftest.$ac_objext conftest.$ac_ext
6778 fi
6779 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
6780 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
6781 if test $ac_cv_type_uintmax_t = yes; then
6782   :
6783 else
6784   test $ac_cv_type_unsigned_long_long = yes \
6785        && ac_type='unsigned long long' \
6786        || ac_type='unsigned long'
6787
6788 cat >>confdefs.h <<_ACEOF
6789 #define uintmax_t $ac_type
6790 _ACEOF
6791
6792 fi
6793
6794
6795 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6796 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
6797 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6798   echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800   cat >conftest.$ac_ext <<_ACEOF
6801 #line $LINENO "configure"
6802 /* confdefs.h.  */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h.  */
6807 #include <sys/types.h>
6808 int
6809 main ()
6810 {
6811 return makedev(0, 0);
6812   ;
6813   return 0;
6814 }
6815 _ACEOF
6816 rm -f conftest.$ac_objext conftest$ac_exeext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6818   (eval $ac_link) 2>&5
6819   ac_status=$?
6820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821   (exit $ac_status); } &&
6822          { ac_try='test -s conftest$ac_exeext'
6823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824   (eval $ac_try) 2>&5
6825   ac_status=$?
6826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827   (exit $ac_status); }; }; then
6828   ac_cv_header_sys_types_h_makedev=yes
6829 else
6830   echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6832
6833 ac_cv_header_sys_types_h_makedev=no
6834 fi
6835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6836
6837 fi
6838 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6839 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
6840
6841 if test $ac_cv_header_sys_types_h_makedev = no; then
6842 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6843   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6844 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6845 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6846   echo $ECHO_N "(cached) $ECHO_C" >&6
6847 fi
6848 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6849 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6850 else
6851   # Is the header compilable?
6852 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6853 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
6854 cat >conftest.$ac_ext <<_ACEOF
6855 #line $LINENO "configure"
6856 /* confdefs.h.  */
6857 _ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h.  */
6861 $ac_includes_default
6862 #include <sys/mkdev.h>
6863 _ACEOF
6864 rm -f conftest.$ac_objext
6865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6866   (eval $ac_compile) 2>&5
6867   ac_status=$?
6868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869   (exit $ac_status); } &&
6870          { ac_try='test -s conftest.$ac_objext'
6871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872   (eval $ac_try) 2>&5
6873   ac_status=$?
6874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875   (exit $ac_status); }; }; then
6876   ac_header_compiler=yes
6877 else
6878   echo "$as_me: failed program was:" >&5
6879 sed 's/^/| /' conftest.$ac_ext >&5
6880
6881 ac_header_compiler=no
6882 fi
6883 rm -f conftest.$ac_objext conftest.$ac_ext
6884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6885 echo "${ECHO_T}$ac_header_compiler" >&6
6886
6887 # Is the header present?
6888 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6889 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
6890 cat >conftest.$ac_ext <<_ACEOF
6891 #line $LINENO "configure"
6892 /* confdefs.h.  */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h.  */
6897 #include <sys/mkdev.h>
6898 _ACEOF
6899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6900   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6901   ac_status=$?
6902   grep -v '^ *+' conftest.er1 >conftest.err
6903   rm -f conftest.er1
6904   cat conftest.err >&5
6905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906   (exit $ac_status); } >/dev/null; then
6907   if test -s conftest.err; then
6908     ac_cpp_err=$ac_c_preproc_warn_flag
6909   else
6910     ac_cpp_err=
6911   fi
6912 else
6913   ac_cpp_err=yes
6914 fi
6915 if test -z "$ac_cpp_err"; then
6916   ac_header_preproc=yes
6917 else
6918   echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6920
6921   ac_header_preproc=no
6922 fi
6923 rm -f conftest.err conftest.$ac_ext
6924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6925 echo "${ECHO_T}$ac_header_preproc" >&6
6926
6927 # So?  What about this header?
6928 case $ac_header_compiler:$ac_header_preproc in
6929   yes:no )
6930     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6931 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6932     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6933 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6934     (
6935       cat <<\_ASBOX
6936 ## ------------------------------------ ##
6937 ## Report this to bug-autoconf@gnu.org. ##
6938 ## ------------------------------------ ##
6939 _ASBOX
6940     ) |
6941       sed "s/^/$as_me: WARNING:     /" >&2
6942     ;;
6943   no:yes )
6944     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6945 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6946     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6947 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6948     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6949 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6950     (
6951       cat <<\_ASBOX
6952 ## ------------------------------------ ##
6953 ## Report this to bug-autoconf@gnu.org. ##
6954 ## ------------------------------------ ##
6955 _ASBOX
6956     ) |
6957       sed "s/^/$as_me: WARNING:     /" >&2
6958     ;;
6959 esac
6960 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6961 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6962 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6963   echo $ECHO_N "(cached) $ECHO_C" >&6
6964 else
6965   ac_cv_header_sys_mkdev_h=$ac_header_preproc
6966 fi
6967 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6968 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6969
6970 fi
6971 if test $ac_cv_header_sys_mkdev_h = yes; then
6972
6973 cat >>confdefs.h <<\_ACEOF
6974 #define MAJOR_IN_MKDEV 1
6975 _ACEOF
6976
6977 fi
6978
6979
6980
6981   if test $ac_cv_header_sys_mkdev_h = no; then
6982     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6983   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6984 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
6985 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6986   echo $ECHO_N "(cached) $ECHO_C" >&6
6987 fi
6988 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6989 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
6990 else
6991   # Is the header compilable?
6992 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6993 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
6994 cat >conftest.$ac_ext <<_ACEOF
6995 #line $LINENO "configure"
6996 /* confdefs.h.  */
6997 _ACEOF
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h.  */
7001 $ac_includes_default
7002 #include <sys/sysmacros.h>
7003 _ACEOF
7004 rm -f conftest.$ac_objext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7006   (eval $ac_compile) 2>&5
7007   ac_status=$?
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); } &&
7010          { ac_try='test -s conftest.$ac_objext'
7011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012   (eval $ac_try) 2>&5
7013   ac_status=$?
7014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015   (exit $ac_status); }; }; then
7016   ac_header_compiler=yes
7017 else
7018   echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.$ac_ext >&5
7020
7021 ac_header_compiler=no
7022 fi
7023 rm -f conftest.$ac_objext conftest.$ac_ext
7024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7025 echo "${ECHO_T}$ac_header_compiler" >&6
7026
7027 # Is the header present?
7028 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
7029 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
7030 cat >conftest.$ac_ext <<_ACEOF
7031 #line $LINENO "configure"
7032 /* confdefs.h.  */
7033 _ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h.  */
7037 #include <sys/sysmacros.h>
7038 _ACEOF
7039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7040   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7041   ac_status=$?
7042   grep -v '^ *+' conftest.er1 >conftest.err
7043   rm -f conftest.er1
7044   cat conftest.err >&5
7045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046   (exit $ac_status); } >/dev/null; then
7047   if test -s conftest.err; then
7048     ac_cpp_err=$ac_c_preproc_warn_flag
7049   else
7050     ac_cpp_err=
7051   fi
7052 else
7053   ac_cpp_err=yes
7054 fi
7055 if test -z "$ac_cpp_err"; then
7056   ac_header_preproc=yes
7057 else
7058   echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.$ac_ext >&5
7060
7061   ac_header_preproc=no
7062 fi
7063 rm -f conftest.err conftest.$ac_ext
7064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7065 echo "${ECHO_T}$ac_header_preproc" >&6
7066
7067 # So?  What about this header?
7068 case $ac_header_compiler:$ac_header_preproc in
7069   yes:no )
7070     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7071 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7072     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7073 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7074     (
7075       cat <<\_ASBOX
7076 ## ------------------------------------ ##
7077 ## Report this to bug-autoconf@gnu.org. ##
7078 ## ------------------------------------ ##
7079 _ASBOX
7080     ) |
7081       sed "s/^/$as_me: WARNING:     /" >&2
7082     ;;
7083   no:yes )
7084     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7085 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7086     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
7087 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
7088     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7089 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7090     (
7091       cat <<\_ASBOX
7092 ## ------------------------------------ ##
7093 ## Report this to bug-autoconf@gnu.org. ##
7094 ## ------------------------------------ ##
7095 _ASBOX
7096     ) |
7097       sed "s/^/$as_me: WARNING:     /" >&2
7098     ;;
7099 esac
7100 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7101 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
7102 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7103   echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7106 fi
7107 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7108 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
7109
7110 fi
7111 if test $ac_cv_header_sys_sysmacros_h = yes; then
7112
7113 cat >>confdefs.h <<\_ACEOF
7114 #define MAJOR_IN_SYSMACROS 1
7115 _ACEOF
7116
7117 fi
7118
7119
7120   fi
7121 fi
7122
7123 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7124 # for constant arguments.  Useless!
7125 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7126 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7127 if test "${ac_cv_working_alloca_h+set}" = set; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130   cat >conftest.$ac_ext <<_ACEOF
7131 #line $LINENO "configure"
7132 /* confdefs.h.  */
7133 _ACEOF
7134 cat confdefs.h >>conftest.$ac_ext
7135 cat >>conftest.$ac_ext <<_ACEOF
7136 /* end confdefs.h.  */
7137 #include <alloca.h>
7138 int
7139 main ()
7140 {
7141 char *p = (char *) alloca (2 * sizeof (int));
7142   ;
7143   return 0;
7144 }
7145 _ACEOF
7146 rm -f conftest.$ac_objext conftest$ac_exeext
7147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7148   (eval $ac_link) 2>&5
7149   ac_status=$?
7150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151   (exit $ac_status); } &&
7152          { ac_try='test -s conftest$ac_exeext'
7153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154   (eval $ac_try) 2>&5
7155   ac_status=$?
7156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157   (exit $ac_status); }; }; then
7158   ac_cv_working_alloca_h=yes
7159 else
7160   echo "$as_me: failed program was:" >&5
7161 sed 's/^/| /' conftest.$ac_ext >&5
7162
7163 ac_cv_working_alloca_h=no
7164 fi
7165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7166 fi
7167 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7168 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7169 if test $ac_cv_working_alloca_h = yes; then
7170
7171 cat >>confdefs.h <<\_ACEOF
7172 #define HAVE_ALLOCA_H 1
7173 _ACEOF
7174
7175 fi
7176
7177 echo "$as_me:$LINENO: checking for alloca" >&5
7178 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7179 if test "${ac_cv_func_alloca_works+set}" = set; then
7180   echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182   cat >conftest.$ac_ext <<_ACEOF
7183 #line $LINENO "configure"
7184 /* confdefs.h.  */
7185 _ACEOF
7186 cat confdefs.h >>conftest.$ac_ext
7187 cat >>conftest.$ac_ext <<_ACEOF
7188 /* end confdefs.h.  */
7189 #ifdef __GNUC__
7190 # define alloca __builtin_alloca
7191 #else
7192 # ifdef _MSC_VER
7193 #  include <malloc.h>
7194 #  define alloca _alloca
7195 # else
7196 #  if HAVE_ALLOCA_H
7197 #   include <alloca.h>
7198 #  else
7199 #   ifdef _AIX
7200  #pragma alloca
7201 #   else
7202 #    ifndef alloca /* predefined by HP cc +Olibcalls */
7203 char *alloca ();
7204 #    endif
7205 #   endif
7206 #  endif
7207 # endif
7208 #endif
7209
7210 int
7211 main ()
7212 {
7213 char *p = (char *) alloca (1);
7214   ;
7215   return 0;
7216 }
7217 _ACEOF
7218 rm -f conftest.$ac_objext conftest$ac_exeext
7219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7220   (eval $ac_link) 2>&5
7221   ac_status=$?
7222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223   (exit $ac_status); } &&
7224          { ac_try='test -s conftest$ac_exeext'
7225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226   (eval $ac_try) 2>&5
7227   ac_status=$?
7228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229   (exit $ac_status); }; }; then
7230   ac_cv_func_alloca_works=yes
7231 else
7232   echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.$ac_ext >&5
7234
7235 ac_cv_func_alloca_works=no
7236 fi
7237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7238 fi
7239 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7240 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7241
7242 if test $ac_cv_func_alloca_works = yes; then
7243
7244 cat >>confdefs.h <<\_ACEOF
7245 #define HAVE_ALLOCA 1
7246 _ACEOF
7247
7248 else
7249   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7250 # that cause trouble.  Some versions do not even contain alloca or
7251 # contain a buggy version.  If you still want to use their alloca,
7252 # use ar to extract alloca.o from them instead of compiling alloca.c.
7253
7254 ALLOCA=alloca.$ac_objext
7255
7256 cat >>confdefs.h <<\_ACEOF
7257 #define C_ALLOCA 1
7258 _ACEOF
7259
7260
7261 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7262 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7263 if test "${ac_cv_os_cray+set}" = set; then
7264   echo $ECHO_N "(cached) $ECHO_C" >&6
7265 else
7266   cat >conftest.$ac_ext <<_ACEOF
7267 #line $LINENO "configure"
7268 /* confdefs.h.  */
7269 _ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h.  */
7273 #if defined(CRAY) && ! defined(CRAY2)
7274 webecray
7275 #else
7276 wenotbecray
7277 #endif
7278
7279 _ACEOF
7280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7281   $EGREP "webecray" >/dev/null 2>&1; then
7282   ac_cv_os_cray=yes
7283 else
7284   ac_cv_os_cray=no
7285 fi
7286 rm -f conftest*
7287
7288 fi
7289 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7290 echo "${ECHO_T}$ac_cv_os_cray" >&6
7291 if test $ac_cv_os_cray = yes; then
7292   for ac_func in _getb67 GETB67 getb67; do
7293     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7294 echo "$as_me:$LINENO: checking for $ac_func" >&5
7295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7296 if eval "test \"\${$as_ac_var+set}\" = set"; then
7297   echo $ECHO_N "(cached) $ECHO_C" >&6
7298 else
7299   cat >conftest.$ac_ext <<_ACEOF
7300 #line $LINENO "configure"
7301 /* confdefs.h.  */
7302 _ACEOF
7303 cat confdefs.h >>conftest.$ac_ext
7304 cat >>conftest.$ac_ext <<_ACEOF
7305 /* end confdefs.h.  */
7306 /* System header to define __stub macros and hopefully few prototypes,
7307     which can conflict with char $ac_func (); below.
7308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7309     <limits.h> exists even on freestanding compilers.  */
7310 #ifdef __STDC__
7311 # include <limits.h>
7312 #else
7313 # include <assert.h>
7314 #endif
7315 /* Override any gcc2 internal prototype to avoid an error.  */
7316 #ifdef __cplusplus
7317 extern "C"
7318 {
7319 #endif
7320 /* We use char because int might match the return type of a gcc2
7321    builtin and then its argument prototype would still apply.  */
7322 char $ac_func ();
7323 /* The GNU C library defines this for functions which it implements
7324     to always fail with ENOSYS.  Some functions are actually named
7325     something starting with __ and the normal name is an alias.  */
7326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7327 choke me
7328 #else
7329 char (*f) () = $ac_func;
7330 #endif
7331 #ifdef __cplusplus
7332 }
7333 #endif
7334
7335 int
7336 main ()
7337 {
7338 return f != $ac_func;
7339   ;
7340   return 0;
7341 }
7342 _ACEOF
7343 rm -f conftest.$ac_objext conftest$ac_exeext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7345   (eval $ac_link) 2>&5
7346   ac_status=$?
7347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348   (exit $ac_status); } &&
7349          { ac_try='test -s conftest$ac_exeext'
7350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351   (eval $ac_try) 2>&5
7352   ac_status=$?
7353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354   (exit $ac_status); }; }; then
7355   eval "$as_ac_var=yes"
7356 else
7357   echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7359
7360 eval "$as_ac_var=no"
7361 fi
7362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7363 fi
7364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7366 if test `eval echo '${'$as_ac_var'}'` = yes; then
7367
7368 cat >>confdefs.h <<_ACEOF
7369 #define CRAY_STACKSEG_END $ac_func
7370 _ACEOF
7371
7372     break
7373 fi
7374
7375   done
7376 fi
7377
7378 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7379 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7380 if test "${ac_cv_c_stack_direction+set}" = set; then
7381   echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383   if test "$cross_compiling" = yes; then
7384   ac_cv_c_stack_direction=0
7385 else
7386   cat >conftest.$ac_ext <<_ACEOF
7387 #line $LINENO "configure"
7388 /* confdefs.h.  */
7389 _ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h.  */
7393 int
7394 find_stack_direction ()
7395 {
7396   static char *addr = 0;
7397   auto char dummy;
7398   if (addr == 0)
7399     {
7400       addr = &dummy;
7401       return find_stack_direction ();
7402     }
7403   else
7404     return (&dummy > addr) ? 1 : -1;
7405 }
7406
7407 int
7408 main ()
7409 {
7410   exit (find_stack_direction () < 0);
7411 }
7412 _ACEOF
7413 rm -f conftest$ac_exeext
7414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7415   (eval $ac_link) 2>&5
7416   ac_status=$?
7417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7420   (eval $ac_try) 2>&5
7421   ac_status=$?
7422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423   (exit $ac_status); }; }; then
7424   ac_cv_c_stack_direction=1
7425 else
7426   echo "$as_me: program exited with status $ac_status" >&5
7427 echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7429
7430 ( exit $ac_status )
7431 ac_cv_c_stack_direction=-1
7432 fi
7433 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7434 fi
7435 fi
7436 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7437 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7438
7439 cat >>confdefs.h <<_ACEOF
7440 #define STACK_DIRECTION $ac_cv_c_stack_direction
7441 _ACEOF
7442
7443
7444 fi
7445
7446
7447
7448 for ac_header in limits.h
7449 do
7450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7452   echo "$as_me:$LINENO: checking for $ac_header" >&5
7453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7455   echo $ECHO_N "(cached) $ECHO_C" >&6
7456 fi
7457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7459 else
7460   # Is the header compilable?
7461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7463 cat >conftest.$ac_ext <<_ACEOF
7464 #line $LINENO "configure"
7465 /* confdefs.h.  */
7466 _ACEOF
7467 cat confdefs.h >>conftest.$ac_ext
7468 cat >>conftest.$ac_ext <<_ACEOF
7469 /* end confdefs.h.  */
7470 $ac_includes_default
7471 #include <$ac_header>
7472 _ACEOF
7473 rm -f conftest.$ac_objext
7474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7475   (eval $ac_compile) 2>&5
7476   ac_status=$?
7477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478   (exit $ac_status); } &&
7479          { ac_try='test -s conftest.$ac_objext'
7480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481   (eval $ac_try) 2>&5
7482   ac_status=$?
7483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484   (exit $ac_status); }; }; then
7485   ac_header_compiler=yes
7486 else
7487   echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7489
7490 ac_header_compiler=no
7491 fi
7492 rm -f conftest.$ac_objext conftest.$ac_ext
7493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7494 echo "${ECHO_T}$ac_header_compiler" >&6
7495
7496 # Is the header present?
7497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7499 cat >conftest.$ac_ext <<_ACEOF
7500 #line $LINENO "configure"
7501 /* confdefs.h.  */
7502 _ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h.  */
7506 #include <$ac_header>
7507 _ACEOF
7508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7509   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7510   ac_status=$?
7511   grep -v '^ *+' conftest.er1 >conftest.err
7512   rm -f conftest.er1
7513   cat conftest.err >&5
7514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515   (exit $ac_status); } >/dev/null; then
7516   if test -s conftest.err; then
7517     ac_cpp_err=$ac_c_preproc_warn_flag
7518   else
7519     ac_cpp_err=
7520   fi
7521 else
7522   ac_cpp_err=yes
7523 fi
7524 if test -z "$ac_cpp_err"; then
7525   ac_header_preproc=yes
7526 else
7527   echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7529
7530   ac_header_preproc=no
7531 fi
7532 rm -f conftest.err conftest.$ac_ext
7533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7534 echo "${ECHO_T}$ac_header_preproc" >&6
7535
7536 # So?  What about this header?
7537 case $ac_header_compiler:$ac_header_preproc in
7538   yes:no )
7539     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7543     (
7544       cat <<\_ASBOX
7545 ## ------------------------------------ ##
7546 ## Report this to bug-autoconf@gnu.org. ##
7547 ## ------------------------------------ ##
7548 _ASBOX
7549     ) |
7550       sed "s/^/$as_me: WARNING:     /" >&2
7551     ;;
7552   no:yes )
7553     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7555     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7557     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7559     (
7560       cat <<\_ASBOX
7561 ## ------------------------------------ ##
7562 ## Report this to bug-autoconf@gnu.org. ##
7563 ## ------------------------------------ ##
7564 _ASBOX
7565     ) |
7566       sed "s/^/$as_me: WARNING:     /" >&2
7567     ;;
7568 esac
7569 echo "$as_me:$LINENO: checking for $ac_header" >&5
7570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7572   echo $ECHO_N "(cached) $ECHO_C" >&6
7573 else
7574   eval "$as_ac_Header=$ac_header_preproc"
7575 fi
7576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7578
7579 fi
7580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7581   cat >>confdefs.h <<_ACEOF
7582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7583 _ACEOF
7584
7585 fi
7586
7587 done
7588
7589
7590
7591
7592 for ac_header in string.h
7593 do
7594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7596   echo "$as_me:$LINENO: checking for $ac_header" >&5
7597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7599   echo $ECHO_N "(cached) $ECHO_C" >&6
7600 fi
7601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7603 else
7604   # Is the header compilable?
7605 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7607 cat >conftest.$ac_ext <<_ACEOF
7608 #line $LINENO "configure"
7609 /* confdefs.h.  */
7610 _ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h.  */
7614 $ac_includes_default
7615 #include <$ac_header>
7616 _ACEOF
7617 rm -f conftest.$ac_objext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7619   (eval $ac_compile) 2>&5
7620   ac_status=$?
7621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622   (exit $ac_status); } &&
7623          { ac_try='test -s conftest.$ac_objext'
7624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7625   (eval $ac_try) 2>&5
7626   ac_status=$?
7627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628   (exit $ac_status); }; }; then
7629   ac_header_compiler=yes
7630 else
7631   echo "$as_me: failed program was:" >&5
7632 sed 's/^/| /' conftest.$ac_ext >&5
7633
7634 ac_header_compiler=no
7635 fi
7636 rm -f conftest.$ac_objext conftest.$ac_ext
7637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7638 echo "${ECHO_T}$ac_header_compiler" >&6
7639
7640 # Is the header present?
7641 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7643 cat >conftest.$ac_ext <<_ACEOF
7644 #line $LINENO "configure"
7645 /* confdefs.h.  */
7646 _ACEOF
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h.  */
7650 #include <$ac_header>
7651 _ACEOF
7652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7653   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7654   ac_status=$?
7655   grep -v '^ *+' conftest.er1 >conftest.err
7656   rm -f conftest.er1
7657   cat conftest.err >&5
7658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659   (exit $ac_status); } >/dev/null; then
7660   if test -s conftest.err; then
7661     ac_cpp_err=$ac_c_preproc_warn_flag
7662   else
7663     ac_cpp_err=
7664   fi
7665 else
7666   ac_cpp_err=yes
7667 fi
7668 if test -z "$ac_cpp_err"; then
7669   ac_header_preproc=yes
7670 else
7671   echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7673
7674   ac_header_preproc=no
7675 fi
7676 rm -f conftest.err conftest.$ac_ext
7677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7678 echo "${ECHO_T}$ac_header_preproc" >&6
7679
7680 # So?  What about this header?
7681 case $ac_header_compiler:$ac_header_preproc in
7682   yes:no )
7683     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7685     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7687     (
7688       cat <<\_ASBOX
7689 ## ------------------------------------ ##
7690 ## Report this to bug-autoconf@gnu.org. ##
7691 ## ------------------------------------ ##
7692 _ASBOX
7693     ) |
7694       sed "s/^/$as_me: WARNING:     /" >&2
7695     ;;
7696   no:yes )
7697     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7699     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7701     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7703     (
7704       cat <<\_ASBOX
7705 ## ------------------------------------ ##
7706 ## Report this to bug-autoconf@gnu.org. ##
7707 ## ------------------------------------ ##
7708 _ASBOX
7709     ) |
7710       sed "s/^/$as_me: WARNING:     /" >&2
7711     ;;
7712 esac
7713 echo "$as_me:$LINENO: checking for $ac_header" >&5
7714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7716   echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718   eval "$as_ac_Header=$ac_header_preproc"
7719 fi
7720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7722
7723 fi
7724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7725   cat >>confdefs.h <<_ACEOF
7726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7727 _ACEOF
7728
7729 fi
7730
7731 done
7732
7733
7734
7735
7736 for ac_header in wchar.h
7737 do
7738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7740   echo "$as_me:$LINENO: checking for $ac_header" >&5
7741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7743   echo $ECHO_N "(cached) $ECHO_C" >&6
7744 fi
7745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7747 else
7748   # Is the header compilable?
7749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7751 cat >conftest.$ac_ext <<_ACEOF
7752 #line $LINENO "configure"
7753 /* confdefs.h.  */
7754 _ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h.  */
7758 $ac_includes_default
7759 #include <$ac_header>
7760 _ACEOF
7761 rm -f conftest.$ac_objext
7762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7763   (eval $ac_compile) 2>&5
7764   ac_status=$?
7765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766   (exit $ac_status); } &&
7767          { ac_try='test -s conftest.$ac_objext'
7768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769   (eval $ac_try) 2>&5
7770   ac_status=$?
7771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772   (exit $ac_status); }; }; then
7773   ac_header_compiler=yes
7774 else
7775   echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7777
7778 ac_header_compiler=no
7779 fi
7780 rm -f conftest.$ac_objext conftest.$ac_ext
7781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7782 echo "${ECHO_T}$ac_header_compiler" >&6
7783
7784 # Is the header present?
7785 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7787 cat >conftest.$ac_ext <<_ACEOF
7788 #line $LINENO "configure"
7789 /* confdefs.h.  */
7790 _ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h.  */
7794 #include <$ac_header>
7795 _ACEOF
7796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7797   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7798   ac_status=$?
7799   grep -v '^ *+' conftest.er1 >conftest.err
7800   rm -f conftest.er1
7801   cat conftest.err >&5
7802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803   (exit $ac_status); } >/dev/null; then
7804   if test -s conftest.err; then
7805     ac_cpp_err=$ac_c_preproc_warn_flag
7806   else
7807     ac_cpp_err=
7808   fi
7809 else
7810   ac_cpp_err=yes
7811 fi
7812 if test -z "$ac_cpp_err"; then
7813   ac_header_preproc=yes
7814 else
7815   echo "$as_me: failed program was:" >&5
7816 sed 's/^/| /' conftest.$ac_ext >&5
7817
7818   ac_header_preproc=no
7819 fi
7820 rm -f conftest.err conftest.$ac_ext
7821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7822 echo "${ECHO_T}$ac_header_preproc" >&6
7823
7824 # So?  What about this header?
7825 case $ac_header_compiler:$ac_header_preproc in
7826   yes:no )
7827     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7829     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7831     (
7832       cat <<\_ASBOX
7833 ## ------------------------------------ ##
7834 ## Report this to bug-autoconf@gnu.org. ##
7835 ## ------------------------------------ ##
7836 _ASBOX
7837     ) |
7838       sed "s/^/$as_me: WARNING:     /" >&2
7839     ;;
7840   no:yes )
7841     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7843     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7847     (
7848       cat <<\_ASBOX
7849 ## ------------------------------------ ##
7850 ## Report this to bug-autoconf@gnu.org. ##
7851 ## ------------------------------------ ##
7852 _ASBOX
7853     ) |
7854       sed "s/^/$as_me: WARNING:     /" >&2
7855     ;;
7856 esac
7857 echo "$as_me:$LINENO: checking for $ac_header" >&5
7858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7860   echo $ECHO_N "(cached) $ECHO_C" >&6
7861 else
7862   eval "$as_ac_Header=$ac_header_preproc"
7863 fi
7864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7866
7867 fi
7868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7869   cat >>confdefs.h <<_ACEOF
7870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7871 _ACEOF
7872
7873 fi
7874
7875 done
7876
7877
7878
7879
7880 for ac_header in wctype.h
7881 do
7882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7884   echo "$as_me:$LINENO: checking for $ac_header" >&5
7885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7887   echo $ECHO_N "(cached) $ECHO_C" >&6
7888 fi
7889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7891 else
7892   # Is the header compilable?
7893 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7895 cat >conftest.$ac_ext <<_ACEOF
7896 #line $LINENO "configure"
7897 /* confdefs.h.  */
7898 _ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h.  */
7902 $ac_includes_default
7903 #include <$ac_header>
7904 _ACEOF
7905 rm -f conftest.$ac_objext
7906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7907   (eval $ac_compile) 2>&5
7908   ac_status=$?
7909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910   (exit $ac_status); } &&
7911          { ac_try='test -s conftest.$ac_objext'
7912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913   (eval $ac_try) 2>&5
7914   ac_status=$?
7915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916   (exit $ac_status); }; }; then
7917   ac_header_compiler=yes
7918 else
7919   echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7921
7922 ac_header_compiler=no
7923 fi
7924 rm -f conftest.$ac_objext conftest.$ac_ext
7925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7926 echo "${ECHO_T}$ac_header_compiler" >&6
7927
7928 # Is the header present?
7929 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7931 cat >conftest.$ac_ext <<_ACEOF
7932 #line $LINENO "configure"
7933 /* confdefs.h.  */
7934 _ACEOF
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h.  */
7938 #include <$ac_header>
7939 _ACEOF
7940 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7941   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7942   ac_status=$?
7943   grep -v '^ *+' conftest.er1 >conftest.err
7944   rm -f conftest.er1
7945   cat conftest.err >&5
7946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947   (exit $ac_status); } >/dev/null; then
7948   if test -s conftest.err; then
7949     ac_cpp_err=$ac_c_preproc_warn_flag
7950   else
7951     ac_cpp_err=
7952   fi
7953 else
7954   ac_cpp_err=yes
7955 fi
7956 if test -z "$ac_cpp_err"; then
7957   ac_header_preproc=yes
7958 else
7959   echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7961
7962   ac_header_preproc=no
7963 fi
7964 rm -f conftest.err conftest.$ac_ext
7965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7966 echo "${ECHO_T}$ac_header_preproc" >&6
7967
7968 # So?  What about this header?
7969 case $ac_header_compiler:$ac_header_preproc in
7970   yes:no )
7971     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7973     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7975     (
7976       cat <<\_ASBOX
7977 ## ------------------------------------ ##
7978 ## Report this to bug-autoconf@gnu.org. ##
7979 ## ------------------------------------ ##
7980 _ASBOX
7981     ) |
7982       sed "s/^/$as_me: WARNING:     /" >&2
7983     ;;
7984   no:yes )
7985     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7987     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7991     (
7992       cat <<\_ASBOX
7993 ## ------------------------------------ ##
7994 ## Report this to bug-autoconf@gnu.org. ##
7995 ## ------------------------------------ ##
7996 _ASBOX
7997     ) |
7998       sed "s/^/$as_me: WARNING:     /" >&2
7999     ;;
8000 esac
8001 echo "$as_me:$LINENO: checking for $ac_header" >&5
8002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8004   echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006   eval "$as_ac_Header=$ac_header_preproc"
8007 fi
8008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8010
8011 fi
8012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8013   cat >>confdefs.h <<_ACEOF
8014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8015 _ACEOF
8016
8017 fi
8018
8019 done
8020
8021
8022
8023
8024 for ac_func in isascii
8025 do
8026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8027 echo "$as_me:$LINENO: checking for $ac_func" >&5
8028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8029 if eval "test \"\${$as_ac_var+set}\" = set"; then
8030   echo $ECHO_N "(cached) $ECHO_C" >&6
8031 else
8032   cat >conftest.$ac_ext <<_ACEOF
8033 #line $LINENO "configure"
8034 /* confdefs.h.  */
8035 _ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h.  */
8039 /* System header to define __stub macros and hopefully few prototypes,
8040     which can conflict with char $ac_func (); below.
8041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8042     <limits.h> exists even on freestanding compilers.  */
8043 #ifdef __STDC__
8044 # include <limits.h>
8045 #else
8046 # include <assert.h>
8047 #endif
8048 /* Override any gcc2 internal prototype to avoid an error.  */
8049 #ifdef __cplusplus
8050 extern "C"
8051 {
8052 #endif
8053 /* We use char because int might match the return type of a gcc2
8054    builtin and then its argument prototype would still apply.  */
8055 char $ac_func ();
8056 /* The GNU C library defines this for functions which it implements
8057     to always fail with ENOSYS.  Some functions are actually named
8058     something starting with __ and the normal name is an alias.  */
8059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8060 choke me
8061 #else
8062 char (*f) () = $ac_func;
8063 #endif
8064 #ifdef __cplusplus
8065 }
8066 #endif
8067
8068 int
8069 main ()
8070 {
8071 return f != $ac_func;
8072   ;
8073   return 0;
8074 }
8075 _ACEOF
8076 rm -f conftest.$ac_objext conftest$ac_exeext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8078   (eval $ac_link) 2>&5
8079   ac_status=$?
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); } &&
8082          { ac_try='test -s conftest$ac_exeext'
8083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084   (eval $ac_try) 2>&5
8085   ac_status=$?
8086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087   (exit $ac_status); }; }; then
8088   eval "$as_ac_var=yes"
8089 else
8090   echo "$as_me: failed program was:" >&5
8091 sed 's/^/| /' conftest.$ac_ext >&5
8092
8093 eval "$as_ac_var=no"
8094 fi
8095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8096 fi
8097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8098 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8099 if test `eval echo '${'$as_ac_var'}'` = yes; then
8100   cat >>confdefs.h <<_ACEOF
8101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8102 _ACEOF
8103
8104 fi
8105 done
8106
8107
8108
8109
8110 for ac_func in mempcpy
8111 do
8112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8113 echo "$as_me:$LINENO: checking for $ac_func" >&5
8114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8115 if eval "test \"\${$as_ac_var+set}\" = set"; then
8116   echo $ECHO_N "(cached) $ECHO_C" >&6
8117 else
8118   cat >conftest.$ac_ext <<_ACEOF
8119 #line $LINENO "configure"
8120 /* confdefs.h.  */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h.  */
8125 /* System header to define __stub macros and hopefully few prototypes,
8126     which can conflict with char $ac_func (); below.
8127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8128     <limits.h> exists even on freestanding compilers.  */
8129 #ifdef __STDC__
8130 # include <limits.h>
8131 #else
8132 # include <assert.h>
8133 #endif
8134 /* Override any gcc2 internal prototype to avoid an error.  */
8135 #ifdef __cplusplus
8136 extern "C"
8137 {
8138 #endif
8139 /* We use char because int might match the return type of a gcc2
8140    builtin and then its argument prototype would still apply.  */
8141 char $ac_func ();
8142 /* The GNU C library defines this for functions which it implements
8143     to always fail with ENOSYS.  Some functions are actually named
8144     something starting with __ and the normal name is an alias.  */
8145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8146 choke me
8147 #else
8148 char (*f) () = $ac_func;
8149 #endif
8150 #ifdef __cplusplus
8151 }
8152 #endif
8153
8154 int
8155 main ()
8156 {
8157 return f != $ac_func;
8158   ;
8159   return 0;
8160 }
8161 _ACEOF
8162 rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8164   (eval $ac_link) 2>&5
8165   ac_status=$?
8166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167   (exit $ac_status); } &&
8168          { ac_try='test -s conftest$ac_exeext'
8169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170   (eval $ac_try) 2>&5
8171   ac_status=$?
8172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173   (exit $ac_status); }; }; then
8174   eval "$as_ac_var=yes"
8175 else
8176   echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8178
8179 eval "$as_ac_var=no"
8180 fi
8181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8182 fi
8183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8185 if test `eval echo '${'$as_ac_var'}'` = yes; then
8186   cat >>confdefs.h <<_ACEOF
8187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8188 _ACEOF
8189
8190 fi
8191 done
8192
8193
8194
8195   echo "$as_me:$LINENO: checking host operating system" >&5
8196 echo $ECHO_N "checking host operating system... $ECHO_C" >&6
8197 if test "${utils_cv_host_operating_system+set}" = set; then
8198   echo $ECHO_N "(cached) $ECHO_C" >&6
8199 else
8200   case $host_os in
8201
8202        # These operating system names do not use the default heuristic below.
8203        # They are in reverse order, so that more-specific prefixes come first.
8204        winnt*)          os='Windows NT';;
8205        vos*)            os='VOS';;
8206        sysv*)           os='Unix System V';;
8207        superux*)        os='SUPER-UX';;
8208        sunos*)          os='SunOS';;
8209        stop*)           os='STOP';;
8210        sco*)            os='SCO Unix';;
8211        riscos*)         os='RISC OS';;
8212        riscix*)         os='RISCiX';;
8213        qnx*)            os='QNX';;
8214        pw32*)           os='PW32';;
8215        ptx*)            os='ptx';;
8216        plan9*)          os='Plan 9';;
8217        osf*)            os='Tru64';;
8218        os2*)            os='OS/2';;
8219        openbsd*)        os='OpenBSD';;
8220        nsk*)            os='NonStop Kernel';;
8221        nonstopux*)      os='NonStop-UX';;
8222        netbsd*)         os='NetBSD';;
8223        msdosdjgpp*)     os='DJGPP';;
8224        mpeix*)          os='MPE/iX';;
8225        mint*)           os='MiNT';;
8226        mingw*)          os='MinGW';;
8227        lynxos*)         os='LynxOS';;
8228        linux*)          os='GNU/Linux';;
8229        hpux*)           os='HP-UX';;
8230        hiux*)           os='HI-UX';;
8231        gnu*)            os='GNU';;
8232        freebsd*-gnu*)   os='GNU/FreeBSD';;
8233        freebsd*)        os='FreeBSD';;
8234        dgux*)           os='DG/UX';;
8235        bsdi*)           os='BSD/OS';;
8236        bsd*)            os='BSD';;
8237        beos*)           os='BeOS';;
8238        aux*)            os='A/UX';;
8239        atheos*)         os='AtheOS';;
8240        amigaos*)        os='Amiga OS';;
8241        aix*)            os='AIX';;
8242
8243        # The default heuristic takes the initial alphabetic string
8244        # from $host_os, but capitalizes its first letter.
8245        [A-Za-z]*)
8246          os=`
8247            expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
8248          ``
8249            expr "X$host_os" : 'X.\([A-Za-z]*\)'
8250          `
8251          ;;
8252
8253        # If $host_os does not start with an alphabetic string, use it unchanged.
8254        *)
8255          os=$host_os;;
8256      esac
8257      utils_cv_host_operating_system=$os
8258 fi
8259 echo "$as_me:$LINENO: result: $utils_cv_host_operating_system" >&5
8260 echo "${ECHO_T}$utils_cv_host_operating_system" >&6
8261
8262 cat >>confdefs.h <<_ACEOF
8263 #define HOST_OPERATING_SYSTEM "$utils_cv_host_operating_system"
8264 _ACEOF
8265
8266
8267   echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
8268 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6
8269 if test "${utils_cv_func_mkdir_trailing_slash_bug+set}" = set; then
8270   echo $ECHO_N "(cached) $ECHO_C" >&6
8271 else
8272
8273       # Arrange for deletion of the temporary directory this test might create.
8274       ac_clean_files="$ac_clean_files confdir-slash"
8275       if test "$cross_compiling" = yes; then
8276   utils_cv_func_mkdir_trailing_slash_bug=yes
8277
8278 else
8279   cat >conftest.$ac_ext <<_ACEOF
8280 #line $LINENO "configure"
8281 /* confdefs.h.  */
8282 _ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h.  */
8286
8287 #       include <sys/types.h>
8288 #       include <sys/stat.h>
8289 #       include <stdlib.h>
8290         int main ()
8291         {
8292           rmdir ("confdir-slash");
8293           exit (mkdir ("confdir-slash/", 0700));
8294         }
8295
8296 _ACEOF
8297 rm -f conftest$ac_exeext
8298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8299   (eval $ac_link) 2>&5
8300   ac_status=$?
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8304   (eval $ac_try) 2>&5
8305   ac_status=$?
8306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307   (exit $ac_status); }; }; then
8308   utils_cv_func_mkdir_trailing_slash_bug=no
8309 else
8310   echo "$as_me: program exited with status $ac_status" >&5
8311 echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8313
8314 ( exit $ac_status )
8315 utils_cv_func_mkdir_trailing_slash_bug=yes
8316 fi
8317 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8318 fi
8319
8320
8321 fi
8322 echo "$as_me:$LINENO: result: $utils_cv_func_mkdir_trailing_slash_bug" >&5
8323 echo "${ECHO_T}$utils_cv_func_mkdir_trailing_slash_bug" >&6
8324
8325   if test $utils_cv_func_mkdir_trailing_slash_bug = yes; then
8326     LIBOBJS="$LIBOBJS mkdir.$ac_objext"
8327
8328 cat >>confdefs.h <<\_ACEOF
8329 #define mkdir rpl_mkdir
8330 _ACEOF
8331
8332   fi
8333
8334
8335   # getdate.y works with bison only.
8336   : ${YACC='bison -y'}
8337
8338
8339
8340   echo "$as_me:$LINENO: checking whether to enable assertions" >&5
8341 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6
8342   # Check whether --enable-assert or --disable-assert was given.
8343 if test "${enable_assert+set}" = set; then
8344   enableval="$enable_assert"
8345    echo "$as_me:$LINENO: result: no" >&5
8346 echo "${ECHO_T}no" >&6
8347
8348 cat >>confdefs.h <<\_ACEOF
8349 #define NDEBUG 1
8350 _ACEOF
8351
8352 else
8353    echo "$as_me:$LINENO: result: yes" >&5
8354 echo "${ECHO_T}yes" >&6
8355
8356 fi;
8357
8358
8359
8360 for ac_header in utime.h
8361 do
8362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8364   echo "$as_me:$LINENO: checking for $ac_header" >&5
8365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8367   echo $ECHO_N "(cached) $ECHO_C" >&6
8368 fi
8369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8371 else
8372   # Is the header compilable?
8373 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8375 cat >conftest.$ac_ext <<_ACEOF
8376 #line $LINENO "configure"
8377 /* confdefs.h.  */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h.  */
8382 $ac_includes_default
8383 #include <$ac_header>
8384 _ACEOF
8385 rm -f conftest.$ac_objext
8386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8387   (eval $ac_compile) 2>&5
8388   ac_status=$?
8389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390   (exit $ac_status); } &&
8391          { ac_try='test -s conftest.$ac_objext'
8392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393   (eval $ac_try) 2>&5
8394   ac_status=$?
8395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396   (exit $ac_status); }; }; then
8397   ac_header_compiler=yes
8398 else
8399   echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.$ac_ext >&5
8401
8402 ac_header_compiler=no
8403 fi
8404 rm -f conftest.$ac_objext conftest.$ac_ext
8405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8406 echo "${ECHO_T}$ac_header_compiler" >&6
8407
8408 # Is the header present?
8409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8411 cat >conftest.$ac_ext <<_ACEOF
8412 #line $LINENO "configure"
8413 /* confdefs.h.  */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h.  */
8418 #include <$ac_header>
8419 _ACEOF
8420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8421   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8422   ac_status=$?
8423   grep -v '^ *+' conftest.er1 >conftest.err
8424   rm -f conftest.er1
8425   cat conftest.err >&5
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); } >/dev/null; then
8428   if test -s conftest.err; then
8429     ac_cpp_err=$ac_c_preproc_warn_flag
8430   else
8431     ac_cpp_err=
8432   fi
8433 else
8434   ac_cpp_err=yes
8435 fi
8436 if test -z "$ac_cpp_err"; then
8437   ac_header_preproc=yes
8438 else
8439   echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8441
8442   ac_header_preproc=no
8443 fi
8444 rm -f conftest.err conftest.$ac_ext
8445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8446 echo "${ECHO_T}$ac_header_preproc" >&6
8447
8448 # So?  What about this header?
8449 case $ac_header_compiler:$ac_header_preproc in
8450   yes:no )
8451     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8455     (
8456       cat <<\_ASBOX
8457 ## ------------------------------------ ##
8458 ## Report this to bug-autoconf@gnu.org. ##
8459 ## ------------------------------------ ##
8460 _ASBOX
8461     ) |
8462       sed "s/^/$as_me: WARNING:     /" >&2
8463     ;;
8464   no:yes )
8465     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8467     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8469     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8471     (
8472       cat <<\_ASBOX
8473 ## ------------------------------------ ##
8474 ## Report this to bug-autoconf@gnu.org. ##
8475 ## ------------------------------------ ##
8476 _ASBOX
8477     ) |
8478       sed "s/^/$as_me: WARNING:     /" >&2
8479     ;;
8480 esac
8481 echo "$as_me:$LINENO: checking for $ac_header" >&5
8482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8484   echo $ECHO_N "(cached) $ECHO_C" >&6
8485 else
8486   eval "$as_ac_Header=$ac_header_preproc"
8487 fi
8488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8490
8491 fi
8492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8493   cat >>confdefs.h <<_ACEOF
8494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8495 _ACEOF
8496
8497 fi
8498
8499 done
8500
8501
8502   echo "$as_me:$LINENO: checking for struct utimbuf" >&5
8503 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
8504 if test "${fu_cv_sys_struct_utimbuf+set}" = set; then
8505   echo $ECHO_N "(cached) $ECHO_C" >&6
8506 else
8507   cat >conftest.$ac_ext <<_ACEOF
8508 #line $LINENO "configure"
8509 /* confdefs.h.  */
8510 _ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h.  */
8514
8515 #ifdef TIME_WITH_SYS_TIME
8516 # include <sys/time.h>
8517 # include <time.h>
8518 #else
8519 # ifdef HAVE_SYS_TIME_H
8520 #  include <sys/time.h>
8521 # else
8522 #  include <time.h>
8523 # endif
8524 #endif
8525 #ifdef HAVE_UTIME_H
8526 # include <utime.h>
8527 #endif
8528
8529 int
8530 main ()
8531 {
8532 static struct utimbuf x; x.actime = x.modtime;
8533   ;
8534   return 0;
8535 }
8536 _ACEOF
8537 rm -f conftest.$ac_objext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8539   (eval $ac_compile) 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); } &&
8543          { ac_try='test -s conftest.$ac_objext'
8544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545   (eval $ac_try) 2>&5
8546   ac_status=$?
8547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548   (exit $ac_status); }; }; then
8549   fu_cv_sys_struct_utimbuf=yes
8550 else
8551   echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8553
8554 fu_cv_sys_struct_utimbuf=no
8555 fi
8556 rm -f conftest.$ac_objext conftest.$ac_ext
8557
8558 fi
8559 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5
8560 echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6
8561
8562   if test $fu_cv_sys_struct_utimbuf = yes; then
8563
8564 cat >>confdefs.h <<\_ACEOF
8565 #define HAVE_STRUCT_UTIMBUF 1
8566 _ACEOF
8567
8568   fi
8569
8570    echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
8571 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6
8572 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
8573   echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575   cat >conftest.$ac_ext <<_ACEOF
8576 #line $LINENO "configure"
8577 /* confdefs.h.  */
8578 _ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h.  */
8582
8583 #include <sys/types.h>
8584 #ifdef HAVE_DIRENT_H
8585 # include <dirent.h>
8586 #else /* not HAVE_DIRENT_H */
8587 # define dirent direct
8588 # ifdef HAVE_SYS_NDIR_H
8589 #  include <sys/ndir.h>
8590 # endif /* HAVE_SYS_NDIR_H */
8591 # ifdef HAVE_SYS_DIR_H
8592 #  include <sys/dir.h>
8593 # endif /* HAVE_SYS_DIR_H */
8594 # ifdef HAVE_NDIR_H
8595 #  include <ndir.h>
8596 # endif /* HAVE_NDIR_H */
8597 #endif /* HAVE_DIRENT_H */
8598
8599 int
8600 main ()
8601 {
8602 struct dirent dp; dp.d_type = 0;
8603   ;
8604   return 0;
8605 }
8606 _ACEOF
8607 rm -f conftest.$ac_objext conftest$ac_exeext
8608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609   (eval $ac_link) 2>&5
8610   ac_status=$?
8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   (exit $ac_status); } &&
8613          { ac_try='test -s conftest$ac_exeext'
8614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615   (eval $ac_try) 2>&5
8616   ac_status=$?
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); }; }; then
8619   jm_cv_struct_dirent_d_type=yes
8620 else
8621   echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8623
8624 jm_cv_struct_dirent_d_type=no
8625 fi
8626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8627
8628
8629 fi
8630 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
8631 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6
8632    if test $jm_cv_struct_dirent_d_type = yes; then
8633
8634 cat >>confdefs.h <<\_ACEOF
8635 #define HAVE_STRUCT_DIRENT_D_TYPE 1
8636 _ACEOF
8637
8638    fi
8639
8640
8641    echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
8642 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
8643 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
8644   echo $ECHO_N "(cached) $ECHO_C" >&6
8645 else
8646   cat >conftest.$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8648 /* confdefs.h.  */
8649 _ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h.  */
8653
8654 #include <sys/types.h>
8655 #ifdef HAVE_DIRENT_H
8656 # include <dirent.h>
8657 #else /* not HAVE_DIRENT_H */
8658 # define dirent direct
8659 # ifdef HAVE_SYS_NDIR_H
8660 #  include <sys/ndir.h>
8661 # endif /* HAVE_SYS_NDIR_H */
8662 # ifdef HAVE_SYS_DIR_H
8663 #  include <sys/dir.h>
8664 # endif /* HAVE_SYS_DIR_H */
8665 # ifdef HAVE_NDIR_H
8666 #  include <ndir.h>
8667 # endif /* HAVE_NDIR_H */
8668 #endif /* HAVE_DIRENT_H */
8669
8670 int
8671 main ()
8672 {
8673 struct dirent dp; dp.d_ino = 0;
8674   ;
8675   return 0;
8676 }
8677 _ACEOF
8678 rm -f conftest.$ac_objext conftest$ac_exeext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8680   (eval $ac_link) 2>&5
8681   ac_status=$?
8682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683   (exit $ac_status); } &&
8684          { ac_try='test -s conftest$ac_exeext'
8685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686   (eval $ac_try) 2>&5
8687   ac_status=$?
8688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689   (exit $ac_status); }; }; then
8690   jm_cv_struct_dirent_d_ino=yes
8691 else
8692   echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.$ac_ext >&5
8694
8695 jm_cv_struct_dirent_d_ino=no
8696 fi
8697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8698
8699
8700 fi
8701 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
8702 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
8703    if test $jm_cv_struct_dirent_d_ino = yes; then
8704
8705 cat >>confdefs.h <<\_ACEOF
8706 #define D_INO_IN_DIRENT 1
8707 _ACEOF
8708
8709    fi
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724 for ac_header in grp.h memory.h pwd.h string.h strings.h stdlib.h \
8725                    unistd.h sys/time.h utmp.h utmpx.h
8726 do
8727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8729   echo "$as_me:$LINENO: checking for $ac_header" >&5
8730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8732   echo $ECHO_N "(cached) $ECHO_C" >&6
8733 fi
8734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8736 else
8737   # Is the header compilable?
8738 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8740 cat >conftest.$ac_ext <<_ACEOF
8741 #line $LINENO "configure"
8742 /* confdefs.h.  */
8743 _ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h.  */
8747 $ac_includes_default
8748 #include <$ac_header>
8749 _ACEOF
8750 rm -f conftest.$ac_objext
8751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8752   (eval $ac_compile) 2>&5
8753   ac_status=$?
8754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755   (exit $ac_status); } &&
8756          { ac_try='test -s conftest.$ac_objext'
8757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758   (eval $ac_try) 2>&5
8759   ac_status=$?
8760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761   (exit $ac_status); }; }; then
8762   ac_header_compiler=yes
8763 else
8764   echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.$ac_ext >&5
8766
8767 ac_header_compiler=no
8768 fi
8769 rm -f conftest.$ac_objext conftest.$ac_ext
8770 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8771 echo "${ECHO_T}$ac_header_compiler" >&6
8772
8773 # Is the header present?
8774 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8776 cat >conftest.$ac_ext <<_ACEOF
8777 #line $LINENO "configure"
8778 /* confdefs.h.  */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h.  */
8783 #include <$ac_header>
8784 _ACEOF
8785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8786   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8787   ac_status=$?
8788   grep -v '^ *+' conftest.er1 >conftest.err
8789   rm -f conftest.er1
8790   cat conftest.err >&5
8791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   (exit $ac_status); } >/dev/null; then
8793   if test -s conftest.err; then
8794     ac_cpp_err=$ac_c_preproc_warn_flag
8795   else
8796     ac_cpp_err=
8797   fi
8798 else
8799   ac_cpp_err=yes
8800 fi
8801 if test -z "$ac_cpp_err"; then
8802   ac_header_preproc=yes
8803 else
8804   echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.$ac_ext >&5
8806
8807   ac_header_preproc=no
8808 fi
8809 rm -f conftest.err conftest.$ac_ext
8810 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8811 echo "${ECHO_T}$ac_header_preproc" >&6
8812
8813 # So?  What about this header?
8814 case $ac_header_compiler:$ac_header_preproc in
8815   yes:no )
8816     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8820     (
8821       cat <<\_ASBOX
8822 ## ------------------------------------ ##
8823 ## Report this to bug-autoconf@gnu.org. ##
8824 ## ------------------------------------ ##
8825 _ASBOX
8826     ) |
8827       sed "s/^/$as_me: WARNING:     /" >&2
8828     ;;
8829   no:yes )
8830     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8832     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8834     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8836     (
8837       cat <<\_ASBOX
8838 ## ------------------------------------ ##
8839 ## Report this to bug-autoconf@gnu.org. ##
8840 ## ------------------------------------ ##
8841 _ASBOX
8842     ) |
8843       sed "s/^/$as_me: WARNING:     /" >&2
8844     ;;
8845 esac
8846 echo "$as_me:$LINENO: checking for $ac_header" >&5
8847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8849   echo $ECHO_N "(cached) $ECHO_C" >&6
8850 else
8851   eval "$as_ac_Header=$ac_header_preproc"
8852 fi
8853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8855
8856 fi
8857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8858   cat >>confdefs.h <<_ACEOF
8859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8860 _ACEOF
8861
8862 fi
8863
8864 done
8865
8866
8867
8868
8869
8870   headers='
8871 #include <stdio.h>
8872 #if HAVE_STRING_H
8873 # if !STDC_HEADERS && HAVE_MEMORY_H
8874 #  include <memory.h>
8875 # endif
8876 # include <string.h>
8877 #else
8878 # if HAVE_STRINGS_H
8879 #  include <strings.h>
8880 # endif
8881 #endif
8882 #if HAVE_STDLIB_H
8883 # include <stdlib.h>
8884 #endif
8885 #if HAVE_UNISTD_H
8886 # include <unistd.h>
8887 #endif
8888
8889 #include <sys/types.h>
8890 #if TIME_WITH_SYS_TIME
8891 # include <sys/time.h>
8892 # include <time.h>
8893 #else
8894 # if HAVE_SYS_TIME_H
8895 #  include <sys/time.h>
8896 # else
8897 #  include <time.h>
8898 # endif
8899 #endif
8900
8901 #if HAVE_UTMP_H
8902 # include <utmp.h>
8903 #endif
8904
8905 #if HAVE_GRP_H
8906 # include <grp.h>
8907 #endif
8908
8909 #if HAVE_PWD_H
8910 # include <pwd.h>
8911 #endif
8912 '
8913
8914   echo "$as_me:$LINENO: checking whether free is declared" >&5
8915 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
8916 if test "${ac_cv_have_decl_free+set}" = set; then
8917   echo $ECHO_N "(cached) $ECHO_C" >&6
8918 else
8919   cat >conftest.$ac_ext <<_ACEOF
8920 #line $LINENO "configure"
8921 /* confdefs.h.  */
8922 _ACEOF
8923 cat confdefs.h >>conftest.$ac_ext
8924 cat >>conftest.$ac_ext <<_ACEOF
8925 /* end confdefs.h.  */
8926 $headers
8927
8928 int
8929 main ()
8930 {
8931 #ifndef free
8932   char *p = (char *) free;
8933 #endif
8934
8935   ;
8936   return 0;
8937 }
8938 _ACEOF
8939 rm -f conftest.$ac_objext
8940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8941   (eval $ac_compile) 2>&5
8942   ac_status=$?
8943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944   (exit $ac_status); } &&
8945          { ac_try='test -s conftest.$ac_objext'
8946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947   (eval $ac_try) 2>&5
8948   ac_status=$?
8949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950   (exit $ac_status); }; }; then
8951   ac_cv_have_decl_free=yes
8952 else
8953   echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8955
8956 ac_cv_have_decl_free=no
8957 fi
8958 rm -f conftest.$ac_objext conftest.$ac_ext
8959 fi
8960 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
8961 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
8962 if test $ac_cv_have_decl_free = yes; then
8963
8964 cat >>confdefs.h <<_ACEOF
8965 #define HAVE_DECL_FREE 1
8966 _ACEOF
8967
8968
8969 else
8970   cat >>confdefs.h <<_ACEOF
8971 #define HAVE_DECL_FREE 0
8972 _ACEOF
8973
8974
8975 fi
8976 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
8977 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
8978 if test "${ac_cv_have_decl_getenv+set}" = set; then
8979   echo $ECHO_N "(cached) $ECHO_C" >&6
8980 else
8981   cat >conftest.$ac_ext <<_ACEOF
8982 #line $LINENO "configure"
8983 /* confdefs.h.  */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h.  */
8988 $headers
8989
8990 int
8991 main ()
8992 {
8993 #ifndef getenv
8994   char *p = (char *) getenv;
8995 #endif
8996
8997   ;
8998   return 0;
8999 }
9000 _ACEOF
9001 rm -f conftest.$ac_objext
9002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9003   (eval $ac_compile) 2>&5
9004   ac_status=$?
9005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006   (exit $ac_status); } &&
9007          { ac_try='test -s conftest.$ac_objext'
9008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009   (eval $ac_try) 2>&5
9010   ac_status=$?
9011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012   (exit $ac_status); }; }; then
9013   ac_cv_have_decl_getenv=yes
9014 else
9015   echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9017
9018 ac_cv_have_decl_getenv=no
9019 fi
9020 rm -f conftest.$ac_objext conftest.$ac_ext
9021 fi
9022 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9023 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
9024 if test $ac_cv_have_decl_getenv = yes; then
9025
9026 cat >>confdefs.h <<_ACEOF
9027 #define HAVE_DECL_GETENV 1
9028 _ACEOF
9029
9030
9031 else
9032   cat >>confdefs.h <<_ACEOF
9033 #define HAVE_DECL_GETENV 0
9034 _ACEOF
9035
9036
9037 fi
9038 echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
9039 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6
9040 if test "${ac_cv_have_decl_geteuid+set}" = set; then
9041   echo $ECHO_N "(cached) $ECHO_C" >&6
9042 else
9043   cat >conftest.$ac_ext <<_ACEOF
9044 #line $LINENO "configure"
9045 /* confdefs.h.  */
9046 _ACEOF
9047 cat confdefs.h >>conftest.$ac_ext
9048 cat >>conftest.$ac_ext <<_ACEOF
9049 /* end confdefs.h.  */
9050 $headers
9051
9052 int
9053 main ()
9054 {
9055 #ifndef geteuid
9056   char *p = (char *) geteuid;
9057 #endif
9058
9059   ;
9060   return 0;
9061 }
9062 _ACEOF
9063 rm -f conftest.$ac_objext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9065   (eval $ac_compile) 2>&5
9066   ac_status=$?
9067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068   (exit $ac_status); } &&
9069          { ac_try='test -s conftest.$ac_objext'
9070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071   (eval $ac_try) 2>&5
9072   ac_status=$?
9073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074   (exit $ac_status); }; }; then
9075   ac_cv_have_decl_geteuid=yes
9076 else
9077   echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9079
9080 ac_cv_have_decl_geteuid=no
9081 fi
9082 rm -f conftest.$ac_objext conftest.$ac_ext
9083 fi
9084 echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
9085 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6
9086 if test $ac_cv_have_decl_geteuid = yes; then
9087
9088 cat >>confdefs.h <<_ACEOF
9089 #define HAVE_DECL_GETEUID 1
9090 _ACEOF
9091
9092
9093 else
9094   cat >>confdefs.h <<_ACEOF
9095 #define HAVE_DECL_GETEUID 0
9096 _ACEOF
9097
9098
9099 fi
9100 echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
9101 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6
9102 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
9103   echo $ECHO_N "(cached) $ECHO_C" >&6
9104 else
9105   cat >conftest.$ac_ext <<_ACEOF
9106 #line $LINENO "configure"
9107 /* confdefs.h.  */
9108 _ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h.  */
9112 $headers
9113
9114 int
9115 main ()
9116 {
9117 #ifndef getgrgid
9118   char *p = (char *) getgrgid;
9119 #endif
9120
9121   ;
9122   return 0;
9123 }
9124 _ACEOF
9125 rm -f conftest.$ac_objext
9126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9127   (eval $ac_compile) 2>&5
9128   ac_status=$?
9129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130   (exit $ac_status); } &&
9131          { ac_try='test -s conftest.$ac_objext'
9132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133   (eval $ac_try) 2>&5
9134   ac_status=$?
9135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136   (exit $ac_status); }; }; then
9137   ac_cv_have_decl_getgrgid=yes
9138 else
9139   echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9141
9142 ac_cv_have_decl_getgrgid=no
9143 fi
9144 rm -f conftest.$ac_objext conftest.$ac_ext
9145 fi
9146 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
9147 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6
9148 if test $ac_cv_have_decl_getgrgid = yes; then
9149
9150 cat >>confdefs.h <<_ACEOF
9151 #define HAVE_DECL_GETGRGID 1
9152 _ACEOF
9153
9154
9155 else
9156   cat >>confdefs.h <<_ACEOF
9157 #define HAVE_DECL_GETGRGID 0
9158 _ACEOF
9159
9160
9161 fi
9162 echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
9163 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6
9164 if test "${ac_cv_have_decl_getlogin+set}" = set; then
9165   echo $ECHO_N "(cached) $ECHO_C" >&6
9166 else
9167   cat >conftest.$ac_ext <<_ACEOF
9168 #line $LINENO "configure"
9169 /* confdefs.h.  */
9170 _ACEOF
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h.  */
9174 $headers
9175
9176 int
9177 main ()
9178 {
9179 #ifndef getlogin
9180   char *p = (char *) getlogin;
9181 #endif
9182
9183   ;
9184   return 0;
9185 }
9186 _ACEOF
9187 rm -f conftest.$ac_objext
9188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9189   (eval $ac_compile) 2>&5
9190   ac_status=$?
9191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192   (exit $ac_status); } &&
9193          { ac_try='test -s conftest.$ac_objext'
9194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195   (eval $ac_try) 2>&5
9196   ac_status=$?
9197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   (exit $ac_status); }; }; then
9199   ac_cv_have_decl_getlogin=yes
9200 else
9201   echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9203
9204 ac_cv_have_decl_getlogin=no
9205 fi
9206 rm -f conftest.$ac_objext conftest.$ac_ext
9207 fi
9208 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
9209 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6
9210 if test $ac_cv_have_decl_getlogin = yes; then
9211
9212 cat >>confdefs.h <<_ACEOF
9213 #define HAVE_DECL_GETLOGIN 1
9214 _ACEOF
9215
9216
9217 else
9218   cat >>confdefs.h <<_ACEOF
9219 #define HAVE_DECL_GETLOGIN 0
9220 _ACEOF
9221
9222
9223 fi
9224 echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
9225 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6
9226 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
9227   echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229   cat >conftest.$ac_ext <<_ACEOF
9230 #line $LINENO "configure"
9231 /* confdefs.h.  */
9232 _ACEOF
9233 cat confdefs.h >>conftest.$ac_ext
9234 cat >>conftest.$ac_ext <<_ACEOF
9235 /* end confdefs.h.  */
9236 $headers
9237
9238 int
9239 main ()
9240 {
9241 #ifndef getpwuid
9242   char *p = (char *) getpwuid;
9243 #endif
9244
9245   ;
9246   return 0;
9247 }
9248 _ACEOF
9249 rm -f conftest.$ac_objext
9250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9251   (eval $ac_compile) 2>&5
9252   ac_status=$?
9253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254   (exit $ac_status); } &&
9255          { ac_try='test -s conftest.$ac_objext'
9256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257   (eval $ac_try) 2>&5
9258   ac_status=$?
9259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260   (exit $ac_status); }; }; then
9261   ac_cv_have_decl_getpwuid=yes
9262 else
9263   echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9265
9266 ac_cv_have_decl_getpwuid=no
9267 fi
9268 rm -f conftest.$ac_objext conftest.$ac_ext
9269 fi
9270 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
9271 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6
9272 if test $ac_cv_have_decl_getpwuid = yes; then
9273
9274 cat >>confdefs.h <<_ACEOF
9275 #define HAVE_DECL_GETPWUID 1
9276 _ACEOF
9277
9278
9279 else
9280   cat >>confdefs.h <<_ACEOF
9281 #define HAVE_DECL_GETPWUID 0
9282 _ACEOF
9283
9284
9285 fi
9286 echo "$as_me:$LINENO: checking whether getuid is declared" >&5
9287 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6
9288 if test "${ac_cv_have_decl_getuid+set}" = set; then
9289   echo $ECHO_N "(cached) $ECHO_C" >&6
9290 else
9291   cat >conftest.$ac_ext <<_ACEOF
9292 #line $LINENO "configure"
9293 /* confdefs.h.  */
9294 _ACEOF
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h.  */
9298 $headers
9299
9300 int
9301 main ()
9302 {
9303 #ifndef getuid
9304   char *p = (char *) getuid;
9305 #endif
9306
9307   ;
9308   return 0;
9309 }
9310 _ACEOF
9311 rm -f conftest.$ac_objext
9312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9313   (eval $ac_compile) 2>&5
9314   ac_status=$?
9315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316   (exit $ac_status); } &&
9317          { ac_try='test -s conftest.$ac_objext'
9318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319   (eval $ac_try) 2>&5
9320   ac_status=$?
9321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322   (exit $ac_status); }; }; then
9323   ac_cv_have_decl_getuid=yes
9324 else
9325   echo "$as_me: failed program was:" >&5
9326 sed 's/^/| /' conftest.$ac_ext >&5
9327
9328 ac_cv_have_decl_getuid=no
9329 fi
9330 rm -f conftest.$ac_objext conftest.$ac_ext
9331 fi
9332 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
9333 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6
9334 if test $ac_cv_have_decl_getuid = yes; then
9335
9336 cat >>confdefs.h <<_ACEOF
9337 #define HAVE_DECL_GETUID 1
9338 _ACEOF
9339
9340
9341 else
9342   cat >>confdefs.h <<_ACEOF
9343 #define HAVE_DECL_GETUID 0
9344 _ACEOF
9345
9346
9347 fi
9348 echo "$as_me:$LINENO: checking whether getutent is declared" >&5
9349 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
9350 if test "${ac_cv_have_decl_getutent+set}" = set; then
9351   echo $ECHO_N "(cached) $ECHO_C" >&6
9352 else
9353   cat >conftest.$ac_ext <<_ACEOF
9354 #line $LINENO "configure"
9355 /* confdefs.h.  */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h.  */
9360 $headers
9361
9362 int
9363 main ()
9364 {
9365 #ifndef getutent
9366   char *p = (char *) getutent;
9367 #endif
9368
9369   ;
9370   return 0;
9371 }
9372 _ACEOF
9373 rm -f conftest.$ac_objext
9374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9375   (eval $ac_compile) 2>&5
9376   ac_status=$?
9377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   (exit $ac_status); } &&
9379          { ac_try='test -s conftest.$ac_objext'
9380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381   (eval $ac_try) 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); }; }; then
9385   ac_cv_have_decl_getutent=yes
9386 else
9387   echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9389
9390 ac_cv_have_decl_getutent=no
9391 fi
9392 rm -f conftest.$ac_objext conftest.$ac_ext
9393 fi
9394 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
9395 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
9396 if test $ac_cv_have_decl_getutent = yes; then
9397
9398 cat >>confdefs.h <<_ACEOF
9399 #define HAVE_DECL_GETUTENT 1
9400 _ACEOF
9401
9402
9403 else
9404   cat >>confdefs.h <<_ACEOF
9405 #define HAVE_DECL_GETUTENT 0
9406 _ACEOF
9407
9408
9409 fi
9410 echo "$as_me:$LINENO: checking whether lseek is declared" >&5
9411 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6
9412 if test "${ac_cv_have_decl_lseek+set}" = set; then
9413   echo $ECHO_N "(cached) $ECHO_C" >&6
9414 else
9415   cat >conftest.$ac_ext <<_ACEOF
9416 #line $LINENO "configure"
9417 /* confdefs.h.  */
9418 _ACEOF
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h.  */
9422 $headers
9423
9424 int
9425 main ()
9426 {
9427 #ifndef lseek
9428   char *p = (char *) lseek;
9429 #endif
9430
9431   ;
9432   return 0;
9433 }
9434 _ACEOF
9435 rm -f conftest.$ac_objext
9436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9437   (eval $ac_compile) 2>&5
9438   ac_status=$?
9439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440   (exit $ac_status); } &&
9441          { ac_try='test -s conftest.$ac_objext'
9442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9443   (eval $ac_try) 2>&5
9444   ac_status=$?
9445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446   (exit $ac_status); }; }; then
9447   ac_cv_have_decl_lseek=yes
9448 else
9449   echo "$as_me: failed program was:" >&5
9450 sed 's/^/| /' conftest.$ac_ext >&5
9451
9452 ac_cv_have_decl_lseek=no
9453 fi
9454 rm -f conftest.$ac_objext conftest.$ac_ext
9455 fi
9456 echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
9457 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6
9458 if test $ac_cv_have_decl_lseek = yes; then
9459
9460 cat >>confdefs.h <<_ACEOF
9461 #define HAVE_DECL_LSEEK 1
9462 _ACEOF
9463
9464
9465 else
9466   cat >>confdefs.h <<_ACEOF
9467 #define HAVE_DECL_LSEEK 0
9468 _ACEOF
9469
9470
9471 fi
9472 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
9473 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
9474 if test "${ac_cv_have_decl_malloc+set}" = set; then
9475   echo $ECHO_N "(cached) $ECHO_C" >&6
9476 else
9477   cat >conftest.$ac_ext <<_ACEOF
9478 #line $LINENO "configure"
9479 /* confdefs.h.  */
9480 _ACEOF
9481 cat confdefs.h >>conftest.$ac_ext
9482 cat >>conftest.$ac_ext <<_ACEOF
9483 /* end confdefs.h.  */
9484 $headers
9485
9486 int
9487 main ()
9488 {
9489 #ifndef malloc
9490   char *p = (char *) malloc;
9491 #endif
9492
9493   ;
9494   return 0;
9495 }
9496 _ACEOF
9497 rm -f conftest.$ac_objext
9498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9499   (eval $ac_compile) 2>&5
9500   ac_status=$?
9501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502   (exit $ac_status); } &&
9503          { ac_try='test -s conftest.$ac_objext'
9504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505   (eval $ac_try) 2>&5
9506   ac_status=$?
9507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508   (exit $ac_status); }; }; then
9509   ac_cv_have_decl_malloc=yes
9510 else
9511   echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.$ac_ext >&5
9513
9514 ac_cv_have_decl_malloc=no
9515 fi
9516 rm -f conftest.$ac_objext conftest.$ac_ext
9517 fi
9518 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
9519 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
9520 if test $ac_cv_have_decl_malloc = yes; then
9521
9522 cat >>confdefs.h <<_ACEOF
9523 #define HAVE_DECL_MALLOC 1
9524 _ACEOF
9525
9526
9527 else
9528   cat >>confdefs.h <<_ACEOF
9529 #define HAVE_DECL_MALLOC 0
9530 _ACEOF
9531
9532
9533 fi
9534 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
9535 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
9536 if test "${ac_cv_have_decl_memchr+set}" = set; then
9537   echo $ECHO_N "(cached) $ECHO_C" >&6
9538 else
9539   cat >conftest.$ac_ext <<_ACEOF
9540 #line $LINENO "configure"
9541 /* confdefs.h.  */
9542 _ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h.  */
9546 $headers
9547
9548 int
9549 main ()
9550 {
9551 #ifndef memchr
9552   char *p = (char *) memchr;
9553 #endif
9554
9555   ;
9556   return 0;
9557 }
9558 _ACEOF
9559 rm -f conftest.$ac_objext
9560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9561   (eval $ac_compile) 2>&5
9562   ac_status=$?
9563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564   (exit $ac_status); } &&
9565          { ac_try='test -s conftest.$ac_objext'
9566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567   (eval $ac_try) 2>&5
9568   ac_status=$?
9569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570   (exit $ac_status); }; }; then
9571   ac_cv_have_decl_memchr=yes
9572 else
9573   echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9575
9576 ac_cv_have_decl_memchr=no
9577 fi
9578 rm -f conftest.$ac_objext conftest.$ac_ext
9579 fi
9580 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
9581 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
9582 if test $ac_cv_have_decl_memchr = yes; then
9583
9584 cat >>confdefs.h <<_ACEOF
9585 #define HAVE_DECL_MEMCHR 1
9586 _ACEOF
9587
9588
9589 else
9590   cat >>confdefs.h <<_ACEOF
9591 #define HAVE_DECL_MEMCHR 0
9592 _ACEOF
9593
9594
9595 fi
9596 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
9597 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
9598 if test "${ac_cv_have_decl_memrchr+set}" = set; then
9599   echo $ECHO_N "(cached) $ECHO_C" >&6
9600 else
9601   cat >conftest.$ac_ext <<_ACEOF
9602 #line $LINENO "configure"
9603 /* confdefs.h.  */
9604 _ACEOF
9605 cat confdefs.h >>conftest.$ac_ext
9606 cat >>conftest.$ac_ext <<_ACEOF
9607 /* end confdefs.h.  */
9608 $headers
9609
9610 int
9611 main ()
9612 {
9613 #ifndef memrchr
9614   char *p = (char *) memrchr;
9615 #endif
9616
9617   ;
9618   return 0;
9619 }
9620 _ACEOF
9621 rm -f conftest.$ac_objext
9622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9623   (eval $ac_compile) 2>&5
9624   ac_status=$?
9625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626   (exit $ac_status); } &&
9627          { ac_try='test -s conftest.$ac_objext'
9628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629   (eval $ac_try) 2>&5
9630   ac_status=$?
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); }; }; then
9633   ac_cv_have_decl_memrchr=yes
9634 else
9635   echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9637
9638 ac_cv_have_decl_memrchr=no
9639 fi
9640 rm -f conftest.$ac_objext conftest.$ac_ext
9641 fi
9642 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
9643 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
9644 if test $ac_cv_have_decl_memrchr = yes; then
9645
9646 cat >>confdefs.h <<_ACEOF
9647 #define HAVE_DECL_MEMRCHR 1
9648 _ACEOF
9649
9650
9651 else
9652   cat >>confdefs.h <<_ACEOF
9653 #define HAVE_DECL_MEMRCHR 0
9654 _ACEOF
9655
9656
9657 fi
9658 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
9659 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
9660 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
9661   echo $ECHO_N "(cached) $ECHO_C" >&6
9662 else
9663   cat >conftest.$ac_ext <<_ACEOF
9664 #line $LINENO "configure"
9665 /* confdefs.h.  */
9666 _ACEOF
9667 cat confdefs.h >>conftest.$ac_ext
9668 cat >>conftest.$ac_ext <<_ACEOF
9669 /* end confdefs.h.  */
9670 $headers
9671
9672 int
9673 main ()
9674 {
9675 #ifndef nanosleep
9676   char *p = (char *) nanosleep;
9677 #endif
9678
9679   ;
9680   return 0;
9681 }
9682 _ACEOF
9683 rm -f conftest.$ac_objext
9684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9685   (eval $ac_compile) 2>&5
9686   ac_status=$?
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); } &&
9689          { ac_try='test -s conftest.$ac_objext'
9690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691   (eval $ac_try) 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); }; }; then
9695   ac_cv_have_decl_nanosleep=yes
9696 else
9697   echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9699
9700 ac_cv_have_decl_nanosleep=no
9701 fi
9702 rm -f conftest.$ac_objext conftest.$ac_ext
9703 fi
9704 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
9705 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
9706 if test $ac_cv_have_decl_nanosleep = yes; then
9707
9708 cat >>confdefs.h <<_ACEOF
9709 #define HAVE_DECL_NANOSLEEP 1
9710 _ACEOF
9711
9712
9713 else
9714   cat >>confdefs.h <<_ACEOF
9715 #define HAVE_DECL_NANOSLEEP 0
9716 _ACEOF
9717
9718
9719 fi
9720 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
9721 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
9722 if test "${ac_cv_have_decl_realloc+set}" = set; then
9723   echo $ECHO_N "(cached) $ECHO_C" >&6
9724 else
9725   cat >conftest.$ac_ext <<_ACEOF
9726 #line $LINENO "configure"
9727 /* confdefs.h.  */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h.  */
9732 $headers
9733
9734 int
9735 main ()
9736 {
9737 #ifndef realloc
9738   char *p = (char *) realloc;
9739 #endif
9740
9741   ;
9742   return 0;
9743 }
9744 _ACEOF
9745 rm -f conftest.$ac_objext
9746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9747   (eval $ac_compile) 2>&5
9748   ac_status=$?
9749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750   (exit $ac_status); } &&
9751          { ac_try='test -s conftest.$ac_objext'
9752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753   (eval $ac_try) 2>&5
9754   ac_status=$?
9755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756   (exit $ac_status); }; }; then
9757   ac_cv_have_decl_realloc=yes
9758 else
9759   echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9761
9762 ac_cv_have_decl_realloc=no
9763 fi
9764 rm -f conftest.$ac_objext conftest.$ac_ext
9765 fi
9766 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
9767 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
9768 if test $ac_cv_have_decl_realloc = yes; then
9769
9770 cat >>confdefs.h <<_ACEOF
9771 #define HAVE_DECL_REALLOC 1
9772 _ACEOF
9773
9774
9775 else
9776   cat >>confdefs.h <<_ACEOF
9777 #define HAVE_DECL_REALLOC 0
9778 _ACEOF
9779
9780
9781 fi
9782 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
9783 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
9784 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
9785   echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787   cat >conftest.$ac_ext <<_ACEOF
9788 #line $LINENO "configure"
9789 /* confdefs.h.  */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h.  */
9794 $headers
9795
9796 int
9797 main ()
9798 {
9799 #ifndef stpcpy
9800   char *p = (char *) stpcpy;
9801 #endif
9802
9803   ;
9804   return 0;
9805 }
9806 _ACEOF
9807 rm -f conftest.$ac_objext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809   (eval $ac_compile) 2>&5
9810   ac_status=$?
9811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812   (exit $ac_status); } &&
9813          { ac_try='test -s conftest.$ac_objext'
9814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815   (eval $ac_try) 2>&5
9816   ac_status=$?
9817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   (exit $ac_status); }; }; then
9819   ac_cv_have_decl_stpcpy=yes
9820 else
9821   echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9823
9824 ac_cv_have_decl_stpcpy=no
9825 fi
9826 rm -f conftest.$ac_objext conftest.$ac_ext
9827 fi
9828 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
9829 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
9830 if test $ac_cv_have_decl_stpcpy = yes; then
9831
9832 cat >>confdefs.h <<_ACEOF
9833 #define HAVE_DECL_STPCPY 1
9834 _ACEOF
9835
9836
9837 else
9838   cat >>confdefs.h <<_ACEOF
9839 #define HAVE_DECL_STPCPY 0
9840 _ACEOF
9841
9842
9843 fi
9844 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
9845 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
9846 if test "${ac_cv_have_decl_strndup+set}" = set; then
9847   echo $ECHO_N "(cached) $ECHO_C" >&6
9848 else
9849   cat >conftest.$ac_ext <<_ACEOF
9850 #line $LINENO "configure"
9851 /* confdefs.h.  */
9852 _ACEOF
9853 cat confdefs.h >>conftest.$ac_ext
9854 cat >>conftest.$ac_ext <<_ACEOF
9855 /* end confdefs.h.  */
9856 $headers
9857
9858 int
9859 main ()
9860 {
9861 #ifndef strndup
9862   char *p = (char *) strndup;
9863 #endif
9864
9865   ;
9866   return 0;
9867 }
9868 _ACEOF
9869 rm -f conftest.$ac_objext
9870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9871   (eval $ac_compile) 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); } &&
9875          { ac_try='test -s conftest.$ac_objext'
9876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877   (eval $ac_try) 2>&5
9878   ac_status=$?
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); }; }; then
9881   ac_cv_have_decl_strndup=yes
9882 else
9883   echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9885
9886 ac_cv_have_decl_strndup=no
9887 fi
9888 rm -f conftest.$ac_objext conftest.$ac_ext
9889 fi
9890 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
9891 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
9892 if test $ac_cv_have_decl_strndup = yes; then
9893
9894 cat >>confdefs.h <<_ACEOF
9895 #define HAVE_DECL_STRNDUP 1
9896 _ACEOF
9897
9898
9899 else
9900   cat >>confdefs.h <<_ACEOF
9901 #define HAVE_DECL_STRNDUP 0
9902 _ACEOF
9903
9904
9905 fi
9906 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
9907 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
9908 if test "${ac_cv_have_decl_strnlen+set}" = set; then
9909   echo $ECHO_N "(cached) $ECHO_C" >&6
9910 else
9911   cat >conftest.$ac_ext <<_ACEOF
9912 #line $LINENO "configure"
9913 /* confdefs.h.  */
9914 _ACEOF
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h.  */
9918 $headers
9919
9920 int
9921 main ()
9922 {
9923 #ifndef strnlen
9924   char *p = (char *) strnlen;
9925 #endif
9926
9927   ;
9928   return 0;
9929 }
9930 _ACEOF
9931 rm -f conftest.$ac_objext
9932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9933   (eval $ac_compile) 2>&5
9934   ac_status=$?
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); } &&
9937          { ac_try='test -s conftest.$ac_objext'
9938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939   (eval $ac_try) 2>&5
9940   ac_status=$?
9941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); }; }; then
9943   ac_cv_have_decl_strnlen=yes
9944 else
9945   echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9947
9948 ac_cv_have_decl_strnlen=no
9949 fi
9950 rm -f conftest.$ac_objext conftest.$ac_ext
9951 fi
9952 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
9953 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
9954 if test $ac_cv_have_decl_strnlen = yes; then
9955
9956 cat >>confdefs.h <<_ACEOF
9957 #define HAVE_DECL_STRNLEN 1
9958 _ACEOF
9959
9960
9961 else
9962   cat >>confdefs.h <<_ACEOF
9963 #define HAVE_DECL_STRNLEN 0
9964 _ACEOF
9965
9966
9967 fi
9968 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
9969 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
9970 if test "${ac_cv_have_decl_strstr+set}" = set; then
9971   echo $ECHO_N "(cached) $ECHO_C" >&6
9972 else
9973   cat >conftest.$ac_ext <<_ACEOF
9974 #line $LINENO "configure"
9975 /* confdefs.h.  */
9976 _ACEOF
9977 cat confdefs.h >>conftest.$ac_ext
9978 cat >>conftest.$ac_ext <<_ACEOF
9979 /* end confdefs.h.  */
9980 $headers
9981
9982 int
9983 main ()
9984 {
9985 #ifndef strstr
9986   char *p = (char *) strstr;
9987 #endif
9988
9989   ;
9990   return 0;
9991 }
9992 _ACEOF
9993 rm -f conftest.$ac_objext
9994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9995   (eval $ac_compile) 2>&5
9996   ac_status=$?
9997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998   (exit $ac_status); } &&
9999          { ac_try='test -s conftest.$ac_objext'
10000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001   (eval $ac_try) 2>&5
10002   ac_status=$?
10003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004   (exit $ac_status); }; }; then
10005   ac_cv_have_decl_strstr=yes
10006 else
10007   echo "$as_me: failed program was:" >&5
10008 sed 's/^/| /' conftest.$ac_ext >&5
10009
10010 ac_cv_have_decl_strstr=no
10011 fi
10012 rm -f conftest.$ac_objext conftest.$ac_ext
10013 fi
10014 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
10015 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
10016 if test $ac_cv_have_decl_strstr = yes; then
10017
10018 cat >>confdefs.h <<_ACEOF
10019 #define HAVE_DECL_STRSTR 1
10020 _ACEOF
10021
10022
10023 else
10024   cat >>confdefs.h <<_ACEOF
10025 #define HAVE_DECL_STRSTR 0
10026 _ACEOF
10027
10028
10029 fi
10030 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
10031 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
10032 if test "${ac_cv_have_decl_strtoul+set}" = set; then
10033   echo $ECHO_N "(cached) $ECHO_C" >&6
10034 else
10035   cat >conftest.$ac_ext <<_ACEOF
10036 #line $LINENO "configure"
10037 /* confdefs.h.  */
10038 _ACEOF
10039 cat confdefs.h >>conftest.$ac_ext
10040 cat >>conftest.$ac_ext <<_ACEOF
10041 /* end confdefs.h.  */
10042 $headers
10043
10044 int
10045 main ()
10046 {
10047 #ifndef strtoul
10048   char *p = (char *) strtoul;
10049 #endif
10050
10051   ;
10052   return 0;
10053 }
10054 _ACEOF
10055 rm -f conftest.$ac_objext
10056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10057   (eval $ac_compile) 2>&5
10058   ac_status=$?
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); } &&
10061          { ac_try='test -s conftest.$ac_objext'
10062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063   (eval $ac_try) 2>&5
10064   ac_status=$?
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); }; }; then
10067   ac_cv_have_decl_strtoul=yes
10068 else
10069   echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10071
10072 ac_cv_have_decl_strtoul=no
10073 fi
10074 rm -f conftest.$ac_objext conftest.$ac_ext
10075 fi
10076 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
10077 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
10078 if test $ac_cv_have_decl_strtoul = yes; then
10079
10080 cat >>confdefs.h <<_ACEOF
10081 #define HAVE_DECL_STRTOUL 1
10082 _ACEOF
10083
10084
10085 else
10086   cat >>confdefs.h <<_ACEOF
10087 #define HAVE_DECL_STRTOUL 0
10088 _ACEOF
10089
10090
10091 fi
10092 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
10093 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
10094 if test "${ac_cv_have_decl_strtoull+set}" = set; then
10095   echo $ECHO_N "(cached) $ECHO_C" >&6
10096 else
10097   cat >conftest.$ac_ext <<_ACEOF
10098 #line $LINENO "configure"
10099 /* confdefs.h.  */
10100 _ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h.  */
10104 $headers
10105
10106 int
10107 main ()
10108 {
10109 #ifndef strtoull
10110   char *p = (char *) strtoull;
10111 #endif
10112
10113   ;
10114   return 0;
10115 }
10116 _ACEOF
10117 rm -f conftest.$ac_objext
10118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10119   (eval $ac_compile) 2>&5
10120   ac_status=$?
10121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122   (exit $ac_status); } &&
10123          { ac_try='test -s conftest.$ac_objext'
10124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125   (eval $ac_try) 2>&5
10126   ac_status=$?
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); }; }; then
10129   ac_cv_have_decl_strtoull=yes
10130 else
10131   echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10133
10134 ac_cv_have_decl_strtoull=no
10135 fi
10136 rm -f conftest.$ac_objext conftest.$ac_ext
10137 fi
10138 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
10139 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
10140 if test $ac_cv_have_decl_strtoull = yes; then
10141
10142 cat >>confdefs.h <<_ACEOF
10143 #define HAVE_DECL_STRTOULL 1
10144 _ACEOF
10145
10146
10147 else
10148   cat >>confdefs.h <<_ACEOF
10149 #define HAVE_DECL_STRTOULL 0
10150 _ACEOF
10151
10152
10153 fi
10154 echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
10155 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6
10156 if test "${ac_cv_have_decl_ttyname+set}" = set; then
10157   echo $ECHO_N "(cached) $ECHO_C" >&6
10158 else
10159   cat >conftest.$ac_ext <<_ACEOF
10160 #line $LINENO "configure"
10161 /* confdefs.h.  */
10162 _ACEOF
10163 cat confdefs.h >>conftest.$ac_ext
10164 cat >>conftest.$ac_ext <<_ACEOF
10165 /* end confdefs.h.  */
10166 $headers
10167
10168 int
10169 main ()
10170 {
10171 #ifndef ttyname
10172   char *p = (char *) ttyname;
10173 #endif
10174
10175   ;
10176   return 0;
10177 }
10178 _ACEOF
10179 rm -f conftest.$ac_objext
10180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10181   (eval $ac_compile) 2>&5
10182   ac_status=$?
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); } &&
10185          { ac_try='test -s conftest.$ac_objext'
10186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187   (eval $ac_try) 2>&5
10188   ac_status=$?
10189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190   (exit $ac_status); }; }; then
10191   ac_cv_have_decl_ttyname=yes
10192 else
10193   echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10195
10196 ac_cv_have_decl_ttyname=no
10197 fi
10198 rm -f conftest.$ac_objext conftest.$ac_ext
10199 fi
10200 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
10201 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6
10202 if test $ac_cv_have_decl_ttyname = yes; then
10203
10204 cat >>confdefs.h <<_ACEOF
10205 #define HAVE_DECL_TTYNAME 1
10206 _ACEOF
10207
10208
10209 else
10210   cat >>confdefs.h <<_ACEOF
10211 #define HAVE_DECL_TTYNAME 0
10212 _ACEOF
10213
10214
10215 fi
10216
10217
10218
10219 echo "$as_me:$LINENO: checking for long file names" >&5
10220 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
10221 if test "${ac_cv_sys_long_file_names+set}" = set; then
10222   echo $ECHO_N "(cached) $ECHO_C" >&6
10223 else
10224   ac_cv_sys_long_file_names=yes
10225 # Test for long file names in all the places we know might matter:
10226 #      .                the current directory, where building will happen
10227 #      $prefix/lib      where we will be installing things
10228 #      $exec_prefix/lib likewise
10229 # eval it to expand exec_prefix.
10230 #      $TMPDIR          if set, where it might want to write temporary files
10231 # if $TMPDIR is not set:
10232 #      /tmp             where it might want to write temporary files
10233 #      /var/tmp         likewise
10234 #      /usr/tmp         likewise
10235 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
10236   ac_tmpdirs=$TMPDIR
10237 else
10238   ac_tmpdirs='/tmp /var/tmp /usr/tmp'
10239 fi
10240 for ac_dir in  . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
10241   test -d $ac_dir || continue
10242   test -w $ac_dir || continue # It is less confusing to not echo anything here.
10243   ac_xdir=$ac_dir/cf$$
10244   (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
10245   ac_tf1=$ac_xdir/conftest9012345
10246   ac_tf2=$ac_xdir/conftest9012346
10247   (echo 1 >$ac_tf1) 2>/dev/null
10248   (echo 2 >$ac_tf2) 2>/dev/null
10249   ac_val=`cat $ac_tf1 2>/dev/null`
10250   if test ! -f $ac_tf1 || test "$ac_val" != 1; then
10251     ac_cv_sys_long_file_names=no
10252     rm -rf $ac_xdir 2>/dev/null
10253     break
10254   fi
10255   rm -rf $ac_xdir 2>/dev/null
10256 done
10257 fi
10258 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
10259 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
10260 if test $ac_cv_sys_long_file_names = yes; then
10261
10262 cat >>confdefs.h <<\_ACEOF
10263 #define HAVE_LONG_FILE_NAMES 1
10264 _ACEOF
10265
10266 fi
10267
10268
10269
10270
10271 for ac_func in pathconf
10272 do
10273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10274 echo "$as_me:$LINENO: checking for $ac_func" >&5
10275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10276 if eval "test \"\${$as_ac_var+set}\" = set"; then
10277   echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279   cat >conftest.$ac_ext <<_ACEOF
10280 #line $LINENO "configure"
10281 /* confdefs.h.  */
10282 _ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h.  */
10286 /* System header to define __stub macros and hopefully few prototypes,
10287     which can conflict with char $ac_func (); below.
10288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10289     <limits.h> exists even on freestanding compilers.  */
10290 #ifdef __STDC__
10291 # include <limits.h>
10292 #else
10293 # include <assert.h>
10294 #endif
10295 /* Override any gcc2 internal prototype to avoid an error.  */
10296 #ifdef __cplusplus
10297 extern "C"
10298 {
10299 #endif
10300 /* We use char because int might match the return type of a gcc2
10301    builtin and then its argument prototype would still apply.  */
10302 char $ac_func ();
10303 /* The GNU C library defines this for functions which it implements
10304     to always fail with ENOSYS.  Some functions are actually named
10305     something starting with __ and the normal name is an alias.  */
10306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10307 choke me
10308 #else
10309 char (*f) () = $ac_func;
10310 #endif
10311 #ifdef __cplusplus
10312 }
10313 #endif
10314
10315 int
10316 main ()
10317 {
10318 return f != $ac_func;
10319   ;
10320   return 0;
10321 }
10322 _ACEOF
10323 rm -f conftest.$ac_objext conftest$ac_exeext
10324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10325   (eval $ac_link) 2>&5
10326   ac_status=$?
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); } &&
10329          { ac_try='test -s conftest$ac_exeext'
10330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331   (eval $ac_try) 2>&5
10332   ac_status=$?
10333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334   (exit $ac_status); }; }; then
10335   eval "$as_ac_var=yes"
10336 else
10337   echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10339
10340 eval "$as_ac_var=no"
10341 fi
10342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10343 fi
10344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10346 if test `eval echo '${'$as_ac_var'}'` = yes; then
10347   cat >>confdefs.h <<_ACEOF
10348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10349 _ACEOF
10350
10351 fi
10352 done
10353
10354
10355
10356
10357 for ac_header in limits.h string.h unistd.h
10358 do
10359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10361   echo "$as_me:$LINENO: checking for $ac_header" >&5
10362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10364   echo $ECHO_N "(cached) $ECHO_C" >&6
10365 fi
10366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10368 else
10369   # Is the header compilable?
10370 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10372 cat >conftest.$ac_ext <<_ACEOF
10373 #line $LINENO "configure"
10374 /* confdefs.h.  */
10375 _ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h.  */
10379 $ac_includes_default
10380 #include <$ac_header>
10381 _ACEOF
10382 rm -f conftest.$ac_objext
10383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10384   (eval $ac_compile) 2>&5
10385   ac_status=$?
10386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387   (exit $ac_status); } &&
10388          { ac_try='test -s conftest.$ac_objext'
10389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390   (eval $ac_try) 2>&5
10391   ac_status=$?
10392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393   (exit $ac_status); }; }; then
10394   ac_header_compiler=yes
10395 else
10396   echo "$as_me: failed program was:" >&5
10397 sed 's/^/| /' conftest.$ac_ext >&5
10398
10399 ac_header_compiler=no
10400 fi
10401 rm -f conftest.$ac_objext conftest.$ac_ext
10402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10403 echo "${ECHO_T}$ac_header_compiler" >&6
10404
10405 # Is the header present?
10406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10408 cat >conftest.$ac_ext <<_ACEOF
10409 #line $LINENO "configure"
10410 /* confdefs.h.  */
10411 _ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h.  */
10415 #include <$ac_header>
10416 _ACEOF
10417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10418   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10419   ac_status=$?
10420   grep -v '^ *+' conftest.er1 >conftest.err
10421   rm -f conftest.er1
10422   cat conftest.err >&5
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); } >/dev/null; then
10425   if test -s conftest.err; then
10426     ac_cpp_err=$ac_c_preproc_warn_flag
10427   else
10428     ac_cpp_err=
10429   fi
10430 else
10431   ac_cpp_err=yes
10432 fi
10433 if test -z "$ac_cpp_err"; then
10434   ac_header_preproc=yes
10435 else
10436   echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10438
10439   ac_header_preproc=no
10440 fi
10441 rm -f conftest.err conftest.$ac_ext
10442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10443 echo "${ECHO_T}$ac_header_preproc" >&6
10444
10445 # So?  What about this header?
10446 case $ac_header_compiler:$ac_header_preproc in
10447   yes:no )
10448     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10452     (
10453       cat <<\_ASBOX
10454 ## ------------------------------------ ##
10455 ## Report this to bug-autoconf@gnu.org. ##
10456 ## ------------------------------------ ##
10457 _ASBOX
10458     ) |
10459       sed "s/^/$as_me: WARNING:     /" >&2
10460     ;;
10461   no:yes )
10462     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10464     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10468     (
10469       cat <<\_ASBOX
10470 ## ------------------------------------ ##
10471 ## Report this to bug-autoconf@gnu.org. ##
10472 ## ------------------------------------ ##
10473 _ASBOX
10474     ) |
10475       sed "s/^/$as_me: WARNING:     /" >&2
10476     ;;
10477 esac
10478 echo "$as_me:$LINENO: checking for $ac_header" >&5
10479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10481   echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483   eval "$as_ac_Header=$ac_header_preproc"
10484 fi
10485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10487
10488 fi
10489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10490   cat >>confdefs.h <<_ACEOF
10491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10492 _ACEOF
10493
10494 fi
10495
10496 done
10497
10498
10499 # for STACK_DIRECTION
10500
10501
10502    echo "$as_me:$LINENO: checking for working C stack overflow detection" >&5
10503 echo $ECHO_N "checking for working C stack overflow detection... $ECHO_C" >&6
10504 if test "${ac_cv_sys_xsi_stack_overflow_heuristic+set}" = set; then
10505   echo $ECHO_N "(cached) $ECHO_C" >&6
10506 else
10507   if test "$cross_compiling" = yes; then
10508   ac_cv_sys_xsi_stack_overflow_heuristic=cross-compiling
10509 else
10510   cat >conftest.$ac_ext <<_ACEOF
10511 #line $LINENO "configure"
10512 /* confdefs.h.  */
10513 _ACEOF
10514 cat confdefs.h >>conftest.$ac_ext
10515 cat >>conftest.$ac_ext <<_ACEOF
10516 /* end confdefs.h.  */
10517
10518          #include <signal.h>
10519          #include <ucontext.h>
10520
10521          static union
10522          {
10523            char buffer[SIGSTKSZ];
10524            long double ld;
10525            long u;
10526            void *p;
10527          } alternate_signal_stack;
10528
10529          #if STACK_DIRECTION
10530          # define find_stack_direction(ptr) STACK_DIRECTION
10531          #else
10532          static int
10533          find_stack_direction (char const *addr)
10534          {
10535            char dummy;
10536            return (! addr ? find_stack_direction (&dummy)
10537                    : addr < &dummy ? 1 : -1);
10538          }
10539          #endif
10540
10541          static void
10542          segv_handler (int signo, siginfo_t *info, void *context)
10543          {
10544            if (0 < info->si_code)
10545              {
10546                ucontext_t const *user_context = context;
10547                char const *stack_min = user_context->uc_stack.ss_sp;
10548                size_t stack_size = user_context->uc_stack.ss_size;
10549                char const *faulting_address = info->si_addr;
10550                size_t s = faulting_address - stack_min;
10551                size_t page_size = sysconf (_SC_PAGESIZE);
10552                if (find_stack_direction (0) < 0)
10553                  s += page_size;
10554                if (s < stack_size + page_size)
10555                  _exit (0);
10556              }
10557
10558            _exit (1);
10559          }
10560
10561          static int
10562          c_stack_action (void)
10563          {
10564            stack_t st;
10565            struct sigaction act;
10566            int r;
10567
10568            st.ss_flags = 0;
10569            st.ss_sp = alternate_signal_stack.buffer;
10570            st.ss_size = sizeof alternate_signal_stack.buffer;
10571            r = sigaltstack (&st, 0);
10572            if (r != 0)
10573              return r;
10574
10575            sigemptyset (&act.sa_mask);
10576            act.sa_flags = SA_NODEFER | SA_ONSTACK | SA_RESETHAND | SA_SIGINFO;
10577            act.sa_sigaction = segv_handler;
10578            return sigaction (SIGSEGV, &act, 0);
10579          }
10580
10581          static int
10582          recurse (char *p)
10583          {
10584            char array[500];
10585            array[0] = 1;
10586            return *p + recurse (array);
10587          }
10588
10589          int
10590          main (void)
10591          {
10592            c_stack_action ();
10593            return recurse ("\1");
10594          }
10595
10596 _ACEOF
10597 rm -f conftest$ac_exeext
10598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10599   (eval $ac_link) 2>&5
10600   ac_status=$?
10601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604   (eval $ac_try) 2>&5
10605   ac_status=$?
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); }; }; then
10608   ac_cv_sys_xsi_stack_overflow_heuristic=yes
10609 else
10610   echo "$as_me: program exited with status $ac_status" >&5
10611 echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.$ac_ext >&5
10613
10614 ( exit $ac_status )
10615 ac_cv_sys_xsi_stack_overflow_heuristic=no
10616 fi
10617 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10618 fi
10619 fi
10620 echo "$as_me:$LINENO: result: $ac_cv_sys_xsi_stack_overflow_heuristic" >&5
10621 echo "${ECHO_T}$ac_cv_sys_xsi_stack_overflow_heuristic" >&6
10622
10623    if test $ac_cv_sys_xsi_stack_overflow_heuristic = yes; then
10624
10625 cat >>confdefs.h <<\_ACEOF
10626 #define HAVE_XSI_STACK_OVERFLOW_HEURISTIC 1
10627 _ACEOF
10628
10629    fi
10630
10631
10632    # for STACK_DIRECTION
10633
10634
10635
10636
10637 for ac_func in getcontext sigaltstack
10638 do
10639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10640 echo "$as_me:$LINENO: checking for $ac_func" >&5
10641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10642 if eval "test \"\${$as_ac_var+set}\" = set"; then
10643   echo $ECHO_N "(cached) $ECHO_C" >&6
10644 else
10645   cat >conftest.$ac_ext <<_ACEOF
10646 #line $LINENO "configure"
10647 /* confdefs.h.  */
10648 _ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h.  */
10652 /* System header to define __stub macros and hopefully few prototypes,
10653     which can conflict with char $ac_func (); below.
10654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10655     <limits.h> exists even on freestanding compilers.  */
10656 #ifdef __STDC__
10657 # include <limits.h>
10658 #else
10659 # include <assert.h>
10660 #endif
10661 /* Override any gcc2 internal prototype to avoid an error.  */
10662 #ifdef __cplusplus
10663 extern "C"
10664 {
10665 #endif
10666 /* We use char because int might match the return type of a gcc2
10667    builtin and then its argument prototype would still apply.  */
10668 char $ac_func ();
10669 /* The GNU C library defines this for functions which it implements
10670     to always fail with ENOSYS.  Some functions are actually named
10671     something starting with __ and the normal name is an alias.  */
10672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10673 choke me
10674 #else
10675 char (*f) () = $ac_func;
10676 #endif
10677 #ifdef __cplusplus
10678 }
10679 #endif
10680
10681 int
10682 main ()
10683 {
10684 return f != $ac_func;
10685   ;
10686   return 0;
10687 }
10688 _ACEOF
10689 rm -f conftest.$ac_objext conftest$ac_exeext
10690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10691   (eval $ac_link) 2>&5
10692   ac_status=$?
10693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694   (exit $ac_status); } &&
10695          { ac_try='test -s conftest$ac_exeext'
10696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697   (eval $ac_try) 2>&5
10698   ac_status=$?
10699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700   (exit $ac_status); }; }; then
10701   eval "$as_ac_var=yes"
10702 else
10703   echo "$as_me: failed program was:" >&5
10704 sed 's/^/| /' conftest.$ac_ext >&5
10705
10706 eval "$as_ac_var=no"
10707 fi
10708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10709 fi
10710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10712 if test `eval echo '${'$as_ac_var'}'` = yes; then
10713   cat >>confdefs.h <<_ACEOF
10714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10715 _ACEOF
10716
10717 fi
10718 done
10719
10720    echo "$as_me:$LINENO: checking whether getcontext is declared" >&5
10721 echo $ECHO_N "checking whether getcontext is declared... $ECHO_C" >&6
10722 if test "${ac_cv_have_decl_getcontext+set}" = set; then
10723   echo $ECHO_N "(cached) $ECHO_C" >&6
10724 else
10725   cat >conftest.$ac_ext <<_ACEOF
10726 #line $LINENO "configure"
10727 /* confdefs.h.  */
10728 _ACEOF
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h.  */
10732 #include <ucontext.h>
10733
10734 int
10735 main ()
10736 {
10737 #ifndef getcontext
10738   char *p = (char *) getcontext;
10739 #endif
10740
10741   ;
10742   return 0;
10743 }
10744 _ACEOF
10745 rm -f conftest.$ac_objext
10746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10747   (eval $ac_compile) 2>&5
10748   ac_status=$?
10749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750   (exit $ac_status); } &&
10751          { ac_try='test -s conftest.$ac_objext'
10752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753   (eval $ac_try) 2>&5
10754   ac_status=$?
10755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756   (exit $ac_status); }; }; then
10757   ac_cv_have_decl_getcontext=yes
10758 else
10759   echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10761
10762 ac_cv_have_decl_getcontext=no
10763 fi
10764 rm -f conftest.$ac_objext conftest.$ac_ext
10765 fi
10766 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcontext" >&5
10767 echo "${ECHO_T}$ac_cv_have_decl_getcontext" >&6
10768 if test $ac_cv_have_decl_getcontext = yes; then
10769
10770 cat >>confdefs.h <<_ACEOF
10771 #define HAVE_DECL_GETCONTEXT 1
10772 _ACEOF
10773
10774
10775 else
10776   cat >>confdefs.h <<_ACEOF
10777 #define HAVE_DECL_GETCONTEXT 0
10778 _ACEOF
10779
10780
10781 fi
10782
10783
10784    echo "$as_me:$LINENO: checking whether sigaltstack is declared" >&5
10785 echo $ECHO_N "checking whether sigaltstack is declared... $ECHO_C" >&6
10786 if test "${ac_cv_have_decl_sigaltstack+set}" = set; then
10787   echo $ECHO_N "(cached) $ECHO_C" >&6
10788 else
10789   cat >conftest.$ac_ext <<_ACEOF
10790 #line $LINENO "configure"
10791 /* confdefs.h.  */
10792 _ACEOF
10793 cat confdefs.h >>conftest.$ac_ext
10794 cat >>conftest.$ac_ext <<_ACEOF
10795 /* end confdefs.h.  */
10796 #include <signal.h>
10797
10798 int
10799 main ()
10800 {
10801 #ifndef sigaltstack
10802   char *p = (char *) sigaltstack;
10803 #endif
10804
10805   ;
10806   return 0;
10807 }
10808 _ACEOF
10809 rm -f conftest.$ac_objext
10810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10811   (eval $ac_compile) 2>&5
10812   ac_status=$?
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); } &&
10815          { ac_try='test -s conftest.$ac_objext'
10816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817   (eval $ac_try) 2>&5
10818   ac_status=$?
10819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820   (exit $ac_status); }; }; then
10821   ac_cv_have_decl_sigaltstack=yes
10822 else
10823   echo "$as_me: failed program was:" >&5
10824 sed 's/^/| /' conftest.$ac_ext >&5
10825
10826 ac_cv_have_decl_sigaltstack=no
10827 fi
10828 rm -f conftest.$ac_objext conftest.$ac_ext
10829 fi
10830 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sigaltstack" >&5
10831 echo "${ECHO_T}$ac_cv_have_decl_sigaltstack" >&6
10832 if test $ac_cv_have_decl_sigaltstack = yes; then
10833
10834 cat >>confdefs.h <<_ACEOF
10835 #define HAVE_DECL_SIGALTSTACK 1
10836 _ACEOF
10837
10838
10839 else
10840   cat >>confdefs.h <<_ACEOF
10841 #define HAVE_DECL_SIGALTSTACK 0
10842 _ACEOF
10843
10844
10845 fi
10846
10847
10848
10849
10850
10851
10852 for ac_header in sys/resource.h ucontext.h unistd.h
10853 do
10854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10856   echo "$as_me:$LINENO: checking for $ac_header" >&5
10857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10859   echo $ECHO_N "(cached) $ECHO_C" >&6
10860 fi
10861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10863 else
10864   # Is the header compilable?
10865 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10867 cat >conftest.$ac_ext <<_ACEOF
10868 #line $LINENO "configure"
10869 /* confdefs.h.  */
10870 _ACEOF
10871 cat confdefs.h >>conftest.$ac_ext
10872 cat >>conftest.$ac_ext <<_ACEOF
10873 /* end confdefs.h.  */
10874 $ac_includes_default
10875 #include <$ac_header>
10876 _ACEOF
10877 rm -f conftest.$ac_objext
10878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10879   (eval $ac_compile) 2>&5
10880   ac_status=$?
10881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882   (exit $ac_status); } &&
10883          { ac_try='test -s conftest.$ac_objext'
10884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885   (eval $ac_try) 2>&5
10886   ac_status=$?
10887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888   (exit $ac_status); }; }; then
10889   ac_header_compiler=yes
10890 else
10891   echo "$as_me: failed program was:" >&5
10892 sed 's/^/| /' conftest.$ac_ext >&5
10893
10894 ac_header_compiler=no
10895 fi
10896 rm -f conftest.$ac_objext conftest.$ac_ext
10897 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10898 echo "${ECHO_T}$ac_header_compiler" >&6
10899
10900 # Is the header present?
10901 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10903 cat >conftest.$ac_ext <<_ACEOF
10904 #line $LINENO "configure"
10905 /* confdefs.h.  */
10906 _ACEOF
10907 cat confdefs.h >>conftest.$ac_ext
10908 cat >>conftest.$ac_ext <<_ACEOF
10909 /* end confdefs.h.  */
10910 #include <$ac_header>
10911 _ACEOF
10912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10913   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10914   ac_status=$?
10915   grep -v '^ *+' conftest.er1 >conftest.err
10916   rm -f conftest.er1
10917   cat conftest.err >&5
10918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919   (exit $ac_status); } >/dev/null; then
10920   if test -s conftest.err; then
10921     ac_cpp_err=$ac_c_preproc_warn_flag
10922   else
10923     ac_cpp_err=
10924   fi
10925 else
10926   ac_cpp_err=yes
10927 fi
10928 if test -z "$ac_cpp_err"; then
10929   ac_header_preproc=yes
10930 else
10931   echo "$as_me: failed program was:" >&5
10932 sed 's/^/| /' conftest.$ac_ext >&5
10933
10934   ac_header_preproc=no
10935 fi
10936 rm -f conftest.err conftest.$ac_ext
10937 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10938 echo "${ECHO_T}$ac_header_preproc" >&6
10939
10940 # So?  What about this header?
10941 case $ac_header_compiler:$ac_header_preproc in
10942   yes:no )
10943     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10945     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10947     (
10948       cat <<\_ASBOX
10949 ## ------------------------------------ ##
10950 ## Report this to bug-autoconf@gnu.org. ##
10951 ## ------------------------------------ ##
10952 _ASBOX
10953     ) |
10954       sed "s/^/$as_me: WARNING:     /" >&2
10955     ;;
10956   no:yes )
10957     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10959     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10960 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10961     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10963     (
10964       cat <<\_ASBOX
10965 ## ------------------------------------ ##
10966 ## Report this to bug-autoconf@gnu.org. ##
10967 ## ------------------------------------ ##
10968 _ASBOX
10969     ) |
10970       sed "s/^/$as_me: WARNING:     /" >&2
10971     ;;
10972 esac
10973 echo "$as_me:$LINENO: checking for $ac_header" >&5
10974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10976   echo $ECHO_N "(cached) $ECHO_C" >&6
10977 else
10978   eval "$as_ac_Header=$ac_header_preproc"
10979 fi
10980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10982
10983 fi
10984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10985   cat >>confdefs.h <<_ACEOF
10986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10987 _ACEOF
10988
10989 fi
10990
10991 done
10992
10993
10994    echo "$as_me:$LINENO: checking for stack_t" >&5
10995 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
10996 if test "${ac_cv_type_stack_t+set}" = set; then
10997   echo $ECHO_N "(cached) $ECHO_C" >&6
10998 else
10999   cat >conftest.$ac_ext <<_ACEOF
11000 #line $LINENO "configure"
11001 /* confdefs.h.  */
11002 _ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h.  */
11006 #include <signal.h>
11007
11008 int
11009 main ()
11010 {
11011 if ((stack_t *) 0)
11012   return 0;
11013 if (sizeof (stack_t))
11014   return 0;
11015   ;
11016   return 0;
11017 }
11018 _ACEOF
11019 rm -f conftest.$ac_objext
11020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11021   (eval $ac_compile) 2>&5
11022   ac_status=$?
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); } &&
11025          { ac_try='test -s conftest.$ac_objext'
11026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027   (eval $ac_try) 2>&5
11028   ac_status=$?
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); }; }; then
11031   ac_cv_type_stack_t=yes
11032 else
11033   echo "$as_me: failed program was:" >&5
11034 sed 's/^/| /' conftest.$ac_ext >&5
11035
11036 ac_cv_type_stack_t=no
11037 fi
11038 rm -f conftest.$ac_objext conftest.$ac_ext
11039 fi
11040 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11041 echo "${ECHO_T}$ac_cv_type_stack_t" >&6
11042 if test $ac_cv_type_stack_t = yes; then
11043
11044 cat >>confdefs.h <<_ACEOF
11045 #define HAVE_STACK_T 1
11046 _ACEOF
11047
11048
11049 fi
11050
11051
11052
11053   echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
11054 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
11055 if test "${ac_cv_search_gethostbyname+set}" = set; then
11056   echo $ECHO_N "(cached) $ECHO_C" >&6
11057 else
11058
11059     ac_func_search_save_LIBS=$LIBS
11060     ac_cv_search_gethostbyname=no
11061     cat >conftest.$ac_ext <<_ACEOF
11062 #line $LINENO "configure"
11063 /* confdefs.h.  */
11064 _ACEOF
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h.  */
11068
11069 /* Override any gcc2 internal prototype to avoid an error.  */
11070 #ifdef __cplusplus
11071 extern "C"
11072 #endif
11073 /* We use char because int might match the return type of a gcc2
11074    builtin and then its argument prototype would still apply.  */
11075 char gethostbyname ();
11076 int
11077 main ()
11078 {
11079 gethostbyname ();
11080   ;
11081   return 0;
11082 }
11083 _ACEOF
11084 rm -f conftest.$ac_objext conftest$ac_exeext
11085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11086   (eval $ac_link) 2>&5
11087   ac_status=$?
11088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089   (exit $ac_status); } &&
11090          { ac_try='test -s conftest$ac_exeext'
11091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11092   (eval $ac_try) 2>&5
11093   ac_status=$?
11094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095   (exit $ac_status); }; }; then
11096   ac_cv_search_gethostbyname='none required'
11097 else
11098   echo "$as_me: failed program was:" >&5
11099 sed 's/^/| /' conftest.$ac_ext >&5
11100
11101 fi
11102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11103     if test "$ac_cv_search_gethostbyname" = no; then
11104       for ac_lib in inet nsl; do
11105         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11106         cat >conftest.$ac_ext <<_ACEOF
11107 #line $LINENO "configure"
11108 /* confdefs.h.  */
11109 _ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h.  */
11113
11114 /* Override any gcc2 internal prototype to avoid an error.  */
11115 #ifdef __cplusplus
11116 extern "C"
11117 #endif
11118 /* We use char because int might match the return type of a gcc2
11119    builtin and then its argument prototype would still apply.  */
11120 char gethostbyname ();
11121 int
11122 main ()
11123 {
11124 gethostbyname ();
11125   ;
11126   return 0;
11127 }
11128 _ACEOF
11129 rm -f conftest.$ac_objext conftest$ac_exeext
11130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11131   (eval $ac_link) 2>&5
11132   ac_status=$?
11133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134   (exit $ac_status); } &&
11135          { ac_try='test -s conftest$ac_exeext'
11136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137   (eval $ac_try) 2>&5
11138   ac_status=$?
11139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140   (exit $ac_status); }; }; then
11141   ac_cv_search_gethostbyname="-l$ac_lib"; break
11142 else
11143   echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11145
11146 fi
11147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11148       done
11149     fi
11150     LIBS=$ac_func_search_save_LIBS
11151
11152 fi
11153 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
11154 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
11155
11156   if test "$ac_cv_search_gethostbyname" = no; then :
11157
11158   else
11159     if test "$ac_cv_search_gethostbyname" = 'none required'; then :
11160
11161     else
11162       LIBS="$ac_cv_search_gethostbyname $LIBS"
11163
11164     fi
11165   fi
11166
11167
11168
11169
11170
11171 for ac_func in gethostbyname gethostbyaddr inet_ntoa
11172 do
11173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11174 echo "$as_me:$LINENO: checking for $ac_func" >&5
11175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11176 if eval "test \"\${$as_ac_var+set}\" = set"; then
11177   echo $ECHO_N "(cached) $ECHO_C" >&6
11178 else
11179   cat >conftest.$ac_ext <<_ACEOF
11180 #line $LINENO "configure"
11181 /* confdefs.h.  */
11182 _ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h.  */
11186 /* System header to define __stub macros and hopefully few prototypes,
11187     which can conflict with char $ac_func (); below.
11188     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11189     <limits.h> exists even on freestanding compilers.  */
11190 #ifdef __STDC__
11191 # include <limits.h>
11192 #else
11193 # include <assert.h>
11194 #endif
11195 /* Override any gcc2 internal prototype to avoid an error.  */
11196 #ifdef __cplusplus
11197 extern "C"
11198 {
11199 #endif
11200 /* We use char because int might match the return type of a gcc2
11201    builtin and then its argument prototype would still apply.  */
11202 char $ac_func ();
11203 /* The GNU C library defines this for functions which it implements
11204     to always fail with ENOSYS.  Some functions are actually named
11205     something starting with __ and the normal name is an alias.  */
11206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11207 choke me
11208 #else
11209 char (*f) () = $ac_func;
11210 #endif
11211 #ifdef __cplusplus
11212 }
11213 #endif
11214
11215 int
11216 main ()
11217 {
11218 return f != $ac_func;
11219   ;
11220   return 0;
11221 }
11222 _ACEOF
11223 rm -f conftest.$ac_objext conftest$ac_exeext
11224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11225   (eval $ac_link) 2>&5
11226   ac_status=$?
11227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228   (exit $ac_status); } &&
11229          { ac_try='test -s conftest$ac_exeext'
11230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231   (eval $ac_try) 2>&5
11232   ac_status=$?
11233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234   (exit $ac_status); }; }; then
11235   eval "$as_ac_var=yes"
11236 else
11237   echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11239
11240 eval "$as_ac_var=no"
11241 fi
11242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11243 fi
11244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11246 if test `eval echo '${'$as_ac_var'}'` = yes; then
11247   cat >>confdefs.h <<_ACEOF
11248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11249 _ACEOF
11250
11251 fi
11252 done
11253
11254
11255
11256
11257
11258
11259
11260
11261 for ac_header in unistd.h string.h netdb.h sys/socket.h \
11262                    netinet/in.h arpa/inet.h
11263 do
11264 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11266   echo "$as_me:$LINENO: checking for $ac_header" >&5
11267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11269   echo $ECHO_N "(cached) $ECHO_C" >&6
11270 fi
11271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11272 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11273 else
11274   # Is the header compilable?
11275 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11276 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11277 cat >conftest.$ac_ext <<_ACEOF
11278 #line $LINENO "configure"
11279 /* confdefs.h.  */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h.  */
11284 $ac_includes_default
11285 #include <$ac_header>
11286 _ACEOF
11287 rm -f conftest.$ac_objext
11288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11289   (eval $ac_compile) 2>&5
11290   ac_status=$?
11291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292   (exit $ac_status); } &&
11293          { ac_try='test -s conftest.$ac_objext'
11294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11295   (eval $ac_try) 2>&5
11296   ac_status=$?
11297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298   (exit $ac_status); }; }; then
11299   ac_header_compiler=yes
11300 else
11301   echo "$as_me: failed program was:" >&5
11302 sed 's/^/| /' conftest.$ac_ext >&5
11303
11304 ac_header_compiler=no
11305 fi
11306 rm -f conftest.$ac_objext conftest.$ac_ext
11307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11308 echo "${ECHO_T}$ac_header_compiler" >&6
11309
11310 # Is the header present?
11311 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11313 cat >conftest.$ac_ext <<_ACEOF
11314 #line $LINENO "configure"
11315 /* confdefs.h.  */
11316 _ACEOF
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h.  */
11320 #include <$ac_header>
11321 _ACEOF
11322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11323   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11324   ac_status=$?
11325   grep -v '^ *+' conftest.er1 >conftest.err
11326   rm -f conftest.er1
11327   cat conftest.err >&5
11328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329   (exit $ac_status); } >/dev/null; then
11330   if test -s conftest.err; then
11331     ac_cpp_err=$ac_c_preproc_warn_flag
11332   else
11333     ac_cpp_err=
11334   fi
11335 else
11336   ac_cpp_err=yes
11337 fi
11338 if test -z "$ac_cpp_err"; then
11339   ac_header_preproc=yes
11340 else
11341   echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11343
11344   ac_header_preproc=no
11345 fi
11346 rm -f conftest.err conftest.$ac_ext
11347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11348 echo "${ECHO_T}$ac_header_preproc" >&6
11349
11350 # So?  What about this header?
11351 case $ac_header_compiler:$ac_header_preproc in
11352   yes:no )
11353     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11357     (
11358       cat <<\_ASBOX
11359 ## ------------------------------------ ##
11360 ## Report this to bug-autoconf@gnu.org. ##
11361 ## ------------------------------------ ##
11362 _ASBOX
11363     ) |
11364       sed "s/^/$as_me: WARNING:     /" >&2
11365     ;;
11366   no:yes )
11367     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11369     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11373     (
11374       cat <<\_ASBOX
11375 ## ------------------------------------ ##
11376 ## Report this to bug-autoconf@gnu.org. ##
11377 ## ------------------------------------ ##
11378 _ASBOX
11379     ) |
11380       sed "s/^/$as_me: WARNING:     /" >&2
11381     ;;
11382 esac
11383 echo "$as_me:$LINENO: checking for $ac_header" >&5
11384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11386   echo $ECHO_N "(cached) $ECHO_C" >&6
11387 else
11388   eval "$as_ac_Header=$ac_header_preproc"
11389 fi
11390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11392
11393 fi
11394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11395   cat >>confdefs.h <<_ACEOF
11396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11397 _ACEOF
11398
11399 fi
11400
11401 done
11402
11403
11404
11405
11406
11407 for ac_header in string.h
11408 do
11409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11411   echo "$as_me:$LINENO: checking for $ac_header" >&5
11412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11414   echo $ECHO_N "(cached) $ECHO_C" >&6
11415 fi
11416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11418 else
11419   # Is the header compilable?
11420 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11421 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11422 cat >conftest.$ac_ext <<_ACEOF
11423 #line $LINENO "configure"
11424 /* confdefs.h.  */
11425 _ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h.  */
11429 $ac_includes_default
11430 #include <$ac_header>
11431 _ACEOF
11432 rm -f conftest.$ac_objext
11433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11434   (eval $ac_compile) 2>&5
11435   ac_status=$?
11436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437   (exit $ac_status); } &&
11438          { ac_try='test -s conftest.$ac_objext'
11439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440   (eval $ac_try) 2>&5
11441   ac_status=$?
11442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443   (exit $ac_status); }; }; then
11444   ac_header_compiler=yes
11445 else
11446   echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11448
11449 ac_header_compiler=no
11450 fi
11451 rm -f conftest.$ac_objext conftest.$ac_ext
11452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11453 echo "${ECHO_T}$ac_header_compiler" >&6
11454
11455 # Is the header present?
11456 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11458 cat >conftest.$ac_ext <<_ACEOF
11459 #line $LINENO "configure"
11460 /* confdefs.h.  */
11461 _ACEOF
11462 cat confdefs.h >>conftest.$ac_ext
11463 cat >>conftest.$ac_ext <<_ACEOF
11464 /* end confdefs.h.  */
11465 #include <$ac_header>
11466 _ACEOF
11467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11468   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11469   ac_status=$?
11470   grep -v '^ *+' conftest.er1 >conftest.err
11471   rm -f conftest.er1
11472   cat conftest.err >&5
11473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474   (exit $ac_status); } >/dev/null; then
11475   if test -s conftest.err; then
11476     ac_cpp_err=$ac_c_preproc_warn_flag
11477   else
11478     ac_cpp_err=
11479   fi
11480 else
11481   ac_cpp_err=yes
11482 fi
11483 if test -z "$ac_cpp_err"; then
11484   ac_header_preproc=yes
11485 else
11486   echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11488
11489   ac_header_preproc=no
11490 fi
11491 rm -f conftest.err conftest.$ac_ext
11492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11493 echo "${ECHO_T}$ac_header_preproc" >&6
11494
11495 # So?  What about this header?
11496 case $ac_header_compiler:$ac_header_preproc in
11497   yes:no )
11498     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11500     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11502     (
11503       cat <<\_ASBOX
11504 ## ------------------------------------ ##
11505 ## Report this to bug-autoconf@gnu.org. ##
11506 ## ------------------------------------ ##
11507 _ASBOX
11508     ) |
11509       sed "s/^/$as_me: WARNING:     /" >&2
11510     ;;
11511   no:yes )
11512     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11513 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11514     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11515 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11518     (
11519       cat <<\_ASBOX
11520 ## ------------------------------------ ##
11521 ## Report this to bug-autoconf@gnu.org. ##
11522 ## ------------------------------------ ##
11523 _ASBOX
11524     ) |
11525       sed "s/^/$as_me: WARNING:     /" >&2
11526     ;;
11527 esac
11528 echo "$as_me:$LINENO: checking for $ac_header" >&5
11529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11531   echo $ECHO_N "(cached) $ECHO_C" >&6
11532 else
11533   eval "$as_ac_Header=$ac_header_preproc"
11534 fi
11535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11537
11538 fi
11539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11540   cat >>confdefs.h <<_ACEOF
11541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11542 _ACEOF
11543
11544 fi
11545
11546 done
11547
11548
11549
11550
11551
11552
11553 for ac_func in strerror vprintf doprnt
11554 do
11555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11556 echo "$as_me:$LINENO: checking for $ac_func" >&5
11557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11558 if eval "test \"\${$as_ac_var+set}\" = set"; then
11559   echo $ECHO_N "(cached) $ECHO_C" >&6
11560 else
11561   cat >conftest.$ac_ext <<_ACEOF
11562 #line $LINENO "configure"
11563 /* confdefs.h.  */
11564 _ACEOF
11565 cat confdefs.h >>conftest.$ac_ext
11566 cat >>conftest.$ac_ext <<_ACEOF
11567 /* end confdefs.h.  */
11568 /* System header to define __stub macros and hopefully few prototypes,
11569     which can conflict with char $ac_func (); below.
11570     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11571     <limits.h> exists even on freestanding compilers.  */
11572 #ifdef __STDC__
11573 # include <limits.h>
11574 #else
11575 # include <assert.h>
11576 #endif
11577 /* Override any gcc2 internal prototype to avoid an error.  */
11578 #ifdef __cplusplus
11579 extern "C"
11580 {
11581 #endif
11582 /* We use char because int might match the return type of a gcc2
11583    builtin and then its argument prototype would still apply.  */
11584 char $ac_func ();
11585 /* The GNU C library defines this for functions which it implements
11586     to always fail with ENOSYS.  Some functions are actually named
11587     something starting with __ and the normal name is an alias.  */
11588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11589 choke me
11590 #else
11591 char (*f) () = $ac_func;
11592 #endif
11593 #ifdef __cplusplus
11594 }
11595 #endif
11596
11597 int
11598 main ()
11599 {
11600 return f != $ac_func;
11601   ;
11602   return 0;
11603 }
11604 _ACEOF
11605 rm -f conftest.$ac_objext conftest$ac_exeext
11606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11607   (eval $ac_link) 2>&5
11608   ac_status=$?
11609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610   (exit $ac_status); } &&
11611          { ac_try='test -s conftest$ac_exeext'
11612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613   (eval $ac_try) 2>&5
11614   ac_status=$?
11615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616   (exit $ac_status); }; }; then
11617   eval "$as_ac_var=yes"
11618 else
11619   echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11621
11622 eval "$as_ac_var=no"
11623 fi
11624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11625 fi
11626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11628 if test `eval echo '${'$as_ac_var'}'` = yes; then
11629   cat >>confdefs.h <<_ACEOF
11630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11631 _ACEOF
11632
11633 fi
11634 done
11635
11636   echo "$as_me:$LINENO: checking whether strerror is declared" >&5
11637 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
11638 if test "${ac_cv_have_decl_strerror+set}" = set; then
11639   echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11641   cat >conftest.$ac_ext <<_ACEOF
11642 #line $LINENO "configure"
11643 /* confdefs.h.  */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h.  */
11648 $ac_includes_default
11649 int
11650 main ()
11651 {
11652 #ifndef strerror
11653   char *p = (char *) strerror;
11654 #endif
11655
11656   ;
11657   return 0;
11658 }
11659 _ACEOF
11660 rm -f conftest.$ac_objext
11661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11662   (eval $ac_compile) 2>&5
11663   ac_status=$?
11664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665   (exit $ac_status); } &&
11666          { ac_try='test -s conftest.$ac_objext'
11667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668   (eval $ac_try) 2>&5
11669   ac_status=$?
11670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671   (exit $ac_status); }; }; then
11672   ac_cv_have_decl_strerror=yes
11673 else
11674   echo "$as_me: failed program was:" >&5
11675 sed 's/^/| /' conftest.$ac_ext >&5
11676
11677 ac_cv_have_decl_strerror=no
11678 fi
11679 rm -f conftest.$ac_objext conftest.$ac_ext
11680 fi
11681 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
11682 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
11683 if test $ac_cv_have_decl_strerror = yes; then
11684
11685 cat >>confdefs.h <<_ACEOF
11686 #define HAVE_DECL_STRERROR 1
11687 _ACEOF
11688
11689
11690 else
11691   cat >>confdefs.h <<_ACEOF
11692 #define HAVE_DECL_STRERROR 0
11693 _ACEOF
11694
11695
11696 fi
11697
11698
11699
11700 for ac_header in libintl.h
11701 do
11702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11704   echo "$as_me:$LINENO: checking for $ac_header" >&5
11705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11707   echo $ECHO_N "(cached) $ECHO_C" >&6
11708 fi
11709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11711 else
11712   # Is the header compilable?
11713 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11715 cat >conftest.$ac_ext <<_ACEOF
11716 #line $LINENO "configure"
11717 /* confdefs.h.  */
11718 _ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h.  */
11722 $ac_includes_default
11723 #include <$ac_header>
11724 _ACEOF
11725 rm -f conftest.$ac_objext
11726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11727   (eval $ac_compile) 2>&5
11728   ac_status=$?
11729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730   (exit $ac_status); } &&
11731          { ac_try='test -s conftest.$ac_objext'
11732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11733   (eval $ac_try) 2>&5
11734   ac_status=$?
11735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736   (exit $ac_status); }; }; then
11737   ac_header_compiler=yes
11738 else
11739   echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11741
11742 ac_header_compiler=no
11743 fi
11744 rm -f conftest.$ac_objext conftest.$ac_ext
11745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11746 echo "${ECHO_T}$ac_header_compiler" >&6
11747
11748 # Is the header present?
11749 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11751 cat >conftest.$ac_ext <<_ACEOF
11752 #line $LINENO "configure"
11753 /* confdefs.h.  */
11754 _ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h.  */
11758 #include <$ac_header>
11759 _ACEOF
11760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11761   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11762   ac_status=$?
11763   grep -v '^ *+' conftest.er1 >conftest.err
11764   rm -f conftest.er1
11765   cat conftest.err >&5
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); } >/dev/null; then
11768   if test -s conftest.err; then
11769     ac_cpp_err=$ac_c_preproc_warn_flag
11770   else
11771     ac_cpp_err=
11772   fi
11773 else
11774   ac_cpp_err=yes
11775 fi
11776 if test -z "$ac_cpp_err"; then
11777   ac_header_preproc=yes
11778 else
11779   echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.$ac_ext >&5
11781
11782   ac_header_preproc=no
11783 fi
11784 rm -f conftest.err conftest.$ac_ext
11785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11786 echo "${ECHO_T}$ac_header_preproc" >&6
11787
11788 # So?  What about this header?
11789 case $ac_header_compiler:$ac_header_preproc in
11790   yes:no )
11791     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11793     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11795     (
11796       cat <<\_ASBOX
11797 ## ------------------------------------ ##
11798 ## Report this to bug-autoconf@gnu.org. ##
11799 ## ------------------------------------ ##
11800 _ASBOX
11801     ) |
11802       sed "s/^/$as_me: WARNING:     /" >&2
11803     ;;
11804   no:yes )
11805     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11807     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11808 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11811     (
11812       cat <<\_ASBOX
11813 ## ------------------------------------ ##
11814 ## Report this to bug-autoconf@gnu.org. ##
11815 ## ------------------------------------ ##
11816 _ASBOX
11817     ) |
11818       sed "s/^/$as_me: WARNING:     /" >&2
11819     ;;
11820 esac
11821 echo "$as_me:$LINENO: checking for $ac_header" >&5
11822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11824   echo $ECHO_N "(cached) $ECHO_C" >&6
11825 else
11826   eval "$as_ac_Header=$ac_header_preproc"
11827 fi
11828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11830
11831 fi
11832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11833   cat >>confdefs.h <<_ACEOF
11834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11835 _ACEOF
11836
11837 fi
11838
11839 done
11840
11841   echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
11842 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
11843 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
11844   echo $ECHO_N "(cached) $ECHO_C" >&6
11845 else
11846   cat >conftest.$ac_ext <<_ACEOF
11847 #line $LINENO "configure"
11848 /* confdefs.h.  */
11849 _ACEOF
11850 cat confdefs.h >>conftest.$ac_ext
11851 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h.  */
11853 $ac_includes_default
11854 int
11855 main ()
11856 {
11857 #ifndef strerror_r
11858   char *p = (char *) strerror_r;
11859 #endif
11860
11861   ;
11862   return 0;
11863 }
11864 _ACEOF
11865 rm -f conftest.$ac_objext
11866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11867   (eval $ac_compile) 2>&5
11868   ac_status=$?
11869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); } &&
11871          { ac_try='test -s conftest.$ac_objext'
11872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873   (eval $ac_try) 2>&5
11874   ac_status=$?
11875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876   (exit $ac_status); }; }; then
11877   ac_cv_have_decl_strerror_r=yes
11878 else
11879   echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11881
11882 ac_cv_have_decl_strerror_r=no
11883 fi
11884 rm -f conftest.$ac_objext conftest.$ac_ext
11885 fi
11886 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
11887 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
11888 if test $ac_cv_have_decl_strerror_r = yes; then
11889
11890 cat >>confdefs.h <<_ACEOF
11891 #define HAVE_DECL_STRERROR_R 1
11892 _ACEOF
11893
11894
11895 else
11896   cat >>confdefs.h <<_ACEOF
11897 #define HAVE_DECL_STRERROR_R 0
11898 _ACEOF
11899
11900
11901 fi
11902
11903
11904
11905 for ac_func in strerror_r
11906 do
11907 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11908 echo "$as_me:$LINENO: checking for $ac_func" >&5
11909 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11910 if eval "test \"\${$as_ac_var+set}\" = set"; then
11911   echo $ECHO_N "(cached) $ECHO_C" >&6
11912 else
11913   cat >conftest.$ac_ext <<_ACEOF
11914 #line $LINENO "configure"
11915 /* confdefs.h.  */
11916 _ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h.  */
11920 /* System header to define __stub macros and hopefully few prototypes,
11921     which can conflict with char $ac_func (); below.
11922     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11923     <limits.h> exists even on freestanding compilers.  */
11924 #ifdef __STDC__
11925 # include <limits.h>
11926 #else
11927 # include <assert.h>
11928 #endif
11929 /* Override any gcc2 internal prototype to avoid an error.  */
11930 #ifdef __cplusplus
11931 extern "C"
11932 {
11933 #endif
11934 /* We use char because int might match the return type of a gcc2
11935    builtin and then its argument prototype would still apply.  */
11936 char $ac_func ();
11937 /* The GNU C library defines this for functions which it implements
11938     to always fail with ENOSYS.  Some functions are actually named
11939     something starting with __ and the normal name is an alias.  */
11940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11941 choke me
11942 #else
11943 char (*f) () = $ac_func;
11944 #endif
11945 #ifdef __cplusplus
11946 }
11947 #endif
11948
11949 int
11950 main ()
11951 {
11952 return f != $ac_func;
11953   ;
11954   return 0;
11955 }
11956 _ACEOF
11957 rm -f conftest.$ac_objext conftest$ac_exeext
11958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11959   (eval $ac_link) 2>&5
11960   ac_status=$?
11961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962   (exit $ac_status); } &&
11963          { ac_try='test -s conftest$ac_exeext'
11964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965   (eval $ac_try) 2>&5
11966   ac_status=$?
11967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968   (exit $ac_status); }; }; then
11969   eval "$as_ac_var=yes"
11970 else
11971   echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.$ac_ext >&5
11973
11974 eval "$as_ac_var=no"
11975 fi
11976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11977 fi
11978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11980 if test `eval echo '${'$as_ac_var'}'` = yes; then
11981   cat >>confdefs.h <<_ACEOF
11982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11983 _ACEOF
11984
11985 fi
11986 done
11987
11988 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
11989 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
11990 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
11991   echo $ECHO_N "(cached) $ECHO_C" >&6
11992 else
11993
11994     ac_cv_func_strerror_r_char_p=no
11995     if test $ac_cv_have_decl_strerror_r = yes; then
11996       cat >conftest.$ac_ext <<_ACEOF
11997 #line $LINENO "configure"
11998 /* confdefs.h.  */
11999 _ACEOF
12000 cat confdefs.h >>conftest.$ac_ext
12001 cat >>conftest.$ac_ext <<_ACEOF
12002 /* end confdefs.h.  */
12003 $ac_includes_default
12004 int
12005 main ()
12006 {
12007
12008           char buf[100];
12009           char x = *strerror_r (0, buf, sizeof buf);
12010           char *p = strerror_r (0, buf, sizeof buf);
12011
12012   ;
12013   return 0;
12014 }
12015 _ACEOF
12016 rm -f conftest.$ac_objext
12017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12018   (eval $ac_compile) 2>&5
12019   ac_status=$?
12020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021   (exit $ac_status); } &&
12022          { ac_try='test -s conftest.$ac_objext'
12023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024   (eval $ac_try) 2>&5
12025   ac_status=$?
12026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027   (exit $ac_status); }; }; then
12028   ac_cv_func_strerror_r_char_p=yes
12029 else
12030   echo "$as_me: failed program was:" >&5
12031 sed 's/^/| /' conftest.$ac_ext >&5
12032
12033 fi
12034 rm -f conftest.$ac_objext conftest.$ac_ext
12035     else
12036       # strerror_r is not declared.  Choose between
12037       # systems that have relatively inaccessible declarations for the
12038       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
12039       # former has a strerror_r that returns char*, while the latter
12040       # has a strerror_r that returns `int'.
12041       # This test should segfault on the DEC system.
12042       if test "$cross_compiling" = yes; then
12043   :
12044 else
12045   cat >conftest.$ac_ext <<_ACEOF
12046 #line $LINENO "configure"
12047 /* confdefs.h.  */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h.  */
12052 $ac_includes_default
12053         extern char *strerror_r ();
12054 int
12055 main ()
12056 {
12057 char buf[100];
12058           char x = *strerror_r (0, buf, sizeof buf);
12059           exit (!isalpha (x));
12060   ;
12061   return 0;
12062 }
12063 _ACEOF
12064 rm -f conftest$ac_exeext
12065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12066   (eval $ac_link) 2>&5
12067   ac_status=$?
12068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071   (eval $ac_try) 2>&5
12072   ac_status=$?
12073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074   (exit $ac_status); }; }; then
12075   ac_cv_func_strerror_r_char_p=yes
12076 else
12077   echo "$as_me: program exited with status $ac_status" >&5
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12080
12081 fi
12082 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12083 fi
12084     fi
12085
12086 fi
12087 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
12088 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
12089 if test $ac_cv_func_strerror_r_char_p = yes; then
12090
12091 cat >>confdefs.h <<\_ACEOF
12092 #define STRERROR_R_CHAR_P 1
12093 _ACEOF
12094
12095 fi
12096
12097   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12098 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12099 if test "${ac_cv_header_stdc+set}" = set; then
12100   echo $ECHO_N "(cached) $ECHO_C" >&6
12101 else
12102   cat >conftest.$ac_ext <<_ACEOF
12103 #line $LINENO "configure"
12104 /* confdefs.h.  */
12105 _ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h.  */
12109 #include <stdlib.h>
12110 #include <stdarg.h>
12111 #include <string.h>
12112 #include <float.h>
12113
12114 int
12115 main ()
12116 {
12117
12118   ;
12119   return 0;
12120 }
12121 _ACEOF
12122 rm -f conftest.$ac_objext
12123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12124   (eval $ac_compile) 2>&5
12125   ac_status=$?
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); } &&
12128          { ac_try='test -s conftest.$ac_objext'
12129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130   (eval $ac_try) 2>&5
12131   ac_status=$?
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); }; }; then
12134   ac_cv_header_stdc=yes
12135 else
12136   echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12138
12139 ac_cv_header_stdc=no
12140 fi
12141 rm -f conftest.$ac_objext conftest.$ac_ext
12142
12143 if test $ac_cv_header_stdc = yes; then
12144   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12145   cat >conftest.$ac_ext <<_ACEOF
12146 #line $LINENO "configure"
12147 /* confdefs.h.  */
12148 _ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h.  */
12152 #include <string.h>
12153
12154 _ACEOF
12155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12156   $EGREP "memchr" >/dev/null 2>&1; then
12157   :
12158 else
12159   ac_cv_header_stdc=no
12160 fi
12161 rm -f conftest*
12162
12163 fi
12164
12165 if test $ac_cv_header_stdc = yes; then
12166   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12167   cat >conftest.$ac_ext <<_ACEOF
12168 #line $LINENO "configure"
12169 /* confdefs.h.  */
12170 _ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h.  */
12174 #include <stdlib.h>
12175
12176 _ACEOF
12177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12178   $EGREP "free" >/dev/null 2>&1; then
12179   :
12180 else
12181   ac_cv_header_stdc=no
12182 fi
12183 rm -f conftest*
12184
12185 fi
12186
12187 if test $ac_cv_header_stdc = yes; then
12188   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12189   if test "$cross_compiling" = yes; then
12190   :
12191 else
12192   cat >conftest.$ac_ext <<_ACEOF
12193 #line $LINENO "configure"
12194 /* confdefs.h.  */
12195 _ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h.  */
12199 #include <ctype.h>
12200 #if ((' ' & 0x0FF) == 0x020)
12201 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12202 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12203 #else
12204 # define ISLOWER(c) \
12205                    (('a' <= (c) && (c) <= 'i') \
12206                      || ('j' <= (c) && (c) <= 'r') \
12207                      || ('s' <= (c) && (c) <= 'z'))
12208 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12209 #endif
12210
12211 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12212 int
12213 main ()
12214 {
12215   int i;
12216   for (i = 0; i < 256; i++)
12217     if (XOR (islower (i), ISLOWER (i))
12218         || toupper (i) != TOUPPER (i))
12219       exit(2);
12220   exit (0);
12221 }
12222 _ACEOF
12223 rm -f conftest$ac_exeext
12224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12225   (eval $ac_link) 2>&5
12226   ac_status=$?
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230   (eval $ac_try) 2>&5
12231   ac_status=$?
12232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233   (exit $ac_status); }; }; then
12234   :
12235 else
12236   echo "$as_me: program exited with status $ac_status" >&5
12237 echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.$ac_ext >&5
12239
12240 ( exit $ac_status )
12241 ac_cv_header_stdc=no
12242 fi
12243 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12244 fi
12245 fi
12246 fi
12247 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12248 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12249 if test $ac_cv_header_stdc = yes; then
12250
12251 cat >>confdefs.h <<\_ACEOF
12252 #define STDC_HEADERS 1
12253 _ACEOF
12254
12255 fi
12256
12257
12258 echo "$as_me:$LINENO: checking for mbstate_t" >&5
12259 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
12260 if test "${ac_cv_type_mbstate_t+set}" = set; then
12261   echo $ECHO_N "(cached) $ECHO_C" >&6
12262 else
12263   cat >conftest.$ac_ext <<_ACEOF
12264 #line $LINENO "configure"
12265 /* confdefs.h.  */
12266 _ACEOF
12267 cat confdefs.h >>conftest.$ac_ext
12268 cat >>conftest.$ac_ext <<_ACEOF
12269 /* end confdefs.h.  */
12270 $ac_includes_default
12271 #           include <wchar.h>
12272 int
12273 main ()
12274 {
12275 mbstate_t x; return sizeof x;
12276   ;
12277   return 0;
12278 }
12279 _ACEOF
12280 rm -f conftest.$ac_objext
12281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12282   (eval $ac_compile) 2>&5
12283   ac_status=$?
12284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285   (exit $ac_status); } &&
12286          { ac_try='test -s conftest.$ac_objext'
12287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288   (eval $ac_try) 2>&5
12289   ac_status=$?
12290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291   (exit $ac_status); }; }; then
12292   ac_cv_type_mbstate_t=yes
12293 else
12294   echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12296
12297 ac_cv_type_mbstate_t=no
12298 fi
12299 rm -f conftest.$ac_objext conftest.$ac_ext
12300 fi
12301 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
12302 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
12303    if test $ac_cv_type_mbstate_t = yes; then
12304
12305 cat >>confdefs.h <<\_ACEOF
12306 #define HAVE_MBSTATE_T 1
12307 _ACEOF
12308
12309    else
12310
12311 cat >>confdefs.h <<\_ACEOF
12312 #define mbstate_t int
12313 _ACEOF
12314
12315    fi
12316
12317 echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
12318 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6
12319 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
12320   echo $ECHO_N "(cached) $ECHO_C" >&6
12321 else
12322   # Some versions of Solaris, SCO, and the GNU C Library
12323    # have a broken or incompatible fnmatch.
12324    # So we run a test program.  If we are cross-compiling, take no chance.
12325    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
12326    if test "$cross_compiling" = yes; then
12327   ac_cv_func_fnmatch_gnu=cross
12328 else
12329   cat >conftest.$ac_ext <<_ACEOF
12330 #line $LINENO "configure"
12331 /* confdefs.h.  */
12332 _ACEOF
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h.  */
12336 #include <fnmatch.h>
12337 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
12338 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
12339
12340 int
12341 main ()
12342 {
12343 exit
12344            (!(y ("a*", "abc", 0)
12345               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
12346               && y ("a\\\\bc", "abc", 0)
12347               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
12348               && y ("*x", ".x", 0)
12349               && n ("*x", ".x", FNM_PERIOD)
12350               && y ("xxXX", "xXxX", FNM_CASEFOLD)
12351                     && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
12352                     && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
12353                     && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
12354                     && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
12355                     && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)));
12356   ;
12357   return 0;
12358 }
12359 _ACEOF
12360 rm -f conftest$ac_exeext
12361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12362   (eval $ac_link) 2>&5
12363   ac_status=$?
12364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367   (eval $ac_try) 2>&5
12368   ac_status=$?
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); }; }; then
12371   ac_cv_func_fnmatch_gnu=yes
12372 else
12373   echo "$as_me: program exited with status $ac_status" >&5
12374 echo "$as_me: failed program was:" >&5
12375 sed 's/^/| /' conftest.$ac_ext >&5
12376
12377 ( exit $ac_status )
12378 ac_cv_func_fnmatch_gnu=no
12379 fi
12380 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12381 fi
12382 fi
12383 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
12384 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6
12385 if test $ac_cv_func_fnmatch_gnu = yes; then
12386   rm -f $ac_config_libobj_dir/fnmatch.h
12387 else
12388   echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12389 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12390 if test "${ac_cv_have_decl_getenv+set}" = set; then
12391   echo $ECHO_N "(cached) $ECHO_C" >&6
12392 else
12393   cat >conftest.$ac_ext <<_ACEOF
12394 #line $LINENO "configure"
12395 /* confdefs.h.  */
12396 _ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h.  */
12400 $ac_includes_default
12401 int
12402 main ()
12403 {
12404 #ifndef getenv
12405   char *p = (char *) getenv;
12406 #endif
12407
12408   ;
12409   return 0;
12410 }
12411 _ACEOF
12412 rm -f conftest.$ac_objext
12413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12414   (eval $ac_compile) 2>&5
12415   ac_status=$?
12416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417   (exit $ac_status); } &&
12418          { ac_try='test -s conftest.$ac_objext'
12419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420   (eval $ac_try) 2>&5
12421   ac_status=$?
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); }; }; then
12424   ac_cv_have_decl_getenv=yes
12425 else
12426   echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.$ac_ext >&5
12428
12429 ac_cv_have_decl_getenv=no
12430 fi
12431 rm -f conftest.$ac_objext conftest.$ac_ext
12432 fi
12433 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12434 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12435 if test $ac_cv_have_decl_getenv = yes; then
12436
12437 cat >>confdefs.h <<_ACEOF
12438 #define HAVE_DECL_GETENV 1
12439 _ACEOF
12440
12441
12442 else
12443   cat >>confdefs.h <<_ACEOF
12444 #define HAVE_DECL_GETENV 0
12445 _ACEOF
12446
12447
12448 fi
12449
12450
12451
12452
12453
12454
12455 for ac_func in btowc mbsrtowcs mempcpy wmempcpy
12456 do
12457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12458 echo "$as_me:$LINENO: checking for $ac_func" >&5
12459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12460 if eval "test \"\${$as_ac_var+set}\" = set"; then
12461   echo $ECHO_N "(cached) $ECHO_C" >&6
12462 else
12463   cat >conftest.$ac_ext <<_ACEOF
12464 #line $LINENO "configure"
12465 /* confdefs.h.  */
12466 _ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h.  */
12470 /* System header to define __stub macros and hopefully few prototypes,
12471     which can conflict with char $ac_func (); below.
12472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12473     <limits.h> exists even on freestanding compilers.  */
12474 #ifdef __STDC__
12475 # include <limits.h>
12476 #else
12477 # include <assert.h>
12478 #endif
12479 /* Override any gcc2 internal prototype to avoid an error.  */
12480 #ifdef __cplusplus
12481 extern "C"
12482 {
12483 #endif
12484 /* We use char because int might match the return type of a gcc2
12485    builtin and then its argument prototype would still apply.  */
12486 char $ac_func ();
12487 /* The GNU C library defines this for functions which it implements
12488     to always fail with ENOSYS.  Some functions are actually named
12489     something starting with __ and the normal name is an alias.  */
12490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12491 choke me
12492 #else
12493 char (*f) () = $ac_func;
12494 #endif
12495 #ifdef __cplusplus
12496 }
12497 #endif
12498
12499 int
12500 main ()
12501 {
12502 return f != $ac_func;
12503   ;
12504   return 0;
12505 }
12506 _ACEOF
12507 rm -f conftest.$ac_objext conftest$ac_exeext
12508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12509   (eval $ac_link) 2>&5
12510   ac_status=$?
12511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512   (exit $ac_status); } &&
12513          { ac_try='test -s conftest$ac_exeext'
12514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515   (eval $ac_try) 2>&5
12516   ac_status=$?
12517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518   (exit $ac_status); }; }; then
12519   eval "$as_ac_var=yes"
12520 else
12521   echo "$as_me: failed program was:" >&5
12522 sed 's/^/| /' conftest.$ac_ext >&5
12523
12524 eval "$as_ac_var=no"
12525 fi
12526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12527 fi
12528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12530 if test `eval echo '${'$as_ac_var'}'` = yes; then
12531   cat >>confdefs.h <<_ACEOF
12532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12533 _ACEOF
12534
12535 fi
12536 done
12537
12538
12539
12540 for ac_header in wchar.h wctype.h
12541 do
12542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12544   echo "$as_me:$LINENO: checking for $ac_header" >&5
12545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12547   echo $ECHO_N "(cached) $ECHO_C" >&6
12548 fi
12549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12551 else
12552   # Is the header compilable?
12553 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12555 cat >conftest.$ac_ext <<_ACEOF
12556 #line $LINENO "configure"
12557 /* confdefs.h.  */
12558 _ACEOF
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h.  */
12562 $ac_includes_default
12563 #include <$ac_header>
12564 _ACEOF
12565 rm -f conftest.$ac_objext
12566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12567   (eval $ac_compile) 2>&5
12568   ac_status=$?
12569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570   (exit $ac_status); } &&
12571          { ac_try='test -s conftest.$ac_objext'
12572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573   (eval $ac_try) 2>&5
12574   ac_status=$?
12575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576   (exit $ac_status); }; }; then
12577   ac_header_compiler=yes
12578 else
12579   echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.$ac_ext >&5
12581
12582 ac_header_compiler=no
12583 fi
12584 rm -f conftest.$ac_objext conftest.$ac_ext
12585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12586 echo "${ECHO_T}$ac_header_compiler" >&6
12587
12588 # Is the header present?
12589 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12591 cat >conftest.$ac_ext <<_ACEOF
12592 #line $LINENO "configure"
12593 /* confdefs.h.  */
12594 _ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h.  */
12598 #include <$ac_header>
12599 _ACEOF
12600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12601   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12602   ac_status=$?
12603   grep -v '^ *+' conftest.er1 >conftest.err
12604   rm -f conftest.er1
12605   cat conftest.err >&5
12606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607   (exit $ac_status); } >/dev/null; then
12608   if test -s conftest.err; then
12609     ac_cpp_err=$ac_c_preproc_warn_flag
12610   else
12611     ac_cpp_err=
12612   fi
12613 else
12614   ac_cpp_err=yes
12615 fi
12616 if test -z "$ac_cpp_err"; then
12617   ac_header_preproc=yes
12618 else
12619   echo "$as_me: failed program was:" >&5
12620 sed 's/^/| /' conftest.$ac_ext >&5
12621
12622   ac_header_preproc=no
12623 fi
12624 rm -f conftest.err conftest.$ac_ext
12625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12626 echo "${ECHO_T}$ac_header_preproc" >&6
12627
12628 # So?  What about this header?
12629 case $ac_header_compiler:$ac_header_preproc in
12630   yes:no )
12631     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12633     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12634 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12635     (
12636       cat <<\_ASBOX
12637 ## ------------------------------------ ##
12638 ## Report this to bug-autoconf@gnu.org. ##
12639 ## ------------------------------------ ##
12640 _ASBOX
12641     ) |
12642       sed "s/^/$as_me: WARNING:     /" >&2
12643     ;;
12644   no:yes )
12645     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12647     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12649     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12651     (
12652       cat <<\_ASBOX
12653 ## ------------------------------------ ##
12654 ## Report this to bug-autoconf@gnu.org. ##
12655 ## ------------------------------------ ##
12656 _ASBOX
12657     ) |
12658       sed "s/^/$as_me: WARNING:     /" >&2
12659     ;;
12660 esac
12661 echo "$as_me:$LINENO: checking for $ac_header" >&5
12662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12664   echo $ECHO_N "(cached) $ECHO_C" >&6
12665 else
12666   eval "$as_ac_Header=$ac_header_preproc"
12667 fi
12668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12670
12671 fi
12672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12673   cat >>confdefs.h <<_ACEOF
12674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12675 _ACEOF
12676
12677 fi
12678
12679 done
12680
12681 LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
12682           ac_config_links="$ac_config_links $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h"
12683
12684
12685 cat >>confdefs.h <<\_ACEOF
12686 #define fnmatch rpl_fnmatch
12687 _ACEOF
12688
12689
12690 fi
12691
12692
12693
12694 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
12695 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
12696 if test "${ac_cv_header_stdbool_h+set}" = set; then
12697   echo $ECHO_N "(cached) $ECHO_C" >&6
12698 else
12699   cat >conftest.$ac_ext <<_ACEOF
12700 #line $LINENO "configure"
12701 /* confdefs.h.  */
12702 _ACEOF
12703 cat confdefs.h >>conftest.$ac_ext
12704 cat >>conftest.$ac_ext <<_ACEOF
12705 /* end confdefs.h.  */
12706
12707           #include <stdbool.h>
12708           #ifndef bool
12709            "error: bool is not defined"
12710           #endif
12711           #ifndef false
12712            "error: false is not defined"
12713           #endif
12714           #if false
12715            "error: false is not 0"
12716           #endif
12717           #ifndef true
12718            "error: false is not defined"
12719           #endif
12720           #if true != 1
12721            "error: true is not 1"
12722           #endif
12723           #ifndef __bool_true_false_are_defined
12724            "error: __bool_true_false_are_defined is not defined"
12725           #endif
12726
12727           struct s { _Bool s: 1; _Bool t; } s;
12728
12729           char a[true == 1 ? 1 : -1];
12730           char b[false == 0 ? 1 : -1];
12731           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12732           char d[(bool) -0.5 == true ? 1 : -1];
12733           bool e = &s;
12734           char f[(_Bool) -0.0 == false ? 1 : -1];
12735           char g[true];
12736           char h[sizeof (_Bool)];
12737           char i[sizeof s.t];
12738
12739 int
12740 main ()
12741 {
12742  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
12743   ;
12744   return 0;
12745 }
12746 _ACEOF
12747 rm -f conftest.$ac_objext
12748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12749   (eval $ac_compile) 2>&5
12750   ac_status=$?
12751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752   (exit $ac_status); } &&
12753          { ac_try='test -s conftest.$ac_objext'
12754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755   (eval $ac_try) 2>&5
12756   ac_status=$?
12757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758   (exit $ac_status); }; }; then
12759   ac_cv_header_stdbool_h=yes
12760 else
12761   echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12763
12764 ac_cv_header_stdbool_h=no
12765 fi
12766 rm -f conftest.$ac_objext conftest.$ac_ext
12767 fi
12768 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
12769 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
12770    if test $ac_cv_header_stdbool_h = yes; then
12771
12772 cat >>confdefs.h <<\_ACEOF
12773 #define HAVE_STDBOOL_H 1
12774 _ACEOF
12775
12776    fi
12777
12778
12779
12780
12781
12782
12783 for ac_func in getpagesize
12784 do
12785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12786 echo "$as_me:$LINENO: checking for $ac_func" >&5
12787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12788 if eval "test \"\${$as_ac_var+set}\" = set"; then
12789   echo $ECHO_N "(cached) $ECHO_C" >&6
12790 else
12791   cat >conftest.$ac_ext <<_ACEOF
12792 #line $LINENO "configure"
12793 /* confdefs.h.  */
12794 _ACEOF
12795 cat confdefs.h >>conftest.$ac_ext
12796 cat >>conftest.$ac_ext <<_ACEOF
12797 /* end confdefs.h.  */
12798 /* System header to define __stub macros and hopefully few prototypes,
12799     which can conflict with char $ac_func (); below.
12800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12801     <limits.h> exists even on freestanding compilers.  */
12802 #ifdef __STDC__
12803 # include <limits.h>
12804 #else
12805 # include <assert.h>
12806 #endif
12807 /* Override any gcc2 internal prototype to avoid an error.  */
12808 #ifdef __cplusplus
12809 extern "C"
12810 {
12811 #endif
12812 /* We use char because int might match the return type of a gcc2
12813    builtin and then its argument prototype would still apply.  */
12814 char $ac_func ();
12815 /* The GNU C library defines this for functions which it implements
12816     to always fail with ENOSYS.  Some functions are actually named
12817     something starting with __ and the normal name is an alias.  */
12818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12819 choke me
12820 #else
12821 char (*f) () = $ac_func;
12822 #endif
12823 #ifdef __cplusplus
12824 }
12825 #endif
12826
12827 int
12828 main ()
12829 {
12830 return f != $ac_func;
12831   ;
12832   return 0;
12833 }
12834 _ACEOF
12835 rm -f conftest.$ac_objext conftest$ac_exeext
12836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12837   (eval $ac_link) 2>&5
12838   ac_status=$?
12839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840   (exit $ac_status); } &&
12841          { ac_try='test -s conftest$ac_exeext'
12842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843   (eval $ac_try) 2>&5
12844   ac_status=$?
12845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846   (exit $ac_status); }; }; then
12847   eval "$as_ac_var=yes"
12848 else
12849   echo "$as_me: failed program was:" >&5
12850 sed 's/^/| /' conftest.$ac_ext >&5
12851
12852 eval "$as_ac_var=no"
12853 fi
12854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12855 fi
12856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12857 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12858 if test `eval echo '${'$as_ac_var'}'` = yes; then
12859   cat >>confdefs.h <<_ACEOF
12860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12861 _ACEOF
12862
12863 fi
12864 done
12865
12866
12867
12868 for ac_header in OS.h unistd.h
12869 do
12870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12872   echo "$as_me:$LINENO: checking for $ac_header" >&5
12873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12875   echo $ECHO_N "(cached) $ECHO_C" >&6
12876 fi
12877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12879 else
12880   # Is the header compilable?
12881 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12883 cat >conftest.$ac_ext <<_ACEOF
12884 #line $LINENO "configure"
12885 /* confdefs.h.  */
12886 _ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h.  */
12890 $ac_includes_default
12891 #include <$ac_header>
12892 _ACEOF
12893 rm -f conftest.$ac_objext
12894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12895   (eval $ac_compile) 2>&5
12896   ac_status=$?
12897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898   (exit $ac_status); } &&
12899          { ac_try='test -s conftest.$ac_objext'
12900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12901   (eval $ac_try) 2>&5
12902   ac_status=$?
12903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904   (exit $ac_status); }; }; then
12905   ac_header_compiler=yes
12906 else
12907   echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12909
12910 ac_header_compiler=no
12911 fi
12912 rm -f conftest.$ac_objext conftest.$ac_ext
12913 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12914 echo "${ECHO_T}$ac_header_compiler" >&6
12915
12916 # Is the header present?
12917 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12919 cat >conftest.$ac_ext <<_ACEOF
12920 #line $LINENO "configure"
12921 /* confdefs.h.  */
12922 _ACEOF
12923 cat confdefs.h >>conftest.$ac_ext
12924 cat >>conftest.$ac_ext <<_ACEOF
12925 /* end confdefs.h.  */
12926 #include <$ac_header>
12927 _ACEOF
12928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12929   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12930   ac_status=$?
12931   grep -v '^ *+' conftest.er1 >conftest.err
12932   rm -f conftest.er1
12933   cat conftest.err >&5
12934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935   (exit $ac_status); } >/dev/null; then
12936   if test -s conftest.err; then
12937     ac_cpp_err=$ac_c_preproc_warn_flag
12938   else
12939     ac_cpp_err=
12940   fi
12941 else
12942   ac_cpp_err=yes
12943 fi
12944 if test -z "$ac_cpp_err"; then
12945   ac_header_preproc=yes
12946 else
12947   echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12949
12950   ac_header_preproc=no
12951 fi
12952 rm -f conftest.err conftest.$ac_ext
12953 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12954 echo "${ECHO_T}$ac_header_preproc" >&6
12955
12956 # So?  What about this header?
12957 case $ac_header_compiler:$ac_header_preproc in
12958   yes:no )
12959     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12960 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12961     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12963     (
12964       cat <<\_ASBOX
12965 ## ------------------------------------ ##
12966 ## Report this to bug-autoconf@gnu.org. ##
12967 ## ------------------------------------ ##
12968 _ASBOX
12969     ) |
12970       sed "s/^/$as_me: WARNING:     /" >&2
12971     ;;
12972   no:yes )
12973     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12974 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12975     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12976 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12979     (
12980       cat <<\_ASBOX
12981 ## ------------------------------------ ##
12982 ## Report this to bug-autoconf@gnu.org. ##
12983 ## ------------------------------------ ##
12984 _ASBOX
12985     ) |
12986       sed "s/^/$as_me: WARNING:     /" >&2
12987     ;;
12988 esac
12989 echo "$as_me:$LINENO: checking for $ac_header" >&5
12990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12992   echo $ECHO_N "(cached) $ECHO_C" >&6
12993 else
12994   eval "$as_ac_Header=$ac_header_preproc"
12995 fi
12996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12998
12999 fi
13000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13001   cat >>confdefs.h <<_ACEOF
13002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13003 _ACEOF
13004
13005 fi
13006
13007 done
13008
13009
13010
13011
13012
13013
13014 for ac_header in locale.h stdlib.h string.h
13015 do
13016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13018   echo "$as_me:$LINENO: checking for $ac_header" >&5
13019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13021   echo $ECHO_N "(cached) $ECHO_C" >&6
13022 fi
13023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13025 else
13026   # Is the header compilable?
13027 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13028 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13029 cat >conftest.$ac_ext <<_ACEOF
13030 #line $LINENO "configure"
13031 /* confdefs.h.  */
13032 _ACEOF
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h.  */
13036 $ac_includes_default
13037 #include <$ac_header>
13038 _ACEOF
13039 rm -f conftest.$ac_objext
13040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13041   (eval $ac_compile) 2>&5
13042   ac_status=$?
13043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044   (exit $ac_status); } &&
13045          { ac_try='test -s conftest.$ac_objext'
13046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13047   (eval $ac_try) 2>&5
13048   ac_status=$?
13049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050   (exit $ac_status); }; }; then
13051   ac_header_compiler=yes
13052 else
13053   echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.$ac_ext >&5
13055
13056 ac_header_compiler=no
13057 fi
13058 rm -f conftest.$ac_objext conftest.$ac_ext
13059 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13060 echo "${ECHO_T}$ac_header_compiler" >&6
13061
13062 # Is the header present?
13063 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13064 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13065 cat >conftest.$ac_ext <<_ACEOF
13066 #line $LINENO "configure"
13067 /* confdefs.h.  */
13068 _ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h.  */
13072 #include <$ac_header>
13073 _ACEOF
13074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13075   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13076   ac_status=$?
13077   grep -v '^ *+' conftest.er1 >conftest.err
13078   rm -f conftest.er1
13079   cat conftest.err >&5
13080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081   (exit $ac_status); } >/dev/null; then
13082   if test -s conftest.err; then
13083     ac_cpp_err=$ac_c_preproc_warn_flag
13084   else
13085     ac_cpp_err=
13086   fi
13087 else
13088   ac_cpp_err=yes
13089 fi
13090 if test -z "$ac_cpp_err"; then
13091   ac_header_preproc=yes
13092 else
13093   echo "$as_me: failed program was:" >&5
13094 sed 's/^/| /' conftest.$ac_ext >&5
13095
13096   ac_header_preproc=no
13097 fi
13098 rm -f conftest.err conftest.$ac_ext
13099 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13100 echo "${ECHO_T}$ac_header_preproc" >&6
13101
13102 # So?  What about this header?
13103 case $ac_header_compiler:$ac_header_preproc in
13104   yes:no )
13105     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13107     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13109     (
13110       cat <<\_ASBOX
13111 ## ------------------------------------ ##
13112 ## Report this to bug-autoconf@gnu.org. ##
13113 ## ------------------------------------ ##
13114 _ASBOX
13115     ) |
13116       sed "s/^/$as_me: WARNING:     /" >&2
13117     ;;
13118   no:yes )
13119     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13121     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13122 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13123     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13125     (
13126       cat <<\_ASBOX
13127 ## ------------------------------------ ##
13128 ## Report this to bug-autoconf@gnu.org. ##
13129 ## ------------------------------------ ##
13130 _ASBOX
13131     ) |
13132       sed "s/^/$as_me: WARNING:     /" >&2
13133     ;;
13134 esac
13135 echo "$as_me:$LINENO: checking for $ac_header" >&5
13136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13138   echo $ECHO_N "(cached) $ECHO_C" >&6
13139 else
13140   eval "$as_ac_Header=$ac_header_preproc"
13141 fi
13142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13144
13145 fi
13146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13147   cat >>confdefs.h <<_ACEOF
13148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13149 _ACEOF
13150
13151 fi
13152
13153 done
13154
13155
13156 for ac_func in setlocale
13157 do
13158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13159 echo "$as_me:$LINENO: checking for $ac_func" >&5
13160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13161 if eval "test \"\${$as_ac_var+set}\" = set"; then
13162   echo $ECHO_N "(cached) $ECHO_C" >&6
13163 else
13164   cat >conftest.$ac_ext <<_ACEOF
13165 #line $LINENO "configure"
13166 /* confdefs.h.  */
13167 _ACEOF
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h.  */
13171 /* System header to define __stub macros and hopefully few prototypes,
13172     which can conflict with char $ac_func (); below.
13173     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13174     <limits.h> exists even on freestanding compilers.  */
13175 #ifdef __STDC__
13176 # include <limits.h>
13177 #else
13178 # include <assert.h>
13179 #endif
13180 /* Override any gcc2 internal prototype to avoid an error.  */
13181 #ifdef __cplusplus
13182 extern "C"
13183 {
13184 #endif
13185 /* We use char because int might match the return type of a gcc2
13186    builtin and then its argument prototype would still apply.  */
13187 char $ac_func ();
13188 /* The GNU C library defines this for functions which it implements
13189     to always fail with ENOSYS.  Some functions are actually named
13190     something starting with __ and the normal name is an alias.  */
13191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13192 choke me
13193 #else
13194 char (*f) () = $ac_func;
13195 #endif
13196 #ifdef __cplusplus
13197 }
13198 #endif
13199
13200 int
13201 main ()
13202 {
13203 return f != $ac_func;
13204   ;
13205   return 0;
13206 }
13207 _ACEOF
13208 rm -f conftest.$ac_objext conftest$ac_exeext
13209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13210   (eval $ac_link) 2>&5
13211   ac_status=$?
13212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213   (exit $ac_status); } &&
13214          { ac_try='test -s conftest$ac_exeext'
13215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13216   (eval $ac_try) 2>&5
13217   ac_status=$?
13218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219   (exit $ac_status); }; }; then
13220   eval "$as_ac_var=yes"
13221 else
13222   echo "$as_me: failed program was:" >&5
13223 sed 's/^/| /' conftest.$ac_ext >&5
13224
13225 eval "$as_ac_var=no"
13226 fi
13227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13228 fi
13229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13231 if test `eval echo '${'$as_ac_var'}'` = yes; then
13232   cat >>confdefs.h <<_ACEOF
13233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13234 _ACEOF
13235
13236 fi
13237 done
13238
13239
13240
13241
13242
13243 for ac_header in stdlib.h
13244 do
13245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13247   echo "$as_me:$LINENO: checking for $ac_header" >&5
13248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13250   echo $ECHO_N "(cached) $ECHO_C" >&6
13251 fi
13252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13254 else
13255   # Is the header compilable?
13256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13258 cat >conftest.$ac_ext <<_ACEOF
13259 #line $LINENO "configure"
13260 /* confdefs.h.  */
13261 _ACEOF
13262 cat confdefs.h >>conftest.$ac_ext
13263 cat >>conftest.$ac_ext <<_ACEOF
13264 /* end confdefs.h.  */
13265 $ac_includes_default
13266 #include <$ac_header>
13267 _ACEOF
13268 rm -f conftest.$ac_objext
13269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13270   (eval $ac_compile) 2>&5
13271   ac_status=$?
13272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273   (exit $ac_status); } &&
13274          { ac_try='test -s conftest.$ac_objext'
13275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276   (eval $ac_try) 2>&5
13277   ac_status=$?
13278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279   (exit $ac_status); }; }; then
13280   ac_header_compiler=yes
13281 else
13282   echo "$as_me: failed program was:" >&5
13283 sed 's/^/| /' conftest.$ac_ext >&5
13284
13285 ac_header_compiler=no
13286 fi
13287 rm -f conftest.$ac_objext conftest.$ac_ext
13288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13289 echo "${ECHO_T}$ac_header_compiler" >&6
13290
13291 # Is the header present?
13292 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13294 cat >conftest.$ac_ext <<_ACEOF
13295 #line $LINENO "configure"
13296 /* confdefs.h.  */
13297 _ACEOF
13298 cat confdefs.h >>conftest.$ac_ext
13299 cat >>conftest.$ac_ext <<_ACEOF
13300 /* end confdefs.h.  */
13301 #include <$ac_header>
13302 _ACEOF
13303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13304   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13305   ac_status=$?
13306   grep -v '^ *+' conftest.er1 >conftest.err
13307   rm -f conftest.er1
13308   cat conftest.err >&5
13309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310   (exit $ac_status); } >/dev/null; then
13311   if test -s conftest.err; then
13312     ac_cpp_err=$ac_c_preproc_warn_flag
13313   else
13314     ac_cpp_err=
13315   fi
13316 else
13317   ac_cpp_err=yes
13318 fi
13319 if test -z "$ac_cpp_err"; then
13320   ac_header_preproc=yes
13321 else
13322   echo "$as_me: failed program was:" >&5
13323 sed 's/^/| /' conftest.$ac_ext >&5
13324
13325   ac_header_preproc=no
13326 fi
13327 rm -f conftest.err conftest.$ac_ext
13328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13329 echo "${ECHO_T}$ac_header_preproc" >&6
13330
13331 # So?  What about this header?
13332 case $ac_header_compiler:$ac_header_preproc in
13333   yes:no )
13334     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13336     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13338     (
13339       cat <<\_ASBOX
13340 ## ------------------------------------ ##
13341 ## Report this to bug-autoconf@gnu.org. ##
13342 ## ------------------------------------ ##
13343 _ASBOX
13344     ) |
13345       sed "s/^/$as_me: WARNING:     /" >&2
13346     ;;
13347   no:yes )
13348     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13349 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13350     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13351 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13354     (
13355       cat <<\_ASBOX
13356 ## ------------------------------------ ##
13357 ## Report this to bug-autoconf@gnu.org. ##
13358 ## ------------------------------------ ##
13359 _ASBOX
13360     ) |
13361       sed "s/^/$as_me: WARNING:     /" >&2
13362     ;;
13363 esac
13364 echo "$as_me:$LINENO: checking for $ac_header" >&5
13365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13367   echo $ECHO_N "(cached) $ECHO_C" >&6
13368 else
13369   eval "$as_ac_Header=$ac_header_preproc"
13370 fi
13371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13373
13374 fi
13375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13376   cat >>confdefs.h <<_ACEOF
13377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13378 _ACEOF
13379
13380 fi
13381
13382 done
13383
13384
13385
13386
13387
13388
13389 for ac_header in locale.h
13390 do
13391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13393   echo "$as_me:$LINENO: checking for $ac_header" >&5
13394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13396   echo $ECHO_N "(cached) $ECHO_C" >&6
13397 fi
13398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13400 else
13401   # Is the header compilable?
13402 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13404 cat >conftest.$ac_ext <<_ACEOF
13405 #line $LINENO "configure"
13406 /* confdefs.h.  */
13407 _ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h.  */
13411 $ac_includes_default
13412 #include <$ac_header>
13413 _ACEOF
13414 rm -f conftest.$ac_objext
13415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13416   (eval $ac_compile) 2>&5
13417   ac_status=$?
13418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419   (exit $ac_status); } &&
13420          { ac_try='test -s conftest.$ac_objext'
13421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13422   (eval $ac_try) 2>&5
13423   ac_status=$?
13424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); }; }; then
13426   ac_header_compiler=yes
13427 else
13428   echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.$ac_ext >&5
13430
13431 ac_header_compiler=no
13432 fi
13433 rm -f conftest.$ac_objext conftest.$ac_ext
13434 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13435 echo "${ECHO_T}$ac_header_compiler" >&6
13436
13437 # Is the header present?
13438 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13440 cat >conftest.$ac_ext <<_ACEOF
13441 #line $LINENO "configure"
13442 /* confdefs.h.  */
13443 _ACEOF
13444 cat confdefs.h >>conftest.$ac_ext
13445 cat >>conftest.$ac_ext <<_ACEOF
13446 /* end confdefs.h.  */
13447 #include <$ac_header>
13448 _ACEOF
13449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13450   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13451   ac_status=$?
13452   grep -v '^ *+' conftest.er1 >conftest.err
13453   rm -f conftest.er1
13454   cat conftest.err >&5
13455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456   (exit $ac_status); } >/dev/null; then
13457   if test -s conftest.err; then
13458     ac_cpp_err=$ac_c_preproc_warn_flag
13459   else
13460     ac_cpp_err=
13461   fi
13462 else
13463   ac_cpp_err=yes
13464 fi
13465 if test -z "$ac_cpp_err"; then
13466   ac_header_preproc=yes
13467 else
13468   echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13470
13471   ac_header_preproc=no
13472 fi
13473 rm -f conftest.err conftest.$ac_ext
13474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13475 echo "${ECHO_T}$ac_header_preproc" >&6
13476
13477 # So?  What about this header?
13478 case $ac_header_compiler:$ac_header_preproc in
13479   yes:no )
13480     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13482     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13484     (
13485       cat <<\_ASBOX
13486 ## ------------------------------------ ##
13487 ## Report this to bug-autoconf@gnu.org. ##
13488 ## ------------------------------------ ##
13489 _ASBOX
13490     ) |
13491       sed "s/^/$as_me: WARNING:     /" >&2
13492     ;;
13493   no:yes )
13494     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13496     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13500     (
13501       cat <<\_ASBOX
13502 ## ------------------------------------ ##
13503 ## Report this to bug-autoconf@gnu.org. ##
13504 ## ------------------------------------ ##
13505 _ASBOX
13506     ) |
13507       sed "s/^/$as_me: WARNING:     /" >&2
13508     ;;
13509 esac
13510 echo "$as_me:$LINENO: checking for $ac_header" >&5
13511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13513   echo $ECHO_N "(cached) $ECHO_C" >&6
13514 else
13515   eval "$as_ac_Header=$ac_header_preproc"
13516 fi
13517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13519
13520 fi
13521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13522   cat >>confdefs.h <<_ACEOF
13523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13524 _ACEOF
13525
13526 fi
13527
13528 done
13529
13530   echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13531 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13532 if test "${ac_cv_have_decl_getenv+set}" = set; then
13533   echo $ECHO_N "(cached) $ECHO_C" >&6
13534 else
13535   cat >conftest.$ac_ext <<_ACEOF
13536 #line $LINENO "configure"
13537 /* confdefs.h.  */
13538 _ACEOF
13539 cat confdefs.h >>conftest.$ac_ext
13540 cat >>conftest.$ac_ext <<_ACEOF
13541 /* end confdefs.h.  */
13542 $ac_includes_default
13543 int
13544 main ()
13545 {
13546 #ifndef getenv
13547   char *p = (char *) getenv;
13548 #endif
13549
13550   ;
13551   return 0;
13552 }
13553 _ACEOF
13554 rm -f conftest.$ac_objext
13555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13556   (eval $ac_compile) 2>&5
13557   ac_status=$?
13558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559   (exit $ac_status); } &&
13560          { ac_try='test -s conftest.$ac_objext'
13561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562   (eval $ac_try) 2>&5
13563   ac_status=$?
13564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565   (exit $ac_status); }; }; then
13566   ac_cv_have_decl_getenv=yes
13567 else
13568   echo "$as_me: failed program was:" >&5
13569 sed 's/^/| /' conftest.$ac_ext >&5
13570
13571 ac_cv_have_decl_getenv=no
13572 fi
13573 rm -f conftest.$ac_objext conftest.$ac_ext
13574 fi
13575 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13576 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13577 if test $ac_cv_have_decl_getenv = yes; then
13578
13579 cat >>confdefs.h <<_ACEOF
13580 #define HAVE_DECL_GETENV 1
13581 _ACEOF
13582
13583
13584 else
13585   cat >>confdefs.h <<_ACEOF
13586 #define HAVE_DECL_GETENV 0
13587 _ACEOF
13588
13589
13590 fi
13591
13592
13593
13594 for ac_func in localeconv
13595 do
13596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13597 echo "$as_me:$LINENO: checking for $ac_func" >&5
13598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13599 if eval "test \"\${$as_ac_var+set}\" = set"; then
13600   echo $ECHO_N "(cached) $ECHO_C" >&6
13601 else
13602   cat >conftest.$ac_ext <<_ACEOF
13603 #line $LINENO "configure"
13604 /* confdefs.h.  */
13605 _ACEOF
13606 cat confdefs.h >>conftest.$ac_ext
13607 cat >>conftest.$ac_ext <<_ACEOF
13608 /* end confdefs.h.  */
13609 /* System header to define __stub macros and hopefully few prototypes,
13610     which can conflict with char $ac_func (); below.
13611     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13612     <limits.h> exists even on freestanding compilers.  */
13613 #ifdef __STDC__
13614 # include <limits.h>
13615 #else
13616 # include <assert.h>
13617 #endif
13618 /* Override any gcc2 internal prototype to avoid an error.  */
13619 #ifdef __cplusplus
13620 extern "C"
13621 {
13622 #endif
13623 /* We use char because int might match the return type of a gcc2
13624    builtin and then its argument prototype would still apply.  */
13625 char $ac_func ();
13626 /* The GNU C library defines this for functions which it implements
13627     to always fail with ENOSYS.  Some functions are actually named
13628     something starting with __ and the normal name is an alias.  */
13629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13630 choke me
13631 #else
13632 char (*f) () = $ac_func;
13633 #endif
13634 #ifdef __cplusplus
13635 }
13636 #endif
13637
13638 int
13639 main ()
13640 {
13641 return f != $ac_func;
13642   ;
13643   return 0;
13644 }
13645 _ACEOF
13646 rm -f conftest.$ac_objext conftest$ac_exeext
13647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13648   (eval $ac_link) 2>&5
13649   ac_status=$?
13650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651   (exit $ac_status); } &&
13652          { ac_try='test -s conftest$ac_exeext'
13653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654   (eval $ac_try) 2>&5
13655   ac_status=$?
13656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657   (exit $ac_status); }; }; then
13658   eval "$as_ac_var=yes"
13659 else
13660   echo "$as_me: failed program was:" >&5
13661 sed 's/^/| /' conftest.$ac_ext >&5
13662
13663 eval "$as_ac_var=no"
13664 fi
13665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13666 fi
13667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13669 if test `eval echo '${'$as_ac_var'}'` = yes; then
13670   cat >>confdefs.h <<_ACEOF
13671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13672 _ACEOF
13673
13674 fi
13675 done
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687 for ac_header in limits.h stdlib.h string.h wchar.h wctype.h
13688 do
13689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13691   echo "$as_me:$LINENO: checking for $ac_header" >&5
13692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13694   echo $ECHO_N "(cached) $ECHO_C" >&6
13695 fi
13696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13698 else
13699   # Is the header compilable?
13700 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13702 cat >conftest.$ac_ext <<_ACEOF
13703 #line $LINENO "configure"
13704 /* confdefs.h.  */
13705 _ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h.  */
13709 $ac_includes_default
13710 #include <$ac_header>
13711 _ACEOF
13712 rm -f conftest.$ac_objext
13713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13714   (eval $ac_compile) 2>&5
13715   ac_status=$?
13716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717   (exit $ac_status); } &&
13718          { ac_try='test -s conftest.$ac_objext'
13719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720   (eval $ac_try) 2>&5
13721   ac_status=$?
13722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723   (exit $ac_status); }; }; then
13724   ac_header_compiler=yes
13725 else
13726   echo "$as_me: failed program was:" >&5
13727 sed 's/^/| /' conftest.$ac_ext >&5
13728
13729 ac_header_compiler=no
13730 fi
13731 rm -f conftest.$ac_objext conftest.$ac_ext
13732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13733 echo "${ECHO_T}$ac_header_compiler" >&6
13734
13735 # Is the header present?
13736 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13738 cat >conftest.$ac_ext <<_ACEOF
13739 #line $LINENO "configure"
13740 /* confdefs.h.  */
13741 _ACEOF
13742 cat confdefs.h >>conftest.$ac_ext
13743 cat >>conftest.$ac_ext <<_ACEOF
13744 /* end confdefs.h.  */
13745 #include <$ac_header>
13746 _ACEOF
13747 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13748   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13749   ac_status=$?
13750   grep -v '^ *+' conftest.er1 >conftest.err
13751   rm -f conftest.er1
13752   cat conftest.err >&5
13753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754   (exit $ac_status); } >/dev/null; then
13755   if test -s conftest.err; then
13756     ac_cpp_err=$ac_c_preproc_warn_flag
13757   else
13758     ac_cpp_err=
13759   fi
13760 else
13761   ac_cpp_err=yes
13762 fi
13763 if test -z "$ac_cpp_err"; then
13764   ac_header_preproc=yes
13765 else
13766   echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13768
13769   ac_header_preproc=no
13770 fi
13771 rm -f conftest.err conftest.$ac_ext
13772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13773 echo "${ECHO_T}$ac_header_preproc" >&6
13774
13775 # So?  What about this header?
13776 case $ac_header_compiler:$ac_header_preproc in
13777   yes:no )
13778     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13780     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13782     (
13783       cat <<\_ASBOX
13784 ## ------------------------------------ ##
13785 ## Report this to bug-autoconf@gnu.org. ##
13786 ## ------------------------------------ ##
13787 _ASBOX
13788     ) |
13789       sed "s/^/$as_me: WARNING:     /" >&2
13790     ;;
13791   no:yes )
13792     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13794     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13798     (
13799       cat <<\_ASBOX
13800 ## ------------------------------------ ##
13801 ## Report this to bug-autoconf@gnu.org. ##
13802 ## ------------------------------------ ##
13803 _ASBOX
13804     ) |
13805       sed "s/^/$as_me: WARNING:     /" >&2
13806     ;;
13807 esac
13808 echo "$as_me:$LINENO: checking for $ac_header" >&5
13809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13811   echo $ECHO_N "(cached) $ECHO_C" >&6
13812 else
13813   eval "$as_ac_Header=$ac_header_preproc"
13814 fi
13815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13817
13818 fi
13819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13820   cat >>confdefs.h <<_ACEOF
13821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13822 _ACEOF
13823
13824 fi
13825
13826 done
13827
13828
13829
13830
13831
13832
13833 for ac_func in isascii iswcntrl iswprint mbsinit wcwidth
13834 do
13835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13836 echo "$as_me:$LINENO: checking for $ac_func" >&5
13837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13838 if eval "test \"\${$as_ac_var+set}\" = set"; then
13839   echo $ECHO_N "(cached) $ECHO_C" >&6
13840 else
13841   cat >conftest.$ac_ext <<_ACEOF
13842 #line $LINENO "configure"
13843 /* confdefs.h.  */
13844 _ACEOF
13845 cat confdefs.h >>conftest.$ac_ext
13846 cat >>conftest.$ac_ext <<_ACEOF
13847 /* end confdefs.h.  */
13848 /* System header to define __stub macros and hopefully few prototypes,
13849     which can conflict with char $ac_func (); below.
13850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13851     <limits.h> exists even on freestanding compilers.  */
13852 #ifdef __STDC__
13853 # include <limits.h>
13854 #else
13855 # include <assert.h>
13856 #endif
13857 /* Override any gcc2 internal prototype to avoid an error.  */
13858 #ifdef __cplusplus
13859 extern "C"
13860 {
13861 #endif
13862 /* We use char because int might match the return type of a gcc2
13863    builtin and then its argument prototype would still apply.  */
13864 char $ac_func ();
13865 /* The GNU C library defines this for functions which it implements
13866     to always fail with ENOSYS.  Some functions are actually named
13867     something starting with __ and the normal name is an alias.  */
13868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13869 choke me
13870 #else
13871 char (*f) () = $ac_func;
13872 #endif
13873 #ifdef __cplusplus
13874 }
13875 #endif
13876
13877 int
13878 main ()
13879 {
13880 return f != $ac_func;
13881   ;
13882   return 0;
13883 }
13884 _ACEOF
13885 rm -f conftest.$ac_objext conftest$ac_exeext
13886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13887   (eval $ac_link) 2>&5
13888   ac_status=$?
13889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890   (exit $ac_status); } &&
13891          { ac_try='test -s conftest$ac_exeext'
13892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893   (eval $ac_try) 2>&5
13894   ac_status=$?
13895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896   (exit $ac_status); }; }; then
13897   eval "$as_ac_var=yes"
13898 else
13899   echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.$ac_ext >&5
13901
13902 eval "$as_ac_var=no"
13903 fi
13904 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13905 fi
13906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13908 if test `eval echo '${'$as_ac_var'}'` = yes; then
13909   cat >>confdefs.h <<_ACEOF
13910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13911 _ACEOF
13912
13913 fi
13914 done
13915
13916
13917   echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
13918 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
13919 if test "${jm_cv_func_mbrtowc+set}" = set; then
13920   echo $ECHO_N "(cached) $ECHO_C" >&6
13921 else
13922   cat >conftest.$ac_ext <<_ACEOF
13923 #line $LINENO "configure"
13924 /* confdefs.h.  */
13925 _ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h.  */
13929 #include <wchar.h>
13930 int
13931 main ()
13932 {
13933 mbstate_t state; return ! (sizeof state && mbrtowc);
13934   ;
13935   return 0;
13936 }
13937 _ACEOF
13938 rm -f conftest.$ac_objext conftest$ac_exeext
13939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13940   (eval $ac_link) 2>&5
13941   ac_status=$?
13942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943   (exit $ac_status); } &&
13944          { ac_try='test -s conftest$ac_exeext'
13945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946   (eval $ac_try) 2>&5
13947   ac_status=$?
13948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949   (exit $ac_status); }; }; then
13950   jm_cv_func_mbrtowc=yes
13951 else
13952   echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13954
13955 jm_cv_func_mbrtowc=no
13956 fi
13957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13958 fi
13959 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
13960 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
13961   if test $jm_cv_func_mbrtowc = yes; then
13962
13963 cat >>confdefs.h <<\_ACEOF
13964 #define HAVE_MBRTOWC 1
13965 _ACEOF
13966
13967   fi
13968
13969
13970   echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
13971 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
13972 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
13973   echo $ECHO_N "(cached) $ECHO_C" >&6
13974 else
13975   cat >conftest.$ac_ext <<_ACEOF
13976 #line $LINENO "configure"
13977 /* confdefs.h.  */
13978 _ACEOF
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h.  */
13982
13983 /* AIX 3.2.5 declares wcwidth in <string.h>. */
13984 #if HAVE_STRING_H
13985 # include <string.h>
13986 #endif
13987 #if HAVE_WCHAR_H
13988 # include <wchar.h>
13989 #endif
13990
13991 int
13992 main ()
13993 {
13994
13995 #ifndef wcwidth
13996   char *p = (char *) wcwidth;
13997 #endif
13998
13999   ;
14000   return 0;
14001 }
14002 _ACEOF
14003 rm -f conftest.$ac_objext
14004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14005   (eval $ac_compile) 2>&5
14006   ac_status=$?
14007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008   (exit $ac_status); } &&
14009          { ac_try='test -s conftest.$ac_objext'
14010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011   (eval $ac_try) 2>&5
14012   ac_status=$?
14013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014   (exit $ac_status); }; }; then
14015   ac_cv_have_decl_wcwidth=yes
14016 else
14017   echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14019
14020 ac_cv_have_decl_wcwidth=no
14021 fi
14022 rm -f conftest.$ac_objext conftest.$ac_ext
14023 fi
14024 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
14025 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
14026   if test $ac_cv_have_decl_wcwidth = yes; then
14027     ac_val=1
14028   else
14029     ac_val=0
14030   fi
14031
14032 cat >>confdefs.h <<_ACEOF
14033 #define HAVE_DECL_WCWIDTH $ac_val
14034 _ACEOF
14035
14036
14037   echo "$as_me:$LINENO: checking for mbstate_t" >&5
14038 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
14039 if test "${ac_cv_type_mbstate_t+set}" = set; then
14040   echo $ECHO_N "(cached) $ECHO_C" >&6
14041 else
14042   cat >conftest.$ac_ext <<_ACEOF
14043 #line $LINENO "configure"
14044 /* confdefs.h.  */
14045 _ACEOF
14046 cat confdefs.h >>conftest.$ac_ext
14047 cat >>conftest.$ac_ext <<_ACEOF
14048 /* end confdefs.h.  */
14049 $ac_includes_default
14050 #           include <wchar.h>
14051 int
14052 main ()
14053 {
14054 mbstate_t x; return sizeof x;
14055   ;
14056   return 0;
14057 }
14058 _ACEOF
14059 rm -f conftest.$ac_objext
14060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14061   (eval $ac_compile) 2>&5
14062   ac_status=$?
14063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064   (exit $ac_status); } &&
14065          { ac_try='test -s conftest.$ac_objext'
14066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14067   (eval $ac_try) 2>&5
14068   ac_status=$?
14069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070   (exit $ac_status); }; }; then
14071   ac_cv_type_mbstate_t=yes
14072 else
14073   echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.$ac_ext >&5
14075
14076 ac_cv_type_mbstate_t=no
14077 fi
14078 rm -f conftest.$ac_objext conftest.$ac_ext
14079 fi
14080 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
14081 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
14082    if test $ac_cv_type_mbstate_t = yes; then
14083
14084 cat >>confdefs.h <<\_ACEOF
14085 #define HAVE_MBSTATE_T 1
14086 _ACEOF
14087
14088    else
14089
14090 cat >>confdefs.h <<\_ACEOF
14091 #define mbstate_t int
14092 _ACEOF
14093
14094    fi
14095
14096
14097
14098
14099
14100 for ac_header in limits.h stdlib.h bp-sym.h
14101 do
14102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14104   echo "$as_me:$LINENO: checking for $ac_header" >&5
14105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14107   echo $ECHO_N "(cached) $ECHO_C" >&6
14108 fi
14109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14111 else
14112   # Is the header compilable?
14113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14115 cat >conftest.$ac_ext <<_ACEOF
14116 #line $LINENO "configure"
14117 /* confdefs.h.  */
14118 _ACEOF
14119 cat confdefs.h >>conftest.$ac_ext
14120 cat >>conftest.$ac_ext <<_ACEOF
14121 /* end confdefs.h.  */
14122 $ac_includes_default
14123 #include <$ac_header>
14124 _ACEOF
14125 rm -f conftest.$ac_objext
14126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14127   (eval $ac_compile) 2>&5
14128   ac_status=$?
14129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130   (exit $ac_status); } &&
14131          { ac_try='test -s conftest.$ac_objext'
14132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133   (eval $ac_try) 2>&5
14134   ac_status=$?
14135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136   (exit $ac_status); }; }; then
14137   ac_header_compiler=yes
14138 else
14139   echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14141
14142 ac_header_compiler=no
14143 fi
14144 rm -f conftest.$ac_objext conftest.$ac_ext
14145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14146 echo "${ECHO_T}$ac_header_compiler" >&6
14147
14148 # Is the header present?
14149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14151 cat >conftest.$ac_ext <<_ACEOF
14152 #line $LINENO "configure"
14153 /* confdefs.h.  */
14154 _ACEOF
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h.  */
14158 #include <$ac_header>
14159 _ACEOF
14160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14161   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14162   ac_status=$?
14163   grep -v '^ *+' conftest.er1 >conftest.err
14164   rm -f conftest.er1
14165   cat conftest.err >&5
14166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167   (exit $ac_status); } >/dev/null; then
14168   if test -s conftest.err; then
14169     ac_cpp_err=$ac_c_preproc_warn_flag
14170   else
14171     ac_cpp_err=
14172   fi
14173 else
14174   ac_cpp_err=yes
14175 fi
14176 if test -z "$ac_cpp_err"; then
14177   ac_header_preproc=yes
14178 else
14179   echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14181
14182   ac_header_preproc=no
14183 fi
14184 rm -f conftest.err conftest.$ac_ext
14185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14186 echo "${ECHO_T}$ac_header_preproc" >&6
14187
14188 # So?  What about this header?
14189 case $ac_header_compiler:$ac_header_preproc in
14190   yes:no )
14191     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14195     (
14196       cat <<\_ASBOX
14197 ## ------------------------------------ ##
14198 ## Report this to bug-autoconf@gnu.org. ##
14199 ## ------------------------------------ ##
14200 _ASBOX
14201     ) |
14202       sed "s/^/$as_me: WARNING:     /" >&2
14203     ;;
14204   no:yes )
14205     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14207     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14209     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14211     (
14212       cat <<\_ASBOX
14213 ## ------------------------------------ ##
14214 ## Report this to bug-autoconf@gnu.org. ##
14215 ## ------------------------------------ ##
14216 _ASBOX
14217     ) |
14218       sed "s/^/$as_me: WARNING:     /" >&2
14219     ;;
14220 esac
14221 echo "$as_me:$LINENO: checking for $ac_header" >&5
14222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14224   echo $ECHO_N "(cached) $ECHO_C" >&6
14225 else
14226   eval "$as_ac_Header=$ac_header_preproc"
14227 fi
14228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14230
14231 fi
14232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14233   cat >>confdefs.h <<_ACEOF
14234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14235 _ACEOF
14236
14237 fi
14238
14239 done
14240
14241
14242
14243
14244
14245 for ac_header in sys/pstat.h unistd.h
14246 do
14247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14249   echo "$as_me:$LINENO: checking for $ac_header" >&5
14250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14252   echo $ECHO_N "(cached) $ECHO_C" >&6
14253 fi
14254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14256 else
14257   # Is the header compilable?
14258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14260 cat >conftest.$ac_ext <<_ACEOF
14261 #line $LINENO "configure"
14262 /* confdefs.h.  */
14263 _ACEOF
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h.  */
14267 $ac_includes_default
14268 #include <$ac_header>
14269 _ACEOF
14270 rm -f conftest.$ac_objext
14271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14272   (eval $ac_compile) 2>&5
14273   ac_status=$?
14274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275   (exit $ac_status); } &&
14276          { ac_try='test -s conftest.$ac_objext'
14277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278   (eval $ac_try) 2>&5
14279   ac_status=$?
14280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281   (exit $ac_status); }; }; then
14282   ac_header_compiler=yes
14283 else
14284   echo "$as_me: failed program was:" >&5
14285 sed 's/^/| /' conftest.$ac_ext >&5
14286
14287 ac_header_compiler=no
14288 fi
14289 rm -f conftest.$ac_objext conftest.$ac_ext
14290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14291 echo "${ECHO_T}$ac_header_compiler" >&6
14292
14293 # Is the header present?
14294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14296 cat >conftest.$ac_ext <<_ACEOF
14297 #line $LINENO "configure"
14298 /* confdefs.h.  */
14299 _ACEOF
14300 cat confdefs.h >>conftest.$ac_ext
14301 cat >>conftest.$ac_ext <<_ACEOF
14302 /* end confdefs.h.  */
14303 #include <$ac_header>
14304 _ACEOF
14305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14306   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14307   ac_status=$?
14308   grep -v '^ *+' conftest.er1 >conftest.err
14309   rm -f conftest.er1
14310   cat conftest.err >&5
14311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312   (exit $ac_status); } >/dev/null; then
14313   if test -s conftest.err; then
14314     ac_cpp_err=$ac_c_preproc_warn_flag
14315   else
14316     ac_cpp_err=
14317   fi
14318 else
14319   ac_cpp_err=yes
14320 fi
14321 if test -z "$ac_cpp_err"; then
14322   ac_header_preproc=yes
14323 else
14324   echo "$as_me: failed program was:" >&5
14325 sed 's/^/| /' conftest.$ac_ext >&5
14326
14327   ac_header_preproc=no
14328 fi
14329 rm -f conftest.err conftest.$ac_ext
14330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14331 echo "${ECHO_T}$ac_header_preproc" >&6
14332
14333 # So?  What about this header?
14334 case $ac_header_compiler:$ac_header_preproc in
14335   yes:no )
14336     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14340     (
14341       cat <<\_ASBOX
14342 ## ------------------------------------ ##
14343 ## Report this to bug-autoconf@gnu.org. ##
14344 ## ------------------------------------ ##
14345 _ASBOX
14346     ) |
14347       sed "s/^/$as_me: WARNING:     /" >&2
14348     ;;
14349   no:yes )
14350     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14352     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14356     (
14357       cat <<\_ASBOX
14358 ## ------------------------------------ ##
14359 ## Report this to bug-autoconf@gnu.org. ##
14360 ## ------------------------------------ ##
14361 _ASBOX
14362     ) |
14363       sed "s/^/$as_me: WARNING:     /" >&2
14364     ;;
14365 esac
14366 echo "$as_me:$LINENO: checking for $ac_header" >&5
14367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14369   echo $ECHO_N "(cached) $ECHO_C" >&6
14370 else
14371   eval "$as_ac_Header=$ac_header_preproc"
14372 fi
14373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14375
14376 fi
14377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14378   cat >>confdefs.h <<_ACEOF
14379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14380 _ACEOF
14381
14382 fi
14383
14384 done
14385
14386
14387
14388 for ac_func in pstat_getstatic pstat_getdynamic
14389 do
14390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14391 echo "$as_me:$LINENO: checking for $ac_func" >&5
14392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14393 if eval "test \"\${$as_ac_var+set}\" = set"; then
14394   echo $ECHO_N "(cached) $ECHO_C" >&6
14395 else
14396   cat >conftest.$ac_ext <<_ACEOF
14397 #line $LINENO "configure"
14398 /* confdefs.h.  */
14399 _ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h.  */
14403 /* System header to define __stub macros and hopefully few prototypes,
14404     which can conflict with char $ac_func (); below.
14405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14406     <limits.h> exists even on freestanding compilers.  */
14407 #ifdef __STDC__
14408 # include <limits.h>
14409 #else
14410 # include <assert.h>
14411 #endif
14412 /* Override any gcc2 internal prototype to avoid an error.  */
14413 #ifdef __cplusplus
14414 extern "C"
14415 {
14416 #endif
14417 /* We use char because int might match the return type of a gcc2
14418    builtin and then its argument prototype would still apply.  */
14419 char $ac_func ();
14420 /* The GNU C library defines this for functions which it implements
14421     to always fail with ENOSYS.  Some functions are actually named
14422     something starting with __ and the normal name is an alias.  */
14423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14424 choke me
14425 #else
14426 char (*f) () = $ac_func;
14427 #endif
14428 #ifdef __cplusplus
14429 }
14430 #endif
14431
14432 int
14433 main ()
14434 {
14435 return f != $ac_func;
14436   ;
14437   return 0;
14438 }
14439 _ACEOF
14440 rm -f conftest.$ac_objext conftest$ac_exeext
14441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14442   (eval $ac_link) 2>&5
14443   ac_status=$?
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); } &&
14446          { ac_try='test -s conftest$ac_exeext'
14447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14448   (eval $ac_try) 2>&5
14449   ac_status=$?
14450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14451   (exit $ac_status); }; }; then
14452   eval "$as_ac_var=yes"
14453 else
14454   echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14456
14457 eval "$as_ac_var=no"
14458 fi
14459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14460 fi
14461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14463 if test `eval echo '${'$as_ac_var'}'` = yes; then
14464   cat >>confdefs.h <<_ACEOF
14465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14466 _ACEOF
14467
14468 fi
14469 done
14470
14471
14472
14473
14474 for ac_header in unistd.h
14475 do
14476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14478   echo "$as_me:$LINENO: checking for $ac_header" >&5
14479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14481   echo $ECHO_N "(cached) $ECHO_C" >&6
14482 fi
14483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14485 else
14486   # Is the header compilable?
14487 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14488 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14489 cat >conftest.$ac_ext <<_ACEOF
14490 #line $LINENO "configure"
14491 /* confdefs.h.  */
14492 _ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h.  */
14496 $ac_includes_default
14497 #include <$ac_header>
14498 _ACEOF
14499 rm -f conftest.$ac_objext
14500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14501   (eval $ac_compile) 2>&5
14502   ac_status=$?
14503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504   (exit $ac_status); } &&
14505          { ac_try='test -s conftest.$ac_objext'
14506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14507   (eval $ac_try) 2>&5
14508   ac_status=$?
14509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510   (exit $ac_status); }; }; then
14511   ac_header_compiler=yes
14512 else
14513   echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.$ac_ext >&5
14515
14516 ac_header_compiler=no
14517 fi
14518 rm -f conftest.$ac_objext conftest.$ac_ext
14519 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14520 echo "${ECHO_T}$ac_header_compiler" >&6
14521
14522 # Is the header present?
14523 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14525 cat >conftest.$ac_ext <<_ACEOF
14526 #line $LINENO "configure"
14527 /* confdefs.h.  */
14528 _ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h.  */
14532 #include <$ac_header>
14533 _ACEOF
14534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14535   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14536   ac_status=$?
14537   grep -v '^ *+' conftest.er1 >conftest.err
14538   rm -f conftest.er1
14539   cat conftest.err >&5
14540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541   (exit $ac_status); } >/dev/null; then
14542   if test -s conftest.err; then
14543     ac_cpp_err=$ac_c_preproc_warn_flag
14544   else
14545     ac_cpp_err=
14546   fi
14547 else
14548   ac_cpp_err=yes
14549 fi
14550 if test -z "$ac_cpp_err"; then
14551   ac_header_preproc=yes
14552 else
14553   echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.$ac_ext >&5
14555
14556   ac_header_preproc=no
14557 fi
14558 rm -f conftest.err conftest.$ac_ext
14559 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14560 echo "${ECHO_T}$ac_header_preproc" >&6
14561
14562 # So?  What about this header?
14563 case $ac_header_compiler:$ac_header_preproc in
14564   yes:no )
14565     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14566 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14567     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14569     (
14570       cat <<\_ASBOX
14571 ## ------------------------------------ ##
14572 ## Report this to bug-autoconf@gnu.org. ##
14573 ## ------------------------------------ ##
14574 _ASBOX
14575     ) |
14576       sed "s/^/$as_me: WARNING:     /" >&2
14577     ;;
14578   no:yes )
14579     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14581     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14583     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14585     (
14586       cat <<\_ASBOX
14587 ## ------------------------------------ ##
14588 ## Report this to bug-autoconf@gnu.org. ##
14589 ## ------------------------------------ ##
14590 _ASBOX
14591     ) |
14592       sed "s/^/$as_me: WARNING:     /" >&2
14593     ;;
14594 esac
14595 echo "$as_me:$LINENO: checking for $ac_header" >&5
14596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14598   echo $ECHO_N "(cached) $ECHO_C" >&6
14599 else
14600   eval "$as_ac_Header=$ac_header_preproc"
14601 fi
14602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14604
14605 fi
14606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14607   cat >>confdefs.h <<_ACEOF
14608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14609 _ACEOF
14610
14611 fi
14612
14613 done
14614
14615   echo "$as_me:$LINENO: checking whether getenv is declared" >&5
14616 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
14617 if test "${ac_cv_have_decl_getenv+set}" = set; then
14618   echo $ECHO_N "(cached) $ECHO_C" >&6
14619 else
14620   cat >conftest.$ac_ext <<_ACEOF
14621 #line $LINENO "configure"
14622 /* confdefs.h.  */
14623 _ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h.  */
14627 $ac_includes_default
14628 int
14629 main ()
14630 {
14631 #ifndef getenv
14632   char *p = (char *) getenv;
14633 #endif
14634
14635   ;
14636   return 0;
14637 }
14638 _ACEOF
14639 rm -f conftest.$ac_objext
14640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14641   (eval $ac_compile) 2>&5
14642   ac_status=$?
14643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644   (exit $ac_status); } &&
14645          { ac_try='test -s conftest.$ac_objext'
14646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647   (eval $ac_try) 2>&5
14648   ac_status=$?
14649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650   (exit $ac_status); }; }; then
14651   ac_cv_have_decl_getenv=yes
14652 else
14653   echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14655
14656 ac_cv_have_decl_getenv=no
14657 fi
14658 rm -f conftest.$ac_objext conftest.$ac_ext
14659 fi
14660 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
14661 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
14662 if test $ac_cv_have_decl_getenv = yes; then
14663
14664 cat >>confdefs.h <<_ACEOF
14665 #define HAVE_DECL_GETENV 1
14666 _ACEOF
14667
14668
14669 else
14670   cat >>confdefs.h <<_ACEOF
14671 #define HAVE_DECL_GETENV 0
14672 _ACEOF
14673
14674
14675 fi
14676
14677
14678
14679 echo "$as_me:$LINENO: checking for working memcmp" >&5
14680 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
14681 if test "${ac_cv_func_memcmp_working+set}" = set; then
14682   echo $ECHO_N "(cached) $ECHO_C" >&6
14683 else
14684   if test "$cross_compiling" = yes; then
14685   ac_cv_func_memcmp_working=no
14686 else
14687   cat >conftest.$ac_ext <<_ACEOF
14688 #line $LINENO "configure"
14689 /* confdefs.h.  */
14690 _ACEOF
14691 cat confdefs.h >>conftest.$ac_ext
14692 cat >>conftest.$ac_ext <<_ACEOF
14693 /* end confdefs.h.  */
14694
14695 int
14696 main ()
14697 {
14698
14699   /* Some versions of memcmp are not 8-bit clean.  */
14700   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14701   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
14702     exit (1);
14703
14704   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
14705      or more and with at least one buffer not starting on a 4-byte boundary.
14706      William Lewis provided this test program.   */
14707   {
14708     char foo[21];
14709     char bar[21];
14710     int i;
14711     for (i = 0; i < 4; i++)
14712       {
14713         char *a = foo + i;
14714         char *b = bar + i;
14715         strcpy (a, "--------01111111");
14716         strcpy (b, "--------10000000");
14717         if (memcmp (a, b, 16) >= 0)
14718           exit (1);
14719       }
14720     exit (0);
14721   }
14722
14723   ;
14724   return 0;
14725 }
14726 _ACEOF
14727 rm -f conftest$ac_exeext
14728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14729   (eval $ac_link) 2>&5
14730   ac_status=$?
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734   (eval $ac_try) 2>&5
14735   ac_status=$?
14736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737   (exit $ac_status); }; }; then
14738   ac_cv_func_memcmp_working=yes
14739 else
14740   echo "$as_me: program exited with status $ac_status" >&5
14741 echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14743
14744 ( exit $ac_status )
14745 ac_cv_func_memcmp_working=no
14746 fi
14747 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14748 fi
14749 fi
14750 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
14751 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
14752 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14753
14754  if test $ac_cv_func_memcmp_working = no; then
14755
14756 cat >>confdefs.h <<\_ACEOF
14757 #define memcmp rpl_memcmp
14758 _ACEOF
14759
14760  fi
14761
14762
14763   echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
14764 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
14765 if test "${ac_cv_c_backslash_a+set}" = set; then
14766   echo $ECHO_N "(cached) $ECHO_C" >&6
14767 else
14768   cat >conftest.$ac_ext <<_ACEOF
14769 #line $LINENO "configure"
14770 /* confdefs.h.  */
14771 _ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h.  */
14775
14776 int
14777 main ()
14778 {
14779
14780 #if '\a' == 'a'
14781       syntax error;
14782 #endif
14783       char buf['\a' == 'a' ? -1 : 1];
14784       buf[0] = '\a';
14785       return buf[0] != "\a"[0];
14786
14787   ;
14788   return 0;
14789 }
14790 _ACEOF
14791 rm -f conftest.$ac_objext
14792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14793   (eval $ac_compile) 2>&5
14794   ac_status=$?
14795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796   (exit $ac_status); } &&
14797          { ac_try='test -s conftest.$ac_objext'
14798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14799   (eval $ac_try) 2>&5
14800   ac_status=$?
14801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802   (exit $ac_status); }; }; then
14803   ac_cv_c_backslash_a=yes
14804 else
14805   echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14807
14808 ac_cv_c_backslash_a=no
14809 fi
14810 rm -f conftest.$ac_objext conftest.$ac_ext
14811 fi
14812 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
14813 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
14814   if test $ac_cv_c_backslash_a = yes; then
14815
14816 cat >>confdefs.h <<\_ACEOF
14817 #define HAVE_C_BACKSLASH_A 1
14818 _ACEOF
14819
14820   fi
14821
14822
14823
14824
14825 for ac_func in isascii iswprint
14826 do
14827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14828 echo "$as_me:$LINENO: checking for $ac_func" >&5
14829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14830 if eval "test \"\${$as_ac_var+set}\" = set"; then
14831   echo $ECHO_N "(cached) $ECHO_C" >&6
14832 else
14833   cat >conftest.$ac_ext <<_ACEOF
14834 #line $LINENO "configure"
14835 /* confdefs.h.  */
14836 _ACEOF
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h.  */
14840 /* System header to define __stub macros and hopefully few prototypes,
14841     which can conflict with char $ac_func (); below.
14842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14843     <limits.h> exists even on freestanding compilers.  */
14844 #ifdef __STDC__
14845 # include <limits.h>
14846 #else
14847 # include <assert.h>
14848 #endif
14849 /* Override any gcc2 internal prototype to avoid an error.  */
14850 #ifdef __cplusplus
14851 extern "C"
14852 {
14853 #endif
14854 /* We use char because int might match the return type of a gcc2
14855    builtin and then its argument prototype would still apply.  */
14856 char $ac_func ();
14857 /* The GNU C library defines this for functions which it implements
14858     to always fail with ENOSYS.  Some functions are actually named
14859     something starting with __ and the normal name is an alias.  */
14860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14861 choke me
14862 #else
14863 char (*f) () = $ac_func;
14864 #endif
14865 #ifdef __cplusplus
14866 }
14867 #endif
14868
14869 int
14870 main ()
14871 {
14872 return f != $ac_func;
14873   ;
14874   return 0;
14875 }
14876 _ACEOF
14877 rm -f conftest.$ac_objext conftest$ac_exeext
14878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14879   (eval $ac_link) 2>&5
14880   ac_status=$?
14881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882   (exit $ac_status); } &&
14883          { ac_try='test -s conftest$ac_exeext'
14884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885   (eval $ac_try) 2>&5
14886   ac_status=$?
14887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888   (exit $ac_status); }; }; then
14889   eval "$as_ac_var=yes"
14890 else
14891   echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14893
14894 eval "$as_ac_var=no"
14895 fi
14896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14897 fi
14898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14900 if test `eval echo '${'$as_ac_var'}'` = yes; then
14901   cat >>confdefs.h <<_ACEOF
14902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14903 _ACEOF
14904
14905 fi
14906 done
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916 for ac_header in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
14917 do
14918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14920   echo "$as_me:$LINENO: checking for $ac_header" >&5
14921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14923   echo $ECHO_N "(cached) $ECHO_C" >&6
14924 fi
14925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14927 else
14928   # Is the header compilable?
14929 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14931 cat >conftest.$ac_ext <<_ACEOF
14932 #line $LINENO "configure"
14933 /* confdefs.h.  */
14934 _ACEOF
14935 cat confdefs.h >>conftest.$ac_ext
14936 cat >>conftest.$ac_ext <<_ACEOF
14937 /* end confdefs.h.  */
14938 $ac_includes_default
14939 #include <$ac_header>
14940 _ACEOF
14941 rm -f conftest.$ac_objext
14942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14943   (eval $ac_compile) 2>&5
14944   ac_status=$?
14945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946   (exit $ac_status); } &&
14947          { ac_try='test -s conftest.$ac_objext'
14948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949   (eval $ac_try) 2>&5
14950   ac_status=$?
14951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952   (exit $ac_status); }; }; then
14953   ac_header_compiler=yes
14954 else
14955   echo "$as_me: failed program was:" >&5
14956 sed 's/^/| /' conftest.$ac_ext >&5
14957
14958 ac_header_compiler=no
14959 fi
14960 rm -f conftest.$ac_objext conftest.$ac_ext
14961 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14962 echo "${ECHO_T}$ac_header_compiler" >&6
14963
14964 # Is the header present?
14965 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14967 cat >conftest.$ac_ext <<_ACEOF
14968 #line $LINENO "configure"
14969 /* confdefs.h.  */
14970 _ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h.  */
14974 #include <$ac_header>
14975 _ACEOF
14976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14977   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14978   ac_status=$?
14979   grep -v '^ *+' conftest.er1 >conftest.err
14980   rm -f conftest.er1
14981   cat conftest.err >&5
14982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983   (exit $ac_status); } >/dev/null; then
14984   if test -s conftest.err; then
14985     ac_cpp_err=$ac_c_preproc_warn_flag
14986   else
14987     ac_cpp_err=
14988   fi
14989 else
14990   ac_cpp_err=yes
14991 fi
14992 if test -z "$ac_cpp_err"; then
14993   ac_header_preproc=yes
14994 else
14995   echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14997
14998   ac_header_preproc=no
14999 fi
15000 rm -f conftest.err conftest.$ac_ext
15001 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15002 echo "${ECHO_T}$ac_header_preproc" >&6
15003
15004 # So?  What about this header?
15005 case $ac_header_compiler:$ac_header_preproc in
15006   yes:no )
15007     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15008 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15009     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15011     (
15012       cat <<\_ASBOX
15013 ## ------------------------------------ ##
15014 ## Report this to bug-autoconf@gnu.org. ##
15015 ## ------------------------------------ ##
15016 _ASBOX
15017     ) |
15018       sed "s/^/$as_me: WARNING:     /" >&2
15019     ;;
15020   no:yes )
15021     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15023     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15025     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15027     (
15028       cat <<\_ASBOX
15029 ## ------------------------------------ ##
15030 ## Report this to bug-autoconf@gnu.org. ##
15031 ## ------------------------------------ ##
15032 _ASBOX
15033     ) |
15034       sed "s/^/$as_me: WARNING:     /" >&2
15035     ;;
15036 esac
15037 echo "$as_me:$LINENO: checking for $ac_header" >&5
15038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15040   echo $ECHO_N "(cached) $ECHO_C" >&6
15041 else
15042   eval "$as_ac_Header=$ac_header_preproc"
15043 fi
15044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15046
15047 fi
15048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15049   cat >>confdefs.h <<_ACEOF
15050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15051 _ACEOF
15052
15053 fi
15054
15055 done
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068 for ac_header in string.h utmp.h utmpx.h sys/param.h
15069 do
15070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15072   echo "$as_me:$LINENO: checking for $ac_header" >&5
15073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15075   echo $ECHO_N "(cached) $ECHO_C" >&6
15076 fi
15077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15079 else
15080   # Is the header compilable?
15081 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15083 cat >conftest.$ac_ext <<_ACEOF
15084 #line $LINENO "configure"
15085 /* confdefs.h.  */
15086 _ACEOF
15087 cat confdefs.h >>conftest.$ac_ext
15088 cat >>conftest.$ac_ext <<_ACEOF
15089 /* end confdefs.h.  */
15090 $ac_includes_default
15091 #include <$ac_header>
15092 _ACEOF
15093 rm -f conftest.$ac_objext
15094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15095   (eval $ac_compile) 2>&5
15096   ac_status=$?
15097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098   (exit $ac_status); } &&
15099          { ac_try='test -s conftest.$ac_objext'
15100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101   (eval $ac_try) 2>&5
15102   ac_status=$?
15103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104   (exit $ac_status); }; }; then
15105   ac_header_compiler=yes
15106 else
15107   echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15109
15110 ac_header_compiler=no
15111 fi
15112 rm -f conftest.$ac_objext conftest.$ac_ext
15113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15114 echo "${ECHO_T}$ac_header_compiler" >&6
15115
15116 # Is the header present?
15117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15119 cat >conftest.$ac_ext <<_ACEOF
15120 #line $LINENO "configure"
15121 /* confdefs.h.  */
15122 _ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h.  */
15126 #include <$ac_header>
15127 _ACEOF
15128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15129   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15130   ac_status=$?
15131   grep -v '^ *+' conftest.er1 >conftest.err
15132   rm -f conftest.er1
15133   cat conftest.err >&5
15134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135   (exit $ac_status); } >/dev/null; then
15136   if test -s conftest.err; then
15137     ac_cpp_err=$ac_c_preproc_warn_flag
15138   else
15139     ac_cpp_err=
15140   fi
15141 else
15142   ac_cpp_err=yes
15143 fi
15144 if test -z "$ac_cpp_err"; then
15145   ac_header_preproc=yes
15146 else
15147   echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15149
15150   ac_header_preproc=no
15151 fi
15152 rm -f conftest.err conftest.$ac_ext
15153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15154 echo "${ECHO_T}$ac_header_preproc" >&6
15155
15156 # So?  What about this header?
15157 case $ac_header_compiler:$ac_header_preproc in
15158   yes:no )
15159     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15163     (
15164       cat <<\_ASBOX
15165 ## ------------------------------------ ##
15166 ## Report this to bug-autoconf@gnu.org. ##
15167 ## ------------------------------------ ##
15168 _ASBOX
15169     ) |
15170       sed "s/^/$as_me: WARNING:     /" >&2
15171     ;;
15172   no:yes )
15173     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15175     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15179     (
15180       cat <<\_ASBOX
15181 ## ------------------------------------ ##
15182 ## Report this to bug-autoconf@gnu.org. ##
15183 ## ------------------------------------ ##
15184 _ASBOX
15185     ) |
15186       sed "s/^/$as_me: WARNING:     /" >&2
15187     ;;
15188 esac
15189 echo "$as_me:$LINENO: checking for $ac_header" >&5
15190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15192   echo $ECHO_N "(cached) $ECHO_C" >&6
15193 else
15194   eval "$as_ac_Header=$ac_header_preproc"
15195 fi
15196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15198
15199 fi
15200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15201   cat >>confdefs.h <<_ACEOF
15202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15203 _ACEOF
15204
15205 fi
15206
15207 done
15208
15209
15210 for ac_func in utmpname
15211 do
15212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15213 echo "$as_me:$LINENO: checking for $ac_func" >&5
15214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15215 if eval "test \"\${$as_ac_var+set}\" = set"; then
15216   echo $ECHO_N "(cached) $ECHO_C" >&6
15217 else
15218   cat >conftest.$ac_ext <<_ACEOF
15219 #line $LINENO "configure"
15220 /* confdefs.h.  */
15221 _ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h.  */
15225 /* System header to define __stub macros and hopefully few prototypes,
15226     which can conflict with char $ac_func (); below.
15227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15228     <limits.h> exists even on freestanding compilers.  */
15229 #ifdef __STDC__
15230 # include <limits.h>
15231 #else
15232 # include <assert.h>
15233 #endif
15234 /* Override any gcc2 internal prototype to avoid an error.  */
15235 #ifdef __cplusplus
15236 extern "C"
15237 {
15238 #endif
15239 /* We use char because int might match the return type of a gcc2
15240    builtin and then its argument prototype would still apply.  */
15241 char $ac_func ();
15242 /* The GNU C library defines this for functions which it implements
15243     to always fail with ENOSYS.  Some functions are actually named
15244     something starting with __ and the normal name is an alias.  */
15245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15246 choke me
15247 #else
15248 char (*f) () = $ac_func;
15249 #endif
15250 #ifdef __cplusplus
15251 }
15252 #endif
15253
15254 int
15255 main ()
15256 {
15257 return f != $ac_func;
15258   ;
15259   return 0;
15260 }
15261 _ACEOF
15262 rm -f conftest.$ac_objext conftest$ac_exeext
15263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15264   (eval $ac_link) 2>&5
15265   ac_status=$?
15266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267   (exit $ac_status); } &&
15268          { ac_try='test -s conftest$ac_exeext'
15269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270   (eval $ac_try) 2>&5
15271   ac_status=$?
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); }; }; then
15274   eval "$as_ac_var=yes"
15275 else
15276   echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15278
15279 eval "$as_ac_var=no"
15280 fi
15281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15282 fi
15283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15284 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15285 if test `eval echo '${'$as_ac_var'}'` = yes; then
15286   cat >>confdefs.h <<_ACEOF
15287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15288 _ACEOF
15289
15290 fi
15291 done
15292
15293
15294 for ac_func in utmpxname
15295 do
15296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15297 echo "$as_me:$LINENO: checking for $ac_func" >&5
15298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15299 if eval "test \"\${$as_ac_var+set}\" = set"; then
15300   echo $ECHO_N "(cached) $ECHO_C" >&6
15301 else
15302   cat >conftest.$ac_ext <<_ACEOF
15303 #line $LINENO "configure"
15304 /* confdefs.h.  */
15305 _ACEOF
15306 cat confdefs.h >>conftest.$ac_ext
15307 cat >>conftest.$ac_ext <<_ACEOF
15308 /* end confdefs.h.  */
15309 /* System header to define __stub macros and hopefully few prototypes,
15310     which can conflict with char $ac_func (); below.
15311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15312     <limits.h> exists even on freestanding compilers.  */
15313 #ifdef __STDC__
15314 # include <limits.h>
15315 #else
15316 # include <assert.h>
15317 #endif
15318 /* Override any gcc2 internal prototype to avoid an error.  */
15319 #ifdef __cplusplus
15320 extern "C"
15321 {
15322 #endif
15323 /* We use char because int might match the return type of a gcc2
15324    builtin and then its argument prototype would still apply.  */
15325 char $ac_func ();
15326 /* The GNU C library defines this for functions which it implements
15327     to always fail with ENOSYS.  Some functions are actually named
15328     something starting with __ and the normal name is an alias.  */
15329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15330 choke me
15331 #else
15332 char (*f) () = $ac_func;
15333 #endif
15334 #ifdef __cplusplus
15335 }
15336 #endif
15337
15338 int
15339 main ()
15340 {
15341 return f != $ac_func;
15342   ;
15343   return 0;
15344 }
15345 _ACEOF
15346 rm -f conftest.$ac_objext conftest$ac_exeext
15347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15348   (eval $ac_link) 2>&5
15349   ac_status=$?
15350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351   (exit $ac_status); } &&
15352          { ac_try='test -s conftest$ac_exeext'
15353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354   (eval $ac_try) 2>&5
15355   ac_status=$?
15356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357   (exit $ac_status); }; }; then
15358   eval "$as_ac_var=yes"
15359 else
15360   echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15362
15363 eval "$as_ac_var=no"
15364 fi
15365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15366 fi
15367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15369 if test `eval echo '${'$as_ac_var'}'` = yes; then
15370   cat >>confdefs.h <<_ACEOF
15371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15372 _ACEOF
15373
15374 fi
15375 done
15376
15377
15378
15379   if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
15380     utmp_includes="\
15381 $ac_includes_default
15382 #ifdef HAVE_UTMPX_H
15383 # include <utmpx.h>
15384 #endif
15385 #ifdef HAVE_UTMP_H
15386 # include <utmp.h>
15387 #endif
15388 "
15389     echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
15390 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6
15391 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
15392   echo $ECHO_N "(cached) $ECHO_C" >&6
15393 else
15394   cat >conftest.$ac_ext <<_ACEOF
15395 #line $LINENO "configure"
15396 /* confdefs.h.  */
15397 _ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h.  */
15401 $utmp_includes
15402
15403 int
15404 main ()
15405 {
15406 static struct utmpx ac_aggr;
15407 if (ac_aggr.ut_user)
15408 return 0;
15409   ;
15410   return 0;
15411 }
15412 _ACEOF
15413 rm -f conftest.$ac_objext
15414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15415   (eval $ac_compile) 2>&5
15416   ac_status=$?
15417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418   (exit $ac_status); } &&
15419          { ac_try='test -s conftest.$ac_objext'
15420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15421   (eval $ac_try) 2>&5
15422   ac_status=$?
15423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424   (exit $ac_status); }; }; then
15425   ac_cv_member_struct_utmpx_ut_user=yes
15426 else
15427   echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15429
15430 cat >conftest.$ac_ext <<_ACEOF
15431 #line $LINENO "configure"
15432 /* confdefs.h.  */
15433 _ACEOF
15434 cat confdefs.h >>conftest.$ac_ext
15435 cat >>conftest.$ac_ext <<_ACEOF
15436 /* end confdefs.h.  */
15437 $utmp_includes
15438
15439 int
15440 main ()
15441 {
15442 static struct utmpx ac_aggr;
15443 if (sizeof ac_aggr.ut_user)
15444 return 0;
15445   ;
15446   return 0;
15447 }
15448 _ACEOF
15449 rm -f conftest.$ac_objext
15450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15451   (eval $ac_compile) 2>&5
15452   ac_status=$?
15453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454   (exit $ac_status); } &&
15455          { ac_try='test -s conftest.$ac_objext'
15456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15457   (eval $ac_try) 2>&5
15458   ac_status=$?
15459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460   (exit $ac_status); }; }; then
15461   ac_cv_member_struct_utmpx_ut_user=yes
15462 else
15463   echo "$as_me: failed program was:" >&5
15464 sed 's/^/| /' conftest.$ac_ext >&5
15465
15466 ac_cv_member_struct_utmpx_ut_user=no
15467 fi
15468 rm -f conftest.$ac_objext conftest.$ac_ext
15469 fi
15470 rm -f conftest.$ac_objext conftest.$ac_ext
15471 fi
15472 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
15473 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6
15474 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
15475
15476 cat >>confdefs.h <<_ACEOF
15477 #define HAVE_STRUCT_UTMPX_UT_USER 1
15478 _ACEOF
15479
15480
15481 fi
15482
15483     echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
15484 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6
15485 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
15486   echo $ECHO_N "(cached) $ECHO_C" >&6
15487 else
15488   cat >conftest.$ac_ext <<_ACEOF
15489 #line $LINENO "configure"
15490 /* confdefs.h.  */
15491 _ACEOF
15492 cat confdefs.h >>conftest.$ac_ext
15493 cat >>conftest.$ac_ext <<_ACEOF
15494 /* end confdefs.h.  */
15495 $utmp_includes
15496
15497 int
15498 main ()
15499 {
15500 static struct utmp ac_aggr;
15501 if (ac_aggr.ut_user)
15502 return 0;
15503   ;
15504   return 0;
15505 }
15506 _ACEOF
15507 rm -f conftest.$ac_objext
15508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15509   (eval $ac_compile) 2>&5
15510   ac_status=$?
15511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512   (exit $ac_status); } &&
15513          { ac_try='test -s conftest.$ac_objext'
15514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515   (eval $ac_try) 2>&5
15516   ac_status=$?
15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518   (exit $ac_status); }; }; then
15519   ac_cv_member_struct_utmp_ut_user=yes
15520 else
15521   echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15523
15524 cat >conftest.$ac_ext <<_ACEOF
15525 #line $LINENO "configure"
15526 /* confdefs.h.  */
15527 _ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h.  */
15531 $utmp_includes
15532
15533 int
15534 main ()
15535 {
15536 static struct utmp ac_aggr;
15537 if (sizeof ac_aggr.ut_user)
15538 return 0;
15539   ;
15540   return 0;
15541 }
15542 _ACEOF
15543 rm -f conftest.$ac_objext
15544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15545   (eval $ac_compile) 2>&5
15546   ac_status=$?
15547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548   (exit $ac_status); } &&
15549          { ac_try='test -s conftest.$ac_objext'
15550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15551   (eval $ac_try) 2>&5
15552   ac_status=$?
15553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554   (exit $ac_status); }; }; then
15555   ac_cv_member_struct_utmp_ut_user=yes
15556 else
15557   echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15559
15560 ac_cv_member_struct_utmp_ut_user=no
15561 fi
15562 rm -f conftest.$ac_objext conftest.$ac_ext
15563 fi
15564 rm -f conftest.$ac_objext conftest.$ac_ext
15565 fi
15566 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
15567 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6
15568 if test $ac_cv_member_struct_utmp_ut_user = yes; then
15569
15570 cat >>confdefs.h <<_ACEOF
15571 #define HAVE_STRUCT_UTMP_UT_USER 1
15572 _ACEOF
15573
15574
15575 fi
15576
15577     echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
15578 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6
15579 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
15580   echo $ECHO_N "(cached) $ECHO_C" >&6
15581 else
15582   cat >conftest.$ac_ext <<_ACEOF
15583 #line $LINENO "configure"
15584 /* confdefs.h.  */
15585 _ACEOF
15586 cat confdefs.h >>conftest.$ac_ext
15587 cat >>conftest.$ac_ext <<_ACEOF
15588 /* end confdefs.h.  */
15589 $utmp_includes
15590
15591 int
15592 main ()
15593 {
15594 static struct utmpx ac_aggr;
15595 if (ac_aggr.ut_name)
15596 return 0;
15597   ;
15598   return 0;
15599 }
15600 _ACEOF
15601 rm -f conftest.$ac_objext
15602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15603   (eval $ac_compile) 2>&5
15604   ac_status=$?
15605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606   (exit $ac_status); } &&
15607          { ac_try='test -s conftest.$ac_objext'
15608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609   (eval $ac_try) 2>&5
15610   ac_status=$?
15611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612   (exit $ac_status); }; }; then
15613   ac_cv_member_struct_utmpx_ut_name=yes
15614 else
15615   echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15617
15618 cat >conftest.$ac_ext <<_ACEOF
15619 #line $LINENO "configure"
15620 /* confdefs.h.  */
15621 _ACEOF
15622 cat confdefs.h >>conftest.$ac_ext
15623 cat >>conftest.$ac_ext <<_ACEOF
15624 /* end confdefs.h.  */
15625 $utmp_includes
15626
15627 int
15628 main ()
15629 {
15630 static struct utmpx ac_aggr;
15631 if (sizeof ac_aggr.ut_name)
15632 return 0;
15633   ;
15634   return 0;
15635 }
15636 _ACEOF
15637 rm -f conftest.$ac_objext
15638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15639   (eval $ac_compile) 2>&5
15640   ac_status=$?
15641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642   (exit $ac_status); } &&
15643          { ac_try='test -s conftest.$ac_objext'
15644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645   (eval $ac_try) 2>&5
15646   ac_status=$?
15647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648   (exit $ac_status); }; }; then
15649   ac_cv_member_struct_utmpx_ut_name=yes
15650 else
15651   echo "$as_me: failed program was:" >&5
15652 sed 's/^/| /' conftest.$ac_ext >&5
15653
15654 ac_cv_member_struct_utmpx_ut_name=no
15655 fi
15656 rm -f conftest.$ac_objext conftest.$ac_ext
15657 fi
15658 rm -f conftest.$ac_objext conftest.$ac_ext
15659 fi
15660 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
15661 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6
15662 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
15663
15664 cat >>confdefs.h <<_ACEOF
15665 #define HAVE_STRUCT_UTMPX_UT_NAME 1
15666 _ACEOF
15667
15668
15669 fi
15670
15671     echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
15672 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6
15673 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
15674   echo $ECHO_N "(cached) $ECHO_C" >&6
15675 else
15676   cat >conftest.$ac_ext <<_ACEOF
15677 #line $LINENO "configure"
15678 /* confdefs.h.  */
15679 _ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h.  */
15683 $utmp_includes
15684
15685 int
15686 main ()
15687 {
15688 static struct utmp ac_aggr;
15689 if (ac_aggr.ut_name)
15690 return 0;
15691   ;
15692   return 0;
15693 }
15694 _ACEOF
15695 rm -f conftest.$ac_objext
15696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15697   (eval $ac_compile) 2>&5
15698   ac_status=$?
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); } &&
15701          { ac_try='test -s conftest.$ac_objext'
15702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703   (eval $ac_try) 2>&5
15704   ac_status=$?
15705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706   (exit $ac_status); }; }; then
15707   ac_cv_member_struct_utmp_ut_name=yes
15708 else
15709   echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15711
15712 cat >conftest.$ac_ext <<_ACEOF
15713 #line $LINENO "configure"
15714 /* confdefs.h.  */
15715 _ACEOF
15716 cat confdefs.h >>conftest.$ac_ext
15717 cat >>conftest.$ac_ext <<_ACEOF
15718 /* end confdefs.h.  */
15719 $utmp_includes
15720
15721 int
15722 main ()
15723 {
15724 static struct utmp ac_aggr;
15725 if (sizeof ac_aggr.ut_name)
15726 return 0;
15727   ;
15728   return 0;
15729 }
15730 _ACEOF
15731 rm -f conftest.$ac_objext
15732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15733   (eval $ac_compile) 2>&5
15734   ac_status=$?
15735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736   (exit $ac_status); } &&
15737          { ac_try='test -s conftest.$ac_objext'
15738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739   (eval $ac_try) 2>&5
15740   ac_status=$?
15741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742   (exit $ac_status); }; }; then
15743   ac_cv_member_struct_utmp_ut_name=yes
15744 else
15745   echo "$as_me: failed program was:" >&5
15746 sed 's/^/| /' conftest.$ac_ext >&5
15747
15748 ac_cv_member_struct_utmp_ut_name=no
15749 fi
15750 rm -f conftest.$ac_objext conftest.$ac_ext
15751 fi
15752 rm -f conftest.$ac_objext conftest.$ac_ext
15753 fi
15754 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
15755 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6
15756 if test $ac_cv_member_struct_utmp_ut_name = yes; then
15757
15758 cat >>confdefs.h <<_ACEOF
15759 #define HAVE_STRUCT_UTMP_UT_NAME 1
15760 _ACEOF
15761
15762
15763 fi
15764
15765     echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
15766 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6
15767 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
15768   echo $ECHO_N "(cached) $ECHO_C" >&6
15769 else
15770   cat >conftest.$ac_ext <<_ACEOF
15771 #line $LINENO "configure"
15772 /* confdefs.h.  */
15773 _ACEOF
15774 cat confdefs.h >>conftest.$ac_ext
15775 cat >>conftest.$ac_ext <<_ACEOF
15776 /* end confdefs.h.  */
15777 $utmp_includes
15778
15779 int
15780 main ()
15781 {
15782 static struct utmpx ac_aggr;
15783 if (ac_aggr.ut_type)
15784 return 0;
15785   ;
15786   return 0;
15787 }
15788 _ACEOF
15789 rm -f conftest.$ac_objext
15790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15791   (eval $ac_compile) 2>&5
15792   ac_status=$?
15793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794   (exit $ac_status); } &&
15795          { ac_try='test -s conftest.$ac_objext'
15796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15797   (eval $ac_try) 2>&5
15798   ac_status=$?
15799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800   (exit $ac_status); }; }; then
15801   ac_cv_member_struct_utmpx_ut_type=yes
15802 else
15803   echo "$as_me: failed program was:" >&5
15804 sed 's/^/| /' conftest.$ac_ext >&5
15805
15806 cat >conftest.$ac_ext <<_ACEOF
15807 #line $LINENO "configure"
15808 /* confdefs.h.  */
15809 _ACEOF
15810 cat confdefs.h >>conftest.$ac_ext
15811 cat >>conftest.$ac_ext <<_ACEOF
15812 /* end confdefs.h.  */
15813 $utmp_includes
15814
15815 int
15816 main ()
15817 {
15818 static struct utmpx ac_aggr;
15819 if (sizeof ac_aggr.ut_type)
15820 return 0;
15821   ;
15822   return 0;
15823 }
15824 _ACEOF
15825 rm -f conftest.$ac_objext
15826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15827   (eval $ac_compile) 2>&5
15828   ac_status=$?
15829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830   (exit $ac_status); } &&
15831          { ac_try='test -s conftest.$ac_objext'
15832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833   (eval $ac_try) 2>&5
15834   ac_status=$?
15835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836   (exit $ac_status); }; }; then
15837   ac_cv_member_struct_utmpx_ut_type=yes
15838 else
15839   echo "$as_me: failed program was:" >&5
15840 sed 's/^/| /' conftest.$ac_ext >&5
15841
15842 ac_cv_member_struct_utmpx_ut_type=no
15843 fi
15844 rm -f conftest.$ac_objext conftest.$ac_ext
15845 fi
15846 rm -f conftest.$ac_objext conftest.$ac_ext
15847 fi
15848 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
15849 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6
15850 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
15851
15852 cat >>confdefs.h <<_ACEOF
15853 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
15854 _ACEOF
15855
15856
15857 fi
15858
15859     echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
15860 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6
15861 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
15862   echo $ECHO_N "(cached) $ECHO_C" >&6
15863 else
15864   cat >conftest.$ac_ext <<_ACEOF
15865 #line $LINENO "configure"
15866 /* confdefs.h.  */
15867 _ACEOF
15868 cat confdefs.h >>conftest.$ac_ext
15869 cat >>conftest.$ac_ext <<_ACEOF
15870 /* end confdefs.h.  */
15871 $utmp_includes
15872
15873 int
15874 main ()
15875 {
15876 static struct utmp ac_aggr;
15877 if (ac_aggr.ut_type)
15878 return 0;
15879   ;
15880   return 0;
15881 }
15882 _ACEOF
15883 rm -f conftest.$ac_objext
15884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15885   (eval $ac_compile) 2>&5
15886   ac_status=$?
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); } &&
15889          { ac_try='test -s conftest.$ac_objext'
15890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891   (eval $ac_try) 2>&5
15892   ac_status=$?
15893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894   (exit $ac_status); }; }; then
15895   ac_cv_member_struct_utmp_ut_type=yes
15896 else
15897   echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15899
15900 cat >conftest.$ac_ext <<_ACEOF
15901 #line $LINENO "configure"
15902 /* confdefs.h.  */
15903 _ACEOF
15904 cat confdefs.h >>conftest.$ac_ext
15905 cat >>conftest.$ac_ext <<_ACEOF
15906 /* end confdefs.h.  */
15907 $utmp_includes
15908
15909 int
15910 main ()
15911 {
15912 static struct utmp ac_aggr;
15913 if (sizeof ac_aggr.ut_type)
15914 return 0;
15915   ;
15916   return 0;
15917 }
15918 _ACEOF
15919 rm -f conftest.$ac_objext
15920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15921   (eval $ac_compile) 2>&5
15922   ac_status=$?
15923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924   (exit $ac_status); } &&
15925          { ac_try='test -s conftest.$ac_objext'
15926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15927   (eval $ac_try) 2>&5
15928   ac_status=$?
15929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930   (exit $ac_status); }; }; then
15931   ac_cv_member_struct_utmp_ut_type=yes
15932 else
15933   echo "$as_me: failed program was:" >&5
15934 sed 's/^/| /' conftest.$ac_ext >&5
15935
15936 ac_cv_member_struct_utmp_ut_type=no
15937 fi
15938 rm -f conftest.$ac_objext conftest.$ac_ext
15939 fi
15940 rm -f conftest.$ac_objext conftest.$ac_ext
15941 fi
15942 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
15943 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6
15944 if test $ac_cv_member_struct_utmp_ut_type = yes; then
15945
15946 cat >>confdefs.h <<_ACEOF
15947 #define HAVE_STRUCT_UTMP_UT_TYPE 1
15948 _ACEOF
15949
15950
15951 fi
15952
15953     echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
15954 echo $ECHO_N "checking for struct utmpx.ut_pid... $ECHO_C" >&6
15955 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
15956   echo $ECHO_N "(cached) $ECHO_C" >&6
15957 else
15958   cat >conftest.$ac_ext <<_ACEOF
15959 #line $LINENO "configure"
15960 /* confdefs.h.  */
15961 _ACEOF
15962 cat confdefs.h >>conftest.$ac_ext
15963 cat >>conftest.$ac_ext <<_ACEOF
15964 /* end confdefs.h.  */
15965 $utmp_includes
15966
15967 int
15968 main ()
15969 {
15970 static struct utmpx ac_aggr;
15971 if (ac_aggr.ut_pid)
15972 return 0;
15973   ;
15974   return 0;
15975 }
15976 _ACEOF
15977 rm -f conftest.$ac_objext
15978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15979   (eval $ac_compile) 2>&5
15980   ac_status=$?
15981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982   (exit $ac_status); } &&
15983          { ac_try='test -s conftest.$ac_objext'
15984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985   (eval $ac_try) 2>&5
15986   ac_status=$?
15987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988   (exit $ac_status); }; }; then
15989   ac_cv_member_struct_utmpx_ut_pid=yes
15990 else
15991   echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.$ac_ext >&5
15993
15994 cat >conftest.$ac_ext <<_ACEOF
15995 #line $LINENO "configure"
15996 /* confdefs.h.  */
15997 _ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h.  */
16001 $utmp_includes
16002
16003 int
16004 main ()
16005 {
16006 static struct utmpx ac_aggr;
16007 if (sizeof ac_aggr.ut_pid)
16008 return 0;
16009   ;
16010   return 0;
16011 }
16012 _ACEOF
16013 rm -f conftest.$ac_objext
16014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16015   (eval $ac_compile) 2>&5
16016   ac_status=$?
16017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018   (exit $ac_status); } &&
16019          { ac_try='test -s conftest.$ac_objext'
16020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16021   (eval $ac_try) 2>&5
16022   ac_status=$?
16023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024   (exit $ac_status); }; }; then
16025   ac_cv_member_struct_utmpx_ut_pid=yes
16026 else
16027   echo "$as_me: failed program was:" >&5
16028 sed 's/^/| /' conftest.$ac_ext >&5
16029
16030 ac_cv_member_struct_utmpx_ut_pid=no
16031 fi
16032 rm -f conftest.$ac_objext conftest.$ac_ext
16033 fi
16034 rm -f conftest.$ac_objext conftest.$ac_ext
16035 fi
16036 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
16037 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_pid" >&6
16038 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
16039
16040 cat >>confdefs.h <<_ACEOF
16041 #define HAVE_STRUCT_UTMPX_UT_PID 1
16042 _ACEOF
16043
16044
16045 fi
16046
16047     echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
16048 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6
16049 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
16050   echo $ECHO_N "(cached) $ECHO_C" >&6
16051 else
16052   cat >conftest.$ac_ext <<_ACEOF
16053 #line $LINENO "configure"
16054 /* confdefs.h.  */
16055 _ACEOF
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h.  */
16059 $utmp_includes
16060
16061 int
16062 main ()
16063 {
16064 static struct utmp ac_aggr;
16065 if (ac_aggr.ut_pid)
16066 return 0;
16067   ;
16068   return 0;
16069 }
16070 _ACEOF
16071 rm -f conftest.$ac_objext
16072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16073   (eval $ac_compile) 2>&5
16074   ac_status=$?
16075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076   (exit $ac_status); } &&
16077          { ac_try='test -s conftest.$ac_objext'
16078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079   (eval $ac_try) 2>&5
16080   ac_status=$?
16081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082   (exit $ac_status); }; }; then
16083   ac_cv_member_struct_utmp_ut_pid=yes
16084 else
16085   echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16087
16088 cat >conftest.$ac_ext <<_ACEOF
16089 #line $LINENO "configure"
16090 /* confdefs.h.  */
16091 _ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h.  */
16095 $utmp_includes
16096
16097 int
16098 main ()
16099 {
16100 static struct utmp ac_aggr;
16101 if (sizeof ac_aggr.ut_pid)
16102 return 0;
16103   ;
16104   return 0;
16105 }
16106 _ACEOF
16107 rm -f conftest.$ac_objext
16108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16109   (eval $ac_compile) 2>&5
16110   ac_status=$?
16111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112   (exit $ac_status); } &&
16113          { ac_try='test -s conftest.$ac_objext'
16114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115   (eval $ac_try) 2>&5
16116   ac_status=$?
16117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118   (exit $ac_status); }; }; then
16119   ac_cv_member_struct_utmp_ut_pid=yes
16120 else
16121   echo "$as_me: failed program was:" >&5
16122 sed 's/^/| /' conftest.$ac_ext >&5
16123
16124 ac_cv_member_struct_utmp_ut_pid=no
16125 fi
16126 rm -f conftest.$ac_objext conftest.$ac_ext
16127 fi
16128 rm -f conftest.$ac_objext conftest.$ac_ext
16129 fi
16130 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
16131 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6
16132 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
16133
16134 cat >>confdefs.h <<_ACEOF
16135 #define HAVE_STRUCT_UTMP_UT_PID 1
16136 _ACEOF
16137
16138
16139 fi
16140
16141     echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
16142 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6
16143 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
16144   echo $ECHO_N "(cached) $ECHO_C" >&6
16145 else
16146   cat >conftest.$ac_ext <<_ACEOF
16147 #line $LINENO "configure"
16148 /* confdefs.h.  */
16149 _ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h.  */
16153 $utmp_includes
16154
16155 int
16156 main ()
16157 {
16158 static struct utmpx ac_aggr;
16159 if (ac_aggr.ut_id)
16160 return 0;
16161   ;
16162   return 0;
16163 }
16164 _ACEOF
16165 rm -f conftest.$ac_objext
16166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16167   (eval $ac_compile) 2>&5
16168   ac_status=$?
16169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170   (exit $ac_status); } &&
16171          { ac_try='test -s conftest.$ac_objext'
16172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173   (eval $ac_try) 2>&5
16174   ac_status=$?
16175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176   (exit $ac_status); }; }; then
16177   ac_cv_member_struct_utmpx_ut_id=yes
16178 else
16179   echo "$as_me: failed program was:" >&5
16180 sed 's/^/| /' conftest.$ac_ext >&5
16181
16182 cat >conftest.$ac_ext <<_ACEOF
16183 #line $LINENO "configure"
16184 /* confdefs.h.  */
16185 _ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h.  */
16189 $utmp_includes
16190
16191 int
16192 main ()
16193 {
16194 static struct utmpx ac_aggr;
16195 if (sizeof ac_aggr.ut_id)
16196 return 0;
16197   ;
16198   return 0;
16199 }
16200 _ACEOF
16201 rm -f conftest.$ac_objext
16202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16203   (eval $ac_compile) 2>&5
16204   ac_status=$?
16205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206   (exit $ac_status); } &&
16207          { ac_try='test -s conftest.$ac_objext'
16208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209   (eval $ac_try) 2>&5
16210   ac_status=$?
16211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212   (exit $ac_status); }; }; then
16213   ac_cv_member_struct_utmpx_ut_id=yes
16214 else
16215   echo "$as_me: failed program was:" >&5
16216 sed 's/^/| /' conftest.$ac_ext >&5
16217
16218 ac_cv_member_struct_utmpx_ut_id=no
16219 fi
16220 rm -f conftest.$ac_objext conftest.$ac_ext
16221 fi
16222 rm -f conftest.$ac_objext conftest.$ac_ext
16223 fi
16224 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
16225 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6
16226 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
16227
16228 cat >>confdefs.h <<_ACEOF
16229 #define HAVE_STRUCT_UTMPX_UT_ID 1
16230 _ACEOF
16231
16232
16233 fi
16234
16235     echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
16236 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6
16237 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
16238   echo $ECHO_N "(cached) $ECHO_C" >&6
16239 else
16240   cat >conftest.$ac_ext <<_ACEOF
16241 #line $LINENO "configure"
16242 /* confdefs.h.  */
16243 _ACEOF
16244 cat confdefs.h >>conftest.$ac_ext
16245 cat >>conftest.$ac_ext <<_ACEOF
16246 /* end confdefs.h.  */
16247 $utmp_includes
16248
16249 int
16250 main ()
16251 {
16252 static struct utmp ac_aggr;
16253 if (ac_aggr.ut_id)
16254 return 0;
16255   ;
16256   return 0;
16257 }
16258 _ACEOF
16259 rm -f conftest.$ac_objext
16260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16261   (eval $ac_compile) 2>&5
16262   ac_status=$?
16263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264   (exit $ac_status); } &&
16265          { ac_try='test -s conftest.$ac_objext'
16266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267   (eval $ac_try) 2>&5
16268   ac_status=$?
16269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270   (exit $ac_status); }; }; then
16271   ac_cv_member_struct_utmp_ut_id=yes
16272 else
16273   echo "$as_me: failed program was:" >&5
16274 sed 's/^/| /' conftest.$ac_ext >&5
16275
16276 cat >conftest.$ac_ext <<_ACEOF
16277 #line $LINENO "configure"
16278 /* confdefs.h.  */
16279 _ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h.  */
16283 $utmp_includes
16284
16285 int
16286 main ()
16287 {
16288 static struct utmp ac_aggr;
16289 if (sizeof ac_aggr.ut_id)
16290 return 0;
16291   ;
16292   return 0;
16293 }
16294 _ACEOF
16295 rm -f conftest.$ac_objext
16296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16297   (eval $ac_compile) 2>&5
16298   ac_status=$?
16299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300   (exit $ac_status); } &&
16301          { ac_try='test -s conftest.$ac_objext'
16302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303   (eval $ac_try) 2>&5
16304   ac_status=$?
16305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306   (exit $ac_status); }; }; then
16307   ac_cv_member_struct_utmp_ut_id=yes
16308 else
16309   echo "$as_me: failed program was:" >&5
16310 sed 's/^/| /' conftest.$ac_ext >&5
16311
16312 ac_cv_member_struct_utmp_ut_id=no
16313 fi
16314 rm -f conftest.$ac_objext conftest.$ac_ext
16315 fi
16316 rm -f conftest.$ac_objext conftest.$ac_ext
16317 fi
16318 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
16319 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6
16320 if test $ac_cv_member_struct_utmp_ut_id = yes; then
16321
16322 cat >>confdefs.h <<_ACEOF
16323 #define HAVE_STRUCT_UTMP_UT_ID 1
16324 _ACEOF
16325
16326
16327 fi
16328
16329
16330     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
16331 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_exit... $ECHO_C" >&6
16332 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
16333   echo $ECHO_N "(cached) $ECHO_C" >&6
16334 else
16335   cat >conftest.$ac_ext <<_ACEOF
16336 #line $LINENO "configure"
16337 /* confdefs.h.  */
16338 _ACEOF
16339 cat confdefs.h >>conftest.$ac_ext
16340 cat >>conftest.$ac_ext <<_ACEOF
16341 /* end confdefs.h.  */
16342 $utmp_includes
16343
16344 int
16345 main ()
16346 {
16347 static struct utmpx ac_aggr;
16348 if (ac_aggr.ut_exit.ut_exit)
16349 return 0;
16350   ;
16351   return 0;
16352 }
16353 _ACEOF
16354 rm -f conftest.$ac_objext
16355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16356   (eval $ac_compile) 2>&5
16357   ac_status=$?
16358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359   (exit $ac_status); } &&
16360          { ac_try='test -s conftest.$ac_objext'
16361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362   (eval $ac_try) 2>&5
16363   ac_status=$?
16364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365   (exit $ac_status); }; }; then
16366   ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
16367 else
16368   echo "$as_me: failed program was:" >&5
16369 sed 's/^/| /' conftest.$ac_ext >&5
16370
16371 cat >conftest.$ac_ext <<_ACEOF
16372 #line $LINENO "configure"
16373 /* confdefs.h.  */
16374 _ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h.  */
16378 $utmp_includes
16379
16380 int
16381 main ()
16382 {
16383 static struct utmpx ac_aggr;
16384 if (sizeof ac_aggr.ut_exit.ut_exit)
16385 return 0;
16386   ;
16387   return 0;
16388 }
16389 _ACEOF
16390 rm -f conftest.$ac_objext
16391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16392   (eval $ac_compile) 2>&5
16393   ac_status=$?
16394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395   (exit $ac_status); } &&
16396          { ac_try='test -s conftest.$ac_objext'
16397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398   (eval $ac_try) 2>&5
16399   ac_status=$?
16400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); }; }; then
16402   ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
16403 else
16404   echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16406
16407 ac_cv_member_struct_utmpx_ut_exit_ut_exit=no
16408 fi
16409 rm -f conftest.$ac_objext conftest.$ac_ext
16410 fi
16411 rm -f conftest.$ac_objext conftest.$ac_ext
16412 fi
16413 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
16414 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6
16415 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
16416
16417 cat >>confdefs.h <<_ACEOF
16418 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
16419 _ACEOF
16420
16421
16422 fi
16423
16424     echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
16425 echo $ECHO_N "checking for struct utmp.ut_exit.ut_exit... $ECHO_C" >&6
16426 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
16427   echo $ECHO_N "(cached) $ECHO_C" >&6
16428 else
16429   cat >conftest.$ac_ext <<_ACEOF
16430 #line $LINENO "configure"
16431 /* confdefs.h.  */
16432 _ACEOF
16433 cat confdefs.h >>conftest.$ac_ext
16434 cat >>conftest.$ac_ext <<_ACEOF
16435 /* end confdefs.h.  */
16436 $utmp_includes
16437
16438 int
16439 main ()
16440 {
16441 static struct utmp ac_aggr;
16442 if (ac_aggr.ut_exit.ut_exit)
16443 return 0;
16444   ;
16445   return 0;
16446 }
16447 _ACEOF
16448 rm -f conftest.$ac_objext
16449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16450   (eval $ac_compile) 2>&5
16451   ac_status=$?
16452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453   (exit $ac_status); } &&
16454          { ac_try='test -s conftest.$ac_objext'
16455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456   (eval $ac_try) 2>&5
16457   ac_status=$?
16458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459   (exit $ac_status); }; }; then
16460   ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
16461 else
16462   echo "$as_me: failed program was:" >&5
16463 sed 's/^/| /' conftest.$ac_ext >&5
16464
16465 cat >conftest.$ac_ext <<_ACEOF
16466 #line $LINENO "configure"
16467 /* confdefs.h.  */
16468 _ACEOF
16469 cat confdefs.h >>conftest.$ac_ext
16470 cat >>conftest.$ac_ext <<_ACEOF
16471 /* end confdefs.h.  */
16472 $utmp_includes
16473
16474 int
16475 main ()
16476 {
16477 static struct utmp ac_aggr;
16478 if (sizeof ac_aggr.ut_exit.ut_exit)
16479 return 0;
16480   ;
16481   return 0;
16482 }
16483 _ACEOF
16484 rm -f conftest.$ac_objext
16485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16486   (eval $ac_compile) 2>&5
16487   ac_status=$?
16488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489   (exit $ac_status); } &&
16490          { ac_try='test -s conftest.$ac_objext'
16491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16492   (eval $ac_try) 2>&5
16493   ac_status=$?
16494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495   (exit $ac_status); }; }; then
16496   ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
16497 else
16498   echo "$as_me: failed program was:" >&5
16499 sed 's/^/| /' conftest.$ac_ext >&5
16500
16501 ac_cv_member_struct_utmp_ut_exit_ut_exit=no
16502 fi
16503 rm -f conftest.$ac_objext conftest.$ac_ext
16504 fi
16505 rm -f conftest.$ac_objext conftest.$ac_ext
16506 fi
16507 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
16508 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6
16509 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
16510
16511 cat >>confdefs.h <<_ACEOF
16512 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
16513 _ACEOF
16514
16515
16516 fi
16517
16518     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
16519 echo $ECHO_N "checking for struct utmpx.ut_exit.e_exit... $ECHO_C" >&6
16520 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
16521   echo $ECHO_N "(cached) $ECHO_C" >&6
16522 else
16523   cat >conftest.$ac_ext <<_ACEOF
16524 #line $LINENO "configure"
16525 /* confdefs.h.  */
16526 _ACEOF
16527 cat confdefs.h >>conftest.$ac_ext
16528 cat >>conftest.$ac_ext <<_ACEOF
16529 /* end confdefs.h.  */
16530 $utmp_includes
16531
16532 int
16533 main ()
16534 {
16535 static struct utmpx ac_aggr;
16536 if (ac_aggr.ut_exit.e_exit)
16537 return 0;
16538   ;
16539   return 0;
16540 }
16541 _ACEOF
16542 rm -f conftest.$ac_objext
16543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16544   (eval $ac_compile) 2>&5
16545   ac_status=$?
16546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547   (exit $ac_status); } &&
16548          { ac_try='test -s conftest.$ac_objext'
16549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550   (eval $ac_try) 2>&5
16551   ac_status=$?
16552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553   (exit $ac_status); }; }; then
16554   ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
16555 else
16556   echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16558
16559 cat >conftest.$ac_ext <<_ACEOF
16560 #line $LINENO "configure"
16561 /* confdefs.h.  */
16562 _ACEOF
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h.  */
16566 $utmp_includes
16567
16568 int
16569 main ()
16570 {
16571 static struct utmpx ac_aggr;
16572 if (sizeof ac_aggr.ut_exit.e_exit)
16573 return 0;
16574   ;
16575   return 0;
16576 }
16577 _ACEOF
16578 rm -f conftest.$ac_objext
16579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16580   (eval $ac_compile) 2>&5
16581   ac_status=$?
16582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583   (exit $ac_status); } &&
16584          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16590   ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
16591 else
16592   echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16594
16595 ac_cv_member_struct_utmpx_ut_exit_e_exit=no
16596 fi
16597 rm -f conftest.$ac_objext conftest.$ac_ext
16598 fi
16599 rm -f conftest.$ac_objext conftest.$ac_ext
16600 fi
16601 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
16602 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6
16603 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
16604
16605 cat >>confdefs.h <<_ACEOF
16606 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
16607 _ACEOF
16608
16609
16610 fi
16611
16612     echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
16613 echo $ECHO_N "checking for struct utmp.ut_exit.e_exit... $ECHO_C" >&6
16614 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
16615   echo $ECHO_N "(cached) $ECHO_C" >&6
16616 else
16617   cat >conftest.$ac_ext <<_ACEOF
16618 #line $LINENO "configure"
16619 /* confdefs.h.  */
16620 _ACEOF
16621 cat confdefs.h >>conftest.$ac_ext
16622 cat >>conftest.$ac_ext <<_ACEOF
16623 /* end confdefs.h.  */
16624 $utmp_includes
16625
16626 int
16627 main ()
16628 {
16629 static struct utmp ac_aggr;
16630 if (ac_aggr.ut_exit.e_exit)
16631 return 0;
16632   ;
16633   return 0;
16634 }
16635 _ACEOF
16636 rm -f conftest.$ac_objext
16637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16638   (eval $ac_compile) 2>&5
16639   ac_status=$?
16640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641   (exit $ac_status); } &&
16642          { ac_try='test -s conftest.$ac_objext'
16643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644   (eval $ac_try) 2>&5
16645   ac_status=$?
16646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647   (exit $ac_status); }; }; then
16648   ac_cv_member_struct_utmp_ut_exit_e_exit=yes
16649 else
16650   echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16652
16653 cat >conftest.$ac_ext <<_ACEOF
16654 #line $LINENO "configure"
16655 /* confdefs.h.  */
16656 _ACEOF
16657 cat confdefs.h >>conftest.$ac_ext
16658 cat >>conftest.$ac_ext <<_ACEOF
16659 /* end confdefs.h.  */
16660 $utmp_includes
16661
16662 int
16663 main ()
16664 {
16665 static struct utmp ac_aggr;
16666 if (sizeof ac_aggr.ut_exit.e_exit)
16667 return 0;
16668   ;
16669   return 0;
16670 }
16671 _ACEOF
16672 rm -f conftest.$ac_objext
16673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16674   (eval $ac_compile) 2>&5
16675   ac_status=$?
16676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677   (exit $ac_status); } &&
16678          { ac_try='test -s conftest.$ac_objext'
16679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16680   (eval $ac_try) 2>&5
16681   ac_status=$?
16682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683   (exit $ac_status); }; }; then
16684   ac_cv_member_struct_utmp_ut_exit_e_exit=yes
16685 else
16686   echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16688
16689 ac_cv_member_struct_utmp_ut_exit_e_exit=no
16690 fi
16691 rm -f conftest.$ac_objext conftest.$ac_ext
16692 fi
16693 rm -f conftest.$ac_objext conftest.$ac_ext
16694 fi
16695 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
16696 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6
16697 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
16698
16699 cat >>confdefs.h <<_ACEOF
16700 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
16701 _ACEOF
16702
16703
16704 fi
16705
16706
16707     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
16708 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_termination... $ECHO_C" >&6
16709 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
16710   echo $ECHO_N "(cached) $ECHO_C" >&6
16711 else
16712   cat >conftest.$ac_ext <<_ACEOF
16713 #line $LINENO "configure"
16714 /* confdefs.h.  */
16715 _ACEOF
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h.  */
16719 $utmp_includes
16720
16721 int
16722 main ()
16723 {
16724 static struct utmpx ac_aggr;
16725 if (ac_aggr.ut_exit.ut_termination)
16726 return 0;
16727   ;
16728   return 0;
16729 }
16730 _ACEOF
16731 rm -f conftest.$ac_objext
16732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16733   (eval $ac_compile) 2>&5
16734   ac_status=$?
16735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736   (exit $ac_status); } &&
16737          { ac_try='test -s conftest.$ac_objext'
16738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739   (eval $ac_try) 2>&5
16740   ac_status=$?
16741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742   (exit $ac_status); }; }; then
16743   ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
16744 else
16745   echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16747
16748 cat >conftest.$ac_ext <<_ACEOF
16749 #line $LINENO "configure"
16750 /* confdefs.h.  */
16751 _ACEOF
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h.  */
16755 $utmp_includes
16756
16757 int
16758 main ()
16759 {
16760 static struct utmpx ac_aggr;
16761 if (sizeof ac_aggr.ut_exit.ut_termination)
16762 return 0;
16763   ;
16764   return 0;
16765 }
16766 _ACEOF
16767 rm -f conftest.$ac_objext
16768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16769   (eval $ac_compile) 2>&5
16770   ac_status=$?
16771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772   (exit $ac_status); } &&
16773          { ac_try='test -s conftest.$ac_objext'
16774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775   (eval $ac_try) 2>&5
16776   ac_status=$?
16777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778   (exit $ac_status); }; }; then
16779   ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
16780 else
16781   echo "$as_me: failed program was:" >&5
16782 sed 's/^/| /' conftest.$ac_ext >&5
16783
16784 ac_cv_member_struct_utmpx_ut_exit_ut_termination=no
16785 fi
16786 rm -f conftest.$ac_objext conftest.$ac_ext
16787 fi
16788 rm -f conftest.$ac_objext conftest.$ac_ext
16789 fi
16790 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
16791 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6
16792 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
16793
16794 cat >>confdefs.h <<_ACEOF
16795 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
16796 _ACEOF
16797
16798
16799 fi
16800
16801     echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
16802 echo $ECHO_N "checking for struct utmp.ut_exit.ut_termination... $ECHO_C" >&6
16803 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
16804   echo $ECHO_N "(cached) $ECHO_C" >&6
16805 else
16806   cat >conftest.$ac_ext <<_ACEOF
16807 #line $LINENO "configure"
16808 /* confdefs.h.  */
16809 _ACEOF
16810 cat confdefs.h >>conftest.$ac_ext
16811 cat >>conftest.$ac_ext <<_ACEOF
16812 /* end confdefs.h.  */
16813 $utmp_includes
16814
16815 int
16816 main ()
16817 {
16818 static struct utmp ac_aggr;
16819 if (ac_aggr.ut_exit.ut_termination)
16820 return 0;
16821   ;
16822   return 0;
16823 }
16824 _ACEOF
16825 rm -f conftest.$ac_objext
16826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16827   (eval $ac_compile) 2>&5
16828   ac_status=$?
16829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830   (exit $ac_status); } &&
16831          { ac_try='test -s conftest.$ac_objext'
16832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833   (eval $ac_try) 2>&5
16834   ac_status=$?
16835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836   (exit $ac_status); }; }; then
16837   ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
16838 else
16839   echo "$as_me: failed program was:" >&5
16840 sed 's/^/| /' conftest.$ac_ext >&5
16841
16842 cat >conftest.$ac_ext <<_ACEOF
16843 #line $LINENO "configure"
16844 /* confdefs.h.  */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h.  */
16849 $utmp_includes
16850
16851 int
16852 main ()
16853 {
16854 static struct utmp ac_aggr;
16855 if (sizeof ac_aggr.ut_exit.ut_termination)
16856 return 0;
16857   ;
16858   return 0;
16859 }
16860 _ACEOF
16861 rm -f conftest.$ac_objext
16862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16863   (eval $ac_compile) 2>&5
16864   ac_status=$?
16865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866   (exit $ac_status); } &&
16867          { ac_try='test -s conftest.$ac_objext'
16868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16869   (eval $ac_try) 2>&5
16870   ac_status=$?
16871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872   (exit $ac_status); }; }; then
16873   ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
16874 else
16875   echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16877
16878 ac_cv_member_struct_utmp_ut_exit_ut_termination=no
16879 fi
16880 rm -f conftest.$ac_objext conftest.$ac_ext
16881 fi
16882 rm -f conftest.$ac_objext conftest.$ac_ext
16883 fi
16884 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
16885 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6
16886 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
16887
16888 cat >>confdefs.h <<_ACEOF
16889 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
16890 _ACEOF
16891
16892
16893 fi
16894
16895     echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
16896 echo $ECHO_N "checking for struct utmpx.ut_exit.e_termination... $ECHO_C" >&6
16897 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
16898   echo $ECHO_N "(cached) $ECHO_C" >&6
16899 else
16900   cat >conftest.$ac_ext <<_ACEOF
16901 #line $LINENO "configure"
16902 /* confdefs.h.  */
16903 _ACEOF
16904 cat confdefs.h >>conftest.$ac_ext
16905 cat >>conftest.$ac_ext <<_ACEOF
16906 /* end confdefs.h.  */
16907 $utmp_includes
16908
16909 int
16910 main ()
16911 {
16912 static struct utmpx ac_aggr;
16913 if (ac_aggr.ut_exit.e_termination)
16914 return 0;
16915   ;
16916   return 0;
16917 }
16918 _ACEOF
16919 rm -f conftest.$ac_objext
16920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16921   (eval $ac_compile) 2>&5
16922   ac_status=$?
16923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924   (exit $ac_status); } &&
16925          { ac_try='test -s conftest.$ac_objext'
16926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16927   (eval $ac_try) 2>&5
16928   ac_status=$?
16929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930   (exit $ac_status); }; }; then
16931   ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
16932 else
16933   echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16935
16936 cat >conftest.$ac_ext <<_ACEOF
16937 #line $LINENO "configure"
16938 /* confdefs.h.  */
16939 _ACEOF
16940 cat confdefs.h >>conftest.$ac_ext
16941 cat >>conftest.$ac_ext <<_ACEOF
16942 /* end confdefs.h.  */
16943 $utmp_includes
16944
16945 int
16946 main ()
16947 {
16948 static struct utmpx ac_aggr;
16949 if (sizeof ac_aggr.ut_exit.e_termination)
16950 return 0;
16951   ;
16952   return 0;
16953 }
16954 _ACEOF
16955 rm -f conftest.$ac_objext
16956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16957   (eval $ac_compile) 2>&5
16958   ac_status=$?
16959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960   (exit $ac_status); } &&
16961          { ac_try='test -s conftest.$ac_objext'
16962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963   (eval $ac_try) 2>&5
16964   ac_status=$?
16965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966   (exit $ac_status); }; }; then
16967   ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
16968 else
16969   echo "$as_me: failed program was:" >&5
16970 sed 's/^/| /' conftest.$ac_ext >&5
16971
16972 ac_cv_member_struct_utmpx_ut_exit_e_termination=no
16973 fi
16974 rm -f conftest.$ac_objext conftest.$ac_ext
16975 fi
16976 rm -f conftest.$ac_objext conftest.$ac_ext
16977 fi
16978 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
16979 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6
16980 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
16981
16982 cat >>confdefs.h <<_ACEOF
16983 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
16984 _ACEOF
16985
16986
16987 fi
16988
16989     echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
16990 echo $ECHO_N "checking for struct utmp.ut_exit.e_termination... $ECHO_C" >&6
16991 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
16992   echo $ECHO_N "(cached) $ECHO_C" >&6
16993 else
16994   cat >conftest.$ac_ext <<_ACEOF
16995 #line $LINENO "configure"
16996 /* confdefs.h.  */
16997 _ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h.  */
17001 $utmp_includes
17002
17003 int
17004 main ()
17005 {
17006 static struct utmp ac_aggr;
17007 if (ac_aggr.ut_exit.e_termination)
17008 return 0;
17009   ;
17010   return 0;
17011 }
17012 _ACEOF
17013 rm -f conftest.$ac_objext
17014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17015   (eval $ac_compile) 2>&5
17016   ac_status=$?
17017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018   (exit $ac_status); } &&
17019          { ac_try='test -s conftest.$ac_objext'
17020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17021   (eval $ac_try) 2>&5
17022   ac_status=$?
17023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); }; }; then
17025   ac_cv_member_struct_utmp_ut_exit_e_termination=yes
17026 else
17027   echo "$as_me: failed program was:" >&5
17028 sed 's/^/| /' conftest.$ac_ext >&5
17029
17030 cat >conftest.$ac_ext <<_ACEOF
17031 #line $LINENO "configure"
17032 /* confdefs.h.  */
17033 _ACEOF
17034 cat confdefs.h >>conftest.$ac_ext
17035 cat >>conftest.$ac_ext <<_ACEOF
17036 /* end confdefs.h.  */
17037 $utmp_includes
17038
17039 int
17040 main ()
17041 {
17042 static struct utmp ac_aggr;
17043 if (sizeof ac_aggr.ut_exit.e_termination)
17044 return 0;
17045   ;
17046   return 0;
17047 }
17048 _ACEOF
17049 rm -f conftest.$ac_objext
17050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17051   (eval $ac_compile) 2>&5
17052   ac_status=$?
17053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054   (exit $ac_status); } &&
17055          { ac_try='test -s conftest.$ac_objext'
17056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17057   (eval $ac_try) 2>&5
17058   ac_status=$?
17059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060   (exit $ac_status); }; }; then
17061   ac_cv_member_struct_utmp_ut_exit_e_termination=yes
17062 else
17063   echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17065
17066 ac_cv_member_struct_utmp_ut_exit_e_termination=no
17067 fi
17068 rm -f conftest.$ac_objext conftest.$ac_ext
17069 fi
17070 rm -f conftest.$ac_objext conftest.$ac_ext
17071 fi
17072 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
17073 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6
17074 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
17075
17076 cat >>confdefs.h <<_ACEOF
17077 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
17078 _ACEOF
17079
17080
17081 fi
17082
17083     LIBOBJS="$LIBOBJS readutmp.$ac_objext"
17084   fi
17085
17086
17087   echo "$as_me:$LINENO: checking for long long" >&5
17088 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17089 if test "${ac_cv_type_long_long+set}" = set; then
17090   echo $ECHO_N "(cached) $ECHO_C" >&6
17091 else
17092   cat >conftest.$ac_ext <<_ACEOF
17093 #line $LINENO "configure"
17094 /* confdefs.h.  */
17095 _ACEOF
17096 cat confdefs.h >>conftest.$ac_ext
17097 cat >>conftest.$ac_ext <<_ACEOF
17098 /* end confdefs.h.  */
17099 long long ll = 1; int i = 63;
17100 int
17101 main ()
17102 {
17103 long long llmax = (long long) -1;
17104      return ll << i | ll >> i | llmax / ll | llmax % ll;
17105   ;
17106   return 0;
17107 }
17108 _ACEOF
17109 rm -f conftest.$ac_objext conftest$ac_exeext
17110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17111   (eval $ac_link) 2>&5
17112   ac_status=$?
17113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114   (exit $ac_status); } &&
17115          { ac_try='test -s conftest$ac_exeext'
17116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17117   (eval $ac_try) 2>&5
17118   ac_status=$?
17119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120   (exit $ac_status); }; }; then
17121   ac_cv_type_long_long=yes
17122 else
17123   echo "$as_me: failed program was:" >&5
17124 sed 's/^/| /' conftest.$ac_ext >&5
17125
17126 ac_cv_type_long_long=no
17127 fi
17128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17129 fi
17130 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17131 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17132   if test $ac_cv_type_long_long = yes; then
17133
17134 cat >>confdefs.h <<\_ACEOF
17135 #define HAVE_LONG_LONG 1
17136 _ACEOF
17137
17138   fi
17139
17140
17141
17142
17143
17144
17145 for ac_header in sys/sysmacros.h sys/statvfs.h sys/vfs.h inttypes.h
17146 do
17147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17149   echo "$as_me:$LINENO: checking for $ac_header" >&5
17150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17152   echo $ECHO_N "(cached) $ECHO_C" >&6
17153 fi
17154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17156 else
17157   # Is the header compilable?
17158 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17160 cat >conftest.$ac_ext <<_ACEOF
17161 #line $LINENO "configure"
17162 /* confdefs.h.  */
17163 _ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h.  */
17167 $ac_includes_default
17168 #include <$ac_header>
17169 _ACEOF
17170 rm -f conftest.$ac_objext
17171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17172   (eval $ac_compile) 2>&5
17173   ac_status=$?
17174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175   (exit $ac_status); } &&
17176          { ac_try='test -s conftest.$ac_objext'
17177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17178   (eval $ac_try) 2>&5
17179   ac_status=$?
17180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181   (exit $ac_status); }; }; then
17182   ac_header_compiler=yes
17183 else
17184   echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17186
17187 ac_header_compiler=no
17188 fi
17189 rm -f conftest.$ac_objext conftest.$ac_ext
17190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17191 echo "${ECHO_T}$ac_header_compiler" >&6
17192
17193 # Is the header present?
17194 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17196 cat >conftest.$ac_ext <<_ACEOF
17197 #line $LINENO "configure"
17198 /* confdefs.h.  */
17199 _ACEOF
17200 cat confdefs.h >>conftest.$ac_ext
17201 cat >>conftest.$ac_ext <<_ACEOF
17202 /* end confdefs.h.  */
17203 #include <$ac_header>
17204 _ACEOF
17205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17206   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17207   ac_status=$?
17208   grep -v '^ *+' conftest.er1 >conftest.err
17209   rm -f conftest.er1
17210   cat conftest.err >&5
17211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212   (exit $ac_status); } >/dev/null; then
17213   if test -s conftest.err; then
17214     ac_cpp_err=$ac_c_preproc_warn_flag
17215   else
17216     ac_cpp_err=
17217   fi
17218 else
17219   ac_cpp_err=yes
17220 fi
17221 if test -z "$ac_cpp_err"; then
17222   ac_header_preproc=yes
17223 else
17224   echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17226
17227   ac_header_preproc=no
17228 fi
17229 rm -f conftest.err conftest.$ac_ext
17230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17231 echo "${ECHO_T}$ac_header_preproc" >&6
17232
17233 # So?  What about this header?
17234 case $ac_header_compiler:$ac_header_preproc in
17235   yes:no )
17236     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17238     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17240     (
17241       cat <<\_ASBOX
17242 ## ------------------------------------ ##
17243 ## Report this to bug-autoconf@gnu.org. ##
17244 ## ------------------------------------ ##
17245 _ASBOX
17246     ) |
17247       sed "s/^/$as_me: WARNING:     /" >&2
17248     ;;
17249   no:yes )
17250     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17252     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17253 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17254     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17256     (
17257       cat <<\_ASBOX
17258 ## ------------------------------------ ##
17259 ## Report this to bug-autoconf@gnu.org. ##
17260 ## ------------------------------------ ##
17261 _ASBOX
17262     ) |
17263       sed "s/^/$as_me: WARNING:     /" >&2
17264     ;;
17265 esac
17266 echo "$as_me:$LINENO: checking for $ac_header" >&5
17267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17269   echo $ECHO_N "(cached) $ECHO_C" >&6
17270 else
17271   eval "$as_ac_Header=$ac_header_preproc"
17272 fi
17273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17275
17276 fi
17277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17278   cat >>confdefs.h <<_ACEOF
17279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17280 _ACEOF
17281
17282 fi
17283
17284 done
17285
17286
17287
17288 for ac_header in sys/param.h sys/mount.h
17289 do
17290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17292   echo "$as_me:$LINENO: checking for $ac_header" >&5
17293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17295   echo $ECHO_N "(cached) $ECHO_C" >&6
17296 fi
17297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17299 else
17300   # Is the header compilable?
17301 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17303 cat >conftest.$ac_ext <<_ACEOF
17304 #line $LINENO "configure"
17305 /* confdefs.h.  */
17306 _ACEOF
17307 cat confdefs.h >>conftest.$ac_ext
17308 cat >>conftest.$ac_ext <<_ACEOF
17309 /* end confdefs.h.  */
17310 $ac_includes_default
17311 #include <$ac_header>
17312 _ACEOF
17313 rm -f conftest.$ac_objext
17314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17315   (eval $ac_compile) 2>&5
17316   ac_status=$?
17317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318   (exit $ac_status); } &&
17319          { ac_try='test -s conftest.$ac_objext'
17320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17321   (eval $ac_try) 2>&5
17322   ac_status=$?
17323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324   (exit $ac_status); }; }; then
17325   ac_header_compiler=yes
17326 else
17327   echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.$ac_ext >&5
17329
17330 ac_header_compiler=no
17331 fi
17332 rm -f conftest.$ac_objext conftest.$ac_ext
17333 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17334 echo "${ECHO_T}$ac_header_compiler" >&6
17335
17336 # Is the header present?
17337 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17339 cat >conftest.$ac_ext <<_ACEOF
17340 #line $LINENO "configure"
17341 /* confdefs.h.  */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h.  */
17346 #include <$ac_header>
17347 _ACEOF
17348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17349   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17350   ac_status=$?
17351   grep -v '^ *+' conftest.er1 >conftest.err
17352   rm -f conftest.er1
17353   cat conftest.err >&5
17354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355   (exit $ac_status); } >/dev/null; then
17356   if test -s conftest.err; then
17357     ac_cpp_err=$ac_c_preproc_warn_flag
17358   else
17359     ac_cpp_err=
17360   fi
17361 else
17362   ac_cpp_err=yes
17363 fi
17364 if test -z "$ac_cpp_err"; then
17365   ac_header_preproc=yes
17366 else
17367   echo "$as_me: failed program was:" >&5
17368 sed 's/^/| /' conftest.$ac_ext >&5
17369
17370   ac_header_preproc=no
17371 fi
17372 rm -f conftest.err conftest.$ac_ext
17373 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17374 echo "${ECHO_T}$ac_header_preproc" >&6
17375
17376 # So?  What about this header?
17377 case $ac_header_compiler:$ac_header_preproc in
17378   yes:no )
17379     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17381     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17383     (
17384       cat <<\_ASBOX
17385 ## ------------------------------------ ##
17386 ## Report this to bug-autoconf@gnu.org. ##
17387 ## ------------------------------------ ##
17388 _ASBOX
17389     ) |
17390       sed "s/^/$as_me: WARNING:     /" >&2
17391     ;;
17392   no:yes )
17393     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17395     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17397     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17399     (
17400       cat <<\_ASBOX
17401 ## ------------------------------------ ##
17402 ## Report this to bug-autoconf@gnu.org. ##
17403 ## ------------------------------------ ##
17404 _ASBOX
17405     ) |
17406       sed "s/^/$as_me: WARNING:     /" >&2
17407     ;;
17408 esac
17409 echo "$as_me:$LINENO: checking for $ac_header" >&5
17410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17412   echo $ECHO_N "(cached) $ECHO_C" >&6
17413 else
17414   eval "$as_ac_Header=$ac_header_preproc"
17415 fi
17416 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17417 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17418
17419 fi
17420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17421   cat >>confdefs.h <<_ACEOF
17422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17423 _ACEOF
17424
17425 fi
17426
17427 done
17428
17429
17430 for ac_func in statvfs
17431 do
17432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17433 echo "$as_me:$LINENO: checking for $ac_func" >&5
17434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17435 if eval "test \"\${$as_ac_var+set}\" = set"; then
17436   echo $ECHO_N "(cached) $ECHO_C" >&6
17437 else
17438   cat >conftest.$ac_ext <<_ACEOF
17439 #line $LINENO "configure"
17440 /* confdefs.h.  */
17441 _ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h.  */
17445 /* System header to define __stub macros and hopefully few prototypes,
17446     which can conflict with char $ac_func (); below.
17447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17448     <limits.h> exists even on freestanding compilers.  */
17449 #ifdef __STDC__
17450 # include <limits.h>
17451 #else
17452 # include <assert.h>
17453 #endif
17454 /* Override any gcc2 internal prototype to avoid an error.  */
17455 #ifdef __cplusplus
17456 extern "C"
17457 {
17458 #endif
17459 /* We use char because int might match the return type of a gcc2
17460    builtin and then its argument prototype would still apply.  */
17461 char $ac_func ();
17462 /* The GNU C library defines this for functions which it implements
17463     to always fail with ENOSYS.  Some functions are actually named
17464     something starting with __ and the normal name is an alias.  */
17465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17466 choke me
17467 #else
17468 char (*f) () = $ac_func;
17469 #endif
17470 #ifdef __cplusplus
17471 }
17472 #endif
17473
17474 int
17475 main ()
17476 {
17477 return f != $ac_func;
17478   ;
17479   return 0;
17480 }
17481 _ACEOF
17482 rm -f conftest.$ac_objext conftest$ac_exeext
17483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17484   (eval $ac_link) 2>&5
17485   ac_status=$?
17486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487   (exit $ac_status); } &&
17488          { ac_try='test -s conftest$ac_exeext'
17489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17490   (eval $ac_try) 2>&5
17491   ac_status=$?
17492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493   (exit $ac_status); }; }; then
17494   eval "$as_ac_var=yes"
17495 else
17496   echo "$as_me: failed program was:" >&5
17497 sed 's/^/| /' conftest.$ac_ext >&5
17498
17499 eval "$as_ac_var=no"
17500 fi
17501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17502 fi
17503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17505 if test `eval echo '${'$as_ac_var'}'` = yes; then
17506   cat >>confdefs.h <<_ACEOF
17507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17508 _ACEOF
17509
17510 fi
17511 done
17512
17513
17514
17515   statxfs_includes="\
17516 $ac_includes_default
17517 #if HAVE_SYS_STATVFS_H
17518 # include <sys/statvfs.h>
17519 #endif
17520 #if HAVE_SYS_VFS_H
17521 # include <sys/vfs.h>
17522 #endif
17523 #if ( ! HAVE_SYS_STATVFS_H && ! HAVE_SYS_VFS_H && HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H )
17524 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
17525 # include <sys/param.h>
17526 # include <sys/mount.h>
17527 #endif
17528 "
17529   echo "$as_me:$LINENO: checking for struct statfs.f_basetype" >&5
17530 echo $ECHO_N "checking for struct statfs.f_basetype... $ECHO_C" >&6
17531 if test "${ac_cv_member_struct_statfs_f_basetype+set}" = set; then
17532   echo $ECHO_N "(cached) $ECHO_C" >&6
17533 else
17534   cat >conftest.$ac_ext <<_ACEOF
17535 #line $LINENO "configure"
17536 /* confdefs.h.  */
17537 _ACEOF
17538 cat confdefs.h >>conftest.$ac_ext
17539 cat >>conftest.$ac_ext <<_ACEOF
17540 /* end confdefs.h.  */
17541 $statxfs_includes
17542
17543 int
17544 main ()
17545 {
17546 static struct statfs ac_aggr;
17547 if (ac_aggr.f_basetype)
17548 return 0;
17549   ;
17550   return 0;
17551 }
17552 _ACEOF
17553 rm -f conftest.$ac_objext
17554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17555   (eval $ac_compile) 2>&5
17556   ac_status=$?
17557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558   (exit $ac_status); } &&
17559          { ac_try='test -s conftest.$ac_objext'
17560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561   (eval $ac_try) 2>&5
17562   ac_status=$?
17563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564   (exit $ac_status); }; }; then
17565   ac_cv_member_struct_statfs_f_basetype=yes
17566 else
17567   echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17569
17570 cat >conftest.$ac_ext <<_ACEOF
17571 #line $LINENO "configure"
17572 /* confdefs.h.  */
17573 _ACEOF
17574 cat confdefs.h >>conftest.$ac_ext
17575 cat >>conftest.$ac_ext <<_ACEOF
17576 /* end confdefs.h.  */
17577 $statxfs_includes
17578
17579 int
17580 main ()
17581 {
17582 static struct statfs ac_aggr;
17583 if (sizeof ac_aggr.f_basetype)
17584 return 0;
17585   ;
17586   return 0;
17587 }
17588 _ACEOF
17589 rm -f conftest.$ac_objext
17590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17591   (eval $ac_compile) 2>&5
17592   ac_status=$?
17593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594   (exit $ac_status); } &&
17595          { ac_try='test -s conftest.$ac_objext'
17596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597   (eval $ac_try) 2>&5
17598   ac_status=$?
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); }; }; then
17601   ac_cv_member_struct_statfs_f_basetype=yes
17602 else
17603   echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17605
17606 ac_cv_member_struct_statfs_f_basetype=no
17607 fi
17608 rm -f conftest.$ac_objext conftest.$ac_ext
17609 fi
17610 rm -f conftest.$ac_objext conftest.$ac_ext
17611 fi
17612 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_basetype" >&5
17613 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_basetype" >&6
17614 if test $ac_cv_member_struct_statfs_f_basetype = yes; then
17615
17616 cat >>confdefs.h <<_ACEOF
17617 #define HAVE_STRUCT_STATFS_F_BASETYPE 1
17618 _ACEOF
17619
17620
17621 fi
17622
17623   echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
17624 echo $ECHO_N "checking for struct statvfs.f_basetype... $ECHO_C" >&6
17625 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
17626   echo $ECHO_N "(cached) $ECHO_C" >&6
17627 else
17628   cat >conftest.$ac_ext <<_ACEOF
17629 #line $LINENO "configure"
17630 /* confdefs.h.  */
17631 _ACEOF
17632 cat confdefs.h >>conftest.$ac_ext
17633 cat >>conftest.$ac_ext <<_ACEOF
17634 /* end confdefs.h.  */
17635 $statxfs_includes
17636
17637 int
17638 main ()
17639 {
17640 static struct statvfs ac_aggr;
17641 if (ac_aggr.f_basetype)
17642 return 0;
17643   ;
17644   return 0;
17645 }
17646 _ACEOF
17647 rm -f conftest.$ac_objext
17648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17649   (eval $ac_compile) 2>&5
17650   ac_status=$?
17651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652   (exit $ac_status); } &&
17653          { ac_try='test -s conftest.$ac_objext'
17654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17655   (eval $ac_try) 2>&5
17656   ac_status=$?
17657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658   (exit $ac_status); }; }; then
17659   ac_cv_member_struct_statvfs_f_basetype=yes
17660 else
17661   echo "$as_me: failed program was:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17663
17664 cat >conftest.$ac_ext <<_ACEOF
17665 #line $LINENO "configure"
17666 /* confdefs.h.  */
17667 _ACEOF
17668 cat confdefs.h >>conftest.$ac_ext
17669 cat >>conftest.$ac_ext <<_ACEOF
17670 /* end confdefs.h.  */
17671 $statxfs_includes
17672
17673 int
17674 main ()
17675 {
17676 static struct statvfs ac_aggr;
17677 if (sizeof ac_aggr.f_basetype)
17678 return 0;
17679   ;
17680   return 0;
17681 }
17682 _ACEOF
17683 rm -f conftest.$ac_objext
17684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17685   (eval $ac_compile) 2>&5
17686   ac_status=$?
17687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688   (exit $ac_status); } &&
17689          { ac_try='test -s conftest.$ac_objext'
17690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691   (eval $ac_try) 2>&5
17692   ac_status=$?
17693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694   (exit $ac_status); }; }; then
17695   ac_cv_member_struct_statvfs_f_basetype=yes
17696 else
17697   echo "$as_me: failed program was:" >&5
17698 sed 's/^/| /' conftest.$ac_ext >&5
17699
17700 ac_cv_member_struct_statvfs_f_basetype=no
17701 fi
17702 rm -f conftest.$ac_objext conftest.$ac_ext
17703 fi
17704 rm -f conftest.$ac_objext conftest.$ac_ext
17705 fi
17706 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
17707 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_basetype" >&6
17708 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
17709
17710 cat >>confdefs.h <<_ACEOF
17711 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
17712 _ACEOF
17713
17714
17715 fi
17716
17717   echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
17718 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6
17719 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
17720   echo $ECHO_N "(cached) $ECHO_C" >&6
17721 else
17722   cat >conftest.$ac_ext <<_ACEOF
17723 #line $LINENO "configure"
17724 /* confdefs.h.  */
17725 _ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h.  */
17729 $statxfs_includes
17730
17731 int
17732 main ()
17733 {
17734 static struct statfs ac_aggr;
17735 if (ac_aggr.f_fstypename)
17736 return 0;
17737   ;
17738   return 0;
17739 }
17740 _ACEOF
17741 rm -f conftest.$ac_objext
17742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17743   (eval $ac_compile) 2>&5
17744   ac_status=$?
17745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746   (exit $ac_status); } &&
17747          { ac_try='test -s conftest.$ac_objext'
17748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749   (eval $ac_try) 2>&5
17750   ac_status=$?
17751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752   (exit $ac_status); }; }; then
17753   ac_cv_member_struct_statfs_f_fstypename=yes
17754 else
17755   echo "$as_me: failed program was:" >&5
17756 sed 's/^/| /' conftest.$ac_ext >&5
17757
17758 cat >conftest.$ac_ext <<_ACEOF
17759 #line $LINENO "configure"
17760 /* confdefs.h.  */
17761 _ACEOF
17762 cat confdefs.h >>conftest.$ac_ext
17763 cat >>conftest.$ac_ext <<_ACEOF
17764 /* end confdefs.h.  */
17765 $statxfs_includes
17766
17767 int
17768 main ()
17769 {
17770 static struct statfs ac_aggr;
17771 if (sizeof ac_aggr.f_fstypename)
17772 return 0;
17773   ;
17774   return 0;
17775 }
17776 _ACEOF
17777 rm -f conftest.$ac_objext
17778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17779   (eval $ac_compile) 2>&5
17780   ac_status=$?
17781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); } &&
17783          { ac_try='test -s conftest.$ac_objext'
17784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785   (eval $ac_try) 2>&5
17786   ac_status=$?
17787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788   (exit $ac_status); }; }; then
17789   ac_cv_member_struct_statfs_f_fstypename=yes
17790 else
17791   echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17793
17794 ac_cv_member_struct_statfs_f_fstypename=no
17795 fi
17796 rm -f conftest.$ac_objext conftest.$ac_ext
17797 fi
17798 rm -f conftest.$ac_objext conftest.$ac_ext
17799 fi
17800 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
17801 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6
17802 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
17803
17804 cat >>confdefs.h <<_ACEOF
17805 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
17806 _ACEOF
17807
17808
17809 fi
17810
17811   echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
17812 echo $ECHO_N "checking for struct statfs.f_type... $ECHO_C" >&6
17813 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
17814   echo $ECHO_N "(cached) $ECHO_C" >&6
17815 else
17816   cat >conftest.$ac_ext <<_ACEOF
17817 #line $LINENO "configure"
17818 /* confdefs.h.  */
17819 _ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h.  */
17823 $statxfs_includes
17824
17825 int
17826 main ()
17827 {
17828 static struct statfs ac_aggr;
17829 if (ac_aggr.f_type)
17830 return 0;
17831   ;
17832   return 0;
17833 }
17834 _ACEOF
17835 rm -f conftest.$ac_objext
17836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17837   (eval $ac_compile) 2>&5
17838   ac_status=$?
17839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840   (exit $ac_status); } &&
17841          { ac_try='test -s conftest.$ac_objext'
17842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843   (eval $ac_try) 2>&5
17844   ac_status=$?
17845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846   (exit $ac_status); }; }; then
17847   ac_cv_member_struct_statfs_f_type=yes
17848 else
17849   echo "$as_me: failed program was:" >&5
17850 sed 's/^/| /' conftest.$ac_ext >&5
17851
17852 cat >conftest.$ac_ext <<_ACEOF
17853 #line $LINENO "configure"
17854 /* confdefs.h.  */
17855 _ACEOF
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h.  */
17859 $statxfs_includes
17860
17861 int
17862 main ()
17863 {
17864 static struct statfs ac_aggr;
17865 if (sizeof ac_aggr.f_type)
17866 return 0;
17867   ;
17868   return 0;
17869 }
17870 _ACEOF
17871 rm -f conftest.$ac_objext
17872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17873   (eval $ac_compile) 2>&5
17874   ac_status=$?
17875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876   (exit $ac_status); } &&
17877          { ac_try='test -s conftest.$ac_objext'
17878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17879   (eval $ac_try) 2>&5
17880   ac_status=$?
17881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882   (exit $ac_status); }; }; then
17883   ac_cv_member_struct_statfs_f_type=yes
17884 else
17885   echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.$ac_ext >&5
17887
17888 ac_cv_member_struct_statfs_f_type=no
17889 fi
17890 rm -f conftest.$ac_objext conftest.$ac_ext
17891 fi
17892 rm -f conftest.$ac_objext conftest.$ac_ext
17893 fi
17894 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
17895 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_type" >&6
17896 if test $ac_cv_member_struct_statfs_f_type = yes; then
17897
17898 cat >>confdefs.h <<_ACEOF
17899 #define HAVE_STRUCT_STATFS_F_TYPE 1
17900 _ACEOF
17901
17902
17903 fi
17904
17905   echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
17906 echo $ECHO_N "checking for struct statvfs.f_type... $ECHO_C" >&6
17907 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
17908   echo $ECHO_N "(cached) $ECHO_C" >&6
17909 else
17910   cat >conftest.$ac_ext <<_ACEOF
17911 #line $LINENO "configure"
17912 /* confdefs.h.  */
17913 _ACEOF
17914 cat confdefs.h >>conftest.$ac_ext
17915 cat >>conftest.$ac_ext <<_ACEOF
17916 /* end confdefs.h.  */
17917 $statxfs_includes
17918
17919 int
17920 main ()
17921 {
17922 static struct statvfs ac_aggr;
17923 if (ac_aggr.f_type)
17924 return 0;
17925   ;
17926   return 0;
17927 }
17928 _ACEOF
17929 rm -f conftest.$ac_objext
17930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17931   (eval $ac_compile) 2>&5
17932   ac_status=$?
17933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934   (exit $ac_status); } &&
17935          { ac_try='test -s conftest.$ac_objext'
17936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937   (eval $ac_try) 2>&5
17938   ac_status=$?
17939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940   (exit $ac_status); }; }; then
17941   ac_cv_member_struct_statvfs_f_type=yes
17942 else
17943   echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17945
17946 cat >conftest.$ac_ext <<_ACEOF
17947 #line $LINENO "configure"
17948 /* confdefs.h.  */
17949 _ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h.  */
17953 $statxfs_includes
17954
17955 int
17956 main ()
17957 {
17958 static struct statvfs ac_aggr;
17959 if (sizeof ac_aggr.f_type)
17960 return 0;
17961   ;
17962   return 0;
17963 }
17964 _ACEOF
17965 rm -f conftest.$ac_objext
17966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17967   (eval $ac_compile) 2>&5
17968   ac_status=$?
17969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970   (exit $ac_status); } &&
17971          { ac_try='test -s conftest.$ac_objext'
17972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973   (eval $ac_try) 2>&5
17974   ac_status=$?
17975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976   (exit $ac_status); }; }; then
17977   ac_cv_member_struct_statvfs_f_type=yes
17978 else
17979   echo "$as_me: failed program was:" >&5
17980 sed 's/^/| /' conftest.$ac_ext >&5
17981
17982 ac_cv_member_struct_statvfs_f_type=no
17983 fi
17984 rm -f conftest.$ac_objext conftest.$ac_ext
17985 fi
17986 rm -f conftest.$ac_objext conftest.$ac_ext
17987 fi
17988 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
17989 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_type" >&6
17990 if test $ac_cv_member_struct_statvfs_f_type = yes; then
17991
17992 cat >>confdefs.h <<_ACEOF
17993 #define HAVE_STRUCT_STATVFS_F_TYPE 1
17994 _ACEOF
17995
17996
17997 fi
17998
17999   echo "$as_me:$LINENO: checking for struct statfs.f_fsid.__val" >&5
18000 echo $ECHO_N "checking for struct statfs.f_fsid.__val... $ECHO_C" >&6
18001 if test "${ac_cv_member_struct_statfs_f_fsid___val+set}" = set; then
18002   echo $ECHO_N "(cached) $ECHO_C" >&6
18003 else
18004   cat >conftest.$ac_ext <<_ACEOF
18005 #line $LINENO "configure"
18006 /* confdefs.h.  */
18007 _ACEOF
18008 cat confdefs.h >>conftest.$ac_ext
18009 cat >>conftest.$ac_ext <<_ACEOF
18010 /* end confdefs.h.  */
18011 $statxfs_includes
18012
18013 int
18014 main ()
18015 {
18016 static struct statfs ac_aggr;
18017 if (ac_aggr.f_fsid.__val)
18018 return 0;
18019   ;
18020   return 0;
18021 }
18022 _ACEOF
18023 rm -f conftest.$ac_objext
18024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18025   (eval $ac_compile) 2>&5
18026   ac_status=$?
18027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028   (exit $ac_status); } &&
18029          { ac_try='test -s conftest.$ac_objext'
18030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18031   (eval $ac_try) 2>&5
18032   ac_status=$?
18033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034   (exit $ac_status); }; }; then
18035   ac_cv_member_struct_statfs_f_fsid___val=yes
18036 else
18037   echo "$as_me: failed program was:" >&5
18038 sed 's/^/| /' conftest.$ac_ext >&5
18039
18040 cat >conftest.$ac_ext <<_ACEOF
18041 #line $LINENO "configure"
18042 /* confdefs.h.  */
18043 _ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h.  */
18047 $statxfs_includes
18048
18049 int
18050 main ()
18051 {
18052 static struct statfs ac_aggr;
18053 if (sizeof ac_aggr.f_fsid.__val)
18054 return 0;
18055   ;
18056   return 0;
18057 }
18058 _ACEOF
18059 rm -f conftest.$ac_objext
18060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18061   (eval $ac_compile) 2>&5
18062   ac_status=$?
18063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064   (exit $ac_status); } &&
18065          { ac_try='test -s conftest.$ac_objext'
18066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067   (eval $ac_try) 2>&5
18068   ac_status=$?
18069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070   (exit $ac_status); }; }; then
18071   ac_cv_member_struct_statfs_f_fsid___val=yes
18072 else
18073   echo "$as_me: failed program was:" >&5
18074 sed 's/^/| /' conftest.$ac_ext >&5
18075
18076 ac_cv_member_struct_statfs_f_fsid___val=no
18077 fi
18078 rm -f conftest.$ac_objext conftest.$ac_ext
18079 fi
18080 rm -f conftest.$ac_objext conftest.$ac_ext
18081 fi
18082 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsid___val" >&5
18083 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fsid___val" >&6
18084 if test $ac_cv_member_struct_statfs_f_fsid___val = yes; then
18085
18086 cat >>confdefs.h <<_ACEOF
18087 #define HAVE_STRUCT_STATFS_F_FSID___VAL 1
18088 _ACEOF
18089
18090
18091 fi
18092
18093   echo "$as_me:$LINENO: checking for struct statvfs.f_fsid.__val" >&5
18094 echo $ECHO_N "checking for struct statvfs.f_fsid.__val... $ECHO_C" >&6
18095 if test "${ac_cv_member_struct_statvfs_f_fsid___val+set}" = set; then
18096   echo $ECHO_N "(cached) $ECHO_C" >&6
18097 else
18098   cat >conftest.$ac_ext <<_ACEOF
18099 #line $LINENO "configure"
18100 /* confdefs.h.  */
18101 _ACEOF
18102 cat confdefs.h >>conftest.$ac_ext
18103 cat >>conftest.$ac_ext <<_ACEOF
18104 /* end confdefs.h.  */
18105 $statxfs_includes
18106
18107 int
18108 main ()
18109 {
18110 static struct statvfs ac_aggr;
18111 if (ac_aggr.f_fsid.__val)
18112 return 0;
18113   ;
18114   return 0;
18115 }
18116 _ACEOF
18117 rm -f conftest.$ac_objext
18118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18119   (eval $ac_compile) 2>&5
18120   ac_status=$?
18121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122   (exit $ac_status); } &&
18123          { ac_try='test -s conftest.$ac_objext'
18124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125   (eval $ac_try) 2>&5
18126   ac_status=$?
18127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128   (exit $ac_status); }; }; then
18129   ac_cv_member_struct_statvfs_f_fsid___val=yes
18130 else
18131   echo "$as_me: failed program was:" >&5
18132 sed 's/^/| /' conftest.$ac_ext >&5
18133
18134 cat >conftest.$ac_ext <<_ACEOF
18135 #line $LINENO "configure"
18136 /* confdefs.h.  */
18137 _ACEOF
18138 cat confdefs.h >>conftest.$ac_ext
18139 cat >>conftest.$ac_ext <<_ACEOF
18140 /* end confdefs.h.  */
18141 $statxfs_includes
18142
18143 int
18144 main ()
18145 {
18146 static struct statvfs ac_aggr;
18147 if (sizeof ac_aggr.f_fsid.__val)
18148 return 0;
18149   ;
18150   return 0;
18151 }
18152 _ACEOF
18153 rm -f conftest.$ac_objext
18154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18155   (eval $ac_compile) 2>&5
18156   ac_status=$?
18157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158   (exit $ac_status); } &&
18159          { ac_try='test -s conftest.$ac_objext'
18160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161   (eval $ac_try) 2>&5
18162   ac_status=$?
18163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164   (exit $ac_status); }; }; then
18165   ac_cv_member_struct_statvfs_f_fsid___val=yes
18166 else
18167   echo "$as_me: failed program was:" >&5
18168 sed 's/^/| /' conftest.$ac_ext >&5
18169
18170 ac_cv_member_struct_statvfs_f_fsid___val=no
18171 fi
18172 rm -f conftest.$ac_objext conftest.$ac_ext
18173 fi
18174 rm -f conftest.$ac_objext conftest.$ac_ext
18175 fi
18176 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fsid___val" >&5
18177 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fsid___val" >&6
18178 if test $ac_cv_member_struct_statvfs_f_fsid___val = yes; then
18179
18180 cat >>confdefs.h <<_ACEOF
18181 #define HAVE_STRUCT_STATVFS_F_FSID___VAL 1
18182 _ACEOF
18183
18184
18185 fi
18186
18187   echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
18188 echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6
18189 if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
18190   echo $ECHO_N "(cached) $ECHO_C" >&6
18191 else
18192   cat >conftest.$ac_ext <<_ACEOF
18193 #line $LINENO "configure"
18194 /* confdefs.h.  */
18195 _ACEOF
18196 cat confdefs.h >>conftest.$ac_ext
18197 cat >>conftest.$ac_ext <<_ACEOF
18198 /* end confdefs.h.  */
18199 $statxfs_includes
18200
18201 int
18202 main ()
18203 {
18204 static struct statfs ac_aggr;
18205 if (ac_aggr.f_namemax)
18206 return 0;
18207   ;
18208   return 0;
18209 }
18210 _ACEOF
18211 rm -f conftest.$ac_objext
18212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18213   (eval $ac_compile) 2>&5
18214   ac_status=$?
18215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216   (exit $ac_status); } &&
18217          { ac_try='test -s conftest.$ac_objext'
18218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219   (eval $ac_try) 2>&5
18220   ac_status=$?
18221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222   (exit $ac_status); }; }; then
18223   ac_cv_member_struct_statfs_f_namemax=yes
18224 else
18225   echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18227
18228 cat >conftest.$ac_ext <<_ACEOF
18229 #line $LINENO "configure"
18230 /* confdefs.h.  */
18231 _ACEOF
18232 cat confdefs.h >>conftest.$ac_ext
18233 cat >>conftest.$ac_ext <<_ACEOF
18234 /* end confdefs.h.  */
18235 $statxfs_includes
18236
18237 int
18238 main ()
18239 {
18240 static struct statfs ac_aggr;
18241 if (sizeof ac_aggr.f_namemax)
18242 return 0;
18243   ;
18244   return 0;
18245 }
18246 _ACEOF
18247 rm -f conftest.$ac_objext
18248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18249   (eval $ac_compile) 2>&5
18250   ac_status=$?
18251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252   (exit $ac_status); } &&
18253          { ac_try='test -s conftest.$ac_objext'
18254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18255   (eval $ac_try) 2>&5
18256   ac_status=$?
18257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258   (exit $ac_status); }; }; then
18259   ac_cv_member_struct_statfs_f_namemax=yes
18260 else
18261   echo "$as_me: failed program was:" >&5
18262 sed 's/^/| /' conftest.$ac_ext >&5
18263
18264 ac_cv_member_struct_statfs_f_namemax=no
18265 fi
18266 rm -f conftest.$ac_objext conftest.$ac_ext
18267 fi
18268 rm -f conftest.$ac_objext conftest.$ac_ext
18269 fi
18270 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
18271 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6
18272 if test $ac_cv_member_struct_statfs_f_namemax = yes; then
18273
18274 cat >>confdefs.h <<_ACEOF
18275 #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
18276 _ACEOF
18277
18278
18279 fi
18280
18281   echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
18282 echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6
18283 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
18284   echo $ECHO_N "(cached) $ECHO_C" >&6
18285 else
18286   cat >conftest.$ac_ext <<_ACEOF
18287 #line $LINENO "configure"
18288 /* confdefs.h.  */
18289 _ACEOF
18290 cat confdefs.h >>conftest.$ac_ext
18291 cat >>conftest.$ac_ext <<_ACEOF
18292 /* end confdefs.h.  */
18293 $statxfs_includes
18294
18295 int
18296 main ()
18297 {
18298 static struct statvfs ac_aggr;
18299 if (ac_aggr.f_namemax)
18300 return 0;
18301   ;
18302   return 0;
18303 }
18304 _ACEOF
18305 rm -f conftest.$ac_objext
18306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18307   (eval $ac_compile) 2>&5
18308   ac_status=$?
18309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310   (exit $ac_status); } &&
18311          { ac_try='test -s conftest.$ac_objext'
18312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18313   (eval $ac_try) 2>&5
18314   ac_status=$?
18315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316   (exit $ac_status); }; }; then
18317   ac_cv_member_struct_statvfs_f_namemax=yes
18318 else
18319   echo "$as_me: failed program was:" >&5
18320 sed 's/^/| /' conftest.$ac_ext >&5
18321
18322 cat >conftest.$ac_ext <<_ACEOF
18323 #line $LINENO "configure"
18324 /* confdefs.h.  */
18325 _ACEOF
18326 cat confdefs.h >>conftest.$ac_ext
18327 cat >>conftest.$ac_ext <<_ACEOF
18328 /* end confdefs.h.  */
18329 $statxfs_includes
18330
18331 int
18332 main ()
18333 {
18334 static struct statvfs ac_aggr;
18335 if (sizeof ac_aggr.f_namemax)
18336 return 0;
18337   ;
18338   return 0;
18339 }
18340 _ACEOF
18341 rm -f conftest.$ac_objext
18342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18343   (eval $ac_compile) 2>&5
18344   ac_status=$?
18345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346   (exit $ac_status); } &&
18347          { ac_try='test -s conftest.$ac_objext'
18348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349   (eval $ac_try) 2>&5
18350   ac_status=$?
18351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352   (exit $ac_status); }; }; then
18353   ac_cv_member_struct_statvfs_f_namemax=yes
18354 else
18355   echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18357
18358 ac_cv_member_struct_statvfs_f_namemax=no
18359 fi
18360 rm -f conftest.$ac_objext conftest.$ac_ext
18361 fi
18362 rm -f conftest.$ac_objext conftest.$ac_ext
18363 fi
18364 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
18365 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6
18366 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
18367
18368 cat >>confdefs.h <<_ACEOF
18369 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
18370 _ACEOF
18371
18372
18373 fi
18374
18375   echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18376 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
18377 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18378   echo $ECHO_N "(cached) $ECHO_C" >&6
18379 else
18380   cat >conftest.$ac_ext <<_ACEOF
18381 #line $LINENO "configure"
18382 /* confdefs.h.  */
18383 _ACEOF
18384 cat confdefs.h >>conftest.$ac_ext
18385 cat >>conftest.$ac_ext <<_ACEOF
18386 /* end confdefs.h.  */
18387 $statxfs_includes
18388
18389 int
18390 main ()
18391 {
18392 static struct statfs ac_aggr;
18393 if (ac_aggr.f_namelen)
18394 return 0;
18395   ;
18396   return 0;
18397 }
18398 _ACEOF
18399 rm -f conftest.$ac_objext
18400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18401   (eval $ac_compile) 2>&5
18402   ac_status=$?
18403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404   (exit $ac_status); } &&
18405          { ac_try='test -s conftest.$ac_objext'
18406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18407   (eval $ac_try) 2>&5
18408   ac_status=$?
18409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410   (exit $ac_status); }; }; then
18411   ac_cv_member_struct_statfs_f_namelen=yes
18412 else
18413   echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18415
18416 cat >conftest.$ac_ext <<_ACEOF
18417 #line $LINENO "configure"
18418 /* confdefs.h.  */
18419 _ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h.  */
18423 $statxfs_includes
18424
18425 int
18426 main ()
18427 {
18428 static struct statfs ac_aggr;
18429 if (sizeof ac_aggr.f_namelen)
18430 return 0;
18431   ;
18432   return 0;
18433 }
18434 _ACEOF
18435 rm -f conftest.$ac_objext
18436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18437   (eval $ac_compile) 2>&5
18438   ac_status=$?
18439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440   (exit $ac_status); } &&
18441          { ac_try='test -s conftest.$ac_objext'
18442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18443   (eval $ac_try) 2>&5
18444   ac_status=$?
18445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446   (exit $ac_status); }; }; then
18447   ac_cv_member_struct_statfs_f_namelen=yes
18448 else
18449   echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18451
18452 ac_cv_member_struct_statfs_f_namelen=no
18453 fi
18454 rm -f conftest.$ac_objext conftest.$ac_ext
18455 fi
18456 rm -f conftest.$ac_objext conftest.$ac_ext
18457 fi
18458 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18459 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
18460 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18461
18462 cat >>confdefs.h <<_ACEOF
18463 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
18464 _ACEOF
18465
18466
18467 fi
18468
18469   echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
18470 echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6
18471 if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
18472   echo $ECHO_N "(cached) $ECHO_C" >&6
18473 else
18474   cat >conftest.$ac_ext <<_ACEOF
18475 #line $LINENO "configure"
18476 /* confdefs.h.  */
18477 _ACEOF
18478 cat confdefs.h >>conftest.$ac_ext
18479 cat >>conftest.$ac_ext <<_ACEOF
18480 /* end confdefs.h.  */
18481 $statxfs_includes
18482
18483 int
18484 main ()
18485 {
18486 static struct statvfs ac_aggr;
18487 if (ac_aggr.f_namelen)
18488 return 0;
18489   ;
18490   return 0;
18491 }
18492 _ACEOF
18493 rm -f conftest.$ac_objext
18494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18495   (eval $ac_compile) 2>&5
18496   ac_status=$?
18497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498   (exit $ac_status); } &&
18499          { ac_try='test -s conftest.$ac_objext'
18500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18501   (eval $ac_try) 2>&5
18502   ac_status=$?
18503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504   (exit $ac_status); }; }; then
18505   ac_cv_member_struct_statvfs_f_namelen=yes
18506 else
18507   echo "$as_me: failed program was:" >&5
18508 sed 's/^/| /' conftest.$ac_ext >&5
18509
18510 cat >conftest.$ac_ext <<_ACEOF
18511 #line $LINENO "configure"
18512 /* confdefs.h.  */
18513 _ACEOF
18514 cat confdefs.h >>conftest.$ac_ext
18515 cat >>conftest.$ac_ext <<_ACEOF
18516 /* end confdefs.h.  */
18517 $statxfs_includes
18518
18519 int
18520 main ()
18521 {
18522 static struct statvfs ac_aggr;
18523 if (sizeof ac_aggr.f_namelen)
18524 return 0;
18525   ;
18526   return 0;
18527 }
18528 _ACEOF
18529 rm -f conftest.$ac_objext
18530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18531   (eval $ac_compile) 2>&5
18532   ac_status=$?
18533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534   (exit $ac_status); } &&
18535          { ac_try='test -s conftest.$ac_objext'
18536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537   (eval $ac_try) 2>&5
18538   ac_status=$?
18539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540   (exit $ac_status); }; }; then
18541   ac_cv_member_struct_statvfs_f_namelen=yes
18542 else
18543   echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18545
18546 ac_cv_member_struct_statvfs_f_namelen=no
18547 fi
18548 rm -f conftest.$ac_objext conftest.$ac_ext
18549 fi
18550 rm -f conftest.$ac_objext conftest.$ac_ext
18551 fi
18552 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
18553 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6
18554 if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
18555
18556 cat >>confdefs.h <<_ACEOF
18557 #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
18558 _ACEOF
18559
18560
18561 fi
18562
18563
18564 echo "$as_me:$LINENO: checking for working strnlen" >&5
18565 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
18566 if test "${ac_cv_func_strnlen_working+set}" = set; then
18567   echo $ECHO_N "(cached) $ECHO_C" >&6
18568 else
18569   if test "$cross_compiling" = yes; then
18570   ac_cv_func_strnlen_working=no
18571 else
18572   cat >conftest.$ac_ext <<_ACEOF
18573 #line $LINENO "configure"
18574 /* confdefs.h.  */
18575 _ACEOF
18576 cat confdefs.h >>conftest.$ac_ext
18577 cat >>conftest.$ac_ext <<_ACEOF
18578 /* end confdefs.h.  */
18579
18580 int
18581 main ()
18582 {
18583
18584 #define S "foobar"
18585 #define S_LEN (sizeof S - 1)
18586
18587   /* At least one implementation is buggy: that of AIX 4.3 would
18588      give strnlen (S, 1) == 3.  */
18589
18590   int i;
18591   for (i = 0; i < S_LEN + 1; ++i)
18592     {
18593       int expected = i <= S_LEN ? i : S_LEN;
18594       if (strnlen (S, i) != expected)
18595         exit (1);
18596     }
18597   exit (0);
18598
18599   ;
18600   return 0;
18601 }
18602 _ACEOF
18603 rm -f conftest$ac_exeext
18604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18605   (eval $ac_link) 2>&5
18606   ac_status=$?
18607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18610   (eval $ac_try) 2>&5
18611   ac_status=$?
18612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613   (exit $ac_status); }; }; then
18614   ac_cv_func_strnlen_working=yes
18615 else
18616   echo "$as_me: program exited with status $ac_status" >&5
18617 echo "$as_me: failed program was:" >&5
18618 sed 's/^/| /' conftest.$ac_ext >&5
18619
18620 ( exit $ac_status )
18621 ac_cv_func_strnlen_working=no
18622 fi
18623 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18624 fi
18625 fi
18626 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
18627 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
18628 test $ac_cv_func_strnlen_working = no && LIBOBJS="$LIBOBJS strnlen.$ac_objext"
18629
18630
18631
18632
18633
18634 for ac_header in memory.h
18635 do
18636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18638   echo "$as_me:$LINENO: checking for $ac_header" >&5
18639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18641   echo $ECHO_N "(cached) $ECHO_C" >&6
18642 fi
18643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18645 else
18646   # Is the header compilable?
18647 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18649 cat >conftest.$ac_ext <<_ACEOF
18650 #line $LINENO "configure"
18651 /* confdefs.h.  */
18652 _ACEOF
18653 cat confdefs.h >>conftest.$ac_ext
18654 cat >>conftest.$ac_ext <<_ACEOF
18655 /* end confdefs.h.  */
18656 $ac_includes_default
18657 #include <$ac_header>
18658 _ACEOF
18659 rm -f conftest.$ac_objext
18660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18661   (eval $ac_compile) 2>&5
18662   ac_status=$?
18663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664   (exit $ac_status); } &&
18665          { ac_try='test -s conftest.$ac_objext'
18666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18667   (eval $ac_try) 2>&5
18668   ac_status=$?
18669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670   (exit $ac_status); }; }; then
18671   ac_header_compiler=yes
18672 else
18673   echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18675
18676 ac_header_compiler=no
18677 fi
18678 rm -f conftest.$ac_objext conftest.$ac_ext
18679 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18680 echo "${ECHO_T}$ac_header_compiler" >&6
18681
18682 # Is the header present?
18683 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18685 cat >conftest.$ac_ext <<_ACEOF
18686 #line $LINENO "configure"
18687 /* confdefs.h.  */
18688 _ACEOF
18689 cat confdefs.h >>conftest.$ac_ext
18690 cat >>conftest.$ac_ext <<_ACEOF
18691 /* end confdefs.h.  */
18692 #include <$ac_header>
18693 _ACEOF
18694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18695   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18696   ac_status=$?
18697   grep -v '^ *+' conftest.er1 >conftest.err
18698   rm -f conftest.er1
18699   cat conftest.err >&5
18700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701   (exit $ac_status); } >/dev/null; then
18702   if test -s conftest.err; then
18703     ac_cpp_err=$ac_c_preproc_warn_flag
18704   else
18705     ac_cpp_err=
18706   fi
18707 else
18708   ac_cpp_err=yes
18709 fi
18710 if test -z "$ac_cpp_err"; then
18711   ac_header_preproc=yes
18712 else
18713   echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18715
18716   ac_header_preproc=no
18717 fi
18718 rm -f conftest.err conftest.$ac_ext
18719 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18720 echo "${ECHO_T}$ac_header_preproc" >&6
18721
18722 # So?  What about this header?
18723 case $ac_header_compiler:$ac_header_preproc in
18724   yes:no )
18725     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18729     (
18730       cat <<\_ASBOX
18731 ## ------------------------------------ ##
18732 ## Report this to bug-autoconf@gnu.org. ##
18733 ## ------------------------------------ ##
18734 _ASBOX
18735     ) |
18736       sed "s/^/$as_me: WARNING:     /" >&2
18737     ;;
18738   no:yes )
18739     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18741     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18742 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18743     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18745     (
18746       cat <<\_ASBOX
18747 ## ------------------------------------ ##
18748 ## Report this to bug-autoconf@gnu.org. ##
18749 ## ------------------------------------ ##
18750 _ASBOX
18751     ) |
18752       sed "s/^/$as_me: WARNING:     /" >&2
18753     ;;
18754 esac
18755 echo "$as_me:$LINENO: checking for $ac_header" >&5
18756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18758   echo $ECHO_N "(cached) $ECHO_C" >&6
18759 else
18760   eval "$as_ac_Header=$ac_header_preproc"
18761 fi
18762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18764
18765 fi
18766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18767   cat >>confdefs.h <<_ACEOF
18768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18769 _ACEOF
18770
18771 fi
18772
18773 done
18774
18775   echo "$as_me:$LINENO: checking whether memchr is declared" >&5
18776 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
18777 if test "${ac_cv_have_decl_memchr+set}" = set; then
18778   echo $ECHO_N "(cached) $ECHO_C" >&6
18779 else
18780   cat >conftest.$ac_ext <<_ACEOF
18781 #line $LINENO "configure"
18782 /* confdefs.h.  */
18783 _ACEOF
18784 cat confdefs.h >>conftest.$ac_ext
18785 cat >>conftest.$ac_ext <<_ACEOF
18786 /* end confdefs.h.  */
18787 $ac_includes_default
18788 int
18789 main ()
18790 {
18791 #ifndef memchr
18792   char *p = (char *) memchr;
18793 #endif
18794
18795   ;
18796   return 0;
18797 }
18798 _ACEOF
18799 rm -f conftest.$ac_objext
18800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18801   (eval $ac_compile) 2>&5
18802   ac_status=$?
18803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804   (exit $ac_status); } &&
18805          { ac_try='test -s conftest.$ac_objext'
18806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18807   (eval $ac_try) 2>&5
18808   ac_status=$?
18809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810   (exit $ac_status); }; }; then
18811   ac_cv_have_decl_memchr=yes
18812 else
18813   echo "$as_me: failed program was:" >&5
18814 sed 's/^/| /' conftest.$ac_ext >&5
18815
18816 ac_cv_have_decl_memchr=no
18817 fi
18818 rm -f conftest.$ac_objext conftest.$ac_ext
18819 fi
18820 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
18821 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
18822 if test $ac_cv_have_decl_memchr = yes; then
18823
18824 cat >>confdefs.h <<_ACEOF
18825 #define HAVE_DECL_MEMCHR 1
18826 _ACEOF
18827
18828
18829 else
18830   cat >>confdefs.h <<_ACEOF
18831 #define HAVE_DECL_MEMCHR 0
18832 _ACEOF
18833
18834
18835 fi
18836
18837
18838
18839   # This is necessary because automake-1.6.1 doesn't understand
18840   # that the above use of AC_FUNC_STRNLEN means we may have to use
18841   # lib/strnlen.c.
18842   test $ac_cv_func_strnlen_working = yes \
18843     && LIBOBJS="$LIBOBJS strnlen.$ac_objext"
18844
18845
18846
18847
18848
18849
18850
18851
18852 for ac_header in fcntl.h sys/time.h stdint.h unistd.h
18853 do
18854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18856   echo "$as_me:$LINENO: checking for $ac_header" >&5
18857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18859   echo $ECHO_N "(cached) $ECHO_C" >&6
18860 fi
18861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18863 else
18864   # Is the header compilable?
18865 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18867 cat >conftest.$ac_ext <<_ACEOF
18868 #line $LINENO "configure"
18869 /* confdefs.h.  */
18870 _ACEOF
18871 cat confdefs.h >>conftest.$ac_ext
18872 cat >>conftest.$ac_ext <<_ACEOF
18873 /* end confdefs.h.  */
18874 $ac_includes_default
18875 #include <$ac_header>
18876 _ACEOF
18877 rm -f conftest.$ac_objext
18878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18879   (eval $ac_compile) 2>&5
18880   ac_status=$?
18881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882   (exit $ac_status); } &&
18883          { ac_try='test -s conftest.$ac_objext'
18884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885   (eval $ac_try) 2>&5
18886   ac_status=$?
18887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888   (exit $ac_status); }; }; then
18889   ac_header_compiler=yes
18890 else
18891   echo "$as_me: failed program was:" >&5
18892 sed 's/^/| /' conftest.$ac_ext >&5
18893
18894 ac_header_compiler=no
18895 fi
18896 rm -f conftest.$ac_objext conftest.$ac_ext
18897 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18898 echo "${ECHO_T}$ac_header_compiler" >&6
18899
18900 # Is the header present?
18901 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18903 cat >conftest.$ac_ext <<_ACEOF
18904 #line $LINENO "configure"
18905 /* confdefs.h.  */
18906 _ACEOF
18907 cat confdefs.h >>conftest.$ac_ext
18908 cat >>conftest.$ac_ext <<_ACEOF
18909 /* end confdefs.h.  */
18910 #include <$ac_header>
18911 _ACEOF
18912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18913   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18914   ac_status=$?
18915   grep -v '^ *+' conftest.er1 >conftest.err
18916   rm -f conftest.er1
18917   cat conftest.err >&5
18918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919   (exit $ac_status); } >/dev/null; then
18920   if test -s conftest.err; then
18921     ac_cpp_err=$ac_c_preproc_warn_flag
18922   else
18923     ac_cpp_err=
18924   fi
18925 else
18926   ac_cpp_err=yes
18927 fi
18928 if test -z "$ac_cpp_err"; then
18929   ac_header_preproc=yes
18930 else
18931   echo "$as_me: failed program was:" >&5
18932 sed 's/^/| /' conftest.$ac_ext >&5
18933
18934   ac_header_preproc=no
18935 fi
18936 rm -f conftest.err conftest.$ac_ext
18937 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18938 echo "${ECHO_T}$ac_header_preproc" >&6
18939
18940 # So?  What about this header?
18941 case $ac_header_compiler:$ac_header_preproc in
18942   yes:no )
18943     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18945     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18947     (
18948       cat <<\_ASBOX
18949 ## ------------------------------------ ##
18950 ## Report this to bug-autoconf@gnu.org. ##
18951 ## ------------------------------------ ##
18952 _ASBOX
18953     ) |
18954       sed "s/^/$as_me: WARNING:     /" >&2
18955     ;;
18956   no:yes )
18957     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18959     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18960 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18961     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18962 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18963     (
18964       cat <<\_ASBOX
18965 ## ------------------------------------ ##
18966 ## Report this to bug-autoconf@gnu.org. ##
18967 ## ------------------------------------ ##
18968 _ASBOX
18969     ) |
18970       sed "s/^/$as_me: WARNING:     /" >&2
18971     ;;
18972 esac
18973 echo "$as_me:$LINENO: checking for $ac_header" >&5
18974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18976   echo $ECHO_N "(cached) $ECHO_C" >&6
18977 else
18978   eval "$as_ac_Header=$ac_header_preproc"
18979 fi
18980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18982
18983 fi
18984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18985   cat >>confdefs.h <<_ACEOF
18986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18987 _ACEOF
18988
18989 fi
18990
18991 done
18992
18993
18994
18995 for ac_func in __secure_getenv gettimeofday
18996 do
18997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18998 echo "$as_me:$LINENO: checking for $ac_func" >&5
18999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19000 if eval "test \"\${$as_ac_var+set}\" = set"; then
19001   echo $ECHO_N "(cached) $ECHO_C" >&6
19002 else
19003   cat >conftest.$ac_ext <<_ACEOF
19004 #line $LINENO "configure"
19005 /* confdefs.h.  */
19006 _ACEOF
19007 cat confdefs.h >>conftest.$ac_ext
19008 cat >>conftest.$ac_ext <<_ACEOF
19009 /* end confdefs.h.  */
19010 /* System header to define __stub macros and hopefully few prototypes,
19011     which can conflict with char $ac_func (); below.
19012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19013     <limits.h> exists even on freestanding compilers.  */
19014 #ifdef __STDC__
19015 # include <limits.h>
19016 #else
19017 # include <assert.h>
19018 #endif
19019 /* Override any gcc2 internal prototype to avoid an error.  */
19020 #ifdef __cplusplus
19021 extern "C"
19022 {
19023 #endif
19024 /* We use char because int might match the return type of a gcc2
19025    builtin and then its argument prototype would still apply.  */
19026 char $ac_func ();
19027 /* The GNU C library defines this for functions which it implements
19028     to always fail with ENOSYS.  Some functions are actually named
19029     something starting with __ and the normal name is an alias.  */
19030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19031 choke me
19032 #else
19033 char (*f) () = $ac_func;
19034 #endif
19035 #ifdef __cplusplus
19036 }
19037 #endif
19038
19039 int
19040 main ()
19041 {
19042 return f != $ac_func;
19043   ;
19044   return 0;
19045 }
19046 _ACEOF
19047 rm -f conftest.$ac_objext conftest$ac_exeext
19048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19049   (eval $ac_link) 2>&5
19050   ac_status=$?
19051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052   (exit $ac_status); } &&
19053          { ac_try='test -s conftest$ac_exeext'
19054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055   (eval $ac_try) 2>&5
19056   ac_status=$?
19057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058   (exit $ac_status); }; }; then
19059   eval "$as_ac_var=yes"
19060 else
19061   echo "$as_me: failed program was:" >&5
19062 sed 's/^/| /' conftest.$ac_ext >&5
19063
19064 eval "$as_ac_var=no"
19065 fi
19066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19067 fi
19068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19070 if test `eval echo '${'$as_ac_var'}'` = yes; then
19071   cat >>confdefs.h <<_ACEOF
19072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19073 _ACEOF
19074
19075 fi
19076 done
19077
19078   echo "$as_me:$LINENO: checking whether getenv is declared" >&5
19079 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
19080 if test "${ac_cv_have_decl_getenv+set}" = set; then
19081   echo $ECHO_N "(cached) $ECHO_C" >&6
19082 else
19083   cat >conftest.$ac_ext <<_ACEOF
19084 #line $LINENO "configure"
19085 /* confdefs.h.  */
19086 _ACEOF
19087 cat confdefs.h >>conftest.$ac_ext
19088 cat >>conftest.$ac_ext <<_ACEOF
19089 /* end confdefs.h.  */
19090 $ac_includes_default
19091 int
19092 main ()
19093 {
19094 #ifndef getenv
19095   char *p = (char *) getenv;
19096 #endif
19097
19098   ;
19099   return 0;
19100 }
19101 _ACEOF
19102 rm -f conftest.$ac_objext
19103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19104   (eval $ac_compile) 2>&5
19105   ac_status=$?
19106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107   (exit $ac_status); } &&
19108          { ac_try='test -s conftest.$ac_objext'
19109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110   (eval $ac_try) 2>&5
19111   ac_status=$?
19112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113   (exit $ac_status); }; }; then
19114   ac_cv_have_decl_getenv=yes
19115 else
19116   echo "$as_me: failed program was:" >&5
19117 sed 's/^/| /' conftest.$ac_ext >&5
19118
19119 ac_cv_have_decl_getenv=no
19120 fi
19121 rm -f conftest.$ac_objext conftest.$ac_ext
19122 fi
19123 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
19124 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
19125 if test $ac_cv_have_decl_getenv = yes; then
19126
19127 cat >>confdefs.h <<_ACEOF
19128 #define HAVE_DECL_GETENV 1
19129 _ACEOF
19130
19131
19132 else
19133   cat >>confdefs.h <<_ACEOF
19134 #define HAVE_DECL_GETENV 0
19135 _ACEOF
19136
19137
19138 fi
19139
19140
19141
19142
19143 echo "$as_me:$LINENO: checking for function prototypes" >&5
19144 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
19145 if test "$ac_cv_prog_cc_stdc" != no; then
19146   echo "$as_me:$LINENO: result: yes" >&5
19147 echo "${ECHO_T}yes" >&6
19148
19149 cat >>confdefs.h <<\_ACEOF
19150 #define PROTOTYPES 1
19151 _ACEOF
19152
19153
19154 cat >>confdefs.h <<\_ACEOF
19155 #define __PROTOTYPES 1
19156 _ACEOF
19157
19158 else
19159   echo "$as_me:$LINENO: result: no" >&5
19160 echo "${ECHO_T}no" >&6
19161 fi
19162
19163
19164
19165 for ac_header in stdlib.h unistd.h
19166 do
19167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19169   echo "$as_me:$LINENO: checking for $ac_header" >&5
19170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19172   echo $ECHO_N "(cached) $ECHO_C" >&6
19173 fi
19174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19176 else
19177   # Is the header compilable?
19178 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19180 cat >conftest.$ac_ext <<_ACEOF
19181 #line $LINENO "configure"
19182 /* confdefs.h.  */
19183 _ACEOF
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h.  */
19187 $ac_includes_default
19188 #include <$ac_header>
19189 _ACEOF
19190 rm -f conftest.$ac_objext
19191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19192   (eval $ac_compile) 2>&5
19193   ac_status=$?
19194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195   (exit $ac_status); } &&
19196          { ac_try='test -s conftest.$ac_objext'
19197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198   (eval $ac_try) 2>&5
19199   ac_status=$?
19200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201   (exit $ac_status); }; }; then
19202   ac_header_compiler=yes
19203 else
19204   echo "$as_me: failed program was:" >&5
19205 sed 's/^/| /' conftest.$ac_ext >&5
19206
19207 ac_header_compiler=no
19208 fi
19209 rm -f conftest.$ac_objext conftest.$ac_ext
19210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19211 echo "${ECHO_T}$ac_header_compiler" >&6
19212
19213 # Is the header present?
19214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19216 cat >conftest.$ac_ext <<_ACEOF
19217 #line $LINENO "configure"
19218 /* confdefs.h.  */
19219 _ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h.  */
19223 #include <$ac_header>
19224 _ACEOF
19225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19226   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19227   ac_status=$?
19228   grep -v '^ *+' conftest.er1 >conftest.err
19229   rm -f conftest.er1
19230   cat conftest.err >&5
19231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232   (exit $ac_status); } >/dev/null; then
19233   if test -s conftest.err; then
19234     ac_cpp_err=$ac_c_preproc_warn_flag
19235   else
19236     ac_cpp_err=
19237   fi
19238 else
19239   ac_cpp_err=yes
19240 fi
19241 if test -z "$ac_cpp_err"; then
19242   ac_header_preproc=yes
19243 else
19244   echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19246
19247   ac_header_preproc=no
19248 fi
19249 rm -f conftest.err conftest.$ac_ext
19250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19251 echo "${ECHO_T}$ac_header_preproc" >&6
19252
19253 # So?  What about this header?
19254 case $ac_header_compiler:$ac_header_preproc in
19255   yes:no )
19256     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19260     (
19261       cat <<\_ASBOX
19262 ## ------------------------------------ ##
19263 ## Report this to bug-autoconf@gnu.org. ##
19264 ## ------------------------------------ ##
19265 _ASBOX
19266     ) |
19267       sed "s/^/$as_me: WARNING:     /" >&2
19268     ;;
19269   no:yes )
19270     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19272     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19274     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19276     (
19277       cat <<\_ASBOX
19278 ## ------------------------------------ ##
19279 ## Report this to bug-autoconf@gnu.org. ##
19280 ## ------------------------------------ ##
19281 _ASBOX
19282     ) |
19283       sed "s/^/$as_me: WARNING:     /" >&2
19284     ;;
19285 esac
19286 echo "$as_me:$LINENO: checking for $ac_header" >&5
19287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19289   echo $ECHO_N "(cached) $ECHO_C" >&6
19290 else
19291   eval "$as_ac_Header=$ac_header_preproc"
19292 fi
19293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19295
19296 fi
19297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19298   cat >>confdefs.h <<_ACEOF
19299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19300 _ACEOF
19301
19302 fi
19303
19304 done
19305
19306    echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
19307 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6
19308 if test "${ac_cv_func_getcwd_null+set}" = set; then
19309   echo $ECHO_N "(cached) $ECHO_C" >&6
19310 else
19311   if test "$cross_compiling" = yes; then
19312   ac_cv_func_getcwd_null=no
19313 else
19314   cat >conftest.$ac_ext <<_ACEOF
19315 #line $LINENO "configure"
19316 /* confdefs.h.  */
19317 _ACEOF
19318 cat confdefs.h >>conftest.$ac_ext
19319 cat >>conftest.$ac_ext <<_ACEOF
19320 /* end confdefs.h.  */
19321
19322 #        ifdef HAVE_STDLIB_H
19323 #         include <stdlib.h>
19324 #        endif
19325 #        ifdef HAVE_UNISTD_H
19326 #         include <unistd.h>
19327 #        endif
19328 #        ifndef getcwd
19329          char *getcwd ();
19330 #        endif
19331          int
19332          main ()
19333          {
19334            if (chdir ("/") != 0)
19335              exit (1);
19336            else
19337              {
19338                char *f = getcwd (NULL, 0);
19339                exit (! (f && f[0] == '/' && !f[1]));
19340              }
19341          }
19342 _ACEOF
19343 rm -f conftest$ac_exeext
19344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19345   (eval $ac_link) 2>&5
19346   ac_status=$?
19347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19350   (eval $ac_try) 2>&5
19351   ac_status=$?
19352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353   (exit $ac_status); }; }; then
19354   ac_cv_func_getcwd_null=yes
19355 else
19356   echo "$as_me: program exited with status $ac_status" >&5
19357 echo "$as_me: failed program was:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19359
19360 ( exit $ac_status )
19361 ac_cv_func_getcwd_null=no
19362 fi
19363 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19364 fi
19365 fi
19366 echo "$as_me:$LINENO: result: $ac_cv_func_getcwd_null" >&5
19367 echo "${ECHO_T}$ac_cv_func_getcwd_null" >&6
19368    if test $ac_cv_func_getcwd_null = yes; then
19369
19370 cat >>confdefs.h <<\_ACEOF
19371 #define HAVE_GETCWD_NULL 1
19372 _ACEOF
19373
19374    fi
19375
19376
19377
19378
19379
19380
19381 for ac_header in limits.h stdlib.h sys/param.h unistd.h
19382 do
19383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19385   echo "$as_me:$LINENO: checking for $ac_header" >&5
19386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19388   echo $ECHO_N "(cached) $ECHO_C" >&6
19389 fi
19390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19392 else
19393   # Is the header compilable?
19394 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19396 cat >conftest.$ac_ext <<_ACEOF
19397 #line $LINENO "configure"
19398 /* confdefs.h.  */
19399 _ACEOF
19400 cat confdefs.h >>conftest.$ac_ext
19401 cat >>conftest.$ac_ext <<_ACEOF
19402 /* end confdefs.h.  */
19403 $ac_includes_default
19404 #include <$ac_header>
19405 _ACEOF
19406 rm -f conftest.$ac_objext
19407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19408   (eval $ac_compile) 2>&5
19409   ac_status=$?
19410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411   (exit $ac_status); } &&
19412          { ac_try='test -s conftest.$ac_objext'
19413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414   (eval $ac_try) 2>&5
19415   ac_status=$?
19416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417   (exit $ac_status); }; }; then
19418   ac_header_compiler=yes
19419 else
19420   echo "$as_me: failed program was:" >&5
19421 sed 's/^/| /' conftest.$ac_ext >&5
19422
19423 ac_header_compiler=no
19424 fi
19425 rm -f conftest.$ac_objext conftest.$ac_ext
19426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19427 echo "${ECHO_T}$ac_header_compiler" >&6
19428
19429 # Is the header present?
19430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19432 cat >conftest.$ac_ext <<_ACEOF
19433 #line $LINENO "configure"
19434 /* confdefs.h.  */
19435 _ACEOF
19436 cat confdefs.h >>conftest.$ac_ext
19437 cat >>conftest.$ac_ext <<_ACEOF
19438 /* end confdefs.h.  */
19439 #include <$ac_header>
19440 _ACEOF
19441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19442   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19443   ac_status=$?
19444   grep -v '^ *+' conftest.er1 >conftest.err
19445   rm -f conftest.er1
19446   cat conftest.err >&5
19447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448   (exit $ac_status); } >/dev/null; then
19449   if test -s conftest.err; then
19450     ac_cpp_err=$ac_c_preproc_warn_flag
19451   else
19452     ac_cpp_err=
19453   fi
19454 else
19455   ac_cpp_err=yes
19456 fi
19457 if test -z "$ac_cpp_err"; then
19458   ac_header_preproc=yes
19459 else
19460   echo "$as_me: failed program was:" >&5
19461 sed 's/^/| /' conftest.$ac_ext >&5
19462
19463   ac_header_preproc=no
19464 fi
19465 rm -f conftest.err conftest.$ac_ext
19466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19467 echo "${ECHO_T}$ac_header_preproc" >&6
19468
19469 # So?  What about this header?
19470 case $ac_header_compiler:$ac_header_preproc in
19471   yes:no )
19472     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19476     (
19477       cat <<\_ASBOX
19478 ## ------------------------------------ ##
19479 ## Report this to bug-autoconf@gnu.org. ##
19480 ## ------------------------------------ ##
19481 _ASBOX
19482     ) |
19483       sed "s/^/$as_me: WARNING:     /" >&2
19484     ;;
19485   no:yes )
19486     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19488     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19490     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19492     (
19493       cat <<\_ASBOX
19494 ## ------------------------------------ ##
19495 ## Report this to bug-autoconf@gnu.org. ##
19496 ## ------------------------------------ ##
19497 _ASBOX
19498     ) |
19499       sed "s/^/$as_me: WARNING:     /" >&2
19500     ;;
19501 esac
19502 echo "$as_me:$LINENO: checking for $ac_header" >&5
19503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19505   echo $ECHO_N "(cached) $ECHO_C" >&6
19506 else
19507   eval "$as_ac_Header=$ac_header_preproc"
19508 fi
19509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19511
19512 fi
19513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19514   cat >>confdefs.h <<_ACEOF
19515 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19516 _ACEOF
19517
19518 fi
19519
19520 done
19521
19522
19523 for ac_func in getcwd
19524 do
19525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19526 echo "$as_me:$LINENO: checking for $ac_func" >&5
19527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19528 if eval "test \"\${$as_ac_var+set}\" = set"; then
19529   echo $ECHO_N "(cached) $ECHO_C" >&6
19530 else
19531   cat >conftest.$ac_ext <<_ACEOF
19532 #line $LINENO "configure"
19533 /* confdefs.h.  */
19534 _ACEOF
19535 cat confdefs.h >>conftest.$ac_ext
19536 cat >>conftest.$ac_ext <<_ACEOF
19537 /* end confdefs.h.  */
19538 /* System header to define __stub macros and hopefully few prototypes,
19539     which can conflict with char $ac_func (); below.
19540     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19541     <limits.h> exists even on freestanding compilers.  */
19542 #ifdef __STDC__
19543 # include <limits.h>
19544 #else
19545 # include <assert.h>
19546 #endif
19547 /* Override any gcc2 internal prototype to avoid an error.  */
19548 #ifdef __cplusplus
19549 extern "C"
19550 {
19551 #endif
19552 /* We use char because int might match the return type of a gcc2
19553    builtin and then its argument prototype would still apply.  */
19554 char $ac_func ();
19555 /* The GNU C library defines this for functions which it implements
19556     to always fail with ENOSYS.  Some functions are actually named
19557     something starting with __ and the normal name is an alias.  */
19558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19559 choke me
19560 #else
19561 char (*f) () = $ac_func;
19562 #endif
19563 #ifdef __cplusplus
19564 }
19565 #endif
19566
19567 int
19568 main ()
19569 {
19570 return f != $ac_func;
19571   ;
19572   return 0;
19573 }
19574 _ACEOF
19575 rm -f conftest.$ac_objext conftest$ac_exeext
19576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19577   (eval $ac_link) 2>&5
19578   ac_status=$?
19579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580   (exit $ac_status); } &&
19581          { ac_try='test -s conftest$ac_exeext'
19582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583   (eval $ac_try) 2>&5
19584   ac_status=$?
19585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586   (exit $ac_status); }; }; then
19587   eval "$as_ac_var=yes"
19588 else
19589   echo "$as_me: failed program was:" >&5
19590 sed 's/^/| /' conftest.$ac_ext >&5
19591
19592 eval "$as_ac_var=no"
19593 fi
19594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19595 fi
19596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19598 if test `eval echo '${'$as_ac_var'}'` = yes; then
19599   cat >>confdefs.h <<_ACEOF
19600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19601 _ACEOF
19602
19603 fi
19604 done
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614 for ac_header in limits.h stdlib.h sys/types.h unistd.h
19615 do
19616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19618   echo "$as_me:$LINENO: checking for $ac_header" >&5
19619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19621   echo $ECHO_N "(cached) $ECHO_C" >&6
19622 fi
19623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19625 else
19626   # Is the header compilable?
19627 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19629 cat >conftest.$ac_ext <<_ACEOF
19630 #line $LINENO "configure"
19631 /* confdefs.h.  */
19632 _ACEOF
19633 cat confdefs.h >>conftest.$ac_ext
19634 cat >>conftest.$ac_ext <<_ACEOF
19635 /* end confdefs.h.  */
19636 $ac_includes_default
19637 #include <$ac_header>
19638 _ACEOF
19639 rm -f conftest.$ac_objext
19640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19641   (eval $ac_compile) 2>&5
19642   ac_status=$?
19643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644   (exit $ac_status); } &&
19645          { ac_try='test -s conftest.$ac_objext'
19646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647   (eval $ac_try) 2>&5
19648   ac_status=$?
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); }; }; then
19651   ac_header_compiler=yes
19652 else
19653   echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19655
19656 ac_header_compiler=no
19657 fi
19658 rm -f conftest.$ac_objext conftest.$ac_ext
19659 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19660 echo "${ECHO_T}$ac_header_compiler" >&6
19661
19662 # Is the header present?
19663 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19664 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19665 cat >conftest.$ac_ext <<_ACEOF
19666 #line $LINENO "configure"
19667 /* confdefs.h.  */
19668 _ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h.  */
19672 #include <$ac_header>
19673 _ACEOF
19674 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19675   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19676   ac_status=$?
19677   grep -v '^ *+' conftest.er1 >conftest.err
19678   rm -f conftest.er1
19679   cat conftest.err >&5
19680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681   (exit $ac_status); } >/dev/null; then
19682   if test -s conftest.err; then
19683     ac_cpp_err=$ac_c_preproc_warn_flag
19684   else
19685     ac_cpp_err=
19686   fi
19687 else
19688   ac_cpp_err=yes
19689 fi
19690 if test -z "$ac_cpp_err"; then
19691   ac_header_preproc=yes
19692 else
19693   echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19695
19696   ac_header_preproc=no
19697 fi
19698 rm -f conftest.err conftest.$ac_ext
19699 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19700 echo "${ECHO_T}$ac_header_preproc" >&6
19701
19702 # So?  What about this header?
19703 case $ac_header_compiler:$ac_header_preproc in
19704   yes:no )
19705     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19706 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19707     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19709     (
19710       cat <<\_ASBOX
19711 ## ------------------------------------ ##
19712 ## Report this to bug-autoconf@gnu.org. ##
19713 ## ------------------------------------ ##
19714 _ASBOX
19715     ) |
19716       sed "s/^/$as_me: WARNING:     /" >&2
19717     ;;
19718   no:yes )
19719     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19721     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19723     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19725     (
19726       cat <<\_ASBOX
19727 ## ------------------------------------ ##
19728 ## Report this to bug-autoconf@gnu.org. ##
19729 ## ------------------------------------ ##
19730 _ASBOX
19731     ) |
19732       sed "s/^/$as_me: WARNING:     /" >&2
19733     ;;
19734 esac
19735 echo "$as_me:$LINENO: checking for $ac_header" >&5
19736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19738   echo $ECHO_N "(cached) $ECHO_C" >&6
19739 else
19740   eval "$as_ac_Header=$ac_header_preproc"
19741 fi
19742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19744
19745 fi
19746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19747   cat >>confdefs.h <<_ACEOF
19748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19749 _ACEOF
19750
19751 fi
19752
19753 done
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775    # called by mkstemp
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788 ac_header_dirent=no
19789 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19790   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19791 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19792 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19794   echo $ECHO_N "(cached) $ECHO_C" >&6
19795 else
19796   cat >conftest.$ac_ext <<_ACEOF
19797 #line $LINENO "configure"
19798 /* confdefs.h.  */
19799 _ACEOF
19800 cat confdefs.h >>conftest.$ac_ext
19801 cat >>conftest.$ac_ext <<_ACEOF
19802 /* end confdefs.h.  */
19803 #include <sys/types.h>
19804 #include <$ac_hdr>
19805
19806 int
19807 main ()
19808 {
19809 if ((DIR *) 0)
19810 return 0;
19811   ;
19812   return 0;
19813 }
19814 _ACEOF
19815 rm -f conftest.$ac_objext
19816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19817   (eval $ac_compile) 2>&5
19818   ac_status=$?
19819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820   (exit $ac_status); } &&
19821          { ac_try='test -s conftest.$ac_objext'
19822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19823   (eval $ac_try) 2>&5
19824   ac_status=$?
19825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826   (exit $ac_status); }; }; then
19827   eval "$as_ac_Header=yes"
19828 else
19829   echo "$as_me: failed program was:" >&5
19830 sed 's/^/| /' conftest.$ac_ext >&5
19831
19832 eval "$as_ac_Header=no"
19833 fi
19834 rm -f conftest.$ac_objext conftest.$ac_ext
19835 fi
19836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19839   cat >>confdefs.h <<_ACEOF
19840 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19841 _ACEOF
19842
19843 ac_header_dirent=$ac_hdr; break
19844 fi
19845
19846 done
19847 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19848 if test $ac_header_dirent = dirent.h; then
19849
19850   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19851 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19852 if test "${ac_cv_search_opendir+set}" = set; then
19853   echo $ECHO_N "(cached) $ECHO_C" >&6
19854 else
19855
19856     ac_func_search_save_LIBS=$LIBS
19857     ac_cv_search_opendir=no
19858     cat >conftest.$ac_ext <<_ACEOF
19859 #line $LINENO "configure"
19860 /* confdefs.h.  */
19861 _ACEOF
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h.  */
19865
19866 /* Override any gcc2 internal prototype to avoid an error.  */
19867 #ifdef __cplusplus
19868 extern "C"
19869 #endif
19870 /* We use char because int might match the return type of a gcc2
19871    builtin and then its argument prototype would still apply.  */
19872 char opendir ();
19873 int
19874 main ()
19875 {
19876 opendir ();
19877   ;
19878   return 0;
19879 }
19880 _ACEOF
19881 rm -f conftest.$ac_objext conftest$ac_exeext
19882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19883   (eval $ac_link) 2>&5
19884   ac_status=$?
19885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886   (exit $ac_status); } &&
19887          { ac_try='test -s conftest$ac_exeext'
19888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19889   (eval $ac_try) 2>&5
19890   ac_status=$?
19891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892   (exit $ac_status); }; }; then
19893   ac_cv_search_opendir='none required'
19894 else
19895   echo "$as_me: failed program was:" >&5
19896 sed 's/^/| /' conftest.$ac_ext >&5
19897
19898 fi
19899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19900     if test "$ac_cv_search_opendir" = no; then
19901       for ac_lib in dir; do
19902         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19903         cat >conftest.$ac_ext <<_ACEOF
19904 #line $LINENO "configure"
19905 /* confdefs.h.  */
19906 _ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h.  */
19910
19911 /* Override any gcc2 internal prototype to avoid an error.  */
19912 #ifdef __cplusplus
19913 extern "C"
19914 #endif
19915 /* We use char because int might match the return type of a gcc2
19916    builtin and then its argument prototype would still apply.  */
19917 char opendir ();
19918 int
19919 main ()
19920 {
19921 opendir ();
19922   ;
19923   return 0;
19924 }
19925 _ACEOF
19926 rm -f conftest.$ac_objext conftest$ac_exeext
19927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19928   (eval $ac_link) 2>&5
19929   ac_status=$?
19930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931   (exit $ac_status); } &&
19932          { ac_try='test -s conftest$ac_exeext'
19933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934   (eval $ac_try) 2>&5
19935   ac_status=$?
19936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937   (exit $ac_status); }; }; then
19938   ac_cv_search_opendir="-l$ac_lib"; break
19939 else
19940   echo "$as_me: failed program was:" >&5
19941 sed 's/^/| /' conftest.$ac_ext >&5
19942
19943 fi
19944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19945       done
19946     fi
19947     LIBS=$ac_func_search_save_LIBS
19948
19949 fi
19950 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19951 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19952
19953   if test "$ac_cv_search_opendir" = no; then :
19954
19955   else
19956     if test "$ac_cv_search_opendir" = 'none required'; then :
19957
19958     else
19959       LIBS="$ac_cv_search_opendir $LIBS"
19960
19961     fi
19962   fi
19963
19964 else
19965
19966   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19967 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19968 if test "${ac_cv_search_opendir+set}" = set; then
19969   echo $ECHO_N "(cached) $ECHO_C" >&6
19970 else
19971
19972     ac_func_search_save_LIBS=$LIBS
19973     ac_cv_search_opendir=no
19974     cat >conftest.$ac_ext <<_ACEOF
19975 #line $LINENO "configure"
19976 /* confdefs.h.  */
19977 _ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h.  */
19981
19982 /* Override any gcc2 internal prototype to avoid an error.  */
19983 #ifdef __cplusplus
19984 extern "C"
19985 #endif
19986 /* We use char because int might match the return type of a gcc2
19987    builtin and then its argument prototype would still apply.  */
19988 char opendir ();
19989 int
19990 main ()
19991 {
19992 opendir ();
19993   ;
19994   return 0;
19995 }
19996 _ACEOF
19997 rm -f conftest.$ac_objext conftest$ac_exeext
19998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19999   (eval $ac_link) 2>&5
20000   ac_status=$?
20001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002   (exit $ac_status); } &&
20003          { ac_try='test -s conftest$ac_exeext'
20004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005   (eval $ac_try) 2>&5
20006   ac_status=$?
20007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008   (exit $ac_status); }; }; then
20009   ac_cv_search_opendir='none required'
20010 else
20011   echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20013
20014 fi
20015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20016     if test "$ac_cv_search_opendir" = no; then
20017       for ac_lib in x; do
20018         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20019         cat >conftest.$ac_ext <<_ACEOF
20020 #line $LINENO "configure"
20021 /* confdefs.h.  */
20022 _ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h.  */
20026
20027 /* Override any gcc2 internal prototype to avoid an error.  */
20028 #ifdef __cplusplus
20029 extern "C"
20030 #endif
20031 /* We use char because int might match the return type of a gcc2
20032    builtin and then its argument prototype would still apply.  */
20033 char opendir ();
20034 int
20035 main ()
20036 {
20037 opendir ();
20038   ;
20039   return 0;
20040 }
20041 _ACEOF
20042 rm -f conftest.$ac_objext conftest$ac_exeext
20043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20044   (eval $ac_link) 2>&5
20045   ac_status=$?
20046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047   (exit $ac_status); } &&
20048          { ac_try='test -s conftest$ac_exeext'
20049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20050   (eval $ac_try) 2>&5
20051   ac_status=$?
20052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053   (exit $ac_status); }; }; then
20054   ac_cv_search_opendir="-l$ac_lib"; break
20055 else
20056   echo "$as_me: failed program was:" >&5
20057 sed 's/^/| /' conftest.$ac_ext >&5
20058
20059 fi
20060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20061       done
20062     fi
20063     LIBS=$ac_func_search_save_LIBS
20064
20065 fi
20066 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20067 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20068
20069   if test "$ac_cv_search_opendir" = no; then :
20070
20071   else
20072     if test "$ac_cv_search_opendir" = 'none required'; then :
20073
20074     else
20075       LIBS="$ac_cv_search_opendir $LIBS"
20076
20077     fi
20078   fi
20079
20080 fi
20081
20082   dirfd_headers='
20083 #if HAVE_DIRENT_H
20084 # include <dirent.h>
20085 #else /* not HAVE_DIRENT_H */
20086 # define dirent direct
20087 # if HAVE_SYS_NDIR_H
20088 #  include <sys/ndir.h>
20089 # endif /* HAVE_SYS_NDIR_H */
20090 # if HAVE_SYS_DIR_H
20091 #  include <sys/dir.h>
20092 # endif /* HAVE_SYS_DIR_H */
20093 # if HAVE_NDIR_H
20094 #  include <ndir.h>
20095 # endif /* HAVE_NDIR_H */
20096 #endif /* HAVE_DIRENT_H */
20097 '
20098
20099 for ac_func in dirfd
20100 do
20101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20102 echo "$as_me:$LINENO: checking for $ac_func" >&5
20103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20104 if eval "test \"\${$as_ac_var+set}\" = set"; then
20105   echo $ECHO_N "(cached) $ECHO_C" >&6
20106 else
20107   cat >conftest.$ac_ext <<_ACEOF
20108 #line $LINENO "configure"
20109 /* confdefs.h.  */
20110 _ACEOF
20111 cat confdefs.h >>conftest.$ac_ext
20112 cat >>conftest.$ac_ext <<_ACEOF
20113 /* end confdefs.h.  */
20114 /* System header to define __stub macros and hopefully few prototypes,
20115     which can conflict with char $ac_func (); below.
20116     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20117     <limits.h> exists even on freestanding compilers.  */
20118 #ifdef __STDC__
20119 # include <limits.h>
20120 #else
20121 # include <assert.h>
20122 #endif
20123 /* Override any gcc2 internal prototype to avoid an error.  */
20124 #ifdef __cplusplus
20125 extern "C"
20126 {
20127 #endif
20128 /* We use char because int might match the return type of a gcc2
20129    builtin and then its argument prototype would still apply.  */
20130 char $ac_func ();
20131 /* The GNU C library defines this for functions which it implements
20132     to always fail with ENOSYS.  Some functions are actually named
20133     something starting with __ and the normal name is an alias.  */
20134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20135 choke me
20136 #else
20137 char (*f) () = $ac_func;
20138 #endif
20139 #ifdef __cplusplus
20140 }
20141 #endif
20142
20143 int
20144 main ()
20145 {
20146 return f != $ac_func;
20147   ;
20148   return 0;
20149 }
20150 _ACEOF
20151 rm -f conftest.$ac_objext conftest$ac_exeext
20152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20153   (eval $ac_link) 2>&5
20154   ac_status=$?
20155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156   (exit $ac_status); } &&
20157          { ac_try='test -s conftest$ac_exeext'
20158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159   (eval $ac_try) 2>&5
20160   ac_status=$?
20161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162   (exit $ac_status); }; }; then
20163   eval "$as_ac_var=yes"
20164 else
20165   echo "$as_me: failed program was:" >&5
20166 sed 's/^/| /' conftest.$ac_ext >&5
20167
20168 eval "$as_ac_var=no"
20169 fi
20170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20171 fi
20172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20174 if test `eval echo '${'$as_ac_var'}'` = yes; then
20175   cat >>confdefs.h <<_ACEOF
20176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20177 _ACEOF
20178
20179 fi
20180 done
20181
20182   echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
20183 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6
20184 if test "${ac_cv_have_decl_dirfd+set}" = set; then
20185   echo $ECHO_N "(cached) $ECHO_C" >&6
20186 else
20187   cat >conftest.$ac_ext <<_ACEOF
20188 #line $LINENO "configure"
20189 /* confdefs.h.  */
20190 _ACEOF
20191 cat confdefs.h >>conftest.$ac_ext
20192 cat >>conftest.$ac_ext <<_ACEOF
20193 /* end confdefs.h.  */
20194 $dirfd_headers
20195
20196 int
20197 main ()
20198 {
20199 #ifndef dirfd
20200   char *p = (char *) dirfd;
20201 #endif
20202
20203   ;
20204   return 0;
20205 }
20206 _ACEOF
20207 rm -f conftest.$ac_objext
20208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20209   (eval $ac_compile) 2>&5
20210   ac_status=$?
20211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212   (exit $ac_status); } &&
20213          { ac_try='test -s conftest.$ac_objext'
20214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215   (eval $ac_try) 2>&5
20216   ac_status=$?
20217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218   (exit $ac_status); }; }; then
20219   ac_cv_have_decl_dirfd=yes
20220 else
20221   echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20223
20224 ac_cv_have_decl_dirfd=no
20225 fi
20226 rm -f conftest.$ac_objext conftest.$ac_ext
20227 fi
20228 echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
20229 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6
20230 if test $ac_cv_have_decl_dirfd = yes; then
20231
20232 cat >>confdefs.h <<_ACEOF
20233 #define HAVE_DECL_DIRFD 1
20234 _ACEOF
20235
20236
20237 else
20238   cat >>confdefs.h <<_ACEOF
20239 #define HAVE_DECL_DIRFD 0
20240 _ACEOF
20241
20242
20243 fi
20244
20245
20246
20247   echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
20248 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6
20249 if test "${jm_cv_func_dirfd_macro+set}" = set; then
20250   echo $ECHO_N "(cached) $ECHO_C" >&6
20251 else
20252   cat >conftest.$ac_ext <<_ACEOF
20253 #line $LINENO "configure"
20254 /* confdefs.h.  */
20255 _ACEOF
20256 cat confdefs.h >>conftest.$ac_ext
20257 cat >>conftest.$ac_ext <<_ACEOF
20258 /* end confdefs.h.  */
20259 $dirfd_headers
20260 #ifdef dirfd
20261  dirent_header_defines_dirfd
20262 #endif
20263 _ACEOF
20264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20265   $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
20266   jm_cv_func_dirfd_macro=yes
20267 else
20268   jm_cv_func_dirfd_macro=no
20269 fi
20270 rm -f conftest*
20271
20272 fi
20273 echo "$as_me:$LINENO: result: $jm_cv_func_dirfd_macro" >&5
20274 echo "${ECHO_T}$jm_cv_func_dirfd_macro" >&6
20275
20276   # Use the replacement only if we have no function, macro,
20277   # or declaration with that name.
20278   if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
20279       = no,no,no; then
20280
20281 for ac_func in dirfd
20282 do
20283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20284 echo "$as_me:$LINENO: checking for $ac_func" >&5
20285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20286 if eval "test \"\${$as_ac_var+set}\" = set"; then
20287   echo $ECHO_N "(cached) $ECHO_C" >&6
20288 else
20289   cat >conftest.$ac_ext <<_ACEOF
20290 #line $LINENO "configure"
20291 /* confdefs.h.  */
20292 _ACEOF
20293 cat confdefs.h >>conftest.$ac_ext
20294 cat >>conftest.$ac_ext <<_ACEOF
20295 /* end confdefs.h.  */
20296 /* System header to define __stub macros and hopefully few prototypes,
20297     which can conflict with char $ac_func (); below.
20298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20299     <limits.h> exists even on freestanding compilers.  */
20300 #ifdef __STDC__
20301 # include <limits.h>
20302 #else
20303 # include <assert.h>
20304 #endif
20305 /* Override any gcc2 internal prototype to avoid an error.  */
20306 #ifdef __cplusplus
20307 extern "C"
20308 {
20309 #endif
20310 /* We use char because int might match the return type of a gcc2
20311    builtin and then its argument prototype would still apply.  */
20312 char $ac_func ();
20313 /* The GNU C library defines this for functions which it implements
20314     to always fail with ENOSYS.  Some functions are actually named
20315     something starting with __ and the normal name is an alias.  */
20316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20317 choke me
20318 #else
20319 char (*f) () = $ac_func;
20320 #endif
20321 #ifdef __cplusplus
20322 }
20323 #endif
20324
20325 int
20326 main ()
20327 {
20328 return f != $ac_func;
20329   ;
20330   return 0;
20331 }
20332 _ACEOF
20333 rm -f conftest.$ac_objext conftest$ac_exeext
20334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20335   (eval $ac_link) 2>&5
20336   ac_status=$?
20337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338   (exit $ac_status); } &&
20339          { ac_try='test -s conftest$ac_exeext'
20340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341   (eval $ac_try) 2>&5
20342   ac_status=$?
20343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344   (exit $ac_status); }; }; then
20345   eval "$as_ac_var=yes"
20346 else
20347   echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20349
20350 eval "$as_ac_var=no"
20351 fi
20352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20353 fi
20354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20356 if test `eval echo '${'$as_ac_var'}'` = yes; then
20357   cat >>confdefs.h <<_ACEOF
20358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20359 _ACEOF
20360
20361 else
20362   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20363 fi
20364 done
20365
20366
20367     echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
20368 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6
20369 if test "${ac_cv_sys_dir_fd_member_name+set}" = set; then
20370   echo $ECHO_N "(cached) $ECHO_C" >&6
20371 else
20372
20373         dirfd_save_CFLAGS=$CFLAGS
20374         for ac_expr in d_fd dd_fd; do
20375
20376           CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
20377           cat >conftest.$ac_ext <<_ACEOF
20378 #line $LINENO "configure"
20379 /* confdefs.h.  */
20380 _ACEOF
20381 cat confdefs.h >>conftest.$ac_ext
20382 cat >>conftest.$ac_ext <<_ACEOF
20383 /* end confdefs.h.  */
20384 $dirfd_headers
20385
20386 int
20387 main ()
20388 {
20389 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
20390   ;
20391   return 0;
20392 }
20393 _ACEOF
20394 rm -f conftest.$ac_objext
20395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20396   (eval $ac_compile) 2>&5
20397   ac_status=$?
20398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399   (exit $ac_status); } &&
20400          { ac_try='test -s conftest.$ac_objext'
20401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20402   (eval $ac_try) 2>&5
20403   ac_status=$?
20404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405   (exit $ac_status); }; }; then
20406   dir_fd_found=yes
20407
20408 else
20409   echo "$as_me: failed program was:" >&5
20410 sed 's/^/| /' conftest.$ac_ext >&5
20411
20412 fi
20413 rm -f conftest.$ac_objext conftest.$ac_ext
20414           CFLAGS=$dirfd_save_CFLAGS
20415           test "$dir_fd_found" = yes && break
20416         done
20417         test "$dir_fd_found" = yes || ac_expr=-1
20418
20419         ac_cv_sys_dir_fd_member_name=$ac_expr
20420
20421
20422 fi
20423 echo "$as_me:$LINENO: result: $ac_cv_sys_dir_fd_member_name" >&5
20424 echo "${ECHO_T}$ac_cv_sys_dir_fd_member_name" >&6
20425     if test $ac_cv_have_decl_dirfd = no; then
20426
20427 cat >>confdefs.h <<_ACEOF
20428 #define DIR_FD_MEMBER_NAME $ac_cv_sys_dir_fd_member_name
20429 _ACEOF
20430
20431     fi
20432
20433
20434   fi
20435
20436
20437 for ac_header in sys/acl.h
20438 do
20439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20441   echo "$as_me:$LINENO: checking for $ac_header" >&5
20442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20444   echo $ECHO_N "(cached) $ECHO_C" >&6
20445 fi
20446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20448 else
20449   # Is the header compilable?
20450 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20452 cat >conftest.$ac_ext <<_ACEOF
20453 #line $LINENO "configure"
20454 /* confdefs.h.  */
20455 _ACEOF
20456 cat confdefs.h >>conftest.$ac_ext
20457 cat >>conftest.$ac_ext <<_ACEOF
20458 /* end confdefs.h.  */
20459 $ac_includes_default
20460 #include <$ac_header>
20461 _ACEOF
20462 rm -f conftest.$ac_objext
20463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20464   (eval $ac_compile) 2>&5
20465   ac_status=$?
20466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467   (exit $ac_status); } &&
20468          { ac_try='test -s conftest.$ac_objext'
20469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470   (eval $ac_try) 2>&5
20471   ac_status=$?
20472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473   (exit $ac_status); }; }; then
20474   ac_header_compiler=yes
20475 else
20476   echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20478
20479 ac_header_compiler=no
20480 fi
20481 rm -f conftest.$ac_objext conftest.$ac_ext
20482 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20483 echo "${ECHO_T}$ac_header_compiler" >&6
20484
20485 # Is the header present?
20486 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20488 cat >conftest.$ac_ext <<_ACEOF
20489 #line $LINENO "configure"
20490 /* confdefs.h.  */
20491 _ACEOF
20492 cat confdefs.h >>conftest.$ac_ext
20493 cat >>conftest.$ac_ext <<_ACEOF
20494 /* end confdefs.h.  */
20495 #include <$ac_header>
20496 _ACEOF
20497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20498   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20499   ac_status=$?
20500   grep -v '^ *+' conftest.er1 >conftest.err
20501   rm -f conftest.er1
20502   cat conftest.err >&5
20503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504   (exit $ac_status); } >/dev/null; then
20505   if test -s conftest.err; then
20506     ac_cpp_err=$ac_c_preproc_warn_flag
20507   else
20508     ac_cpp_err=
20509   fi
20510 else
20511   ac_cpp_err=yes
20512 fi
20513 if test -z "$ac_cpp_err"; then
20514   ac_header_preproc=yes
20515 else
20516   echo "$as_me: failed program was:" >&5
20517 sed 's/^/| /' conftest.$ac_ext >&5
20518
20519   ac_header_preproc=no
20520 fi
20521 rm -f conftest.err conftest.$ac_ext
20522 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20523 echo "${ECHO_T}$ac_header_preproc" >&6
20524
20525 # So?  What about this header?
20526 case $ac_header_compiler:$ac_header_preproc in
20527   yes:no )
20528     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20530     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20532     (
20533       cat <<\_ASBOX
20534 ## ------------------------------------ ##
20535 ## Report this to bug-autoconf@gnu.org. ##
20536 ## ------------------------------------ ##
20537 _ASBOX
20538     ) |
20539       sed "s/^/$as_me: WARNING:     /" >&2
20540     ;;
20541   no:yes )
20542     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20543 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20544     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20545 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20546     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20548     (
20549       cat <<\_ASBOX
20550 ## ------------------------------------ ##
20551 ## Report this to bug-autoconf@gnu.org. ##
20552 ## ------------------------------------ ##
20553 _ASBOX
20554     ) |
20555       sed "s/^/$as_me: WARNING:     /" >&2
20556     ;;
20557 esac
20558 echo "$as_me:$LINENO: checking for $ac_header" >&5
20559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20561   echo $ECHO_N "(cached) $ECHO_C" >&6
20562 else
20563   eval "$as_ac_Header=$ac_header_preproc"
20564 fi
20565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20567
20568 fi
20569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20570   cat >>confdefs.h <<_ACEOF
20571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20572 _ACEOF
20573
20574 fi
20575
20576 done
20577
20578
20579 for ac_func in acl
20580 do
20581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20582 echo "$as_me:$LINENO: checking for $ac_func" >&5
20583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20584 if eval "test \"\${$as_ac_var+set}\" = set"; then
20585   echo $ECHO_N "(cached) $ECHO_C" >&6
20586 else
20587   cat >conftest.$ac_ext <<_ACEOF
20588 #line $LINENO "configure"
20589 /* confdefs.h.  */
20590 _ACEOF
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h.  */
20594 /* System header to define __stub macros and hopefully few prototypes,
20595     which can conflict with char $ac_func (); below.
20596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20597     <limits.h> exists even on freestanding compilers.  */
20598 #ifdef __STDC__
20599 # include <limits.h>
20600 #else
20601 # include <assert.h>
20602 #endif
20603 /* Override any gcc2 internal prototype to avoid an error.  */
20604 #ifdef __cplusplus
20605 extern "C"
20606 {
20607 #endif
20608 /* We use char because int might match the return type of a gcc2
20609    builtin and then its argument prototype would still apply.  */
20610 char $ac_func ();
20611 /* The GNU C library defines this for functions which it implements
20612     to always fail with ENOSYS.  Some functions are actually named
20613     something starting with __ and the normal name is an alias.  */
20614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20615 choke me
20616 #else
20617 char (*f) () = $ac_func;
20618 #endif
20619 #ifdef __cplusplus
20620 }
20621 #endif
20622
20623 int
20624 main ()
20625 {
20626 return f != $ac_func;
20627   ;
20628   return 0;
20629 }
20630 _ACEOF
20631 rm -f conftest.$ac_objext conftest$ac_exeext
20632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20633   (eval $ac_link) 2>&5
20634   ac_status=$?
20635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636   (exit $ac_status); } &&
20637          { ac_try='test -s conftest$ac_exeext'
20638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20639   (eval $ac_try) 2>&5
20640   ac_status=$?
20641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642   (exit $ac_status); }; }; then
20643   eval "$as_ac_var=yes"
20644 else
20645   echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20647
20648 eval "$as_ac_var=no"
20649 fi
20650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20651 fi
20652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20653 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20654 if test `eval echo '${'$as_ac_var'}'` = yes; then
20655   cat >>confdefs.h <<_ACEOF
20656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20657 _ACEOF
20658
20659 fi
20660 done
20661
20662 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
20663 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
20664 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
20665   echo $ECHO_N "(cached) $ECHO_C" >&6
20666 else
20667   rm -f conftest.sym conftest.file
20668 echo >conftest.file
20669 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20670   if test "$cross_compiling" = yes; then
20671   ac_cv_func_lstat_dereferences_slashed_symlink=no
20672 else
20673   cat >conftest.$ac_ext <<_ACEOF
20674 #line $LINENO "configure"
20675 /* confdefs.h.  */
20676 _ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h.  */
20680 $ac_includes_default
20681 int
20682 main ()
20683 {
20684 struct stat sbuf;
20685      /* Linux will dereference the symlink and fail.
20686         That is better in the sense that it means we will not
20687         have to compile and use the lstat wrapper.  */
20688      exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
20689   ;
20690   return 0;
20691 }
20692 _ACEOF
20693 rm -f conftest$ac_exeext
20694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20695   (eval $ac_link) 2>&5
20696   ac_status=$?
20697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20700   (eval $ac_try) 2>&5
20701   ac_status=$?
20702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703   (exit $ac_status); }; }; then
20704   ac_cv_func_lstat_dereferences_slashed_symlink=yes
20705 else
20706   echo "$as_me: program exited with status $ac_status" >&5
20707 echo "$as_me: failed program was:" >&5
20708 sed 's/^/| /' conftest.$ac_ext >&5
20709
20710 ( exit $ac_status )
20711 ac_cv_func_lstat_dereferences_slashed_symlink=no
20712 fi
20713 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20714 fi
20715 else
20716   # If the `ln -s' command failed, then we probably don't even
20717   # have an lstat function.
20718   ac_cv_func_lstat_dereferences_slashed_symlink=no
20719 fi
20720 rm -f conftest.sym conftest.file
20721
20722 fi
20723 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
20724 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
20725
20726 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
20727
20728 cat >>confdefs.h <<_ACEOF
20729 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
20730 _ACEOF
20731
20732
20733 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
20734   LIBOBJS="$LIBOBJS lstat.$ac_objext"
20735 fi
20736
20737
20738
20739  echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
20740 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
20741 if test "${jm_cv_func_lstat_empty_string_bug+set}" = set; then
20742   echo $ECHO_N "(cached) $ECHO_C" >&6
20743 else
20744   if test "$cross_compiling" = yes; then
20745          jm_cv_func_lstat_empty_string_bug=yes
20746 else
20747   cat >conftest.$ac_ext <<_ACEOF
20748 #line $LINENO "configure"
20749 /* confdefs.h.  */
20750 _ACEOF
20751 cat confdefs.h >>conftest.$ac_ext
20752 cat >>conftest.$ac_ext <<_ACEOF
20753 /* end confdefs.h.  */
20754
20755 #   include <sys/types.h>
20756 #   include <sys/stat.h>
20757
20758     int
20759     main ()
20760     {
20761       struct stat sbuf;
20762       exit (lstat ("", &sbuf) ? 1 : 0);
20763     }
20764
20765 _ACEOF
20766 rm -f conftest$ac_exeext
20767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20768   (eval $ac_link) 2>&5
20769   ac_status=$?
20770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773   (eval $ac_try) 2>&5
20774   ac_status=$?
20775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776   (exit $ac_status); }; }; then
20777   jm_cv_func_lstat_empty_string_bug=yes
20778 else
20779   echo "$as_me: program exited with status $ac_status" >&5
20780 echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20782
20783 ( exit $ac_status )
20784 jm_cv_func_lstat_empty_string_bug=no
20785 fi
20786 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20787 fi
20788
20789 fi
20790 echo "$as_me:$LINENO: result: $jm_cv_func_lstat_empty_string_bug" >&5
20791 echo "${ECHO_T}$jm_cv_func_lstat_empty_string_bug" >&6
20792   if test $jm_cv_func_lstat_empty_string_bug = yes; then
20793     LIBOBJS="$LIBOBJS lstat.$ac_objext"
20794
20795 cat >>confdefs.h <<\_ACEOF
20796 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
20797 _ACEOF
20798
20799   fi
20800
20801
20802   # prerequisites
20803
20804
20805
20806 for ac_header in sys/param.h
20807 do
20808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20810   echo "$as_me:$LINENO: checking for $ac_header" >&5
20811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20813   echo $ECHO_N "(cached) $ECHO_C" >&6
20814 fi
20815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20817 else
20818   # Is the header compilable?
20819 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20821 cat >conftest.$ac_ext <<_ACEOF
20822 #line $LINENO "configure"
20823 /* confdefs.h.  */
20824 _ACEOF
20825 cat confdefs.h >>conftest.$ac_ext
20826 cat >>conftest.$ac_ext <<_ACEOF
20827 /* end confdefs.h.  */
20828 $ac_includes_default
20829 #include <$ac_header>
20830 _ACEOF
20831 rm -f conftest.$ac_objext
20832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20833   (eval $ac_compile) 2>&5
20834   ac_status=$?
20835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836   (exit $ac_status); } &&
20837          { ac_try='test -s conftest.$ac_objext'
20838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20839   (eval $ac_try) 2>&5
20840   ac_status=$?
20841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842   (exit $ac_status); }; }; then
20843   ac_header_compiler=yes
20844 else
20845   echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20847
20848 ac_header_compiler=no
20849 fi
20850 rm -f conftest.$ac_objext conftest.$ac_ext
20851 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20852 echo "${ECHO_T}$ac_header_compiler" >&6
20853
20854 # Is the header present?
20855 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20857 cat >conftest.$ac_ext <<_ACEOF
20858 #line $LINENO "configure"
20859 /* confdefs.h.  */
20860 _ACEOF
20861 cat confdefs.h >>conftest.$ac_ext
20862 cat >>conftest.$ac_ext <<_ACEOF
20863 /* end confdefs.h.  */
20864 #include <$ac_header>
20865 _ACEOF
20866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20867   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20868   ac_status=$?
20869   grep -v '^ *+' conftest.er1 >conftest.err
20870   rm -f conftest.er1
20871   cat conftest.err >&5
20872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873   (exit $ac_status); } >/dev/null; then
20874   if test -s conftest.err; then
20875     ac_cpp_err=$ac_c_preproc_warn_flag
20876   else
20877     ac_cpp_err=
20878   fi
20879 else
20880   ac_cpp_err=yes
20881 fi
20882 if test -z "$ac_cpp_err"; then
20883   ac_header_preproc=yes
20884 else
20885   echo "$as_me: failed program was:" >&5
20886 sed 's/^/| /' conftest.$ac_ext >&5
20887
20888   ac_header_preproc=no
20889 fi
20890 rm -f conftest.err conftest.$ac_ext
20891 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20892 echo "${ECHO_T}$ac_header_preproc" >&6
20893
20894 # So?  What about this header?
20895 case $ac_header_compiler:$ac_header_preproc in
20896   yes:no )
20897     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20899     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20901     (
20902       cat <<\_ASBOX
20903 ## ------------------------------------ ##
20904 ## Report this to bug-autoconf@gnu.org. ##
20905 ## ------------------------------------ ##
20906 _ASBOX
20907     ) |
20908       sed "s/^/$as_me: WARNING:     /" >&2
20909     ;;
20910   no:yes )
20911     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20913     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20915     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20917     (
20918       cat <<\_ASBOX
20919 ## ------------------------------------ ##
20920 ## Report this to bug-autoconf@gnu.org. ##
20921 ## ------------------------------------ ##
20922 _ASBOX
20923     ) |
20924       sed "s/^/$as_me: WARNING:     /" >&2
20925     ;;
20926 esac
20927 echo "$as_me:$LINENO: checking for $ac_header" >&5
20928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20930   echo $ECHO_N "(cached) $ECHO_C" >&6
20931 else
20932   eval "$as_ac_Header=$ac_header_preproc"
20933 fi
20934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20936
20937 fi
20938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20939   cat >>confdefs.h <<_ACEOF
20940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20941 _ACEOF
20942
20943 fi
20944
20945 done
20946
20947   echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
20948 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
20949 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
20950   echo $ECHO_N "(cached) $ECHO_C" >&6
20951 else
20952   cat >conftest.$ac_ext <<_ACEOF
20953 #line $LINENO "configure"
20954 /* confdefs.h.  */
20955 _ACEOF
20956 cat confdefs.h >>conftest.$ac_ext
20957 cat >>conftest.$ac_ext <<_ACEOF
20958 /* end confdefs.h.  */
20959 $ac_includes_default
20960 int
20961 main ()
20962 {
20963 #ifndef stpcpy
20964   char *p = (char *) stpcpy;
20965 #endif
20966
20967   ;
20968   return 0;
20969 }
20970 _ACEOF
20971 rm -f conftest.$ac_objext
20972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20973   (eval $ac_compile) 2>&5
20974   ac_status=$?
20975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976   (exit $ac_status); } &&
20977          { ac_try='test -s conftest.$ac_objext'
20978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20979   (eval $ac_try) 2>&5
20980   ac_status=$?
20981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982   (exit $ac_status); }; }; then
20983   ac_cv_have_decl_stpcpy=yes
20984 else
20985   echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20987
20988 ac_cv_have_decl_stpcpy=no
20989 fi
20990 rm -f conftest.$ac_objext conftest.$ac_ext
20991 fi
20992 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
20993 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
20994 if test $ac_cv_have_decl_stpcpy = yes; then
20995
20996 cat >>confdefs.h <<_ACEOF
20997 #define HAVE_DECL_STPCPY 1
20998 _ACEOF
20999
21000
21001 else
21002   cat >>confdefs.h <<_ACEOF
21003 #define HAVE_DECL_STPCPY 0
21004 _ACEOF
21005
21006
21007 fi
21008
21009
21010
21011   # In the event that we have to use the replacement ftw.c,
21012   # see if we'll also need the replacement tsearch.c.
21013   echo "$as_me:$LINENO: checking for tdestroy" >&5
21014 echo $ECHO_N "checking for tdestroy... $ECHO_C" >&6
21015 if test "${ac_cv_func_tdestroy+set}" = set; then
21016   echo $ECHO_N "(cached) $ECHO_C" >&6
21017 else
21018   cat >conftest.$ac_ext <<_ACEOF
21019 #line $LINENO "configure"
21020 /* confdefs.h.  */
21021 _ACEOF
21022 cat confdefs.h >>conftest.$ac_ext
21023 cat >>conftest.$ac_ext <<_ACEOF
21024 /* end confdefs.h.  */
21025 /* System header to define __stub macros and hopefully few prototypes,
21026     which can conflict with char tdestroy (); below.
21027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21028     <limits.h> exists even on freestanding compilers.  */
21029 #ifdef __STDC__
21030 # include <limits.h>
21031 #else
21032 # include <assert.h>
21033 #endif
21034 /* Override any gcc2 internal prototype to avoid an error.  */
21035 #ifdef __cplusplus
21036 extern "C"
21037 {
21038 #endif
21039 /* We use char because int might match the return type of a gcc2
21040    builtin and then its argument prototype would still apply.  */
21041 char tdestroy ();
21042 /* The GNU C library defines this for functions which it implements
21043     to always fail with ENOSYS.  Some functions are actually named
21044     something starting with __ and the normal name is an alias.  */
21045 #if defined (__stub_tdestroy) || defined (__stub___tdestroy)
21046 choke me
21047 #else
21048 char (*f) () = tdestroy;
21049 #endif
21050 #ifdef __cplusplus
21051 }
21052 #endif
21053
21054 int
21055 main ()
21056 {
21057 return f != tdestroy;
21058   ;
21059   return 0;
21060 }
21061 _ACEOF
21062 rm -f conftest.$ac_objext conftest$ac_exeext
21063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21064   (eval $ac_link) 2>&5
21065   ac_status=$?
21066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067   (exit $ac_status); } &&
21068          { ac_try='test -s conftest$ac_exeext'
21069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070   (eval $ac_try) 2>&5
21071   ac_status=$?
21072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073   (exit $ac_status); }; }; then
21074   ac_cv_func_tdestroy=yes
21075 else
21076   echo "$as_me: failed program was:" >&5
21077 sed 's/^/| /' conftest.$ac_ext >&5
21078
21079 ac_cv_func_tdestroy=no
21080 fi
21081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21082 fi
21083 echo "$as_me:$LINENO: result: $ac_cv_func_tdestroy" >&5
21084 echo "${ECHO_T}$ac_cv_func_tdestroy" >&6
21085 if test $ac_cv_func_tdestroy = yes; then
21086   :
21087 else
21088   need_tdestroy=1
21089 fi
21090
21091
21092   echo "$as_me:$LINENO: checking for ftw/FTW_CHDIR that informs callback of failed chdir" >&5
21093 echo $ECHO_N "checking for ftw/FTW_CHDIR that informs callback of failed chdir... $ECHO_C" >&6
21094 if test "${ac_cv_func_ftw_working+set}" = set; then
21095   echo $ECHO_N "(cached) $ECHO_C" >&6
21096 else
21097
21098   # The following test would fail prior to glibc-2.3.2, because `depth'
21099   # would be 2 rather than 4.  Of course, now that we require FTW_DCH
21100   # and FTW_DCHP, this test fails even with GNU libc's fixed ftw.
21101   mkdir -p conftest.dir/a/b/c
21102   if test "$cross_compiling" = yes; then
21103   ac_cv_func_ftw_working=no
21104 else
21105   cat >conftest.$ac_ext <<_ACEOF
21106 #line $LINENO "configure"
21107 /* confdefs.h.  */
21108 _ACEOF
21109 cat confdefs.h >>conftest.$ac_ext
21110 cat >>conftest.$ac_ext <<_ACEOF
21111 /* end confdefs.h.  */
21112
21113 #include <string.h>
21114 #include <stdlib.h>
21115 #include <ftw.h>
21116
21117 static char *_f[] = { "conftest.dir", "conftest.dir/a",
21118                       "conftest.dir/a/b", "conftest.dir/a/b/c" };
21119 static char **p = _f;
21120 static int depth;
21121
21122 static int
21123 cb (const char *file, const struct stat *sb, int file_type, struct FTW *info)
21124 {
21125   if (strcmp (file, *p++) != 0)
21126     exit (1);
21127   ++depth;
21128   return 0;
21129 }
21130
21131 int
21132 main ()
21133 {
21134   /* Require these symbols, too.  */
21135   int d1 = FTW_DCH;
21136   int d2 = FTW_DCHP;
21137
21138   int err = nftw ("conftest.dir", cb, 30, FTW_PHYS | FTW_MOUNT | FTW_CHDIR);
21139   exit ((err == 0 && depth == 4) ? 0 : 1);
21140 }
21141
21142 _ACEOF
21143 rm -f conftest$ac_exeext
21144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21145   (eval $ac_link) 2>&5
21146   ac_status=$?
21147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21150   (eval $ac_try) 2>&5
21151   ac_status=$?
21152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153   (exit $ac_status); }; }; then
21154   ac_cv_func_ftw_working=yes
21155 else
21156   echo "$as_me: program exited with status $ac_status" >&5
21157 echo "$as_me: failed program was:" >&5
21158 sed 's/^/| /' conftest.$ac_ext >&5
21159
21160 ( exit $ac_status )
21161 ac_cv_func_ftw_working=no
21162 fi
21163 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21164 fi
21165 fi
21166 echo "$as_me:$LINENO: result: $ac_cv_func_ftw_working" >&5
21167 echo "${ECHO_T}$ac_cv_func_ftw_working" >&6
21168   rm -rf conftest.dir
21169   if test $ac_cv_func_ftw_working = no; then
21170     LIBOBJS="$LIBOBJS ftw.$ac_objext"
21171               ac_config_links="$ac_config_links $ac_config_libobj_dir/ftw.h:$ac_config_libobj_dir/ftw_.h"
21172
21173     # Add tsearch.o IFF we have to use the replacement ftw.c.
21174     if test -n "$need_tdestroy"; then
21175       LIBOBJS="$LIBOBJS tsearch.$ac_objext"
21176       # Link search.h to search_.h if we use the replacement tsearch.c.
21177                 ac_config_links="$ac_config_links $ac_config_libobj_dir/search.h:$ac_config_libobj_dir/search_.h"
21178
21179     fi
21180   fi
21181
21182
21183
21184
21185 for ac_func in lchown
21186 do
21187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21188 echo "$as_me:$LINENO: checking for $ac_func" >&5
21189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21190 if eval "test \"\${$as_ac_var+set}\" = set"; then
21191   echo $ECHO_N "(cached) $ECHO_C" >&6
21192 else
21193   cat >conftest.$ac_ext <<_ACEOF
21194 #line $LINENO "configure"
21195 /* confdefs.h.  */
21196 _ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h.  */
21200 /* System header to define __stub macros and hopefully few prototypes,
21201     which can conflict with char $ac_func (); below.
21202     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21203     <limits.h> exists even on freestanding compilers.  */
21204 #ifdef __STDC__
21205 # include <limits.h>
21206 #else
21207 # include <assert.h>
21208 #endif
21209 /* Override any gcc2 internal prototype to avoid an error.  */
21210 #ifdef __cplusplus
21211 extern "C"
21212 {
21213 #endif
21214 /* We use char because int might match the return type of a gcc2
21215    builtin and then its argument prototype would still apply.  */
21216 char $ac_func ();
21217 /* The GNU C library defines this for functions which it implements
21218     to always fail with ENOSYS.  Some functions are actually named
21219     something starting with __ and the normal name is an alias.  */
21220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21221 choke me
21222 #else
21223 char (*f) () = $ac_func;
21224 #endif
21225 #ifdef __cplusplus
21226 }
21227 #endif
21228
21229 int
21230 main ()
21231 {
21232 return f != $ac_func;
21233   ;
21234   return 0;
21235 }
21236 _ACEOF
21237 rm -f conftest.$ac_objext conftest$ac_exeext
21238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21239   (eval $ac_link) 2>&5
21240   ac_status=$?
21241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242   (exit $ac_status); } &&
21243          { ac_try='test -s conftest$ac_exeext'
21244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21245   (eval $ac_try) 2>&5
21246   ac_status=$?
21247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248   (exit $ac_status); }; }; then
21249   eval "$as_ac_var=yes"
21250 else
21251   echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21253
21254 eval "$as_ac_var=no"
21255 fi
21256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21257 fi
21258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21259 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21260 if test `eval echo '${'$as_ac_var'}'` = yes; then
21261   cat >>confdefs.h <<_ACEOF
21262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21263 _ACEOF
21264
21265 else
21266   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21267 fi
21268 done
21269
21270
21271
21272   echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
21273 echo $ECHO_N "checking for rmdir-not-empty errno value... $ECHO_C" >&6
21274 if test "${fetish_cv_func_rmdir_errno_not_empty+set}" = set; then
21275   echo $ECHO_N "(cached) $ECHO_C" >&6
21276 else
21277
21278       # Arrange for deletion of the temporary directory this test creates.
21279       ac_clean_files="$ac_clean_files confdir2"
21280       mkdir confdir2; : > confdir2/file
21281       if test "$cross_compiling" = yes; then
21282   fetish_cv_func_rmdir_errno_not_empty=ENOTEMPTY
21283
21284 else
21285   cat >conftest.$ac_ext <<_ACEOF
21286 #line $LINENO "configure"
21287 /* confdefs.h.  */
21288 _ACEOF
21289 cat confdefs.h >>conftest.$ac_ext
21290 cat >>conftest.$ac_ext <<_ACEOF
21291 /* end confdefs.h.  */
21292
21293 #include <stdio.h>
21294 #include <errno.h>
21295 #ifndef errno
21296 extern int errno;
21297 #endif
21298         int main ()
21299         {
21300           FILE *s;
21301           int val;
21302           rmdir ("confdir2");
21303           val = errno;
21304           s = fopen ("confdir2/errno", "w");
21305           fprintf (s, "%d\n", val);
21306           exit (0);
21307         }
21308
21309 _ACEOF
21310 rm -f conftest$ac_exeext
21311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21312   (eval $ac_link) 2>&5
21313   ac_status=$?
21314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21317   (eval $ac_try) 2>&5
21318   ac_status=$?
21319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320   (exit $ac_status); }; }; then
21321   fetish_cv_func_rmdir_errno_not_empty=`cat confdir2/errno`
21322 else
21323   echo "$as_me: program exited with status $ac_status" >&5
21324 echo "$as_me: failed program was:" >&5
21325 sed 's/^/| /' conftest.$ac_ext >&5
21326
21327 ( exit $ac_status )
21328 fetish_cv_func_rmdir_errno_not_empty='configure error in rmdir-errno.m4'
21329 fi
21330 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21331 fi
21332
21333
21334 fi
21335 echo "$as_me:$LINENO: result: $fetish_cv_func_rmdir_errno_not_empty" >&5
21336 echo "${ECHO_T}$fetish_cv_func_rmdir_errno_not_empty" >&6
21337
21338
21339 cat >>confdefs.h <<_ACEOF
21340 #define RMDIR_ERRNO_NOT_EMPTY $fetish_cv_func_rmdir_errno_not_empty
21341 _ACEOF
21342
21343
21344  test -z "$ac_cv_header_unistd_h" \
21345    &&
21346 for ac_header in unistd.h
21347 do
21348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21350   echo "$as_me:$LINENO: checking for $ac_header" >&5
21351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21353   echo $ECHO_N "(cached) $ECHO_C" >&6
21354 fi
21355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21357 else
21358   # Is the header compilable?
21359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21361 cat >conftest.$ac_ext <<_ACEOF
21362 #line $LINENO "configure"
21363 /* confdefs.h.  */
21364 _ACEOF
21365 cat confdefs.h >>conftest.$ac_ext
21366 cat >>conftest.$ac_ext <<_ACEOF
21367 /* end confdefs.h.  */
21368 $ac_includes_default
21369 #include <$ac_header>
21370 _ACEOF
21371 rm -f conftest.$ac_objext
21372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21373   (eval $ac_compile) 2>&5
21374   ac_status=$?
21375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376   (exit $ac_status); } &&
21377          { ac_try='test -s conftest.$ac_objext'
21378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21379   (eval $ac_try) 2>&5
21380   ac_status=$?
21381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382   (exit $ac_status); }; }; then
21383   ac_header_compiler=yes
21384 else
21385   echo "$as_me: failed program was:" >&5
21386 sed 's/^/| /' conftest.$ac_ext >&5
21387
21388 ac_header_compiler=no
21389 fi
21390 rm -f conftest.$ac_objext conftest.$ac_ext
21391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21392 echo "${ECHO_T}$ac_header_compiler" >&6
21393
21394 # Is the header present?
21395 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21397 cat >conftest.$ac_ext <<_ACEOF
21398 #line $LINENO "configure"
21399 /* confdefs.h.  */
21400 _ACEOF
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h.  */
21404 #include <$ac_header>
21405 _ACEOF
21406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21407   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21408   ac_status=$?
21409   grep -v '^ *+' conftest.er1 >conftest.err
21410   rm -f conftest.er1
21411   cat conftest.err >&5
21412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413   (exit $ac_status); } >/dev/null; then
21414   if test -s conftest.err; then
21415     ac_cpp_err=$ac_c_preproc_warn_flag
21416   else
21417     ac_cpp_err=
21418   fi
21419 else
21420   ac_cpp_err=yes
21421 fi
21422 if test -z "$ac_cpp_err"; then
21423   ac_header_preproc=yes
21424 else
21425   echo "$as_me: failed program was:" >&5
21426 sed 's/^/| /' conftest.$ac_ext >&5
21427
21428   ac_header_preproc=no
21429 fi
21430 rm -f conftest.err conftest.$ac_ext
21431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21432 echo "${ECHO_T}$ac_header_preproc" >&6
21433
21434 # So?  What about this header?
21435 case $ac_header_compiler:$ac_header_preproc in
21436   yes:no )
21437     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21441     (
21442       cat <<\_ASBOX
21443 ## ------------------------------------ ##
21444 ## Report this to bug-autoconf@gnu.org. ##
21445 ## ------------------------------------ ##
21446 _ASBOX
21447     ) |
21448       sed "s/^/$as_me: WARNING:     /" >&2
21449     ;;
21450   no:yes )
21451     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21453     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21455     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21457     (
21458       cat <<\_ASBOX
21459 ## ------------------------------------ ##
21460 ## Report this to bug-autoconf@gnu.org. ##
21461 ## ------------------------------------ ##
21462 _ASBOX
21463     ) |
21464       sed "s/^/$as_me: WARNING:     /" >&2
21465     ;;
21466 esac
21467 echo "$as_me:$LINENO: checking for $ac_header" >&5
21468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21470   echo $ECHO_N "(cached) $ECHO_C" >&6
21471 else
21472   eval "$as_ac_Header=$ac_header_preproc"
21473 fi
21474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21476
21477 fi
21478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21479   cat >>confdefs.h <<_ACEOF
21480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21481 _ACEOF
21482
21483 fi
21484
21485 done
21486
21487  echo "$as_me:$LINENO: checking for working chown" >&5
21488 echo $ECHO_N "checking for working chown... $ECHO_C" >&6
21489 if test "${jm_cv_func_working_chown+set}" = set; then
21490   echo $ECHO_N "(cached) $ECHO_C" >&6
21491 else
21492   if test "$cross_compiling" = yes; then
21493              jm_cv_func_working_chown=no
21494 else
21495   cat >conftest.$ac_ext <<_ACEOF
21496 #line $LINENO "configure"
21497 /* confdefs.h.  */
21498 _ACEOF
21499 cat confdefs.h >>conftest.$ac_ext
21500 cat >>conftest.$ac_ext <<_ACEOF
21501 /* end confdefs.h.  */
21502
21503 #   include <sys/types.h>
21504 #   include <sys/stat.h>
21505 #   include <fcntl.h>
21506 #   ifdef HAVE_UNISTD_H
21507 #    include <unistd.h>
21508 #   endif
21509
21510     int
21511     main ()
21512     {
21513       char *f = "conftest.chown";
21514       struct stat before, after;
21515
21516       if (creat (f, 0600) < 0)
21517         exit (1);
21518       if (stat (f, &before) < 0)
21519         exit (1);
21520       if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
21521         exit (1);
21522       if (stat (f, &after) < 0)
21523         exit (1);
21524       exit ((before.st_uid == after.st_uid
21525              && before.st_gid == after.st_gid) ? 0 : 1);
21526     }
21527
21528 _ACEOF
21529 rm -f conftest$ac_exeext
21530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21531   (eval $ac_link) 2>&5
21532   ac_status=$?
21533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21536   (eval $ac_try) 2>&5
21537   ac_status=$?
21538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539   (exit $ac_status); }; }; then
21540   jm_cv_func_working_chown=yes
21541 else
21542   echo "$as_me: program exited with status $ac_status" >&5
21543 echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21545
21546 ( exit $ac_status )
21547 jm_cv_func_working_chown=no
21548 fi
21549 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21550 fi
21551
21552 fi
21553 echo "$as_me:$LINENO: result: $jm_cv_func_working_chown" >&5
21554 echo "${ECHO_T}$jm_cv_func_working_chown" >&6
21555   if test $jm_cv_func_working_chown = no; then
21556     LIBOBJS="$LIBOBJS chown.$ac_objext"
21557
21558 cat >>confdefs.h <<\_ACEOF
21559 #define chown rpl_chown
21560 _ACEOF
21561
21562   fi
21563
21564
21565
21566 for ac_header in sys/time.h unistd.h
21567 do
21568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21570   echo "$as_me:$LINENO: checking for $ac_header" >&5
21571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21573   echo $ECHO_N "(cached) $ECHO_C" >&6
21574 fi
21575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21577 else
21578   # Is the header compilable?
21579 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21581 cat >conftest.$ac_ext <<_ACEOF
21582 #line $LINENO "configure"
21583 /* confdefs.h.  */
21584 _ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h.  */
21588 $ac_includes_default
21589 #include <$ac_header>
21590 _ACEOF
21591 rm -f conftest.$ac_objext
21592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21593   (eval $ac_compile) 2>&5
21594   ac_status=$?
21595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596   (exit $ac_status); } &&
21597          { ac_try='test -s conftest.$ac_objext'
21598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599   (eval $ac_try) 2>&5
21600   ac_status=$?
21601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602   (exit $ac_status); }; }; then
21603   ac_header_compiler=yes
21604 else
21605   echo "$as_me: failed program was:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21607
21608 ac_header_compiler=no
21609 fi
21610 rm -f conftest.$ac_objext conftest.$ac_ext
21611 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21612 echo "${ECHO_T}$ac_header_compiler" >&6
21613
21614 # Is the header present?
21615 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21617 cat >conftest.$ac_ext <<_ACEOF
21618 #line $LINENO "configure"
21619 /* confdefs.h.  */
21620 _ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h.  */
21624 #include <$ac_header>
21625 _ACEOF
21626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21627   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21628   ac_status=$?
21629   grep -v '^ *+' conftest.er1 >conftest.err
21630   rm -f conftest.er1
21631   cat conftest.err >&5
21632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633   (exit $ac_status); } >/dev/null; then
21634   if test -s conftest.err; then
21635     ac_cpp_err=$ac_c_preproc_warn_flag
21636   else
21637     ac_cpp_err=
21638   fi
21639 else
21640   ac_cpp_err=yes
21641 fi
21642 if test -z "$ac_cpp_err"; then
21643   ac_header_preproc=yes
21644 else
21645   echo "$as_me: failed program was:" >&5
21646 sed 's/^/| /' conftest.$ac_ext >&5
21647
21648   ac_header_preproc=no
21649 fi
21650 rm -f conftest.err conftest.$ac_ext
21651 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21652 echo "${ECHO_T}$ac_header_preproc" >&6
21653
21654 # So?  What about this header?
21655 case $ac_header_compiler:$ac_header_preproc in
21656   yes:no )
21657     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21661     (
21662       cat <<\_ASBOX
21663 ## ------------------------------------ ##
21664 ## Report this to bug-autoconf@gnu.org. ##
21665 ## ------------------------------------ ##
21666 _ASBOX
21667     ) |
21668       sed "s/^/$as_me: WARNING:     /" >&2
21669     ;;
21670   no:yes )
21671     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21672 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21673     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21674 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21675     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21677     (
21678       cat <<\_ASBOX
21679 ## ------------------------------------ ##
21680 ## Report this to bug-autoconf@gnu.org. ##
21681 ## ------------------------------------ ##
21682 _ASBOX
21683     ) |
21684       sed "s/^/$as_me: WARNING:     /" >&2
21685     ;;
21686 esac
21687 echo "$as_me:$LINENO: checking for $ac_header" >&5
21688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21690   echo $ECHO_N "(cached) $ECHO_C" >&6
21691 else
21692   eval "$as_ac_Header=$ac_header_preproc"
21693 fi
21694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21696
21697 fi
21698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21699   cat >>confdefs.h <<_ACEOF
21700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21701 _ACEOF
21702
21703 fi
21704
21705 done
21706
21707
21708 for ac_func in alarm
21709 do
21710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21711 echo "$as_me:$LINENO: checking for $ac_func" >&5
21712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21713 if eval "test \"\${$as_ac_var+set}\" = set"; then
21714   echo $ECHO_N "(cached) $ECHO_C" >&6
21715 else
21716   cat >conftest.$ac_ext <<_ACEOF
21717 #line $LINENO "configure"
21718 /* confdefs.h.  */
21719 _ACEOF
21720 cat confdefs.h >>conftest.$ac_ext
21721 cat >>conftest.$ac_ext <<_ACEOF
21722 /* end confdefs.h.  */
21723 /* System header to define __stub macros and hopefully few prototypes,
21724     which can conflict with char $ac_func (); below.
21725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21726     <limits.h> exists even on freestanding compilers.  */
21727 #ifdef __STDC__
21728 # include <limits.h>
21729 #else
21730 # include <assert.h>
21731 #endif
21732 /* Override any gcc2 internal prototype to avoid an error.  */
21733 #ifdef __cplusplus
21734 extern "C"
21735 {
21736 #endif
21737 /* We use char because int might match the return type of a gcc2
21738    builtin and then its argument prototype would still apply.  */
21739 char $ac_func ();
21740 /* The GNU C library defines this for functions which it implements
21741     to always fail with ENOSYS.  Some functions are actually named
21742     something starting with __ and the normal name is an alias.  */
21743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21744 choke me
21745 #else
21746 char (*f) () = $ac_func;
21747 #endif
21748 #ifdef __cplusplus
21749 }
21750 #endif
21751
21752 int
21753 main ()
21754 {
21755 return f != $ac_func;
21756   ;
21757   return 0;
21758 }
21759 _ACEOF
21760 rm -f conftest.$ac_objext conftest$ac_exeext
21761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21762   (eval $ac_link) 2>&5
21763   ac_status=$?
21764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765   (exit $ac_status); } &&
21766          { ac_try='test -s conftest$ac_exeext'
21767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21768   (eval $ac_try) 2>&5
21769   ac_status=$?
21770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771   (exit $ac_status); }; }; then
21772   eval "$as_ac_var=yes"
21773 else
21774   echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21776
21777 eval "$as_ac_var=no"
21778 fi
21779 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21780 fi
21781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21782 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21783 if test `eval echo '${'$as_ac_var'}'` = yes; then
21784   cat >>confdefs.h <<_ACEOF
21785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21786 _ACEOF
21787
21788 fi
21789 done
21790
21791 echo "$as_me:$LINENO: checking for working mktime" >&5
21792 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
21793 if test "${ac_cv_func_working_mktime+set}" = set; then
21794   echo $ECHO_N "(cached) $ECHO_C" >&6
21795 else
21796   if test "$cross_compiling" = yes; then
21797   ac_cv_func_working_mktime=no
21798 else
21799   cat >conftest.$ac_ext <<_ACEOF
21800 #line $LINENO "configure"
21801 /* confdefs.h.  */
21802 _ACEOF
21803 cat confdefs.h >>conftest.$ac_ext
21804 cat >>conftest.$ac_ext <<_ACEOF
21805 /* end confdefs.h.  */
21806 /* Test program from Paul Eggert and Tony Leneis.  */
21807 #if TIME_WITH_SYS_TIME
21808 # include <sys/time.h>
21809 # include <time.h>
21810 #else
21811 # if HAVE_SYS_TIME_H
21812 #  include <sys/time.h>
21813 # else
21814 #  include <time.h>
21815 # endif
21816 #endif
21817
21818 #if HAVE_UNISTD_H
21819 # include <unistd.h>
21820 #endif
21821
21822 #if !HAVE_ALARM
21823 # define alarm(X) /* empty */
21824 #endif
21825
21826 /* Work around redefinition to rpl_putenv by other config tests.  */
21827 #undef putenv
21828
21829 static time_t time_t_max;
21830
21831 /* Values we'll use to set the TZ environment variable.  */
21832 static const char *const tz_strings[] = {
21833   (const char *) 0, "TZ=GMT0", "TZ=JST-9",
21834   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
21835 };
21836 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
21837
21838 /* Fail if mktime fails to convert a date in the spring-forward gap.
21839    Based on a problem report from Andreas Jaeger.  */
21840 static void
21841 spring_forward_gap ()
21842 {
21843   /* glibc (up to about 1998-10-07) failed this test. */
21844   struct tm tm;
21845
21846   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
21847      instead of "TZ=America/Vancouver" in order to detect the bug even
21848      on systems that don't support the Olson extension, or don't have the
21849      full zoneinfo tables installed.  */
21850   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
21851
21852   tm.tm_year = 98;
21853   tm.tm_mon = 3;
21854   tm.tm_mday = 5;
21855   tm.tm_hour = 2;
21856   tm.tm_min = 0;
21857   tm.tm_sec = 0;
21858   tm.tm_isdst = -1;
21859   if (mktime (&tm) == (time_t)-1)
21860     exit (1);
21861 }
21862
21863 static void
21864 mktime_test (now)
21865      time_t now;
21866 {
21867   struct tm *lt;
21868   if ((lt = localtime (&now)) && mktime (lt) != now)
21869     exit (1);
21870   now = time_t_max - now;
21871   if ((lt = localtime (&now)) && mktime (lt) != now)
21872     exit (1);
21873 }
21874
21875 static void
21876 irix_6_4_bug ()
21877 {
21878   /* Based on code from Ariel Faigon.  */
21879   struct tm tm;
21880   tm.tm_year = 96;
21881   tm.tm_mon = 3;
21882   tm.tm_mday = 0;
21883   tm.tm_hour = 0;
21884   tm.tm_min = 0;
21885   tm.tm_sec = 0;
21886   tm.tm_isdst = -1;
21887   mktime (&tm);
21888   if (tm.tm_mon != 2 || tm.tm_mday != 31)
21889     exit (1);
21890 }
21891
21892 static void
21893 bigtime_test (j)
21894      int j;
21895 {
21896   struct tm tm;
21897   time_t now;
21898   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
21899   now = mktime (&tm);
21900   if (now != (time_t) -1)
21901     {
21902       struct tm *lt = localtime (&now);
21903       if (! (lt
21904              && lt->tm_year == tm.tm_year
21905              && lt->tm_mon == tm.tm_mon
21906              && lt->tm_mday == tm.tm_mday
21907              && lt->tm_hour == tm.tm_hour
21908              && lt->tm_min == tm.tm_min
21909              && lt->tm_sec == tm.tm_sec
21910              && lt->tm_yday == tm.tm_yday
21911              && lt->tm_wday == tm.tm_wday
21912              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
21913                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
21914         exit (1);
21915     }
21916 }
21917
21918 int
21919 main ()
21920 {
21921   time_t t, delta;
21922   int i, j;
21923
21924   /* This test makes some buggy mktime implementations loop.
21925      Give up after 60 seconds; a mktime slower than that
21926      isn't worth using anyway.  */
21927   alarm (60);
21928
21929   for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
21930     continue;
21931   time_t_max--;
21932   delta = time_t_max / 997; /* a suitable prime number */
21933   for (i = 0; i < N_STRINGS; i++)
21934     {
21935       if (tz_strings[i])
21936         putenv (tz_strings[i]);
21937
21938       for (t = 0; t <= time_t_max - delta; t += delta)
21939         mktime_test (t);
21940       mktime_test ((time_t) 60 * 60);
21941       mktime_test ((time_t) 60 * 60 * 24);
21942
21943       for (j = 1; 0 < j; j *= 2)
21944         bigtime_test (j);
21945       bigtime_test (j - 1);
21946     }
21947   irix_6_4_bug ();
21948   spring_forward_gap ();
21949   exit (0);
21950 }
21951 _ACEOF
21952 rm -f conftest$ac_exeext
21953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21954   (eval $ac_link) 2>&5
21955   ac_status=$?
21956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21959   (eval $ac_try) 2>&5
21960   ac_status=$?
21961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962   (exit $ac_status); }; }; then
21963   ac_cv_func_working_mktime=yes
21964 else
21965   echo "$as_me: program exited with status $ac_status" >&5
21966 echo "$as_me: failed program was:" >&5
21967 sed 's/^/| /' conftest.$ac_ext >&5
21968
21969 ( exit $ac_status )
21970 ac_cv_func_working_mktime=no
21971 fi
21972 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21973 fi
21974 fi
21975 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
21976 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
21977 if test $ac_cv_func_working_mktime = no; then
21978   LIBOBJS="$LIBOBJS mktime.$ac_objext"
21979 fi
21980
21981
21982
21983 for ac_func in localtime_r
21984 do
21985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21986 echo "$as_me:$LINENO: checking for $ac_func" >&5
21987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21988 if eval "test \"\${$as_ac_var+set}\" = set"; then
21989   echo $ECHO_N "(cached) $ECHO_C" >&6
21990 else
21991   cat >conftest.$ac_ext <<_ACEOF
21992 #line $LINENO "configure"
21993 /* confdefs.h.  */
21994 _ACEOF
21995 cat confdefs.h >>conftest.$ac_ext
21996 cat >>conftest.$ac_ext <<_ACEOF
21997 /* end confdefs.h.  */
21998 /* System header to define __stub macros and hopefully few prototypes,
21999     which can conflict with char $ac_func (); below.
22000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22001     <limits.h> exists even on freestanding compilers.  */
22002 #ifdef __STDC__
22003 # include <limits.h>
22004 #else
22005 # include <assert.h>
22006 #endif
22007 /* Override any gcc2 internal prototype to avoid an error.  */
22008 #ifdef __cplusplus
22009 extern "C"
22010 {
22011 #endif
22012 /* We use char because int might match the return type of a gcc2
22013    builtin and then its argument prototype would still apply.  */
22014 char $ac_func ();
22015 /* The GNU C library defines this for functions which it implements
22016     to always fail with ENOSYS.  Some functions are actually named
22017     something starting with __ and the normal name is an alias.  */
22018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22019 choke me
22020 #else
22021 char (*f) () = $ac_func;
22022 #endif
22023 #ifdef __cplusplus
22024 }
22025 #endif
22026
22027 int
22028 main ()
22029 {
22030 return f != $ac_func;
22031   ;
22032   return 0;
22033 }
22034 _ACEOF
22035 rm -f conftest.$ac_objext conftest$ac_exeext
22036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22037   (eval $ac_link) 2>&5
22038   ac_status=$?
22039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040   (exit $ac_status); } &&
22041          { ac_try='test -s conftest$ac_exeext'
22042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043   (eval $ac_try) 2>&5
22044   ac_status=$?
22045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046   (exit $ac_status); }; }; then
22047   eval "$as_ac_var=yes"
22048 else
22049   echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22051
22052 eval "$as_ac_var=no"
22053 fi
22054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22055 fi
22056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22058 if test `eval echo '${'$as_ac_var'}'` = yes; then
22059   cat >>confdefs.h <<_ACEOF
22060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22061 _ACEOF
22062
22063 fi
22064 done
22065
22066
22067  if test $ac_cv_func_working_mktime = no; then
22068
22069 cat >>confdefs.h <<\_ACEOF
22070 #define mktime rpl_mktime
22071 _ACEOF
22072
22073  fi
22074
22075
22076
22077  echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
22078 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
22079 if test "${jm_cv_func_stat_empty_string_bug+set}" = set; then
22080   echo $ECHO_N "(cached) $ECHO_C" >&6
22081 else
22082   if test "$cross_compiling" = yes; then
22083          jm_cv_func_stat_empty_string_bug=yes
22084 else
22085   cat >conftest.$ac_ext <<_ACEOF
22086 #line $LINENO "configure"
22087 /* confdefs.h.  */
22088 _ACEOF
22089 cat confdefs.h >>conftest.$ac_ext
22090 cat >>conftest.$ac_ext <<_ACEOF
22091 /* end confdefs.h.  */
22092
22093 #   include <sys/types.h>
22094 #   include <sys/stat.h>
22095
22096     int
22097     main ()
22098     {
22099       struct stat sbuf;
22100       exit (stat ("", &sbuf) ? 1 : 0);
22101     }
22102
22103 _ACEOF
22104 rm -f conftest$ac_exeext
22105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22106   (eval $ac_link) 2>&5
22107   ac_status=$?
22108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22111   (eval $ac_try) 2>&5
22112   ac_status=$?
22113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114   (exit $ac_status); }; }; then
22115   jm_cv_func_stat_empty_string_bug=yes
22116 else
22117   echo "$as_me: program exited with status $ac_status" >&5
22118 echo "$as_me: failed program was:" >&5
22119 sed 's/^/| /' conftest.$ac_ext >&5
22120
22121 ( exit $ac_status )
22122 jm_cv_func_stat_empty_string_bug=no
22123 fi
22124 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22125 fi
22126
22127 fi
22128 echo "$as_me:$LINENO: result: $jm_cv_func_stat_empty_string_bug" >&5
22129 echo "${ECHO_T}$jm_cv_func_stat_empty_string_bug" >&6
22130   if test $jm_cv_func_stat_empty_string_bug = yes; then
22131     LIBOBJS="$LIBOBJS stat.$ac_objext"
22132
22133 cat >>confdefs.h <<\_ACEOF
22134 #define HAVE_STAT_EMPTY_STRING_BUG 1
22135 _ACEOF
22136
22137   fi
22138
22139
22140 for ac_header in stdlib.h
22141 do
22142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22144   echo "$as_me:$LINENO: checking for $ac_header" >&5
22145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22147   echo $ECHO_N "(cached) $ECHO_C" >&6
22148 fi
22149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22151 else
22152   # Is the header compilable?
22153 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22155 cat >conftest.$ac_ext <<_ACEOF
22156 #line $LINENO "configure"
22157 /* confdefs.h.  */
22158 _ACEOF
22159 cat confdefs.h >>conftest.$ac_ext
22160 cat >>conftest.$ac_ext <<_ACEOF
22161 /* end confdefs.h.  */
22162 $ac_includes_default
22163 #include <$ac_header>
22164 _ACEOF
22165 rm -f conftest.$ac_objext
22166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22167   (eval $ac_compile) 2>&5
22168   ac_status=$?
22169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170   (exit $ac_status); } &&
22171          { ac_try='test -s conftest.$ac_objext'
22172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22173   (eval $ac_try) 2>&5
22174   ac_status=$?
22175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176   (exit $ac_status); }; }; then
22177   ac_header_compiler=yes
22178 else
22179   echo "$as_me: failed program was:" >&5
22180 sed 's/^/| /' conftest.$ac_ext >&5
22181
22182 ac_header_compiler=no
22183 fi
22184 rm -f conftest.$ac_objext conftest.$ac_ext
22185 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22186 echo "${ECHO_T}$ac_header_compiler" >&6
22187
22188 # Is the header present?
22189 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22191 cat >conftest.$ac_ext <<_ACEOF
22192 #line $LINENO "configure"
22193 /* confdefs.h.  */
22194 _ACEOF
22195 cat confdefs.h >>conftest.$ac_ext
22196 cat >>conftest.$ac_ext <<_ACEOF
22197 /* end confdefs.h.  */
22198 #include <$ac_header>
22199 _ACEOF
22200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22201   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22202   ac_status=$?
22203   grep -v '^ *+' conftest.er1 >conftest.err
22204   rm -f conftest.er1
22205   cat conftest.err >&5
22206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207   (exit $ac_status); } >/dev/null; then
22208   if test -s conftest.err; then
22209     ac_cpp_err=$ac_c_preproc_warn_flag
22210   else
22211     ac_cpp_err=
22212   fi
22213 else
22214   ac_cpp_err=yes
22215 fi
22216 if test -z "$ac_cpp_err"; then
22217   ac_header_preproc=yes
22218 else
22219   echo "$as_me: failed program was:" >&5
22220 sed 's/^/| /' conftest.$ac_ext >&5
22221
22222   ac_header_preproc=no
22223 fi
22224 rm -f conftest.err conftest.$ac_ext
22225 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22226 echo "${ECHO_T}$ac_header_preproc" >&6
22227
22228 # So?  What about this header?
22229 case $ac_header_compiler:$ac_header_preproc in
22230   yes:no )
22231     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22232 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22233     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22235     (
22236       cat <<\_ASBOX
22237 ## ------------------------------------ ##
22238 ## Report this to bug-autoconf@gnu.org. ##
22239 ## ------------------------------------ ##
22240 _ASBOX
22241     ) |
22242       sed "s/^/$as_me: WARNING:     /" >&2
22243     ;;
22244   no:yes )
22245     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22247     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22249     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22250 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22251     (
22252       cat <<\_ASBOX
22253 ## ------------------------------------ ##
22254 ## Report this to bug-autoconf@gnu.org. ##
22255 ## ------------------------------------ ##
22256 _ASBOX
22257     ) |
22258       sed "s/^/$as_me: WARNING:     /" >&2
22259     ;;
22260 esac
22261 echo "$as_me:$LINENO: checking for $ac_header" >&5
22262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22264   echo $ECHO_N "(cached) $ECHO_C" >&6
22265 else
22266   eval "$as_ac_Header=$ac_header_preproc"
22267 fi
22268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22270
22271 fi
22272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22273   cat >>confdefs.h <<_ACEOF
22274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22275 _ACEOF
22276
22277 fi
22278
22279 done
22280
22281 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
22282 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
22283 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
22284   echo $ECHO_N "(cached) $ECHO_C" >&6
22285 else
22286   if test "$cross_compiling" = yes; then
22287   ac_cv_func_realloc_0_nonnull=no
22288 else
22289   cat >conftest.$ac_ext <<_ACEOF
22290 #line $LINENO "configure"
22291 /* confdefs.h.  */
22292 _ACEOF
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
22295 /* end confdefs.h.  */
22296 #if STDC_HEADERS || HAVE_STDLIB_H
22297 # include <stdlib.h>
22298 #else
22299 char *realloc ();
22300 #endif
22301
22302 int
22303 main ()
22304 {
22305 exit (realloc (0, 0) ? 0 : 1);
22306   ;
22307   return 0;
22308 }
22309 _ACEOF
22310 rm -f conftest$ac_exeext
22311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22312   (eval $ac_link) 2>&5
22313   ac_status=$?
22314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22317   (eval $ac_try) 2>&5
22318   ac_status=$?
22319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320   (exit $ac_status); }; }; then
22321   ac_cv_func_realloc_0_nonnull=yes
22322 else
22323   echo "$as_me: program exited with status $ac_status" >&5
22324 echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22326
22327 ( exit $ac_status )
22328 ac_cv_func_realloc_0_nonnull=no
22329 fi
22330 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22331 fi
22332 fi
22333 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
22334 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
22335 if test $ac_cv_func_realloc_0_nonnull = yes; then
22336
22337 cat >>confdefs.h <<\_ACEOF
22338 #define HAVE_REALLOC 1
22339 _ACEOF
22340
22341 else
22342   cat >>confdefs.h <<\_ACEOF
22343 #define HAVE_REALLOC 0
22344 _ACEOF
22345
22346    LIBOBJS="$LIBOBJS realloc.$ac_objext"
22347
22348 cat >>confdefs.h <<\_ACEOF
22349 #define realloc rpl_realloc
22350 _ACEOF
22351
22352 fi
22353
22354
22355
22356
22357 for ac_header in stdlib.h
22358 do
22359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22361   echo "$as_me:$LINENO: checking for $ac_header" >&5
22362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22364   echo $ECHO_N "(cached) $ECHO_C" >&6
22365 fi
22366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22368 else
22369   # Is the header compilable?
22370 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22372 cat >conftest.$ac_ext <<_ACEOF
22373 #line $LINENO "configure"
22374 /* confdefs.h.  */
22375 _ACEOF
22376 cat confdefs.h >>conftest.$ac_ext
22377 cat >>conftest.$ac_ext <<_ACEOF
22378 /* end confdefs.h.  */
22379 $ac_includes_default
22380 #include <$ac_header>
22381 _ACEOF
22382 rm -f conftest.$ac_objext
22383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22384   (eval $ac_compile) 2>&5
22385   ac_status=$?
22386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387   (exit $ac_status); } &&
22388          { ac_try='test -s conftest.$ac_objext'
22389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22390   (eval $ac_try) 2>&5
22391   ac_status=$?
22392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393   (exit $ac_status); }; }; then
22394   ac_header_compiler=yes
22395 else
22396   echo "$as_me: failed program was:" >&5
22397 sed 's/^/| /' conftest.$ac_ext >&5
22398
22399 ac_header_compiler=no
22400 fi
22401 rm -f conftest.$ac_objext conftest.$ac_ext
22402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22403 echo "${ECHO_T}$ac_header_compiler" >&6
22404
22405 # Is the header present?
22406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22408 cat >conftest.$ac_ext <<_ACEOF
22409 #line $LINENO "configure"
22410 /* confdefs.h.  */
22411 _ACEOF
22412 cat confdefs.h >>conftest.$ac_ext
22413 cat >>conftest.$ac_ext <<_ACEOF
22414 /* end confdefs.h.  */
22415 #include <$ac_header>
22416 _ACEOF
22417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22418   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22419   ac_status=$?
22420   grep -v '^ *+' conftest.er1 >conftest.err
22421   rm -f conftest.er1
22422   cat conftest.err >&5
22423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424   (exit $ac_status); } >/dev/null; then
22425   if test -s conftest.err; then
22426     ac_cpp_err=$ac_c_preproc_warn_flag
22427   else
22428     ac_cpp_err=
22429   fi
22430 else
22431   ac_cpp_err=yes
22432 fi
22433 if test -z "$ac_cpp_err"; then
22434   ac_header_preproc=yes
22435 else
22436   echo "$as_me: failed program was:" >&5
22437 sed 's/^/| /' conftest.$ac_ext >&5
22438
22439   ac_header_preproc=no
22440 fi
22441 rm -f conftest.err conftest.$ac_ext
22442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22443 echo "${ECHO_T}$ac_header_preproc" >&6
22444
22445 # So?  What about this header?
22446 case $ac_header_compiler:$ac_header_preproc in
22447   yes:no )
22448     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22452     (
22453       cat <<\_ASBOX
22454 ## ------------------------------------ ##
22455 ## Report this to bug-autoconf@gnu.org. ##
22456 ## ------------------------------------ ##
22457 _ASBOX
22458     ) |
22459       sed "s/^/$as_me: WARNING:     /" >&2
22460     ;;
22461   no:yes )
22462     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22464     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22468     (
22469       cat <<\_ASBOX
22470 ## ------------------------------------ ##
22471 ## Report this to bug-autoconf@gnu.org. ##
22472 ## ------------------------------------ ##
22473 _ASBOX
22474     ) |
22475       sed "s/^/$as_me: WARNING:     /" >&2
22476     ;;
22477 esac
22478 echo "$as_me:$LINENO: checking for $ac_header" >&5
22479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22481   echo $ECHO_N "(cached) $ECHO_C" >&6
22482 else
22483   eval "$as_ac_Header=$ac_header_preproc"
22484 fi
22485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22487
22488 fi
22489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22490   cat >>confdefs.h <<_ACEOF
22491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22492 _ACEOF
22493
22494 fi
22495
22496 done
22497
22498 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22499 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
22500 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22501   echo $ECHO_N "(cached) $ECHO_C" >&6
22502 else
22503   if test "$cross_compiling" = yes; then
22504   ac_cv_func_malloc_0_nonnull=no
22505 else
22506   cat >conftest.$ac_ext <<_ACEOF
22507 #line $LINENO "configure"
22508 /* confdefs.h.  */
22509 _ACEOF
22510 cat confdefs.h >>conftest.$ac_ext
22511 cat >>conftest.$ac_ext <<_ACEOF
22512 /* end confdefs.h.  */
22513 #if STDC_HEADERS || HAVE_STDLIB_H
22514 # include <stdlib.h>
22515 #else
22516 char *malloc ();
22517 #endif
22518
22519 int
22520 main ()
22521 {
22522 exit (malloc (0) ? 0 : 1);
22523   ;
22524   return 0;
22525 }
22526 _ACEOF
22527 rm -f conftest$ac_exeext
22528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22529   (eval $ac_link) 2>&5
22530   ac_status=$?
22531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534   (eval $ac_try) 2>&5
22535   ac_status=$?
22536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537   (exit $ac_status); }; }; then
22538   ac_cv_func_malloc_0_nonnull=yes
22539 else
22540   echo "$as_me: program exited with status $ac_status" >&5
22541 echo "$as_me: failed program was:" >&5
22542 sed 's/^/| /' conftest.$ac_ext >&5
22543
22544 ( exit $ac_status )
22545 ac_cv_func_malloc_0_nonnull=no
22546 fi
22547 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22548 fi
22549 fi
22550 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22551 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
22552 if test $ac_cv_func_malloc_0_nonnull = yes; then
22553
22554 cat >>confdefs.h <<\_ACEOF
22555 #define HAVE_MALLOC 1
22556 _ACEOF
22557
22558 else
22559   cat >>confdefs.h <<\_ACEOF
22560 #define HAVE_MALLOC 0
22561 _ACEOF
22562
22563    LIBOBJS="$LIBOBJS malloc.$ac_objext"
22564
22565 cat >>confdefs.h <<\_ACEOF
22566 #define malloc rpl_malloc
22567 _ACEOF
22568
22569 fi
22570
22571
22572
22573
22574  nanosleep_save_libs=$LIBS
22575
22576  # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
22577  # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22578
22579   echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
22580 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
22581 if test "${ac_cv_search_nanosleep+set}" = set; then
22582   echo $ECHO_N "(cached) $ECHO_C" >&6
22583 else
22584
22585     ac_func_search_save_LIBS=$LIBS
22586     ac_cv_search_nanosleep=no
22587     cat >conftest.$ac_ext <<_ACEOF
22588 #line $LINENO "configure"
22589 /* confdefs.h.  */
22590 _ACEOF
22591 cat confdefs.h >>conftest.$ac_ext
22592 cat >>conftest.$ac_ext <<_ACEOF
22593 /* end confdefs.h.  */
22594
22595 /* Override any gcc2 internal prototype to avoid an error.  */
22596 #ifdef __cplusplus
22597 extern "C"
22598 #endif
22599 /* We use char because int might match the return type of a gcc2
22600    builtin and then its argument prototype would still apply.  */
22601 char nanosleep ();
22602 int
22603 main ()
22604 {
22605 nanosleep ();
22606   ;
22607   return 0;
22608 }
22609 _ACEOF
22610 rm -f conftest.$ac_objext conftest$ac_exeext
22611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22612   (eval $ac_link) 2>&5
22613   ac_status=$?
22614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615   (exit $ac_status); } &&
22616          { ac_try='test -s conftest$ac_exeext'
22617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22618   (eval $ac_try) 2>&5
22619   ac_status=$?
22620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621   (exit $ac_status); }; }; then
22622   ac_cv_search_nanosleep='none required'
22623 else
22624   echo "$as_me: failed program was:" >&5
22625 sed 's/^/| /' conftest.$ac_ext >&5
22626
22627 fi
22628 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22629     if test "$ac_cv_search_nanosleep" = no; then
22630       for ac_lib in rt posix4; do
22631         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22632         cat >conftest.$ac_ext <<_ACEOF
22633 #line $LINENO "configure"
22634 /* confdefs.h.  */
22635 _ACEOF
22636 cat confdefs.h >>conftest.$ac_ext
22637 cat >>conftest.$ac_ext <<_ACEOF
22638 /* end confdefs.h.  */
22639
22640 /* Override any gcc2 internal prototype to avoid an error.  */
22641 #ifdef __cplusplus
22642 extern "C"
22643 #endif
22644 /* We use char because int might match the return type of a gcc2
22645    builtin and then its argument prototype would still apply.  */
22646 char nanosleep ();
22647 int
22648 main ()
22649 {
22650 nanosleep ();
22651   ;
22652   return 0;
22653 }
22654 _ACEOF
22655 rm -f conftest.$ac_objext conftest$ac_exeext
22656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22657   (eval $ac_link) 2>&5
22658   ac_status=$?
22659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660   (exit $ac_status); } &&
22661          { ac_try='test -s conftest$ac_exeext'
22662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22663   (eval $ac_try) 2>&5
22664   ac_status=$?
22665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666   (exit $ac_status); }; }; then
22667   ac_cv_search_nanosleep="-l$ac_lib"; break
22668 else
22669   echo "$as_me: failed program was:" >&5
22670 sed 's/^/| /' conftest.$ac_ext >&5
22671
22672 fi
22673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22674       done
22675     fi
22676     LIBS=$ac_func_search_save_LIBS
22677
22678 fi
22679 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
22680 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
22681
22682   if test "$ac_cv_search_nanosleep" = no; then :
22683
22684   else
22685     if test "$ac_cv_search_nanosleep" = 'none required'; then :
22686
22687     else
22688       LIBS="$ac_cv_search_nanosleep $LIBS"
22689       LIB_NANOSLEEP=$ac_cv_search_nanosleep
22690     fi
22691   fi
22692
22693
22694
22695  echo "$as_me:$LINENO: checking whether nanosleep works" >&5
22696 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6
22697 if test "${jm_cv_func_nanosleep_works+set}" = set; then
22698   echo $ECHO_N "(cached) $ECHO_C" >&6
22699 else
22700
22701
22702    if test "$cross_compiling" = yes; then
22703          jm_cv_func_nanosleep_works=no
22704 else
22705   cat >conftest.$ac_ext <<_ACEOF
22706 #line $LINENO "configure"
22707 /* confdefs.h.  */
22708 _ACEOF
22709 cat confdefs.h >>conftest.$ac_ext
22710 cat >>conftest.$ac_ext <<_ACEOF
22711 /* end confdefs.h.  */
22712
22713 #   if TIME_WITH_SYS_TIME
22714 #    include <sys/time.h>
22715 #    include <time.h>
22716 #   else
22717 #    if HAVE_SYS_TIME_H
22718 #     include <sys/time.h>
22719 #    else
22720 #     include <time.h>
22721 #    endif
22722 #   endif
22723
22724     int
22725     main ()
22726     {
22727       struct timespec ts_sleep, ts_remaining;
22728       ts_sleep.tv_sec = 0;
22729       ts_sleep.tv_nsec = 1;
22730       exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
22731     }
22732
22733 _ACEOF
22734 rm -f conftest$ac_exeext
22735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22736   (eval $ac_link) 2>&5
22737   ac_status=$?
22738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22741   (eval $ac_try) 2>&5
22742   ac_status=$?
22743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744   (exit $ac_status); }; }; then
22745   jm_cv_func_nanosleep_works=yes
22746 else
22747   echo "$as_me: program exited with status $ac_status" >&5
22748 echo "$as_me: failed program was:" >&5
22749 sed 's/^/| /' conftest.$ac_ext >&5
22750
22751 ( exit $ac_status )
22752 jm_cv_func_nanosleep_works=no
22753 fi
22754 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22755 fi
22756
22757 fi
22758 echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
22759 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6
22760   if test $jm_cv_func_nanosleep_works = no; then
22761     LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
22762
22763 cat >>confdefs.h <<\_ACEOF
22764 #define nanosleep rpl_nanosleep
22765 _ACEOF
22766
22767   fi
22768
22769  LIBS=$nanosleep_save_libs
22770
22771 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
22772 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
22773 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
22774   echo $ECHO_N "(cached) $ECHO_C" >&6
22775 else
22776   cat >conftest.$ac_ext <<_ACEOF
22777 #line $LINENO "configure"
22778 /* confdefs.h.  */
22779 _ACEOF
22780 cat confdefs.h >>conftest.$ac_ext
22781 cat >>conftest.$ac_ext <<_ACEOF
22782 /* end confdefs.h.  */
22783 $ac_includes_default
22784 int
22785 main ()
22786 {
22787 #ifndef clearerr_unlocked
22788   char *p = (char *) clearerr_unlocked;
22789 #endif
22790
22791   ;
22792   return 0;
22793 }
22794 _ACEOF
22795 rm -f conftest.$ac_objext
22796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22797   (eval $ac_compile) 2>&5
22798   ac_status=$?
22799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800   (exit $ac_status); } &&
22801          { ac_try='test -s conftest.$ac_objext'
22802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22803   (eval $ac_try) 2>&5
22804   ac_status=$?
22805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806   (exit $ac_status); }; }; then
22807   ac_cv_have_decl_clearerr_unlocked=yes
22808 else
22809   echo "$as_me: failed program was:" >&5
22810 sed 's/^/| /' conftest.$ac_ext >&5
22811
22812 ac_cv_have_decl_clearerr_unlocked=no
22813 fi
22814 rm -f conftest.$ac_objext conftest.$ac_ext
22815 fi
22816 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
22817 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
22818 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
22819
22820 cat >>confdefs.h <<_ACEOF
22821 #define HAVE_DECL_CLEARERR_UNLOCKED 1
22822 _ACEOF
22823
22824
22825 else
22826   cat >>confdefs.h <<_ACEOF
22827 #define HAVE_DECL_CLEARERR_UNLOCKED 0
22828 _ACEOF
22829
22830
22831 fi
22832 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22833 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
22834 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22835   echo $ECHO_N "(cached) $ECHO_C" >&6
22836 else
22837   cat >conftest.$ac_ext <<_ACEOF
22838 #line $LINENO "configure"
22839 /* confdefs.h.  */
22840 _ACEOF
22841 cat confdefs.h >>conftest.$ac_ext
22842 cat >>conftest.$ac_ext <<_ACEOF
22843 /* end confdefs.h.  */
22844 $ac_includes_default
22845 int
22846 main ()
22847 {
22848 #ifndef feof_unlocked
22849   char *p = (char *) feof_unlocked;
22850 #endif
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>&5
22859   ac_status=$?
22860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861   (exit $ac_status); } &&
22862          { ac_try='test -s conftest.$ac_objext'
22863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22864   (eval $ac_try) 2>&5
22865   ac_status=$?
22866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867   (exit $ac_status); }; }; then
22868   ac_cv_have_decl_feof_unlocked=yes
22869 else
22870   echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22872
22873 ac_cv_have_decl_feof_unlocked=no
22874 fi
22875 rm -f conftest.$ac_objext conftest.$ac_ext
22876 fi
22877 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22878 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
22879 if test $ac_cv_have_decl_feof_unlocked = yes; then
22880
22881 cat >>confdefs.h <<_ACEOF
22882 #define HAVE_DECL_FEOF_UNLOCKED 1
22883 _ACEOF
22884
22885
22886 else
22887   cat >>confdefs.h <<_ACEOF
22888 #define HAVE_DECL_FEOF_UNLOCKED 0
22889 _ACEOF
22890
22891
22892 fi
22893 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
22894 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
22895 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
22896   echo $ECHO_N "(cached) $ECHO_C" >&6
22897 else
22898   cat >conftest.$ac_ext <<_ACEOF
22899 #line $LINENO "configure"
22900 /* confdefs.h.  */
22901 _ACEOF
22902 cat confdefs.h >>conftest.$ac_ext
22903 cat >>conftest.$ac_ext <<_ACEOF
22904 /* end confdefs.h.  */
22905 $ac_includes_default
22906 int
22907 main ()
22908 {
22909 #ifndef ferror_unlocked
22910   char *p = (char *) ferror_unlocked;
22911 #endif
22912
22913   ;
22914   return 0;
22915 }
22916 _ACEOF
22917 rm -f conftest.$ac_objext
22918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22919   (eval $ac_compile) 2>&5
22920   ac_status=$?
22921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922   (exit $ac_status); } &&
22923          { ac_try='test -s conftest.$ac_objext'
22924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925   (eval $ac_try) 2>&5
22926   ac_status=$?
22927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928   (exit $ac_status); }; }; then
22929   ac_cv_have_decl_ferror_unlocked=yes
22930 else
22931   echo "$as_me: failed program was:" >&5
22932 sed 's/^/| /' conftest.$ac_ext >&5
22933
22934 ac_cv_have_decl_ferror_unlocked=no
22935 fi
22936 rm -f conftest.$ac_objext conftest.$ac_ext
22937 fi
22938 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
22939 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
22940 if test $ac_cv_have_decl_ferror_unlocked = yes; then
22941
22942 cat >>confdefs.h <<_ACEOF
22943 #define HAVE_DECL_FERROR_UNLOCKED 1
22944 _ACEOF
22945
22946
22947 else
22948   cat >>confdefs.h <<_ACEOF
22949 #define HAVE_DECL_FERROR_UNLOCKED 0
22950 _ACEOF
22951
22952
22953 fi
22954 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
22955 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
22956 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
22957   echo $ECHO_N "(cached) $ECHO_C" >&6
22958 else
22959   cat >conftest.$ac_ext <<_ACEOF
22960 #line $LINENO "configure"
22961 /* confdefs.h.  */
22962 _ACEOF
22963 cat confdefs.h >>conftest.$ac_ext
22964 cat >>conftest.$ac_ext <<_ACEOF
22965 /* end confdefs.h.  */
22966 $ac_includes_default
22967 int
22968 main ()
22969 {
22970 #ifndef fflush_unlocked
22971   char *p = (char *) fflush_unlocked;
22972 #endif
22973
22974   ;
22975   return 0;
22976 }
22977 _ACEOF
22978 rm -f conftest.$ac_objext
22979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22980   (eval $ac_compile) 2>&5
22981   ac_status=$?
22982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983   (exit $ac_status); } &&
22984          { ac_try='test -s conftest.$ac_objext'
22985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22986   (eval $ac_try) 2>&5
22987   ac_status=$?
22988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989   (exit $ac_status); }; }; then
22990   ac_cv_have_decl_fflush_unlocked=yes
22991 else
22992   echo "$as_me: failed program was:" >&5
22993 sed 's/^/| /' conftest.$ac_ext >&5
22994
22995 ac_cv_have_decl_fflush_unlocked=no
22996 fi
22997 rm -f conftest.$ac_objext conftest.$ac_ext
22998 fi
22999 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
23000 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
23001 if test $ac_cv_have_decl_fflush_unlocked = yes; then
23002
23003 cat >>confdefs.h <<_ACEOF
23004 #define HAVE_DECL_FFLUSH_UNLOCKED 1
23005 _ACEOF
23006
23007
23008 else
23009   cat >>confdefs.h <<_ACEOF
23010 #define HAVE_DECL_FFLUSH_UNLOCKED 0
23011 _ACEOF
23012
23013
23014 fi
23015 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
23016 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
23017 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
23018   echo $ECHO_N "(cached) $ECHO_C" >&6
23019 else
23020   cat >conftest.$ac_ext <<_ACEOF
23021 #line $LINENO "configure"
23022 /* confdefs.h.  */
23023 _ACEOF
23024 cat confdefs.h >>conftest.$ac_ext
23025 cat >>conftest.$ac_ext <<_ACEOF
23026 /* end confdefs.h.  */
23027 $ac_includes_default
23028 int
23029 main ()
23030 {
23031 #ifndef fgets_unlocked
23032   char *p = (char *) fgets_unlocked;
23033 #endif
23034
23035   ;
23036   return 0;
23037 }
23038 _ACEOF
23039 rm -f conftest.$ac_objext
23040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23041   (eval $ac_compile) 2>&5
23042   ac_status=$?
23043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044   (exit $ac_status); } &&
23045          { ac_try='test -s conftest.$ac_objext'
23046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23047   (eval $ac_try) 2>&5
23048   ac_status=$?
23049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050   (exit $ac_status); }; }; then
23051   ac_cv_have_decl_fgets_unlocked=yes
23052 else
23053   echo "$as_me: failed program was:" >&5
23054 sed 's/^/| /' conftest.$ac_ext >&5
23055
23056 ac_cv_have_decl_fgets_unlocked=no
23057 fi
23058 rm -f conftest.$ac_objext conftest.$ac_ext
23059 fi
23060 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
23061 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
23062 if test $ac_cv_have_decl_fgets_unlocked = yes; then
23063
23064 cat >>confdefs.h <<_ACEOF
23065 #define HAVE_DECL_FGETS_UNLOCKED 1
23066 _ACEOF
23067
23068
23069 else
23070   cat >>confdefs.h <<_ACEOF
23071 #define HAVE_DECL_FGETS_UNLOCKED 0
23072 _ACEOF
23073
23074
23075 fi
23076 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
23077 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
23078 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
23079   echo $ECHO_N "(cached) $ECHO_C" >&6
23080 else
23081   cat >conftest.$ac_ext <<_ACEOF
23082 #line $LINENO "configure"
23083 /* confdefs.h.  */
23084 _ACEOF
23085 cat confdefs.h >>conftest.$ac_ext
23086 cat >>conftest.$ac_ext <<_ACEOF
23087 /* end confdefs.h.  */
23088 $ac_includes_default
23089 int
23090 main ()
23091 {
23092 #ifndef fputc_unlocked
23093   char *p = (char *) fputc_unlocked;
23094 #endif
23095
23096   ;
23097   return 0;
23098 }
23099 _ACEOF
23100 rm -f conftest.$ac_objext
23101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23102   (eval $ac_compile) 2>&5
23103   ac_status=$?
23104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105   (exit $ac_status); } &&
23106          { ac_try='test -s conftest.$ac_objext'
23107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23108   (eval $ac_try) 2>&5
23109   ac_status=$?
23110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111   (exit $ac_status); }; }; then
23112   ac_cv_have_decl_fputc_unlocked=yes
23113 else
23114   echo "$as_me: failed program was:" >&5
23115 sed 's/^/| /' conftest.$ac_ext >&5
23116
23117 ac_cv_have_decl_fputc_unlocked=no
23118 fi
23119 rm -f conftest.$ac_objext conftest.$ac_ext
23120 fi
23121 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
23122 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
23123 if test $ac_cv_have_decl_fputc_unlocked = yes; then
23124
23125 cat >>confdefs.h <<_ACEOF
23126 #define HAVE_DECL_FPUTC_UNLOCKED 1
23127 _ACEOF
23128
23129
23130 else
23131   cat >>confdefs.h <<_ACEOF
23132 #define HAVE_DECL_FPUTC_UNLOCKED 0
23133 _ACEOF
23134
23135
23136 fi
23137 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
23138 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
23139 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
23140   echo $ECHO_N "(cached) $ECHO_C" >&6
23141 else
23142   cat >conftest.$ac_ext <<_ACEOF
23143 #line $LINENO "configure"
23144 /* confdefs.h.  */
23145 _ACEOF
23146 cat confdefs.h >>conftest.$ac_ext
23147 cat >>conftest.$ac_ext <<_ACEOF
23148 /* end confdefs.h.  */
23149 $ac_includes_default
23150 int
23151 main ()
23152 {
23153 #ifndef fputs_unlocked
23154   char *p = (char *) fputs_unlocked;
23155 #endif
23156
23157   ;
23158   return 0;
23159 }
23160 _ACEOF
23161 rm -f conftest.$ac_objext
23162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23163   (eval $ac_compile) 2>&5
23164   ac_status=$?
23165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166   (exit $ac_status); } &&
23167          { ac_try='test -s conftest.$ac_objext'
23168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23169   (eval $ac_try) 2>&5
23170   ac_status=$?
23171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172   (exit $ac_status); }; }; then
23173   ac_cv_have_decl_fputs_unlocked=yes
23174 else
23175   echo "$as_me: failed program was:" >&5
23176 sed 's/^/| /' conftest.$ac_ext >&5
23177
23178 ac_cv_have_decl_fputs_unlocked=no
23179 fi
23180 rm -f conftest.$ac_objext conftest.$ac_ext
23181 fi
23182 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
23183 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
23184 if test $ac_cv_have_decl_fputs_unlocked = yes; then
23185
23186 cat >>confdefs.h <<_ACEOF
23187 #define HAVE_DECL_FPUTS_UNLOCKED 1
23188 _ACEOF
23189
23190
23191 else
23192   cat >>confdefs.h <<_ACEOF
23193 #define HAVE_DECL_FPUTS_UNLOCKED 0
23194 _ACEOF
23195
23196
23197 fi
23198 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
23199 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
23200 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
23201   echo $ECHO_N "(cached) $ECHO_C" >&6
23202 else
23203   cat >conftest.$ac_ext <<_ACEOF
23204 #line $LINENO "configure"
23205 /* confdefs.h.  */
23206 _ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h.  */
23210 $ac_includes_default
23211 int
23212 main ()
23213 {
23214 #ifndef fread_unlocked
23215   char *p = (char *) fread_unlocked;
23216 #endif
23217
23218   ;
23219   return 0;
23220 }
23221 _ACEOF
23222 rm -f conftest.$ac_objext
23223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23224   (eval $ac_compile) 2>&5
23225   ac_status=$?
23226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227   (exit $ac_status); } &&
23228          { ac_try='test -s conftest.$ac_objext'
23229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23230   (eval $ac_try) 2>&5
23231   ac_status=$?
23232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233   (exit $ac_status); }; }; then
23234   ac_cv_have_decl_fread_unlocked=yes
23235 else
23236   echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23238
23239 ac_cv_have_decl_fread_unlocked=no
23240 fi
23241 rm -f conftest.$ac_objext conftest.$ac_ext
23242 fi
23243 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
23244 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
23245 if test $ac_cv_have_decl_fread_unlocked = yes; then
23246
23247 cat >>confdefs.h <<_ACEOF
23248 #define HAVE_DECL_FREAD_UNLOCKED 1
23249 _ACEOF
23250
23251
23252 else
23253   cat >>confdefs.h <<_ACEOF
23254 #define HAVE_DECL_FREAD_UNLOCKED 0
23255 _ACEOF
23256
23257
23258 fi
23259 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
23260 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
23261 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
23262   echo $ECHO_N "(cached) $ECHO_C" >&6
23263 else
23264   cat >conftest.$ac_ext <<_ACEOF
23265 #line $LINENO "configure"
23266 /* confdefs.h.  */
23267 _ACEOF
23268 cat confdefs.h >>conftest.$ac_ext
23269 cat >>conftest.$ac_ext <<_ACEOF
23270 /* end confdefs.h.  */
23271 $ac_includes_default
23272 int
23273 main ()
23274 {
23275 #ifndef fwrite_unlocked
23276   char *p = (char *) fwrite_unlocked;
23277 #endif
23278
23279   ;
23280   return 0;
23281 }
23282 _ACEOF
23283 rm -f conftest.$ac_objext
23284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23285   (eval $ac_compile) 2>&5
23286   ac_status=$?
23287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288   (exit $ac_status); } &&
23289          { ac_try='test -s conftest.$ac_objext'
23290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23291   (eval $ac_try) 2>&5
23292   ac_status=$?
23293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294   (exit $ac_status); }; }; then
23295   ac_cv_have_decl_fwrite_unlocked=yes
23296 else
23297   echo "$as_me: failed program was:" >&5
23298 sed 's/^/| /' conftest.$ac_ext >&5
23299
23300 ac_cv_have_decl_fwrite_unlocked=no
23301 fi
23302 rm -f conftest.$ac_objext conftest.$ac_ext
23303 fi
23304 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
23305 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
23306 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
23307
23308 cat >>confdefs.h <<_ACEOF
23309 #define HAVE_DECL_FWRITE_UNLOCKED 1
23310 _ACEOF
23311
23312
23313 else
23314   cat >>confdefs.h <<_ACEOF
23315 #define HAVE_DECL_FWRITE_UNLOCKED 0
23316 _ACEOF
23317
23318
23319 fi
23320 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
23321 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
23322 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
23323   echo $ECHO_N "(cached) $ECHO_C" >&6
23324 else
23325   cat >conftest.$ac_ext <<_ACEOF
23326 #line $LINENO "configure"
23327 /* confdefs.h.  */
23328 _ACEOF
23329 cat confdefs.h >>conftest.$ac_ext
23330 cat >>conftest.$ac_ext <<_ACEOF
23331 /* end confdefs.h.  */
23332 $ac_includes_default
23333 int
23334 main ()
23335 {
23336 #ifndef getc_unlocked
23337   char *p = (char *) getc_unlocked;
23338 #endif
23339
23340   ;
23341   return 0;
23342 }
23343 _ACEOF
23344 rm -f conftest.$ac_objext
23345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23346   (eval $ac_compile) 2>&5
23347   ac_status=$?
23348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23349   (exit $ac_status); } &&
23350          { ac_try='test -s conftest.$ac_objext'
23351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23352   (eval $ac_try) 2>&5
23353   ac_status=$?
23354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355   (exit $ac_status); }; }; then
23356   ac_cv_have_decl_getc_unlocked=yes
23357 else
23358   echo "$as_me: failed program was:" >&5
23359 sed 's/^/| /' conftest.$ac_ext >&5
23360
23361 ac_cv_have_decl_getc_unlocked=no
23362 fi
23363 rm -f conftest.$ac_objext conftest.$ac_ext
23364 fi
23365 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
23366 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
23367 if test $ac_cv_have_decl_getc_unlocked = yes; then
23368
23369 cat >>confdefs.h <<_ACEOF
23370 #define HAVE_DECL_GETC_UNLOCKED 1
23371 _ACEOF
23372
23373
23374 else
23375   cat >>confdefs.h <<_ACEOF
23376 #define HAVE_DECL_GETC_UNLOCKED 0
23377 _ACEOF
23378
23379
23380 fi
23381 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
23382 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
23383 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
23384   echo $ECHO_N "(cached) $ECHO_C" >&6
23385 else
23386   cat >conftest.$ac_ext <<_ACEOF
23387 #line $LINENO "configure"
23388 /* confdefs.h.  */
23389 _ACEOF
23390 cat confdefs.h >>conftest.$ac_ext
23391 cat >>conftest.$ac_ext <<_ACEOF
23392 /* end confdefs.h.  */
23393 $ac_includes_default
23394 int
23395 main ()
23396 {
23397 #ifndef getchar_unlocked
23398   char *p = (char *) getchar_unlocked;
23399 #endif
23400
23401   ;
23402   return 0;
23403 }
23404 _ACEOF
23405 rm -f conftest.$ac_objext
23406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23407   (eval $ac_compile) 2>&5
23408   ac_status=$?
23409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410   (exit $ac_status); } &&
23411          { ac_try='test -s conftest.$ac_objext'
23412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23413   (eval $ac_try) 2>&5
23414   ac_status=$?
23415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416   (exit $ac_status); }; }; then
23417   ac_cv_have_decl_getchar_unlocked=yes
23418 else
23419   echo "$as_me: failed program was:" >&5
23420 sed 's/^/| /' conftest.$ac_ext >&5
23421
23422 ac_cv_have_decl_getchar_unlocked=no
23423 fi
23424 rm -f conftest.$ac_objext conftest.$ac_ext
23425 fi
23426 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
23427 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
23428 if test $ac_cv_have_decl_getchar_unlocked = yes; then
23429
23430 cat >>confdefs.h <<_ACEOF
23431 #define HAVE_DECL_GETCHAR_UNLOCKED 1
23432 _ACEOF
23433
23434
23435 else
23436   cat >>confdefs.h <<_ACEOF
23437 #define HAVE_DECL_GETCHAR_UNLOCKED 0
23438 _ACEOF
23439
23440
23441 fi
23442 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
23443 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
23444 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
23445   echo $ECHO_N "(cached) $ECHO_C" >&6
23446 else
23447   cat >conftest.$ac_ext <<_ACEOF
23448 #line $LINENO "configure"
23449 /* confdefs.h.  */
23450 _ACEOF
23451 cat confdefs.h >>conftest.$ac_ext
23452 cat >>conftest.$ac_ext <<_ACEOF
23453 /* end confdefs.h.  */
23454 $ac_includes_default
23455 int
23456 main ()
23457 {
23458 #ifndef putc_unlocked
23459   char *p = (char *) putc_unlocked;
23460 #endif
23461
23462   ;
23463   return 0;
23464 }
23465 _ACEOF
23466 rm -f conftest.$ac_objext
23467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23468   (eval $ac_compile) 2>&5
23469   ac_status=$?
23470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471   (exit $ac_status); } &&
23472          { ac_try='test -s conftest.$ac_objext'
23473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23474   (eval $ac_try) 2>&5
23475   ac_status=$?
23476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477   (exit $ac_status); }; }; then
23478   ac_cv_have_decl_putc_unlocked=yes
23479 else
23480   echo "$as_me: failed program was:" >&5
23481 sed 's/^/| /' conftest.$ac_ext >&5
23482
23483 ac_cv_have_decl_putc_unlocked=no
23484 fi
23485 rm -f conftest.$ac_objext conftest.$ac_ext
23486 fi
23487 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
23488 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
23489 if test $ac_cv_have_decl_putc_unlocked = yes; then
23490
23491 cat >>confdefs.h <<_ACEOF
23492 #define HAVE_DECL_PUTC_UNLOCKED 1
23493 _ACEOF
23494
23495
23496 else
23497   cat >>confdefs.h <<_ACEOF
23498 #define HAVE_DECL_PUTC_UNLOCKED 0
23499 _ACEOF
23500
23501
23502 fi
23503 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
23504 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
23505 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
23506   echo $ECHO_N "(cached) $ECHO_C" >&6
23507 else
23508   cat >conftest.$ac_ext <<_ACEOF
23509 #line $LINENO "configure"
23510 /* confdefs.h.  */
23511 _ACEOF
23512 cat confdefs.h >>conftest.$ac_ext
23513 cat >>conftest.$ac_ext <<_ACEOF
23514 /* end confdefs.h.  */
23515 $ac_includes_default
23516 int
23517 main ()
23518 {
23519 #ifndef putchar_unlocked
23520   char *p = (char *) putchar_unlocked;
23521 #endif
23522
23523   ;
23524   return 0;
23525 }
23526 _ACEOF
23527 rm -f conftest.$ac_objext
23528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23529   (eval $ac_compile) 2>&5
23530   ac_status=$?
23531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23532   (exit $ac_status); } &&
23533          { ac_try='test -s conftest.$ac_objext'
23534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23535   (eval $ac_try) 2>&5
23536   ac_status=$?
23537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538   (exit $ac_status); }; }; then
23539   ac_cv_have_decl_putchar_unlocked=yes
23540 else
23541   echo "$as_me: failed program was:" >&5
23542 sed 's/^/| /' conftest.$ac_ext >&5
23543
23544 ac_cv_have_decl_putchar_unlocked=no
23545 fi
23546 rm -f conftest.$ac_objext conftest.$ac_ext
23547 fi
23548 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
23549 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
23550 if test $ac_cv_have_decl_putchar_unlocked = yes; then
23551
23552 cat >>confdefs.h <<_ACEOF
23553 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
23554 _ACEOF
23555
23556
23557 else
23558   cat >>confdefs.h <<_ACEOF
23559 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
23560 _ACEOF
23561
23562
23563 fi
23564
23565
23566
23567             echo "$as_me:$LINENO: checking for group_member" >&5
23568 echo $ECHO_N "checking for group_member... $ECHO_C" >&6
23569 if test "${ac_cv_func_group_member+set}" = set; then
23570   echo $ECHO_N "(cached) $ECHO_C" >&6
23571 else
23572   cat >conftest.$ac_ext <<_ACEOF
23573 #line $LINENO "configure"
23574 /* confdefs.h.  */
23575 _ACEOF
23576 cat confdefs.h >>conftest.$ac_ext
23577 cat >>conftest.$ac_ext <<_ACEOF
23578 /* end confdefs.h.  */
23579 /* System header to define __stub macros and hopefully few prototypes,
23580     which can conflict with char group_member (); below.
23581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23582     <limits.h> exists even on freestanding compilers.  */
23583 #ifdef __STDC__
23584 # include <limits.h>
23585 #else
23586 # include <assert.h>
23587 #endif
23588 /* Override any gcc2 internal prototype to avoid an error.  */
23589 #ifdef __cplusplus
23590 extern "C"
23591 {
23592 #endif
23593 /* We use char because int might match the return type of a gcc2
23594    builtin and then its argument prototype would still apply.  */
23595 char group_member ();
23596 /* The GNU C library defines this for functions which it implements
23597     to always fail with ENOSYS.  Some functions are actually named
23598     something starting with __ and the normal name is an alias.  */
23599 #if defined (__stub_group_member) || defined (__stub___group_member)
23600 choke me
23601 #else
23602 char (*f) () = group_member;
23603 #endif
23604 #ifdef __cplusplus
23605 }
23606 #endif
23607
23608 int
23609 main ()
23610 {
23611 return f != group_member;
23612   ;
23613   return 0;
23614 }
23615 _ACEOF
23616 rm -f conftest.$ac_objext conftest$ac_exeext
23617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23618   (eval $ac_link) 2>&5
23619   ac_status=$?
23620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621   (exit $ac_status); } &&
23622          { ac_try='test -s conftest$ac_exeext'
23623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23624   (eval $ac_try) 2>&5
23625   ac_status=$?
23626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627   (exit $ac_status); }; }; then
23628   ac_cv_func_group_member=yes
23629 else
23630   echo "$as_me: failed program was:" >&5
23631 sed 's/^/| /' conftest.$ac_ext >&5
23632
23633 ac_cv_func_group_member=no
23634 fi
23635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23636 fi
23637 echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
23638 echo "${ECHO_T}$ac_cv_func_group_member" >&6
23639 if test $ac_cv_func_group_member = yes; then
23640   :
23641 else
23642   LIBOBJS="$LIBOBJS group-member.$ac_objext"
23643 fi
23644
23645
23646
23647 echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
23648 echo $ECHO_N "checking for SVID conformant putenv... $ECHO_C" >&6
23649 if test "${jm_cv_func_svid_putenv+set}" = set; then
23650   echo $ECHO_N "(cached) $ECHO_C" >&6
23651 else
23652   if test "$cross_compiling" = yes; then
23653              jm_cv_func_svid_putenv=no
23654 else
23655   cat >conftest.$ac_ext <<_ACEOF
23656 #line $LINENO "configure"
23657 /* confdefs.h.  */
23658 _ACEOF
23659 cat confdefs.h >>conftest.$ac_ext
23660 cat >>conftest.$ac_ext <<_ACEOF
23661 /* end confdefs.h.  */
23662
23663     int
23664     main ()
23665     {
23666       /* Put it in env.  */
23667       if (putenv ("CONFTEST_putenv=val"))
23668         exit (1);
23669
23670       /* Try to remove it.  */
23671       if (putenv ("CONFTEST_putenv"))
23672         exit (1);
23673
23674       /* Make sure it was deleted.  */
23675       if (getenv ("CONFTEST_putenv") != 0)
23676         exit (1);
23677
23678       exit (0);
23679     }
23680
23681 _ACEOF
23682 rm -f conftest$ac_exeext
23683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23684   (eval $ac_link) 2>&5
23685   ac_status=$?
23686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23689   (eval $ac_try) 2>&5
23690   ac_status=$?
23691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692   (exit $ac_status); }; }; then
23693   jm_cv_func_svid_putenv=yes
23694 else
23695   echo "$as_me: program exited with status $ac_status" >&5
23696 echo "$as_me: failed program was:" >&5
23697 sed 's/^/| /' conftest.$ac_ext >&5
23698
23699 ( exit $ac_status )
23700 jm_cv_func_svid_putenv=no
23701 fi
23702 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23703 fi
23704
23705 fi
23706 echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
23707 echo "${ECHO_T}$jm_cv_func_svid_putenv" >&6
23708   if test $jm_cv_func_svid_putenv = no; then
23709     LIBOBJS="$LIBOBJS putenv.$ac_objext"
23710
23711 cat >>confdefs.h <<\_ACEOF
23712 #define putenv rpl_putenv
23713 _ACEOF
23714
23715   fi
23716
23717
23718     echo "$as_me:$LINENO: checking for AFS" >&5
23719 echo $ECHO_N "checking for AFS... $ECHO_C" >&6
23720     if test -d /afs; then
23721
23722 cat >>confdefs.h <<\_ACEOF
23723 #define AFS 1
23724 _ACEOF
23725
23726       ac_result=yes
23727     else
23728       ac_result=no
23729     fi
23730     echo "$as_me:$LINENO: result: $ac_result" >&5
23731 echo "${ECHO_T}$ac_result" >&6
23732
23733
23734
23735   echo "$as_me:$LINENO: checking for intmax_t" >&5
23736 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
23737 if test "${ac_cv_type_intmax_t+set}" = set; then
23738   echo $ECHO_N "(cached) $ECHO_C" >&6
23739 else
23740   cat >conftest.$ac_ext <<_ACEOF
23741 #line $LINENO "configure"
23742 /* confdefs.h.  */
23743 _ACEOF
23744 cat confdefs.h >>conftest.$ac_ext
23745 cat >>conftest.$ac_ext <<_ACEOF
23746 /* end confdefs.h.  */
23747 $ac_includes_default
23748 int
23749 main ()
23750 {
23751 if ((intmax_t *) 0)
23752   return 0;
23753 if (sizeof (intmax_t))
23754   return 0;
23755   ;
23756   return 0;
23757 }
23758 _ACEOF
23759 rm -f conftest.$ac_objext
23760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23761   (eval $ac_compile) 2>&5
23762   ac_status=$?
23763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23764   (exit $ac_status); } &&
23765          { ac_try='test -s conftest.$ac_objext'
23766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23767   (eval $ac_try) 2>&5
23768   ac_status=$?
23769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770   (exit $ac_status); }; }; then
23771   ac_cv_type_intmax_t=yes
23772 else
23773   echo "$as_me: failed program was:" >&5
23774 sed 's/^/| /' conftest.$ac_ext >&5
23775
23776 ac_cv_type_intmax_t=no
23777 fi
23778 rm -f conftest.$ac_objext conftest.$ac_ext
23779 fi
23780 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
23781 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
23782 if test $ac_cv_type_intmax_t = yes; then
23783   :
23784 else
23785   test $ac_cv_type_long_long = yes \
23786        && ac_type='long long' \
23787        || ac_type='long'
23788
23789 cat >>confdefs.h <<_ACEOF
23790 #define intmax_t $ac_type
23791 _ACEOF
23792
23793 fi
23794
23795
23796
23797
23798
23799
23800
23801   echo "$as_me:$LINENO: checking whether strtol is declared" >&5
23802 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
23803 if test "${ac_cv_have_decl_strtol+set}" = set; then
23804   echo $ECHO_N "(cached) $ECHO_C" >&6
23805 else
23806   cat >conftest.$ac_ext <<_ACEOF
23807 #line $LINENO "configure"
23808 /* confdefs.h.  */
23809 _ACEOF
23810 cat confdefs.h >>conftest.$ac_ext
23811 cat >>conftest.$ac_ext <<_ACEOF
23812 /* end confdefs.h.  */
23813 $ac_includes_default
23814 int
23815 main ()
23816 {
23817 #ifndef strtol
23818   char *p = (char *) strtol;
23819 #endif
23820
23821   ;
23822   return 0;
23823 }
23824 _ACEOF
23825 rm -f conftest.$ac_objext
23826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23827   (eval $ac_compile) 2>&5
23828   ac_status=$?
23829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830   (exit $ac_status); } &&
23831          { ac_try='test -s conftest.$ac_objext'
23832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23833   (eval $ac_try) 2>&5
23834   ac_status=$?
23835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836   (exit $ac_status); }; }; then
23837   ac_cv_have_decl_strtol=yes
23838 else
23839   echo "$as_me: failed program was:" >&5
23840 sed 's/^/| /' conftest.$ac_ext >&5
23841
23842 ac_cv_have_decl_strtol=no
23843 fi
23844 rm -f conftest.$ac_objext conftest.$ac_ext
23845 fi
23846 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
23847 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
23848 if test $ac_cv_have_decl_strtol = yes; then
23849
23850 cat >>confdefs.h <<_ACEOF
23851 #define HAVE_DECL_STRTOL 1
23852 _ACEOF
23853
23854
23855 else
23856   cat >>confdefs.h <<_ACEOF
23857 #define HAVE_DECL_STRTOL 0
23858 _ACEOF
23859
23860
23861 fi
23862 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
23863 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
23864 if test "${ac_cv_have_decl_strtoul+set}" = set; then
23865   echo $ECHO_N "(cached) $ECHO_C" >&6
23866 else
23867   cat >conftest.$ac_ext <<_ACEOF
23868 #line $LINENO "configure"
23869 /* confdefs.h.  */
23870 _ACEOF
23871 cat confdefs.h >>conftest.$ac_ext
23872 cat >>conftest.$ac_ext <<_ACEOF
23873 /* end confdefs.h.  */
23874 $ac_includes_default
23875 int
23876 main ()
23877 {
23878 #ifndef strtoul
23879   char *p = (char *) strtoul;
23880 #endif
23881
23882   ;
23883   return 0;
23884 }
23885 _ACEOF
23886 rm -f conftest.$ac_objext
23887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23888   (eval $ac_compile) 2>&5
23889   ac_status=$?
23890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891   (exit $ac_status); } &&
23892          { ac_try='test -s conftest.$ac_objext'
23893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23894   (eval $ac_try) 2>&5
23895   ac_status=$?
23896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897   (exit $ac_status); }; }; then
23898   ac_cv_have_decl_strtoul=yes
23899 else
23900   echo "$as_me: failed program was:" >&5
23901 sed 's/^/| /' conftest.$ac_ext >&5
23902
23903 ac_cv_have_decl_strtoul=no
23904 fi
23905 rm -f conftest.$ac_objext conftest.$ac_ext
23906 fi
23907 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
23908 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
23909 if test $ac_cv_have_decl_strtoul = yes; then
23910
23911 cat >>confdefs.h <<_ACEOF
23912 #define HAVE_DECL_STRTOUL 1
23913 _ACEOF
23914
23915
23916 else
23917   cat >>confdefs.h <<_ACEOF
23918 #define HAVE_DECL_STRTOUL 0
23919 _ACEOF
23920
23921
23922 fi
23923 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
23924 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
23925 if test "${ac_cv_have_decl_strtoull+set}" = set; then
23926   echo $ECHO_N "(cached) $ECHO_C" >&6
23927 else
23928   cat >conftest.$ac_ext <<_ACEOF
23929 #line $LINENO "configure"
23930 /* confdefs.h.  */
23931 _ACEOF
23932 cat confdefs.h >>conftest.$ac_ext
23933 cat >>conftest.$ac_ext <<_ACEOF
23934 /* end confdefs.h.  */
23935 $ac_includes_default
23936 int
23937 main ()
23938 {
23939 #ifndef strtoull
23940   char *p = (char *) strtoull;
23941 #endif
23942
23943   ;
23944   return 0;
23945 }
23946 _ACEOF
23947 rm -f conftest.$ac_objext
23948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23949   (eval $ac_compile) 2>&5
23950   ac_status=$?
23951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952   (exit $ac_status); } &&
23953          { ac_try='test -s conftest.$ac_objext'
23954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23955   (eval $ac_try) 2>&5
23956   ac_status=$?
23957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958   (exit $ac_status); }; }; then
23959   ac_cv_have_decl_strtoull=yes
23960 else
23961   echo "$as_me: failed program was:" >&5
23962 sed 's/^/| /' conftest.$ac_ext >&5
23963
23964 ac_cv_have_decl_strtoull=no
23965 fi
23966 rm -f conftest.$ac_objext conftest.$ac_ext
23967 fi
23968 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
23969 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
23970 if test $ac_cv_have_decl_strtoull = yes; then
23971
23972 cat >>confdefs.h <<_ACEOF
23973 #define HAVE_DECL_STRTOULL 1
23974 _ACEOF
23975
23976
23977 else
23978   cat >>confdefs.h <<_ACEOF
23979 #define HAVE_DECL_STRTOULL 0
23980 _ACEOF
23981
23982
23983 fi
23984 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
23985 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
23986 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
23987   echo $ECHO_N "(cached) $ECHO_C" >&6
23988 else
23989   cat >conftest.$ac_ext <<_ACEOF
23990 #line $LINENO "configure"
23991 /* confdefs.h.  */
23992 _ACEOF
23993 cat confdefs.h >>conftest.$ac_ext
23994 cat >>conftest.$ac_ext <<_ACEOF
23995 /* end confdefs.h.  */
23996 $ac_includes_default
23997 int
23998 main ()
23999 {
24000 #ifndef strtoimax
24001   char *p = (char *) strtoimax;
24002 #endif
24003
24004   ;
24005   return 0;
24006 }
24007 _ACEOF
24008 rm -f conftest.$ac_objext
24009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24010   (eval $ac_compile) 2>&5
24011   ac_status=$?
24012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24013   (exit $ac_status); } &&
24014          { ac_try='test -s conftest.$ac_objext'
24015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24016   (eval $ac_try) 2>&5
24017   ac_status=$?
24018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019   (exit $ac_status); }; }; then
24020   ac_cv_have_decl_strtoimax=yes
24021 else
24022   echo "$as_me: failed program was:" >&5
24023 sed 's/^/| /' conftest.$ac_ext >&5
24024
24025 ac_cv_have_decl_strtoimax=no
24026 fi
24027 rm -f conftest.$ac_objext conftest.$ac_ext
24028 fi
24029 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
24030 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
24031 if test $ac_cv_have_decl_strtoimax = yes; then
24032
24033 cat >>confdefs.h <<_ACEOF
24034 #define HAVE_DECL_STRTOIMAX 1
24035 _ACEOF
24036
24037
24038 else
24039   cat >>confdefs.h <<_ACEOF
24040 #define HAVE_DECL_STRTOIMAX 0
24041 _ACEOF
24042
24043
24044 fi
24045 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
24046 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
24047 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
24048   echo $ECHO_N "(cached) $ECHO_C" >&6
24049 else
24050   cat >conftest.$ac_ext <<_ACEOF
24051 #line $LINENO "configure"
24052 /* confdefs.h.  */
24053 _ACEOF
24054 cat confdefs.h >>conftest.$ac_ext
24055 cat >>conftest.$ac_ext <<_ACEOF
24056 /* end confdefs.h.  */
24057 $ac_includes_default
24058 int
24059 main ()
24060 {
24061 #ifndef strtoumax
24062   char *p = (char *) strtoumax;
24063 #endif
24064
24065   ;
24066   return 0;
24067 }
24068 _ACEOF
24069 rm -f conftest.$ac_objext
24070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24071   (eval $ac_compile) 2>&5
24072   ac_status=$?
24073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074   (exit $ac_status); } &&
24075          { ac_try='test -s conftest.$ac_objext'
24076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24077   (eval $ac_try) 2>&5
24078   ac_status=$?
24079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080   (exit $ac_status); }; }; then
24081   ac_cv_have_decl_strtoumax=yes
24082 else
24083   echo "$as_me: failed program was:" >&5
24084 sed 's/^/| /' conftest.$ac_ext >&5
24085
24086 ac_cv_have_decl_strtoumax=no
24087 fi
24088 rm -f conftest.$ac_objext conftest.$ac_ext
24089 fi
24090 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
24091 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
24092 if test $ac_cv_have_decl_strtoumax = yes; then
24093
24094 cat >>confdefs.h <<_ACEOF
24095 #define HAVE_DECL_STRTOUMAX 1
24096 _ACEOF
24097
24098
24099 else
24100   cat >>confdefs.h <<_ACEOF
24101 #define HAVE_DECL_STRTOUMAX 0
24102 _ACEOF
24103
24104
24105 fi
24106
24107
24108
24109
24110
24111 for ac_header in limits.h stdlib.h inttypes.h
24112 do
24113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24115   echo "$as_me:$LINENO: checking for $ac_header" >&5
24116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24118   echo $ECHO_N "(cached) $ECHO_C" >&6
24119 fi
24120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24122 else
24123   # Is the header compilable?
24124 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24126 cat >conftest.$ac_ext <<_ACEOF
24127 #line $LINENO "configure"
24128 /* confdefs.h.  */
24129 _ACEOF
24130 cat confdefs.h >>conftest.$ac_ext
24131 cat >>conftest.$ac_ext <<_ACEOF
24132 /* end confdefs.h.  */
24133 $ac_includes_default
24134 #include <$ac_header>
24135 _ACEOF
24136 rm -f conftest.$ac_objext
24137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24138   (eval $ac_compile) 2>&5
24139   ac_status=$?
24140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141   (exit $ac_status); } &&
24142          { ac_try='test -s conftest.$ac_objext'
24143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24144   (eval $ac_try) 2>&5
24145   ac_status=$?
24146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147   (exit $ac_status); }; }; then
24148   ac_header_compiler=yes
24149 else
24150   echo "$as_me: failed program was:" >&5
24151 sed 's/^/| /' conftest.$ac_ext >&5
24152
24153 ac_header_compiler=no
24154 fi
24155 rm -f conftest.$ac_objext conftest.$ac_ext
24156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24157 echo "${ECHO_T}$ac_header_compiler" >&6
24158
24159 # Is the header present?
24160 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24162 cat >conftest.$ac_ext <<_ACEOF
24163 #line $LINENO "configure"
24164 /* confdefs.h.  */
24165 _ACEOF
24166 cat confdefs.h >>conftest.$ac_ext
24167 cat >>conftest.$ac_ext <<_ACEOF
24168 /* end confdefs.h.  */
24169 #include <$ac_header>
24170 _ACEOF
24171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24172   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24173   ac_status=$?
24174   grep -v '^ *+' conftest.er1 >conftest.err
24175   rm -f conftest.er1
24176   cat conftest.err >&5
24177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24178   (exit $ac_status); } >/dev/null; then
24179   if test -s conftest.err; then
24180     ac_cpp_err=$ac_c_preproc_warn_flag
24181   else
24182     ac_cpp_err=
24183   fi
24184 else
24185   ac_cpp_err=yes
24186 fi
24187 if test -z "$ac_cpp_err"; then
24188   ac_header_preproc=yes
24189 else
24190   echo "$as_me: failed program was:" >&5
24191 sed 's/^/| /' conftest.$ac_ext >&5
24192
24193   ac_header_preproc=no
24194 fi
24195 rm -f conftest.err conftest.$ac_ext
24196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24197 echo "${ECHO_T}$ac_header_preproc" >&6
24198
24199 # So?  What about this header?
24200 case $ac_header_compiler:$ac_header_preproc in
24201   yes:no )
24202     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24206     (
24207       cat <<\_ASBOX
24208 ## ------------------------------------ ##
24209 ## Report this to bug-autoconf@gnu.org. ##
24210 ## ------------------------------------ ##
24211 _ASBOX
24212     ) |
24213       sed "s/^/$as_me: WARNING:     /" >&2
24214     ;;
24215   no:yes )
24216     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24218     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24222     (
24223       cat <<\_ASBOX
24224 ## ------------------------------------ ##
24225 ## Report this to bug-autoconf@gnu.org. ##
24226 ## ------------------------------------ ##
24227 _ASBOX
24228     ) |
24229       sed "s/^/$as_me: WARNING:     /" >&2
24230     ;;
24231 esac
24232 echo "$as_me:$LINENO: checking for $ac_header" >&5
24233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24235   echo $ECHO_N "(cached) $ECHO_C" >&6
24236 else
24237   eval "$as_ac_Header=$ac_header_preproc"
24238 fi
24239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24241
24242 fi
24243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24244   cat >>confdefs.h <<_ACEOF
24245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24246 _ACEOF
24247
24248 fi
24249
24250 done
24251
24252
24253   echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
24254 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6
24255 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
24256   echo $ECHO_N "(cached) $ECHO_C" >&6
24257 else
24258   cat >conftest.$ac_ext <<_ACEOF
24259 #line $LINENO "configure"
24260 /* confdefs.h.  */
24261 _ACEOF
24262 cat confdefs.h >>conftest.$ac_ext
24263 cat >>conftest.$ac_ext <<_ACEOF
24264 /* end confdefs.h.  */
24265 #include <inttypes.h>
24266 #ifdef strtoumax
24267  inttypes_h_defines_strtoumax
24268 #endif
24269 _ACEOF
24270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24271   $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
24272   jm_cv_func_strtoumax_macro=yes
24273 else
24274   jm_cv_func_strtoumax_macro=no
24275 fi
24276 rm -f conftest*
24277
24278 fi
24279 echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
24280 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6
24281
24282   if test "$jm_cv_func_strtoumax_macro" != yes; then
24283
24284 for ac_func in strtoumax
24285 do
24286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24287 echo "$as_me:$LINENO: checking for $ac_func" >&5
24288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24289 if eval "test \"\${$as_ac_var+set}\" = set"; then
24290   echo $ECHO_N "(cached) $ECHO_C" >&6
24291 else
24292   cat >conftest.$ac_ext <<_ACEOF
24293 #line $LINENO "configure"
24294 /* confdefs.h.  */
24295 _ACEOF
24296 cat confdefs.h >>conftest.$ac_ext
24297 cat >>conftest.$ac_ext <<_ACEOF
24298 /* end confdefs.h.  */
24299 /* System header to define __stub macros and hopefully few prototypes,
24300     which can conflict with char $ac_func (); below.
24301     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24302     <limits.h> exists even on freestanding compilers.  */
24303 #ifdef __STDC__
24304 # include <limits.h>
24305 #else
24306 # include <assert.h>
24307 #endif
24308 /* Override any gcc2 internal prototype to avoid an error.  */
24309 #ifdef __cplusplus
24310 extern "C"
24311 {
24312 #endif
24313 /* We use char because int might match the return type of a gcc2
24314    builtin and then its argument prototype would still apply.  */
24315 char $ac_func ();
24316 /* The GNU C library defines this for functions which it implements
24317     to always fail with ENOSYS.  Some functions are actually named
24318     something starting with __ and the normal name is an alias.  */
24319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24320 choke me
24321 #else
24322 char (*f) () = $ac_func;
24323 #endif
24324 #ifdef __cplusplus
24325 }
24326 #endif
24327
24328 int
24329 main ()
24330 {
24331 return f != $ac_func;
24332   ;
24333   return 0;
24334 }
24335 _ACEOF
24336 rm -f conftest.$ac_objext conftest$ac_exeext
24337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24338   (eval $ac_link) 2>&5
24339   ac_status=$?
24340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341   (exit $ac_status); } &&
24342          { ac_try='test -s conftest$ac_exeext'
24343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24344   (eval $ac_try) 2>&5
24345   ac_status=$?
24346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24347   (exit $ac_status); }; }; then
24348   eval "$as_ac_var=yes"
24349 else
24350   echo "$as_me: failed program was:" >&5
24351 sed 's/^/| /' conftest.$ac_ext >&5
24352
24353 eval "$as_ac_var=no"
24354 fi
24355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24356 fi
24357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24359 if test `eval echo '${'$as_ac_var'}'` = yes; then
24360   cat >>confdefs.h <<_ACEOF
24361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24362 _ACEOF
24363
24364 else
24365   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24366 fi
24367 done
24368
24369
24370   fi
24371
24372       case "$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in
24373     no,no)
24374
24375 for ac_func in strtoul
24376 do
24377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24378 echo "$as_me:$LINENO: checking for $ac_func" >&5
24379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24380 if eval "test \"\${$as_ac_var+set}\" = set"; then
24381   echo $ECHO_N "(cached) $ECHO_C" >&6
24382 else
24383   cat >conftest.$ac_ext <<_ACEOF
24384 #line $LINENO "configure"
24385 /* confdefs.h.  */
24386 _ACEOF
24387 cat confdefs.h >>conftest.$ac_ext
24388 cat >>conftest.$ac_ext <<_ACEOF
24389 /* end confdefs.h.  */
24390 /* System header to define __stub macros and hopefully few prototypes,
24391     which can conflict with char $ac_func (); below.
24392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24393     <limits.h> exists even on freestanding compilers.  */
24394 #ifdef __STDC__
24395 # include <limits.h>
24396 #else
24397 # include <assert.h>
24398 #endif
24399 /* Override any gcc2 internal prototype to avoid an error.  */
24400 #ifdef __cplusplus
24401 extern "C"
24402 {
24403 #endif
24404 /* We use char because int might match the return type of a gcc2
24405    builtin and then its argument prototype would still apply.  */
24406 char $ac_func ();
24407 /* The GNU C library defines this for functions which it implements
24408     to always fail with ENOSYS.  Some functions are actually named
24409     something starting with __ and the normal name is an alias.  */
24410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24411 choke me
24412 #else
24413 char (*f) () = $ac_func;
24414 #endif
24415 #ifdef __cplusplus
24416 }
24417 #endif
24418
24419 int
24420 main ()
24421 {
24422 return f != $ac_func;
24423   ;
24424   return 0;
24425 }
24426 _ACEOF
24427 rm -f conftest.$ac_objext conftest$ac_exeext
24428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24429   (eval $ac_link) 2>&5
24430   ac_status=$?
24431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432   (exit $ac_status); } &&
24433          { ac_try='test -s conftest$ac_exeext'
24434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24435   (eval $ac_try) 2>&5
24436   ac_status=$?
24437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438   (exit $ac_status); }; }; then
24439   eval "$as_ac_var=yes"
24440 else
24441   echo "$as_me: failed program was:" >&5
24442 sed 's/^/| /' conftest.$ac_ext >&5
24443
24444 eval "$as_ac_var=no"
24445 fi
24446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24447 fi
24448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24450 if test `eval echo '${'$as_ac_var'}'` = yes; then
24451   cat >>confdefs.h <<_ACEOF
24452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24453 _ACEOF
24454
24455 else
24456   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24457 fi
24458 done
24459
24460
24461
24462                   if test "$ac_cv_type_unsigned_long_long" = yes; then
24463
24464 for ac_func in strtoull
24465 do
24466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24467 echo "$as_me:$LINENO: checking for $ac_func" >&5
24468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24469 if eval "test \"\${$as_ac_var+set}\" = set"; then
24470   echo $ECHO_N "(cached) $ECHO_C" >&6
24471 else
24472   cat >conftest.$ac_ext <<_ACEOF
24473 #line $LINENO "configure"
24474 /* confdefs.h.  */
24475 _ACEOF
24476 cat confdefs.h >>conftest.$ac_ext
24477 cat >>conftest.$ac_ext <<_ACEOF
24478 /* end confdefs.h.  */
24479 /* System header to define __stub macros and hopefully few prototypes,
24480     which can conflict with char $ac_func (); below.
24481     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24482     <limits.h> exists even on freestanding compilers.  */
24483 #ifdef __STDC__
24484 # include <limits.h>
24485 #else
24486 # include <assert.h>
24487 #endif
24488 /* Override any gcc2 internal prototype to avoid an error.  */
24489 #ifdef __cplusplus
24490 extern "C"
24491 {
24492 #endif
24493 /* We use char because int might match the return type of a gcc2
24494    builtin and then its argument prototype would still apply.  */
24495 char $ac_func ();
24496 /* The GNU C library defines this for functions which it implements
24497     to always fail with ENOSYS.  Some functions are actually named
24498     something starting with __ and the normal name is an alias.  */
24499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24500 choke me
24501 #else
24502 char (*f) () = $ac_func;
24503 #endif
24504 #ifdef __cplusplus
24505 }
24506 #endif
24507
24508 int
24509 main ()
24510 {
24511 return f != $ac_func;
24512   ;
24513   return 0;
24514 }
24515 _ACEOF
24516 rm -f conftest.$ac_objext conftest$ac_exeext
24517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24518   (eval $ac_link) 2>&5
24519   ac_status=$?
24520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24521   (exit $ac_status); } &&
24522          { ac_try='test -s conftest$ac_exeext'
24523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24524   (eval $ac_try) 2>&5
24525   ac_status=$?
24526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24527   (exit $ac_status); }; }; then
24528   eval "$as_ac_var=yes"
24529 else
24530   echo "$as_me: failed program was:" >&5
24531 sed 's/^/| /' conftest.$ac_ext >&5
24532
24533 eval "$as_ac_var=no"
24534 fi
24535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24536 fi
24537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24539 if test `eval echo '${'$as_ac_var'}'` = yes; then
24540   cat >>confdefs.h <<_ACEOF
24541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24542 _ACEOF
24543
24544 else
24545   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24546 fi
24547 done
24548
24549
24550       fi
24551       ;;
24552   esac
24553
24554
24555
24556
24557
24558
24559   echo "$as_me:$LINENO: checking whether strtol is declared" >&5
24560 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
24561 if test "${ac_cv_have_decl_strtol+set}" = set; then
24562   echo $ECHO_N "(cached) $ECHO_C" >&6
24563 else
24564   cat >conftest.$ac_ext <<_ACEOF
24565 #line $LINENO "configure"
24566 /* confdefs.h.  */
24567 _ACEOF
24568 cat confdefs.h >>conftest.$ac_ext
24569 cat >>conftest.$ac_ext <<_ACEOF
24570 /* end confdefs.h.  */
24571 $ac_includes_default
24572 int
24573 main ()
24574 {
24575 #ifndef strtol
24576   char *p = (char *) strtol;
24577 #endif
24578
24579   ;
24580   return 0;
24581 }
24582 _ACEOF
24583 rm -f conftest.$ac_objext
24584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24585   (eval $ac_compile) 2>&5
24586   ac_status=$?
24587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588   (exit $ac_status); } &&
24589          { ac_try='test -s conftest.$ac_objext'
24590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24591   (eval $ac_try) 2>&5
24592   ac_status=$?
24593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594   (exit $ac_status); }; }; then
24595   ac_cv_have_decl_strtol=yes
24596 else
24597   echo "$as_me: failed program was:" >&5
24598 sed 's/^/| /' conftest.$ac_ext >&5
24599
24600 ac_cv_have_decl_strtol=no
24601 fi
24602 rm -f conftest.$ac_objext conftest.$ac_ext
24603 fi
24604 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
24605 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
24606 if test $ac_cv_have_decl_strtol = yes; then
24607
24608 cat >>confdefs.h <<_ACEOF
24609 #define HAVE_DECL_STRTOL 1
24610 _ACEOF
24611
24612
24613 else
24614   cat >>confdefs.h <<_ACEOF
24615 #define HAVE_DECL_STRTOL 0
24616 _ACEOF
24617
24618
24619 fi
24620 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
24621 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
24622 if test "${ac_cv_have_decl_strtoul+set}" = set; then
24623   echo $ECHO_N "(cached) $ECHO_C" >&6
24624 else
24625   cat >conftest.$ac_ext <<_ACEOF
24626 #line $LINENO "configure"
24627 /* confdefs.h.  */
24628 _ACEOF
24629 cat confdefs.h >>conftest.$ac_ext
24630 cat >>conftest.$ac_ext <<_ACEOF
24631 /* end confdefs.h.  */
24632 $ac_includes_default
24633 int
24634 main ()
24635 {
24636 #ifndef strtoul
24637   char *p = (char *) strtoul;
24638 #endif
24639
24640   ;
24641   return 0;
24642 }
24643 _ACEOF
24644 rm -f conftest.$ac_objext
24645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24646   (eval $ac_compile) 2>&5
24647   ac_status=$?
24648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649   (exit $ac_status); } &&
24650          { ac_try='test -s conftest.$ac_objext'
24651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24652   (eval $ac_try) 2>&5
24653   ac_status=$?
24654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24655   (exit $ac_status); }; }; then
24656   ac_cv_have_decl_strtoul=yes
24657 else
24658   echo "$as_me: failed program was:" >&5
24659 sed 's/^/| /' conftest.$ac_ext >&5
24660
24661 ac_cv_have_decl_strtoul=no
24662 fi
24663 rm -f conftest.$ac_objext conftest.$ac_ext
24664 fi
24665 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
24666 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
24667 if test $ac_cv_have_decl_strtoul = yes; then
24668
24669 cat >>confdefs.h <<_ACEOF
24670 #define HAVE_DECL_STRTOUL 1
24671 _ACEOF
24672
24673
24674 else
24675   cat >>confdefs.h <<_ACEOF
24676 #define HAVE_DECL_STRTOUL 0
24677 _ACEOF
24678
24679
24680 fi
24681 echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
24682 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6
24683 if test "${ac_cv_have_decl_strtoll+set}" = set; then
24684   echo $ECHO_N "(cached) $ECHO_C" >&6
24685 else
24686   cat >conftest.$ac_ext <<_ACEOF
24687 #line $LINENO "configure"
24688 /* confdefs.h.  */
24689 _ACEOF
24690 cat confdefs.h >>conftest.$ac_ext
24691 cat >>conftest.$ac_ext <<_ACEOF
24692 /* end confdefs.h.  */
24693 $ac_includes_default
24694 int
24695 main ()
24696 {
24697 #ifndef strtoll
24698   char *p = (char *) strtoll;
24699 #endif
24700
24701   ;
24702   return 0;
24703 }
24704 _ACEOF
24705 rm -f conftest.$ac_objext
24706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24707   (eval $ac_compile) 2>&5
24708   ac_status=$?
24709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710   (exit $ac_status); } &&
24711          { ac_try='test -s conftest.$ac_objext'
24712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24713   (eval $ac_try) 2>&5
24714   ac_status=$?
24715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716   (exit $ac_status); }; }; then
24717   ac_cv_have_decl_strtoll=yes
24718 else
24719   echo "$as_me: failed program was:" >&5
24720 sed 's/^/| /' conftest.$ac_ext >&5
24721
24722 ac_cv_have_decl_strtoll=no
24723 fi
24724 rm -f conftest.$ac_objext conftest.$ac_ext
24725 fi
24726 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
24727 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6
24728 if test $ac_cv_have_decl_strtoll = yes; then
24729
24730 cat >>confdefs.h <<_ACEOF
24731 #define HAVE_DECL_STRTOLL 1
24732 _ACEOF
24733
24734
24735 else
24736   cat >>confdefs.h <<_ACEOF
24737 #define HAVE_DECL_STRTOLL 0
24738 _ACEOF
24739
24740
24741 fi
24742 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
24743 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
24744 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
24745   echo $ECHO_N "(cached) $ECHO_C" >&6
24746 else
24747   cat >conftest.$ac_ext <<_ACEOF
24748 #line $LINENO "configure"
24749 /* confdefs.h.  */
24750 _ACEOF
24751 cat confdefs.h >>conftest.$ac_ext
24752 cat >>conftest.$ac_ext <<_ACEOF
24753 /* end confdefs.h.  */
24754 $ac_includes_default
24755 int
24756 main ()
24757 {
24758 #ifndef strtoimax
24759   char *p = (char *) strtoimax;
24760 #endif
24761
24762   ;
24763   return 0;
24764 }
24765 _ACEOF
24766 rm -f conftest.$ac_objext
24767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24768   (eval $ac_compile) 2>&5
24769   ac_status=$?
24770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24771   (exit $ac_status); } &&
24772          { ac_try='test -s conftest.$ac_objext'
24773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24774   (eval $ac_try) 2>&5
24775   ac_status=$?
24776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24777   (exit $ac_status); }; }; then
24778   ac_cv_have_decl_strtoimax=yes
24779 else
24780   echo "$as_me: failed program was:" >&5
24781 sed 's/^/| /' conftest.$ac_ext >&5
24782
24783 ac_cv_have_decl_strtoimax=no
24784 fi
24785 rm -f conftest.$ac_objext conftest.$ac_ext
24786 fi
24787 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
24788 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
24789 if test $ac_cv_have_decl_strtoimax = yes; then
24790
24791 cat >>confdefs.h <<_ACEOF
24792 #define HAVE_DECL_STRTOIMAX 1
24793 _ACEOF
24794
24795
24796 else
24797   cat >>confdefs.h <<_ACEOF
24798 #define HAVE_DECL_STRTOIMAX 0
24799 _ACEOF
24800
24801
24802 fi
24803 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
24804 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
24805 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
24806   echo $ECHO_N "(cached) $ECHO_C" >&6
24807 else
24808   cat >conftest.$ac_ext <<_ACEOF
24809 #line $LINENO "configure"
24810 /* confdefs.h.  */
24811 _ACEOF
24812 cat confdefs.h >>conftest.$ac_ext
24813 cat >>conftest.$ac_ext <<_ACEOF
24814 /* end confdefs.h.  */
24815 $ac_includes_default
24816 int
24817 main ()
24818 {
24819 #ifndef strtoumax
24820   char *p = (char *) strtoumax;
24821 #endif
24822
24823   ;
24824   return 0;
24825 }
24826 _ACEOF
24827 rm -f conftest.$ac_objext
24828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24829   (eval $ac_compile) 2>&5
24830   ac_status=$?
24831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832   (exit $ac_status); } &&
24833          { ac_try='test -s conftest.$ac_objext'
24834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24835   (eval $ac_try) 2>&5
24836   ac_status=$?
24837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838   (exit $ac_status); }; }; then
24839   ac_cv_have_decl_strtoumax=yes
24840 else
24841   echo "$as_me: failed program was:" >&5
24842 sed 's/^/| /' conftest.$ac_ext >&5
24843
24844 ac_cv_have_decl_strtoumax=no
24845 fi
24846 rm -f conftest.$ac_objext conftest.$ac_ext
24847 fi
24848 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
24849 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
24850 if test $ac_cv_have_decl_strtoumax = yes; then
24851
24852 cat >>confdefs.h <<_ACEOF
24853 #define HAVE_DECL_STRTOUMAX 1
24854 _ACEOF
24855
24856
24857 else
24858   cat >>confdefs.h <<_ACEOF
24859 #define HAVE_DECL_STRTOUMAX 0
24860 _ACEOF
24861
24862
24863 fi
24864
24865
24866
24867
24868
24869 for ac_header in limits.h stdlib.h inttypes.h
24870 do
24871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24873   echo "$as_me:$LINENO: checking for $ac_header" >&5
24874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24876   echo $ECHO_N "(cached) $ECHO_C" >&6
24877 fi
24878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24880 else
24881   # Is the header compilable?
24882 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24884 cat >conftest.$ac_ext <<_ACEOF
24885 #line $LINENO "configure"
24886 /* confdefs.h.  */
24887 _ACEOF
24888 cat confdefs.h >>conftest.$ac_ext
24889 cat >>conftest.$ac_ext <<_ACEOF
24890 /* end confdefs.h.  */
24891 $ac_includes_default
24892 #include <$ac_header>
24893 _ACEOF
24894 rm -f conftest.$ac_objext
24895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24896   (eval $ac_compile) 2>&5
24897   ac_status=$?
24898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899   (exit $ac_status); } &&
24900          { ac_try='test -s conftest.$ac_objext'
24901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24902   (eval $ac_try) 2>&5
24903   ac_status=$?
24904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905   (exit $ac_status); }; }; then
24906   ac_header_compiler=yes
24907 else
24908   echo "$as_me: failed program was:" >&5
24909 sed 's/^/| /' conftest.$ac_ext >&5
24910
24911 ac_header_compiler=no
24912 fi
24913 rm -f conftest.$ac_objext conftest.$ac_ext
24914 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24915 echo "${ECHO_T}$ac_header_compiler" >&6
24916
24917 # Is the header present?
24918 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24919 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24920 cat >conftest.$ac_ext <<_ACEOF
24921 #line $LINENO "configure"
24922 /* confdefs.h.  */
24923 _ACEOF
24924 cat confdefs.h >>conftest.$ac_ext
24925 cat >>conftest.$ac_ext <<_ACEOF
24926 /* end confdefs.h.  */
24927 #include <$ac_header>
24928 _ACEOF
24929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24930   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24931   ac_status=$?
24932   grep -v '^ *+' conftest.er1 >conftest.err
24933   rm -f conftest.er1
24934   cat conftest.err >&5
24935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936   (exit $ac_status); } >/dev/null; then
24937   if test -s conftest.err; then
24938     ac_cpp_err=$ac_c_preproc_warn_flag
24939   else
24940     ac_cpp_err=
24941   fi
24942 else
24943   ac_cpp_err=yes
24944 fi
24945 if test -z "$ac_cpp_err"; then
24946   ac_header_preproc=yes
24947 else
24948   echo "$as_me: failed program was:" >&5
24949 sed 's/^/| /' conftest.$ac_ext >&5
24950
24951   ac_header_preproc=no
24952 fi
24953 rm -f conftest.err conftest.$ac_ext
24954 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24955 echo "${ECHO_T}$ac_header_preproc" >&6
24956
24957 # So?  What about this header?
24958 case $ac_header_compiler:$ac_header_preproc in
24959   yes:no )
24960     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24964     (
24965       cat <<\_ASBOX
24966 ## ------------------------------------ ##
24967 ## Report this to bug-autoconf@gnu.org. ##
24968 ## ------------------------------------ ##
24969 _ASBOX
24970     ) |
24971       sed "s/^/$as_me: WARNING:     /" >&2
24972     ;;
24973   no:yes )
24974     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24976     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24977 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24978     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24980     (
24981       cat <<\_ASBOX
24982 ## ------------------------------------ ##
24983 ## Report this to bug-autoconf@gnu.org. ##
24984 ## ------------------------------------ ##
24985 _ASBOX
24986     ) |
24987       sed "s/^/$as_me: WARNING:     /" >&2
24988     ;;
24989 esac
24990 echo "$as_me:$LINENO: checking for $ac_header" >&5
24991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24993   echo $ECHO_N "(cached) $ECHO_C" >&6
24994 else
24995   eval "$as_ac_Header=$ac_header_preproc"
24996 fi
24997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24999
25000 fi
25001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25002   cat >>confdefs.h <<_ACEOF
25003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25004 _ACEOF
25005
25006 fi
25007
25008 done
25009
25010
25011   echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
25012 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6
25013 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
25014   echo $ECHO_N "(cached) $ECHO_C" >&6
25015 else
25016   cat >conftest.$ac_ext <<_ACEOF
25017 #line $LINENO "configure"
25018 /* confdefs.h.  */
25019 _ACEOF
25020 cat confdefs.h >>conftest.$ac_ext
25021 cat >>conftest.$ac_ext <<_ACEOF
25022 /* end confdefs.h.  */
25023 #include <inttypes.h>
25024 #ifdef strtoimax
25025  inttypes_h_defines_strtoimax
25026 #endif
25027 _ACEOF
25028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25029   $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
25030   jm_cv_func_strtoimax_macro=yes
25031 else
25032   jm_cv_func_strtoimax_macro=no
25033 fi
25034 rm -f conftest*
25035
25036 fi
25037 echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
25038 echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6
25039
25040   if test "$jm_cv_func_strtoimax_macro" != yes; then
25041
25042 for ac_func in strtoimax
25043 do
25044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25045 echo "$as_me:$LINENO: checking for $ac_func" >&5
25046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25047 if eval "test \"\${$as_ac_var+set}\" = set"; then
25048   echo $ECHO_N "(cached) $ECHO_C" >&6
25049 else
25050   cat >conftest.$ac_ext <<_ACEOF
25051 #line $LINENO "configure"
25052 /* confdefs.h.  */
25053 _ACEOF
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h.  */
25057 /* System header to define __stub macros and hopefully few prototypes,
25058     which can conflict with char $ac_func (); below.
25059     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25060     <limits.h> exists even on freestanding compilers.  */
25061 #ifdef __STDC__
25062 # include <limits.h>
25063 #else
25064 # include <assert.h>
25065 #endif
25066 /* Override any gcc2 internal prototype to avoid an error.  */
25067 #ifdef __cplusplus
25068 extern "C"
25069 {
25070 #endif
25071 /* We use char because int might match the return type of a gcc2
25072    builtin and then its argument prototype would still apply.  */
25073 char $ac_func ();
25074 /* The GNU C library defines this for functions which it implements
25075     to always fail with ENOSYS.  Some functions are actually named
25076     something starting with __ and the normal name is an alias.  */
25077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25078 choke me
25079 #else
25080 char (*f) () = $ac_func;
25081 #endif
25082 #ifdef __cplusplus
25083 }
25084 #endif
25085
25086 int
25087 main ()
25088 {
25089 return f != $ac_func;
25090   ;
25091   return 0;
25092 }
25093 _ACEOF
25094 rm -f conftest.$ac_objext conftest$ac_exeext
25095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25096   (eval $ac_link) 2>&5
25097   ac_status=$?
25098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099   (exit $ac_status); } &&
25100          { ac_try='test -s conftest$ac_exeext'
25101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25102   (eval $ac_try) 2>&5
25103   ac_status=$?
25104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105   (exit $ac_status); }; }; then
25106   eval "$as_ac_var=yes"
25107 else
25108   echo "$as_me: failed program was:" >&5
25109 sed 's/^/| /' conftest.$ac_ext >&5
25110
25111 eval "$as_ac_var=no"
25112 fi
25113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25114 fi
25115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25117 if test `eval echo '${'$as_ac_var'}'` = yes; then
25118   cat >>confdefs.h <<_ACEOF
25119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25120 _ACEOF
25121
25122 else
25123   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25124 fi
25125 done
25126
25127
25128   fi
25129
25130       case "$jm_cv_func_strtoimax_macro,$ac_cv_func_strtoimax" in
25131     no,no)
25132
25133 for ac_func in strtol
25134 do
25135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25136 echo "$as_me:$LINENO: checking for $ac_func" >&5
25137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25138 if eval "test \"\${$as_ac_var+set}\" = set"; then
25139   echo $ECHO_N "(cached) $ECHO_C" >&6
25140 else
25141   cat >conftest.$ac_ext <<_ACEOF
25142 #line $LINENO "configure"
25143 /* confdefs.h.  */
25144 _ACEOF
25145 cat confdefs.h >>conftest.$ac_ext
25146 cat >>conftest.$ac_ext <<_ACEOF
25147 /* end confdefs.h.  */
25148 /* System header to define __stub macros and hopefully few prototypes,
25149     which can conflict with char $ac_func (); below.
25150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25151     <limits.h> exists even on freestanding compilers.  */
25152 #ifdef __STDC__
25153 # include <limits.h>
25154 #else
25155 # include <assert.h>
25156 #endif
25157 /* Override any gcc2 internal prototype to avoid an error.  */
25158 #ifdef __cplusplus
25159 extern "C"
25160 {
25161 #endif
25162 /* We use char because int might match the return type of a gcc2
25163    builtin and then its argument prototype would still apply.  */
25164 char $ac_func ();
25165 /* The GNU C library defines this for functions which it implements
25166     to always fail with ENOSYS.  Some functions are actually named
25167     something starting with __ and the normal name is an alias.  */
25168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25169 choke me
25170 #else
25171 char (*f) () = $ac_func;
25172 #endif
25173 #ifdef __cplusplus
25174 }
25175 #endif
25176
25177 int
25178 main ()
25179 {
25180 return f != $ac_func;
25181   ;
25182   return 0;
25183 }
25184 _ACEOF
25185 rm -f conftest.$ac_objext conftest$ac_exeext
25186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25187   (eval $ac_link) 2>&5
25188   ac_status=$?
25189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190   (exit $ac_status); } &&
25191          { ac_try='test -s conftest$ac_exeext'
25192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193   (eval $ac_try) 2>&5
25194   ac_status=$?
25195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196   (exit $ac_status); }; }; then
25197   eval "$as_ac_var=yes"
25198 else
25199   echo "$as_me: failed program was:" >&5
25200 sed 's/^/| /' conftest.$ac_ext >&5
25201
25202 eval "$as_ac_var=no"
25203 fi
25204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25205 fi
25206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25208 if test `eval echo '${'$as_ac_var'}'` = yes; then
25209   cat >>confdefs.h <<_ACEOF
25210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25211 _ACEOF
25212
25213 else
25214   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25215 fi
25216 done
25217
25218
25219
25220                   if test "$ac_cv_type_long_long" = yes; then
25221
25222 for ac_func in strtoll
25223 do
25224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25225 echo "$as_me:$LINENO: checking for $ac_func" >&5
25226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25227 if eval "test \"\${$as_ac_var+set}\" = set"; then
25228   echo $ECHO_N "(cached) $ECHO_C" >&6
25229 else
25230   cat >conftest.$ac_ext <<_ACEOF
25231 #line $LINENO "configure"
25232 /* confdefs.h.  */
25233 _ACEOF
25234 cat confdefs.h >>conftest.$ac_ext
25235 cat >>conftest.$ac_ext <<_ACEOF
25236 /* end confdefs.h.  */
25237 /* System header to define __stub macros and hopefully few prototypes,
25238     which can conflict with char $ac_func (); below.
25239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25240     <limits.h> exists even on freestanding compilers.  */
25241 #ifdef __STDC__
25242 # include <limits.h>
25243 #else
25244 # include <assert.h>
25245 #endif
25246 /* Override any gcc2 internal prototype to avoid an error.  */
25247 #ifdef __cplusplus
25248 extern "C"
25249 {
25250 #endif
25251 /* We use char because int might match the return type of a gcc2
25252    builtin and then its argument prototype would still apply.  */
25253 char $ac_func ();
25254 /* The GNU C library defines this for functions which it implements
25255     to always fail with ENOSYS.  Some functions are actually named
25256     something starting with __ and the normal name is an alias.  */
25257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25258 choke me
25259 #else
25260 char (*f) () = $ac_func;
25261 #endif
25262 #ifdef __cplusplus
25263 }
25264 #endif
25265
25266 int
25267 main ()
25268 {
25269 return f != $ac_func;
25270   ;
25271   return 0;
25272 }
25273 _ACEOF
25274 rm -f conftest.$ac_objext conftest$ac_exeext
25275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25276   (eval $ac_link) 2>&5
25277   ac_status=$?
25278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279   (exit $ac_status); } &&
25280          { ac_try='test -s conftest$ac_exeext'
25281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282   (eval $ac_try) 2>&5
25283   ac_status=$?
25284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285   (exit $ac_status); }; }; then
25286   eval "$as_ac_var=yes"
25287 else
25288   echo "$as_me: failed program was:" >&5
25289 sed 's/^/| /' conftest.$ac_ext >&5
25290
25291 eval "$as_ac_var=no"
25292 fi
25293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25294 fi
25295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25297 if test `eval echo '${'$as_ac_var'}'` = yes; then
25298   cat >>confdefs.h <<_ACEOF
25299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25300 _ACEOF
25301
25302 else
25303   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25304 fi
25305 done
25306
25307
25308       fi
25309       ;;
25310   esac
25311
25312   echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
25313 echo $ECHO_N "checking whether link(2) dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
25314 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
25315   echo $ECHO_N "(cached) $ECHO_C" >&6
25316 else
25317
25318             test -z "$ac_cv_header_unistd_h" \
25319       &&
25320 for ac_header in unistd.h
25321 do
25322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25324   echo "$as_me:$LINENO: checking for $ac_header" >&5
25325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25327   echo $ECHO_N "(cached) $ECHO_C" >&6
25328 fi
25329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25331 else
25332   # Is the header compilable?
25333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25335 cat >conftest.$ac_ext <<_ACEOF
25336 #line $LINENO "configure"
25337 /* confdefs.h.  */
25338 _ACEOF
25339 cat confdefs.h >>conftest.$ac_ext
25340 cat >>conftest.$ac_ext <<_ACEOF
25341 /* end confdefs.h.  */
25342 $ac_includes_default
25343 #include <$ac_header>
25344 _ACEOF
25345 rm -f conftest.$ac_objext
25346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25347   (eval $ac_compile) 2>&5
25348   ac_status=$?
25349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350   (exit $ac_status); } &&
25351          { ac_try='test -s conftest.$ac_objext'
25352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25353   (eval $ac_try) 2>&5
25354   ac_status=$?
25355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356   (exit $ac_status); }; }; then
25357   ac_header_compiler=yes
25358 else
25359   echo "$as_me: failed program was:" >&5
25360 sed 's/^/| /' conftest.$ac_ext >&5
25361
25362 ac_header_compiler=no
25363 fi
25364 rm -f conftest.$ac_objext conftest.$ac_ext
25365 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25366 echo "${ECHO_T}$ac_header_compiler" >&6
25367
25368 # Is the header present?
25369 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25371 cat >conftest.$ac_ext <<_ACEOF
25372 #line $LINENO "configure"
25373 /* confdefs.h.  */
25374 _ACEOF
25375 cat confdefs.h >>conftest.$ac_ext
25376 cat >>conftest.$ac_ext <<_ACEOF
25377 /* end confdefs.h.  */
25378 #include <$ac_header>
25379 _ACEOF
25380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25381   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25382   ac_status=$?
25383   grep -v '^ *+' conftest.er1 >conftest.err
25384   rm -f conftest.er1
25385   cat conftest.err >&5
25386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387   (exit $ac_status); } >/dev/null; then
25388   if test -s conftest.err; then
25389     ac_cpp_err=$ac_c_preproc_warn_flag
25390   else
25391     ac_cpp_err=
25392   fi
25393 else
25394   ac_cpp_err=yes
25395 fi
25396 if test -z "$ac_cpp_err"; then
25397   ac_header_preproc=yes
25398 else
25399   echo "$as_me: failed program was:" >&5
25400 sed 's/^/| /' conftest.$ac_ext >&5
25401
25402   ac_header_preproc=no
25403 fi
25404 rm -f conftest.err conftest.$ac_ext
25405 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25406 echo "${ECHO_T}$ac_header_preproc" >&6
25407
25408 # So?  What about this header?
25409 case $ac_header_compiler:$ac_header_preproc in
25410   yes:no )
25411     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25413     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25415     (
25416       cat <<\_ASBOX
25417 ## ------------------------------------ ##
25418 ## Report this to bug-autoconf@gnu.org. ##
25419 ## ------------------------------------ ##
25420 _ASBOX
25421     ) |
25422       sed "s/^/$as_me: WARNING:     /" >&2
25423     ;;
25424   no:yes )
25425     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25427     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25428 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25431     (
25432       cat <<\_ASBOX
25433 ## ------------------------------------ ##
25434 ## Report this to bug-autoconf@gnu.org. ##
25435 ## ------------------------------------ ##
25436 _ASBOX
25437     ) |
25438       sed "s/^/$as_me: WARNING:     /" >&2
25439     ;;
25440 esac
25441 echo "$as_me:$LINENO: checking for $ac_header" >&5
25442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25444   echo $ECHO_N "(cached) $ECHO_C" >&6
25445 else
25446   eval "$as_ac_Header=$ac_header_preproc"
25447 fi
25448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25450
25451 fi
25452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25453   cat >>confdefs.h <<_ACEOF
25454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25455 _ACEOF
25456
25457 fi
25458
25459 done
25460
25461
25462     # Create a regular file.
25463     echo > conftest.file
25464     if test "$cross_compiling" = yes; then
25465   jm_ac_cv_func_link_follows_symlink=yes
25466 else
25467   cat >conftest.$ac_ext <<_ACEOF
25468 #line $LINENO "configure"
25469 /* confdefs.h.  */
25470 _ACEOF
25471 cat confdefs.h >>conftest.$ac_ext
25472 cat >>conftest.$ac_ext <<_ACEOF
25473 /* end confdefs.h.  */
25474
25475 #       include <sys/types.h>
25476 #       include <sys/stat.h>
25477 #       ifdef HAVE_UNISTD_H
25478 #        include <unistd.h>
25479 #       endif
25480
25481 #       define SAME_INODE(Stat_buf_1, Stat_buf_2) \
25482           ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
25483            && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
25484
25485         int
25486         main ()
25487         {
25488           const char *file = "conftest.file";
25489           const char *sym = "conftest.sym";
25490           const char *hard = "conftest.hard";
25491           struct stat sb_file, sb_hard;
25492
25493           /* Create a symlink to the regular file. */
25494           if (symlink (file, sym))
25495             abort ();
25496
25497           /* Create a hard link to that symlink.  */
25498           if (link (sym, hard))
25499             abort ();
25500
25501           if (lstat (hard, &sb_hard))
25502             abort ();
25503           if (lstat (file, &sb_file))
25504             abort ();
25505
25506           /* If the dev/inode of hard and file are the same, then
25507              the link call followed the symlink.  */
25508           return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
25509         }
25510
25511 _ACEOF
25512 rm -f conftest$ac_exeext
25513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25514   (eval $ac_link) 2>&5
25515   ac_status=$?
25516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25519   (eval $ac_try) 2>&5
25520   ac_status=$?
25521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522   (exit $ac_status); }; }; then
25523   jm_ac_cv_func_link_follows_symlink=yes
25524 else
25525   echo "$as_me: program exited with status $ac_status" >&5
25526 echo "$as_me: failed program was:" >&5
25527 sed 's/^/| /' conftest.$ac_ext >&5
25528
25529 ( exit $ac_status )
25530 jm_ac_cv_func_link_follows_symlink=no
25531 fi
25532 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25533 fi
25534
25535 fi
25536 echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
25537 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6
25538   if test $jm_ac_cv_func_link_follows_symlink = yes; then
25539
25540 cat >>confdefs.h <<\_ACEOF
25541 #define LINK_FOLLOWS_SYMLINKS 1
25542 _ACEOF
25543
25544   fi
25545
25546 echo "$as_me:$LINENO: checking for error_at_line" >&5
25547 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
25548 if test "${ac_cv_lib_error_at_line+set}" = set; then
25549   echo $ECHO_N "(cached) $ECHO_C" >&6
25550 else
25551   cat >conftest.$ac_ext <<_ACEOF
25552 #line $LINENO "configure"
25553 /* confdefs.h.  */
25554 _ACEOF
25555 cat confdefs.h >>conftest.$ac_ext
25556 cat >>conftest.$ac_ext <<_ACEOF
25557 /* end confdefs.h.  */
25558
25559 int
25560 main ()
25561 {
25562 error_at_line (0, 0, "", 0, "");
25563   ;
25564   return 0;
25565 }
25566 _ACEOF
25567 rm -f conftest.$ac_objext conftest$ac_exeext
25568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25569   (eval $ac_link) 2>&5
25570   ac_status=$?
25571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572   (exit $ac_status); } &&
25573          { ac_try='test -s conftest$ac_exeext'
25574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25575   (eval $ac_try) 2>&5
25576   ac_status=$?
25577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578   (exit $ac_status); }; }; then
25579   ac_cv_lib_error_at_line=yes
25580 else
25581   echo "$as_me: failed program was:" >&5
25582 sed 's/^/| /' conftest.$ac_ext >&5
25583
25584 ac_cv_lib_error_at_line=no
25585 fi
25586 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25587 fi
25588 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25589 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
25590 if test $ac_cv_lib_error_at_line = no; then
25591   LIBOBJS="$LIBOBJS error.$ac_objext"
25592 fi
25593
25594
25595
25596
25597
25598 for ac_func in localtime_r strftime
25599 do
25600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25601 echo "$as_me:$LINENO: checking for $ac_func" >&5
25602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25603 if eval "test \"\${$as_ac_var+set}\" = set"; then
25604   echo $ECHO_N "(cached) $ECHO_C" >&6
25605 else
25606   cat >conftest.$ac_ext <<_ACEOF
25607 #line $LINENO "configure"
25608 /* confdefs.h.  */
25609 _ACEOF
25610 cat confdefs.h >>conftest.$ac_ext
25611 cat >>conftest.$ac_ext <<_ACEOF
25612 /* end confdefs.h.  */
25613 /* System header to define __stub macros and hopefully few prototypes,
25614     which can conflict with char $ac_func (); below.
25615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25616     <limits.h> exists even on freestanding compilers.  */
25617 #ifdef __STDC__
25618 # include <limits.h>
25619 #else
25620 # include <assert.h>
25621 #endif
25622 /* Override any gcc2 internal prototype to avoid an error.  */
25623 #ifdef __cplusplus
25624 extern "C"
25625 {
25626 #endif
25627 /* We use char because int might match the return type of a gcc2
25628    builtin and then its argument prototype would still apply.  */
25629 char $ac_func ();
25630 /* The GNU C library defines this for functions which it implements
25631     to always fail with ENOSYS.  Some functions are actually named
25632     something starting with __ and the normal name is an alias.  */
25633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25634 choke me
25635 #else
25636 char (*f) () = $ac_func;
25637 #endif
25638 #ifdef __cplusplus
25639 }
25640 #endif
25641
25642 int
25643 main ()
25644 {
25645 return f != $ac_func;
25646   ;
25647   return 0;
25648 }
25649 _ACEOF
25650 rm -f conftest.$ac_objext conftest$ac_exeext
25651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25652   (eval $ac_link) 2>&5
25653   ac_status=$?
25654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655   (exit $ac_status); } &&
25656          { ac_try='test -s conftest$ac_exeext'
25657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25658   (eval $ac_try) 2>&5
25659   ac_status=$?
25660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25661   (exit $ac_status); }; }; then
25662   eval "$as_ac_var=yes"
25663 else
25664   echo "$as_me: failed program was:" >&5
25665 sed 's/^/| /' conftest.$ac_ext >&5
25666
25667 eval "$as_ac_var=no"
25668 fi
25669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25670 fi
25671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25672 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25673 if test `eval echo '${'$as_ac_var'}'` = yes; then
25674   cat >>confdefs.h <<_ACEOF
25675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25676 _ACEOF
25677
25678 fi
25679 done
25680
25681
25682
25683 for ac_header in limits.h
25684 do
25685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25687   echo "$as_me:$LINENO: checking for $ac_header" >&5
25688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25690   echo $ECHO_N "(cached) $ECHO_C" >&6
25691 fi
25692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25694 else
25695   # Is the header compilable?
25696 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25698 cat >conftest.$ac_ext <<_ACEOF
25699 #line $LINENO "configure"
25700 /* confdefs.h.  */
25701 _ACEOF
25702 cat confdefs.h >>conftest.$ac_ext
25703 cat >>conftest.$ac_ext <<_ACEOF
25704 /* end confdefs.h.  */
25705 $ac_includes_default
25706 #include <$ac_header>
25707 _ACEOF
25708 rm -f conftest.$ac_objext
25709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25710   (eval $ac_compile) 2>&5
25711   ac_status=$?
25712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713   (exit $ac_status); } &&
25714          { ac_try='test -s conftest.$ac_objext'
25715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25716   (eval $ac_try) 2>&5
25717   ac_status=$?
25718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719   (exit $ac_status); }; }; then
25720   ac_header_compiler=yes
25721 else
25722   echo "$as_me: failed program was:" >&5
25723 sed 's/^/| /' conftest.$ac_ext >&5
25724
25725 ac_header_compiler=no
25726 fi
25727 rm -f conftest.$ac_objext conftest.$ac_ext
25728 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25729 echo "${ECHO_T}$ac_header_compiler" >&6
25730
25731 # Is the header present?
25732 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25734 cat >conftest.$ac_ext <<_ACEOF
25735 #line $LINENO "configure"
25736 /* confdefs.h.  */
25737 _ACEOF
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h.  */
25741 #include <$ac_header>
25742 _ACEOF
25743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25744   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25745   ac_status=$?
25746   grep -v '^ *+' conftest.er1 >conftest.err
25747   rm -f conftest.er1
25748   cat conftest.err >&5
25749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25750   (exit $ac_status); } >/dev/null; then
25751   if test -s conftest.err; then
25752     ac_cpp_err=$ac_c_preproc_warn_flag
25753   else
25754     ac_cpp_err=
25755   fi
25756 else
25757   ac_cpp_err=yes
25758 fi
25759 if test -z "$ac_cpp_err"; then
25760   ac_header_preproc=yes
25761 else
25762   echo "$as_me: failed program was:" >&5
25763 sed 's/^/| /' conftest.$ac_ext >&5
25764
25765   ac_header_preproc=no
25766 fi
25767 rm -f conftest.err conftest.$ac_ext
25768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25769 echo "${ECHO_T}$ac_header_preproc" >&6
25770
25771 # So?  What about this header?
25772 case $ac_header_compiler:$ac_header_preproc in
25773   yes:no )
25774     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25778     (
25779       cat <<\_ASBOX
25780 ## ------------------------------------ ##
25781 ## Report this to bug-autoconf@gnu.org. ##
25782 ## ------------------------------------ ##
25783 _ASBOX
25784     ) |
25785       sed "s/^/$as_me: WARNING:     /" >&2
25786     ;;
25787   no:yes )
25788     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25790     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25794     (
25795       cat <<\_ASBOX
25796 ## ------------------------------------ ##
25797 ## Report this to bug-autoconf@gnu.org. ##
25798 ## ------------------------------------ ##
25799 _ASBOX
25800     ) |
25801       sed "s/^/$as_me: WARNING:     /" >&2
25802     ;;
25803 esac
25804 echo "$as_me:$LINENO: checking for $ac_header" >&5
25805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25807   echo $ECHO_N "(cached) $ECHO_C" >&6
25808 else
25809   eval "$as_ac_Header=$ac_header_preproc"
25810 fi
25811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25813
25814 fi
25815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25816   cat >>confdefs.h <<_ACEOF
25817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25818 _ACEOF
25819
25820 fi
25821
25822 done
25823
25824
25825
25826
25827
25828
25829 for ac_func in bcopy tzset mempcpy memcpy memset
25830 do
25831 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25832 echo "$as_me:$LINENO: checking for $ac_func" >&5
25833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25834 if eval "test \"\${$as_ac_var+set}\" = set"; then
25835   echo $ECHO_N "(cached) $ECHO_C" >&6
25836 else
25837   cat >conftest.$ac_ext <<_ACEOF
25838 #line $LINENO "configure"
25839 /* confdefs.h.  */
25840 _ACEOF
25841 cat confdefs.h >>conftest.$ac_ext
25842 cat >>conftest.$ac_ext <<_ACEOF
25843 /* end confdefs.h.  */
25844 /* System header to define __stub macros and hopefully few prototypes,
25845     which can conflict with char $ac_func (); below.
25846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25847     <limits.h> exists even on freestanding compilers.  */
25848 #ifdef __STDC__
25849 # include <limits.h>
25850 #else
25851 # include <assert.h>
25852 #endif
25853 /* Override any gcc2 internal prototype to avoid an error.  */
25854 #ifdef __cplusplus
25855 extern "C"
25856 {
25857 #endif
25858 /* We use char because int might match the return type of a gcc2
25859    builtin and then its argument prototype would still apply.  */
25860 char $ac_func ();
25861 /* The GNU C library defines this for functions which it implements
25862     to always fail with ENOSYS.  Some functions are actually named
25863     something starting with __ and the normal name is an alias.  */
25864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25865 choke me
25866 #else
25867 char (*f) () = $ac_func;
25868 #endif
25869 #ifdef __cplusplus
25870 }
25871 #endif
25872
25873 int
25874 main ()
25875 {
25876 return f != $ac_func;
25877   ;
25878   return 0;
25879 }
25880 _ACEOF
25881 rm -f conftest.$ac_objext conftest$ac_exeext
25882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25883   (eval $ac_link) 2>&5
25884   ac_status=$?
25885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886   (exit $ac_status); } &&
25887          { ac_try='test -s conftest$ac_exeext'
25888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25889   (eval $ac_try) 2>&5
25890   ac_status=$?
25891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25892   (exit $ac_status); }; }; then
25893   eval "$as_ac_var=yes"
25894 else
25895   echo "$as_me: failed program was:" >&5
25896 sed 's/^/| /' conftest.$ac_ext >&5
25897
25898 eval "$as_ac_var=no"
25899 fi
25900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25901 fi
25902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25904 if test `eval echo '${'$as_ac_var'}'` = yes; then
25905   cat >>confdefs.h <<_ACEOF
25906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25907 _ACEOF
25908
25909 fi
25910 done
25911
25912
25913  # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
25914  echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
25915 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
25916 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
25917   echo $ECHO_N "(cached) $ECHO_C" >&6
25918 else
25919   cat >conftest.$ac_ext <<_ACEOF
25920 #line $LINENO "configure"
25921 /* confdefs.h.  */
25922 _ACEOF
25923 cat confdefs.h >>conftest.$ac_ext
25924 cat >>conftest.$ac_ext <<_ACEOF
25925 /* end confdefs.h.  */
25926 #include <sys/types.h>
25927 #include <$ac_cv_struct_tm>
25928
25929
25930 int
25931 main ()
25932 {
25933 static struct tm ac_aggr;
25934 if (ac_aggr.tm_zone)
25935 return 0;
25936   ;
25937   return 0;
25938 }
25939 _ACEOF
25940 rm -f conftest.$ac_objext
25941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25942   (eval $ac_compile) 2>&5
25943   ac_status=$?
25944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945   (exit $ac_status); } &&
25946          { ac_try='test -s conftest.$ac_objext'
25947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25948   (eval $ac_try) 2>&5
25949   ac_status=$?
25950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951   (exit $ac_status); }; }; then
25952   ac_cv_member_struct_tm_tm_zone=yes
25953 else
25954   echo "$as_me: failed program was:" >&5
25955 sed 's/^/| /' conftest.$ac_ext >&5
25956
25957 cat >conftest.$ac_ext <<_ACEOF
25958 #line $LINENO "configure"
25959 /* confdefs.h.  */
25960 _ACEOF
25961 cat confdefs.h >>conftest.$ac_ext
25962 cat >>conftest.$ac_ext <<_ACEOF
25963 /* end confdefs.h.  */
25964 #include <sys/types.h>
25965 #include <$ac_cv_struct_tm>
25966
25967
25968 int
25969 main ()
25970 {
25971 static struct tm ac_aggr;
25972 if (sizeof ac_aggr.tm_zone)
25973 return 0;
25974   ;
25975   return 0;
25976 }
25977 _ACEOF
25978 rm -f conftest.$ac_objext
25979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25980   (eval $ac_compile) 2>&5
25981   ac_status=$?
25982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25983   (exit $ac_status); } &&
25984          { ac_try='test -s conftest.$ac_objext'
25985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25986   (eval $ac_try) 2>&5
25987   ac_status=$?
25988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989   (exit $ac_status); }; }; then
25990   ac_cv_member_struct_tm_tm_zone=yes
25991 else
25992   echo "$as_me: failed program was:" >&5
25993 sed 's/^/| /' conftest.$ac_ext >&5
25994
25995 ac_cv_member_struct_tm_tm_zone=no
25996 fi
25997 rm -f conftest.$ac_objext conftest.$ac_ext
25998 fi
25999 rm -f conftest.$ac_objext conftest.$ac_ext
26000 fi
26001 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
26002 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
26003 if test $ac_cv_member_struct_tm_tm_zone = yes; then
26004
26005 cat >>confdefs.h <<_ACEOF
26006 #define HAVE_STRUCT_TM_TM_ZONE 1
26007 _ACEOF
26008
26009
26010 fi
26011
26012 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26013
26014 cat >>confdefs.h <<\_ACEOF
26015 #define HAVE_TM_ZONE 1
26016 _ACEOF
26017
26018 else
26019   echo "$as_me:$LINENO: checking for tzname" >&5
26020 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
26021 if test "${ac_cv_var_tzname+set}" = set; then
26022   echo $ECHO_N "(cached) $ECHO_C" >&6
26023 else
26024   cat >conftest.$ac_ext <<_ACEOF
26025 #line $LINENO "configure"
26026 /* confdefs.h.  */
26027 _ACEOF
26028 cat confdefs.h >>conftest.$ac_ext
26029 cat >>conftest.$ac_ext <<_ACEOF
26030 /* end confdefs.h.  */
26031 #include <time.h>
26032 #ifndef tzname /* For SGI.  */
26033 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
26034 #endif
26035
26036 int
26037 main ()
26038 {
26039 atoi(*tzname);
26040   ;
26041   return 0;
26042 }
26043 _ACEOF
26044 rm -f conftest.$ac_objext conftest$ac_exeext
26045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26046   (eval $ac_link) 2>&5
26047   ac_status=$?
26048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049   (exit $ac_status); } &&
26050          { ac_try='test -s conftest$ac_exeext'
26051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26052   (eval $ac_try) 2>&5
26053   ac_status=$?
26054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26055   (exit $ac_status); }; }; then
26056   ac_cv_var_tzname=yes
26057 else
26058   echo "$as_me: failed program was:" >&5
26059 sed 's/^/| /' conftest.$ac_ext >&5
26060
26061 ac_cv_var_tzname=no
26062 fi
26063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26064 fi
26065 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
26066 echo "${ECHO_T}$ac_cv_var_tzname" >&6
26067   if test $ac_cv_var_tzname = yes; then
26068
26069 cat >>confdefs.h <<\_ACEOF
26070 #define HAVE_TZNAME 1
26071 _ACEOF
26072
26073   fi
26074 fi
26075
26076
26077
26078
26079 for ac_func in mblen mbrlen
26080 do
26081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26082 echo "$as_me:$LINENO: checking for $ac_func" >&5
26083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26084 if eval "test \"\${$as_ac_var+set}\" = set"; then
26085   echo $ECHO_N "(cached) $ECHO_C" >&6
26086 else
26087   cat >conftest.$ac_ext <<_ACEOF
26088 #line $LINENO "configure"
26089 /* confdefs.h.  */
26090 _ACEOF
26091 cat confdefs.h >>conftest.$ac_ext
26092 cat >>conftest.$ac_ext <<_ACEOF
26093 /* end confdefs.h.  */
26094 /* System header to define __stub macros and hopefully few prototypes,
26095     which can conflict with char $ac_func (); below.
26096     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26097     <limits.h> exists even on freestanding compilers.  */
26098 #ifdef __STDC__
26099 # include <limits.h>
26100 #else
26101 # include <assert.h>
26102 #endif
26103 /* Override any gcc2 internal prototype to avoid an error.  */
26104 #ifdef __cplusplus
26105 extern "C"
26106 {
26107 #endif
26108 /* We use char because int might match the return type of a gcc2
26109    builtin and then its argument prototype would still apply.  */
26110 char $ac_func ();
26111 /* The GNU C library defines this for functions which it implements
26112     to always fail with ENOSYS.  Some functions are actually named
26113     something starting with __ and the normal name is an alias.  */
26114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26115 choke me
26116 #else
26117 char (*f) () = $ac_func;
26118 #endif
26119 #ifdef __cplusplus
26120 }
26121 #endif
26122
26123 int
26124 main ()
26125 {
26126 return f != $ac_func;
26127   ;
26128   return 0;
26129 }
26130 _ACEOF
26131 rm -f conftest.$ac_objext conftest$ac_exeext
26132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26133   (eval $ac_link) 2>&5
26134   ac_status=$?
26135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136   (exit $ac_status); } &&
26137          { ac_try='test -s conftest$ac_exeext'
26138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26139   (eval $ac_try) 2>&5
26140   ac_status=$?
26141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26142   (exit $ac_status); }; }; then
26143   eval "$as_ac_var=yes"
26144 else
26145   echo "$as_me: failed program was:" >&5
26146 sed 's/^/| /' conftest.$ac_ext >&5
26147
26148 eval "$as_ac_var=no"
26149 fi
26150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26151 fi
26152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26153 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26154 if test `eval echo '${'$as_ac_var'}'` = yes; then
26155   cat >>confdefs.h <<_ACEOF
26156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26157 _ACEOF
26158
26159 fi
26160 done
26161
26162
26163  echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
26164 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
26165 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
26166   echo $ECHO_N "(cached) $ECHO_C" >&6
26167 else
26168   cat >conftest.$ac_ext <<_ACEOF
26169 #line $LINENO "configure"
26170 /* confdefs.h.  */
26171 _ACEOF
26172 cat confdefs.h >>conftest.$ac_ext
26173 cat >>conftest.$ac_ext <<_ACEOF
26174 /* end confdefs.h.  */
26175 #include <time.h>
26176
26177 int
26178 main ()
26179 {
26180 static struct tm ac_aggr;
26181 if (ac_aggr.tm_gmtoff)
26182 return 0;
26183   ;
26184   return 0;
26185 }
26186 _ACEOF
26187 rm -f conftest.$ac_objext
26188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26189   (eval $ac_compile) 2>&5
26190   ac_status=$?
26191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192   (exit $ac_status); } &&
26193          { ac_try='test -s conftest.$ac_objext'
26194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26195   (eval $ac_try) 2>&5
26196   ac_status=$?
26197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198   (exit $ac_status); }; }; then
26199   ac_cv_member_struct_tm_tm_gmtoff=yes
26200 else
26201   echo "$as_me: failed program was:" >&5
26202 sed 's/^/| /' conftest.$ac_ext >&5
26203
26204 cat >conftest.$ac_ext <<_ACEOF
26205 #line $LINENO "configure"
26206 /* confdefs.h.  */
26207 _ACEOF
26208 cat confdefs.h >>conftest.$ac_ext
26209 cat >>conftest.$ac_ext <<_ACEOF
26210 /* end confdefs.h.  */
26211 #include <time.h>
26212
26213 int
26214 main ()
26215 {
26216 static struct tm ac_aggr;
26217 if (sizeof ac_aggr.tm_gmtoff)
26218 return 0;
26219   ;
26220   return 0;
26221 }
26222 _ACEOF
26223 rm -f conftest.$ac_objext
26224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26225   (eval $ac_compile) 2>&5
26226   ac_status=$?
26227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228   (exit $ac_status); } &&
26229          { ac_try='test -s conftest.$ac_objext'
26230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26231   (eval $ac_try) 2>&5
26232   ac_status=$?
26233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26234   (exit $ac_status); }; }; then
26235   ac_cv_member_struct_tm_tm_gmtoff=yes
26236 else
26237   echo "$as_me: failed program was:" >&5
26238 sed 's/^/| /' conftest.$ac_ext >&5
26239
26240 ac_cv_member_struct_tm_tm_gmtoff=no
26241 fi
26242 rm -f conftest.$ac_objext conftest.$ac_ext
26243 fi
26244 rm -f conftest.$ac_objext conftest.$ac_ext
26245 fi
26246 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
26247 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
26248 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
26249
26250 cat >>confdefs.h <<\_ACEOF
26251 #define HAVE_TM_GMTOFF 1
26252 _ACEOF
26253
26254 fi
26255
26256
26257
26258
26259 for ac_header in sys/time.h
26260 do
26261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26263   echo "$as_me:$LINENO: checking for $ac_header" >&5
26264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26266   echo $ECHO_N "(cached) $ECHO_C" >&6
26267 fi
26268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26270 else
26271   # Is the header compilable?
26272 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26274 cat >conftest.$ac_ext <<_ACEOF
26275 #line $LINENO "configure"
26276 /* confdefs.h.  */
26277 _ACEOF
26278 cat confdefs.h >>conftest.$ac_ext
26279 cat >>conftest.$ac_ext <<_ACEOF
26280 /* end confdefs.h.  */
26281 $ac_includes_default
26282 #include <$ac_header>
26283 _ACEOF
26284 rm -f conftest.$ac_objext
26285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26286   (eval $ac_compile) 2>&5
26287   ac_status=$?
26288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289   (exit $ac_status); } &&
26290          { ac_try='test -s conftest.$ac_objext'
26291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26292   (eval $ac_try) 2>&5
26293   ac_status=$?
26294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26295   (exit $ac_status); }; }; then
26296   ac_header_compiler=yes
26297 else
26298   echo "$as_me: failed program was:" >&5
26299 sed 's/^/| /' conftest.$ac_ext >&5
26300
26301 ac_header_compiler=no
26302 fi
26303 rm -f conftest.$ac_objext conftest.$ac_ext
26304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26305 echo "${ECHO_T}$ac_header_compiler" >&6
26306
26307 # Is the header present?
26308 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26310 cat >conftest.$ac_ext <<_ACEOF
26311 #line $LINENO "configure"
26312 /* confdefs.h.  */
26313 _ACEOF
26314 cat confdefs.h >>conftest.$ac_ext
26315 cat >>conftest.$ac_ext <<_ACEOF
26316 /* end confdefs.h.  */
26317 #include <$ac_header>
26318 _ACEOF
26319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26320   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26321   ac_status=$?
26322   grep -v '^ *+' conftest.er1 >conftest.err
26323   rm -f conftest.er1
26324   cat conftest.err >&5
26325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326   (exit $ac_status); } >/dev/null; then
26327   if test -s conftest.err; then
26328     ac_cpp_err=$ac_c_preproc_warn_flag
26329   else
26330     ac_cpp_err=
26331   fi
26332 else
26333   ac_cpp_err=yes
26334 fi
26335 if test -z "$ac_cpp_err"; then
26336   ac_header_preproc=yes
26337 else
26338   echo "$as_me: failed program was:" >&5
26339 sed 's/^/| /' conftest.$ac_ext >&5
26340
26341   ac_header_preproc=no
26342 fi
26343 rm -f conftest.err conftest.$ac_ext
26344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26345 echo "${ECHO_T}$ac_header_preproc" >&6
26346
26347 # So?  What about this header?
26348 case $ac_header_compiler:$ac_header_preproc in
26349   yes:no )
26350     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26354     (
26355       cat <<\_ASBOX
26356 ## ------------------------------------ ##
26357 ## Report this to bug-autoconf@gnu.org. ##
26358 ## ------------------------------------ ##
26359 _ASBOX
26360     ) |
26361       sed "s/^/$as_me: WARNING:     /" >&2
26362     ;;
26363   no:yes )
26364     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26366     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26367 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26370     (
26371       cat <<\_ASBOX
26372 ## ------------------------------------ ##
26373 ## Report this to bug-autoconf@gnu.org. ##
26374 ## ------------------------------------ ##
26375 _ASBOX
26376     ) |
26377       sed "s/^/$as_me: WARNING:     /" >&2
26378     ;;
26379 esac
26380 echo "$as_me:$LINENO: checking for $ac_header" >&5
26381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26383   echo $ECHO_N "(cached) $ECHO_C" >&6
26384 else
26385   eval "$as_ac_Header=$ac_header_preproc"
26386 fi
26387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26389
26390 fi
26391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26392   cat >>confdefs.h <<_ACEOF
26393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26394 _ACEOF
26395
26396 fi
26397
26398 done
26399
26400
26401 cat >>confdefs.h <<\_ACEOF
26402 #define my_strftime nstrftime
26403 _ACEOF
26404
26405
26406
26407
26408 for ac_header in stdio_ext.h
26409 do
26410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26412   echo "$as_me:$LINENO: checking for $ac_header" >&5
26413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26415   echo $ECHO_N "(cached) $ECHO_C" >&6
26416 fi
26417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26419 else
26420   # Is the header compilable?
26421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26423 cat >conftest.$ac_ext <<_ACEOF
26424 #line $LINENO "configure"
26425 /* confdefs.h.  */
26426 _ACEOF
26427 cat confdefs.h >>conftest.$ac_ext
26428 cat >>conftest.$ac_ext <<_ACEOF
26429 /* end confdefs.h.  */
26430 $ac_includes_default
26431 #include <$ac_header>
26432 _ACEOF
26433 rm -f conftest.$ac_objext
26434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26435   (eval $ac_compile) 2>&5
26436   ac_status=$?
26437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26438   (exit $ac_status); } &&
26439          { ac_try='test -s conftest.$ac_objext'
26440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26441   (eval $ac_try) 2>&5
26442   ac_status=$?
26443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26444   (exit $ac_status); }; }; then
26445   ac_header_compiler=yes
26446 else
26447   echo "$as_me: failed program was:" >&5
26448 sed 's/^/| /' conftest.$ac_ext >&5
26449
26450 ac_header_compiler=no
26451 fi
26452 rm -f conftest.$ac_objext conftest.$ac_ext
26453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26454 echo "${ECHO_T}$ac_header_compiler" >&6
26455
26456 # Is the header present?
26457 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26459 cat >conftest.$ac_ext <<_ACEOF
26460 #line $LINENO "configure"
26461 /* confdefs.h.  */
26462 _ACEOF
26463 cat confdefs.h >>conftest.$ac_ext
26464 cat >>conftest.$ac_ext <<_ACEOF
26465 /* end confdefs.h.  */
26466 #include <$ac_header>
26467 _ACEOF
26468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26469   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26470   ac_status=$?
26471   grep -v '^ *+' conftest.er1 >conftest.err
26472   rm -f conftest.er1
26473   cat conftest.err >&5
26474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475   (exit $ac_status); } >/dev/null; then
26476   if test -s conftest.err; then
26477     ac_cpp_err=$ac_c_preproc_warn_flag
26478   else
26479     ac_cpp_err=
26480   fi
26481 else
26482   ac_cpp_err=yes
26483 fi
26484 if test -z "$ac_cpp_err"; then
26485   ac_header_preproc=yes
26486 else
26487   echo "$as_me: failed program was:" >&5
26488 sed 's/^/| /' conftest.$ac_ext >&5
26489
26490   ac_header_preproc=no
26491 fi
26492 rm -f conftest.err conftest.$ac_ext
26493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26494 echo "${ECHO_T}$ac_header_preproc" >&6
26495
26496 # So?  What about this header?
26497 case $ac_header_compiler:$ac_header_preproc in
26498   yes:no )
26499     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26501     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26503     (
26504       cat <<\_ASBOX
26505 ## ------------------------------------ ##
26506 ## Report this to bug-autoconf@gnu.org. ##
26507 ## ------------------------------------ ##
26508 _ASBOX
26509     ) |
26510       sed "s/^/$as_me: WARNING:     /" >&2
26511     ;;
26512   no:yes )
26513     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26515     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26517     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26519     (
26520       cat <<\_ASBOX
26521 ## ------------------------------------ ##
26522 ## Report this to bug-autoconf@gnu.org. ##
26523 ## ------------------------------------ ##
26524 _ASBOX
26525     ) |
26526       sed "s/^/$as_me: WARNING:     /" >&2
26527     ;;
26528 esac
26529 echo "$as_me:$LINENO: checking for $ac_header" >&5
26530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26532   echo $ECHO_N "(cached) $ECHO_C" >&6
26533 else
26534   eval "$as_ac_Header=$ac_header_preproc"
26535 fi
26536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26538
26539 fi
26540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26541   cat >>confdefs.h <<_ACEOF
26542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26543 _ACEOF
26544
26545 fi
26546
26547 done
26548
26549
26550 for ac_func in __fpending
26551 do
26552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26553 echo "$as_me:$LINENO: checking for $ac_func" >&5
26554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26555 if eval "test \"\${$as_ac_var+set}\" = set"; then
26556   echo $ECHO_N "(cached) $ECHO_C" >&6
26557 else
26558   cat >conftest.$ac_ext <<_ACEOF
26559 #line $LINENO "configure"
26560 /* confdefs.h.  */
26561 _ACEOF
26562 cat confdefs.h >>conftest.$ac_ext
26563 cat >>conftest.$ac_ext <<_ACEOF
26564 /* end confdefs.h.  */
26565 /* System header to define __stub macros and hopefully few prototypes,
26566     which can conflict with char $ac_func (); below.
26567     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26568     <limits.h> exists even on freestanding compilers.  */
26569 #ifdef __STDC__
26570 # include <limits.h>
26571 #else
26572 # include <assert.h>
26573 #endif
26574 /* Override any gcc2 internal prototype to avoid an error.  */
26575 #ifdef __cplusplus
26576 extern "C"
26577 {
26578 #endif
26579 /* We use char because int might match the return type of a gcc2
26580    builtin and then its argument prototype would still apply.  */
26581 char $ac_func ();
26582 /* The GNU C library defines this for functions which it implements
26583     to always fail with ENOSYS.  Some functions are actually named
26584     something starting with __ and the normal name is an alias.  */
26585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26586 choke me
26587 #else
26588 char (*f) () = $ac_func;
26589 #endif
26590 #ifdef __cplusplus
26591 }
26592 #endif
26593
26594 int
26595 main ()
26596 {
26597 return f != $ac_func;
26598   ;
26599   return 0;
26600 }
26601 _ACEOF
26602 rm -f conftest.$ac_objext conftest$ac_exeext
26603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26604   (eval $ac_link) 2>&5
26605   ac_status=$?
26606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607   (exit $ac_status); } &&
26608          { ac_try='test -s conftest$ac_exeext'
26609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26610   (eval $ac_try) 2>&5
26611   ac_status=$?
26612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613   (exit $ac_status); }; }; then
26614   eval "$as_ac_var=yes"
26615 else
26616   echo "$as_me: failed program was:" >&5
26617 sed 's/^/| /' conftest.$ac_ext >&5
26618
26619 eval "$as_ac_var=no"
26620 fi
26621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26622 fi
26623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26625 if test `eval echo '${'$as_ac_var'}'` = yes; then
26626   cat >>confdefs.h <<_ACEOF
26627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26628 _ACEOF
26629
26630 else
26631   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26632 fi
26633 done
26634
26635
26636   fp_headers='
26637 #     if HAVE_STDIO_EXT_H
26638 #      include <stdio_ext.h>
26639 #     endif
26640 '
26641   echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
26642 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6
26643 if test "${ac_cv_have_decl___fpending+set}" = set; then
26644   echo $ECHO_N "(cached) $ECHO_C" >&6
26645 else
26646   cat >conftest.$ac_ext <<_ACEOF
26647 #line $LINENO "configure"
26648 /* confdefs.h.  */
26649 _ACEOF
26650 cat confdefs.h >>conftest.$ac_ext
26651 cat >>conftest.$ac_ext <<_ACEOF
26652 /* end confdefs.h.  */
26653 $fp_headers
26654
26655 int
26656 main ()
26657 {
26658 #ifndef __fpending
26659   char *p = (char *) __fpending;
26660 #endif
26661
26662   ;
26663   return 0;
26664 }
26665 _ACEOF
26666 rm -f conftest.$ac_objext
26667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26668   (eval $ac_compile) 2>&5
26669   ac_status=$?
26670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26671   (exit $ac_status); } &&
26672          { ac_try='test -s conftest.$ac_objext'
26673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26674   (eval $ac_try) 2>&5
26675   ac_status=$?
26676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677   (exit $ac_status); }; }; then
26678   ac_cv_have_decl___fpending=yes
26679 else
26680   echo "$as_me: failed program was:" >&5
26681 sed 's/^/| /' conftest.$ac_ext >&5
26682
26683 ac_cv_have_decl___fpending=no
26684 fi
26685 rm -f conftest.$ac_objext conftest.$ac_ext
26686 fi
26687 echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
26688 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6
26689 if test $ac_cv_have_decl___fpending = yes; then
26690
26691 cat >>confdefs.h <<_ACEOF
26692 #define HAVE_DECL___FPENDING 1
26693 _ACEOF
26694
26695
26696 else
26697   cat >>confdefs.h <<_ACEOF
26698 #define HAVE_DECL___FPENDING 0
26699 _ACEOF
26700
26701
26702 fi
26703
26704
26705   if test $ac_cv_func___fpending = no; then
26706     echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
26707 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6
26708 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
26709   echo $ECHO_N "(cached) $ECHO_C" >&6
26710 else
26711
26712         for ac_expr in                                          \
26713                                                                 \
26714             '# glibc2'                                          \
26715             'fp->_IO_write_ptr - fp->_IO_write_base'            \
26716                                                                 \
26717             '# traditional Unix'                                \
26718             'fp->_ptr - fp->_base'                              \
26719                                                                 \
26720             '# BSD'                                             \
26721             'fp->_p - fp->_bf._base'                            \
26722                                                                 \
26723             '# SCO, Unixware'                                   \
26724             'fp->__ptr - fp->__base'                            \
26725                                                                 \
26726             '# old glibc?'                                      \
26727             'fp->__bufp - fp->__buffer'                         \
26728                                                                 \
26729             '# old glibc iostream?'                             \
26730             'fp->_pptr - fp->_pbase'                            \
26731                                                                 \
26732             '# VMS'                                             \
26733             '(*fp)->_ptr - (*fp)->_base'                        \
26734                                                                 \
26735             '# e.g., DGUX R4.11; the info is not available'     \
26736             1                                                   \
26737             ; do
26738
26739           # Skip each embedded comment.
26740           case "$ac_expr" in '#'*) continue;; esac
26741
26742           cat >conftest.$ac_ext <<_ACEOF
26743 #line $LINENO "configure"
26744 /* confdefs.h.  */
26745 _ACEOF
26746 cat confdefs.h >>conftest.$ac_ext
26747 cat >>conftest.$ac_ext <<_ACEOF
26748 /* end confdefs.h.  */
26749 #include <stdio.h>
26750
26751 int
26752 main ()
26753 {
26754 FILE *fp = stdin; (void) ($ac_expr);
26755   ;
26756   return 0;
26757 }
26758 _ACEOF
26759 rm -f conftest.$ac_objext
26760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26761   (eval $ac_compile) 2>&5
26762   ac_status=$?
26763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26764   (exit $ac_status); } &&
26765          { ac_try='test -s conftest.$ac_objext'
26766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26767   (eval $ac_try) 2>&5
26768   ac_status=$?
26769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770   (exit $ac_status); }; }; then
26771   fp_done=yes
26772
26773 else
26774   echo "$as_me: failed program was:" >&5
26775 sed 's/^/| /' conftest.$ac_ext >&5
26776
26777 fi
26778 rm -f conftest.$ac_objext conftest.$ac_ext
26779           test "$fp_done" = yes && break
26780         done
26781
26782         ac_cv_sys_pending_output_n_bytes=$ac_expr
26783
26784
26785 fi
26786 echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
26787 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6
26788
26789 cat >>confdefs.h <<_ACEOF
26790 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
26791 _ACEOF
26792
26793   fi
26794
26795
26796   # autoconf-2.52 has a proper check for inttypes.h.
26797
26798
26799   if test $ac_cv_header_inttypes_h = yes; then
26800     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
26801 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
26802 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
26803   echo $ECHO_N "(cached) $ECHO_C" >&6
26804 else
26805
26806         cat >conftest.$ac_ext <<_ACEOF
26807 #line $LINENO "configure"
26808 /* confdefs.h.  */
26809 _ACEOF
26810 cat confdefs.h >>conftest.$ac_ext
26811 cat >>conftest.$ac_ext <<_ACEOF
26812 /* end confdefs.h.  */
26813 #include <inttypes.h>
26814 #ifdef PRId32
26815 char *p = PRId32;
26816 #endif
26817
26818 int
26819 main ()
26820 {
26821
26822   ;
26823   return 0;
26824 }
26825 _ACEOF
26826 rm -f conftest.$ac_objext
26827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26828   (eval $ac_compile) 2>&5
26829   ac_status=$?
26830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26831   (exit $ac_status); } &&
26832          { ac_try='test -s conftest.$ac_objext'
26833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26834   (eval $ac_try) 2>&5
26835   ac_status=$?
26836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26837   (exit $ac_status); }; }; then
26838   gt_cv_inttypes_pri_broken=no
26839 else
26840   echo "$as_me: failed program was:" >&5
26841 sed 's/^/| /' conftest.$ac_ext >&5
26842
26843 gt_cv_inttypes_pri_broken=yes
26844 fi
26845 rm -f conftest.$ac_objext conftest.$ac_ext
26846
26847 fi
26848 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
26849 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
26850   fi
26851   if test "$gt_cv_inttypes_pri_broken" = yes; then
26852
26853 cat >>confdefs.h <<_ACEOF
26854 #define PRI_MACROS_BROKEN 1
26855 _ACEOF
26856
26857   fi
26858
26859 echo "$as_me:$LINENO: checking for getgroups" >&5
26860 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
26861 if test "${ac_cv_func_getgroups+set}" = set; then
26862   echo $ECHO_N "(cached) $ECHO_C" >&6
26863 else
26864   cat >conftest.$ac_ext <<_ACEOF
26865 #line $LINENO "configure"
26866 /* confdefs.h.  */
26867 _ACEOF
26868 cat confdefs.h >>conftest.$ac_ext
26869 cat >>conftest.$ac_ext <<_ACEOF
26870 /* end confdefs.h.  */
26871 /* System header to define __stub macros and hopefully few prototypes,
26872     which can conflict with char getgroups (); below.
26873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26874     <limits.h> exists even on freestanding compilers.  */
26875 #ifdef __STDC__
26876 # include <limits.h>
26877 #else
26878 # include <assert.h>
26879 #endif
26880 /* Override any gcc2 internal prototype to avoid an error.  */
26881 #ifdef __cplusplus
26882 extern "C"
26883 {
26884 #endif
26885 /* We use char because int might match the return type of a gcc2
26886    builtin and then its argument prototype would still apply.  */
26887 char getgroups ();
26888 /* The GNU C library defines this for functions which it implements
26889     to always fail with ENOSYS.  Some functions are actually named
26890     something starting with __ and the normal name is an alias.  */
26891 #if defined (__stub_getgroups) || defined (__stub___getgroups)
26892 choke me
26893 #else
26894 char (*f) () = getgroups;
26895 #endif
26896 #ifdef __cplusplus
26897 }
26898 #endif
26899
26900 int
26901 main ()
26902 {
26903 return f != getgroups;
26904   ;
26905   return 0;
26906 }
26907 _ACEOF
26908 rm -f conftest.$ac_objext conftest$ac_exeext
26909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26910   (eval $ac_link) 2>&5
26911   ac_status=$?
26912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913   (exit $ac_status); } &&
26914          { ac_try='test -s conftest$ac_exeext'
26915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26916   (eval $ac_try) 2>&5
26917   ac_status=$?
26918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919   (exit $ac_status); }; }; then
26920   ac_cv_func_getgroups=yes
26921 else
26922   echo "$as_me: failed program was:" >&5
26923 sed 's/^/| /' conftest.$ac_ext >&5
26924
26925 ac_cv_func_getgroups=no
26926 fi
26927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26928 fi
26929 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
26930 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
26931
26932
26933 # If we don't yet have getgroups, see if it's in -lbsd.
26934 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
26935 ac_save_LIBS=$LIBS
26936 if test $ac_cv_func_getgroups = no; then
26937   echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
26938 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
26939 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
26940   echo $ECHO_N "(cached) $ECHO_C" >&6
26941 else
26942   ac_check_lib_save_LIBS=$LIBS
26943 LIBS="-lbsd  $LIBS"
26944 cat >conftest.$ac_ext <<_ACEOF
26945 #line $LINENO "configure"
26946 /* confdefs.h.  */
26947 _ACEOF
26948 cat confdefs.h >>conftest.$ac_ext
26949 cat >>conftest.$ac_ext <<_ACEOF
26950 /* end confdefs.h.  */
26951
26952 /* Override any gcc2 internal prototype to avoid an error.  */
26953 #ifdef __cplusplus
26954 extern "C"
26955 #endif
26956 /* We use char because int might match the return type of a gcc2
26957    builtin and then its argument prototype would still apply.  */
26958 char getgroups ();
26959 int
26960 main ()
26961 {
26962 getgroups ();
26963   ;
26964   return 0;
26965 }
26966 _ACEOF
26967 rm -f conftest.$ac_objext conftest$ac_exeext
26968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26969   (eval $ac_link) 2>&5
26970   ac_status=$?
26971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26972   (exit $ac_status); } &&
26973          { ac_try='test -s conftest$ac_exeext'
26974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26975   (eval $ac_try) 2>&5
26976   ac_status=$?
26977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978   (exit $ac_status); }; }; then
26979   ac_cv_lib_bsd_getgroups=yes
26980 else
26981   echo "$as_me: failed program was:" >&5
26982 sed 's/^/| /' conftest.$ac_ext >&5
26983
26984 ac_cv_lib_bsd_getgroups=no
26985 fi
26986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26987 LIBS=$ac_check_lib_save_LIBS
26988 fi
26989 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
26990 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
26991 if test $ac_cv_lib_bsd_getgroups = yes; then
26992   GETGROUPS_LIB=-lbsd
26993 fi
26994
26995 fi
26996
26997 # Run the program to test the functionality of the system-supplied
26998 # getgroups function only if there is such a function.
26999 if test $ac_cv_func_getgroups = yes; then
27000   echo "$as_me:$LINENO: checking for working getgroups" >&5
27001 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
27002 if test "${ac_cv_func_getgroups_works+set}" = set; then
27003   echo $ECHO_N "(cached) $ECHO_C" >&6
27004 else
27005   if test "$cross_compiling" = yes; then
27006   ac_cv_func_getgroups_works=no
27007 else
27008   cat >conftest.$ac_ext <<_ACEOF
27009 #line $LINENO "configure"
27010 /* confdefs.h.  */
27011 _ACEOF
27012 cat confdefs.h >>conftest.$ac_ext
27013 cat >>conftest.$ac_ext <<_ACEOF
27014 /* end confdefs.h.  */
27015
27016 int
27017 main ()
27018 {
27019 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
27020        exit (getgroups (0, 0) == -1 ? 1 : 0);
27021   ;
27022   return 0;
27023 }
27024 _ACEOF
27025 rm -f conftest$ac_exeext
27026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27027   (eval $ac_link) 2>&5
27028   ac_status=$?
27029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27032   (eval $ac_try) 2>&5
27033   ac_status=$?
27034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035   (exit $ac_status); }; }; then
27036   ac_cv_func_getgroups_works=yes
27037 else
27038   echo "$as_me: program exited with status $ac_status" >&5
27039 echo "$as_me: failed program was:" >&5
27040 sed 's/^/| /' conftest.$ac_ext >&5
27041
27042 ( exit $ac_status )
27043 ac_cv_func_getgroups_works=no
27044 fi
27045 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27046 fi
27047
27048 fi
27049 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
27050 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
27051   if test $ac_cv_func_getgroups_works = yes; then
27052
27053 cat >>confdefs.h <<\_ACEOF
27054 #define HAVE_GETGROUPS 1
27055 _ACEOF
27056
27057   fi
27058 fi
27059 LIBS=$ac_save_LIBS
27060
27061   if test $ac_cv_func_getgroups_works = no; then
27062     LIBOBJS="$LIBOBJS getgroups.$ac_objext"
27063
27064 cat >>confdefs.h <<\_ACEOF
27065 #define getgroups rpl_getgroups
27066 _ACEOF
27067
27068   fi
27069   test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
27070
27071 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
27072 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
27073 if test "${ac_cv_sys_largefile_source+set}" = set; then
27074   echo $ECHO_N "(cached) $ECHO_C" >&6
27075 else
27076   while :; do
27077   ac_cv_sys_largefile_source=no
27078   cat >conftest.$ac_ext <<_ACEOF
27079 #line $LINENO "configure"
27080 /* confdefs.h.  */
27081 _ACEOF
27082 cat confdefs.h >>conftest.$ac_ext
27083 cat >>conftest.$ac_ext <<_ACEOF
27084 /* end confdefs.h.  */
27085 #include <stdio.h>
27086 int
27087 main ()
27088 {
27089 return !fseeko;
27090   ;
27091   return 0;
27092 }
27093 _ACEOF
27094 rm -f conftest.$ac_objext
27095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27096   (eval $ac_compile) 2>&5
27097   ac_status=$?
27098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27099   (exit $ac_status); } &&
27100          { ac_try='test -s conftest.$ac_objext'
27101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27102   (eval $ac_try) 2>&5
27103   ac_status=$?
27104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105   (exit $ac_status); }; }; then
27106   break
27107 else
27108   echo "$as_me: failed program was:" >&5
27109 sed 's/^/| /' conftest.$ac_ext >&5
27110
27111 fi
27112 rm -f conftest.$ac_objext conftest.$ac_ext
27113   cat >conftest.$ac_ext <<_ACEOF
27114 #line $LINENO "configure"
27115 /* confdefs.h.  */
27116 _ACEOF
27117 cat confdefs.h >>conftest.$ac_ext
27118 cat >>conftest.$ac_ext <<_ACEOF
27119 /* end confdefs.h.  */
27120 #define _LARGEFILE_SOURCE 1
27121 #include <stdio.h>
27122 int
27123 main ()
27124 {
27125 return !fseeko;
27126   ;
27127   return 0;
27128 }
27129 _ACEOF
27130 rm -f conftest.$ac_objext
27131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27132   (eval $ac_compile) 2>&5
27133   ac_status=$?
27134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135   (exit $ac_status); } &&
27136          { ac_try='test -s conftest.$ac_objext'
27137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27138   (eval $ac_try) 2>&5
27139   ac_status=$?
27140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141   (exit $ac_status); }; }; then
27142   ac_cv_sys_largefile_source=1; break
27143 else
27144   echo "$as_me: failed program was:" >&5
27145 sed 's/^/| /' conftest.$ac_ext >&5
27146
27147 fi
27148 rm -f conftest.$ac_objext conftest.$ac_ext
27149   break
27150 done
27151 fi
27152 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
27153 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
27154 if test "$ac_cv_sys_largefile_source" != no; then
27155
27156 cat >>confdefs.h <<_ACEOF
27157 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
27158 _ACEOF
27159
27160 fi
27161 rm -f conftest*
27162
27163 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
27164 # in glibc 2.1.3, but that breaks too many other things.
27165 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
27166 echo "$as_me:$LINENO: checking for fseeko" >&5
27167 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
27168 if test "${ac_cv_func_fseeko+set}" = set; then
27169   echo $ECHO_N "(cached) $ECHO_C" >&6
27170 else
27171   cat >conftest.$ac_ext <<_ACEOF
27172 #line $LINENO "configure"
27173 /* confdefs.h.  */
27174 _ACEOF
27175 cat confdefs.h >>conftest.$ac_ext
27176 cat >>conftest.$ac_ext <<_ACEOF
27177 /* end confdefs.h.  */
27178 #include <stdio.h>
27179 int
27180 main ()
27181 {
27182 return fseeko && fseeko (stdin, 0, 0);
27183   ;
27184   return 0;
27185 }
27186 _ACEOF
27187 rm -f conftest.$ac_objext conftest$ac_exeext
27188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27189   (eval $ac_link) 2>&5
27190   ac_status=$?
27191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27192   (exit $ac_status); } &&
27193          { ac_try='test -s conftest$ac_exeext'
27194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27195   (eval $ac_try) 2>&5
27196   ac_status=$?
27197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198   (exit $ac_status); }; }; then
27199   ac_cv_func_fseeko=yes
27200 else
27201   echo "$as_me: failed program was:" >&5
27202 sed 's/^/| /' conftest.$ac_ext >&5
27203
27204 ac_cv_func_fseeko=no
27205 fi
27206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27207 fi
27208 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
27209 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
27210 if test $ac_cv_func_fseeko = yes; then
27211
27212 cat >>confdefs.h <<\_ACEOF
27213 #define HAVE_FSEEKO 1
27214 _ACEOF
27215
27216 fi
27217
27218
27219 for ac_func in vprintf
27220 do
27221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27222 echo "$as_me:$LINENO: checking for $ac_func" >&5
27223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27224 if eval "test \"\${$as_ac_var+set}\" = set"; then
27225   echo $ECHO_N "(cached) $ECHO_C" >&6
27226 else
27227   cat >conftest.$ac_ext <<_ACEOF
27228 #line $LINENO "configure"
27229 /* confdefs.h.  */
27230 _ACEOF
27231 cat confdefs.h >>conftest.$ac_ext
27232 cat >>conftest.$ac_ext <<_ACEOF
27233 /* end confdefs.h.  */
27234 /* System header to define __stub macros and hopefully few prototypes,
27235     which can conflict with char $ac_func (); below.
27236     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27237     <limits.h> exists even on freestanding compilers.  */
27238 #ifdef __STDC__
27239 # include <limits.h>
27240 #else
27241 # include <assert.h>
27242 #endif
27243 /* Override any gcc2 internal prototype to avoid an error.  */
27244 #ifdef __cplusplus
27245 extern "C"
27246 {
27247 #endif
27248 /* We use char because int might match the return type of a gcc2
27249    builtin and then its argument prototype would still apply.  */
27250 char $ac_func ();
27251 /* The GNU C library defines this for functions which it implements
27252     to always fail with ENOSYS.  Some functions are actually named
27253     something starting with __ and the normal name is an alias.  */
27254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27255 choke me
27256 #else
27257 char (*f) () = $ac_func;
27258 #endif
27259 #ifdef __cplusplus
27260 }
27261 #endif
27262
27263 int
27264 main ()
27265 {
27266 return f != $ac_func;
27267   ;
27268   return 0;
27269 }
27270 _ACEOF
27271 rm -f conftest.$ac_objext conftest$ac_exeext
27272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27273   (eval $ac_link) 2>&5
27274   ac_status=$?
27275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276   (exit $ac_status); } &&
27277          { ac_try='test -s conftest$ac_exeext'
27278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27279   (eval $ac_try) 2>&5
27280   ac_status=$?
27281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27282   (exit $ac_status); }; }; then
27283   eval "$as_ac_var=yes"
27284 else
27285   echo "$as_me: failed program was:" >&5
27286 sed 's/^/| /' conftest.$ac_ext >&5
27287
27288 eval "$as_ac_var=no"
27289 fi
27290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27291 fi
27292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27294 if test `eval echo '${'$as_ac_var'}'` = yes; then
27295   cat >>confdefs.h <<_ACEOF
27296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27297 _ACEOF
27298
27299 echo "$as_me:$LINENO: checking for _doprnt" >&5
27300 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
27301 if test "${ac_cv_func__doprnt+set}" = set; then
27302   echo $ECHO_N "(cached) $ECHO_C" >&6
27303 else
27304   cat >conftest.$ac_ext <<_ACEOF
27305 #line $LINENO "configure"
27306 /* confdefs.h.  */
27307 _ACEOF
27308 cat confdefs.h >>conftest.$ac_ext
27309 cat >>conftest.$ac_ext <<_ACEOF
27310 /* end confdefs.h.  */
27311 /* System header to define __stub macros and hopefully few prototypes,
27312     which can conflict with char _doprnt (); below.
27313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27314     <limits.h> exists even on freestanding compilers.  */
27315 #ifdef __STDC__
27316 # include <limits.h>
27317 #else
27318 # include <assert.h>
27319 #endif
27320 /* Override any gcc2 internal prototype to avoid an error.  */
27321 #ifdef __cplusplus
27322 extern "C"
27323 {
27324 #endif
27325 /* We use char because int might match the return type of a gcc2
27326    builtin and then its argument prototype would still apply.  */
27327 char _doprnt ();
27328 /* The GNU C library defines this for functions which it implements
27329     to always fail with ENOSYS.  Some functions are actually named
27330     something starting with __ and the normal name is an alias.  */
27331 #if defined (__stub__doprnt) || defined (__stub____doprnt)
27332 choke me
27333 #else
27334 char (*f) () = _doprnt;
27335 #endif
27336 #ifdef __cplusplus
27337 }
27338 #endif
27339
27340 int
27341 main ()
27342 {
27343 return f != _doprnt;
27344   ;
27345   return 0;
27346 }
27347 _ACEOF
27348 rm -f conftest.$ac_objext conftest$ac_exeext
27349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27350   (eval $ac_link) 2>&5
27351   ac_status=$?
27352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353   (exit $ac_status); } &&
27354          { ac_try='test -s conftest$ac_exeext'
27355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27356   (eval $ac_try) 2>&5
27357   ac_status=$?
27358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359   (exit $ac_status); }; }; then
27360   ac_cv_func__doprnt=yes
27361 else
27362   echo "$as_me: failed program was:" >&5
27363 sed 's/^/| /' conftest.$ac_ext >&5
27364
27365 ac_cv_func__doprnt=no
27366 fi
27367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27368 fi
27369 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27370 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
27371 if test $ac_cv_func__doprnt = yes; then
27372
27373 cat >>confdefs.h <<\_ACEOF
27374 #define HAVE_DOPRNT 1
27375 _ACEOF
27376
27377 fi
27378
27379 fi
27380 done
27381
27382
27383
27384   echo "$as_me:$LINENO: checking for /proc/uptime" >&5
27385 echo $ECHO_N "checking for /proc/uptime... $ECHO_C" >&6
27386 if test "${jm_cv_have_proc_uptime+set}" = set; then
27387   echo $ECHO_N "(cached) $ECHO_C" >&6
27388 else
27389   jm_cv_have_proc_uptime=no
27390     test -f /proc/uptime \
27391       && test "$cross_compiling" = no \
27392       && cat < /proc/uptime >/dev/null 2>/dev/null \
27393       && jm_cv_have_proc_uptime=yes
27394 fi
27395 echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
27396 echo "${ECHO_T}$jm_cv_have_proc_uptime" >&6
27397   if test $jm_cv_have_proc_uptime = yes; then
27398
27399 cat >>confdefs.h <<\_ACEOF
27400 #define HAVE_PROC_UPTIME 1
27401 _ACEOF
27402
27403   fi
27404
27405
27406
27407 for ac_func in ftruncate
27408 do
27409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27410 echo "$as_me:$LINENO: checking for $ac_func" >&5
27411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27412 if eval "test \"\${$as_ac_var+set}\" = set"; then
27413   echo $ECHO_N "(cached) $ECHO_C" >&6
27414 else
27415   cat >conftest.$ac_ext <<_ACEOF
27416 #line $LINENO "configure"
27417 /* confdefs.h.  */
27418 _ACEOF
27419 cat confdefs.h >>conftest.$ac_ext
27420 cat >>conftest.$ac_ext <<_ACEOF
27421 /* end confdefs.h.  */
27422 /* System header to define __stub macros and hopefully few prototypes,
27423     which can conflict with char $ac_func (); below.
27424     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27425     <limits.h> exists even on freestanding compilers.  */
27426 #ifdef __STDC__
27427 # include <limits.h>
27428 #else
27429 # include <assert.h>
27430 #endif
27431 /* Override any gcc2 internal prototype to avoid an error.  */
27432 #ifdef __cplusplus
27433 extern "C"
27434 {
27435 #endif
27436 /* We use char because int might match the return type of a gcc2
27437    builtin and then its argument prototype would still apply.  */
27438 char $ac_func ();
27439 /* The GNU C library defines this for functions which it implements
27440     to always fail with ENOSYS.  Some functions are actually named
27441     something starting with __ and the normal name is an alias.  */
27442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27443 choke me
27444 #else
27445 char (*f) () = $ac_func;
27446 #endif
27447 #ifdef __cplusplus
27448 }
27449 #endif
27450
27451 int
27452 main ()
27453 {
27454 return f != $ac_func;
27455   ;
27456   return 0;
27457 }
27458 _ACEOF
27459 rm -f conftest.$ac_objext conftest$ac_exeext
27460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27461   (eval $ac_link) 2>&5
27462   ac_status=$?
27463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464   (exit $ac_status); } &&
27465          { ac_try='test -s conftest$ac_exeext'
27466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27467   (eval $ac_try) 2>&5
27468   ac_status=$?
27469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470   (exit $ac_status); }; }; then
27471   eval "$as_ac_var=yes"
27472 else
27473   echo "$as_me: failed program was:" >&5
27474 sed 's/^/| /' conftest.$ac_ext >&5
27475
27476 eval "$as_ac_var=no"
27477 fi
27478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27479 fi
27480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27482 if test `eval echo '${'$as_ac_var'}'` = yes; then
27483   cat >>confdefs.h <<_ACEOF
27484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27485 _ACEOF
27486
27487 else
27488   ftruncate_missing=yes
27489 fi
27490 done
27491
27492
27493   if test "$ftruncate_missing" = yes; then
27494
27495 for ac_header in unistd.h
27496 do
27497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27499   echo "$as_me:$LINENO: checking for $ac_header" >&5
27500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27502   echo $ECHO_N "(cached) $ECHO_C" >&6
27503 fi
27504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27506 else
27507   # Is the header compilable?
27508 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27509 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27510 cat >conftest.$ac_ext <<_ACEOF
27511 #line $LINENO "configure"
27512 /* confdefs.h.  */
27513 _ACEOF
27514 cat confdefs.h >>conftest.$ac_ext
27515 cat >>conftest.$ac_ext <<_ACEOF
27516 /* end confdefs.h.  */
27517 $ac_includes_default
27518 #include <$ac_header>
27519 _ACEOF
27520 rm -f conftest.$ac_objext
27521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27522   (eval $ac_compile) 2>&5
27523   ac_status=$?
27524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525   (exit $ac_status); } &&
27526          { ac_try='test -s conftest.$ac_objext'
27527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27528   (eval $ac_try) 2>&5
27529   ac_status=$?
27530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531   (exit $ac_status); }; }; then
27532   ac_header_compiler=yes
27533 else
27534   echo "$as_me: failed program was:" >&5
27535 sed 's/^/| /' conftest.$ac_ext >&5
27536
27537 ac_header_compiler=no
27538 fi
27539 rm -f conftest.$ac_objext conftest.$ac_ext
27540 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27541 echo "${ECHO_T}$ac_header_compiler" >&6
27542
27543 # Is the header present?
27544 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27546 cat >conftest.$ac_ext <<_ACEOF
27547 #line $LINENO "configure"
27548 /* confdefs.h.  */
27549 _ACEOF
27550 cat confdefs.h >>conftest.$ac_ext
27551 cat >>conftest.$ac_ext <<_ACEOF
27552 /* end confdefs.h.  */
27553 #include <$ac_header>
27554 _ACEOF
27555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27556   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27557   ac_status=$?
27558   grep -v '^ *+' conftest.er1 >conftest.err
27559   rm -f conftest.er1
27560   cat conftest.err >&5
27561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562   (exit $ac_status); } >/dev/null; then
27563   if test -s conftest.err; then
27564     ac_cpp_err=$ac_c_preproc_warn_flag
27565   else
27566     ac_cpp_err=
27567   fi
27568 else
27569   ac_cpp_err=yes
27570 fi
27571 if test -z "$ac_cpp_err"; then
27572   ac_header_preproc=yes
27573 else
27574   echo "$as_me: failed program was:" >&5
27575 sed 's/^/| /' conftest.$ac_ext >&5
27576
27577   ac_header_preproc=no
27578 fi
27579 rm -f conftest.err conftest.$ac_ext
27580 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27581 echo "${ECHO_T}$ac_header_preproc" >&6
27582
27583 # So?  What about this header?
27584 case $ac_header_compiler:$ac_header_preproc in
27585   yes:no )
27586     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27588     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27590     (
27591       cat <<\_ASBOX
27592 ## ------------------------------------ ##
27593 ## Report this to bug-autoconf@gnu.org. ##
27594 ## ------------------------------------ ##
27595 _ASBOX
27596     ) |
27597       sed "s/^/$as_me: WARNING:     /" >&2
27598     ;;
27599   no:yes )
27600     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27602     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27604     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27606     (
27607       cat <<\_ASBOX
27608 ## ------------------------------------ ##
27609 ## Report this to bug-autoconf@gnu.org. ##
27610 ## ------------------------------------ ##
27611 _ASBOX
27612     ) |
27613       sed "s/^/$as_me: WARNING:     /" >&2
27614     ;;
27615 esac
27616 echo "$as_me:$LINENO: checking for $ac_header" >&5
27617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27619   echo $ECHO_N "(cached) $ECHO_C" >&6
27620 else
27621   eval "$as_ac_Header=$ac_header_preproc"
27622 fi
27623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27625
27626 fi
27627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27628   cat >>confdefs.h <<_ACEOF
27629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27630 _ACEOF
27631
27632 fi
27633
27634 done
27635
27636
27637 for ac_func in chsize
27638 do
27639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27640 echo "$as_me:$LINENO: checking for $ac_func" >&5
27641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27642 if eval "test \"\${$as_ac_var+set}\" = set"; then
27643   echo $ECHO_N "(cached) $ECHO_C" >&6
27644 else
27645   cat >conftest.$ac_ext <<_ACEOF
27646 #line $LINENO "configure"
27647 /* confdefs.h.  */
27648 _ACEOF
27649 cat confdefs.h >>conftest.$ac_ext
27650 cat >>conftest.$ac_ext <<_ACEOF
27651 /* end confdefs.h.  */
27652 /* System header to define __stub macros and hopefully few prototypes,
27653     which can conflict with char $ac_func (); below.
27654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27655     <limits.h> exists even on freestanding compilers.  */
27656 #ifdef __STDC__
27657 # include <limits.h>
27658 #else
27659 # include <assert.h>
27660 #endif
27661 /* Override any gcc2 internal prototype to avoid an error.  */
27662 #ifdef __cplusplus
27663 extern "C"
27664 {
27665 #endif
27666 /* We use char because int might match the return type of a gcc2
27667    builtin and then its argument prototype would still apply.  */
27668 char $ac_func ();
27669 /* The GNU C library defines this for functions which it implements
27670     to always fail with ENOSYS.  Some functions are actually named
27671     something starting with __ and the normal name is an alias.  */
27672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27673 choke me
27674 #else
27675 char (*f) () = $ac_func;
27676 #endif
27677 #ifdef __cplusplus
27678 }
27679 #endif
27680
27681 int
27682 main ()
27683 {
27684 return f != $ac_func;
27685   ;
27686   return 0;
27687 }
27688 _ACEOF
27689 rm -f conftest.$ac_objext conftest$ac_exeext
27690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27691   (eval $ac_link) 2>&5
27692   ac_status=$?
27693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694   (exit $ac_status); } &&
27695          { ac_try='test -s conftest$ac_exeext'
27696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27697   (eval $ac_try) 2>&5
27698   ac_status=$?
27699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700   (exit $ac_status); }; }; then
27701   eval "$as_ac_var=yes"
27702 else
27703   echo "$as_me: failed program was:" >&5
27704 sed 's/^/| /' conftest.$ac_ext >&5
27705
27706 eval "$as_ac_var=no"
27707 fi
27708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27709 fi
27710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27712 if test `eval echo '${'$as_ac_var'}'` = yes; then
27713   cat >>confdefs.h <<_ACEOF
27714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27715 _ACEOF
27716
27717 fi
27718 done
27719
27720     LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
27721   fi
27722
27723
27724  echo "$as_me:$LINENO: checking whether rename is broken" >&5
27725 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6
27726 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
27727   echo $ECHO_N "(cached) $ECHO_C" >&6
27728 else
27729
27730     rm -rf conftest.d1 conftest.d2
27731     mkdir conftest.d1 ||
27732       { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
27733 echo "$as_me: error: cannot create temporary directory" >&2;}
27734    { (exit 1); exit 1; }; }
27735     if test "$cross_compiling" = yes; then
27736         vb_cv_func_rename_trailing_slash_bug=yes
27737 else
27738   cat >conftest.$ac_ext <<_ACEOF
27739 #line $LINENO "configure"
27740 /* confdefs.h.  */
27741 _ACEOF
27742 cat confdefs.h >>conftest.$ac_ext
27743 cat >>conftest.$ac_ext <<_ACEOF
27744 /* end confdefs.h.  */
27745
27746 #       include <stdio.h>
27747         int
27748         main ()
27749         {
27750           exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
27751         }
27752
27753 _ACEOF
27754 rm -f conftest$ac_exeext
27755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27756   (eval $ac_link) 2>&5
27757   ac_status=$?
27758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27761   (eval $ac_try) 2>&5
27762   ac_status=$?
27763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764   (exit $ac_status); }; }; then
27765   vb_cv_func_rename_trailing_slash_bug=no
27766 else
27767   echo "$as_me: program exited with status $ac_status" >&5
27768 echo "$as_me: failed program was:" >&5
27769 sed 's/^/| /' conftest.$ac_ext >&5
27770
27771 ( exit $ac_status )
27772 vb_cv_func_rename_trailing_slash_bug=yes
27773 fi
27774 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27775 fi
27776
27777       rm -rf conftest.d1 conftest.d2
27778
27779 fi
27780 echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
27781 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6
27782   if test $vb_cv_func_rename_trailing_slash_bug = yes; then
27783     LIBOBJS="$LIBOBJS rename.$ac_objext"
27784
27785 cat >>confdefs.h <<\_ACEOF
27786 #define RENAME_TRAILING_SLASH_BUG 1
27787 _ACEOF
27788
27789   fi
27790
27791
27792 for ac_func in mkstemp
27793 do
27794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27795 echo "$as_me:$LINENO: checking for $ac_func" >&5
27796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27797 if eval "test \"\${$as_ac_var+set}\" = set"; then
27798   echo $ECHO_N "(cached) $ECHO_C" >&6
27799 else
27800   cat >conftest.$ac_ext <<_ACEOF
27801 #line $LINENO "configure"
27802 /* confdefs.h.  */
27803 _ACEOF
27804 cat confdefs.h >>conftest.$ac_ext
27805 cat >>conftest.$ac_ext <<_ACEOF
27806 /* end confdefs.h.  */
27807 /* System header to define __stub macros and hopefully few prototypes,
27808     which can conflict with char $ac_func (); below.
27809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27810     <limits.h> exists even on freestanding compilers.  */
27811 #ifdef __STDC__
27812 # include <limits.h>
27813 #else
27814 # include <assert.h>
27815 #endif
27816 /* Override any gcc2 internal prototype to avoid an error.  */
27817 #ifdef __cplusplus
27818 extern "C"
27819 {
27820 #endif
27821 /* We use char because int might match the return type of a gcc2
27822    builtin and then its argument prototype would still apply.  */
27823 char $ac_func ();
27824 /* The GNU C library defines this for functions which it implements
27825     to always fail with ENOSYS.  Some functions are actually named
27826     something starting with __ and the normal name is an alias.  */
27827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27828 choke me
27829 #else
27830 char (*f) () = $ac_func;
27831 #endif
27832 #ifdef __cplusplus
27833 }
27834 #endif
27835
27836 int
27837 main ()
27838 {
27839 return f != $ac_func;
27840   ;
27841   return 0;
27842 }
27843 _ACEOF
27844 rm -f conftest.$ac_objext conftest$ac_exeext
27845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27846   (eval $ac_link) 2>&5
27847   ac_status=$?
27848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849   (exit $ac_status); } &&
27850          { ac_try='test -s conftest$ac_exeext'
27851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27852   (eval $ac_try) 2>&5
27853   ac_status=$?
27854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855   (exit $ac_status); }; }; then
27856   eval "$as_ac_var=yes"
27857 else
27858   echo "$as_me: failed program was:" >&5
27859 sed 's/^/| /' conftest.$ac_ext >&5
27860
27861 eval "$as_ac_var=no"
27862 fi
27863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27864 fi
27865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27867 if test `eval echo '${'$as_ac_var'}'` = yes; then
27868   cat >>confdefs.h <<_ACEOF
27869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27870 _ACEOF
27871
27872 else
27873   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
27874 fi
27875 done
27876
27877
27878   if test $ac_cv_func_mkstemp = no; then
27879     utils_cv_func_mkstemp_limitations=yes
27880   else
27881     echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
27882 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
27883 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
27884   echo $ECHO_N "(cached) $ECHO_C" >&6
27885 else
27886
27887         if test "$cross_compiling" = yes; then
27888   utils_cv_func_mkstemp_limitations=yes
27889
27890 else
27891   cat >conftest.$ac_ext <<_ACEOF
27892 #line $LINENO "configure"
27893 /* confdefs.h.  */
27894 _ACEOF
27895 cat confdefs.h >>conftest.$ac_ext
27896 cat >>conftest.$ac_ext <<_ACEOF
27897 /* end confdefs.h.  */
27898
27899 #         include <stdlib.h>
27900           int main ()
27901           {
27902             int i;
27903             for (i = 0; i < 30; i++)
27904               {
27905                 char template[] = "conftestXXXXXX";
27906                 int fd = mkstemp (template);
27907                 if (fd == -1)
27908                   exit (1);
27909                 close (fd);
27910               }
27911             exit (0);
27912           }
27913
27914 _ACEOF
27915 rm -f conftest$ac_exeext
27916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27917   (eval $ac_link) 2>&5
27918   ac_status=$?
27919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27920   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27922   (eval $ac_try) 2>&5
27923   ac_status=$?
27924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27925   (exit $ac_status); }; }; then
27926   utils_cv_func_mkstemp_limitations=no
27927 else
27928   echo "$as_me: program exited with status $ac_status" >&5
27929 echo "$as_me: failed program was:" >&5
27930 sed 's/^/| /' conftest.$ac_ext >&5
27931
27932 ( exit $ac_status )
27933 utils_cv_func_mkstemp_limitations=yes
27934 fi
27935 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27936 fi
27937
27938
27939 fi
27940 echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
27941 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6
27942   fi
27943
27944   if test $utils_cv_func_mkstemp_limitations = yes; then
27945     LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
27946     LIBOBJS="$LIBOBJS tempname.$ac_objext"
27947
27948 cat >>confdefs.h <<\_ACEOF
27949 #define mkstemp rpl_mkstemp
27950 _ACEOF
27951
27952   fi
27953
27954 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
27955 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
27956 if test "${ac_cv_func_closedir_void+set}" = set; then
27957   echo $ECHO_N "(cached) $ECHO_C" >&6
27958 else
27959   if test "$cross_compiling" = yes; then
27960   ac_cv_func_closedir_void=yes
27961 else
27962   cat >conftest.$ac_ext <<_ACEOF
27963 #line $LINENO "configure"
27964 /* confdefs.h.  */
27965 _ACEOF
27966 cat confdefs.h >>conftest.$ac_ext
27967 cat >>conftest.$ac_ext <<_ACEOF
27968 /* end confdefs.h.  */
27969 $ac_includes_default
27970 #include <$ac_header_dirent>
27971 #ifndef __cplusplus
27972 int closedir ();
27973 #endif
27974
27975 int
27976 main ()
27977 {
27978 exit (closedir (opendir (".")) != 0);
27979   ;
27980   return 0;
27981 }
27982 _ACEOF
27983 rm -f conftest$ac_exeext
27984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27985   (eval $ac_link) 2>&5
27986   ac_status=$?
27987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27988   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27990   (eval $ac_try) 2>&5
27991   ac_status=$?
27992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993   (exit $ac_status); }; }; then
27994   ac_cv_func_closedir_void=no
27995 else
27996   echo "$as_me: program exited with status $ac_status" >&5
27997 echo "$as_me: failed program was:" >&5
27998 sed 's/^/| /' conftest.$ac_ext >&5
27999
28000 ( exit $ac_status )
28001 ac_cv_func_closedir_void=yes
28002 fi
28003 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28004 fi
28005 fi
28006 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28007 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28008 if test $ac_cv_func_closedir_void = yes; then
28009
28010 cat >>confdefs.h <<\_ACEOF
28011 #define CLOSEDIR_VOID 1
28012 _ACEOF
28013
28014 fi
28015
28016 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
28017 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
28018 if test "${ac_cv_func_utime_null+set}" = set; then
28019   echo $ECHO_N "(cached) $ECHO_C" >&6
28020 else
28021   rm -f conftest.data; >conftest.data
28022 # Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
28023 if test "$cross_compiling" = yes; then
28024   ac_cv_func_utime_null=no
28025 else
28026   cat >conftest.$ac_ext <<_ACEOF
28027 #line $LINENO "configure"
28028 /* confdefs.h.  */
28029 _ACEOF
28030 cat confdefs.h >>conftest.$ac_ext
28031 cat >>conftest.$ac_ext <<_ACEOF
28032 /* end confdefs.h.  */
28033 $ac_includes_default
28034 int
28035 main ()
28036 {
28037 struct stat s, t;
28038   exit (!(stat ("conftest.data", &s) == 0
28039           && utime ("conftest.data", (long *)0) == 0
28040           && stat ("conftest.data", &t) == 0
28041           && t.st_mtime >= s.st_mtime
28042           && t.st_mtime - s.st_mtime < 120));
28043   ;
28044   return 0;
28045 }
28046 _ACEOF
28047 rm -f conftest$ac_exeext
28048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28049   (eval $ac_link) 2>&5
28050   ac_status=$?
28051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28052   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28054   (eval $ac_try) 2>&5
28055   ac_status=$?
28056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057   (exit $ac_status); }; }; then
28058   ac_cv_func_utime_null=yes
28059 else
28060   echo "$as_me: program exited with status $ac_status" >&5
28061 echo "$as_me: failed program was:" >&5
28062 sed 's/^/| /' conftest.$ac_ext >&5
28063
28064 ( exit $ac_status )
28065 ac_cv_func_utime_null=no
28066 fi
28067 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28068 fi
28069 rm -f core core.* *.core
28070 fi
28071 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
28072 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
28073 if test $ac_cv_func_utime_null = yes; then
28074
28075 cat >>confdefs.h <<\_ACEOF
28076 #define HAVE_UTIME_NULL 1
28077 _ACEOF
28078
28079 fi
28080 rm -f conftest.data
28081
28082
28083
28084 for ac_header in utime.h
28085 do
28086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28088   echo "$as_me:$LINENO: checking for $ac_header" >&5
28089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28091   echo $ECHO_N "(cached) $ECHO_C" >&6
28092 fi
28093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28095 else
28096   # Is the header compilable?
28097 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28099 cat >conftest.$ac_ext <<_ACEOF
28100 #line $LINENO "configure"
28101 /* confdefs.h.  */
28102 _ACEOF
28103 cat confdefs.h >>conftest.$ac_ext
28104 cat >>conftest.$ac_ext <<_ACEOF
28105 /* end confdefs.h.  */
28106 $ac_includes_default
28107 #include <$ac_header>
28108 _ACEOF
28109 rm -f conftest.$ac_objext
28110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28111   (eval $ac_compile) 2>&5
28112   ac_status=$?
28113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114   (exit $ac_status); } &&
28115          { ac_try='test -s conftest.$ac_objext'
28116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28117   (eval $ac_try) 2>&5
28118   ac_status=$?
28119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28120   (exit $ac_status); }; }; then
28121   ac_header_compiler=yes
28122 else
28123   echo "$as_me: failed program was:" >&5
28124 sed 's/^/| /' conftest.$ac_ext >&5
28125
28126 ac_header_compiler=no
28127 fi
28128 rm -f conftest.$ac_objext conftest.$ac_ext
28129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28130 echo "${ECHO_T}$ac_header_compiler" >&6
28131
28132 # Is the header present?
28133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28135 cat >conftest.$ac_ext <<_ACEOF
28136 #line $LINENO "configure"
28137 /* confdefs.h.  */
28138 _ACEOF
28139 cat confdefs.h >>conftest.$ac_ext
28140 cat >>conftest.$ac_ext <<_ACEOF
28141 /* end confdefs.h.  */
28142 #include <$ac_header>
28143 _ACEOF
28144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28145   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28146   ac_status=$?
28147   grep -v '^ *+' conftest.er1 >conftest.err
28148   rm -f conftest.er1
28149   cat conftest.err >&5
28150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151   (exit $ac_status); } >/dev/null; then
28152   if test -s conftest.err; then
28153     ac_cpp_err=$ac_c_preproc_warn_flag
28154   else
28155     ac_cpp_err=
28156   fi
28157 else
28158   ac_cpp_err=yes
28159 fi
28160 if test -z "$ac_cpp_err"; then
28161   ac_header_preproc=yes
28162 else
28163   echo "$as_me: failed program was:" >&5
28164 sed 's/^/| /' conftest.$ac_ext >&5
28165
28166   ac_header_preproc=no
28167 fi
28168 rm -f conftest.err conftest.$ac_ext
28169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28170 echo "${ECHO_T}$ac_header_preproc" >&6
28171
28172 # So?  What about this header?
28173 case $ac_header_compiler:$ac_header_preproc in
28174   yes:no )
28175     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28179     (
28180       cat <<\_ASBOX
28181 ## ------------------------------------ ##
28182 ## Report this to bug-autoconf@gnu.org. ##
28183 ## ------------------------------------ ##
28184 _ASBOX
28185     ) |
28186       sed "s/^/$as_me: WARNING:     /" >&2
28187     ;;
28188   no:yes )
28189     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28191     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28195     (
28196       cat <<\_ASBOX
28197 ## ------------------------------------ ##
28198 ## Report this to bug-autoconf@gnu.org. ##
28199 ## ------------------------------------ ##
28200 _ASBOX
28201     ) |
28202       sed "s/^/$as_me: WARNING:     /" >&2
28203     ;;
28204 esac
28205 echo "$as_me:$LINENO: checking for $ac_header" >&5
28206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28208   echo $ECHO_N "(cached) $ECHO_C" >&6
28209 else
28210   eval "$as_ac_Header=$ac_header_preproc"
28211 fi
28212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28214
28215 fi
28216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28217   cat >>confdefs.h <<_ACEOF
28218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28219 _ACEOF
28220
28221 fi
28222
28223 done
28224
28225
28226
28227
28228   if test $ac_cv_func_utime_null = no; then
28229     echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
28230 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6
28231 if test "${ac_cv_func_utimes_null+set}" = set; then
28232   echo $ECHO_N "(cached) $ECHO_C" >&6
28233 else
28234   rm -f conftest.data; > conftest.data
28235 if test "$cross_compiling" = yes; then
28236   ac_cv_func_utimes_null=no
28237 else
28238   cat >conftest.$ac_ext <<_ACEOF
28239 #line $LINENO "configure"
28240 /* confdefs.h.  */
28241 _ACEOF
28242 cat confdefs.h >>conftest.$ac_ext
28243 cat >>conftest.$ac_ext <<_ACEOF
28244 /* end confdefs.h.  */
28245
28246 /* In case stat has been defined to rpl_stat, undef it here.  */
28247 #undef stat
28248 #include <sys/types.h>
28249 #include <sys/stat.h>
28250 main() {
28251 struct stat s, t;
28252 exit(!(stat ("conftest.data", &s) == 0
28253        && utimes("conftest.data", (long *)0) == 0
28254        && stat("conftest.data", &t) == 0
28255        && t.st_mtime >= s.st_mtime
28256        && t.st_mtime - s.st_mtime < 120));
28257 }
28258 _ACEOF
28259 rm -f conftest$ac_exeext
28260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28261   (eval $ac_link) 2>&5
28262   ac_status=$?
28263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28266   (eval $ac_try) 2>&5
28267   ac_status=$?
28268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269   (exit $ac_status); }; }; then
28270   ac_cv_func_utimes_null=yes
28271 else
28272   echo "$as_me: program exited with status $ac_status" >&5
28273 echo "$as_me: failed program was:" >&5
28274 sed 's/^/| /' conftest.$ac_ext >&5
28275
28276 ( exit $ac_status )
28277 ac_cv_func_utimes_null=no
28278 fi
28279 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28280 fi
28281 rm -f core core.* *.core
28282 fi
28283 echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
28284 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6
28285
28286     if test $ac_cv_func_utimes_null = yes; then
28287
28288 cat >>confdefs.h <<\_ACEOF
28289 #define HAVE_UTIMES_NULL 1
28290 _ACEOF
28291
28292     fi
28293
28294
28295
28296 for ac_func in utime
28297 do
28298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28299 echo "$as_me:$LINENO: checking for $ac_func" >&5
28300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28301 if eval "test \"\${$as_ac_var+set}\" = set"; then
28302   echo $ECHO_N "(cached) $ECHO_C" >&6
28303 else
28304   cat >conftest.$ac_ext <<_ACEOF
28305 #line $LINENO "configure"
28306 /* confdefs.h.  */
28307 _ACEOF
28308 cat confdefs.h >>conftest.$ac_ext
28309 cat >>conftest.$ac_ext <<_ACEOF
28310 /* end confdefs.h.  */
28311 /* System header to define __stub macros and hopefully few prototypes,
28312     which can conflict with char $ac_func (); below.
28313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28314     <limits.h> exists even on freestanding compilers.  */
28315 #ifdef __STDC__
28316 # include <limits.h>
28317 #else
28318 # include <assert.h>
28319 #endif
28320 /* Override any gcc2 internal prototype to avoid an error.  */
28321 #ifdef __cplusplus
28322 extern "C"
28323 {
28324 #endif
28325 /* We use char because int might match the return type of a gcc2
28326    builtin and then its argument prototype would still apply.  */
28327 char $ac_func ();
28328 /* The GNU C library defines this for functions which it implements
28329     to always fail with ENOSYS.  Some functions are actually named
28330     something starting with __ and the normal name is an alias.  */
28331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28332 choke me
28333 #else
28334 char (*f) () = $ac_func;
28335 #endif
28336 #ifdef __cplusplus
28337 }
28338 #endif
28339
28340 int
28341 main ()
28342 {
28343 return f != $ac_func;
28344   ;
28345   return 0;
28346 }
28347 _ACEOF
28348 rm -f conftest.$ac_objext conftest$ac_exeext
28349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28350   (eval $ac_link) 2>&5
28351   ac_status=$?
28352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353   (exit $ac_status); } &&
28354          { ac_try='test -s conftest$ac_exeext'
28355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28356   (eval $ac_try) 2>&5
28357   ac_status=$?
28358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359   (exit $ac_status); }; }; then
28360   eval "$as_ac_var=yes"
28361 else
28362   echo "$as_me: failed program was:" >&5
28363 sed 's/^/| /' conftest.$ac_ext >&5
28364
28365 eval "$as_ac_var=no"
28366 fi
28367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28368 fi
28369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28371 if test `eval echo '${'$as_ac_var'}'` = yes; then
28372   cat >>confdefs.h <<_ACEOF
28373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28374 _ACEOF
28375
28376 else
28377   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
28378 fi
28379 done
28380
28381
28382   fi
28383
28384
28385   echo "$as_me:$LINENO: checking determine how many files may be open simultaneously" >&5
28386 echo $ECHO_N "checking determine how many files may be open simultaneously... $ECHO_C" >&6
28387 if test "${utils_cv_sys_open_max+set}" = set; then
28388   echo $ECHO_N "(cached) $ECHO_C" >&6
28389 else
28390
28391   if test "$cross_compiling" = yes; then
28392   utils_cv_sys_open_max='cross compiling run-test in open-max.m4'
28393 else
28394   cat >conftest.$ac_ext <<_ACEOF
28395 #line $LINENO "configure"
28396 /* confdefs.h.  */
28397 _ACEOF
28398 cat confdefs.h >>conftest.$ac_ext
28399 cat >>conftest.$ac_ext <<_ACEOF
28400 /* end confdefs.h.  */
28401
28402 #include <stdio.h>
28403 #include <stdlib.h>
28404 #include <unistd.h>
28405     int
28406     main ()
28407     {
28408       FILE *result = fopen ("conftest.omax", "w");
28409       int i = 1;
28410       /* Impose an arbitrary limit, in case some system has no
28411          effective limit on the number of simultaneously open files.  */
28412       while (i < 30000)
28413         {
28414           FILE *s = fopen ("conftest.op", "w");
28415           if (!s)
28416             break;
28417           ++i;
28418         }
28419       fprintf (result, "%d\n", i);
28420       exit (fclose (result) == EOF);
28421     }
28422
28423 _ACEOF
28424 rm -f conftest$ac_exeext
28425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28426   (eval $ac_link) 2>&5
28427   ac_status=$?
28428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28431   (eval $ac_try) 2>&5
28432   ac_status=$?
28433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28434   (exit $ac_status); }; }; then
28435   utils_cv_sys_open_max=`cat conftest.omax`
28436 else
28437   echo "$as_me: program exited with status $ac_status" >&5
28438 echo "$as_me: failed program was:" >&5
28439 sed 's/^/| /' conftest.$ac_ext >&5
28440
28441 ( exit $ac_status )
28442 utils_cv_sys_open_max='internal error in open-max.m4'
28443 fi
28444 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28445 fi
28446 fi
28447 echo "$as_me:$LINENO: result: $utils_cv_sys_open_max" >&5
28448 echo "${ECHO_T}$utils_cv_sys_open_max" >&6
28449
28450
28451 cat >>confdefs.h <<_ACEOF
28452 #define UTILS_OPEN_MAX $utils_cv_sys_open_max
28453 _ACEOF
28454
28455
28456
28457       if test "X$prefix" = "XNONE"; then
28458     acl_final_prefix="$ac_default_prefix"
28459   else
28460     acl_final_prefix="$prefix"
28461   fi
28462   if test "X$exec_prefix" = "XNONE"; then
28463     acl_final_exec_prefix='${prefix}'
28464   else
28465     acl_final_exec_prefix="$exec_prefix"
28466   fi
28467   acl_save_prefix="$prefix"
28468   prefix="$acl_final_prefix"
28469   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
28470   prefix="$acl_save_prefix"
28471
28472
28473 # Check whether --with-gnu-ld or --without-gnu-ld was given.
28474 if test "${with_gnu_ld+set}" = set; then
28475   withval="$with_gnu_ld"
28476   test "$withval" = no || with_gnu_ld=yes
28477 else
28478   with_gnu_ld=no
28479 fi;
28480 ac_prog=ld
28481 if test "$GCC" = yes; then
28482   # Check if gcc -print-prog-name=ld gives a path.
28483   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
28484 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
28485   case $host in
28486   *-*-mingw*)
28487     # gcc leaves a trailing carriage return which upsets mingw
28488     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
28489   *)
28490     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
28491   esac
28492   case $ac_prog in
28493     # Accept absolute paths.
28494     [\\/]* | [A-Za-z]:[\\/]*)
28495       re_direlt='/[^/][^/]*/\.\./'
28496       # Canonicalize the path of ld
28497       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
28498       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
28499         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
28500       done
28501       test -z "$LD" && LD="$ac_prog"
28502       ;;
28503   "")
28504     # If it fails, then pretend we aren't using GCC.
28505     ac_prog=ld
28506     ;;
28507   *)
28508     # If it is relative, then search for the first ld in PATH.
28509     with_gnu_ld=unknown
28510     ;;
28511   esac
28512 elif test "$with_gnu_ld" = yes; then
28513   echo "$as_me:$LINENO: checking for GNU ld" >&5
28514 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
28515 else
28516   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
28517 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
28518 fi
28519 if test "${acl_cv_path_LD+set}" = set; then
28520   echo $ECHO_N "(cached) $ECHO_C" >&6
28521 else
28522   if test -z "$LD"; then
28523   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
28524   for ac_dir in $PATH; do
28525     test -z "$ac_dir" && ac_dir=.
28526     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
28527       acl_cv_path_LD="$ac_dir/$ac_prog"
28528       # Check to see if the program is GNU ld.  I'd rather use --version,
28529       # but apparently some GNU ld's only accept -v.
28530       # Break only if it was the GNU/non-GNU ld that we prefer.
28531       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
28532         test "$with_gnu_ld" != no && break
28533       else
28534         test "$with_gnu_ld" != yes && break
28535       fi
28536     fi
28537   done
28538   IFS="$ac_save_ifs"
28539 else
28540   acl_cv_path_LD="$LD" # Let the user override the test with a path.
28541 fi
28542 fi
28543
28544 LD="$acl_cv_path_LD"
28545 if test -n "$LD"; then
28546   echo "$as_me:$LINENO: result: $LD" >&5
28547 echo "${ECHO_T}$LD" >&6
28548 else
28549   echo "$as_me:$LINENO: result: no" >&5
28550 echo "${ECHO_T}no" >&6
28551 fi
28552 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
28553 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
28554    { (exit 1); exit 1; }; }
28555 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
28556 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
28557 if test "${acl_cv_prog_gnu_ld+set}" = set; then
28558   echo $ECHO_N "(cached) $ECHO_C" >&6
28559 else
28560   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
28561 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
28562   acl_cv_prog_gnu_ld=yes
28563 else
28564   acl_cv_prog_gnu_ld=no
28565 fi
28566 fi
28567 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
28568 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
28569 with_gnu_ld=$acl_cv_prog_gnu_ld
28570
28571
28572
28573                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
28574 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
28575 if test "${acl_cv_rpath+set}" = set; then
28576   echo $ECHO_N "(cached) $ECHO_C" >&6
28577 else
28578
28579     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
28580     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
28581     . ./conftest.sh
28582     rm -f ./conftest.sh
28583     acl_cv_rpath=done
28584
28585 fi
28586 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
28587 echo "${ECHO_T}$acl_cv_rpath" >&6
28588   wl="$acl_cv_wl"
28589   libext="$acl_cv_libext"
28590   shlibext="$acl_cv_shlibext"
28591   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
28592   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
28593   hardcode_direct="$acl_cv_hardcode_direct"
28594   hardcode_minus_L="$acl_cv_hardcode_minus_L"
28595   sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
28596   sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
28597     # Check whether --enable-rpath or --disable-rpath was given.
28598 if test "${enable_rpath+set}" = set; then
28599   enableval="$enable_rpath"
28600   :
28601 else
28602   enable_rpath=yes
28603 fi;
28604
28605
28606
28607
28608
28609
28610
28611     use_additional=yes
28612
28613   acl_save_prefix="$prefix"
28614   prefix="$acl_final_prefix"
28615   acl_save_exec_prefix="$exec_prefix"
28616   exec_prefix="$acl_final_exec_prefix"
28617
28618     eval additional_includedir=\"$includedir\"
28619     eval additional_libdir=\"$libdir\"
28620
28621   exec_prefix="$acl_save_exec_prefix"
28622   prefix="$acl_save_prefix"
28623
28624
28625 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
28626 if test "${with_libiconv_prefix+set}" = set; then
28627   withval="$with_libiconv_prefix"
28628
28629     if test "X$withval" = "Xno"; then
28630       use_additional=no
28631     else
28632       if test "X$withval" = "X"; then
28633
28634   acl_save_prefix="$prefix"
28635   prefix="$acl_final_prefix"
28636   acl_save_exec_prefix="$exec_prefix"
28637   exec_prefix="$acl_final_exec_prefix"
28638
28639           eval additional_includedir=\"$includedir\"
28640           eval additional_libdir=\"$libdir\"
28641
28642   exec_prefix="$acl_save_exec_prefix"
28643   prefix="$acl_save_prefix"
28644
28645       else
28646         additional_includedir="$withval/include"
28647         additional_libdir="$withval/lib"
28648       fi
28649     fi
28650
28651 fi;
28652       LIBICONV=
28653   LTLIBICONV=
28654   INCICONV=
28655   rpathdirs=
28656   ltrpathdirs=
28657   names_already_handled=
28658   names_next_round='iconv '
28659   while test -n "$names_next_round"; do
28660     names_this_round="$names_next_round"
28661     names_next_round=
28662     for name in $names_this_round; do
28663       already_handled=
28664       for n in $names_already_handled; do
28665         if test "$n" = "$name"; then
28666           already_handled=yes
28667           break
28668         fi
28669       done
28670       if test -z "$already_handled"; then
28671         names_already_handled="$names_already_handled $name"
28672                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
28673         eval value=\"\$HAVE_LIB$uppername\"
28674         if test -n "$value"; then
28675           if test "$value" = yes; then
28676             eval value=\"\$LIB$uppername\"
28677             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
28678             eval value=\"\$LTLIB$uppername\"
28679             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
28680           else
28681                                     :
28682           fi
28683         else
28684                               found_dir=
28685           found_la=
28686           found_so=
28687           found_a=
28688           if test $use_additional = yes; then
28689             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
28690               found_dir="$additional_libdir"
28691               found_so="$additional_libdir/lib$name.$shlibext"
28692               if test -f "$additional_libdir/lib$name.la"; then
28693                 found_la="$additional_libdir/lib$name.la"
28694               fi
28695             else
28696               if test -f "$additional_libdir/lib$name.$libext"; then
28697                 found_dir="$additional_libdir"
28698                 found_a="$additional_libdir/lib$name.$libext"
28699                 if test -f "$additional_libdir/lib$name.la"; then
28700                   found_la="$additional_libdir/lib$name.la"
28701                 fi
28702               fi
28703             fi
28704           fi
28705           if test "X$found_dir" = "X"; then
28706             for x in $LDFLAGS $LTLIBICONV; do
28707
28708   acl_save_prefix="$prefix"
28709   prefix="$acl_final_prefix"
28710   acl_save_exec_prefix="$exec_prefix"
28711   exec_prefix="$acl_final_exec_prefix"
28712   eval x=\"$x\"
28713   exec_prefix="$acl_save_exec_prefix"
28714   prefix="$acl_save_prefix"
28715
28716               case "$x" in
28717                 -L*)
28718                   dir=`echo "X$x" | sed -e 's/^X-L//'`
28719                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
28720                     found_dir="$dir"
28721                     found_so="$dir/lib$name.$shlibext"
28722                     if test -f "$dir/lib$name.la"; then
28723                       found_la="$dir/lib$name.la"
28724                     fi
28725                   else
28726                     if test -f "$dir/lib$name.$libext"; then
28727                       found_dir="$dir"
28728                       found_a="$dir/lib$name.$libext"
28729                       if test -f "$dir/lib$name.la"; then
28730                         found_la="$dir/lib$name.la"
28731                       fi
28732                     fi
28733                   fi
28734                   ;;
28735               esac
28736               if test "X$found_dir" != "X"; then
28737                 break
28738               fi
28739             done
28740           fi
28741           if test "X$found_dir" != "X"; then
28742                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
28743             if test "X$found_so" != "X"; then
28744                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
28745                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
28746               else
28747                                                                                 haveit=
28748                 for x in $ltrpathdirs; do
28749                   if test "X$x" = "X$found_dir"; then
28750                     haveit=yes
28751                     break
28752                   fi
28753                 done
28754                 if test -z "$haveit"; then
28755                   ltrpathdirs="$ltrpathdirs $found_dir"
28756                 fi
28757                                 if test "$hardcode_direct" = yes; then
28758                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
28759                 else
28760                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
28761                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
28762                                                             haveit=
28763                     for x in $rpathdirs; do
28764                       if test "X$x" = "X$found_dir"; then
28765                         haveit=yes
28766                         break
28767                       fi
28768                     done
28769                     if test -z "$haveit"; then
28770                       rpathdirs="$rpathdirs $found_dir"
28771                     fi
28772                   else
28773                                                                                 haveit=
28774                     for x in $LDFLAGS $LIBICONV; do
28775
28776   acl_save_prefix="$prefix"
28777   prefix="$acl_final_prefix"
28778   acl_save_exec_prefix="$exec_prefix"
28779   exec_prefix="$acl_final_exec_prefix"
28780   eval x=\"$x\"
28781   exec_prefix="$acl_save_exec_prefix"
28782   prefix="$acl_save_prefix"
28783
28784                       if test "X$x" = "X-L$found_dir"; then
28785                         haveit=yes
28786                         break
28787                       fi
28788                     done
28789                     if test -z "$haveit"; then
28790                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
28791                     fi
28792                     if test "$hardcode_minus_L" != no; then
28793                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
28794                     else
28795                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
28796                     fi
28797                   fi
28798                 fi
28799               fi
28800             else
28801               if test "X$found_a" != "X"; then
28802                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
28803               else
28804                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
28805               fi
28806             fi
28807                         additional_includedir=
28808             case "$found_dir" in
28809               */lib | */lib/)
28810                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
28811                 additional_includedir="$basedir/include"
28812                 ;;
28813             esac
28814             if test "X$additional_includedir" != "X"; then
28815                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
28816                 haveit=
28817                 if test "X$additional_includedir" = "X/usr/local/include"; then
28818                   if test -n "$GCC"; then
28819                     case $host_os in
28820                       linux*) haveit=yes;;
28821                     esac
28822                   fi
28823                 fi
28824                 if test -z "$haveit"; then
28825                   for x in $CPPFLAGS $INCICONV; do
28826
28827   acl_save_prefix="$prefix"
28828   prefix="$acl_final_prefix"
28829   acl_save_exec_prefix="$exec_prefix"
28830   exec_prefix="$acl_final_exec_prefix"
28831   eval x=\"$x\"
28832   exec_prefix="$acl_save_exec_prefix"
28833   prefix="$acl_save_prefix"
28834
28835                     if test "X$x" = "X-I$additional_includedir"; then
28836                       haveit=yes
28837                       break
28838                     fi
28839                   done
28840                   if test -z "$haveit"; then
28841                     if test -d "$additional_includedir"; then
28842                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
28843                     fi
28844                   fi
28845                 fi
28846               fi
28847             fi
28848                         if test -n "$found_la"; then
28849                                                         save_libdir="$libdir"
28850               case "$found_la" in
28851                 */* | *\\*) . "$found_la" ;;
28852                 *) . "./$found_la" ;;
28853               esac
28854               libdir="$save_libdir"
28855                             for dep in $dependency_libs; do
28856                 case "$dep" in
28857                   -L*)
28858                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
28859                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
28860                       haveit=
28861                       if test "X$additional_libdir" = "X/usr/local/lib"; then
28862                         if test -n "$GCC"; then
28863                           case $host_os in
28864                             linux*) haveit=yes;;
28865                           esac
28866                         fi
28867                       fi
28868                       if test -z "$haveit"; then
28869                         haveit=
28870                         for x in $LDFLAGS $LIBICONV; do
28871
28872   acl_save_prefix="$prefix"
28873   prefix="$acl_final_prefix"
28874   acl_save_exec_prefix="$exec_prefix"
28875   exec_prefix="$acl_final_exec_prefix"
28876   eval x=\"$x\"
28877   exec_prefix="$acl_save_exec_prefix"
28878   prefix="$acl_save_prefix"
28879
28880                           if test "X$x" = "X-L$additional_libdir"; then
28881                             haveit=yes
28882                             break
28883                           fi
28884                         done
28885                         if test -z "$haveit"; then
28886                           if test -d "$additional_libdir"; then
28887                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
28888                           fi
28889                         fi
28890                         haveit=
28891                         for x in $LDFLAGS $LTLIBICONV; do
28892
28893   acl_save_prefix="$prefix"
28894   prefix="$acl_final_prefix"
28895   acl_save_exec_prefix="$exec_prefix"
28896   exec_prefix="$acl_final_exec_prefix"
28897   eval x=\"$x\"
28898   exec_prefix="$acl_save_exec_prefix"
28899   prefix="$acl_save_prefix"
28900
28901                           if test "X$x" = "X-L$additional_libdir"; then
28902                             haveit=yes
28903                             break
28904                           fi
28905                         done
28906                         if test -z "$haveit"; then
28907                           if test -d "$additional_libdir"; then
28908                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
28909                           fi
28910                         fi
28911                       fi
28912                     fi
28913                     ;;
28914                   -R*)
28915                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
28916                     if test "$enable_rpath" != no; then
28917                                                                   haveit=
28918                       for x in $rpathdirs; do
28919                         if test "X$x" = "X$dir"; then
28920                           haveit=yes
28921                           break
28922                         fi
28923                       done
28924                       if test -z "$haveit"; then
28925                         rpathdirs="$rpathdirs $dir"
28926                       fi
28927                                                                   haveit=
28928                       for x in $ltrpathdirs; do
28929                         if test "X$x" = "X$dir"; then
28930                           haveit=yes
28931                           break
28932                         fi
28933                       done
28934                       if test -z "$haveit"; then
28935                         ltrpathdirs="$ltrpathdirs $dir"
28936                       fi
28937                     fi
28938                     ;;
28939                   -l*)
28940                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
28941                     ;;
28942                   *.la)
28943                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
28944                     ;;
28945                   *)
28946                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
28947                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
28948                     ;;
28949                 esac
28950               done
28951             fi
28952           else
28953                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
28954             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
28955           fi
28956         fi
28957       fi
28958     done
28959   done
28960   if test "X$rpathdirs" != "X"; then
28961     if test -n "$hardcode_libdir_separator"; then
28962                         alldirs=
28963       for found_dir in $rpathdirs; do
28964         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
28965       done
28966             acl_save_libdir="$libdir"
28967       libdir="$alldirs"
28968       eval flag=\"$hardcode_libdir_flag_spec\"
28969       libdir="$acl_save_libdir"
28970       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
28971     else
28972             for found_dir in $rpathdirs; do
28973         acl_save_libdir="$libdir"
28974         libdir="$found_dir"
28975         eval flag=\"$hardcode_libdir_flag_spec\"
28976         libdir="$acl_save_libdir"
28977         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
28978       done
28979     fi
28980   fi
28981   if test "X$ltrpathdirs" != "X"; then
28982             for found_dir in $ltrpathdirs; do
28983       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
28984     done
28985   fi
28986
28987
28988
28989     echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
28990 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
28991 if test "${ac_cv_win_or_dos+set}" = set; then
28992   echo $ECHO_N "(cached) $ECHO_C" >&6
28993 else
28994
28995         cat >conftest.$ac_ext <<_ACEOF
28996 #line $LINENO "configure"
28997 /* confdefs.h.  */
28998 _ACEOF
28999 cat confdefs.h >>conftest.$ac_ext
29000 cat >>conftest.$ac_ext <<_ACEOF
29001 /* end confdefs.h.  */
29002
29003 int
29004 main ()
29005 {
29006 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__
29007 neither MSDOS nor Windows
29008 #endif
29009   ;
29010   return 0;
29011 }
29012 _ACEOF
29013 rm -f conftest.$ac_objext
29014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29015   (eval $ac_compile) 2>&5
29016   ac_status=$?
29017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018   (exit $ac_status); } &&
29019          { ac_try='test -s conftest.$ac_objext'
29020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29021   (eval $ac_try) 2>&5
29022   ac_status=$?
29023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024   (exit $ac_status); }; }; then
29025   ac_cv_win_or_dos=yes
29026 else
29027   echo "$as_me: failed program was:" >&5
29028 sed 's/^/| /' conftest.$ac_ext >&5
29029
29030 ac_cv_win_or_dos=no
29031 fi
29032 rm -f conftest.$ac_objext conftest.$ac_ext
29033
29034 fi
29035 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
29036 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
29037
29038     if test x"$ac_cv_win_or_dos" = xyes; then
29039       ac_fs_accepts_drive_letter_prefix=1
29040       ac_fs_backslash_is_file_name_separator=1
29041     else
29042       ac_fs_accepts_drive_letter_prefix=0
29043       ac_fs_backslash_is_file_name_separator=0
29044     fi
29045
29046
29047
29048
29049
29050 cat >>confdefs.h <<_ACEOF
29051 #define FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
29052 _ACEOF
29053
29054
29055
29056
29057
29058
29059 cat >>confdefs.h <<_ACEOF
29060 #define FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
29061 _ACEOF
29062
29063
29064
29065
29066
29067
29068
29069 for ac_header in string.h sys/param.h stddef.h
29070 do
29071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29073   echo "$as_me:$LINENO: checking for $ac_header" >&5
29074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29076   echo $ECHO_N "(cached) $ECHO_C" >&6
29077 fi
29078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29080 else
29081   # Is the header compilable?
29082 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29084 cat >conftest.$ac_ext <<_ACEOF
29085 #line $LINENO "configure"
29086 /* confdefs.h.  */
29087 _ACEOF
29088 cat confdefs.h >>conftest.$ac_ext
29089 cat >>conftest.$ac_ext <<_ACEOF
29090 /* end confdefs.h.  */
29091 $ac_includes_default
29092 #include <$ac_header>
29093 _ACEOF
29094 rm -f conftest.$ac_objext
29095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29096   (eval $ac_compile) 2>&5
29097   ac_status=$?
29098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099   (exit $ac_status); } &&
29100          { ac_try='test -s conftest.$ac_objext'
29101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29102   (eval $ac_try) 2>&5
29103   ac_status=$?
29104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105   (exit $ac_status); }; }; then
29106   ac_header_compiler=yes
29107 else
29108   echo "$as_me: failed program was:" >&5
29109 sed 's/^/| /' conftest.$ac_ext >&5
29110
29111 ac_header_compiler=no
29112 fi
29113 rm -f conftest.$ac_objext conftest.$ac_ext
29114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29115 echo "${ECHO_T}$ac_header_compiler" >&6
29116
29117 # Is the header present?
29118 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29120 cat >conftest.$ac_ext <<_ACEOF
29121 #line $LINENO "configure"
29122 /* confdefs.h.  */
29123 _ACEOF
29124 cat confdefs.h >>conftest.$ac_ext
29125 cat >>conftest.$ac_ext <<_ACEOF
29126 /* end confdefs.h.  */
29127 #include <$ac_header>
29128 _ACEOF
29129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29130   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29131   ac_status=$?
29132   grep -v '^ *+' conftest.er1 >conftest.err
29133   rm -f conftest.er1
29134   cat conftest.err >&5
29135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136   (exit $ac_status); } >/dev/null; then
29137   if test -s conftest.err; then
29138     ac_cpp_err=$ac_c_preproc_warn_flag
29139   else
29140     ac_cpp_err=
29141   fi
29142 else
29143   ac_cpp_err=yes
29144 fi
29145 if test -z "$ac_cpp_err"; then
29146   ac_header_preproc=yes
29147 else
29148   echo "$as_me: failed program was:" >&5
29149 sed 's/^/| /' conftest.$ac_ext >&5
29150
29151   ac_header_preproc=no
29152 fi
29153 rm -f conftest.err conftest.$ac_ext
29154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29155 echo "${ECHO_T}$ac_header_preproc" >&6
29156
29157 # So?  What about this header?
29158 case $ac_header_compiler:$ac_header_preproc in
29159   yes:no )
29160     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29161 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29162     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29164     (
29165       cat <<\_ASBOX
29166 ## ------------------------------------ ##
29167 ## Report this to bug-autoconf@gnu.org. ##
29168 ## ------------------------------------ ##
29169 _ASBOX
29170     ) |
29171       sed "s/^/$as_me: WARNING:     /" >&2
29172     ;;
29173   no:yes )
29174     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29176     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29178     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29180     (
29181       cat <<\_ASBOX
29182 ## ------------------------------------ ##
29183 ## Report this to bug-autoconf@gnu.org. ##
29184 ## ------------------------------------ ##
29185 _ASBOX
29186     ) |
29187       sed "s/^/$as_me: WARNING:     /" >&2
29188     ;;
29189 esac
29190 echo "$as_me:$LINENO: checking for $ac_header" >&5
29191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29193   echo $ECHO_N "(cached) $ECHO_C" >&6
29194 else
29195   eval "$as_ac_Header=$ac_header_preproc"
29196 fi
29197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29199
29200 fi
29201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29202   cat >>confdefs.h <<_ACEOF
29203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29204 _ACEOF
29205
29206 fi
29207
29208 done
29209
29210
29211 for ac_func in resolvepath
29212 do
29213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29214 echo "$as_me:$LINENO: checking for $ac_func" >&5
29215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29216 if eval "test \"\${$as_ac_var+set}\" = set"; then
29217   echo $ECHO_N "(cached) $ECHO_C" >&6
29218 else
29219   cat >conftest.$ac_ext <<_ACEOF
29220 #line $LINENO "configure"
29221 /* confdefs.h.  */
29222 _ACEOF
29223 cat confdefs.h >>conftest.$ac_ext
29224 cat >>conftest.$ac_ext <<_ACEOF
29225 /* end confdefs.h.  */
29226 /* System header to define __stub macros and hopefully few prototypes,
29227     which can conflict with char $ac_func (); below.
29228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29229     <limits.h> exists even on freestanding compilers.  */
29230 #ifdef __STDC__
29231 # include <limits.h>
29232 #else
29233 # include <assert.h>
29234 #endif
29235 /* Override any gcc2 internal prototype to avoid an error.  */
29236 #ifdef __cplusplus
29237 extern "C"
29238 {
29239 #endif
29240 /* We use char because int might match the return type of a gcc2
29241    builtin and then its argument prototype would still apply.  */
29242 char $ac_func ();
29243 /* The GNU C library defines this for functions which it implements
29244     to always fail with ENOSYS.  Some functions are actually named
29245     something starting with __ and the normal name is an alias.  */
29246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29247 choke me
29248 #else
29249 char (*f) () = $ac_func;
29250 #endif
29251 #ifdef __cplusplus
29252 }
29253 #endif
29254
29255 int
29256 main ()
29257 {
29258 return f != $ac_func;
29259   ;
29260   return 0;
29261 }
29262 _ACEOF
29263 rm -f conftest.$ac_objext conftest$ac_exeext
29264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29265   (eval $ac_link) 2>&5
29266   ac_status=$?
29267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29268   (exit $ac_status); } &&
29269          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
29275   eval "$as_ac_var=yes"
29276 else
29277   echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29279
29280 eval "$as_ac_var=no"
29281 fi
29282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29283 fi
29284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29286 if test `eval echo '${'$as_ac_var'}'` = yes; then
29287   cat >>confdefs.h <<_ACEOF
29288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29289 _ACEOF
29290
29291 fi
29292 done
29293
29294
29295
29296     # This would simply be AC_REPLACE_FUNC([canonicalize_file_name])
29297     # if the function name weren't so long.  Besides, I would rather
29298     # not have underscores in file names.
29299     echo "$as_me:$LINENO: checking for canonicalize_file_name" >&5
29300 echo $ECHO_N "checking for canonicalize_file_name... $ECHO_C" >&6
29301 if test "${ac_cv_func_canonicalize_file_name+set}" = set; then
29302   echo $ECHO_N "(cached) $ECHO_C" >&6
29303 else
29304   cat >conftest.$ac_ext <<_ACEOF
29305 #line $LINENO "configure"
29306 /* confdefs.h.  */
29307 _ACEOF
29308 cat confdefs.h >>conftest.$ac_ext
29309 cat >>conftest.$ac_ext <<_ACEOF
29310 /* end confdefs.h.  */
29311 /* System header to define __stub macros and hopefully few prototypes,
29312     which can conflict with char canonicalize_file_name (); below.
29313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29314     <limits.h> exists even on freestanding compilers.  */
29315 #ifdef __STDC__
29316 # include <limits.h>
29317 #else
29318 # include <assert.h>
29319 #endif
29320 /* Override any gcc2 internal prototype to avoid an error.  */
29321 #ifdef __cplusplus
29322 extern "C"
29323 {
29324 #endif
29325 /* We use char because int might match the return type of a gcc2
29326    builtin and then its argument prototype would still apply.  */
29327 char canonicalize_file_name ();
29328 /* The GNU C library defines this for functions which it implements
29329     to always fail with ENOSYS.  Some functions are actually named
29330     something starting with __ and the normal name is an alias.  */
29331 #if defined (__stub_canonicalize_file_name) || defined (__stub___canonicalize_file_name)
29332 choke me
29333 #else
29334 char (*f) () = canonicalize_file_name;
29335 #endif
29336 #ifdef __cplusplus
29337 }
29338 #endif
29339
29340 int
29341 main ()
29342 {
29343 return f != canonicalize_file_name;
29344   ;
29345   return 0;
29346 }
29347 _ACEOF
29348 rm -f conftest.$ac_objext conftest$ac_exeext
29349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29350   (eval $ac_link) 2>&5
29351   ac_status=$?
29352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29353   (exit $ac_status); } &&
29354          { ac_try='test -s conftest$ac_exeext'
29355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29356   (eval $ac_try) 2>&5
29357   ac_status=$?
29358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29359   (exit $ac_status); }; }; then
29360   ac_cv_func_canonicalize_file_name=yes
29361 else
29362   echo "$as_me: failed program was:" >&5
29363 sed 's/^/| /' conftest.$ac_ext >&5
29364
29365 ac_cv_func_canonicalize_file_name=no
29366 fi
29367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29368 fi
29369 echo "$as_me:$LINENO: result: $ac_cv_func_canonicalize_file_name" >&5
29370 echo "${ECHO_T}$ac_cv_func_canonicalize_file_name" >&6
29371 if test $ac_cv_func_canonicalize_file_name = yes; then
29372   :
29373 else
29374   LIBOBJS="$LIBOBJS canonicalize.$ac_objext"
29375 fi
29376
29377
29378
29379
29380
29381   GNU_PACKAGE="GNU $PACKAGE"
29382
29383 cat >>confdefs.h <<_ACEOF
29384 #define GNU_PACKAGE "$GNU_PACKAGE"
29385 _ACEOF
29386
29387
29388
29389
29390 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
29391
29392
29393
29394
29395
29396
29397
29398
29399
29400
29401
29402
29403
29404
29405
29406
29407
29408
29409
29410
29411
29412   echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
29413 echo $ECHO_N "checking for struct stat.st_author... $ECHO_C" >&6
29414 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
29415   echo $ECHO_N "(cached) $ECHO_C" >&6
29416 else
29417   cat >conftest.$ac_ext <<_ACEOF
29418 #line $LINENO "configure"
29419 /* confdefs.h.  */
29420 _ACEOF
29421 cat confdefs.h >>conftest.$ac_ext
29422 cat >>conftest.$ac_ext <<_ACEOF
29423 /* end confdefs.h.  */
29424 $ac_includes_default
29425 #include <sys/stat.h>
29426
29427
29428 int
29429 main ()
29430 {
29431 static struct stat ac_aggr;
29432 if (ac_aggr.st_author)
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>&5
29441   ac_status=$?
29442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29443   (exit $ac_status); } &&
29444          { ac_try='test -s conftest.$ac_objext'
29445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29446   (eval $ac_try) 2>&5
29447   ac_status=$?
29448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449   (exit $ac_status); }; }; then
29450   ac_cv_member_struct_stat_st_author=yes
29451 else
29452   echo "$as_me: failed program was:" >&5
29453 sed 's/^/| /' conftest.$ac_ext >&5
29454
29455 cat >conftest.$ac_ext <<_ACEOF
29456 #line $LINENO "configure"
29457 /* confdefs.h.  */
29458 _ACEOF
29459 cat confdefs.h >>conftest.$ac_ext
29460 cat >>conftest.$ac_ext <<_ACEOF
29461 /* end confdefs.h.  */
29462 $ac_includes_default
29463 #include <sys/stat.h>
29464
29465
29466 int
29467 main ()
29468 {
29469 static struct stat ac_aggr;
29470 if (sizeof ac_aggr.st_author)
29471 return 0;
29472   ;
29473   return 0;
29474 }
29475 _ACEOF
29476 rm -f conftest.$ac_objext
29477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29478   (eval $ac_compile) 2>&5
29479   ac_status=$?
29480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481   (exit $ac_status); } &&
29482          { ac_try='test -s conftest.$ac_objext'
29483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29484   (eval $ac_try) 2>&5
29485   ac_status=$?
29486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487   (exit $ac_status); }; }; then
29488   ac_cv_member_struct_stat_st_author=yes
29489 else
29490   echo "$as_me: failed program was:" >&5
29491 sed 's/^/| /' conftest.$ac_ext >&5
29492
29493 ac_cv_member_struct_stat_st_author=no
29494 fi
29495 rm -f conftest.$ac_objext conftest.$ac_ext
29496 fi
29497 rm -f conftest.$ac_objext conftest.$ac_ext
29498 fi
29499 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
29500 echo "${ECHO_T}$ac_cv_member_struct_stat_st_author" >&6
29501 if test $ac_cv_member_struct_stat_st_author = yes; then
29502
29503 cat >>confdefs.h <<_ACEOF
29504 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
29505 _ACEOF
29506
29507
29508 fi
29509 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
29510 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
29511 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
29512   echo $ECHO_N "(cached) $ECHO_C" >&6
29513 else
29514   cat >conftest.$ac_ext <<_ACEOF
29515 #line $LINENO "configure"
29516 /* confdefs.h.  */
29517 _ACEOF
29518 cat confdefs.h >>conftest.$ac_ext
29519 cat >>conftest.$ac_ext <<_ACEOF
29520 /* end confdefs.h.  */
29521 $ac_includes_default
29522 #include <sys/stat.h>
29523
29524
29525 int
29526 main ()
29527 {
29528 static struct stat ac_aggr;
29529 if (ac_aggr.st_blksize)
29530 return 0;
29531   ;
29532   return 0;
29533 }
29534 _ACEOF
29535 rm -f conftest.$ac_objext
29536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29537   (eval $ac_compile) 2>&5
29538   ac_status=$?
29539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29540   (exit $ac_status); } &&
29541          { ac_try='test -s conftest.$ac_objext'
29542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29543   (eval $ac_try) 2>&5
29544   ac_status=$?
29545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29546   (exit $ac_status); }; }; then
29547   ac_cv_member_struct_stat_st_blksize=yes
29548 else
29549   echo "$as_me: failed program was:" >&5
29550 sed 's/^/| /' conftest.$ac_ext >&5
29551
29552 cat >conftest.$ac_ext <<_ACEOF
29553 #line $LINENO "configure"
29554 /* confdefs.h.  */
29555 _ACEOF
29556 cat confdefs.h >>conftest.$ac_ext
29557 cat >>conftest.$ac_ext <<_ACEOF
29558 /* end confdefs.h.  */
29559 $ac_includes_default
29560 #include <sys/stat.h>
29561
29562
29563 int
29564 main ()
29565 {
29566 static struct stat ac_aggr;
29567 if (sizeof ac_aggr.st_blksize)
29568 return 0;
29569   ;
29570   return 0;
29571 }
29572 _ACEOF
29573 rm -f conftest.$ac_objext
29574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29575   (eval $ac_compile) 2>&5
29576   ac_status=$?
29577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29578   (exit $ac_status); } &&
29579          { ac_try='test -s conftest.$ac_objext'
29580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29581   (eval $ac_try) 2>&5
29582   ac_status=$?
29583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584   (exit $ac_status); }; }; then
29585   ac_cv_member_struct_stat_st_blksize=yes
29586 else
29587   echo "$as_me: failed program was:" >&5
29588 sed 's/^/| /' conftest.$ac_ext >&5
29589
29590 ac_cv_member_struct_stat_st_blksize=no
29591 fi
29592 rm -f conftest.$ac_objext conftest.$ac_ext
29593 fi
29594 rm -f conftest.$ac_objext conftest.$ac_ext
29595 fi
29596 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
29597 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
29598 if test $ac_cv_member_struct_stat_st_blksize = yes; then
29599
29600 cat >>confdefs.h <<_ACEOF
29601 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
29602 _ACEOF
29603
29604
29605 fi
29606
29607
29608
29609
29610
29611
29612
29613
29614
29615
29616
29617
29618
29619
29620
29621
29622
29623   echo "$as_me:$LINENO: checking for ino_t" >&5
29624 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
29625 if test "${ac_cv_type_ino_t+set}" = set; then
29626   echo $ECHO_N "(cached) $ECHO_C" >&6
29627 else
29628   cat >conftest.$ac_ext <<_ACEOF
29629 #line $LINENO "configure"
29630 /* confdefs.h.  */
29631 _ACEOF
29632 cat confdefs.h >>conftest.$ac_ext
29633 cat >>conftest.$ac_ext <<_ACEOF
29634 /* end confdefs.h.  */
29635 $ac_includes_default
29636 int
29637 main ()
29638 {
29639 if ((ino_t *) 0)
29640   return 0;
29641 if (sizeof (ino_t))
29642   return 0;
29643   ;
29644   return 0;
29645 }
29646 _ACEOF
29647 rm -f conftest.$ac_objext
29648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29649   (eval $ac_compile) 2>&5
29650   ac_status=$?
29651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29652   (exit $ac_status); } &&
29653          { ac_try='test -s conftest.$ac_objext'
29654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29655   (eval $ac_try) 2>&5
29656   ac_status=$?
29657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29658   (exit $ac_status); }; }; then
29659   ac_cv_type_ino_t=yes
29660 else
29661   echo "$as_me: failed program was:" >&5
29662 sed 's/^/| /' conftest.$ac_ext >&5
29663
29664 ac_cv_type_ino_t=no
29665 fi
29666 rm -f conftest.$ac_objext conftest.$ac_ext
29667 fi
29668 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
29669 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
29670 if test $ac_cv_type_ino_t = yes; then
29671   :
29672 else
29673
29674 cat >>confdefs.h <<_ACEOF
29675 #define ino_t unsigned long
29676 _ACEOF
29677
29678 fi
29679
29680
29681       echo "$as_me:$LINENO: checking for ssize_t" >&5
29682 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
29683 if test "${ac_cv_type_ssize_t+set}" = set; then
29684   echo $ECHO_N "(cached) $ECHO_C" >&6
29685 else
29686   cat >conftest.$ac_ext <<_ACEOF
29687 #line $LINENO "configure"
29688 /* confdefs.h.  */
29689 _ACEOF
29690 cat confdefs.h >>conftest.$ac_ext
29691 cat >>conftest.$ac_ext <<_ACEOF
29692 /* end confdefs.h.  */
29693 $ac_includes_default
29694 int
29695 main ()
29696 {
29697 if ((ssize_t *) 0)
29698   return 0;
29699 if (sizeof (ssize_t))
29700   return 0;
29701   ;
29702   return 0;
29703 }
29704 _ACEOF
29705 rm -f conftest.$ac_objext
29706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29707   (eval $ac_compile) 2>&5
29708   ac_status=$?
29709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710   (exit $ac_status); } &&
29711          { ac_try='test -s conftest.$ac_objext'
29712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29713   (eval $ac_try) 2>&5
29714   ac_status=$?
29715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716   (exit $ac_status); }; }; then
29717   ac_cv_type_ssize_t=yes
29718 else
29719   echo "$as_me: failed program was:" >&5
29720 sed 's/^/| /' conftest.$ac_ext >&5
29721
29722 ac_cv_type_ssize_t=no
29723 fi
29724 rm -f conftest.$ac_objext conftest.$ac_ext
29725 fi
29726 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
29727 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
29728 if test $ac_cv_type_ssize_t = yes; then
29729   :
29730 else
29731
29732 cat >>confdefs.h <<_ACEOF
29733 #define ssize_t int
29734 _ACEOF
29735
29736 fi
29737
29738   echo "$as_me:$LINENO: checking for major_t" >&5
29739 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
29740 if test "${ac_cv_type_major_t+set}" = set; then
29741   echo $ECHO_N "(cached) $ECHO_C" >&6
29742 else
29743   cat >conftest.$ac_ext <<_ACEOF
29744 #line $LINENO "configure"
29745 /* confdefs.h.  */
29746 _ACEOF
29747 cat confdefs.h >>conftest.$ac_ext
29748 cat >>conftest.$ac_ext <<_ACEOF
29749 /* end confdefs.h.  */
29750 $ac_includes_default
29751 int
29752 main ()
29753 {
29754 if ((major_t *) 0)
29755   return 0;
29756 if (sizeof (major_t))
29757   return 0;
29758   ;
29759   return 0;
29760 }
29761 _ACEOF
29762 rm -f conftest.$ac_objext
29763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29764   (eval $ac_compile) 2>&5
29765   ac_status=$?
29766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767   (exit $ac_status); } &&
29768          { ac_try='test -s conftest.$ac_objext'
29769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29770   (eval $ac_try) 2>&5
29771   ac_status=$?
29772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773   (exit $ac_status); }; }; then
29774   ac_cv_type_major_t=yes
29775 else
29776   echo "$as_me: failed program was:" >&5
29777 sed 's/^/| /' conftest.$ac_ext >&5
29778
29779 ac_cv_type_major_t=no
29780 fi
29781 rm -f conftest.$ac_objext conftest.$ac_ext
29782 fi
29783 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
29784 echo "${ECHO_T}$ac_cv_type_major_t" >&6
29785 if test $ac_cv_type_major_t = yes; then
29786   :
29787 else
29788
29789 cat >>confdefs.h <<_ACEOF
29790 #define major_t unsigned int
29791 _ACEOF
29792
29793 fi
29794
29795   echo "$as_me:$LINENO: checking for minor_t" >&5
29796 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
29797 if test "${ac_cv_type_minor_t+set}" = set; then
29798   echo $ECHO_N "(cached) $ECHO_C" >&6
29799 else
29800   cat >conftest.$ac_ext <<_ACEOF
29801 #line $LINENO "configure"
29802 /* confdefs.h.  */
29803 _ACEOF
29804 cat confdefs.h >>conftest.$ac_ext
29805 cat >>conftest.$ac_ext <<_ACEOF
29806 /* end confdefs.h.  */
29807 $ac_includes_default
29808 int
29809 main ()
29810 {
29811 if ((minor_t *) 0)
29812   return 0;
29813 if (sizeof (minor_t))
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>&5
29822   ac_status=$?
29823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824   (exit $ac_status); } &&
29825          { ac_try='test -s conftest.$ac_objext'
29826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29827   (eval $ac_try) 2>&5
29828   ac_status=$?
29829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830   (exit $ac_status); }; }; then
29831   ac_cv_type_minor_t=yes
29832 else
29833   echo "$as_me: failed program was:" >&5
29834 sed 's/^/| /' conftest.$ac_ext >&5
29835
29836 ac_cv_type_minor_t=no
29837 fi
29838 rm -f conftest.$ac_objext conftest.$ac_ext
29839 fi
29840 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
29841 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
29842 if test $ac_cv_type_minor_t = yes; then
29843   :
29844 else
29845
29846 cat >>confdefs.h <<_ACEOF
29847 #define minor_t unsigned int
29848 _ACEOF
29849
29850 fi
29851
29852
29853
29854
29855
29856
29857
29858
29859
29860
29861
29862     # Assume we'll default to using the included regex.c.
29863     ac_use_included_regex=yes
29864
29865     # However, if the system regex support is good enough that it passes the
29866     # the following run test, then default to *not* using the included regex.c.
29867     # If cross compiling, assume the test would fail and use the included
29868     # regex.c.  The first failing regular expression is from `Spencer ere
29869     # test #75' in grep-2.3.
29870     echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
29871 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
29872 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
29873   echo $ECHO_N "(cached) $ECHO_C" >&6
29874 else
29875   if test "$cross_compiling" = yes; then
29876                jm_cv_func_working_re_compile_pattern=no
29877 else
29878   cat >conftest.$ac_ext <<_ACEOF
29879 #line $LINENO "configure"
29880 /* confdefs.h.  */
29881 _ACEOF
29882 cat confdefs.h >>conftest.$ac_ext
29883 cat >>conftest.$ac_ext <<_ACEOF
29884 /* end confdefs.h.  */
29885 #include <stdio.h>
29886 #include <string.h>
29887 #include <regex.h>
29888           int
29889           main ()
29890           {
29891             static struct re_pattern_buffer regex;
29892             const char *s;
29893             struct re_registers regs;
29894             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
29895             memset (&regex, 0, sizeof (regex));
29896             s = re_compile_pattern ("a[[:]:]]b\n", 9, &regex);
29897             /* This should fail with _Invalid character class name_ error.  */
29898             if (!s)
29899               exit (1);
29900
29901             /* This should succeed, but doesn't for e.g. glibc-2.1.3.  */
29902             memset (&regex, 0, sizeof (regex));
29903             s = re_compile_pattern ("{1", 2, &regex);
29904
29905             if (s)
29906               exit (1);
29907
29908             /* The following example is derived from a problem report
29909                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
29910             memset (&regex, 0, sizeof (regex));
29911             s = re_compile_pattern ("[anù]*n", 7, &regex);
29912             if (s)
29913               exit (1);
29914
29915             /* This should match, but doesn't for e.g. glibc-2.2.1.  */
29916             if (re_match (&regex, "an", 2, 0, &regs) != 2)
29917               exit (1);
29918
29919             memset (&regex, 0, sizeof (regex));
29920             s = re_compile_pattern ("x", 1, &regex);
29921             if (s)
29922               exit (1);
29923
29924             /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
29925                work with a negative RANGE argument.  */
29926             if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
29927               exit (1);
29928
29929             exit (0);
29930           }
29931
29932 _ACEOF
29933 rm -f conftest$ac_exeext
29934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29935   (eval $ac_link) 2>&5
29936   ac_status=$?
29937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29940   (eval $ac_try) 2>&5
29941   ac_status=$?
29942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943   (exit $ac_status); }; }; then
29944   jm_cv_func_working_re_compile_pattern=yes
29945 else
29946   echo "$as_me: program exited with status $ac_status" >&5
29947 echo "$as_me: failed program was:" >&5
29948 sed 's/^/| /' conftest.$ac_ext >&5
29949
29950 ( exit $ac_status )
29951 jm_cv_func_working_re_compile_pattern=no
29952 fi
29953 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29954 fi
29955 fi
29956 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
29957 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
29958     if test $jm_cv_func_working_re_compile_pattern = yes; then
29959       ac_use_included_regex=no
29960     fi
29961
29962     test -n "lib/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
29963 echo "$as_me: error: missing argument" >&2;}
29964    { (exit 1); exit 1; }; }
29965
29966
29967
29968 # Check whether --with-included-regex or --without-included-regex was given.
29969 if test "${with_included_regex+set}" = set; then
29970   withval="$with_included_regex"
29971   jm_with_regex=$withval
29972 else
29973   jm_with_regex=$ac_use_included_regex
29974 fi;
29975         if test "$jm_with_regex" = yes; then
29976           LIBOBJS="$LIBOBJS regex.$ac_objext"
29977
29978
29979
29980
29981
29982
29983
29984   :
29985
29986
29987
29988
29989
29990
29991
29992
29993
29994
29995
29996
29997
29998
29999
30000   :
30001
30002
30003
30004
30005
30006
30007
30008
30009
30010 for ac_func in btowc
30011 do
30012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30013 echo "$as_me:$LINENO: checking for $ac_func" >&5
30014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30015 if eval "test \"\${$as_ac_var+set}\" = set"; then
30016   echo $ECHO_N "(cached) $ECHO_C" >&6
30017 else
30018   cat >conftest.$ac_ext <<_ACEOF
30019 #line $LINENO "configure"
30020 /* confdefs.h.  */
30021 _ACEOF
30022 cat confdefs.h >>conftest.$ac_ext
30023 cat >>conftest.$ac_ext <<_ACEOF
30024 /* end confdefs.h.  */
30025 /* System header to define __stub macros and hopefully few prototypes,
30026     which can conflict with char $ac_func (); below.
30027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30028     <limits.h> exists even on freestanding compilers.  */
30029 #ifdef __STDC__
30030 # include <limits.h>
30031 #else
30032 # include <assert.h>
30033 #endif
30034 /* Override any gcc2 internal prototype to avoid an error.  */
30035 #ifdef __cplusplus
30036 extern "C"
30037 {
30038 #endif
30039 /* We use char because int might match the return type of a gcc2
30040    builtin and then its argument prototype would still apply.  */
30041 char $ac_func ();
30042 /* The GNU C library defines this for functions which it implements
30043     to always fail with ENOSYS.  Some functions are actually named
30044     something starting with __ and the normal name is an alias.  */
30045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30046 choke me
30047 #else
30048 char (*f) () = $ac_func;
30049 #endif
30050 #ifdef __cplusplus
30051 }
30052 #endif
30053
30054 int
30055 main ()
30056 {
30057 return f != $ac_func;
30058   ;
30059   return 0;
30060 }
30061 _ACEOF
30062 rm -f conftest.$ac_objext conftest$ac_exeext
30063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30064   (eval $ac_link) 2>&5
30065   ac_status=$?
30066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30067   (exit $ac_status); } &&
30068          { ac_try='test -s conftest$ac_exeext'
30069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30070   (eval $ac_try) 2>&5
30071   ac_status=$?
30072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30073   (exit $ac_status); }; }; then
30074   eval "$as_ac_var=yes"
30075 else
30076   echo "$as_me: failed program was:" >&5
30077 sed 's/^/| /' conftest.$ac_ext >&5
30078
30079 eval "$as_ac_var=no"
30080 fi
30081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30082 fi
30083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30085 if test `eval echo '${'$as_ac_var'}'` = yes; then
30086   cat >>confdefs.h <<_ACEOF
30087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30088 _ACEOF
30089
30090 fi
30091 done
30092
30093
30094         fi
30095
30096
30097
30098
30099
30100
30101
30102
30103
30104
30105
30106
30107
30108
30109
30110
30111
30112
30113
30114
30115
30116
30117
30118
30119
30120
30121
30122
30123
30124
30125
30126
30127
30128
30129
30130
30131
30132
30133
30134
30135
30136
30137
30138   # This is for od and stat, and any other program that
30139   # uses the PRI.MAX macros from inttypes.h.
30140
30141
30142
30143
30144
30145
30146
30147
30148
30149   ac_have_func=no # yes means we've found a way to get the load average.
30150
30151 # Make sure getloadavg.c is where it belongs, at configure-time.
30152 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
30153   { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
30154 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
30155    { (exit 1); exit 1; }; }
30156
30157 ac_save_LIBS=$LIBS
30158
30159 # Check for getloadavg, but be sure not to touch the cache variable.
30160 (echo "$as_me:$LINENO: checking for getloadavg" >&5
30161 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
30162 if test "${ac_cv_func_getloadavg+set}" = set; then
30163   echo $ECHO_N "(cached) $ECHO_C" >&6
30164 else
30165   cat >conftest.$ac_ext <<_ACEOF
30166 #line $LINENO "configure"
30167 /* confdefs.h.  */
30168 _ACEOF
30169 cat confdefs.h >>conftest.$ac_ext
30170 cat >>conftest.$ac_ext <<_ACEOF
30171 /* end confdefs.h.  */
30172 /* System header to define __stub macros and hopefully few prototypes,
30173     which can conflict with char getloadavg (); below.
30174     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30175     <limits.h> exists even on freestanding compilers.  */
30176 #ifdef __STDC__
30177 # include <limits.h>
30178 #else
30179 # include <assert.h>
30180 #endif
30181 /* Override any gcc2 internal prototype to avoid an error.  */
30182 #ifdef __cplusplus
30183 extern "C"
30184 {
30185 #endif
30186 /* We use char because int might match the return type of a gcc2
30187    builtin and then its argument prototype would still apply.  */
30188 char getloadavg ();
30189 /* The GNU C library defines this for functions which it implements
30190     to always fail with ENOSYS.  Some functions are actually named
30191     something starting with __ and the normal name is an alias.  */
30192 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
30193 choke me
30194 #else
30195 char (*f) () = getloadavg;
30196 #endif
30197 #ifdef __cplusplus
30198 }
30199 #endif
30200
30201 int
30202 main ()
30203 {
30204 return f != getloadavg;
30205   ;
30206   return 0;
30207 }
30208 _ACEOF
30209 rm -f conftest.$ac_objext conftest$ac_exeext
30210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30211   (eval $ac_link) 2>&5
30212   ac_status=$?
30213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30214   (exit $ac_status); } &&
30215          { ac_try='test -s conftest$ac_exeext'
30216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30217   (eval $ac_try) 2>&5
30218   ac_status=$?
30219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30220   (exit $ac_status); }; }; then
30221   ac_cv_func_getloadavg=yes
30222 else
30223   echo "$as_me: failed program was:" >&5
30224 sed 's/^/| /' conftest.$ac_ext >&5
30225
30226 ac_cv_func_getloadavg=no
30227 fi
30228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30229 fi
30230 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
30231 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
30232 if test $ac_cv_func_getloadavg = yes; then
30233   exit 0
30234 else
30235   exit 1
30236 fi
30237 ) && ac_have_func=yes
30238
30239 # On HPUX9, an unprivileged user can get load averages through this function.
30240
30241 for ac_func in pstat_getdynamic
30242 do
30243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30244 echo "$as_me:$LINENO: checking for $ac_func" >&5
30245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30246 if eval "test \"\${$as_ac_var+set}\" = set"; then
30247   echo $ECHO_N "(cached) $ECHO_C" >&6
30248 else
30249   cat >conftest.$ac_ext <<_ACEOF
30250 #line $LINENO "configure"
30251 /* confdefs.h.  */
30252 _ACEOF
30253 cat confdefs.h >>conftest.$ac_ext
30254 cat >>conftest.$ac_ext <<_ACEOF
30255 /* end confdefs.h.  */
30256 /* System header to define __stub macros and hopefully few prototypes,
30257     which can conflict with char $ac_func (); below.
30258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30259     <limits.h> exists even on freestanding compilers.  */
30260 #ifdef __STDC__
30261 # include <limits.h>
30262 #else
30263 # include <assert.h>
30264 #endif
30265 /* Override any gcc2 internal prototype to avoid an error.  */
30266 #ifdef __cplusplus
30267 extern "C"
30268 {
30269 #endif
30270 /* We use char because int might match the return type of a gcc2
30271    builtin and then its argument prototype would still apply.  */
30272 char $ac_func ();
30273 /* The GNU C library defines this for functions which it implements
30274     to always fail with ENOSYS.  Some functions are actually named
30275     something starting with __ and the normal name is an alias.  */
30276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30277 choke me
30278 #else
30279 char (*f) () = $ac_func;
30280 #endif
30281 #ifdef __cplusplus
30282 }
30283 #endif
30284
30285 int
30286 main ()
30287 {
30288 return f != $ac_func;
30289   ;
30290   return 0;
30291 }
30292 _ACEOF
30293 rm -f conftest.$ac_objext conftest$ac_exeext
30294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30295   (eval $ac_link) 2>&5
30296   ac_status=$?
30297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30298   (exit $ac_status); } &&
30299          { ac_try='test -s conftest$ac_exeext'
30300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30301   (eval $ac_try) 2>&5
30302   ac_status=$?
30303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304   (exit $ac_status); }; }; then
30305   eval "$as_ac_var=yes"
30306 else
30307   echo "$as_me: failed program was:" >&5
30308 sed 's/^/| /' conftest.$ac_ext >&5
30309
30310 eval "$as_ac_var=no"
30311 fi
30312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30313 fi
30314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30316 if test `eval echo '${'$as_ac_var'}'` = yes; then
30317   cat >>confdefs.h <<_ACEOF
30318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30319 _ACEOF
30320
30321 fi
30322 done
30323
30324
30325 # Solaris has libkstat which does not require root.
30326
30327 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
30328 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
30329 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
30330   echo $ECHO_N "(cached) $ECHO_C" >&6
30331 else
30332   ac_check_lib_save_LIBS=$LIBS
30333 LIBS="-lkstat  $LIBS"
30334 cat >conftest.$ac_ext <<_ACEOF
30335 #line $LINENO "configure"
30336 /* confdefs.h.  */
30337 _ACEOF
30338 cat confdefs.h >>conftest.$ac_ext
30339 cat >>conftest.$ac_ext <<_ACEOF
30340 /* end confdefs.h.  */
30341
30342 /* Override any gcc2 internal prototype to avoid an error.  */
30343 #ifdef __cplusplus
30344 extern "C"
30345 #endif
30346 /* We use char because int might match the return type of a gcc2
30347    builtin and then its argument prototype would still apply.  */
30348 char kstat_open ();
30349 int
30350 main ()
30351 {
30352 kstat_open ();
30353   ;
30354   return 0;
30355 }
30356 _ACEOF
30357 rm -f conftest.$ac_objext conftest$ac_exeext
30358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30359   (eval $ac_link) 2>&5
30360   ac_status=$?
30361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30362   (exit $ac_status); } &&
30363          { ac_try='test -s conftest$ac_exeext'
30364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30365   (eval $ac_try) 2>&5
30366   ac_status=$?
30367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30368   (exit $ac_status); }; }; then
30369   ac_cv_lib_kstat_kstat_open=yes
30370 else
30371   echo "$as_me: failed program was:" >&5
30372 sed 's/^/| /' conftest.$ac_ext >&5
30373
30374 ac_cv_lib_kstat_kstat_open=no
30375 fi
30376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30377 LIBS=$ac_check_lib_save_LIBS
30378 fi
30379 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
30380 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
30381 if test $ac_cv_lib_kstat_kstat_open = yes; then
30382   cat >>confdefs.h <<_ACEOF
30383 #define HAVE_LIBKSTAT 1
30384 _ACEOF
30385
30386   LIBS="-lkstat $LIBS"
30387
30388 fi
30389
30390 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
30391
30392 # Some systems with -lutil have (and need) -lkvm as well, some do not.
30393 # On Solaris, -lkvm requires nlist from -lelf, so check that first
30394 # to get the right answer into the cache.
30395 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
30396 if test $ac_have_func = no; then
30397   echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
30398 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
30399 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
30400   echo $ECHO_N "(cached) $ECHO_C" >&6
30401 else
30402   ac_check_lib_save_LIBS=$LIBS
30403 LIBS="-lelf  $LIBS"
30404 cat >conftest.$ac_ext <<_ACEOF
30405 #line $LINENO "configure"
30406 /* confdefs.h.  */
30407 _ACEOF
30408 cat confdefs.h >>conftest.$ac_ext
30409 cat >>conftest.$ac_ext <<_ACEOF
30410 /* end confdefs.h.  */
30411
30412 /* Override any gcc2 internal prototype to avoid an error.  */
30413 #ifdef __cplusplus
30414 extern "C"
30415 #endif
30416 /* We use char because int might match the return type of a gcc2
30417    builtin and then its argument prototype would still apply.  */
30418 char elf_begin ();
30419 int
30420 main ()
30421 {
30422 elf_begin ();
30423   ;
30424   return 0;
30425 }
30426 _ACEOF
30427 rm -f conftest.$ac_objext conftest$ac_exeext
30428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30429   (eval $ac_link) 2>&5
30430   ac_status=$?
30431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432   (exit $ac_status); } &&
30433          { ac_try='test -s conftest$ac_exeext'
30434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30435   (eval $ac_try) 2>&5
30436   ac_status=$?
30437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438   (exit $ac_status); }; }; then
30439   ac_cv_lib_elf_elf_begin=yes
30440 else
30441   echo "$as_me: failed program was:" >&5
30442 sed 's/^/| /' conftest.$ac_ext >&5
30443
30444 ac_cv_lib_elf_elf_begin=no
30445 fi
30446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30447 LIBS=$ac_check_lib_save_LIBS
30448 fi
30449 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
30450 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
30451 if test $ac_cv_lib_elf_elf_begin = yes; then
30452   LIBS="-lelf $LIBS"
30453 fi
30454
30455 fi
30456 if test $ac_have_func = no; then
30457   echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
30458 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
30459 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
30460   echo $ECHO_N "(cached) $ECHO_C" >&6
30461 else
30462   ac_check_lib_save_LIBS=$LIBS
30463 LIBS="-lkvm  $LIBS"
30464 cat >conftest.$ac_ext <<_ACEOF
30465 #line $LINENO "configure"
30466 /* confdefs.h.  */
30467 _ACEOF
30468 cat confdefs.h >>conftest.$ac_ext
30469 cat >>conftest.$ac_ext <<_ACEOF
30470 /* end confdefs.h.  */
30471
30472 /* Override any gcc2 internal prototype to avoid an error.  */
30473 #ifdef __cplusplus
30474 extern "C"
30475 #endif
30476 /* We use char because int might match the return type of a gcc2
30477    builtin and then its argument prototype would still apply.  */
30478 char kvm_open ();
30479 int
30480 main ()
30481 {
30482 kvm_open ();
30483   ;
30484   return 0;
30485 }
30486 _ACEOF
30487 rm -f conftest.$ac_objext conftest$ac_exeext
30488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30489   (eval $ac_link) 2>&5
30490   ac_status=$?
30491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492   (exit $ac_status); } &&
30493          { ac_try='test -s conftest$ac_exeext'
30494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30495   (eval $ac_try) 2>&5
30496   ac_status=$?
30497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30498   (exit $ac_status); }; }; then
30499   ac_cv_lib_kvm_kvm_open=yes
30500 else
30501   echo "$as_me: failed program was:" >&5
30502 sed 's/^/| /' conftest.$ac_ext >&5
30503
30504 ac_cv_lib_kvm_kvm_open=no
30505 fi
30506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30507 LIBS=$ac_check_lib_save_LIBS
30508 fi
30509 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
30510 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
30511 if test $ac_cv_lib_kvm_kvm_open = yes; then
30512   LIBS="-lkvm $LIBS"
30513 fi
30514
30515   # Check for the 4.4BSD definition of getloadavg.
30516   echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
30517 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
30518 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
30519   echo $ECHO_N "(cached) $ECHO_C" >&6
30520 else
30521   ac_check_lib_save_LIBS=$LIBS
30522 LIBS="-lutil  $LIBS"
30523 cat >conftest.$ac_ext <<_ACEOF
30524 #line $LINENO "configure"
30525 /* confdefs.h.  */
30526 _ACEOF
30527 cat confdefs.h >>conftest.$ac_ext
30528 cat >>conftest.$ac_ext <<_ACEOF
30529 /* end confdefs.h.  */
30530
30531 /* Override any gcc2 internal prototype to avoid an error.  */
30532 #ifdef __cplusplus
30533 extern "C"
30534 #endif
30535 /* We use char because int might match the return type of a gcc2
30536    builtin and then its argument prototype would still apply.  */
30537 char getloadavg ();
30538 int
30539 main ()
30540 {
30541 getloadavg ();
30542   ;
30543   return 0;
30544 }
30545 _ACEOF
30546 rm -f conftest.$ac_objext conftest$ac_exeext
30547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30548   (eval $ac_link) 2>&5
30549   ac_status=$?
30550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30551   (exit $ac_status); } &&
30552          { ac_try='test -s conftest$ac_exeext'
30553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30554   (eval $ac_try) 2>&5
30555   ac_status=$?
30556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557   (exit $ac_status); }; }; then
30558   ac_cv_lib_util_getloadavg=yes
30559 else
30560   echo "$as_me: failed program was:" >&5
30561 sed 's/^/| /' conftest.$ac_ext >&5
30562
30563 ac_cv_lib_util_getloadavg=no
30564 fi
30565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30566 LIBS=$ac_check_lib_save_LIBS
30567 fi
30568 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
30569 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
30570 if test $ac_cv_lib_util_getloadavg = yes; then
30571   LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
30572 fi
30573
30574 fi
30575
30576 if test $ac_have_func = no; then
30577   # There is a commonly available library for RS/6000 AIX.
30578   # Since it is not a standard part of AIX, it might be installed locally.
30579   ac_getloadavg_LIBS=$LIBS
30580   LIBS="-L/usr/local/lib $LIBS"
30581   echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
30582 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
30583 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
30584   echo $ECHO_N "(cached) $ECHO_C" >&6
30585 else
30586   ac_check_lib_save_LIBS=$LIBS
30587 LIBS="-lgetloadavg  $LIBS"
30588 cat >conftest.$ac_ext <<_ACEOF
30589 #line $LINENO "configure"
30590 /* confdefs.h.  */
30591 _ACEOF
30592 cat confdefs.h >>conftest.$ac_ext
30593 cat >>conftest.$ac_ext <<_ACEOF
30594 /* end confdefs.h.  */
30595
30596 /* Override any gcc2 internal prototype to avoid an error.  */
30597 #ifdef __cplusplus
30598 extern "C"
30599 #endif
30600 /* We use char because int might match the return type of a gcc2
30601    builtin and then its argument prototype would still apply.  */
30602 char getloadavg ();
30603 int
30604 main ()
30605 {
30606 getloadavg ();
30607   ;
30608   return 0;
30609 }
30610 _ACEOF
30611 rm -f conftest.$ac_objext conftest$ac_exeext
30612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30613   (eval $ac_link) 2>&5
30614   ac_status=$?
30615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30616   (exit $ac_status); } &&
30617          { ac_try='test -s conftest$ac_exeext'
30618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30619   (eval $ac_try) 2>&5
30620   ac_status=$?
30621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622   (exit $ac_status); }; }; then
30623   ac_cv_lib_getloadavg_getloadavg=yes
30624 else
30625   echo "$as_me: failed program was:" >&5
30626 sed 's/^/| /' conftest.$ac_ext >&5
30627
30628 ac_cv_lib_getloadavg_getloadavg=no
30629 fi
30630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30631 LIBS=$ac_check_lib_save_LIBS
30632 fi
30633 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
30634 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
30635 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
30636   LIBS="-lgetloadavg $LIBS"
30637 else
30638   LIBS=$ac_getloadavg_LIBS
30639 fi
30640
30641 fi
30642
30643 # Make sure it is really in the library, if we think we found it,
30644 # otherwise set up the replacement function.
30645
30646 for ac_func in getloadavg
30647 do
30648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30649 echo "$as_me:$LINENO: checking for $ac_func" >&5
30650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30651 if eval "test \"\${$as_ac_var+set}\" = set"; then
30652   echo $ECHO_N "(cached) $ECHO_C" >&6
30653 else
30654   cat >conftest.$ac_ext <<_ACEOF
30655 #line $LINENO "configure"
30656 /* confdefs.h.  */
30657 _ACEOF
30658 cat confdefs.h >>conftest.$ac_ext
30659 cat >>conftest.$ac_ext <<_ACEOF
30660 /* end confdefs.h.  */
30661 /* System header to define __stub macros and hopefully few prototypes,
30662     which can conflict with char $ac_func (); below.
30663     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30664     <limits.h> exists even on freestanding compilers.  */
30665 #ifdef __STDC__
30666 # include <limits.h>
30667 #else
30668 # include <assert.h>
30669 #endif
30670 /* Override any gcc2 internal prototype to avoid an error.  */
30671 #ifdef __cplusplus
30672 extern "C"
30673 {
30674 #endif
30675 /* We use char because int might match the return type of a gcc2
30676    builtin and then its argument prototype would still apply.  */
30677 char $ac_func ();
30678 /* The GNU C library defines this for functions which it implements
30679     to always fail with ENOSYS.  Some functions are actually named
30680     something starting with __ and the normal name is an alias.  */
30681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30682 choke me
30683 #else
30684 char (*f) () = $ac_func;
30685 #endif
30686 #ifdef __cplusplus
30687 }
30688 #endif
30689
30690 int
30691 main ()
30692 {
30693 return f != $ac_func;
30694   ;
30695   return 0;
30696 }
30697 _ACEOF
30698 rm -f conftest.$ac_objext conftest$ac_exeext
30699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30700   (eval $ac_link) 2>&5
30701   ac_status=$?
30702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30703   (exit $ac_status); } &&
30704          { ac_try='test -s conftest$ac_exeext'
30705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30706   (eval $ac_try) 2>&5
30707   ac_status=$?
30708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709   (exit $ac_status); }; }; then
30710   eval "$as_ac_var=yes"
30711 else
30712   echo "$as_me: failed program was:" >&5
30713 sed 's/^/| /' conftest.$ac_ext >&5
30714
30715 eval "$as_ac_var=no"
30716 fi
30717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30718 fi
30719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30721 if test `eval echo '${'$as_ac_var'}'` = yes; then
30722   cat >>confdefs.h <<_ACEOF
30723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30724 _ACEOF
30725
30726 else
30727   LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
30728
30729 cat >>confdefs.h <<\_ACEOF
30730 #define C_GETLOADAVG 1
30731 _ACEOF
30732
30733 # Figure out what our getloadavg.c needs.
30734 ac_have_func=no
30735 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
30736   echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
30737 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
30738 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
30739   echo $ECHO_N "(cached) $ECHO_C" >&6
30740 fi
30741 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
30742 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
30743 else
30744   # Is the header compilable?
30745 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
30746 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
30747 cat >conftest.$ac_ext <<_ACEOF
30748 #line $LINENO "configure"
30749 /* confdefs.h.  */
30750 _ACEOF
30751 cat confdefs.h >>conftest.$ac_ext
30752 cat >>conftest.$ac_ext <<_ACEOF
30753 /* end confdefs.h.  */
30754 $ac_includes_default
30755 #include <sys/dg_sys_info.h>
30756 _ACEOF
30757 rm -f conftest.$ac_objext
30758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30759   (eval $ac_compile) 2>&5
30760   ac_status=$?
30761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30762   (exit $ac_status); } &&
30763          { ac_try='test -s conftest.$ac_objext'
30764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30765   (eval $ac_try) 2>&5
30766   ac_status=$?
30767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30768   (exit $ac_status); }; }; then
30769   ac_header_compiler=yes
30770 else
30771   echo "$as_me: failed program was:" >&5
30772 sed 's/^/| /' conftest.$ac_ext >&5
30773
30774 ac_header_compiler=no
30775 fi
30776 rm -f conftest.$ac_objext conftest.$ac_ext
30777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30778 echo "${ECHO_T}$ac_header_compiler" >&6
30779
30780 # Is the header present?
30781 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
30782 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
30783 cat >conftest.$ac_ext <<_ACEOF
30784 #line $LINENO "configure"
30785 /* confdefs.h.  */
30786 _ACEOF
30787 cat confdefs.h >>conftest.$ac_ext
30788 cat >>conftest.$ac_ext <<_ACEOF
30789 /* end confdefs.h.  */
30790 #include <sys/dg_sys_info.h>
30791 _ACEOF
30792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30793   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30794   ac_status=$?
30795   grep -v '^ *+' conftest.er1 >conftest.err
30796   rm -f conftest.er1
30797   cat conftest.err >&5
30798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30799   (exit $ac_status); } >/dev/null; then
30800   if test -s conftest.err; then
30801     ac_cpp_err=$ac_c_preproc_warn_flag
30802   else
30803     ac_cpp_err=
30804   fi
30805 else
30806   ac_cpp_err=yes
30807 fi
30808 if test -z "$ac_cpp_err"; then
30809   ac_header_preproc=yes
30810 else
30811   echo "$as_me: failed program was:" >&5
30812 sed 's/^/| /' conftest.$ac_ext >&5
30813
30814   ac_header_preproc=no
30815 fi
30816 rm -f conftest.err conftest.$ac_ext
30817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30818 echo "${ECHO_T}$ac_header_preproc" >&6
30819
30820 # So?  What about this header?
30821 case $ac_header_compiler:$ac_header_preproc in
30822   yes:no )
30823     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
30824 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30825     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
30826 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
30827     (
30828       cat <<\_ASBOX
30829 ## ------------------------------------ ##
30830 ## Report this to bug-autoconf@gnu.org. ##
30831 ## ------------------------------------ ##
30832 _ASBOX
30833     ) |
30834       sed "s/^/$as_me: WARNING:     /" >&2
30835     ;;
30836   no:yes )
30837     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
30838 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
30839     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
30840 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
30841     { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
30842 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
30843     (
30844       cat <<\_ASBOX
30845 ## ------------------------------------ ##
30846 ## Report this to bug-autoconf@gnu.org. ##
30847 ## ------------------------------------ ##
30848 _ASBOX
30849     ) |
30850       sed "s/^/$as_me: WARNING:     /" >&2
30851     ;;
30852 esac
30853 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
30854 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
30855 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
30856   echo $ECHO_N "(cached) $ECHO_C" >&6
30857 else
30858   ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
30859 fi
30860 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
30861 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
30862
30863 fi
30864 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
30865   ac_have_func=yes
30866
30867 cat >>confdefs.h <<\_ACEOF
30868 #define DGUX 1
30869 _ACEOF
30870
30871
30872 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
30873 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
30874 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
30875   echo $ECHO_N "(cached) $ECHO_C" >&6
30876 else
30877   ac_check_lib_save_LIBS=$LIBS
30878 LIBS="-ldgc  $LIBS"
30879 cat >conftest.$ac_ext <<_ACEOF
30880 #line $LINENO "configure"
30881 /* confdefs.h.  */
30882 _ACEOF
30883 cat confdefs.h >>conftest.$ac_ext
30884 cat >>conftest.$ac_ext <<_ACEOF
30885 /* end confdefs.h.  */
30886
30887 /* Override any gcc2 internal prototype to avoid an error.  */
30888 #ifdef __cplusplus
30889 extern "C"
30890 #endif
30891 /* We use char because int might match the return type of a gcc2
30892    builtin and then its argument prototype would still apply.  */
30893 char dg_sys_info ();
30894 int
30895 main ()
30896 {
30897 dg_sys_info ();
30898   ;
30899   return 0;
30900 }
30901 _ACEOF
30902 rm -f conftest.$ac_objext conftest$ac_exeext
30903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30904   (eval $ac_link) 2>&5
30905   ac_status=$?
30906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30907   (exit $ac_status); } &&
30908          { ac_try='test -s conftest$ac_exeext'
30909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30910   (eval $ac_try) 2>&5
30911   ac_status=$?
30912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30913   (exit $ac_status); }; }; then
30914   ac_cv_lib_dgc_dg_sys_info=yes
30915 else
30916   echo "$as_me: failed program was:" >&5
30917 sed 's/^/| /' conftest.$ac_ext >&5
30918
30919 ac_cv_lib_dgc_dg_sys_info=no
30920 fi
30921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30922 LIBS=$ac_check_lib_save_LIBS
30923 fi
30924 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
30925 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
30926 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
30927   cat >>confdefs.h <<_ACEOF
30928 #define HAVE_LIBDGC 1
30929 _ACEOF
30930
30931   LIBS="-ldgc $LIBS"
30932
30933 fi
30934
30935 fi
30936
30937
30938
30939 if test "${ac_cv_header_locale_h+set}" = set; then
30940   echo "$as_me:$LINENO: checking for locale.h" >&5
30941 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
30942 if test "${ac_cv_header_locale_h+set}" = set; then
30943   echo $ECHO_N "(cached) $ECHO_C" >&6
30944 fi
30945 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
30946 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
30947 else
30948   # Is the header compilable?
30949 echo "$as_me:$LINENO: checking locale.h usability" >&5
30950 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
30951 cat >conftest.$ac_ext <<_ACEOF
30952 #line $LINENO "configure"
30953 /* confdefs.h.  */
30954 _ACEOF
30955 cat confdefs.h >>conftest.$ac_ext
30956 cat >>conftest.$ac_ext <<_ACEOF
30957 /* end confdefs.h.  */
30958 $ac_includes_default
30959 #include <locale.h>
30960 _ACEOF
30961 rm -f conftest.$ac_objext
30962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30963   (eval $ac_compile) 2>&5
30964   ac_status=$?
30965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966   (exit $ac_status); } &&
30967          { ac_try='test -s conftest.$ac_objext'
30968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30969   (eval $ac_try) 2>&5
30970   ac_status=$?
30971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30972   (exit $ac_status); }; }; then
30973   ac_header_compiler=yes
30974 else
30975   echo "$as_me: failed program was:" >&5
30976 sed 's/^/| /' conftest.$ac_ext >&5
30977
30978 ac_header_compiler=no
30979 fi
30980 rm -f conftest.$ac_objext conftest.$ac_ext
30981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30982 echo "${ECHO_T}$ac_header_compiler" >&6
30983
30984 # Is the header present?
30985 echo "$as_me:$LINENO: checking locale.h presence" >&5
30986 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
30987 cat >conftest.$ac_ext <<_ACEOF
30988 #line $LINENO "configure"
30989 /* confdefs.h.  */
30990 _ACEOF
30991 cat confdefs.h >>conftest.$ac_ext
30992 cat >>conftest.$ac_ext <<_ACEOF
30993 /* end confdefs.h.  */
30994 #include <locale.h>
30995 _ACEOF
30996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30997   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30998   ac_status=$?
30999   grep -v '^ *+' conftest.er1 >conftest.err
31000   rm -f conftest.er1
31001   cat conftest.err >&5
31002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31003   (exit $ac_status); } >/dev/null; then
31004   if test -s conftest.err; then
31005     ac_cpp_err=$ac_c_preproc_warn_flag
31006   else
31007     ac_cpp_err=
31008   fi
31009 else
31010   ac_cpp_err=yes
31011 fi
31012 if test -z "$ac_cpp_err"; then
31013   ac_header_preproc=yes
31014 else
31015   echo "$as_me: failed program was:" >&5
31016 sed 's/^/| /' conftest.$ac_ext >&5
31017
31018   ac_header_preproc=no
31019 fi
31020 rm -f conftest.err conftest.$ac_ext
31021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31022 echo "${ECHO_T}$ac_header_preproc" >&6
31023
31024 # So?  What about this header?
31025 case $ac_header_compiler:$ac_header_preproc in
31026   yes:no )
31027     { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
31028 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31029     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
31030 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
31031     (
31032       cat <<\_ASBOX
31033 ## ------------------------------------ ##
31034 ## Report this to bug-autoconf@gnu.org. ##
31035 ## ------------------------------------ ##
31036 _ASBOX
31037     ) |
31038       sed "s/^/$as_me: WARNING:     /" >&2
31039     ;;
31040   no:yes )
31041     { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
31042 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
31043     { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
31044 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
31045     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
31046 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
31047     (
31048       cat <<\_ASBOX
31049 ## ------------------------------------ ##
31050 ## Report this to bug-autoconf@gnu.org. ##
31051 ## ------------------------------------ ##
31052 _ASBOX
31053     ) |
31054       sed "s/^/$as_me: WARNING:     /" >&2
31055     ;;
31056 esac
31057 echo "$as_me:$LINENO: checking for locale.h" >&5
31058 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
31059 if test "${ac_cv_header_locale_h+set}" = set; then
31060   echo $ECHO_N "(cached) $ECHO_C" >&6
31061 else
31062   ac_cv_header_locale_h=$ac_header_preproc
31063 fi
31064 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
31065 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
31066
31067 fi
31068
31069
31070
31071 for ac_func in setlocale
31072 do
31073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31074 echo "$as_me:$LINENO: checking for $ac_func" >&5
31075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31076 if eval "test \"\${$as_ac_var+set}\" = set"; then
31077   echo $ECHO_N "(cached) $ECHO_C" >&6
31078 else
31079   cat >conftest.$ac_ext <<_ACEOF
31080 #line $LINENO "configure"
31081 /* confdefs.h.  */
31082 _ACEOF
31083 cat confdefs.h >>conftest.$ac_ext
31084 cat >>conftest.$ac_ext <<_ACEOF
31085 /* end confdefs.h.  */
31086 /* System header to define __stub macros and hopefully few prototypes,
31087     which can conflict with char $ac_func (); below.
31088     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31089     <limits.h> exists even on freestanding compilers.  */
31090 #ifdef __STDC__
31091 # include <limits.h>
31092 #else
31093 # include <assert.h>
31094 #endif
31095 /* Override any gcc2 internal prototype to avoid an error.  */
31096 #ifdef __cplusplus
31097 extern "C"
31098 {
31099 #endif
31100 /* We use char because int might match the return type of a gcc2
31101    builtin and then its argument prototype would still apply.  */
31102 char $ac_func ();
31103 /* The GNU C library defines this for functions which it implements
31104     to always fail with ENOSYS.  Some functions are actually named
31105     something starting with __ and the normal name is an alias.  */
31106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31107 choke me
31108 #else
31109 char (*f) () = $ac_func;
31110 #endif
31111 #ifdef __cplusplus
31112 }
31113 #endif
31114
31115 int
31116 main ()
31117 {
31118 return f != $ac_func;
31119   ;
31120   return 0;
31121 }
31122 _ACEOF
31123 rm -f conftest.$ac_objext conftest$ac_exeext
31124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31125   (eval $ac_link) 2>&5
31126   ac_status=$?
31127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31128   (exit $ac_status); } &&
31129          { ac_try='test -s conftest$ac_exeext'
31130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31131   (eval $ac_try) 2>&5
31132   ac_status=$?
31133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134   (exit $ac_status); }; }; then
31135   eval "$as_ac_var=yes"
31136 else
31137   echo "$as_me: failed program was:" >&5
31138 sed 's/^/| /' conftest.$ac_ext >&5
31139
31140 eval "$as_ac_var=no"
31141 fi
31142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31143 fi
31144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31146 if test `eval echo '${'$as_ac_var'}'` = yes; then
31147   cat >>confdefs.h <<_ACEOF
31148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31149 _ACEOF
31150
31151 fi
31152 done
31153
31154
31155 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
31156 # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
31157 # Irix 4.0.5F has the header but not the library.
31158 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
31159   ac_have_func=yes
31160
31161 cat >>confdefs.h <<\_ACEOF
31162 #define SVR4 1
31163 _ACEOF
31164
31165 fi
31166
31167 if test $ac_have_func = no; then
31168   if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
31169   echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
31170 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
31171 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
31172   echo $ECHO_N "(cached) $ECHO_C" >&6
31173 fi
31174 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
31175 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
31176 else
31177   # Is the header compilable?
31178 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
31179 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
31180 cat >conftest.$ac_ext <<_ACEOF
31181 #line $LINENO "configure"
31182 /* confdefs.h.  */
31183 _ACEOF
31184 cat confdefs.h >>conftest.$ac_ext
31185 cat >>conftest.$ac_ext <<_ACEOF
31186 /* end confdefs.h.  */
31187 $ac_includes_default
31188 #include <inq_stats/cpustats.h>
31189 _ACEOF
31190 rm -f conftest.$ac_objext
31191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31192   (eval $ac_compile) 2>&5
31193   ac_status=$?
31194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195   (exit $ac_status); } &&
31196          { ac_try='test -s conftest.$ac_objext'
31197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31198   (eval $ac_try) 2>&5
31199   ac_status=$?
31200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201   (exit $ac_status); }; }; then
31202   ac_header_compiler=yes
31203 else
31204   echo "$as_me: failed program was:" >&5
31205 sed 's/^/| /' conftest.$ac_ext >&5
31206
31207 ac_header_compiler=no
31208 fi
31209 rm -f conftest.$ac_objext conftest.$ac_ext
31210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31211 echo "${ECHO_T}$ac_header_compiler" >&6
31212
31213 # Is the header present?
31214 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
31215 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
31216 cat >conftest.$ac_ext <<_ACEOF
31217 #line $LINENO "configure"
31218 /* confdefs.h.  */
31219 _ACEOF
31220 cat confdefs.h >>conftest.$ac_ext
31221 cat >>conftest.$ac_ext <<_ACEOF
31222 /* end confdefs.h.  */
31223 #include <inq_stats/cpustats.h>
31224 _ACEOF
31225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31226   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31227   ac_status=$?
31228   grep -v '^ *+' conftest.er1 >conftest.err
31229   rm -f conftest.er1
31230   cat conftest.err >&5
31231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232   (exit $ac_status); } >/dev/null; then
31233   if test -s conftest.err; then
31234     ac_cpp_err=$ac_c_preproc_warn_flag
31235   else
31236     ac_cpp_err=
31237   fi
31238 else
31239   ac_cpp_err=yes
31240 fi
31241 if test -z "$ac_cpp_err"; then
31242   ac_header_preproc=yes
31243 else
31244   echo "$as_me: failed program was:" >&5
31245 sed 's/^/| /' conftest.$ac_ext >&5
31246
31247   ac_header_preproc=no
31248 fi
31249 rm -f conftest.err conftest.$ac_ext
31250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31251 echo "${ECHO_T}$ac_header_preproc" >&6
31252
31253 # So?  What about this header?
31254 case $ac_header_compiler:$ac_header_preproc in
31255   yes:no )
31256     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
31257 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31258     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
31259 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
31260     (
31261       cat <<\_ASBOX
31262 ## ------------------------------------ ##
31263 ## Report this to bug-autoconf@gnu.org. ##
31264 ## ------------------------------------ ##
31265 _ASBOX
31266     ) |
31267       sed "s/^/$as_me: WARNING:     /" >&2
31268     ;;
31269   no:yes )
31270     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
31271 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
31272     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
31273 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
31274     { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
31275 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
31276     (
31277       cat <<\_ASBOX
31278 ## ------------------------------------ ##
31279 ## Report this to bug-autoconf@gnu.org. ##
31280 ## ------------------------------------ ##
31281 _ASBOX
31282     ) |
31283       sed "s/^/$as_me: WARNING:     /" >&2
31284     ;;
31285 esac
31286 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
31287 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
31288 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
31289   echo $ECHO_N "(cached) $ECHO_C" >&6
31290 else
31291   ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
31292 fi
31293 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
31294 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
31295
31296 fi
31297 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
31298   ac_have_func=yes
31299
31300 cat >>confdefs.h <<\_ACEOF
31301 #define UMAX 1
31302 _ACEOF
31303
31304
31305 cat >>confdefs.h <<\_ACEOF
31306 #define UMAX4_3 1
31307 _ACEOF
31308
31309 fi
31310
31311
31312 fi
31313
31314 if test $ac_have_func = no; then
31315   if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
31316   echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
31317 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
31318 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
31319   echo $ECHO_N "(cached) $ECHO_C" >&6
31320 fi
31321 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
31322 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
31323 else
31324   # Is the header compilable?
31325 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
31326 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
31327 cat >conftest.$ac_ext <<_ACEOF
31328 #line $LINENO "configure"
31329 /* confdefs.h.  */
31330 _ACEOF
31331 cat confdefs.h >>conftest.$ac_ext
31332 cat >>conftest.$ac_ext <<_ACEOF
31333 /* end confdefs.h.  */
31334 $ac_includes_default
31335 #include <sys/cpustats.h>
31336 _ACEOF
31337 rm -f conftest.$ac_objext
31338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31339   (eval $ac_compile) 2>&5
31340   ac_status=$?
31341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31342   (exit $ac_status); } &&
31343          { ac_try='test -s conftest.$ac_objext'
31344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31345   (eval $ac_try) 2>&5
31346   ac_status=$?
31347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348   (exit $ac_status); }; }; then
31349   ac_header_compiler=yes
31350 else
31351   echo "$as_me: failed program was:" >&5
31352 sed 's/^/| /' conftest.$ac_ext >&5
31353
31354 ac_header_compiler=no
31355 fi
31356 rm -f conftest.$ac_objext conftest.$ac_ext
31357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31358 echo "${ECHO_T}$ac_header_compiler" >&6
31359
31360 # Is the header present?
31361 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
31362 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
31363 cat >conftest.$ac_ext <<_ACEOF
31364 #line $LINENO "configure"
31365 /* confdefs.h.  */
31366 _ACEOF
31367 cat confdefs.h >>conftest.$ac_ext
31368 cat >>conftest.$ac_ext <<_ACEOF
31369 /* end confdefs.h.  */
31370 #include <sys/cpustats.h>
31371 _ACEOF
31372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31373   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31374   ac_status=$?
31375   grep -v '^ *+' conftest.er1 >conftest.err
31376   rm -f conftest.er1
31377   cat conftest.err >&5
31378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31379   (exit $ac_status); } >/dev/null; then
31380   if test -s conftest.err; then
31381     ac_cpp_err=$ac_c_preproc_warn_flag
31382   else
31383     ac_cpp_err=
31384   fi
31385 else
31386   ac_cpp_err=yes
31387 fi
31388 if test -z "$ac_cpp_err"; then
31389   ac_header_preproc=yes
31390 else
31391   echo "$as_me: failed program was:" >&5
31392 sed 's/^/| /' conftest.$ac_ext >&5
31393
31394   ac_header_preproc=no
31395 fi
31396 rm -f conftest.err conftest.$ac_ext
31397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31398 echo "${ECHO_T}$ac_header_preproc" >&6
31399
31400 # So?  What about this header?
31401 case $ac_header_compiler:$ac_header_preproc in
31402   yes:no )
31403     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
31404 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31405     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
31406 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
31407     (
31408       cat <<\_ASBOX
31409 ## ------------------------------------ ##
31410 ## Report this to bug-autoconf@gnu.org. ##
31411 ## ------------------------------------ ##
31412 _ASBOX
31413     ) |
31414       sed "s/^/$as_me: WARNING:     /" >&2
31415     ;;
31416   no:yes )
31417     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
31418 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
31419     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
31420 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
31421     { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
31422 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
31423     (
31424       cat <<\_ASBOX
31425 ## ------------------------------------ ##
31426 ## Report this to bug-autoconf@gnu.org. ##
31427 ## ------------------------------------ ##
31428 _ASBOX
31429     ) |
31430       sed "s/^/$as_me: WARNING:     /" >&2
31431     ;;
31432 esac
31433 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
31434 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
31435 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
31436   echo $ECHO_N "(cached) $ECHO_C" >&6
31437 else
31438   ac_cv_header_sys_cpustats_h=$ac_header_preproc
31439 fi
31440 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
31441 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
31442
31443 fi
31444 if test $ac_cv_header_sys_cpustats_h = yes; then
31445   ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
31446 #define UMAX 1
31447 _ACEOF
31448
31449 fi
31450
31451
31452 fi
31453
31454 if test $ac_have_func = no; then
31455
31456 for ac_header in mach/mach.h
31457 do
31458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31460   echo "$as_me:$LINENO: checking for $ac_header" >&5
31461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31463   echo $ECHO_N "(cached) $ECHO_C" >&6
31464 fi
31465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31467 else
31468   # Is the header compilable?
31469 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31471 cat >conftest.$ac_ext <<_ACEOF
31472 #line $LINENO "configure"
31473 /* confdefs.h.  */
31474 _ACEOF
31475 cat confdefs.h >>conftest.$ac_ext
31476 cat >>conftest.$ac_ext <<_ACEOF
31477 /* end confdefs.h.  */
31478 $ac_includes_default
31479 #include <$ac_header>
31480 _ACEOF
31481 rm -f conftest.$ac_objext
31482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31483   (eval $ac_compile) 2>&5
31484   ac_status=$?
31485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31486   (exit $ac_status); } &&
31487          { ac_try='test -s conftest.$ac_objext'
31488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31489   (eval $ac_try) 2>&5
31490   ac_status=$?
31491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31492   (exit $ac_status); }; }; then
31493   ac_header_compiler=yes
31494 else
31495   echo "$as_me: failed program was:" >&5
31496 sed 's/^/| /' conftest.$ac_ext >&5
31497
31498 ac_header_compiler=no
31499 fi
31500 rm -f conftest.$ac_objext conftest.$ac_ext
31501 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31502 echo "${ECHO_T}$ac_header_compiler" >&6
31503
31504 # Is the header present?
31505 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31507 cat >conftest.$ac_ext <<_ACEOF
31508 #line $LINENO "configure"
31509 /* confdefs.h.  */
31510 _ACEOF
31511 cat confdefs.h >>conftest.$ac_ext
31512 cat >>conftest.$ac_ext <<_ACEOF
31513 /* end confdefs.h.  */
31514 #include <$ac_header>
31515 _ACEOF
31516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31517   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31518   ac_status=$?
31519   grep -v '^ *+' conftest.er1 >conftest.err
31520   rm -f conftest.er1
31521   cat conftest.err >&5
31522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523   (exit $ac_status); } >/dev/null; then
31524   if test -s conftest.err; then
31525     ac_cpp_err=$ac_c_preproc_warn_flag
31526   else
31527     ac_cpp_err=
31528   fi
31529 else
31530   ac_cpp_err=yes
31531 fi
31532 if test -z "$ac_cpp_err"; then
31533   ac_header_preproc=yes
31534 else
31535   echo "$as_me: failed program was:" >&5
31536 sed 's/^/| /' conftest.$ac_ext >&5
31537
31538   ac_header_preproc=no
31539 fi
31540 rm -f conftest.err conftest.$ac_ext
31541 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31542 echo "${ECHO_T}$ac_header_preproc" >&6
31543
31544 # So?  What about this header?
31545 case $ac_header_compiler:$ac_header_preproc in
31546   yes:no )
31547     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31549     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31550 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31551     (
31552       cat <<\_ASBOX
31553 ## ------------------------------------ ##
31554 ## Report this to bug-autoconf@gnu.org. ##
31555 ## ------------------------------------ ##
31556 _ASBOX
31557     ) |
31558       sed "s/^/$as_me: WARNING:     /" >&2
31559     ;;
31560   no:yes )
31561     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31563     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31567     (
31568       cat <<\_ASBOX
31569 ## ------------------------------------ ##
31570 ## Report this to bug-autoconf@gnu.org. ##
31571 ## ------------------------------------ ##
31572 _ASBOX
31573     ) |
31574       sed "s/^/$as_me: WARNING:     /" >&2
31575     ;;
31576 esac
31577 echo "$as_me:$LINENO: checking for $ac_header" >&5
31578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31580   echo $ECHO_N "(cached) $ECHO_C" >&6
31581 else
31582   eval "$as_ac_Header=$ac_header_preproc"
31583 fi
31584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31586
31587 fi
31588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31589   cat >>confdefs.h <<_ACEOF
31590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31591 _ACEOF
31592
31593 fi
31594
31595 done
31596
31597 fi
31598
31599
31600 for ac_header in nlist.h
31601 do
31602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31604   echo "$as_me:$LINENO: checking for $ac_header" >&5
31605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31607   echo $ECHO_N "(cached) $ECHO_C" >&6
31608 fi
31609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31611 else
31612   # Is the header compilable?
31613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31615 cat >conftest.$ac_ext <<_ACEOF
31616 #line $LINENO "configure"
31617 /* confdefs.h.  */
31618 _ACEOF
31619 cat confdefs.h >>conftest.$ac_ext
31620 cat >>conftest.$ac_ext <<_ACEOF
31621 /* end confdefs.h.  */
31622 $ac_includes_default
31623 #include <$ac_header>
31624 _ACEOF
31625 rm -f conftest.$ac_objext
31626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31627   (eval $ac_compile) 2>&5
31628   ac_status=$?
31629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630   (exit $ac_status); } &&
31631          { ac_try='test -s conftest.$ac_objext'
31632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31633   (eval $ac_try) 2>&5
31634   ac_status=$?
31635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31636   (exit $ac_status); }; }; then
31637   ac_header_compiler=yes
31638 else
31639   echo "$as_me: failed program was:" >&5
31640 sed 's/^/| /' conftest.$ac_ext >&5
31641
31642 ac_header_compiler=no
31643 fi
31644 rm -f conftest.$ac_objext conftest.$ac_ext
31645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31646 echo "${ECHO_T}$ac_header_compiler" >&6
31647
31648 # Is the header present?
31649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31651 cat >conftest.$ac_ext <<_ACEOF
31652 #line $LINENO "configure"
31653 /* confdefs.h.  */
31654 _ACEOF
31655 cat confdefs.h >>conftest.$ac_ext
31656 cat >>conftest.$ac_ext <<_ACEOF
31657 /* end confdefs.h.  */
31658 #include <$ac_header>
31659 _ACEOF
31660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31661   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31662   ac_status=$?
31663   grep -v '^ *+' conftest.er1 >conftest.err
31664   rm -f conftest.er1
31665   cat conftest.err >&5
31666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31667   (exit $ac_status); } >/dev/null; then
31668   if test -s conftest.err; then
31669     ac_cpp_err=$ac_c_preproc_warn_flag
31670   else
31671     ac_cpp_err=
31672   fi
31673 else
31674   ac_cpp_err=yes
31675 fi
31676 if test -z "$ac_cpp_err"; then
31677   ac_header_preproc=yes
31678 else
31679   echo "$as_me: failed program was:" >&5
31680 sed 's/^/| /' conftest.$ac_ext >&5
31681
31682   ac_header_preproc=no
31683 fi
31684 rm -f conftest.err conftest.$ac_ext
31685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31686 echo "${ECHO_T}$ac_header_preproc" >&6
31687
31688 # So?  What about this header?
31689 case $ac_header_compiler:$ac_header_preproc in
31690   yes:no )
31691     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31695     (
31696       cat <<\_ASBOX
31697 ## ------------------------------------ ##
31698 ## Report this to bug-autoconf@gnu.org. ##
31699 ## ------------------------------------ ##
31700 _ASBOX
31701     ) |
31702       sed "s/^/$as_me: WARNING:     /" >&2
31703     ;;
31704   no:yes )
31705     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31707     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31709     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31711     (
31712       cat <<\_ASBOX
31713 ## ------------------------------------ ##
31714 ## Report this to bug-autoconf@gnu.org. ##
31715 ## ------------------------------------ ##
31716 _ASBOX
31717     ) |
31718       sed "s/^/$as_me: WARNING:     /" >&2
31719     ;;
31720 esac
31721 echo "$as_me:$LINENO: checking for $ac_header" >&5
31722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31724   echo $ECHO_N "(cached) $ECHO_C" >&6
31725 else
31726   eval "$as_ac_Header=$ac_header_preproc"
31727 fi
31728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31730
31731 fi
31732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31733   cat >>confdefs.h <<_ACEOF
31734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31735 _ACEOF
31736  echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
31737 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
31738 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
31739   echo $ECHO_N "(cached) $ECHO_C" >&6
31740 else
31741   cat >conftest.$ac_ext <<_ACEOF
31742 #line $LINENO "configure"
31743 /* confdefs.h.  */
31744 _ACEOF
31745 cat confdefs.h >>conftest.$ac_ext
31746 cat >>conftest.$ac_ext <<_ACEOF
31747 /* end confdefs.h.  */
31748 #include <nlist.h>
31749
31750 int
31751 main ()
31752 {
31753 static struct nlist ac_aggr;
31754 if (ac_aggr.n_un.n_name)
31755 return 0;
31756   ;
31757   return 0;
31758 }
31759 _ACEOF
31760 rm -f conftest.$ac_objext
31761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31762   (eval $ac_compile) 2>&5
31763   ac_status=$?
31764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31765   (exit $ac_status); } &&
31766          { ac_try='test -s conftest.$ac_objext'
31767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31768   (eval $ac_try) 2>&5
31769   ac_status=$?
31770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31771   (exit $ac_status); }; }; then
31772   ac_cv_member_struct_nlist_n_un_n_name=yes
31773 else
31774   echo "$as_me: failed program was:" >&5
31775 sed 's/^/| /' conftest.$ac_ext >&5
31776
31777 cat >conftest.$ac_ext <<_ACEOF
31778 #line $LINENO "configure"
31779 /* confdefs.h.  */
31780 _ACEOF
31781 cat confdefs.h >>conftest.$ac_ext
31782 cat >>conftest.$ac_ext <<_ACEOF
31783 /* end confdefs.h.  */
31784 #include <nlist.h>
31785
31786 int
31787 main ()
31788 {
31789 static struct nlist ac_aggr;
31790 if (sizeof ac_aggr.n_un.n_name)
31791 return 0;
31792   ;
31793   return 0;
31794 }
31795 _ACEOF
31796 rm -f conftest.$ac_objext
31797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31798   (eval $ac_compile) 2>&5
31799   ac_status=$?
31800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31801   (exit $ac_status); } &&
31802          { ac_try='test -s conftest.$ac_objext'
31803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31804   (eval $ac_try) 2>&5
31805   ac_status=$?
31806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31807   (exit $ac_status); }; }; then
31808   ac_cv_member_struct_nlist_n_un_n_name=yes
31809 else
31810   echo "$as_me: failed program was:" >&5
31811 sed 's/^/| /' conftest.$ac_ext >&5
31812
31813 ac_cv_member_struct_nlist_n_un_n_name=no
31814 fi
31815 rm -f conftest.$ac_objext conftest.$ac_ext
31816 fi
31817 rm -f conftest.$ac_objext conftest.$ac_ext
31818 fi
31819 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
31820 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
31821 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
31822
31823 cat >>confdefs.h <<_ACEOF
31824 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
31825 _ACEOF
31826
31827
31828 cat >>confdefs.h <<\_ACEOF
31829 #define NLIST_NAME_UNION 1
31830 _ACEOF
31831
31832 fi
31833
31834
31835 fi
31836
31837 done
31838
31839 fi
31840 done
31841
31842
31843 # Some definitions of getloadavg require that the program be installed setgid.
31844 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
31845 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
31846 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
31847   echo $ECHO_N "(cached) $ECHO_C" >&6
31848 else
31849   cat >conftest.$ac_ext <<_ACEOF
31850 #line $LINENO "configure"
31851 /* confdefs.h.  */
31852 _ACEOF
31853 cat confdefs.h >>conftest.$ac_ext
31854 cat >>conftest.$ac_ext <<_ACEOF
31855 /* end confdefs.h.  */
31856 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
31857 #ifdef LDAV_PRIVILEGED
31858 Yowza Am I SETGID yet
31859 #endif
31860 _ACEOF
31861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31862   $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
31863   ac_cv_func_getloadavg_setgid=yes
31864 else
31865   ac_cv_func_getloadavg_setgid=no
31866 fi
31867 rm -f conftest*
31868
31869 fi
31870 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
31871 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
31872 if test $ac_cv_func_getloadavg_setgid = yes; then
31873   NEED_SETGID=true
31874
31875 cat >>confdefs.h <<\_ACEOF
31876 #define GETLOADAVG_PRIVILEGED 1
31877 _ACEOF
31878
31879 else
31880   NEED_SETGID=false
31881 fi
31882
31883 if test $ac_cv_func_getloadavg_setgid = yes; then
31884   echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
31885 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
31886 if test "${ac_cv_group_kmem+set}" = set; then
31887   echo $ECHO_N "(cached) $ECHO_C" >&6
31888 else
31889    # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
31890   ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
31891   # If we got an error (system does not support symlinks), try without -L.
31892   test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
31893   ac_cv_group_kmem=`echo $ac_ls_output \
31894     | sed -ne 's/[      ][      ]*/ /g;
31895                s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
31896                / /s/.* //;p;'`
31897
31898 fi
31899 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
31900 echo "${ECHO_T}$ac_cv_group_kmem" >&6
31901   KMEM_GROUP=$ac_cv_group_kmem
31902 fi
31903 if test "x$ac_save_LIBS" = x; then
31904   GETLOADAVG_LIBS=$LIBS
31905 else
31906   GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
31907 fi
31908 LIBS=$ac_save_LIBS
31909
31910
31911
31912
31913
31914
31915
31916
31917
31918 for ac_func in strcasecmp strncasecmp
31919 do
31920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31921 echo "$as_me:$LINENO: checking for $ac_func" >&5
31922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31923 if eval "test \"\${$as_ac_var+set}\" = set"; then
31924   echo $ECHO_N "(cached) $ECHO_C" >&6
31925 else
31926   cat >conftest.$ac_ext <<_ACEOF
31927 #line $LINENO "configure"
31928 /* confdefs.h.  */
31929 _ACEOF
31930 cat confdefs.h >>conftest.$ac_ext
31931 cat >>conftest.$ac_ext <<_ACEOF
31932 /* end confdefs.h.  */
31933 /* System header to define __stub macros and hopefully few prototypes,
31934     which can conflict with char $ac_func (); below.
31935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31936     <limits.h> exists even on freestanding compilers.  */
31937 #ifdef __STDC__
31938 # include <limits.h>
31939 #else
31940 # include <assert.h>
31941 #endif
31942 /* Override any gcc2 internal prototype to avoid an error.  */
31943 #ifdef __cplusplus
31944 extern "C"
31945 {
31946 #endif
31947 /* We use char because int might match the return type of a gcc2
31948    builtin and then its argument prototype would still apply.  */
31949 char $ac_func ();
31950 /* The GNU C library defines this for functions which it implements
31951     to always fail with ENOSYS.  Some functions are actually named
31952     something starting with __ and the normal name is an alias.  */
31953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31954 choke me
31955 #else
31956 char (*f) () = $ac_func;
31957 #endif
31958 #ifdef __cplusplus
31959 }
31960 #endif
31961
31962 int
31963 main ()
31964 {
31965 return f != $ac_func;
31966   ;
31967   return 0;
31968 }
31969 _ACEOF
31970 rm -f conftest.$ac_objext conftest$ac_exeext
31971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31972   (eval $ac_link) 2>&5
31973   ac_status=$?
31974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31975   (exit $ac_status); } &&
31976          { ac_try='test -s conftest$ac_exeext'
31977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31978   (eval $ac_try) 2>&5
31979   ac_status=$?
31980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31981   (exit $ac_status); }; }; then
31982   eval "$as_ac_var=yes"
31983 else
31984   echo "$as_me: failed program was:" >&5
31985 sed 's/^/| /' conftest.$ac_ext >&5
31986
31987 eval "$as_ac_var=no"
31988 fi
31989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31990 fi
31991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31993 if test `eval echo '${'$as_ac_var'}'` = yes; then
31994   cat >>confdefs.h <<_ACEOF
31995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31996 _ACEOF
31997
31998 else
31999   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32000 fi
32001 done
32002
32003
32004
32005 for ac_func in dup2
32006 do
32007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32008 echo "$as_me:$LINENO: checking for $ac_func" >&5
32009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32010 if eval "test \"\${$as_ac_var+set}\" = set"; then
32011   echo $ECHO_N "(cached) $ECHO_C" >&6
32012 else
32013   cat >conftest.$ac_ext <<_ACEOF
32014 #line $LINENO "configure"
32015 /* confdefs.h.  */
32016 _ACEOF
32017 cat confdefs.h >>conftest.$ac_ext
32018 cat >>conftest.$ac_ext <<_ACEOF
32019 /* end confdefs.h.  */
32020 /* System header to define __stub macros and hopefully few prototypes,
32021     which can conflict with char $ac_func (); below.
32022     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32023     <limits.h> exists even on freestanding compilers.  */
32024 #ifdef __STDC__
32025 # include <limits.h>
32026 #else
32027 # include <assert.h>
32028 #endif
32029 /* Override any gcc2 internal prototype to avoid an error.  */
32030 #ifdef __cplusplus
32031 extern "C"
32032 {
32033 #endif
32034 /* We use char because int might match the return type of a gcc2
32035    builtin and then its argument prototype would still apply.  */
32036 char $ac_func ();
32037 /* The GNU C library defines this for functions which it implements
32038     to always fail with ENOSYS.  Some functions are actually named
32039     something starting with __ and the normal name is an alias.  */
32040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32041 choke me
32042 #else
32043 char (*f) () = $ac_func;
32044 #endif
32045 #ifdef __cplusplus
32046 }
32047 #endif
32048
32049 int
32050 main ()
32051 {
32052 return f != $ac_func;
32053   ;
32054   return 0;
32055 }
32056 _ACEOF
32057 rm -f conftest.$ac_objext conftest$ac_exeext
32058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32059   (eval $ac_link) 2>&5
32060   ac_status=$?
32061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32062   (exit $ac_status); } &&
32063          { ac_try='test -s conftest$ac_exeext'
32064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32065   (eval $ac_try) 2>&5
32066   ac_status=$?
32067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068   (exit $ac_status); }; }; then
32069   eval "$as_ac_var=yes"
32070 else
32071   echo "$as_me: failed program was:" >&5
32072 sed 's/^/| /' conftest.$ac_ext >&5
32073
32074 eval "$as_ac_var=no"
32075 fi
32076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32077 fi
32078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32080 if test `eval echo '${'$as_ac_var'}'` = yes; then
32081   cat >>confdefs.h <<_ACEOF
32082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32083 _ACEOF
32084
32085 else
32086   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32087 fi
32088 done
32089
32090
32091
32092
32093 for ac_func in gethostname getusershell
32094 do
32095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32096 echo "$as_me:$LINENO: checking for $ac_func" >&5
32097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32098 if eval "test \"\${$as_ac_var+set}\" = set"; then
32099   echo $ECHO_N "(cached) $ECHO_C" >&6
32100 else
32101   cat >conftest.$ac_ext <<_ACEOF
32102 #line $LINENO "configure"
32103 /* confdefs.h.  */
32104 _ACEOF
32105 cat confdefs.h >>conftest.$ac_ext
32106 cat >>conftest.$ac_ext <<_ACEOF
32107 /* end confdefs.h.  */
32108 /* System header to define __stub macros and hopefully few prototypes,
32109     which can conflict with char $ac_func (); below.
32110     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32111     <limits.h> exists even on freestanding compilers.  */
32112 #ifdef __STDC__
32113 # include <limits.h>
32114 #else
32115 # include <assert.h>
32116 #endif
32117 /* Override any gcc2 internal prototype to avoid an error.  */
32118 #ifdef __cplusplus
32119 extern "C"
32120 {
32121 #endif
32122 /* We use char because int might match the return type of a gcc2
32123    builtin and then its argument prototype would still apply.  */
32124 char $ac_func ();
32125 /* The GNU C library defines this for functions which it implements
32126     to always fail with ENOSYS.  Some functions are actually named
32127     something starting with __ and the normal name is an alias.  */
32128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32129 choke me
32130 #else
32131 char (*f) () = $ac_func;
32132 #endif
32133 #ifdef __cplusplus
32134 }
32135 #endif
32136
32137 int
32138 main ()
32139 {
32140 return f != $ac_func;
32141   ;
32142   return 0;
32143 }
32144 _ACEOF
32145 rm -f conftest.$ac_objext conftest$ac_exeext
32146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32147   (eval $ac_link) 2>&5
32148   ac_status=$?
32149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150   (exit $ac_status); } &&
32151          { ac_try='test -s conftest$ac_exeext'
32152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32153   (eval $ac_try) 2>&5
32154   ac_status=$?
32155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32156   (exit $ac_status); }; }; then
32157   eval "$as_ac_var=yes"
32158 else
32159   echo "$as_me: failed program was:" >&5
32160 sed 's/^/| /' conftest.$ac_ext >&5
32161
32162 eval "$as_ac_var=no"
32163 fi
32164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32165 fi
32166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32168 if test `eval echo '${'$as_ac_var'}'` = yes; then
32169   cat >>confdefs.h <<_ACEOF
32170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32171 _ACEOF
32172
32173 else
32174   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32175 fi
32176 done
32177
32178
32179
32180 for ac_func in sig2str
32181 do
32182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32183 echo "$as_me:$LINENO: checking for $ac_func" >&5
32184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32185 if eval "test \"\${$as_ac_var+set}\" = set"; then
32186   echo $ECHO_N "(cached) $ECHO_C" >&6
32187 else
32188   cat >conftest.$ac_ext <<_ACEOF
32189 #line $LINENO "configure"
32190 /* confdefs.h.  */
32191 _ACEOF
32192 cat confdefs.h >>conftest.$ac_ext
32193 cat >>conftest.$ac_ext <<_ACEOF
32194 /* end confdefs.h.  */
32195 /* System header to define __stub macros and hopefully few prototypes,
32196     which can conflict with char $ac_func (); below.
32197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32198     <limits.h> exists even on freestanding compilers.  */
32199 #ifdef __STDC__
32200 # include <limits.h>
32201 #else
32202 # include <assert.h>
32203 #endif
32204 /* Override any gcc2 internal prototype to avoid an error.  */
32205 #ifdef __cplusplus
32206 extern "C"
32207 {
32208 #endif
32209 /* We use char because int might match the return type of a gcc2
32210    builtin and then its argument prototype would still apply.  */
32211 char $ac_func ();
32212 /* The GNU C library defines this for functions which it implements
32213     to always fail with ENOSYS.  Some functions are actually named
32214     something starting with __ and the normal name is an alias.  */
32215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32216 choke me
32217 #else
32218 char (*f) () = $ac_func;
32219 #endif
32220 #ifdef __cplusplus
32221 }
32222 #endif
32223
32224 int
32225 main ()
32226 {
32227 return f != $ac_func;
32228   ;
32229   return 0;
32230 }
32231 _ACEOF
32232 rm -f conftest.$ac_objext conftest$ac_exeext
32233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32234   (eval $ac_link) 2>&5
32235   ac_status=$?
32236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32237   (exit $ac_status); } &&
32238          { ac_try='test -s conftest$ac_exeext'
32239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32240   (eval $ac_try) 2>&5
32241   ac_status=$?
32242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32243   (exit $ac_status); }; }; then
32244   eval "$as_ac_var=yes"
32245 else
32246   echo "$as_me: failed program was:" >&5
32247 sed 's/^/| /' conftest.$ac_ext >&5
32248
32249 eval "$as_ac_var=no"
32250 fi
32251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32252 fi
32253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32255 if test `eval echo '${'$as_ac_var'}'` = yes; then
32256   cat >>confdefs.h <<_ACEOF
32257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32258 _ACEOF
32259
32260 else
32261   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32262 fi
32263 done
32264
32265
32266
32267
32268
32269
32270
32271 for ac_func in strcspn stpcpy strstr strtol strtoul
32272 do
32273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32274 echo "$as_me:$LINENO: checking for $ac_func" >&5
32275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32276 if eval "test \"\${$as_ac_var+set}\" = set"; then
32277   echo $ECHO_N "(cached) $ECHO_C" >&6
32278 else
32279   cat >conftest.$ac_ext <<_ACEOF
32280 #line $LINENO "configure"
32281 /* confdefs.h.  */
32282 _ACEOF
32283 cat confdefs.h >>conftest.$ac_ext
32284 cat >>conftest.$ac_ext <<_ACEOF
32285 /* end confdefs.h.  */
32286 /* System header to define __stub macros and hopefully few prototypes,
32287     which can conflict with char $ac_func (); below.
32288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32289     <limits.h> exists even on freestanding compilers.  */
32290 #ifdef __STDC__
32291 # include <limits.h>
32292 #else
32293 # include <assert.h>
32294 #endif
32295 /* Override any gcc2 internal prototype to avoid an error.  */
32296 #ifdef __cplusplus
32297 extern "C"
32298 {
32299 #endif
32300 /* We use char because int might match the return type of a gcc2
32301    builtin and then its argument prototype would still apply.  */
32302 char $ac_func ();
32303 /* The GNU C library defines this for functions which it implements
32304     to always fail with ENOSYS.  Some functions are actually named
32305     something starting with __ and the normal name is an alias.  */
32306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32307 choke me
32308 #else
32309 char (*f) () = $ac_func;
32310 #endif
32311 #ifdef __cplusplus
32312 }
32313 #endif
32314
32315 int
32316 main ()
32317 {
32318 return f != $ac_func;
32319   ;
32320   return 0;
32321 }
32322 _ACEOF
32323 rm -f conftest.$ac_objext conftest$ac_exeext
32324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32325   (eval $ac_link) 2>&5
32326   ac_status=$?
32327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328   (exit $ac_status); } &&
32329          { ac_try='test -s conftest$ac_exeext'
32330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32331   (eval $ac_try) 2>&5
32332   ac_status=$?
32333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32334   (exit $ac_status); }; }; then
32335   eval "$as_ac_var=yes"
32336 else
32337   echo "$as_me: failed program was:" >&5
32338 sed 's/^/| /' conftest.$ac_ext >&5
32339
32340 eval "$as_ac_var=no"
32341 fi
32342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32343 fi
32344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32346 if test `eval echo '${'$as_ac_var'}'` = yes; then
32347   cat >>confdefs.h <<_ACEOF
32348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32349 _ACEOF
32350
32351 else
32352   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32353 fi
32354 done
32355
32356
32357
32358 for ac_func in strpbrk
32359 do
32360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32361 echo "$as_me:$LINENO: checking for $ac_func" >&5
32362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32363 if eval "test \"\${$as_ac_var+set}\" = set"; then
32364   echo $ECHO_N "(cached) $ECHO_C" >&6
32365 else
32366   cat >conftest.$ac_ext <<_ACEOF
32367 #line $LINENO "configure"
32368 /* confdefs.h.  */
32369 _ACEOF
32370 cat confdefs.h >>conftest.$ac_ext
32371 cat >>conftest.$ac_ext <<_ACEOF
32372 /* end confdefs.h.  */
32373 /* System header to define __stub macros and hopefully few prototypes,
32374     which can conflict with char $ac_func (); below.
32375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32376     <limits.h> exists even on freestanding compilers.  */
32377 #ifdef __STDC__
32378 # include <limits.h>
32379 #else
32380 # include <assert.h>
32381 #endif
32382 /* Override any gcc2 internal prototype to avoid an error.  */
32383 #ifdef __cplusplus
32384 extern "C"
32385 {
32386 #endif
32387 /* We use char because int might match the return type of a gcc2
32388    builtin and then its argument prototype would still apply.  */
32389 char $ac_func ();
32390 /* The GNU C library defines this for functions which it implements
32391     to always fail with ENOSYS.  Some functions are actually named
32392     something starting with __ and the normal name is an alias.  */
32393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32394 choke me
32395 #else
32396 char (*f) () = $ac_func;
32397 #endif
32398 #ifdef __cplusplus
32399 }
32400 #endif
32401
32402 int
32403 main ()
32404 {
32405 return f != $ac_func;
32406   ;
32407   return 0;
32408 }
32409 _ACEOF
32410 rm -f conftest.$ac_objext conftest$ac_exeext
32411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32412   (eval $ac_link) 2>&5
32413   ac_status=$?
32414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32415   (exit $ac_status); } &&
32416          { ac_try='test -s conftest$ac_exeext'
32417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32418   (eval $ac_try) 2>&5
32419   ac_status=$?
32420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32421   (exit $ac_status); }; }; then
32422   eval "$as_ac_var=yes"
32423 else
32424   echo "$as_me: failed program was:" >&5
32425 sed 's/^/| /' conftest.$ac_ext >&5
32426
32427 eval "$as_ac_var=no"
32428 fi
32429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32430 fi
32431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32433 if test `eval echo '${'$as_ac_var'}'` = yes; then
32434   cat >>confdefs.h <<_ACEOF
32435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32436 _ACEOF
32437
32438 else
32439   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32440 fi
32441 done
32442
32443
32444
32445
32446
32447
32448
32449
32450 for ac_func in euidaccess memcmp rmdir rpmatch strndup strverscmp
32451 do
32452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32453 echo "$as_me:$LINENO: checking for $ac_func" >&5
32454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32455 if eval "test \"\${$as_ac_var+set}\" = set"; then
32456   echo $ECHO_N "(cached) $ECHO_C" >&6
32457 else
32458   cat >conftest.$ac_ext <<_ACEOF
32459 #line $LINENO "configure"
32460 /* confdefs.h.  */
32461 _ACEOF
32462 cat confdefs.h >>conftest.$ac_ext
32463 cat >>conftest.$ac_ext <<_ACEOF
32464 /* end confdefs.h.  */
32465 /* System header to define __stub macros and hopefully few prototypes,
32466     which can conflict with char $ac_func (); below.
32467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32468     <limits.h> exists even on freestanding compilers.  */
32469 #ifdef __STDC__
32470 # include <limits.h>
32471 #else
32472 # include <assert.h>
32473 #endif
32474 /* Override any gcc2 internal prototype to avoid an error.  */
32475 #ifdef __cplusplus
32476 extern "C"
32477 {
32478 #endif
32479 /* We use char because int might match the return type of a gcc2
32480    builtin and then its argument prototype would still apply.  */
32481 char $ac_func ();
32482 /* The GNU C library defines this for functions which it implements
32483     to always fail with ENOSYS.  Some functions are actually named
32484     something starting with __ and the normal name is an alias.  */
32485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32486 choke me
32487 #else
32488 char (*f) () = $ac_func;
32489 #endif
32490 #ifdef __cplusplus
32491 }
32492 #endif
32493
32494 int
32495 main ()
32496 {
32497 return f != $ac_func;
32498   ;
32499   return 0;
32500 }
32501 _ACEOF
32502 rm -f conftest.$ac_objext conftest$ac_exeext
32503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32504   (eval $ac_link) 2>&5
32505   ac_status=$?
32506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507   (exit $ac_status); } &&
32508          { ac_try='test -s conftest$ac_exeext'
32509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32510   (eval $ac_try) 2>&5
32511   ac_status=$?
32512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32513   (exit $ac_status); }; }; then
32514   eval "$as_ac_var=yes"
32515 else
32516   echo "$as_me: failed program was:" >&5
32517 sed 's/^/| /' conftest.$ac_ext >&5
32518
32519 eval "$as_ac_var=no"
32520 fi
32521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32522 fi
32523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32525 if test `eval echo '${'$as_ac_var'}'` = yes; then
32526   cat >>confdefs.h <<_ACEOF
32527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32528 _ACEOF
32529
32530 else
32531   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32532 fi
32533 done
32534
32535
32536
32537 for ac_func in atexit
32538 do
32539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32540 echo "$as_me:$LINENO: checking for $ac_func" >&5
32541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32542 if eval "test \"\${$as_ac_var+set}\" = set"; then
32543   echo $ECHO_N "(cached) $ECHO_C" >&6
32544 else
32545   cat >conftest.$ac_ext <<_ACEOF
32546 #line $LINENO "configure"
32547 /* confdefs.h.  */
32548 _ACEOF
32549 cat confdefs.h >>conftest.$ac_ext
32550 cat >>conftest.$ac_ext <<_ACEOF
32551 /* end confdefs.h.  */
32552 /* System header to define __stub macros and hopefully few prototypes,
32553     which can conflict with char $ac_func (); below.
32554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32555     <limits.h> exists even on freestanding compilers.  */
32556 #ifdef __STDC__
32557 # include <limits.h>
32558 #else
32559 # include <assert.h>
32560 #endif
32561 /* Override any gcc2 internal prototype to avoid an error.  */
32562 #ifdef __cplusplus
32563 extern "C"
32564 {
32565 #endif
32566 /* We use char because int might match the return type of a gcc2
32567    builtin and then its argument prototype would still apply.  */
32568 char $ac_func ();
32569 /* The GNU C library defines this for functions which it implements
32570     to always fail with ENOSYS.  Some functions are actually named
32571     something starting with __ and the normal name is an alias.  */
32572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32573 choke me
32574 #else
32575 char (*f) () = $ac_func;
32576 #endif
32577 #ifdef __cplusplus
32578 }
32579 #endif
32580
32581 int
32582 main ()
32583 {
32584 return f != $ac_func;
32585   ;
32586   return 0;
32587 }
32588 _ACEOF
32589 rm -f conftest.$ac_objext conftest$ac_exeext
32590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32591   (eval $ac_link) 2>&5
32592   ac_status=$?
32593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594   (exit $ac_status); } &&
32595          { ac_try='test -s conftest$ac_exeext'
32596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32597   (eval $ac_try) 2>&5
32598   ac_status=$?
32599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32600   (exit $ac_status); }; }; then
32601   eval "$as_ac_var=yes"
32602 else
32603   echo "$as_me: failed program was:" >&5
32604 sed 's/^/| /' conftest.$ac_ext >&5
32605
32606 eval "$as_ac_var=no"
32607 fi
32608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32609 fi
32610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32612 if test `eval echo '${'$as_ac_var'}'` = yes; then
32613   cat >>confdefs.h <<_ACEOF
32614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32615 _ACEOF
32616
32617 else
32618   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32619 fi
32620 done
32621
32622
32623
32624 for ac_func in getpass
32625 do
32626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32627 echo "$as_me:$LINENO: checking for $ac_func" >&5
32628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32629 if eval "test \"\${$as_ac_var+set}\" = set"; then
32630   echo $ECHO_N "(cached) $ECHO_C" >&6
32631 else
32632   cat >conftest.$ac_ext <<_ACEOF
32633 #line $LINENO "configure"
32634 /* confdefs.h.  */
32635 _ACEOF
32636 cat confdefs.h >>conftest.$ac_ext
32637 cat >>conftest.$ac_ext <<_ACEOF
32638 /* end confdefs.h.  */
32639 /* System header to define __stub macros and hopefully few prototypes,
32640     which can conflict with char $ac_func (); below.
32641     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32642     <limits.h> exists even on freestanding compilers.  */
32643 #ifdef __STDC__
32644 # include <limits.h>
32645 #else
32646 # include <assert.h>
32647 #endif
32648 /* Override any gcc2 internal prototype to avoid an error.  */
32649 #ifdef __cplusplus
32650 extern "C"
32651 {
32652 #endif
32653 /* We use char because int might match the return type of a gcc2
32654    builtin and then its argument prototype would still apply.  */
32655 char $ac_func ();
32656 /* The GNU C library defines this for functions which it implements
32657     to always fail with ENOSYS.  Some functions are actually named
32658     something starting with __ and the normal name is an alias.  */
32659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32660 choke me
32661 #else
32662 char (*f) () = $ac_func;
32663 #endif
32664 #ifdef __cplusplus
32665 }
32666 #endif
32667
32668 int
32669 main ()
32670 {
32671 return f != $ac_func;
32672   ;
32673   return 0;
32674 }
32675 _ACEOF
32676 rm -f conftest.$ac_objext conftest$ac_exeext
32677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32678   (eval $ac_link) 2>&5
32679   ac_status=$?
32680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681   (exit $ac_status); } &&
32682          { ac_try='test -s conftest$ac_exeext'
32683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32684   (eval $ac_try) 2>&5
32685   ac_status=$?
32686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32687   (exit $ac_status); }; }; then
32688   eval "$as_ac_var=yes"
32689 else
32690   echo "$as_me: failed program was:" >&5
32691 sed 's/^/| /' conftest.$ac_ext >&5
32692
32693 eval "$as_ac_var=no"
32694 fi
32695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32696 fi
32697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32699 if test `eval echo '${'$as_ac_var'}'` = yes; then
32700   cat >>confdefs.h <<_ACEOF
32701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32702 _ACEOF
32703
32704 else
32705   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32706 fi
32707 done
32708
32709
32710
32711   # raise is used by at least sort and ls.
32712
32713 for ac_func in raise
32714 do
32715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32716 echo "$as_me:$LINENO: checking for $ac_func" >&5
32717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32718 if eval "test \"\${$as_ac_var+set}\" = set"; then
32719   echo $ECHO_N "(cached) $ECHO_C" >&6
32720 else
32721   cat >conftest.$ac_ext <<_ACEOF
32722 #line $LINENO "configure"
32723 /* confdefs.h.  */
32724 _ACEOF
32725 cat confdefs.h >>conftest.$ac_ext
32726 cat >>conftest.$ac_ext <<_ACEOF
32727 /* end confdefs.h.  */
32728 /* System header to define __stub macros and hopefully few prototypes,
32729     which can conflict with char $ac_func (); below.
32730     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32731     <limits.h> exists even on freestanding compilers.  */
32732 #ifdef __STDC__
32733 # include <limits.h>
32734 #else
32735 # include <assert.h>
32736 #endif
32737 /* Override any gcc2 internal prototype to avoid an error.  */
32738 #ifdef __cplusplus
32739 extern "C"
32740 {
32741 #endif
32742 /* We use char because int might match the return type of a gcc2
32743    builtin and then its argument prototype would still apply.  */
32744 char $ac_func ();
32745 /* The GNU C library defines this for functions which it implements
32746     to always fail with ENOSYS.  Some functions are actually named
32747     something starting with __ and the normal name is an alias.  */
32748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32749 choke me
32750 #else
32751 char (*f) () = $ac_func;
32752 #endif
32753 #ifdef __cplusplus
32754 }
32755 #endif
32756
32757 int
32758 main ()
32759 {
32760 return f != $ac_func;
32761   ;
32762   return 0;
32763 }
32764 _ACEOF
32765 rm -f conftest.$ac_objext conftest$ac_exeext
32766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32767   (eval $ac_link) 2>&5
32768   ac_status=$?
32769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32770   (exit $ac_status); } &&
32771          { ac_try='test -s conftest$ac_exeext'
32772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32773   (eval $ac_try) 2>&5
32774   ac_status=$?
32775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32776   (exit $ac_status); }; }; then
32777   eval "$as_ac_var=yes"
32778 else
32779   echo "$as_me: failed program was:" >&5
32780 sed 's/^/| /' conftest.$ac_ext >&5
32781
32782 eval "$as_ac_var=no"
32783 fi
32784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32785 fi
32786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32788 if test `eval echo '${'$as_ac_var'}'` = yes; then
32789   cat >>confdefs.h <<_ACEOF
32790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32791 _ACEOF
32792
32793 else
32794   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32795 fi
32796 done
32797
32798
32799
32800
32801 for ac_func in strdup
32802 do
32803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32804 echo "$as_me:$LINENO: checking for $ac_func" >&5
32805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32806 if eval "test \"\${$as_ac_var+set}\" = set"; then
32807   echo $ECHO_N "(cached) $ECHO_C" >&6
32808 else
32809   cat >conftest.$ac_ext <<_ACEOF
32810 #line $LINENO "configure"
32811 /* confdefs.h.  */
32812 _ACEOF
32813 cat confdefs.h >>conftest.$ac_ext
32814 cat >>conftest.$ac_ext <<_ACEOF
32815 /* end confdefs.h.  */
32816 /* System header to define __stub macros and hopefully few prototypes,
32817     which can conflict with char $ac_func (); below.
32818     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32819     <limits.h> exists even on freestanding compilers.  */
32820 #ifdef __STDC__
32821 # include <limits.h>
32822 #else
32823 # include <assert.h>
32824 #endif
32825 /* Override any gcc2 internal prototype to avoid an error.  */
32826 #ifdef __cplusplus
32827 extern "C"
32828 {
32829 #endif
32830 /* We use char because int might match the return type of a gcc2
32831    builtin and then its argument prototype would still apply.  */
32832 char $ac_func ();
32833 /* The GNU C library defines this for functions which it implements
32834     to always fail with ENOSYS.  Some functions are actually named
32835     something starting with __ and the normal name is an alias.  */
32836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32837 choke me
32838 #else
32839 char (*f) () = $ac_func;
32840 #endif
32841 #ifdef __cplusplus
32842 }
32843 #endif
32844
32845 int
32846 main ()
32847 {
32848 return f != $ac_func;
32849   ;
32850   return 0;
32851 }
32852 _ACEOF
32853 rm -f conftest.$ac_objext conftest$ac_exeext
32854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32855   (eval $ac_link) 2>&5
32856   ac_status=$?
32857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858   (exit $ac_status); } &&
32859          { ac_try='test -s conftest$ac_exeext'
32860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32861   (eval $ac_try) 2>&5
32862   ac_status=$?
32863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32864   (exit $ac_status); }; }; then
32865   eval "$as_ac_var=yes"
32866 else
32867   echo "$as_me: failed program was:" >&5
32868 sed 's/^/| /' conftest.$ac_ext >&5
32869
32870 eval "$as_ac_var=no"
32871 fi
32872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32873 fi
32874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32876 if test `eval echo '${'$as_ac_var'}'` = yes; then
32877   cat >>confdefs.h <<_ACEOF
32878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32879 _ACEOF
32880
32881 else
32882   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32883 fi
32884 done
32885
32886
32887
32888
32889
32890
32891
32892
32893 for ac_func in memchr memcpy memmove memrchr memset
32894 do
32895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32896 echo "$as_me:$LINENO: checking for $ac_func" >&5
32897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32898 if eval "test \"\${$as_ac_var+set}\" = set"; then
32899   echo $ECHO_N "(cached) $ECHO_C" >&6
32900 else
32901   cat >conftest.$ac_ext <<_ACEOF
32902 #line $LINENO "configure"
32903 /* confdefs.h.  */
32904 _ACEOF
32905 cat confdefs.h >>conftest.$ac_ext
32906 cat >>conftest.$ac_ext <<_ACEOF
32907 /* end confdefs.h.  */
32908 /* System header to define __stub macros and hopefully few prototypes,
32909     which can conflict with char $ac_func (); below.
32910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32911     <limits.h> exists even on freestanding compilers.  */
32912 #ifdef __STDC__
32913 # include <limits.h>
32914 #else
32915 # include <assert.h>
32916 #endif
32917 /* Override any gcc2 internal prototype to avoid an error.  */
32918 #ifdef __cplusplus
32919 extern "C"
32920 {
32921 #endif
32922 /* We use char because int might match the return type of a gcc2
32923    builtin and then its argument prototype would still apply.  */
32924 char $ac_func ();
32925 /* The GNU C library defines this for functions which it implements
32926     to always fail with ENOSYS.  Some functions are actually named
32927     something starting with __ and the normal name is an alias.  */
32928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32929 choke me
32930 #else
32931 char (*f) () = $ac_func;
32932 #endif
32933 #ifdef __cplusplus
32934 }
32935 #endif
32936
32937 int
32938 main ()
32939 {
32940 return f != $ac_func;
32941   ;
32942   return 0;
32943 }
32944 _ACEOF
32945 rm -f conftest.$ac_objext conftest$ac_exeext
32946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32947   (eval $ac_link) 2>&5
32948   ac_status=$?
32949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950   (exit $ac_status); } &&
32951          { ac_try='test -s conftest$ac_exeext'
32952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32953   (eval $ac_try) 2>&5
32954   ac_status=$?
32955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32956   (exit $ac_status); }; }; then
32957   eval "$as_ac_var=yes"
32958 else
32959   echo "$as_me: failed program was:" >&5
32960 sed 's/^/| /' conftest.$ac_ext >&5
32961
32962 eval "$as_ac_var=no"
32963 fi
32964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32965 fi
32966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32968 if test `eval echo '${'$as_ac_var'}'` = yes; then
32969   cat >>confdefs.h <<_ACEOF
32970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32971 _ACEOF
32972
32973 else
32974   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
32975 fi
32976 done
32977
32978
32979
32980 for ac_func in getpagesize
32981 do
32982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32983 echo "$as_me:$LINENO: checking for $ac_func" >&5
32984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32985 if eval "test \"\${$as_ac_var+set}\" = set"; then
32986   echo $ECHO_N "(cached) $ECHO_C" >&6
32987 else
32988   cat >conftest.$ac_ext <<_ACEOF
32989 #line $LINENO "configure"
32990 /* confdefs.h.  */
32991 _ACEOF
32992 cat confdefs.h >>conftest.$ac_ext
32993 cat >>conftest.$ac_ext <<_ACEOF
32994 /* end confdefs.h.  */
32995 /* System header to define __stub macros and hopefully few prototypes,
32996     which can conflict with char $ac_func (); below.
32997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32998     <limits.h> exists even on freestanding compilers.  */
32999 #ifdef __STDC__
33000 # include <limits.h>
33001 #else
33002 # include <assert.h>
33003 #endif
33004 /* Override any gcc2 internal prototype to avoid an error.  */
33005 #ifdef __cplusplus
33006 extern "C"
33007 {
33008 #endif
33009 /* We use char because int might match the return type of a gcc2
33010    builtin and then its argument prototype would still apply.  */
33011 char $ac_func ();
33012 /* The GNU C library defines this for functions which it implements
33013     to always fail with ENOSYS.  Some functions are actually named
33014     something starting with __ and the normal name is an alias.  */
33015 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33016 choke me
33017 #else
33018 char (*f) () = $ac_func;
33019 #endif
33020 #ifdef __cplusplus
33021 }
33022 #endif
33023
33024 int
33025 main ()
33026 {
33027 return f != $ac_func;
33028   ;
33029   return 0;
33030 }
33031 _ACEOF
33032 rm -f conftest.$ac_objext conftest$ac_exeext
33033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33034   (eval $ac_link) 2>&5
33035   ac_status=$?
33036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037   (exit $ac_status); } &&
33038          { ac_try='test -s conftest$ac_exeext'
33039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33040   (eval $ac_try) 2>&5
33041   ac_status=$?
33042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043   (exit $ac_status); }; }; then
33044   eval "$as_ac_var=yes"
33045 else
33046   echo "$as_me: failed program was:" >&5
33047 sed 's/^/| /' conftest.$ac_ext >&5
33048
33049 eval "$as_ac_var=no"
33050 fi
33051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33052 fi
33053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33054 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33055 if test `eval echo '${'$as_ac_var'}'` = yes; then
33056   cat >>confdefs.h <<_ACEOF
33057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33058 _ACEOF
33059
33060 fi
33061 done
33062
33063
33064
33065
33066   # By default, argmatch should fail calling usage (1).
33067
33068 cat >>confdefs.h <<\_ACEOF
33069 #define ARGMATCH_DIE usage (1)
33070 _ACEOF
33071
33072
33073 cat >>confdefs.h <<\_ACEOF
33074 #define ARGMATCH_DIE_DECL extern void usage ()
33075 _ACEOF
33076
33077
33078         echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
33079 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
33080 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
33081   echo $ECHO_N "(cached) $ECHO_C" >&6
33082 else
33083   ac_cv_func_setvbuf_reversed=no
33084    cat >conftest.$ac_ext <<_ACEOF
33085 #line $LINENO "configure"
33086 /* confdefs.h.  */
33087 _ACEOF
33088 cat confdefs.h >>conftest.$ac_ext
33089 cat >>conftest.$ac_ext <<_ACEOF
33090 /* end confdefs.h.  */
33091 #include <stdio.h>
33092 #         if PROTOTYPES
33093            int (setvbuf) (FILE *, int, char *, size_t);
33094 #         endif
33095 int
33096 main ()
33097 {
33098 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
33099   ;
33100   return 0;
33101 }
33102 _ACEOF
33103 rm -f conftest.$ac_objext conftest$ac_exeext
33104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33105   (eval $ac_link) 2>&5
33106   ac_status=$?
33107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108   (exit $ac_status); } &&
33109          { ac_try='test -s conftest$ac_exeext'
33110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33111   (eval $ac_try) 2>&5
33112   ac_status=$?
33113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33114   (exit $ac_status); }; }; then
33115   cat >conftest.$ac_ext <<_ACEOF
33116 #line $LINENO "configure"
33117 /* confdefs.h.  */
33118 _ACEOF
33119 cat confdefs.h >>conftest.$ac_ext
33120 cat >>conftest.$ac_ext <<_ACEOF
33121 /* end confdefs.h.  */
33122 #include <stdio.h>
33123 #            if PROTOTYPES
33124               int (setvbuf) (FILE *, int, char *, size_t);
33125 #            endif
33126 int
33127 main ()
33128 {
33129 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
33130   ;
33131   return 0;
33132 }
33133 _ACEOF
33134 rm -f conftest.$ac_objext conftest$ac_exeext
33135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33136   (eval $ac_link) 2>&5
33137   ac_status=$?
33138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33139   (exit $ac_status); } &&
33140          { ac_try='test -s conftest$ac_exeext'
33141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33142   (eval $ac_try) 2>&5
33143   ac_status=$?
33144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33145   (exit $ac_status); }; }; then
33146   # It compiles and links either way, so it must not be declared
33147          # with a prototype and most likely this is a K&R C compiler.
33148          # Try running it.
33149          if test "$cross_compiling" = yes; then
33150   : # Assume setvbuf is not reversed when cross-compiling.
33151 else
33152   cat >conftest.$ac_ext <<_ACEOF
33153 #line $LINENO "configure"
33154 /* confdefs.h.  */
33155 _ACEOF
33156 cat confdefs.h >>conftest.$ac_ext
33157 cat >>conftest.$ac_ext <<_ACEOF
33158 /* end confdefs.h.  */
33159 #include <stdio.h>
33160 int
33161 main ()
33162 {
33163 /* This call has the arguments reversed.
33164                    A reversed system may check and see that the address of buf
33165                    is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
33166                 char buf;
33167                 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
33168                   exit (1);
33169                 putchar ('\r');
33170                 exit (0); /* Non-reversed systems SEGV here.  */
33171   ;
33172   return 0;
33173 }
33174 _ACEOF
33175 rm -f conftest$ac_exeext
33176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33177   (eval $ac_link) 2>&5
33178   ac_status=$?
33179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33180   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33182   (eval $ac_try) 2>&5
33183   ac_status=$?
33184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185   (exit $ac_status); }; }; then
33186   ac_cv_func_setvbuf_reversed=yes
33187 else
33188   echo "$as_me: program exited with status $ac_status" >&5
33189 echo "$as_me: failed program was:" >&5
33190 sed 's/^/| /' conftest.$ac_ext >&5
33191
33192 ( exit $ac_status )
33193 rm -f core core.* *.core
33194 fi
33195 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33196 fi
33197         ac_cv_func_setvbuf_reversed=yes
33198 else
33199   echo "$as_me: failed program was:" >&5
33200 sed 's/^/| /' conftest.$ac_ext >&5
33201
33202 fi
33203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33204 else
33205   echo "$as_me: failed program was:" >&5
33206 sed 's/^/| /' conftest.$ac_ext >&5
33207
33208 fi
33209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33210 fi
33211 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
33212 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
33213 if test $ac_cv_func_setvbuf_reversed = yes; then
33214
33215 cat >>confdefs.h <<\_ACEOF
33216 #define SETVBUF_REVERSED 1
33217 _ACEOF
33218
33219 fi
33220
33221
33222   # used by sleep and shred
33223   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
33224   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
33225
33226   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
33227   # programs in the package would end up linked with that potentially-shared
33228   # library, inducing unnecessary run-time overhead.
33229   fetish_saved_libs=$LIBS
33230
33231   echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
33232 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
33233 if test "${ac_cv_search_clock_gettime+set}" = set; then
33234   echo $ECHO_N "(cached) $ECHO_C" >&6
33235 else
33236
33237     ac_func_search_save_LIBS=$LIBS
33238     ac_cv_search_clock_gettime=no
33239     cat >conftest.$ac_ext <<_ACEOF
33240 #line $LINENO "configure"
33241 /* confdefs.h.  */
33242 _ACEOF
33243 cat confdefs.h >>conftest.$ac_ext
33244 cat >>conftest.$ac_ext <<_ACEOF
33245 /* end confdefs.h.  */
33246
33247 /* Override any gcc2 internal prototype to avoid an error.  */
33248 #ifdef __cplusplus
33249 extern "C"
33250 #endif
33251 /* We use char because int might match the return type of a gcc2
33252    builtin and then its argument prototype would still apply.  */
33253 char clock_gettime ();
33254 int
33255 main ()
33256 {
33257 clock_gettime ();
33258   ;
33259   return 0;
33260 }
33261 _ACEOF
33262 rm -f conftest.$ac_objext conftest$ac_exeext
33263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33264   (eval $ac_link) 2>&5
33265   ac_status=$?
33266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267   (exit $ac_status); } &&
33268          { ac_try='test -s conftest$ac_exeext'
33269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33270   (eval $ac_try) 2>&5
33271   ac_status=$?
33272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273   (exit $ac_status); }; }; then
33274   ac_cv_search_clock_gettime='none required'
33275 else
33276   echo "$as_me: failed program was:" >&5
33277 sed 's/^/| /' conftest.$ac_ext >&5
33278
33279 fi
33280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33281     if test "$ac_cv_search_clock_gettime" = no; then
33282       for ac_lib in rt posix4; do
33283         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
33284         cat >conftest.$ac_ext <<_ACEOF
33285 #line $LINENO "configure"
33286 /* confdefs.h.  */
33287 _ACEOF
33288 cat confdefs.h >>conftest.$ac_ext
33289 cat >>conftest.$ac_ext <<_ACEOF
33290 /* end confdefs.h.  */
33291
33292 /* Override any gcc2 internal prototype to avoid an error.  */
33293 #ifdef __cplusplus
33294 extern "C"
33295 #endif
33296 /* We use char because int might match the return type of a gcc2
33297    builtin and then its argument prototype would still apply.  */
33298 char clock_gettime ();
33299 int
33300 main ()
33301 {
33302 clock_gettime ();
33303   ;
33304   return 0;
33305 }
33306 _ACEOF
33307 rm -f conftest.$ac_objext conftest$ac_exeext
33308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33309   (eval $ac_link) 2>&5
33310   ac_status=$?
33311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312   (exit $ac_status); } &&
33313          { ac_try='test -s conftest$ac_exeext'
33314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33315   (eval $ac_try) 2>&5
33316   ac_status=$?
33317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33318   (exit $ac_status); }; }; then
33319   ac_cv_search_clock_gettime="-l$ac_lib"; break
33320 else
33321   echo "$as_me: failed program was:" >&5
33322 sed 's/^/| /' conftest.$ac_ext >&5
33323
33324 fi
33325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33326       done
33327     fi
33328     LIBS=$ac_func_search_save_LIBS
33329
33330 fi
33331 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
33332 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
33333
33334   if test "$ac_cv_search_clock_gettime" = no; then :
33335
33336   else
33337     if test "$ac_cv_search_clock_gettime" = 'none required'; then :
33338
33339     else
33340       LIBS="$ac_cv_search_clock_gettime $LIBS"
33341       LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
33342     fi
33343   fi
33344
33345
33346
33347
33348 for ac_func in clock_gettime clock_settime
33349 do
33350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33351 echo "$as_me:$LINENO: checking for $ac_func" >&5
33352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33353 if eval "test \"\${$as_ac_var+set}\" = set"; then
33354   echo $ECHO_N "(cached) $ECHO_C" >&6
33355 else
33356   cat >conftest.$ac_ext <<_ACEOF
33357 #line $LINENO "configure"
33358 /* confdefs.h.  */
33359 _ACEOF
33360 cat confdefs.h >>conftest.$ac_ext
33361 cat >>conftest.$ac_ext <<_ACEOF
33362 /* end confdefs.h.  */
33363 /* System header to define __stub macros and hopefully few prototypes,
33364     which can conflict with char $ac_func (); below.
33365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33366     <limits.h> exists even on freestanding compilers.  */
33367 #ifdef __STDC__
33368 # include <limits.h>
33369 #else
33370 # include <assert.h>
33371 #endif
33372 /* Override any gcc2 internal prototype to avoid an error.  */
33373 #ifdef __cplusplus
33374 extern "C"
33375 {
33376 #endif
33377 /* We use char because int might match the return type of a gcc2
33378    builtin and then its argument prototype would still apply.  */
33379 char $ac_func ();
33380 /* The GNU C library defines this for functions which it implements
33381     to always fail with ENOSYS.  Some functions are actually named
33382     something starting with __ and the normal name is an alias.  */
33383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33384 choke me
33385 #else
33386 char (*f) () = $ac_func;
33387 #endif
33388 #ifdef __cplusplus
33389 }
33390 #endif
33391
33392 int
33393 main ()
33394 {
33395 return f != $ac_func;
33396   ;
33397   return 0;
33398 }
33399 _ACEOF
33400 rm -f conftest.$ac_objext conftest$ac_exeext
33401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33402   (eval $ac_link) 2>&5
33403   ac_status=$?
33404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33405   (exit $ac_status); } &&
33406          { ac_try='test -s conftest$ac_exeext'
33407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33408   (eval $ac_try) 2>&5
33409   ac_status=$?
33410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33411   (exit $ac_status); }; }; then
33412   eval "$as_ac_var=yes"
33413 else
33414   echo "$as_me: failed program was:" >&5
33415 sed 's/^/| /' conftest.$ac_ext >&5
33416
33417 eval "$as_ac_var=no"
33418 fi
33419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33420 fi
33421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33423 if test `eval echo '${'$as_ac_var'}'` = yes; then
33424   cat >>confdefs.h <<_ACEOF
33425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33426 _ACEOF
33427
33428 fi
33429 done
33430
33431   LIBS=$fetish_saved_libs
33432
33433 for ac_func in gettimeofday
33434 do
33435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33436 echo "$as_me:$LINENO: checking for $ac_func" >&5
33437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33438 if eval "test \"\${$as_ac_var+set}\" = set"; then
33439   echo $ECHO_N "(cached) $ECHO_C" >&6
33440 else
33441   cat >conftest.$ac_ext <<_ACEOF
33442 #line $LINENO "configure"
33443 /* confdefs.h.  */
33444 _ACEOF
33445 cat confdefs.h >>conftest.$ac_ext
33446 cat >>conftest.$ac_ext <<_ACEOF
33447 /* end confdefs.h.  */
33448 /* System header to define __stub macros and hopefully few prototypes,
33449     which can conflict with char $ac_func (); below.
33450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33451     <limits.h> exists even on freestanding compilers.  */
33452 #ifdef __STDC__
33453 # include <limits.h>
33454 #else
33455 # include <assert.h>
33456 #endif
33457 /* Override any gcc2 internal prototype to avoid an error.  */
33458 #ifdef __cplusplus
33459 extern "C"
33460 {
33461 #endif
33462 /* We use char because int might match the return type of a gcc2
33463    builtin and then its argument prototype would still apply.  */
33464 char $ac_func ();
33465 /* The GNU C library defines this for functions which it implements
33466     to always fail with ENOSYS.  Some functions are actually named
33467     something starting with __ and the normal name is an alias.  */
33468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33469 choke me
33470 #else
33471 char (*f) () = $ac_func;
33472 #endif
33473 #ifdef __cplusplus
33474 }
33475 #endif
33476
33477 int
33478 main ()
33479 {
33480 return f != $ac_func;
33481   ;
33482   return 0;
33483 }
33484 _ACEOF
33485 rm -f conftest.$ac_objext conftest$ac_exeext
33486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33487   (eval $ac_link) 2>&5
33488   ac_status=$?
33489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33490   (exit $ac_status); } &&
33491          { ac_try='test -s conftest$ac_exeext'
33492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33493   (eval $ac_try) 2>&5
33494   ac_status=$?
33495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33496   (exit $ac_status); }; }; then
33497   eval "$as_ac_var=yes"
33498 else
33499   echo "$as_me: failed program was:" >&5
33500 sed 's/^/| /' conftest.$ac_ext >&5
33501
33502 eval "$as_ac_var=no"
33503 fi
33504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33505 fi
33506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33508 if test `eval echo '${'$as_ac_var'}'` = yes; then
33509   cat >>confdefs.h <<_ACEOF
33510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33511 _ACEOF
33512
33513 fi
33514 done
33515
33516
33517
33518
33519
33520 for ac_header in string.h stdlib.h
33521 do
33522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33524   echo "$as_me:$LINENO: checking for $ac_header" >&5
33525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33527   echo $ECHO_N "(cached) $ECHO_C" >&6
33528 fi
33529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33531 else
33532   # Is the header compilable?
33533 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33535 cat >conftest.$ac_ext <<_ACEOF
33536 #line $LINENO "configure"
33537 /* confdefs.h.  */
33538 _ACEOF
33539 cat confdefs.h >>conftest.$ac_ext
33540 cat >>conftest.$ac_ext <<_ACEOF
33541 /* end confdefs.h.  */
33542 $ac_includes_default
33543 #include <$ac_header>
33544 _ACEOF
33545 rm -f conftest.$ac_objext
33546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33547   (eval $ac_compile) 2>&5
33548   ac_status=$?
33549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33550   (exit $ac_status); } &&
33551          { ac_try='test -s conftest.$ac_objext'
33552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33553   (eval $ac_try) 2>&5
33554   ac_status=$?
33555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33556   (exit $ac_status); }; }; then
33557   ac_header_compiler=yes
33558 else
33559   echo "$as_me: failed program was:" >&5
33560 sed 's/^/| /' conftest.$ac_ext >&5
33561
33562 ac_header_compiler=no
33563 fi
33564 rm -f conftest.$ac_objext conftest.$ac_ext
33565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33566 echo "${ECHO_T}$ac_header_compiler" >&6
33567
33568 # Is the header present?
33569 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33571 cat >conftest.$ac_ext <<_ACEOF
33572 #line $LINENO "configure"
33573 /* confdefs.h.  */
33574 _ACEOF
33575 cat confdefs.h >>conftest.$ac_ext
33576 cat >>conftest.$ac_ext <<_ACEOF
33577 /* end confdefs.h.  */
33578 #include <$ac_header>
33579 _ACEOF
33580 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33581   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33582   ac_status=$?
33583   grep -v '^ *+' conftest.er1 >conftest.err
33584   rm -f conftest.er1
33585   cat conftest.err >&5
33586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33587   (exit $ac_status); } >/dev/null; then
33588   if test -s conftest.err; then
33589     ac_cpp_err=$ac_c_preproc_warn_flag
33590   else
33591     ac_cpp_err=
33592   fi
33593 else
33594   ac_cpp_err=yes
33595 fi
33596 if test -z "$ac_cpp_err"; then
33597   ac_header_preproc=yes
33598 else
33599   echo "$as_me: failed program was:" >&5
33600 sed 's/^/| /' conftest.$ac_ext >&5
33601
33602   ac_header_preproc=no
33603 fi
33604 rm -f conftest.err conftest.$ac_ext
33605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33606 echo "${ECHO_T}$ac_header_preproc" >&6
33607
33608 # So?  What about this header?
33609 case $ac_header_compiler:$ac_header_preproc in
33610   yes:no )
33611     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33613     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33615     (
33616       cat <<\_ASBOX
33617 ## ------------------------------------ ##
33618 ## Report this to bug-autoconf@gnu.org. ##
33619 ## ------------------------------------ ##
33620 _ASBOX
33621     ) |
33622       sed "s/^/$as_me: WARNING:     /" >&2
33623     ;;
33624   no:yes )
33625     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33626 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33627     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33628 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33629     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33631     (
33632       cat <<\_ASBOX
33633 ## ------------------------------------ ##
33634 ## Report this to bug-autoconf@gnu.org. ##
33635 ## ------------------------------------ ##
33636 _ASBOX
33637     ) |
33638       sed "s/^/$as_me: WARNING:     /" >&2
33639     ;;
33640 esac
33641 echo "$as_me:$LINENO: checking for $ac_header" >&5
33642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33644   echo $ECHO_N "(cached) $ECHO_C" >&6
33645 else
33646   eval "$as_ac_Header=$ac_header_preproc"
33647 fi
33648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33650
33651 fi
33652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33653   cat >>confdefs.h <<_ACEOF
33654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33655 _ACEOF
33656
33657 fi
33658
33659 done
33660
33661  echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
33662 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6
33663 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
33664   echo $ECHO_N "(cached) $ECHO_C" >&6
33665 else
33666   if test "$cross_compiling" = yes; then
33667          jm_cv_func_gettimeofday_clobber=yes
33668 else
33669   cat >conftest.$ac_ext <<_ACEOF
33670 #line $LINENO "configure"
33671 /* confdefs.h.  */
33672 _ACEOF
33673 cat confdefs.h >>conftest.$ac_ext
33674 cat >>conftest.$ac_ext <<_ACEOF
33675 /* end confdefs.h.  */
33676
33677 #include <stdio.h>
33678 #if HAVE_STRING_H
33679 # include <string.h>
33680 #endif
33681
33682 #if TIME_WITH_SYS_TIME
33683 # include <sys/time.h>
33684 # include <time.h>
33685 #else
33686 # if HAVE_SYS_TIME_H
33687 #  include <sys/time.h>
33688 # else
33689 #  include <time.h>
33690 # endif
33691 #endif
33692
33693 #if HAVE_STDLIB_H
33694 # include <stdlib.h>
33695 #endif
33696
33697 int
33698 main ()
33699 {
33700   time_t t = 0;
33701   struct tm *lt;
33702   struct tm saved_lt;
33703   struct timeval tv;
33704   lt = localtime (&t);
33705   saved_lt = *lt;
33706   gettimeofday (&tv, NULL);
33707   if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
33708     exit (1);
33709
33710   exit (0);
33711 }
33712
33713 _ACEOF
33714 rm -f conftest$ac_exeext
33715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33716   (eval $ac_link) 2>&5
33717   ac_status=$?
33718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33721   (eval $ac_try) 2>&5
33722   ac_status=$?
33723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33724   (exit $ac_status); }; }; then
33725   jm_cv_func_gettimeofday_clobber=no
33726 else
33727   echo "$as_me: program exited with status $ac_status" >&5
33728 echo "$as_me: failed program was:" >&5
33729 sed 's/^/| /' conftest.$ac_ext >&5
33730
33731 ( exit $ac_status )
33732 jm_cv_func_gettimeofday_clobber=yes
33733 fi
33734 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33735 fi
33736
33737 fi
33738 echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
33739 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6
33740   if test $jm_cv_func_gettimeofday_clobber = yes; then
33741     LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
33742
33743 cat >>confdefs.h <<\_ACEOF
33744 #define localtime rpl_localtime
33745 _ACEOF
33746
33747
33748 cat >>confdefs.h <<\_ACEOF
33749 #define gettimeofday rpl_gettimeofday
33750 _ACEOF
33751
33752
33753 cat >>confdefs.h <<\_ACEOF
33754 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER 1
33755 _ACEOF
33756
33757   fi
33758
33759
33760
33761
33762
33763
33764
33765
33766
33767
33768
33769
33770
33771
33772
33773
33774
33775
33776
33777
33778
33779
33780
33781
33782
33783
33784
33785
33786
33787
33788
33789
33790
33791 for ac_func in \
33792     bcopy \
33793     endgrent \
33794     endpwent \
33795     fchdir \
33796     fdatasync \
33797     ftime \
33798     ftruncate \
33799     getcwd \
33800     gethrtime \
33801     getmntinfo \
33802     hasmntopt \
33803     isascii \
33804     iswspace \
33805     lchown \
33806     listmntent \
33807     localeconv \
33808     memcpy \
33809     mempcpy \
33810     mkfifo \
33811     realpath \
33812     sethostname \
33813     strchr \
33814     strerror \
33815     strrchr \
33816     sysctl \
33817     sysinfo \
33818     wcrtomb \
33819     tzset \
33820
33821 do
33822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33823 echo "$as_me:$LINENO: checking for $ac_func" >&5
33824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33825 if eval "test \"\${$as_ac_var+set}\" = set"; then
33826   echo $ECHO_N "(cached) $ECHO_C" >&6
33827 else
33828   cat >conftest.$ac_ext <<_ACEOF
33829 #line $LINENO "configure"
33830 /* confdefs.h.  */
33831 _ACEOF
33832 cat confdefs.h >>conftest.$ac_ext
33833 cat >>conftest.$ac_ext <<_ACEOF
33834 /* end confdefs.h.  */
33835 /* System header to define __stub macros and hopefully few prototypes,
33836     which can conflict with char $ac_func (); below.
33837     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33838     <limits.h> exists even on freestanding compilers.  */
33839 #ifdef __STDC__
33840 # include <limits.h>
33841 #else
33842 # include <assert.h>
33843 #endif
33844 /* Override any gcc2 internal prototype to avoid an error.  */
33845 #ifdef __cplusplus
33846 extern "C"
33847 {
33848 #endif
33849 /* We use char because int might match the return type of a gcc2
33850    builtin and then its argument prototype would still apply.  */
33851 char $ac_func ();
33852 /* The GNU C library defines this for functions which it implements
33853     to always fail with ENOSYS.  Some functions are actually named
33854     something starting with __ and the normal name is an alias.  */
33855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33856 choke me
33857 #else
33858 char (*f) () = $ac_func;
33859 #endif
33860 #ifdef __cplusplus
33861 }
33862 #endif
33863
33864 int
33865 main ()
33866 {
33867 return f != $ac_func;
33868   ;
33869   return 0;
33870 }
33871 _ACEOF
33872 rm -f conftest.$ac_objext conftest$ac_exeext
33873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33874   (eval $ac_link) 2>&5
33875   ac_status=$?
33876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33877   (exit $ac_status); } &&
33878          { ac_try='test -s conftest$ac_exeext'
33879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33880   (eval $ac_try) 2>&5
33881   ac_status=$?
33882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33883   (exit $ac_status); }; }; then
33884   eval "$as_ac_var=yes"
33885 else
33886   echo "$as_me: failed program was:" >&5
33887 sed 's/^/| /' conftest.$ac_ext >&5
33888
33889 eval "$as_ac_var=no"
33890 fi
33891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33892 fi
33893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33894 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33895 if test `eval echo '${'$as_ac_var'}'` = yes; then
33896   cat >>confdefs.h <<_ACEOF
33897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33898 _ACEOF
33899
33900 fi
33901 done
33902
33903
33904     am_getline_needs_run_time_check=no
33905   echo "$as_me:$LINENO: checking for getline" >&5
33906 echo $ECHO_N "checking for getline... $ECHO_C" >&6
33907 if test "${ac_cv_func_getline+set}" = set; then
33908   echo $ECHO_N "(cached) $ECHO_C" >&6
33909 else
33910   cat >conftest.$ac_ext <<_ACEOF
33911 #line $LINENO "configure"
33912 /* confdefs.h.  */
33913 _ACEOF
33914 cat confdefs.h >>conftest.$ac_ext
33915 cat >>conftest.$ac_ext <<_ACEOF
33916 /* end confdefs.h.  */
33917 /* System header to define __stub macros and hopefully few prototypes,
33918     which can conflict with char getline (); below.
33919     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33920     <limits.h> exists even on freestanding compilers.  */
33921 #ifdef __STDC__
33922 # include <limits.h>
33923 #else
33924 # include <assert.h>
33925 #endif
33926 /* Override any gcc2 internal prototype to avoid an error.  */
33927 #ifdef __cplusplus
33928 extern "C"
33929 {
33930 #endif
33931 /* We use char because int might match the return type of a gcc2
33932    builtin and then its argument prototype would still apply.  */
33933 char getline ();
33934 /* The GNU C library defines this for functions which it implements
33935     to always fail with ENOSYS.  Some functions are actually named
33936     something starting with __ and the normal name is an alias.  */
33937 #if defined (__stub_getline) || defined (__stub___getline)
33938 choke me
33939 #else
33940 char (*f) () = getline;
33941 #endif
33942 #ifdef __cplusplus
33943 }
33944 #endif
33945
33946 int
33947 main ()
33948 {
33949 return f != getline;
33950   ;
33951   return 0;
33952 }
33953 _ACEOF
33954 rm -f conftest.$ac_objext conftest$ac_exeext
33955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33956   (eval $ac_link) 2>&5
33957   ac_status=$?
33958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33959   (exit $ac_status); } &&
33960          { ac_try='test -s conftest$ac_exeext'
33961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33962   (eval $ac_try) 2>&5
33963   ac_status=$?
33964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33965   (exit $ac_status); }; }; then
33966   ac_cv_func_getline=yes
33967 else
33968   echo "$as_me: failed program was:" >&5
33969 sed 's/^/| /' conftest.$ac_ext >&5
33970
33971 ac_cv_func_getline=no
33972 fi
33973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33974 fi
33975 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
33976 echo "${ECHO_T}$ac_cv_func_getline" >&6
33977 if test $ac_cv_func_getline = yes; then
33978                 am_getline_needs_run_time_check=yes
33979 else
33980   am_cv_func_working_getline=no
33981 fi
33982
33983   if test $am_getline_needs_run_time_check = yes; then
33984     echo "$as_me:$LINENO: checking for working getline function" >&5
33985 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
33986 if test "${am_cv_func_working_getline+set}" = set; then
33987   echo $ECHO_N "(cached) $ECHO_C" >&6
33988 else
33989   echo fooN |tr -d '\012'|tr N '\012' > conftest.data
33990     if test "$cross_compiling" = yes; then
33991   am_cv_func_working_getline=no
33992 else
33993   cat >conftest.$ac_ext <<_ACEOF
33994 #line $LINENO "configure"
33995 /* confdefs.h.  */
33996 _ACEOF
33997 cat confdefs.h >>conftest.$ac_ext
33998 cat >>conftest.$ac_ext <<_ACEOF
33999 /* end confdefs.h.  */
34000
34001 #    include <stdio.h>
34002 #    include <sys/types.h>
34003 #    include <string.h>
34004     int main ()
34005     { /* Based on a test program from Karl Heuer.  */
34006       char *line = NULL;
34007       size_t siz = 0;
34008       int len;
34009       FILE *in = fopen ("./conftest.data", "r");
34010       if (!in)
34011         return 1;
34012       len = getline (&line, &siz, in);
34013       exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
34014     }
34015
34016 _ACEOF
34017 rm -f conftest$ac_exeext
34018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34019   (eval $ac_link) 2>&5
34020   ac_status=$?
34021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34022   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34024   (eval $ac_try) 2>&5
34025   ac_status=$?
34026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027   (exit $ac_status); }; }; then
34028   am_cv_func_working_getline=yes
34029 else
34030   echo "$as_me: program exited with status $ac_status" >&5
34031 echo "$as_me: failed program was:" >&5
34032 sed 's/^/| /' conftest.$ac_ext >&5
34033
34034 ( exit $ac_status )
34035 am_cv_func_working_getline=no
34036 fi
34037 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34038 fi
34039 fi
34040 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
34041 echo "${ECHO_T}$am_cv_func_working_getline" >&6
34042   fi
34043
34044   if test $am_cv_func_working_getline = no; then
34045     LIBOBJS="$LIBOBJS getline.$ac_objext"
34046   fi
34047
34048   if test $am_cv_func_working_getline != yes; then
34049
34050 for ac_func in getdelim
34051 do
34052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34053 echo "$as_me:$LINENO: checking for $ac_func" >&5
34054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34055 if eval "test \"\${$as_ac_var+set}\" = set"; then
34056   echo $ECHO_N "(cached) $ECHO_C" >&6
34057 else
34058   cat >conftest.$ac_ext <<_ACEOF
34059 #line $LINENO "configure"
34060 /* confdefs.h.  */
34061 _ACEOF
34062 cat confdefs.h >>conftest.$ac_ext
34063 cat >>conftest.$ac_ext <<_ACEOF
34064 /* end confdefs.h.  */
34065 /* System header to define __stub macros and hopefully few prototypes,
34066     which can conflict with char $ac_func (); below.
34067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34068     <limits.h> exists even on freestanding compilers.  */
34069 #ifdef __STDC__
34070 # include <limits.h>
34071 #else
34072 # include <assert.h>
34073 #endif
34074 /* Override any gcc2 internal prototype to avoid an error.  */
34075 #ifdef __cplusplus
34076 extern "C"
34077 {
34078 #endif
34079 /* We use char because int might match the return type of a gcc2
34080    builtin and then its argument prototype would still apply.  */
34081 char $ac_func ();
34082 /* The GNU C library defines this for functions which it implements
34083     to always fail with ENOSYS.  Some functions are actually named
34084     something starting with __ and the normal name is an alias.  */
34085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34086 choke me
34087 #else
34088 char (*f) () = $ac_func;
34089 #endif
34090 #ifdef __cplusplus
34091 }
34092 #endif
34093
34094 int
34095 main ()
34096 {
34097 return f != $ac_func;
34098   ;
34099   return 0;
34100 }
34101 _ACEOF
34102 rm -f conftest.$ac_objext conftest$ac_exeext
34103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34104   (eval $ac_link) 2>&5
34105   ac_status=$?
34106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34107   (exit $ac_status); } &&
34108          { ac_try='test -s conftest$ac_exeext'
34109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34110   (eval $ac_try) 2>&5
34111   ac_status=$?
34112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113   (exit $ac_status); }; }; then
34114   eval "$as_ac_var=yes"
34115 else
34116   echo "$as_me: failed program was:" >&5
34117 sed 's/^/| /' conftest.$ac_ext >&5
34118
34119 eval "$as_ac_var=no"
34120 fi
34121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34122 fi
34123 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34124 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34125 if test `eval echo '${'$as_ac_var'}'` = yes; then
34126   cat >>confdefs.h <<_ACEOF
34127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34128 _ACEOF
34129
34130 fi
34131 done
34132
34133   fi
34134   echo "$as_me:$LINENO: checking for obstacks" >&5
34135 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
34136 if test "${ac_cv_func_obstack+set}" = set; then
34137   echo $ECHO_N "(cached) $ECHO_C" >&6
34138 else
34139   cat >conftest.$ac_ext <<_ACEOF
34140 #line $LINENO "configure"
34141 /* confdefs.h.  */
34142 _ACEOF
34143 cat confdefs.h >>conftest.$ac_ext
34144 cat >>conftest.$ac_ext <<_ACEOF
34145 /* end confdefs.h.  */
34146 #include "obstack.h"
34147 int
34148 main ()
34149 {
34150 struct obstack *mem; obstack_free(mem,(char *) 0)
34151   ;
34152   return 0;
34153 }
34154 _ACEOF
34155 rm -f conftest.$ac_objext conftest$ac_exeext
34156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34157   (eval $ac_link) 2>&5
34158   ac_status=$?
34159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34160   (exit $ac_status); } &&
34161          { ac_try='test -s conftest$ac_exeext'
34162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34163   (eval $ac_try) 2>&5
34164   ac_status=$?
34165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34166   (exit $ac_status); }; }; then
34167   ac_cv_func_obstack=yes
34168 else
34169   echo "$as_me: failed program was:" >&5
34170 sed 's/^/| /' conftest.$ac_ext >&5
34171
34172 ac_cv_func_obstack=no
34173 fi
34174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34175 fi
34176 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
34177 echo "${ECHO_T}$ac_cv_func_obstack" >&6
34178 if test $ac_cv_func_obstack = yes; then
34179
34180 cat >>confdefs.h <<\_ACEOF
34181 #define HAVE_OBSTACK 1
34182 _ACEOF
34183
34184 else
34185   LIBOBJS="$LIBOBJS obstack.$ac_objext"
34186 fi
34187
34188
34189   echo "$as_me:$LINENO: checking for working strtod" >&5
34190 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
34191 if test "${ac_cv_func_strtod+set}" = set; then
34192   echo $ECHO_N "(cached) $ECHO_C" >&6
34193 else
34194   if test "$cross_compiling" = yes; then
34195   ac_cv_func_strtod=no
34196 else
34197   cat >conftest.$ac_ext <<_ACEOF
34198 #line $LINENO "configure"
34199 /* confdefs.h.  */
34200 _ACEOF
34201 cat confdefs.h >>conftest.$ac_ext
34202 cat >>conftest.$ac_ext <<_ACEOF
34203 /* end confdefs.h.  */
34204
34205 double strtod ();
34206 int
34207 main()
34208 {
34209   {
34210     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
34211     char *string = " +69";
34212     char *term;
34213     double value;
34214     value = strtod (string, &term);
34215     if (value != 69 || term != (string + 4))
34216       exit (1);
34217   }
34218
34219   {
34220     /* Under Solaris 2.4, strtod returns the wrong value for the
34221        terminating character under some conditions.  */
34222     char *string = "NaN";
34223     char *term;
34224     strtod (string, &term);
34225     if (term != string && *(term - 1) == 0)
34226       exit (1);
34227   }
34228   exit (0);
34229 }
34230
34231 _ACEOF
34232 rm -f conftest$ac_exeext
34233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34234   (eval $ac_link) 2>&5
34235   ac_status=$?
34236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34239   (eval $ac_try) 2>&5
34240   ac_status=$?
34241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34242   (exit $ac_status); }; }; then
34243   ac_cv_func_strtod=yes
34244 else
34245   echo "$as_me: program exited with status $ac_status" >&5
34246 echo "$as_me: failed program was:" >&5
34247 sed 's/^/| /' conftest.$ac_ext >&5
34248
34249 ( exit $ac_status )
34250 ac_cv_func_strtod=no
34251 fi
34252 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34253 fi
34254 fi
34255 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
34256 echo "${ECHO_T}$ac_cv_func_strtod" >&6
34257 if test $ac_cv_func_strtod = no; then
34258   LIBOBJS="$LIBOBJS strtod.$ac_objext"
34259 echo "$as_me:$LINENO: checking for pow" >&5
34260 echo $ECHO_N "checking for pow... $ECHO_C" >&6
34261 if test "${ac_cv_func_pow+set}" = set; then
34262   echo $ECHO_N "(cached) $ECHO_C" >&6
34263 else
34264   cat >conftest.$ac_ext <<_ACEOF
34265 #line $LINENO "configure"
34266 /* confdefs.h.  */
34267 _ACEOF
34268 cat confdefs.h >>conftest.$ac_ext
34269 cat >>conftest.$ac_ext <<_ACEOF
34270 /* end confdefs.h.  */
34271 /* System header to define __stub macros and hopefully few prototypes,
34272     which can conflict with char pow (); below.
34273     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34274     <limits.h> exists even on freestanding compilers.  */
34275 #ifdef __STDC__
34276 # include <limits.h>
34277 #else
34278 # include <assert.h>
34279 #endif
34280 /* Override any gcc2 internal prototype to avoid an error.  */
34281 #ifdef __cplusplus
34282 extern "C"
34283 {
34284 #endif
34285 /* We use char because int might match the return type of a gcc2
34286    builtin and then its argument prototype would still apply.  */
34287 char pow ();
34288 /* The GNU C library defines this for functions which it implements
34289     to always fail with ENOSYS.  Some functions are actually named
34290     something starting with __ and the normal name is an alias.  */
34291 #if defined (__stub_pow) || defined (__stub___pow)
34292 choke me
34293 #else
34294 char (*f) () = pow;
34295 #endif
34296 #ifdef __cplusplus
34297 }
34298 #endif
34299
34300 int
34301 main ()
34302 {
34303 return f != pow;
34304   ;
34305   return 0;
34306 }
34307 _ACEOF
34308 rm -f conftest.$ac_objext conftest$ac_exeext
34309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34310   (eval $ac_link) 2>&5
34311   ac_status=$?
34312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34313   (exit $ac_status); } &&
34314          { ac_try='test -s conftest$ac_exeext'
34315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34316   (eval $ac_try) 2>&5
34317   ac_status=$?
34318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34319   (exit $ac_status); }; }; then
34320   ac_cv_func_pow=yes
34321 else
34322   echo "$as_me: failed program was:" >&5
34323 sed 's/^/| /' conftest.$ac_ext >&5
34324
34325 ac_cv_func_pow=no
34326 fi
34327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34328 fi
34329 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
34330 echo "${ECHO_T}$ac_cv_func_pow" >&6
34331
34332 if test $ac_cv_func_pow = no; then
34333   echo "$as_me:$LINENO: checking for pow in -lm" >&5
34334 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
34335 if test "${ac_cv_lib_m_pow+set}" = set; then
34336   echo $ECHO_N "(cached) $ECHO_C" >&6
34337 else
34338   ac_check_lib_save_LIBS=$LIBS
34339 LIBS="-lm  $LIBS"
34340 cat >conftest.$ac_ext <<_ACEOF
34341 #line $LINENO "configure"
34342 /* confdefs.h.  */
34343 _ACEOF
34344 cat confdefs.h >>conftest.$ac_ext
34345 cat >>conftest.$ac_ext <<_ACEOF
34346 /* end confdefs.h.  */
34347
34348 /* Override any gcc2 internal prototype to avoid an error.  */
34349 #ifdef __cplusplus
34350 extern "C"
34351 #endif
34352 /* We use char because int might match the return type of a gcc2
34353    builtin and then its argument prototype would still apply.  */
34354 char pow ();
34355 int
34356 main ()
34357 {
34358 pow ();
34359   ;
34360   return 0;
34361 }
34362 _ACEOF
34363 rm -f conftest.$ac_objext conftest$ac_exeext
34364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34365   (eval $ac_link) 2>&5
34366   ac_status=$?
34367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34368   (exit $ac_status); } &&
34369          { ac_try='test -s conftest$ac_exeext'
34370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34371   (eval $ac_try) 2>&5
34372   ac_status=$?
34373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34374   (exit $ac_status); }; }; then
34375   ac_cv_lib_m_pow=yes
34376 else
34377   echo "$as_me: failed program was:" >&5
34378 sed 's/^/| /' conftest.$ac_ext >&5
34379
34380 ac_cv_lib_m_pow=no
34381 fi
34382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34383 LIBS=$ac_check_lib_save_LIBS
34384 fi
34385 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
34386 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
34387 if test $ac_cv_lib_m_pow = yes; then
34388   POW_LIB=-lm
34389 else
34390   { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
34391 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
34392 fi
34393
34394 fi
34395
34396 fi
34397
34398
34399
34400   # See if linking `seq' requires -lm.
34401   # It does on nearly every system.  The single exception (so far) is
34402   # BeOS which has all the math functions in the normal runtime library
34403   # and doesn't have a separate math library.
34404
34405
34406   ac_seq_body='
34407      static double x, y;
34408      x = floor (x);
34409      x = rint (x);
34410      x = modf (x, &y);'
34411   cat >conftest.$ac_ext <<_ACEOF
34412 #line $LINENO "configure"
34413 /* confdefs.h.  */
34414 _ACEOF
34415 cat confdefs.h >>conftest.$ac_ext
34416 cat >>conftest.$ac_ext <<_ACEOF
34417 /* end confdefs.h.  */
34418 #include <math.h>
34419 int
34420 main ()
34421 {
34422 $ac_seq_body
34423   ;
34424   return 0;
34425 }
34426 _ACEOF
34427 rm -f conftest.$ac_objext conftest$ac_exeext
34428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34429   (eval $ac_link) 2>&5
34430   ac_status=$?
34431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34432   (exit $ac_status); } &&
34433          { ac_try='test -s conftest$ac_exeext'
34434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34435   (eval $ac_try) 2>&5
34436   ac_status=$?
34437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34438   (exit $ac_status); }; }; then
34439   :
34440 else
34441   echo "$as_me: failed program was:" >&5
34442 sed 's/^/| /' conftest.$ac_ext >&5
34443
34444 ac_seq_save_LIBS="$LIBS"
34445      LIBS="$LIBS -lm"
34446      cat >conftest.$ac_ext <<_ACEOF
34447 #line $LINENO "configure"
34448 /* confdefs.h.  */
34449 _ACEOF
34450 cat confdefs.h >>conftest.$ac_ext
34451 cat >>conftest.$ac_ext <<_ACEOF
34452 /* end confdefs.h.  */
34453 #include <math.h>
34454 int
34455 main ()
34456 {
34457 $ac_seq_body
34458   ;
34459   return 0;
34460 }
34461 _ACEOF
34462 rm -f conftest.$ac_objext conftest$ac_exeext
34463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34464   (eval $ac_link) 2>&5
34465   ac_status=$?
34466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34467   (exit $ac_status); } &&
34468          { ac_try='test -s conftest$ac_exeext'
34469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34470   (eval $ac_try) 2>&5
34471   ac_status=$?
34472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34473   (exit $ac_status); }; }; then
34474   SEQ_LIBM=-lm
34475 else
34476   echo "$as_me: failed program was:" >&5
34477 sed 's/^/| /' conftest.$ac_ext >&5
34478
34479 fi
34480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34481      LIBS="$ac_seq_save_LIBS"
34482
34483 fi
34484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34485
34486
34487   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
34488 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
34489 if test "${am_cv_langinfo_codeset+set}" = set; then
34490   echo $ECHO_N "(cached) $ECHO_C" >&6
34491 else
34492   cat >conftest.$ac_ext <<_ACEOF
34493 #line $LINENO "configure"
34494 /* confdefs.h.  */
34495 _ACEOF
34496 cat confdefs.h >>conftest.$ac_ext
34497 cat >>conftest.$ac_ext <<_ACEOF
34498 /* end confdefs.h.  */
34499 #include <langinfo.h>
34500 int
34501 main ()
34502 {
34503 char* cs = nl_langinfo(CODESET);
34504   ;
34505   return 0;
34506 }
34507 _ACEOF
34508 rm -f conftest.$ac_objext conftest$ac_exeext
34509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34510   (eval $ac_link) 2>&5
34511   ac_status=$?
34512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34513   (exit $ac_status); } &&
34514          { ac_try='test -s conftest$ac_exeext'
34515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34516   (eval $ac_try) 2>&5
34517   ac_status=$?
34518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34519   (exit $ac_status); }; }; then
34520   am_cv_langinfo_codeset=yes
34521 else
34522   echo "$as_me: failed program was:" >&5
34523 sed 's/^/| /' conftest.$ac_ext >&5
34524
34525 am_cv_langinfo_codeset=no
34526 fi
34527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34528
34529 fi
34530 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
34531 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
34532   if test $am_cv_langinfo_codeset = yes; then
34533
34534 cat >>confdefs.h <<\_ACEOF
34535 #define HAVE_LANGINFO_CODESET 1
34536 _ACEOF
34537
34538   fi
34539
34540
34541     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
34542 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
34543 if test "${ac_cv_gnu_library_2_1+set}" = set; then
34544   echo $ECHO_N "(cached) $ECHO_C" >&6
34545 else
34546   cat >conftest.$ac_ext <<_ACEOF
34547 #line $LINENO "configure"
34548 /* confdefs.h.  */
34549 _ACEOF
34550 cat confdefs.h >>conftest.$ac_ext
34551 cat >>conftest.$ac_ext <<_ACEOF
34552 /* end confdefs.h.  */
34553
34554 #include <features.h>
34555 #ifdef __GNU_LIBRARY__
34556  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
34557   Lucky GNU user
34558  #endif
34559 #endif
34560
34561 _ACEOF
34562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34563   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
34564   ac_cv_gnu_library_2_1=yes
34565 else
34566   ac_cv_gnu_library_2_1=no
34567 fi
34568 rm -f conftest*
34569
34570
34571
34572 fi
34573 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
34574 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
34575
34576     GLIBC21="$ac_cv_gnu_library_2_1"
34577
34578
34579
34580
34581
34582
34583
34584           am_save_CPPFLAGS="$CPPFLAGS"
34585
34586   for element in $INCICONV; do
34587     haveit=
34588     for x in $CPPFLAGS; do
34589
34590   acl_save_prefix="$prefix"
34591   prefix="$acl_final_prefix"
34592   acl_save_exec_prefix="$exec_prefix"
34593   exec_prefix="$acl_final_exec_prefix"
34594   eval x=\"$x\"
34595   exec_prefix="$acl_save_exec_prefix"
34596   prefix="$acl_save_prefix"
34597
34598       if test "X$x" = "X$element"; then
34599         haveit=yes
34600         break
34601       fi
34602     done
34603     if test -z "$haveit"; then
34604       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
34605     fi
34606   done
34607
34608
34609   echo "$as_me:$LINENO: checking for iconv" >&5
34610 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34611 if test "${am_cv_func_iconv+set}" = set; then
34612   echo $ECHO_N "(cached) $ECHO_C" >&6
34613 else
34614
34615     am_cv_func_iconv="no, consider installing GNU libiconv"
34616     am_cv_lib_iconv=no
34617     cat >conftest.$ac_ext <<_ACEOF
34618 #line $LINENO "configure"
34619 /* confdefs.h.  */
34620 _ACEOF
34621 cat confdefs.h >>conftest.$ac_ext
34622 cat >>conftest.$ac_ext <<_ACEOF
34623 /* end confdefs.h.  */
34624 #include <stdlib.h>
34625 #include <iconv.h>
34626 int
34627 main ()
34628 {
34629 iconv_t cd = iconv_open("","");
34630        iconv(cd,NULL,NULL,NULL,NULL);
34631        iconv_close(cd);
34632   ;
34633   return 0;
34634 }
34635 _ACEOF
34636 rm -f conftest.$ac_objext conftest$ac_exeext
34637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34638   (eval $ac_link) 2>&5
34639   ac_status=$?
34640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34641   (exit $ac_status); } &&
34642          { ac_try='test -s conftest$ac_exeext'
34643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34644   (eval $ac_try) 2>&5
34645   ac_status=$?
34646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34647   (exit $ac_status); }; }; then
34648   am_cv_func_iconv=yes
34649 else
34650   echo "$as_me: failed program was:" >&5
34651 sed 's/^/| /' conftest.$ac_ext >&5
34652
34653 fi
34654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34655     if test "$am_cv_func_iconv" != yes; then
34656       am_save_LIBS="$LIBS"
34657       LIBS="$LIBS $LIBICONV"
34658       cat >conftest.$ac_ext <<_ACEOF
34659 #line $LINENO "configure"
34660 /* confdefs.h.  */
34661 _ACEOF
34662 cat confdefs.h >>conftest.$ac_ext
34663 cat >>conftest.$ac_ext <<_ACEOF
34664 /* end confdefs.h.  */
34665 #include <stdlib.h>
34666 #include <iconv.h>
34667 int
34668 main ()
34669 {
34670 iconv_t cd = iconv_open("","");
34671          iconv(cd,NULL,NULL,NULL,NULL);
34672          iconv_close(cd);
34673   ;
34674   return 0;
34675 }
34676 _ACEOF
34677 rm -f conftest.$ac_objext conftest$ac_exeext
34678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34679   (eval $ac_link) 2>&5
34680   ac_status=$?
34681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34682   (exit $ac_status); } &&
34683          { ac_try='test -s conftest$ac_exeext'
34684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34685   (eval $ac_try) 2>&5
34686   ac_status=$?
34687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34688   (exit $ac_status); }; }; then
34689   am_cv_lib_iconv=yes
34690         am_cv_func_iconv=yes
34691 else
34692   echo "$as_me: failed program was:" >&5
34693 sed 's/^/| /' conftest.$ac_ext >&5
34694
34695 fi
34696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34697       LIBS="$am_save_LIBS"
34698     fi
34699
34700 fi
34701 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34702 echo "${ECHO_T}$am_cv_func_iconv" >&6
34703   if test "$am_cv_func_iconv" = yes; then
34704
34705 cat >>confdefs.h <<\_ACEOF
34706 #define HAVE_ICONV 1
34707 _ACEOF
34708
34709   fi
34710   if test "$am_cv_lib_iconv" = yes; then
34711     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
34712 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
34713     echo "$as_me:$LINENO: result: $LIBICONV" >&5
34714 echo "${ECHO_T}$LIBICONV" >&6
34715   else
34716             CPPFLAGS="$am_save_CPPFLAGS"
34717     LIBICONV=
34718     LTLIBICONV=
34719   fi
34720
34721
34722
34723   if test "$am_cv_func_iconv" = yes; then
34724     echo "$as_me:$LINENO: checking for iconv declaration" >&5
34725 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
34726     if test "${am_cv_proto_iconv+set}" = set; then
34727   echo $ECHO_N "(cached) $ECHO_C" >&6
34728 else
34729
34730       cat >conftest.$ac_ext <<_ACEOF
34731 #line $LINENO "configure"
34732 /* confdefs.h.  */
34733 _ACEOF
34734 cat confdefs.h >>conftest.$ac_ext
34735 cat >>conftest.$ac_ext <<_ACEOF
34736 /* end confdefs.h.  */
34737
34738 #include <stdlib.h>
34739 #include <iconv.h>
34740 extern
34741 #ifdef __cplusplus
34742 "C"
34743 #endif
34744 #if defined(__STDC__) || defined(__cplusplus)
34745 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34746 #else
34747 size_t iconv();
34748 #endif
34749
34750 int
34751 main ()
34752 {
34753
34754   ;
34755   return 0;
34756 }
34757 _ACEOF
34758 rm -f conftest.$ac_objext
34759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34760   (eval $ac_compile) 2>&5
34761   ac_status=$?
34762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763   (exit $ac_status); } &&
34764          { ac_try='test -s conftest.$ac_objext'
34765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34766   (eval $ac_try) 2>&5
34767   ac_status=$?
34768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769   (exit $ac_status); }; }; then
34770   am_cv_proto_iconv_arg1=""
34771 else
34772   echo "$as_me: failed program was:" >&5
34773 sed 's/^/| /' conftest.$ac_ext >&5
34774
34775 am_cv_proto_iconv_arg1="const"
34776 fi
34777 rm -f conftest.$ac_objext conftest.$ac_ext
34778       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);"
34779 fi
34780
34781     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
34782     echo "$as_me:$LINENO: result: ${ac_t:-
34783          }$am_cv_proto_iconv" >&5
34784 echo "${ECHO_T}${ac_t:-
34785          }$am_cv_proto_iconv" >&6
34786
34787 cat >>confdefs.h <<_ACEOF
34788 #define ICONV_CONST $am_cv_proto_iconv_arg1
34789 _ACEOF
34790
34791   fi
34792
34793     echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
34794 echo $ECHO_N "checking whether a running program can be unlinked... $ECHO_C" >&6
34795 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
34796   echo $ECHO_N "(cached) $ECHO_C" >&6
34797 else
34798
34799       if test "$cross_compiling" = yes; then
34800   jm_cv_func_unlink_busy_text=no
34801
34802 else
34803   cat >conftest.$ac_ext <<_ACEOF
34804 #line $LINENO "configure"
34805 /* confdefs.h.  */
34806 _ACEOF
34807 cat confdefs.h >>conftest.$ac_ext
34808 cat >>conftest.$ac_ext <<_ACEOF
34809 /* end confdefs.h.  */
34810
34811         main (argc, argv)
34812           int argc;
34813           char **argv;
34814         {
34815           if (!argc)
34816             exit (-1);
34817           exit (unlink (argv[0]));
34818         }
34819
34820 _ACEOF
34821 rm -f conftest$ac_exeext
34822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34823   (eval $ac_link) 2>&5
34824   ac_status=$?
34825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34826   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34828   (eval $ac_try) 2>&5
34829   ac_status=$?
34830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34831   (exit $ac_status); }; }; then
34832   jm_cv_func_unlink_busy_text=yes
34833 else
34834   echo "$as_me: program exited with status $ac_status" >&5
34835 echo "$as_me: failed program was:" >&5
34836 sed 's/^/| /' conftest.$ac_ext >&5
34837
34838 ( exit $ac_status )
34839 jm_cv_func_unlink_busy_text=no
34840 fi
34841 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34842 fi
34843
34844
34845 fi
34846 echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
34847 echo "${ECHO_T}$jm_cv_func_unlink_busy_text" >&6
34848
34849   if test $jm_cv_func_unlink_busy_text = no; then
34850     INSTALL=$ac_install_sh
34851   fi
34852
34853
34854   # These tests are for df.
34855
34856
34857
34858 for ac_func in listmntent getmntinfo
34859 do
34860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34861 echo "$as_me:$LINENO: checking for $ac_func" >&5
34862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34863 if eval "test \"\${$as_ac_var+set}\" = set"; then
34864   echo $ECHO_N "(cached) $ECHO_C" >&6
34865 else
34866   cat >conftest.$ac_ext <<_ACEOF
34867 #line $LINENO "configure"
34868 /* confdefs.h.  */
34869 _ACEOF
34870 cat confdefs.h >>conftest.$ac_ext
34871 cat >>conftest.$ac_ext <<_ACEOF
34872 /* end confdefs.h.  */
34873 /* System header to define __stub macros and hopefully few prototypes,
34874     which can conflict with char $ac_func (); below.
34875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34876     <limits.h> exists even on freestanding compilers.  */
34877 #ifdef __STDC__
34878 # include <limits.h>
34879 #else
34880 # include <assert.h>
34881 #endif
34882 /* Override any gcc2 internal prototype to avoid an error.  */
34883 #ifdef __cplusplus
34884 extern "C"
34885 {
34886 #endif
34887 /* We use char because int might match the return type of a gcc2
34888    builtin and then its argument prototype would still apply.  */
34889 char $ac_func ();
34890 /* The GNU C library defines this for functions which it implements
34891     to always fail with ENOSYS.  Some functions are actually named
34892     something starting with __ and the normal name is an alias.  */
34893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34894 choke me
34895 #else
34896 char (*f) () = $ac_func;
34897 #endif
34898 #ifdef __cplusplus
34899 }
34900 #endif
34901
34902 int
34903 main ()
34904 {
34905 return f != $ac_func;
34906   ;
34907   return 0;
34908 }
34909 _ACEOF
34910 rm -f conftest.$ac_objext conftest$ac_exeext
34911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34912   (eval $ac_link) 2>&5
34913   ac_status=$?
34914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34915   (exit $ac_status); } &&
34916          { ac_try='test -s conftest$ac_exeext'
34917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34918   (eval $ac_try) 2>&5
34919   ac_status=$?
34920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34921   (exit $ac_status); }; }; then
34922   eval "$as_ac_var=yes"
34923 else
34924   echo "$as_me: failed program was:" >&5
34925 sed 's/^/| /' conftest.$ac_ext >&5
34926
34927 eval "$as_ac_var=no"
34928 fi
34929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34930 fi
34931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34933 if test `eval echo '${'$as_ac_var'}'` = yes; then
34934   cat >>confdefs.h <<_ACEOF
34935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34936 _ACEOF
34937
34938 fi
34939 done
34940
34941
34942
34943
34944
34945
34946 for ac_header in mntent.h sys/param.h sys/ucred.h sys/mount.h sys/fs_types.h
34947 do
34948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34950   echo "$as_me:$LINENO: checking for $ac_header" >&5
34951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34953   echo $ECHO_N "(cached) $ECHO_C" >&6
34954 fi
34955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34957 else
34958   # Is the header compilable?
34959 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34961 cat >conftest.$ac_ext <<_ACEOF
34962 #line $LINENO "configure"
34963 /* confdefs.h.  */
34964 _ACEOF
34965 cat confdefs.h >>conftest.$ac_ext
34966 cat >>conftest.$ac_ext <<_ACEOF
34967 /* end confdefs.h.  */
34968 $ac_includes_default
34969 #include <$ac_header>
34970 _ACEOF
34971 rm -f conftest.$ac_objext
34972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34973   (eval $ac_compile) 2>&5
34974   ac_status=$?
34975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34976   (exit $ac_status); } &&
34977          { ac_try='test -s conftest.$ac_objext'
34978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34979   (eval $ac_try) 2>&5
34980   ac_status=$?
34981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34982   (exit $ac_status); }; }; then
34983   ac_header_compiler=yes
34984 else
34985   echo "$as_me: failed program was:" >&5
34986 sed 's/^/| /' conftest.$ac_ext >&5
34987
34988 ac_header_compiler=no
34989 fi
34990 rm -f conftest.$ac_objext conftest.$ac_ext
34991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34992 echo "${ECHO_T}$ac_header_compiler" >&6
34993
34994 # Is the header present?
34995 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34997 cat >conftest.$ac_ext <<_ACEOF
34998 #line $LINENO "configure"
34999 /* confdefs.h.  */
35000 _ACEOF
35001 cat confdefs.h >>conftest.$ac_ext
35002 cat >>conftest.$ac_ext <<_ACEOF
35003 /* end confdefs.h.  */
35004 #include <$ac_header>
35005 _ACEOF
35006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35007   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35008   ac_status=$?
35009   grep -v '^ *+' conftest.er1 >conftest.err
35010   rm -f conftest.er1
35011   cat conftest.err >&5
35012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35013   (exit $ac_status); } >/dev/null; then
35014   if test -s conftest.err; then
35015     ac_cpp_err=$ac_c_preproc_warn_flag
35016   else
35017     ac_cpp_err=
35018   fi
35019 else
35020   ac_cpp_err=yes
35021 fi
35022 if test -z "$ac_cpp_err"; then
35023   ac_header_preproc=yes
35024 else
35025   echo "$as_me: failed program was:" >&5
35026 sed 's/^/| /' conftest.$ac_ext >&5
35027
35028   ac_header_preproc=no
35029 fi
35030 rm -f conftest.err conftest.$ac_ext
35031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35032 echo "${ECHO_T}$ac_header_preproc" >&6
35033
35034 # So?  What about this header?
35035 case $ac_header_compiler:$ac_header_preproc in
35036   yes:no )
35037     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35039     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35041     (
35042       cat <<\_ASBOX
35043 ## ------------------------------------ ##
35044 ## Report this to bug-autoconf@gnu.org. ##
35045 ## ------------------------------------ ##
35046 _ASBOX
35047     ) |
35048       sed "s/^/$as_me: WARNING:     /" >&2
35049     ;;
35050   no:yes )
35051     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35053     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35054 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35057     (
35058       cat <<\_ASBOX
35059 ## ------------------------------------ ##
35060 ## Report this to bug-autoconf@gnu.org. ##
35061 ## ------------------------------------ ##
35062 _ASBOX
35063     ) |
35064       sed "s/^/$as_me: WARNING:     /" >&2
35065     ;;
35066 esac
35067 echo "$as_me:$LINENO: checking for $ac_header" >&5
35068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35070   echo $ECHO_N "(cached) $ECHO_C" >&6
35071 else
35072   eval "$as_ac_Header=$ac_header_preproc"
35073 fi
35074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35076
35077 fi
35078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35079   cat >>confdefs.h <<_ACEOF
35080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35081 _ACEOF
35082
35083 fi
35084
35085 done
35086
35087     getfsstat_includes="\
35088 $ac_includes_default
35089 #if HAVE_SYS_PARAM_H
35090 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
35091 #endif
35092 #if HAVE_SYS_UCRED_H
35093 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
35094 #endif
35095 #if HAVE_SYS_MOUNT_H
35096 # include <sys/mount.h>
35097 #endif
35098 #if HAVE_SYS_FS_TYPES_H
35099 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
35100 #endif
35101 "
35102 echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
35103 echo $ECHO_N "checking for struct fsstat.f_fstypename... $ECHO_C" >&6
35104 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
35105   echo $ECHO_N "(cached) $ECHO_C" >&6
35106 else
35107   cat >conftest.$ac_ext <<_ACEOF
35108 #line $LINENO "configure"
35109 /* confdefs.h.  */
35110 _ACEOF
35111 cat confdefs.h >>conftest.$ac_ext
35112 cat >>conftest.$ac_ext <<_ACEOF
35113 /* end confdefs.h.  */
35114 $getfsstat_includes
35115
35116 int
35117 main ()
35118 {
35119 static struct fsstat ac_aggr;
35120 if (ac_aggr.f_fstypename)
35121 return 0;
35122   ;
35123   return 0;
35124 }
35125 _ACEOF
35126 rm -f conftest.$ac_objext
35127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35128   (eval $ac_compile) 2>&5
35129   ac_status=$?
35130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35131   (exit $ac_status); } &&
35132          { ac_try='test -s conftest.$ac_objext'
35133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35134   (eval $ac_try) 2>&5
35135   ac_status=$?
35136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35137   (exit $ac_status); }; }; then
35138   ac_cv_member_struct_fsstat_f_fstypename=yes
35139 else
35140   echo "$as_me: failed program was:" >&5
35141 sed 's/^/| /' conftest.$ac_ext >&5
35142
35143 cat >conftest.$ac_ext <<_ACEOF
35144 #line $LINENO "configure"
35145 /* confdefs.h.  */
35146 _ACEOF
35147 cat confdefs.h >>conftest.$ac_ext
35148 cat >>conftest.$ac_ext <<_ACEOF
35149 /* end confdefs.h.  */
35150 $getfsstat_includes
35151
35152 int
35153 main ()
35154 {
35155 static struct fsstat ac_aggr;
35156 if (sizeof ac_aggr.f_fstypename)
35157 return 0;
35158   ;
35159   return 0;
35160 }
35161 _ACEOF
35162 rm -f conftest.$ac_objext
35163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35164   (eval $ac_compile) 2>&5
35165   ac_status=$?
35166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35167   (exit $ac_status); } &&
35168          { ac_try='test -s conftest.$ac_objext'
35169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35170   (eval $ac_try) 2>&5
35171   ac_status=$?
35172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173   (exit $ac_status); }; }; then
35174   ac_cv_member_struct_fsstat_f_fstypename=yes
35175 else
35176   echo "$as_me: failed program was:" >&5
35177 sed 's/^/| /' conftest.$ac_ext >&5
35178
35179 ac_cv_member_struct_fsstat_f_fstypename=no
35180 fi
35181 rm -f conftest.$ac_objext conftest.$ac_ext
35182 fi
35183 rm -f conftest.$ac_objext conftest.$ac_ext
35184 fi
35185 echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
35186 echo "${ECHO_T}$ac_cv_member_struct_fsstat_f_fstypename" >&6
35187 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
35188
35189 cat >>confdefs.h <<_ACEOF
35190 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
35191 _ACEOF
35192
35193
35194 fi
35195
35196
35197 # Determine how to get the list of mounted filesystems.
35198 ac_list_mounted_fs=
35199
35200 # If the getmntent function is available but not in the standard library,
35201 # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
35202 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
35203 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
35204 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
35205 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
35206   echo $ECHO_N "(cached) $ECHO_C" >&6
35207 else
35208   ac_check_lib_save_LIBS=$LIBS
35209 LIBS="-lsun  $LIBS"
35210 cat >conftest.$ac_ext <<_ACEOF
35211 #line $LINENO "configure"
35212 /* confdefs.h.  */
35213 _ACEOF
35214 cat confdefs.h >>conftest.$ac_ext
35215 cat >>conftest.$ac_ext <<_ACEOF
35216 /* end confdefs.h.  */
35217
35218 /* Override any gcc2 internal prototype to avoid an error.  */
35219 #ifdef __cplusplus
35220 extern "C"
35221 #endif
35222 /* We use char because int might match the return type of a gcc2
35223    builtin and then its argument prototype would still apply.  */
35224 char getmntent ();
35225 int
35226 main ()
35227 {
35228 getmntent ();
35229   ;
35230   return 0;
35231 }
35232 _ACEOF
35233 rm -f conftest.$ac_objext conftest$ac_exeext
35234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35235   (eval $ac_link) 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_lib_sun_getmntent=yes
35246 else
35247   echo "$as_me: failed program was:" >&5
35248 sed 's/^/| /' conftest.$ac_ext >&5
35249
35250 ac_cv_lib_sun_getmntent=no
35251 fi
35252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35253 LIBS=$ac_check_lib_save_LIBS
35254 fi
35255 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
35256 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
35257 if test $ac_cv_lib_sun_getmntent = yes; then
35258   LIBS="-lsun $LIBS"
35259 else
35260   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
35261 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
35262 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
35263   echo $ECHO_N "(cached) $ECHO_C" >&6
35264 else
35265   ac_check_lib_save_LIBS=$LIBS
35266 LIBS="-lseq  $LIBS"
35267 cat >conftest.$ac_ext <<_ACEOF
35268 #line $LINENO "configure"
35269 /* confdefs.h.  */
35270 _ACEOF
35271 cat confdefs.h >>conftest.$ac_ext
35272 cat >>conftest.$ac_ext <<_ACEOF
35273 /* end confdefs.h.  */
35274
35275 /* Override any gcc2 internal prototype to avoid an error.  */
35276 #ifdef __cplusplus
35277 extern "C"
35278 #endif
35279 /* We use char because int might match the return type of a gcc2
35280    builtin and then its argument prototype would still apply.  */
35281 char getmntent ();
35282 int
35283 main ()
35284 {
35285 getmntent ();
35286   ;
35287   return 0;
35288 }
35289 _ACEOF
35290 rm -f conftest.$ac_objext conftest$ac_exeext
35291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35292   (eval $ac_link) 2>&5
35293   ac_status=$?
35294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35295   (exit $ac_status); } &&
35296          { ac_try='test -s conftest$ac_exeext'
35297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35298   (eval $ac_try) 2>&5
35299   ac_status=$?
35300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35301   (exit $ac_status); }; }; then
35302   ac_cv_lib_seq_getmntent=yes
35303 else
35304   echo "$as_me: failed program was:" >&5
35305 sed 's/^/| /' conftest.$ac_ext >&5
35306
35307 ac_cv_lib_seq_getmntent=no
35308 fi
35309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35310 LIBS=$ac_check_lib_save_LIBS
35311 fi
35312 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
35313 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
35314 if test $ac_cv_lib_seq_getmntent = yes; then
35315   LIBS="-lseq $LIBS"
35316 else
35317   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
35318 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
35319 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
35320   echo $ECHO_N "(cached) $ECHO_C" >&6
35321 else
35322   ac_check_lib_save_LIBS=$LIBS
35323 LIBS="-lgen  $LIBS"
35324 cat >conftest.$ac_ext <<_ACEOF
35325 #line $LINENO "configure"
35326 /* confdefs.h.  */
35327 _ACEOF
35328 cat confdefs.h >>conftest.$ac_ext
35329 cat >>conftest.$ac_ext <<_ACEOF
35330 /* end confdefs.h.  */
35331
35332 /* Override any gcc2 internal prototype to avoid an error.  */
35333 #ifdef __cplusplus
35334 extern "C"
35335 #endif
35336 /* We use char because int might match the return type of a gcc2
35337    builtin and then its argument prototype would still apply.  */
35338 char getmntent ();
35339 int
35340 main ()
35341 {
35342 getmntent ();
35343   ;
35344   return 0;
35345 }
35346 _ACEOF
35347 rm -f conftest.$ac_objext conftest$ac_exeext
35348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35349   (eval $ac_link) 2>&5
35350   ac_status=$?
35351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35352   (exit $ac_status); } &&
35353          { ac_try='test -s conftest$ac_exeext'
35354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35355   (eval $ac_try) 2>&5
35356   ac_status=$?
35357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35358   (exit $ac_status); }; }; then
35359   ac_cv_lib_gen_getmntent=yes
35360 else
35361   echo "$as_me: failed program was:" >&5
35362 sed 's/^/| /' conftest.$ac_ext >&5
35363
35364 ac_cv_lib_gen_getmntent=no
35365 fi
35366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35367 LIBS=$ac_check_lib_save_LIBS
35368 fi
35369 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
35370 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
35371 if test $ac_cv_lib_gen_getmntent = yes; then
35372   LIBS="-lgen $LIBS"
35373 fi
35374
35375 fi
35376
35377 fi
35378
35379
35380 for ac_func in getmntent
35381 do
35382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35383 echo "$as_me:$LINENO: checking for $ac_func" >&5
35384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35385 if eval "test \"\${$as_ac_var+set}\" = set"; then
35386   echo $ECHO_N "(cached) $ECHO_C" >&6
35387 else
35388   cat >conftest.$ac_ext <<_ACEOF
35389 #line $LINENO "configure"
35390 /* confdefs.h.  */
35391 _ACEOF
35392 cat confdefs.h >>conftest.$ac_ext
35393 cat >>conftest.$ac_ext <<_ACEOF
35394 /* end confdefs.h.  */
35395 /* System header to define __stub macros and hopefully few prototypes,
35396     which can conflict with char $ac_func (); below.
35397     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35398     <limits.h> exists even on freestanding compilers.  */
35399 #ifdef __STDC__
35400 # include <limits.h>
35401 #else
35402 # include <assert.h>
35403 #endif
35404 /* Override any gcc2 internal prototype to avoid an error.  */
35405 #ifdef __cplusplus
35406 extern "C"
35407 {
35408 #endif
35409 /* We use char because int might match the return type of a gcc2
35410    builtin and then its argument prototype would still apply.  */
35411 char $ac_func ();
35412 /* The GNU C library defines this for functions which it implements
35413     to always fail with ENOSYS.  Some functions are actually named
35414     something starting with __ and the normal name is an alias.  */
35415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35416 choke me
35417 #else
35418 char (*f) () = $ac_func;
35419 #endif
35420 #ifdef __cplusplus
35421 }
35422 #endif
35423
35424 int
35425 main ()
35426 {
35427 return f != $ac_func;
35428   ;
35429   return 0;
35430 }
35431 _ACEOF
35432 rm -f conftest.$ac_objext conftest$ac_exeext
35433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35434   (eval $ac_link) 2>&5
35435   ac_status=$?
35436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35437   (exit $ac_status); } &&
35438          { ac_try='test -s conftest$ac_exeext'
35439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35440   (eval $ac_try) 2>&5
35441   ac_status=$?
35442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35443   (exit $ac_status); }; }; then
35444   eval "$as_ac_var=yes"
35445 else
35446   echo "$as_me: failed program was:" >&5
35447 sed 's/^/| /' conftest.$ac_ext >&5
35448
35449 eval "$as_ac_var=no"
35450 fi
35451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35452 fi
35453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35455 if test `eval echo '${'$as_ac_var'}'` = yes; then
35456   cat >>confdefs.h <<_ACEOF
35457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35458 _ACEOF
35459
35460 fi
35461 done
35462
35463
35464
35465 # This test must precede the ones for getmntent because Unicos-9 is
35466 # reported to have the getmntent function, but its support is incompatible
35467 # with other getmntent implementations.
35468
35469 # NOTE: Normally, I wouldn't use a check for system type as I've done for
35470 # `CRAY' below since that goes against the whole autoconf philosophy.  But
35471 # I think there is too great a chance that some non-Cray system has a
35472 # function named listmntent to risk the false positive.
35473
35474 if test -z "$ac_list_mounted_fs"; then
35475   # Cray UNICOS 9
35476   echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
35477 echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6
35478   if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
35479   echo $ECHO_N "(cached) $ECHO_C" >&6
35480 else
35481   fu_cv_sys_mounted_cray_listmntent=no
35482       cat >conftest.$ac_ext <<_ACEOF
35483 #line $LINENO "configure"
35484 /* confdefs.h.  */
35485 _ACEOF
35486 cat confdefs.h >>conftest.$ac_ext
35487 cat >>conftest.$ac_ext <<_ACEOF
35488 /* end confdefs.h.  */
35489 #ifdef _CRAY
35490 yes
35491 #endif
35492
35493 _ACEOF
35494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35495   $EGREP "yes" >/dev/null 2>&1; then
35496   test $ac_cv_func_listmntent = yes \
35497             && fu_cv_sys_mounted_cray_listmntent=yes
35498
35499 fi
35500 rm -f conftest*
35501
35502
35503
35504 fi
35505
35506   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
35507 echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6
35508   if test $fu_cv_sys_mounted_cray_listmntent = yes; then
35509     ac_list_mounted_fs=found
35510
35511 cat >>confdefs.h <<\_ACEOF
35512 #define MOUNTED_LISTMNTENT 1
35513 _ACEOF
35514
35515   fi
35516 fi
35517
35518 if test $ac_cv_func_getmntent = yes; then
35519
35520   # This system has the getmntent function.
35521   # Determine whether it's the one-argument variant or the two-argument one.
35522
35523   if test -z "$ac_list_mounted_fs"; then
35524     # 4.3BSD, SunOS, HP-UX, Dynix, Irix
35525     echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
35526 echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6
35527     if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
35528   echo $ECHO_N "(cached) $ECHO_C" >&6
35529 else
35530   cat >conftest.$ac_ext <<_ACEOF
35531 #line $LINENO "configure"
35532 /* confdefs.h.  */
35533 _ACEOF
35534 cat confdefs.h >>conftest.$ac_ext
35535 cat >>conftest.$ac_ext <<_ACEOF
35536 /* end confdefs.h.  */
35537
35538 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
35539 #include <stdio.h>
35540
35541 #include <mntent.h>
35542 #if !defined MOUNTED
35543 # if defined _PATH_MOUNTED      /* GNU libc  */
35544 #  define MOUNTED _PATH_MOUNTED
35545 # endif
35546 # if defined MNT_MNTTAB /* HP-UX.  */
35547 #  define MOUNTED MNT_MNTTAB
35548 # endif
35549 # if defined MNTTABNAME /* Dynix.  */
35550 #  define MOUNTED MNTTABNAME
35551 # endif
35552 #endif
35553
35554 int
35555 main ()
35556 {
35557  struct mntent *mnt = 0; char *table = MOUNTED;
35558   ;
35559   return 0;
35560 }
35561 _ACEOF
35562 rm -f conftest.$ac_objext
35563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35564   (eval $ac_compile) 2>&5
35565   ac_status=$?
35566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35567   (exit $ac_status); } &&
35568          { ac_try='test -s conftest.$ac_objext'
35569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35570   (eval $ac_try) 2>&5
35571   ac_status=$?
35572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35573   (exit $ac_status); }; }; then
35574   fu_cv_sys_mounted_getmntent1=yes
35575 else
35576   echo "$as_me: failed program was:" >&5
35577 sed 's/^/| /' conftest.$ac_ext >&5
35578
35579 fu_cv_sys_mounted_getmntent1=no
35580 fi
35581 rm -f conftest.$ac_objext conftest.$ac_ext
35582 fi
35583
35584     echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
35585 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6
35586     if test $fu_cv_sys_mounted_getmntent1 = yes; then
35587       ac_list_mounted_fs=found
35588
35589 cat >>confdefs.h <<\_ACEOF
35590 #define MOUNTED_GETMNTENT1 1
35591 _ACEOF
35592
35593     fi
35594   fi
35595
35596   if test -z "$ac_list_mounted_fs"; then
35597     # SVR4
35598     echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
35599 echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6
35600     if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
35601   echo $ECHO_N "(cached) $ECHO_C" >&6
35602 else
35603   cat >conftest.$ac_ext <<_ACEOF
35604 #line $LINENO "configure"
35605 /* confdefs.h.  */
35606 _ACEOF
35607 cat confdefs.h >>conftest.$ac_ext
35608 cat >>conftest.$ac_ext <<_ACEOF
35609 /* end confdefs.h.  */
35610 #include <sys/mnttab.h>
35611
35612 _ACEOF
35613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35614   $EGREP "getmntent" >/dev/null 2>&1; then
35615   fu_cv_sys_mounted_getmntent2=yes
35616 else
35617   fu_cv_sys_mounted_getmntent2=no
35618 fi
35619 rm -f conftest*
35620
35621 fi
35622
35623     echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
35624 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6
35625     if test $fu_cv_sys_mounted_getmntent2 = yes; then
35626       ac_list_mounted_fs=found
35627
35628 cat >>confdefs.h <<\_ACEOF
35629 #define MOUNTED_GETMNTENT2 1
35630 _ACEOF
35631
35632     fi
35633   fi
35634
35635 fi
35636
35637 if test -z "$ac_list_mounted_fs"; then
35638   # DEC Alpha running OSF/1, and Apple Darwin 1.3.
35639   # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
35640
35641   echo "$as_me:$LINENO: checking for getfsstat function" >&5
35642 echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6
35643   if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
35644   echo $ECHO_N "(cached) $ECHO_C" >&6
35645 else
35646   cat >conftest.$ac_ext <<_ACEOF
35647 #line $LINENO "configure"
35648 /* confdefs.h.  */
35649 _ACEOF
35650 cat confdefs.h >>conftest.$ac_ext
35651 cat >>conftest.$ac_ext <<_ACEOF
35652 /* end confdefs.h.  */
35653
35654 #include <sys/types.h>
35655 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
35656 # define FS_TYPE(Ent) ((Ent).f_fstypename)
35657 #else
35658 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
35659 #endif
35660 $getfsstat_includes
35661
35662 int
35663 main ()
35664 {
35665 struct statfs *stats;
35666    int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
35667    char *t = FS_TYPE (*stats);
35668   ;
35669   return 0;
35670 }
35671 _ACEOF
35672 rm -f conftest.$ac_objext conftest$ac_exeext
35673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35674   (eval $ac_link) 2>&5
35675   ac_status=$?
35676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35677   (exit $ac_status); } &&
35678          { ac_try='test -s conftest$ac_exeext'
35679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35680   (eval $ac_try) 2>&5
35681   ac_status=$?
35682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35683   (exit $ac_status); }; }; then
35684   fu_cv_sys_mounted_getfsstat=yes
35685 else
35686   echo "$as_me: failed program was:" >&5
35687 sed 's/^/| /' conftest.$ac_ext >&5
35688
35689 fu_cv_sys_mounted_getfsstat=no
35690 fi
35691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35692 fi
35693
35694   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
35695 echo "${ECHO_T}$fu_cv_sys_mounted_getfsstat" >&6
35696   if test $fu_cv_sys_mounted_getfsstat = yes; then
35697     ac_list_mounted_fs=found
35698
35699 cat >>confdefs.h <<\_ACEOF
35700 #define MOUNTED_GETFSSTAT 1
35701 _ACEOF
35702
35703   fi
35704 fi
35705
35706 if test -z "$ac_list_mounted_fs"; then
35707   # AIX.
35708   echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
35709 echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6
35710   if test "${fu_cv_sys_mounted_vmount+set}" = set; then
35711   echo $ECHO_N "(cached) $ECHO_C" >&6
35712 else
35713   cat >conftest.$ac_ext <<_ACEOF
35714 #line $LINENO "configure"
35715 /* confdefs.h.  */
35716 _ACEOF
35717 cat confdefs.h >>conftest.$ac_ext
35718 cat >>conftest.$ac_ext <<_ACEOF
35719 /* end confdefs.h.  */
35720 #include <fshelp.h>
35721 _ACEOF
35722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35723   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35724   ac_status=$?
35725   grep -v '^ *+' conftest.er1 >conftest.err
35726   rm -f conftest.er1
35727   cat conftest.err >&5
35728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35729   (exit $ac_status); } >/dev/null; then
35730   if test -s conftest.err; then
35731     ac_cpp_err=$ac_c_preproc_warn_flag
35732   else
35733     ac_cpp_err=
35734   fi
35735 else
35736   ac_cpp_err=yes
35737 fi
35738 if test -z "$ac_cpp_err"; then
35739   fu_cv_sys_mounted_vmount=yes
35740 else
35741   echo "$as_me: failed program was:" >&5
35742 sed 's/^/| /' conftest.$ac_ext >&5
35743
35744   fu_cv_sys_mounted_vmount=no
35745 fi
35746 rm -f conftest.err conftest.$ac_ext
35747 fi
35748
35749   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
35750 echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6
35751   if test $fu_cv_sys_mounted_vmount = yes; then
35752     ac_list_mounted_fs=found
35753
35754 cat >>confdefs.h <<\_ACEOF
35755 #define MOUNTED_VMOUNT 1
35756 _ACEOF
35757
35758   fi
35759 fi
35760
35761 if test -z "$ac_list_mounted_fs"; then
35762   # SVR3
35763   echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
35764 echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6
35765   if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
35766   echo $ECHO_N "(cached) $ECHO_C" >&6
35767 else
35768   cat >conftest.$ac_ext <<_ACEOF
35769 #line $LINENO "configure"
35770 /* confdefs.h.  */
35771 _ACEOF
35772 cat confdefs.h >>conftest.$ac_ext
35773 cat >>conftest.$ac_ext <<_ACEOF
35774 /* end confdefs.h.  */
35775
35776 #include <sys/statfs.h>
35777 #include <sys/fstyp.h>
35778 #include <mnttab.h>
35779 _ACEOF
35780 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35781   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35782   ac_status=$?
35783   grep -v '^ *+' conftest.er1 >conftest.err
35784   rm -f conftest.er1
35785   cat conftest.err >&5
35786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35787   (exit $ac_status); } >/dev/null; then
35788   if test -s conftest.err; then
35789     ac_cpp_err=$ac_c_preproc_warn_flag
35790   else
35791     ac_cpp_err=
35792   fi
35793 else
35794   ac_cpp_err=yes
35795 fi
35796 if test -z "$ac_cpp_err"; then
35797   fu_cv_sys_mounted_fread_fstyp=yes
35798 else
35799   echo "$as_me: failed program was:" >&5
35800 sed 's/^/| /' conftest.$ac_ext >&5
35801
35802   fu_cv_sys_mounted_fread_fstyp=no
35803 fi
35804 rm -f conftest.err conftest.$ac_ext
35805 fi
35806
35807   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
35808 echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6
35809   if test $fu_cv_sys_mounted_fread_fstyp = yes; then
35810     ac_list_mounted_fs=found
35811
35812 cat >>confdefs.h <<\_ACEOF
35813 #define MOUNTED_FREAD_FSTYP 1
35814 _ACEOF
35815
35816   fi
35817 fi
35818
35819 if test -z "$ac_list_mounted_fs"; then
35820   # 4.4BSD and DEC OSF/1.
35821   echo "$as_me:$LINENO: checking for getmntinfo function" >&5
35822 echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6
35823   if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
35824   echo $ECHO_N "(cached) $ECHO_C" >&6
35825 else
35826
35827       test "$ac_cv_func_getmntinfo" = yes \
35828           && fu_cv_sys_mounted_getmntinfo=yes \
35829           || fu_cv_sys_mounted_getmntinfo=no
35830
35831 fi
35832
35833   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
35834 echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6
35835   if test $fu_cv_sys_mounted_getmntinfo = yes; then
35836     ac_list_mounted_fs=found
35837
35838 cat >>confdefs.h <<\_ACEOF
35839 #define MOUNTED_GETMNTINFO 1
35840 _ACEOF
35841
35842   fi
35843 fi
35844
35845 if test -z "$ac_list_mounted_fs"; then
35846   # Ultrix
35847   echo "$as_me:$LINENO: checking for getmnt function" >&5
35848 echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6
35849   if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
35850   echo $ECHO_N "(cached) $ECHO_C" >&6
35851 else
35852   cat >conftest.$ac_ext <<_ACEOF
35853 #line $LINENO "configure"
35854 /* confdefs.h.  */
35855 _ACEOF
35856 cat confdefs.h >>conftest.$ac_ext
35857 cat >>conftest.$ac_ext <<_ACEOF
35858 /* end confdefs.h.  */
35859
35860 #include <sys/fs_types.h>
35861 #include <sys/mount.h>
35862 _ACEOF
35863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35864   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35865   ac_status=$?
35866   grep -v '^ *+' conftest.er1 >conftest.err
35867   rm -f conftest.er1
35868   cat conftest.err >&5
35869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35870   (exit $ac_status); } >/dev/null; then
35871   if test -s conftest.err; then
35872     ac_cpp_err=$ac_c_preproc_warn_flag
35873   else
35874     ac_cpp_err=
35875   fi
35876 else
35877   ac_cpp_err=yes
35878 fi
35879 if test -z "$ac_cpp_err"; then
35880   fu_cv_sys_mounted_getmnt=yes
35881 else
35882   echo "$as_me: failed program was:" >&5
35883 sed 's/^/| /' conftest.$ac_ext >&5
35884
35885   fu_cv_sys_mounted_getmnt=no
35886 fi
35887 rm -f conftest.err conftest.$ac_ext
35888 fi
35889
35890   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
35891 echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6
35892   if test $fu_cv_sys_mounted_getmnt = yes; then
35893     ac_list_mounted_fs=found
35894
35895 cat >>confdefs.h <<\_ACEOF
35896 #define MOUNTED_GETMNT 1
35897 _ACEOF
35898
35899   fi
35900 fi
35901
35902 if test -z "$ac_list_mounted_fs"; then
35903   # BeOS
35904
35905
35906 for ac_func in next_dev fs_stat_dev
35907 do
35908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35909 echo "$as_me:$LINENO: checking for $ac_func" >&5
35910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35911 if eval "test \"\${$as_ac_var+set}\" = set"; then
35912   echo $ECHO_N "(cached) $ECHO_C" >&6
35913 else
35914   cat >conftest.$ac_ext <<_ACEOF
35915 #line $LINENO "configure"
35916 /* confdefs.h.  */
35917 _ACEOF
35918 cat confdefs.h >>conftest.$ac_ext
35919 cat >>conftest.$ac_ext <<_ACEOF
35920 /* end confdefs.h.  */
35921 /* System header to define __stub macros and hopefully few prototypes,
35922     which can conflict with char $ac_func (); below.
35923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35924     <limits.h> exists even on freestanding compilers.  */
35925 #ifdef __STDC__
35926 # include <limits.h>
35927 #else
35928 # include <assert.h>
35929 #endif
35930 /* Override any gcc2 internal prototype to avoid an error.  */
35931 #ifdef __cplusplus
35932 extern "C"
35933 {
35934 #endif
35935 /* We use char because int might match the return type of a gcc2
35936    builtin and then its argument prototype would still apply.  */
35937 char $ac_func ();
35938 /* The GNU C library defines this for functions which it implements
35939     to always fail with ENOSYS.  Some functions are actually named
35940     something starting with __ and the normal name is an alias.  */
35941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35942 choke me
35943 #else
35944 char (*f) () = $ac_func;
35945 #endif
35946 #ifdef __cplusplus
35947 }
35948 #endif
35949
35950 int
35951 main ()
35952 {
35953 return f != $ac_func;
35954   ;
35955   return 0;
35956 }
35957 _ACEOF
35958 rm -f conftest.$ac_objext conftest$ac_exeext
35959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35960   (eval $ac_link) 2>&5
35961   ac_status=$?
35962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35963   (exit $ac_status); } &&
35964          { ac_try='test -s conftest$ac_exeext'
35965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35966   (eval $ac_try) 2>&5
35967   ac_status=$?
35968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35969   (exit $ac_status); }; }; then
35970   eval "$as_ac_var=yes"
35971 else
35972   echo "$as_me: failed program was:" >&5
35973 sed 's/^/| /' conftest.$ac_ext >&5
35974
35975 eval "$as_ac_var=no"
35976 fi
35977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35978 fi
35979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35981 if test `eval echo '${'$as_ac_var'}'` = yes; then
35982   cat >>confdefs.h <<_ACEOF
35983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35984 _ACEOF
35985
35986 fi
35987 done
35988
35989
35990 for ac_header in fs_info.h
35991 do
35992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35994   echo "$as_me:$LINENO: checking for $ac_header" >&5
35995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35997   echo $ECHO_N "(cached) $ECHO_C" >&6
35998 fi
35999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36001 else
36002   # Is the header compilable?
36003 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36005 cat >conftest.$ac_ext <<_ACEOF
36006 #line $LINENO "configure"
36007 /* confdefs.h.  */
36008 _ACEOF
36009 cat confdefs.h >>conftest.$ac_ext
36010 cat >>conftest.$ac_ext <<_ACEOF
36011 /* end confdefs.h.  */
36012 $ac_includes_default
36013 #include <$ac_header>
36014 _ACEOF
36015 rm -f conftest.$ac_objext
36016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36017   (eval $ac_compile) 2>&5
36018   ac_status=$?
36019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36020   (exit $ac_status); } &&
36021          { ac_try='test -s conftest.$ac_objext'
36022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36023   (eval $ac_try) 2>&5
36024   ac_status=$?
36025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36026   (exit $ac_status); }; }; then
36027   ac_header_compiler=yes
36028 else
36029   echo "$as_me: failed program was:" >&5
36030 sed 's/^/| /' conftest.$ac_ext >&5
36031
36032 ac_header_compiler=no
36033 fi
36034 rm -f conftest.$ac_objext conftest.$ac_ext
36035 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36036 echo "${ECHO_T}$ac_header_compiler" >&6
36037
36038 # Is the header present?
36039 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36041 cat >conftest.$ac_ext <<_ACEOF
36042 #line $LINENO "configure"
36043 /* confdefs.h.  */
36044 _ACEOF
36045 cat confdefs.h >>conftest.$ac_ext
36046 cat >>conftest.$ac_ext <<_ACEOF
36047 /* end confdefs.h.  */
36048 #include <$ac_header>
36049 _ACEOF
36050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36051   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36052   ac_status=$?
36053   grep -v '^ *+' conftest.er1 >conftest.err
36054   rm -f conftest.er1
36055   cat conftest.err >&5
36056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36057   (exit $ac_status); } >/dev/null; then
36058   if test -s conftest.err; then
36059     ac_cpp_err=$ac_c_preproc_warn_flag
36060   else
36061     ac_cpp_err=
36062   fi
36063 else
36064   ac_cpp_err=yes
36065 fi
36066 if test -z "$ac_cpp_err"; then
36067   ac_header_preproc=yes
36068 else
36069   echo "$as_me: failed program was:" >&5
36070 sed 's/^/| /' conftest.$ac_ext >&5
36071
36072   ac_header_preproc=no
36073 fi
36074 rm -f conftest.err conftest.$ac_ext
36075 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36076 echo "${ECHO_T}$ac_header_preproc" >&6
36077
36078 # So?  What about this header?
36079 case $ac_header_compiler:$ac_header_preproc in
36080   yes:no )
36081     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36085     (
36086       cat <<\_ASBOX
36087 ## ------------------------------------ ##
36088 ## Report this to bug-autoconf@gnu.org. ##
36089 ## ------------------------------------ ##
36090 _ASBOX
36091     ) |
36092       sed "s/^/$as_me: WARNING:     /" >&2
36093     ;;
36094   no:yes )
36095     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36097     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36098 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36099     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36101     (
36102       cat <<\_ASBOX
36103 ## ------------------------------------ ##
36104 ## Report this to bug-autoconf@gnu.org. ##
36105 ## ------------------------------------ ##
36106 _ASBOX
36107     ) |
36108       sed "s/^/$as_me: WARNING:     /" >&2
36109     ;;
36110 esac
36111 echo "$as_me:$LINENO: checking for $ac_header" >&5
36112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36114   echo $ECHO_N "(cached) $ECHO_C" >&6
36115 else
36116   eval "$as_ac_Header=$ac_header_preproc"
36117 fi
36118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36120
36121 fi
36122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36123   cat >>confdefs.h <<_ACEOF
36124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36125 _ACEOF
36126
36127 fi
36128
36129 done
36130
36131   echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
36132 echo $ECHO_N "checking for BEOS mounted file system support functions... $ECHO_C" >&6
36133   if test $ac_cv_header_fs_info_h = yes \
36134       && test $ac_cv_func_next_dev = yes \
36135         && test $ac_cv_func_fs_stat_dev = yes; then
36136     fu_result=yes
36137   else
36138     fu_result=no
36139   fi
36140   echo "$as_me:$LINENO: result: $fu_result" >&5
36141 echo "${ECHO_T}$fu_result" >&6
36142   if test $fu_result = yes; then
36143     ac_list_mounted_fs=found
36144
36145 cat >>confdefs.h <<\_ACEOF
36146 #define MOUNTED_FS_STAT_DEV 1
36147 _ACEOF
36148
36149   fi
36150 fi
36151
36152 if test -z "$ac_list_mounted_fs"; then
36153   # SVR2
36154   echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
36155 echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6
36156   if test "${fu_cv_sys_mounted_fread+set}" = set; then
36157   echo $ECHO_N "(cached) $ECHO_C" >&6
36158 else
36159   cat >conftest.$ac_ext <<_ACEOF
36160 #line $LINENO "configure"
36161 /* confdefs.h.  */
36162 _ACEOF
36163 cat confdefs.h >>conftest.$ac_ext
36164 cat >>conftest.$ac_ext <<_ACEOF
36165 /* end confdefs.h.  */
36166 #include <mnttab.h>
36167 _ACEOF
36168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36169   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36170   ac_status=$?
36171   grep -v '^ *+' conftest.er1 >conftest.err
36172   rm -f conftest.er1
36173   cat conftest.err >&5
36174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36175   (exit $ac_status); } >/dev/null; then
36176   if test -s conftest.err; then
36177     ac_cpp_err=$ac_c_preproc_warn_flag
36178   else
36179     ac_cpp_err=
36180   fi
36181 else
36182   ac_cpp_err=yes
36183 fi
36184 if test -z "$ac_cpp_err"; then
36185   fu_cv_sys_mounted_fread=yes
36186 else
36187   echo "$as_me: failed program was:" >&5
36188 sed 's/^/| /' conftest.$ac_ext >&5
36189
36190   fu_cv_sys_mounted_fread=no
36191 fi
36192 rm -f conftest.err conftest.$ac_ext
36193 fi
36194
36195   echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
36196 echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6
36197   if test $fu_cv_sys_mounted_fread = yes; then
36198     ac_list_mounted_fs=found
36199
36200 cat >>confdefs.h <<\_ACEOF
36201 #define MOUNTED_FREAD 1
36202 _ACEOF
36203
36204   fi
36205 fi
36206
36207 if test -z "$ac_list_mounted_fs"; then
36208   { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted filesystems" >&5
36209 echo "$as_me: error: could not determine how to read list of mounted filesystems" >&2;}
36210    { (exit 1); exit 1; }; }
36211   # FIXME -- no need to abort building the whole package
36212   # Can't build mountlist.c or anything that needs its functions
36213 fi
36214
36215 if test $ac_list_mounted_fs = found; then
36216   list_mounted_fs=yes
36217 else
36218   list_mounted_fs=no
36219 fi
36220
36221
36222
36223
36224     echo "$as_me:$LINENO: checking for f_fstypename in struct statfs" >&5
36225 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6
36226 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
36227   echo $ECHO_N "(cached) $ECHO_C" >&6
36228 else
36229
36230         cat >conftest.$ac_ext <<_ACEOF
36231 #line $LINENO "configure"
36232 /* confdefs.h.  */
36233 _ACEOF
36234 cat confdefs.h >>conftest.$ac_ext
36235 cat >>conftest.$ac_ext <<_ACEOF
36236 /* end confdefs.h.  */
36237
36238 #include <sys/param.h>
36239 #include <sys/types.h>
36240 #include <sys/mount.h>
36241
36242 int
36243 main ()
36244 {
36245 struct statfs s; int i = sizeof s.f_fstypename;
36246   ;
36247   return 0;
36248 }
36249 _ACEOF
36250 rm -f conftest.$ac_objext
36251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36252   (eval $ac_compile) 2>&5
36253   ac_status=$?
36254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36255   (exit $ac_status); } &&
36256          { ac_try='test -s conftest.$ac_objext'
36257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36258   (eval $ac_try) 2>&5
36259   ac_status=$?
36260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36261   (exit $ac_status); }; }; then
36262   fu_cv_sys_f_fstypename_in_statfs=yes
36263 else
36264   echo "$as_me: failed program was:" >&5
36265 sed 's/^/| /' conftest.$ac_ext >&5
36266
36267 fu_cv_sys_f_fstypename_in_statfs=no
36268
36269 fi
36270 rm -f conftest.$ac_objext conftest.$ac_ext
36271
36272
36273 fi
36274 echo "$as_me:$LINENO: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
36275 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6
36276
36277     if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
36278
36279 cat >>confdefs.h <<\_ACEOF
36280 #define HAVE_F_FSTYPENAME_IN_STATFS 1
36281 _ACEOF
36282
36283     fi
36284
36285
36286
36287
36288 echo "checking how to get filesystem space usage..."
36289 ac_fsusage_space=no
36290
36291 # Perform only the link test since it seems there are no variants of the
36292 # statvfs function.  This check is more than just AC_CHECK_FUNCS(statvfs)
36293 # because that got a false positive on SCO OSR5.  Adding the declaration
36294 # of a `struct statvfs' causes this test to fail (as it should) on such
36295 # systems.  That system is reported to work fine with STAT_STATFS4 which
36296 # is what it gets when this test fails.
36297 if test $ac_fsusage_space = no; then
36298   # SVR4
36299   echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
36300 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6
36301 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
36302   echo $ECHO_N "(cached) $ECHO_C" >&6
36303 else
36304   cat >conftest.$ac_ext <<_ACEOF
36305 #line $LINENO "configure"
36306 /* confdefs.h.  */
36307 _ACEOF
36308 cat confdefs.h >>conftest.$ac_ext
36309 cat >>conftest.$ac_ext <<_ACEOF
36310 /* end confdefs.h.  */
36311 #include <sys/types.h>
36312 #include <sys/statvfs.h>
36313 int
36314 main ()
36315 {
36316 struct statvfs fsd; statvfs (0, &fsd);
36317   ;
36318   return 0;
36319 }
36320 _ACEOF
36321 rm -f conftest.$ac_objext conftest$ac_exeext
36322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36323   (eval $ac_link) 2>&5
36324   ac_status=$?
36325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36326   (exit $ac_status); } &&
36327          { ac_try='test -s conftest$ac_exeext'
36328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36329   (eval $ac_try) 2>&5
36330   ac_status=$?
36331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36332   (exit $ac_status); }; }; then
36333   fu_cv_sys_stat_statvfs=yes
36334 else
36335   echo "$as_me: failed program was:" >&5
36336 sed 's/^/| /' conftest.$ac_ext >&5
36337
36338 fu_cv_sys_stat_statvfs=no
36339 fi
36340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36341 fi
36342 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
36343 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
36344   if test $fu_cv_sys_stat_statvfs = yes; then
36345     ac_fsusage_space=yes
36346
36347 cat >>confdefs.h <<\_ACEOF
36348 #define STAT_STATVFS 1
36349 _ACEOF
36350
36351   fi
36352 fi
36353
36354 if test $ac_fsusage_space = no; then
36355   # DEC Alpha running OSF/1
36356   echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
36357 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
36358   if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
36359   echo $ECHO_N "(cached) $ECHO_C" >&6
36360 else
36361   if test "$cross_compiling" = yes; then
36362   fu_cv_sys_stat_statfs3_osf1=no
36363 else
36364   cat >conftest.$ac_ext <<_ACEOF
36365 #line $LINENO "configure"
36366 /* confdefs.h.  */
36367 _ACEOF
36368 cat confdefs.h >>conftest.$ac_ext
36369 cat >>conftest.$ac_ext <<_ACEOF
36370 /* end confdefs.h.  */
36371
36372 #include <sys/param.h>
36373 #include <sys/types.h>
36374 #include <sys/mount.h>
36375   main ()
36376   {
36377     struct statfs fsd;
36378     fsd.f_fsize = 0;
36379     exit (statfs (".", &fsd, sizeof (struct statfs)));
36380   }
36381 _ACEOF
36382 rm -f conftest$ac_exeext
36383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36384   (eval $ac_link) 2>&5
36385   ac_status=$?
36386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36387   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36389   (eval $ac_try) 2>&5
36390   ac_status=$?
36391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36392   (exit $ac_status); }; }; then
36393   fu_cv_sys_stat_statfs3_osf1=yes
36394 else
36395   echo "$as_me: program exited with status $ac_status" >&5
36396 echo "$as_me: failed program was:" >&5
36397 sed 's/^/| /' conftest.$ac_ext >&5
36398
36399 ( exit $ac_status )
36400 fu_cv_sys_stat_statfs3_osf1=no
36401 fi
36402 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36403 fi
36404 fi
36405
36406   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
36407 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
36408   if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
36409     ac_fsusage_space=yes
36410
36411 cat >>confdefs.h <<\_ACEOF
36412 #define STAT_STATFS3_OSF1 1
36413 _ACEOF
36414
36415   fi
36416 fi
36417
36418 if test $ac_fsusage_space = no; then
36419 # AIX
36420   echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
36421 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
36422   if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
36423   echo $ECHO_N "(cached) $ECHO_C" >&6
36424 else
36425   if test "$cross_compiling" = yes; then
36426   fu_cv_sys_stat_statfs2_bsize=no
36427 else
36428   cat >conftest.$ac_ext <<_ACEOF
36429 #line $LINENO "configure"
36430 /* confdefs.h.  */
36431 _ACEOF
36432 cat confdefs.h >>conftest.$ac_ext
36433 cat >>conftest.$ac_ext <<_ACEOF
36434 /* end confdefs.h.  */
36435
36436 #ifdef HAVE_SYS_PARAM_H
36437 #include <sys/param.h>
36438 #endif
36439 #ifdef HAVE_SYS_MOUNT_H
36440 #include <sys/mount.h>
36441 #endif
36442 #ifdef HAVE_SYS_VFS_H
36443 #include <sys/vfs.h>
36444 #endif
36445   main ()
36446   {
36447   struct statfs fsd;
36448   fsd.f_bsize = 0;
36449   exit (statfs (".", &fsd));
36450   }
36451 _ACEOF
36452 rm -f conftest$ac_exeext
36453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36454   (eval $ac_link) 2>&5
36455   ac_status=$?
36456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36457   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36459   (eval $ac_try) 2>&5
36460   ac_status=$?
36461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36462   (exit $ac_status); }; }; then
36463   fu_cv_sys_stat_statfs2_bsize=yes
36464 else
36465   echo "$as_me: program exited with status $ac_status" >&5
36466 echo "$as_me: failed program was:" >&5
36467 sed 's/^/| /' conftest.$ac_ext >&5
36468
36469 ( exit $ac_status )
36470 fu_cv_sys_stat_statfs2_bsize=no
36471 fi
36472 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36473 fi
36474 fi
36475
36476   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
36477 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
36478   if test $fu_cv_sys_stat_statfs2_bsize = yes; then
36479     ac_fsusage_space=yes
36480
36481 cat >>confdefs.h <<\_ACEOF
36482 #define STAT_STATFS2_BSIZE 1
36483 _ACEOF
36484
36485   fi
36486 fi
36487
36488 if test $ac_fsusage_space = no; then
36489 # SVR3
36490   echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
36491 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
36492   if test "${fu_cv_sys_stat_statfs4+set}" = set; then
36493   echo $ECHO_N "(cached) $ECHO_C" >&6
36494 else
36495   if test "$cross_compiling" = yes; then
36496   fu_cv_sys_stat_statfs4=no
36497 else
36498   cat >conftest.$ac_ext <<_ACEOF
36499 #line $LINENO "configure"
36500 /* confdefs.h.  */
36501 _ACEOF
36502 cat confdefs.h >>conftest.$ac_ext
36503 cat >>conftest.$ac_ext <<_ACEOF
36504 /* end confdefs.h.  */
36505 #include <sys/types.h>
36506 #include <sys/statfs.h>
36507   main ()
36508   {
36509   struct statfs fsd;
36510   exit (statfs (".", &fsd, sizeof fsd, 0));
36511   }
36512 _ACEOF
36513 rm -f conftest$ac_exeext
36514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36515   (eval $ac_link) 2>&5
36516   ac_status=$?
36517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36518   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36520   (eval $ac_try) 2>&5
36521   ac_status=$?
36522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36523   (exit $ac_status); }; }; then
36524   fu_cv_sys_stat_statfs4=yes
36525 else
36526   echo "$as_me: program exited with status $ac_status" >&5
36527 echo "$as_me: failed program was:" >&5
36528 sed 's/^/| /' conftest.$ac_ext >&5
36529
36530 ( exit $ac_status )
36531 fu_cv_sys_stat_statfs4=no
36532 fi
36533 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36534 fi
36535 fi
36536
36537   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
36538 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
36539   if test $fu_cv_sys_stat_statfs4 = yes; then
36540     ac_fsusage_space=yes
36541
36542 cat >>confdefs.h <<\_ACEOF
36543 #define STAT_STATFS4 1
36544 _ACEOF
36545
36546   fi
36547 fi
36548
36549 if test $ac_fsusage_space = no; then
36550 # 4.4BSD and NetBSD
36551   echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
36552 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
36553   if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
36554   echo $ECHO_N "(cached) $ECHO_C" >&6
36555 else
36556   if test "$cross_compiling" = yes; then
36557   fu_cv_sys_stat_statfs2_fsize=no
36558 else
36559   cat >conftest.$ac_ext <<_ACEOF
36560 #line $LINENO "configure"
36561 /* confdefs.h.  */
36562 _ACEOF
36563 cat confdefs.h >>conftest.$ac_ext
36564 cat >>conftest.$ac_ext <<_ACEOF
36565 /* end confdefs.h.  */
36566 #include <sys/types.h>
36567 #ifdef HAVE_SYS_PARAM_H
36568 #include <sys/param.h>
36569 #endif
36570 #ifdef HAVE_SYS_MOUNT_H
36571 #include <sys/mount.h>
36572 #endif
36573   main ()
36574   {
36575   struct statfs fsd;
36576   fsd.f_fsize = 0;
36577   exit (statfs (".", &fsd));
36578   }
36579 _ACEOF
36580 rm -f conftest$ac_exeext
36581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36582   (eval $ac_link) 2>&5
36583   ac_status=$?
36584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36585   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36587   (eval $ac_try) 2>&5
36588   ac_status=$?
36589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36590   (exit $ac_status); }; }; then
36591   fu_cv_sys_stat_statfs2_fsize=yes
36592 else
36593   echo "$as_me: program exited with status $ac_status" >&5
36594 echo "$as_me: failed program was:" >&5
36595 sed 's/^/| /' conftest.$ac_ext >&5
36596
36597 ( exit $ac_status )
36598 fu_cv_sys_stat_statfs2_fsize=no
36599 fi
36600 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36601 fi
36602 fi
36603
36604   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
36605 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
36606   if test $fu_cv_sys_stat_statfs2_fsize = yes; then
36607     ac_fsusage_space=yes
36608
36609 cat >>confdefs.h <<\_ACEOF
36610 #define STAT_STATFS2_FSIZE 1
36611 _ACEOF
36612
36613   fi
36614 fi
36615
36616 if test $ac_fsusage_space = no; then
36617   # Ultrix
36618   echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
36619 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
36620   if test "${fu_cv_sys_stat_fs_data+set}" = set; then
36621   echo $ECHO_N "(cached) $ECHO_C" >&6
36622 else
36623   if test "$cross_compiling" = yes; then
36624   fu_cv_sys_stat_fs_data=no
36625 else
36626   cat >conftest.$ac_ext <<_ACEOF
36627 #line $LINENO "configure"
36628 /* confdefs.h.  */
36629 _ACEOF
36630 cat confdefs.h >>conftest.$ac_ext
36631 cat >>conftest.$ac_ext <<_ACEOF
36632 /* end confdefs.h.  */
36633 #include <sys/types.h>
36634 #ifdef HAVE_SYS_PARAM_H
36635 #include <sys/param.h>
36636 #endif
36637 #ifdef HAVE_SYS_MOUNT_H
36638 #include <sys/mount.h>
36639 #endif
36640 #ifdef HAVE_SYS_FS_TYPES_H
36641 #include <sys/fs_types.h>
36642 #endif
36643   main ()
36644   {
36645   struct fs_data fsd;
36646   /* Ultrix's statfs returns 1 for success,
36647      0 for not mounted, -1 for failure.  */
36648   exit (statfs (".", &fsd) != 1);
36649   }
36650 _ACEOF
36651 rm -f conftest$ac_exeext
36652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36653   (eval $ac_link) 2>&5
36654   ac_status=$?
36655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36656   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36658   (eval $ac_try) 2>&5
36659   ac_status=$?
36660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36661   (exit $ac_status); }; }; then
36662   fu_cv_sys_stat_fs_data=yes
36663 else
36664   echo "$as_me: program exited with status $ac_status" >&5
36665 echo "$as_me: failed program was:" >&5
36666 sed 's/^/| /' conftest.$ac_ext >&5
36667
36668 ( exit $ac_status )
36669 fu_cv_sys_stat_fs_data=no
36670 fi
36671 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36672 fi
36673 fi
36674
36675   echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
36676 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
36677   if test $fu_cv_sys_stat_fs_data = yes; then
36678     ac_fsusage_space=yes
36679
36680 cat >>confdefs.h <<\_ACEOF
36681 #define STAT_STATFS2_FS_DATA 1
36682 _ACEOF
36683
36684   fi
36685 fi
36686
36687 if test $ac_fsusage_space = no; then
36688   # SVR2
36689   cat >conftest.$ac_ext <<_ACEOF
36690 #line $LINENO "configure"
36691 /* confdefs.h.  */
36692 _ACEOF
36693 cat confdefs.h >>conftest.$ac_ext
36694 cat >>conftest.$ac_ext <<_ACEOF
36695 /* end confdefs.h.  */
36696 #include <sys/filsys.h>
36697
36698 _ACEOF
36699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36700   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36701   ac_status=$?
36702   grep -v '^ *+' conftest.er1 >conftest.err
36703   rm -f conftest.er1
36704   cat conftest.err >&5
36705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36706   (exit $ac_status); } >/dev/null; then
36707   if test -s conftest.err; then
36708     ac_cpp_err=$ac_c_preproc_warn_flag
36709   else
36710     ac_cpp_err=
36711   fi
36712 else
36713   ac_cpp_err=yes
36714 fi
36715 if test -z "$ac_cpp_err"; then
36716
36717 cat >>confdefs.h <<\_ACEOF
36718 #define STAT_READ_FILSYS 1
36719 _ACEOF
36720
36721     ac_fsusage_space=yes
36722 else
36723   echo "$as_me: failed program was:" >&5
36724 sed 's/^/| /' conftest.$ac_ext >&5
36725
36726
36727 fi
36728 rm -f conftest.err conftest.$ac_ext
36729 fi
36730
36731 if test $ac_fsusage_space = yes; then
36732   space=yes
36733 else
36734   space=no
36735 fi
36736
36737
36738
36739   if test $list_mounted_fs = yes && test $space = yes; then
36740     DF_PROG=df
36741     LIBOBJS="$LIBOBJS fsusage.$ac_objext"
36742     LIBOBJS="$LIBOBJS mountlist.$ac_objext"
36743   fi
36744
36745
36746
36747
36748
36749 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
36750 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
36751 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
36752   echo $ECHO_N "(cached) $ECHO_C" >&6
36753 else
36754   cat >conftest.$ac_ext <<_ACEOF
36755 #line $LINENO "configure"
36756 /* confdefs.h.  */
36757 _ACEOF
36758 cat confdefs.h >>conftest.$ac_ext
36759 cat >>conftest.$ac_ext <<_ACEOF
36760 /* end confdefs.h.  */
36761 #include <sys/types.h>
36762 #include <termios.h>
36763 #ifdef TIOCGWINSZ
36764   yes
36765 #endif
36766
36767 _ACEOF
36768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36769   $EGREP "yes" >/dev/null 2>&1; then
36770   ac_cv_sys_tiocgwinsz_in_termios_h=yes
36771 else
36772   ac_cv_sys_tiocgwinsz_in_termios_h=no
36773 fi
36774 rm -f conftest*
36775
36776 fi
36777 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
36778 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
36779
36780 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
36781   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
36782 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
36783 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
36784   echo $ECHO_N "(cached) $ECHO_C" >&6
36785 else
36786   cat >conftest.$ac_ext <<_ACEOF
36787 #line $LINENO "configure"
36788 /* confdefs.h.  */
36789 _ACEOF
36790 cat confdefs.h >>conftest.$ac_ext
36791 cat >>conftest.$ac_ext <<_ACEOF
36792 /* end confdefs.h.  */
36793 #include <sys/types.h>
36794 #include <sys/ioctl.h>
36795 #ifdef TIOCGWINSZ
36796   yes
36797 #endif
36798
36799 _ACEOF
36800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36801   $EGREP "yes" >/dev/null 2>&1; then
36802   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
36803 else
36804   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
36805 fi
36806 rm -f conftest*
36807
36808 fi
36809 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
36810 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
36811
36812   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
36813
36814 cat >>confdefs.h <<\_ACEOF
36815 #define GWINSZ_IN_SYS_IOCTL 1
36816 _ACEOF
36817
36818   fi
36819 fi
36820
36821 echo "$as_me:$LINENO: checking POSIX termios" >&5
36822 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
36823 if test "${ac_cv_sys_posix_termios+set}" = set; then
36824   echo $ECHO_N "(cached) $ECHO_C" >&6
36825 else
36826   cat >conftest.$ac_ext <<_ACEOF
36827 #line $LINENO "configure"
36828 /* confdefs.h.  */
36829 _ACEOF
36830 cat confdefs.h >>conftest.$ac_ext
36831 cat >>conftest.$ac_ext <<_ACEOF
36832 /* end confdefs.h.  */
36833 #include <sys/types.h>
36834 #include <unistd.h>
36835 #include <termios.h>
36836
36837 int
36838 main ()
36839 {
36840 /* SunOS 4.0.3 has termios.h but not the library calls.  */
36841    tcgetattr(0, 0);
36842   ;
36843   return 0;
36844 }
36845 _ACEOF
36846 rm -f conftest.$ac_objext conftest$ac_exeext
36847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36848   (eval $ac_link) 2>&5
36849   ac_status=$?
36850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36851   (exit $ac_status); } &&
36852          { ac_try='test -s conftest$ac_exeext'
36853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36854   (eval $ac_try) 2>&5
36855   ac_status=$?
36856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36857   (exit $ac_status); }; }; then
36858   ac_cv_sys_posix_termios=yes
36859 else
36860   echo "$as_me: failed program was:" >&5
36861 sed 's/^/| /' conftest.$ac_ext >&5
36862
36863 ac_cv_sys_posix_termios=no
36864 fi
36865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36866 fi
36867 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
36868 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
36869
36870
36871    echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
36872 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
36873 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
36874   echo $ECHO_N "(cached) $ECHO_C" >&6
36875 else
36876   jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
36877       if test $ac_cv_sys_posix_termios = yes; then
36878         cat >conftest.$ac_ext <<_ACEOF
36879 #line $LINENO "configure"
36880 /* confdefs.h.  */
36881 _ACEOF
36882 cat confdefs.h >>conftest.$ac_ext
36883 cat >>conftest.$ac_ext <<_ACEOF
36884 /* end confdefs.h.  */
36885 #include <termios.h>
36886           struct winsize x;
36887 int
36888 main ()
36889 {
36890 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
36891   ;
36892   return 0;
36893 }
36894 _ACEOF
36895 rm -f conftest.$ac_objext
36896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36897   (eval $ac_compile) 2>&5
36898   ac_status=$?
36899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36900   (exit $ac_status); } &&
36901          { ac_try='test -s conftest.$ac_objext'
36902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36903   (eval $ac_try) 2>&5
36904   ac_status=$?
36905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36906   (exit $ac_status); }; }; then
36907   :
36908 else
36909   echo "$as_me: failed program was:" >&5
36910 sed 's/^/| /' conftest.$ac_ext >&5
36911
36912 fi
36913 rm -f conftest.$ac_objext conftest.$ac_ext
36914       fi
36915       if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
36916         cat >conftest.$ac_ext <<_ACEOF
36917 #line $LINENO "configure"
36918 /* confdefs.h.  */
36919 _ACEOF
36920 cat confdefs.h >>conftest.$ac_ext
36921 cat >>conftest.$ac_ext <<_ACEOF
36922 /* end confdefs.h.  */
36923 #include <sys/ptem.h>
36924 int
36925 main ()
36926 {
36927 struct winsize x;
36928   ;
36929   return 0;
36930 }
36931 _ACEOF
36932 rm -f conftest.$ac_objext
36933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36934   (eval $ac_compile) 2>&5
36935   ac_status=$?
36936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36937   (exit $ac_status); } &&
36938          { ac_try='test -s conftest.$ac_objext'
36939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36940   (eval $ac_try) 2>&5
36941   ac_status=$?
36942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36943   (exit $ac_status); }; }; then
36944   :
36945 else
36946   echo "$as_me: failed program was:" >&5
36947 sed 's/^/| /' conftest.$ac_ext >&5
36948
36949 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
36950 fi
36951 rm -f conftest.$ac_objext conftest.$ac_ext
36952       fi
36953 fi
36954 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
36955 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
36956    if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
36957
36958 cat >>confdefs.h <<\_ACEOF
36959 #define WINSIZE_IN_PTEM 1
36960 _ACEOF
36961
36962    fi
36963
36964 # Check for SunOS statfs brokenness wrt partitions 2GB and larger.
36965 # If <sys/vfs.h> exists and struct statfs has a member named f_spare,
36966 # enable the work-around code in fsusage.c.
36967 echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
36968 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6
36969 if test "${fu_cv_sys_truncating_statfs+set}" = set; then
36970   echo $ECHO_N "(cached) $ECHO_C" >&6
36971 else
36972   cat >conftest.$ac_ext <<_ACEOF
36973 #line $LINENO "configure"
36974 /* confdefs.h.  */
36975 _ACEOF
36976 cat confdefs.h >>conftest.$ac_ext
36977 cat >>conftest.$ac_ext <<_ACEOF
36978 /* end confdefs.h.  */
36979
36980 #if !defined(sun) && !defined(__sun)
36981 choke -- this is a workaround for a Sun-specific problem
36982 #endif
36983 #include <sys/types.h>
36984 #include <sys/vfs.h>
36985 int
36986 main ()
36987 {
36988 struct statfs t; long c = *(t.f_spare);
36989   ;
36990   return 0;
36991 }
36992 _ACEOF
36993 rm -f conftest.$ac_objext
36994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36995   (eval $ac_compile) 2>&5
36996   ac_status=$?
36997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36998   (exit $ac_status); } &&
36999          { ac_try='test -s conftest.$ac_objext'
37000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37001   (eval $ac_try) 2>&5
37002   ac_status=$?
37003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37004   (exit $ac_status); }; }; then
37005   fu_cv_sys_truncating_statfs=yes
37006 else
37007   echo "$as_me: failed program was:" >&5
37008 sed 's/^/| /' conftest.$ac_ext >&5
37009
37010 fu_cv_sys_truncating_statfs=no
37011 fi
37012 rm -f conftest.$ac_objext conftest.$ac_ext
37013 fi
37014
37015 if test $fu_cv_sys_truncating_statfs = yes; then
37016
37017 cat >>confdefs.h <<\_ACEOF
37018 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
37019 _ACEOF
37020
37021 fi
37022 echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
37023 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6
37024
37025 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
37026 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
37027 if test "${utils_cv_localtime_cache+set}" = set; then
37028   echo $ECHO_N "(cached) $ECHO_C" >&6
37029 else
37030   if test x$ac_cv_func_tzset = xyes; then
37031 if test "$cross_compiling" = yes; then
37032   # If we have tzset, assume the worst when cross-compiling.
37033 utils_cv_localtime_cache=yes
37034 else
37035   cat >conftest.$ac_ext <<_ACEOF
37036 #line $LINENO "configure"
37037 /* confdefs.h.  */
37038 _ACEOF
37039 cat confdefs.h >>conftest.$ac_ext
37040 cat >>conftest.$ac_ext <<_ACEOF
37041 /* end confdefs.h.  */
37042 #include <time.h>
37043 #if STDC_HEADERS
37044 # include <stdlib.h>
37045 #endif
37046 extern char **environ;
37047 unset_TZ ()
37048 {
37049   char **from, **to;
37050   for (to = from = environ; (*to = *from); from++)
37051     if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
37052       to++;
37053 }
37054 main()
37055 {
37056   time_t now = time ((time_t *) 0);
37057   int hour_GMT0, hour_unset;
37058   if (putenv ("TZ=GMT0") != 0)
37059     exit (1);
37060   hour_GMT0 = localtime (&now)->tm_hour;
37061   unset_TZ ();
37062   hour_unset = localtime (&now)->tm_hour;
37063   if (putenv ("TZ=PST8") != 0)
37064     exit (1);
37065   if (localtime (&now)->tm_hour == hour_GMT0)
37066     exit (1);
37067   unset_TZ ();
37068   if (localtime (&now)->tm_hour != hour_unset)
37069     exit (1);
37070   exit (0);
37071 }
37072 _ACEOF
37073 rm -f conftest$ac_exeext
37074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37075   (eval $ac_link) 2>&5
37076   ac_status=$?
37077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37078   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37080   (eval $ac_try) 2>&5
37081   ac_status=$?
37082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37083   (exit $ac_status); }; }; then
37084   utils_cv_localtime_cache=no
37085 else
37086   echo "$as_me: program exited with status $ac_status" >&5
37087 echo "$as_me: failed program was:" >&5
37088 sed 's/^/| /' conftest.$ac_ext >&5
37089
37090 ( exit $ac_status )
37091 utils_cv_localtime_cache=yes
37092 fi
37093 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37094 fi
37095 else
37096         # If we lack tzset, report that localtime does not cache TZ,
37097         # since we can't invalidate the cache if we don't have tzset.
37098         utils_cv_localtime_cache=no
37099 fi
37100 fi
37101 echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
37102 echo "${ECHO_T}$utils_cv_localtime_cache" >&6
37103 if test $utils_cv_localtime_cache = yes; then
37104
37105 cat >>confdefs.h <<\_ACEOF
37106 #define LOCALTIME_CACHE 1
37107 _ACEOF
37108
37109 fi
37110
37111 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
37112
37113 for ac_func in initgroups
37114 do
37115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37116 echo "$as_me:$LINENO: checking for $ac_func" >&5
37117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37118 if eval "test \"\${$as_ac_var+set}\" = set"; then
37119   echo $ECHO_N "(cached) $ECHO_C" >&6
37120 else
37121   cat >conftest.$ac_ext <<_ACEOF
37122 #line $LINENO "configure"
37123 /* confdefs.h.  */
37124 _ACEOF
37125 cat confdefs.h >>conftest.$ac_ext
37126 cat >>conftest.$ac_ext <<_ACEOF
37127 /* end confdefs.h.  */
37128 /* System header to define __stub macros and hopefully few prototypes,
37129     which can conflict with char $ac_func (); below.
37130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37131     <limits.h> exists even on freestanding compilers.  */
37132 #ifdef __STDC__
37133 # include <limits.h>
37134 #else
37135 # include <assert.h>
37136 #endif
37137 /* Override any gcc2 internal prototype to avoid an error.  */
37138 #ifdef __cplusplus
37139 extern "C"
37140 {
37141 #endif
37142 /* We use char because int might match the return type of a gcc2
37143    builtin and then its argument prototype would still apply.  */
37144 char $ac_func ();
37145 /* The GNU C library defines this for functions which it implements
37146     to always fail with ENOSYS.  Some functions are actually named
37147     something starting with __ and the normal name is an alias.  */
37148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37149 choke me
37150 #else
37151 char (*f) () = $ac_func;
37152 #endif
37153 #ifdef __cplusplus
37154 }
37155 #endif
37156
37157 int
37158 main ()
37159 {
37160 return f != $ac_func;
37161   ;
37162   return 0;
37163 }
37164 _ACEOF
37165 rm -f conftest.$ac_objext conftest$ac_exeext
37166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37167   (eval $ac_link) 2>&5
37168   ac_status=$?
37169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37170   (exit $ac_status); } &&
37171          { ac_try='test -s conftest$ac_exeext'
37172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37173   (eval $ac_try) 2>&5
37174   ac_status=$?
37175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37176   (exit $ac_status); }; }; then
37177   eval "$as_ac_var=yes"
37178 else
37179   echo "$as_me: failed program was:" >&5
37180 sed 's/^/| /' conftest.$ac_ext >&5
37181
37182 eval "$as_ac_var=no"
37183 fi
37184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37185 fi
37186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37187 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37188 if test `eval echo '${'$as_ac_var'}'` = yes; then
37189   cat >>confdefs.h <<_ACEOF
37190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37191 _ACEOF
37192
37193 fi
37194 done
37195
37196 if test $ac_cv_func_initgroups = no; then
37197
37198 echo "$as_me:$LINENO: checking for initgroups in -los" >&5
37199 echo $ECHO_N "checking for initgroups in -los... $ECHO_C" >&6
37200 if test "${ac_cv_lib_os_initgroups+set}" = set; then
37201   echo $ECHO_N "(cached) $ECHO_C" >&6
37202 else
37203   ac_check_lib_save_LIBS=$LIBS
37204 LIBS="-los  $LIBS"
37205 cat >conftest.$ac_ext <<_ACEOF
37206 #line $LINENO "configure"
37207 /* confdefs.h.  */
37208 _ACEOF
37209 cat confdefs.h >>conftest.$ac_ext
37210 cat >>conftest.$ac_ext <<_ACEOF
37211 /* end confdefs.h.  */
37212
37213 /* Override any gcc2 internal prototype to avoid an error.  */
37214 #ifdef __cplusplus
37215 extern "C"
37216 #endif
37217 /* We use char because int might match the return type of a gcc2
37218    builtin and then its argument prototype would still apply.  */
37219 char initgroups ();
37220 int
37221 main ()
37222 {
37223 initgroups ();
37224   ;
37225   return 0;
37226 }
37227 _ACEOF
37228 rm -f conftest.$ac_objext conftest$ac_exeext
37229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37230   (eval $ac_link) 2>&5
37231   ac_status=$?
37232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37233   (exit $ac_status); } &&
37234          { ac_try='test -s conftest$ac_exeext'
37235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37236   (eval $ac_try) 2>&5
37237   ac_status=$?
37238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37239   (exit $ac_status); }; }; then
37240   ac_cv_lib_os_initgroups=yes
37241 else
37242   echo "$as_me: failed program was:" >&5
37243 sed 's/^/| /' conftest.$ac_ext >&5
37244
37245 ac_cv_lib_os_initgroups=no
37246 fi
37247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37248 LIBS=$ac_check_lib_save_LIBS
37249 fi
37250 echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
37251 echo "${ECHO_T}$ac_cv_lib_os_initgroups" >&6
37252 if test $ac_cv_lib_os_initgroups = yes; then
37253   cat >>confdefs.h <<_ACEOF
37254 #define HAVE_LIBOS 1
37255 _ACEOF
37256
37257   LIBS="-los $LIBS"
37258
37259 fi
37260
37261 fi
37262
37263
37264 for ac_func in syslog
37265 do
37266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37267 echo "$as_me:$LINENO: checking for $ac_func" >&5
37268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37269 if eval "test \"\${$as_ac_var+set}\" = set"; then
37270   echo $ECHO_N "(cached) $ECHO_C" >&6
37271 else
37272   cat >conftest.$ac_ext <<_ACEOF
37273 #line $LINENO "configure"
37274 /* confdefs.h.  */
37275 _ACEOF
37276 cat confdefs.h >>conftest.$ac_ext
37277 cat >>conftest.$ac_ext <<_ACEOF
37278 /* end confdefs.h.  */
37279 /* System header to define __stub macros and hopefully few prototypes,
37280     which can conflict with char $ac_func (); below.
37281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37282     <limits.h> exists even on freestanding compilers.  */
37283 #ifdef __STDC__
37284 # include <limits.h>
37285 #else
37286 # include <assert.h>
37287 #endif
37288 /* Override any gcc2 internal prototype to avoid an error.  */
37289 #ifdef __cplusplus
37290 extern "C"
37291 {
37292 #endif
37293 /* We use char because int might match the return type of a gcc2
37294    builtin and then its argument prototype would still apply.  */
37295 char $ac_func ();
37296 /* The GNU C library defines this for functions which it implements
37297     to always fail with ENOSYS.  Some functions are actually named
37298     something starting with __ and the normal name is an alias.  */
37299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37300 choke me
37301 #else
37302 char (*f) () = $ac_func;
37303 #endif
37304 #ifdef __cplusplus
37305 }
37306 #endif
37307
37308 int
37309 main ()
37310 {
37311 return f != $ac_func;
37312   ;
37313   return 0;
37314 }
37315 _ACEOF
37316 rm -f conftest.$ac_objext conftest$ac_exeext
37317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37318   (eval $ac_link) 2>&5
37319   ac_status=$?
37320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37321   (exit $ac_status); } &&
37322          { ac_try='test -s conftest$ac_exeext'
37323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37324   (eval $ac_try) 2>&5
37325   ac_status=$?
37326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37327   (exit $ac_status); }; }; then
37328   eval "$as_ac_var=yes"
37329 else
37330   echo "$as_me: failed program was:" >&5
37331 sed 's/^/| /' conftest.$ac_ext >&5
37332
37333 eval "$as_ac_var=no"
37334 fi
37335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37336 fi
37337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37339 if test `eval echo '${'$as_ac_var'}'` = yes; then
37340   cat >>confdefs.h <<_ACEOF
37341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37342 _ACEOF
37343
37344 fi
37345 done
37346
37347 if test $ac_cv_func_syslog = no; then
37348   # syslog is not in the default libraries.  See if it's in some other.
37349   for lib in bsd socket inet; do
37350     as_ac_Lib=`echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
37351 echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
37352 echo $ECHO_N "checking for syslog in -l$lib... $ECHO_C" >&6
37353 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
37354   echo $ECHO_N "(cached) $ECHO_C" >&6
37355 else
37356   ac_check_lib_save_LIBS=$LIBS
37357 LIBS="-l$lib  $LIBS"
37358 cat >conftest.$ac_ext <<_ACEOF
37359 #line $LINENO "configure"
37360 /* confdefs.h.  */
37361 _ACEOF
37362 cat confdefs.h >>conftest.$ac_ext
37363 cat >>conftest.$ac_ext <<_ACEOF
37364 /* end confdefs.h.  */
37365
37366 /* Override any gcc2 internal prototype to avoid an error.  */
37367 #ifdef __cplusplus
37368 extern "C"
37369 #endif
37370 /* We use char because int might match the return type of a gcc2
37371    builtin and then its argument prototype would still apply.  */
37372 char syslog ();
37373 int
37374 main ()
37375 {
37376 syslog ();
37377   ;
37378   return 0;
37379 }
37380 _ACEOF
37381 rm -f conftest.$ac_objext conftest$ac_exeext
37382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37383   (eval $ac_link) 2>&5
37384   ac_status=$?
37385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37386   (exit $ac_status); } &&
37387          { ac_try='test -s conftest$ac_exeext'
37388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37389   (eval $ac_try) 2>&5
37390   ac_status=$?
37391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37392   (exit $ac_status); }; }; then
37393   eval "$as_ac_Lib=yes"
37394 else
37395   echo "$as_me: failed program was:" >&5
37396 sed 's/^/| /' conftest.$ac_ext >&5
37397
37398 eval "$as_ac_Lib=no"
37399 fi
37400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37401 LIBS=$ac_check_lib_save_LIBS
37402 fi
37403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
37404 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
37405 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37406
37407 cat >>confdefs.h <<\_ACEOF
37408 #define HAVE_SYSLOG 1
37409 _ACEOF
37410
37411       LIBS="$LIBS -l$lib"; break
37412 fi
37413
37414   done
37415 fi
37416
37417 echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
37418 echo $ECHO_N "checking for 3-argument setpriority function... $ECHO_C" >&6
37419 if test "${utils_cv_func_setpriority+set}" = set; then
37420   echo $ECHO_N "(cached) $ECHO_C" >&6
37421 else
37422   cat >conftest.$ac_ext <<_ACEOF
37423 #line $LINENO "configure"
37424 /* confdefs.h.  */
37425 _ACEOF
37426 cat confdefs.h >>conftest.$ac_ext
37427 cat >>conftest.$ac_ext <<_ACEOF
37428 /* end confdefs.h.  */
37429 #include <sys/time.h>
37430   #include <sys/resource.h>
37431 int
37432 main ()
37433 {
37434 setpriority(0, 0, 0);
37435   ;
37436   return 0;
37437 }
37438 _ACEOF
37439 rm -f conftest.$ac_objext conftest$ac_exeext
37440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37441   (eval $ac_link) 2>&5
37442   ac_status=$?
37443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37444   (exit $ac_status); } &&
37445          { ac_try='test -s conftest$ac_exeext'
37446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37447   (eval $ac_try) 2>&5
37448   ac_status=$?
37449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37450   (exit $ac_status); }; }; then
37451   utils_cv_func_setpriority=yes
37452 else
37453   echo "$as_me: failed program was:" >&5
37454 sed 's/^/| /' conftest.$ac_ext >&5
37455
37456 utils_cv_func_setpriority=no
37457 fi
37458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37459 fi
37460
37461 echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
37462 echo "${ECHO_T}$utils_cv_func_setpriority" >&6
37463 if test $utils_cv_func_setpriority = yes; then
37464   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice"
37465   OPTIONAL_BIN_ZCRIPTS="$OPTIONAL_BIN_ZCRIPTS nohup"
37466   MAN="$MAN nice.1 nohup.1"
37467 else
37468   echo "$as_me:$LINENO: checking for nice function" >&5
37469 echo $ECHO_N "checking for nice function... $ECHO_C" >&6
37470   if test "${utils_cv_func_nice+set}" = set; then
37471   echo $ECHO_N "(cached) $ECHO_C" >&6
37472 else
37473   cat >conftest.$ac_ext <<_ACEOF
37474 #line $LINENO "configure"
37475 /* confdefs.h.  */
37476 _ACEOF
37477 cat confdefs.h >>conftest.$ac_ext
37478 cat >>conftest.$ac_ext <<_ACEOF
37479 /* end confdefs.h.  */
37480
37481 int
37482 main ()
37483 {
37484 nice();
37485   ;
37486   return 0;
37487 }
37488 _ACEOF
37489 rm -f conftest.$ac_objext conftest$ac_exeext
37490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37491   (eval $ac_link) 2>&5
37492   ac_status=$?
37493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37494   (exit $ac_status); } &&
37495          { ac_try='test -s conftest$ac_exeext'
37496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37497   (eval $ac_try) 2>&5
37498   ac_status=$?
37499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37500   (exit $ac_status); }; }; then
37501   utils_cv_func_nice=yes
37502 else
37503   echo "$as_me: failed program was:" >&5
37504 sed 's/^/| /' conftest.$ac_ext >&5
37505
37506 utils_cv_func_nice=no
37507 fi
37508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37509 fi
37510
37511   echo "$as_me:$LINENO: result: $utils_cv_func_nice" >&5
37512 echo "${ECHO_T}$utils_cv_func_nice" >&6
37513   if test $utils_cv_func_nice = yes; then
37514
37515 cat >>confdefs.h <<\_ACEOF
37516 #define NICE_PRIORITY 1
37517 _ACEOF
37518
37519     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice"
37520     OPTIONAL_BIN_ZCRIPTS="$OPTIONAL_BIN_ZCRIPTS nohup"
37521     MAN="$MAN nice.1 nohup.1"
37522   fi
37523 fi
37524
37525
37526
37527
37528   if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
37529     OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS pinky users who"
37530     MAN="$MAN pinky.1 users.1 who.1"
37531   fi
37532
37533
37534 echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
37535 echo $ECHO_N "checking ut_host in struct utmp... $ECHO_C" >&6
37536 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
37537   echo $ECHO_N "(cached) $ECHO_C" >&6
37538 else
37539   cat >conftest.$ac_ext <<_ACEOF
37540 #line $LINENO "configure"
37541 /* confdefs.h.  */
37542 _ACEOF
37543 cat confdefs.h >>conftest.$ac_ext
37544 cat >>conftest.$ac_ext <<_ACEOF
37545 /* end confdefs.h.  */
37546 #include <sys/types.h>
37547 #include <utmp.h>
37548 int
37549 main ()
37550 {
37551 struct utmp ut; ut.ut_host;
37552   ;
37553   return 0;
37554 }
37555 _ACEOF
37556 rm -f conftest.$ac_objext conftest$ac_exeext
37557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37558   (eval $ac_link) 2>&5
37559   ac_status=$?
37560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37561   (exit $ac_status); } &&
37562          { ac_try='test -s conftest$ac_exeext'
37563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37564   (eval $ac_try) 2>&5
37565   ac_status=$?
37566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37567   (exit $ac_status); }; }; then
37568   su_cv_func_ut_host_in_utmp=yes
37569 else
37570   echo "$as_me: failed program was:" >&5
37571 sed 's/^/| /' conftest.$ac_ext >&5
37572
37573 su_cv_func_ut_host_in_utmp=no
37574 fi
37575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37576 fi
37577
37578 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
37579 echo "${ECHO_T}$su_cv_func_ut_host_in_utmp" >&6
37580 if test $su_cv_func_ut_host_in_utmp = yes; then
37581   have_ut_host=1
37582
37583 cat >>confdefs.h <<\_ACEOF
37584 #define HAVE_UT_HOST 1
37585 _ACEOF
37586
37587 fi
37588
37589 if test -z "$have_ut_host"; then
37590   echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
37591 echo $ECHO_N "checking ut_host in struct utmpx... $ECHO_C" >&6
37592   if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
37593   echo $ECHO_N "(cached) $ECHO_C" >&6
37594 else
37595   cat >conftest.$ac_ext <<_ACEOF
37596 #line $LINENO "configure"
37597 /* confdefs.h.  */
37598 _ACEOF
37599 cat confdefs.h >>conftest.$ac_ext
37600 cat >>conftest.$ac_ext <<_ACEOF
37601 /* end confdefs.h.  */
37602 #include <sys/types.h>
37603 #include <utmpx.h>
37604 int
37605 main ()
37606 {
37607 struct utmpx ut; ut.ut_host;
37608   ;
37609   return 0;
37610 }
37611 _ACEOF
37612 rm -f conftest.$ac_objext conftest$ac_exeext
37613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37614   (eval $ac_link) 2>&5
37615   ac_status=$?
37616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37617   (exit $ac_status); } &&
37618          { ac_try='test -s conftest$ac_exeext'
37619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37620   (eval $ac_try) 2>&5
37621   ac_status=$?
37622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37623   (exit $ac_status); }; }; then
37624   su_cv_func_ut_host_in_utmpx=yes
37625 else
37626   echo "$as_me: failed program was:" >&5
37627 sed 's/^/| /' conftest.$ac_ext >&5
37628
37629 su_cv_func_ut_host_in_utmpx=no
37630 fi
37631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37632 fi
37633
37634   echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
37635 echo "${ECHO_T}$su_cv_func_ut_host_in_utmpx" >&6
37636   if test $su_cv_func_ut_host_in_utmpx = yes; then
37637
37638 cat >>confdefs.h <<\_ACEOF
37639 #define HAVE_UTMPX_H 1
37640 _ACEOF
37641
37642
37643 cat >>confdefs.h <<\_ACEOF
37644 #define HAVE_UT_HOST 1
37645 _ACEOF
37646
37647   fi
37648 fi
37649
37650
37651
37652 for ac_func in sysctl
37653 do
37654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37655 echo "$as_me:$LINENO: checking for $ac_func" >&5
37656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37657 if eval "test \"\${$as_ac_var+set}\" = set"; then
37658   echo $ECHO_N "(cached) $ECHO_C" >&6
37659 else
37660   cat >conftest.$ac_ext <<_ACEOF
37661 #line $LINENO "configure"
37662 /* confdefs.h.  */
37663 _ACEOF
37664 cat confdefs.h >>conftest.$ac_ext
37665 cat >>conftest.$ac_ext <<_ACEOF
37666 /* end confdefs.h.  */
37667 /* System header to define __stub macros and hopefully few prototypes,
37668     which can conflict with char $ac_func (); below.
37669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37670     <limits.h> exists even on freestanding compilers.  */
37671 #ifdef __STDC__
37672 # include <limits.h>
37673 #else
37674 # include <assert.h>
37675 #endif
37676 /* Override any gcc2 internal prototype to avoid an error.  */
37677 #ifdef __cplusplus
37678 extern "C"
37679 {
37680 #endif
37681 /* We use char because int might match the return type of a gcc2
37682    builtin and then its argument prototype would still apply.  */
37683 char $ac_func ();
37684 /* The GNU C library defines this for functions which it implements
37685     to always fail with ENOSYS.  Some functions are actually named
37686     something starting with __ and the normal name is an alias.  */
37687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37688 choke me
37689 #else
37690 char (*f) () = $ac_func;
37691 #endif
37692 #ifdef __cplusplus
37693 }
37694 #endif
37695
37696 int
37697 main ()
37698 {
37699 return f != $ac_func;
37700   ;
37701   return 0;
37702 }
37703 _ACEOF
37704 rm -f conftest.$ac_objext conftest$ac_exeext
37705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37706   (eval $ac_link) 2>&5
37707   ac_status=$?
37708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37709   (exit $ac_status); } &&
37710          { ac_try='test -s conftest$ac_exeext'
37711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37712   (eval $ac_try) 2>&5
37713   ac_status=$?
37714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37715   (exit $ac_status); }; }; then
37716   eval "$as_ac_var=yes"
37717 else
37718   echo "$as_me: failed program was:" >&5
37719 sed 's/^/| /' conftest.$ac_ext >&5
37720
37721 eval "$as_ac_var=no"
37722 fi
37723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37724 fi
37725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37727 if test `eval echo '${'$as_ac_var'}'` = yes; then
37728   cat >>confdefs.h <<_ACEOF
37729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37730 _ACEOF
37731
37732 fi
37733 done
37734
37735
37736 for ac_header in sys/sysctl.h
37737 do
37738 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37740   echo "$as_me:$LINENO: checking for $ac_header" >&5
37741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37743   echo $ECHO_N "(cached) $ECHO_C" >&6
37744 fi
37745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37747 else
37748   # Is the header compilable?
37749 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37751 cat >conftest.$ac_ext <<_ACEOF
37752 #line $LINENO "configure"
37753 /* confdefs.h.  */
37754 _ACEOF
37755 cat confdefs.h >>conftest.$ac_ext
37756 cat >>conftest.$ac_ext <<_ACEOF
37757 /* end confdefs.h.  */
37758 $ac_includes_default
37759 #include <$ac_header>
37760 _ACEOF
37761 rm -f conftest.$ac_objext
37762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37763   (eval $ac_compile) 2>&5
37764   ac_status=$?
37765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37766   (exit $ac_status); } &&
37767          { ac_try='test -s conftest.$ac_objext'
37768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37769   (eval $ac_try) 2>&5
37770   ac_status=$?
37771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37772   (exit $ac_status); }; }; then
37773   ac_header_compiler=yes
37774 else
37775   echo "$as_me: failed program was:" >&5
37776 sed 's/^/| /' conftest.$ac_ext >&5
37777
37778 ac_header_compiler=no
37779 fi
37780 rm -f conftest.$ac_objext conftest.$ac_ext
37781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37782 echo "${ECHO_T}$ac_header_compiler" >&6
37783
37784 # Is the header present?
37785 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37787 cat >conftest.$ac_ext <<_ACEOF
37788 #line $LINENO "configure"
37789 /* confdefs.h.  */
37790 _ACEOF
37791 cat confdefs.h >>conftest.$ac_ext
37792 cat >>conftest.$ac_ext <<_ACEOF
37793 /* end confdefs.h.  */
37794 #include <$ac_header>
37795 _ACEOF
37796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37797   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37798   ac_status=$?
37799   grep -v '^ *+' conftest.er1 >conftest.err
37800   rm -f conftest.er1
37801   cat conftest.err >&5
37802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37803   (exit $ac_status); } >/dev/null; then
37804   if test -s conftest.err; then
37805     ac_cpp_err=$ac_c_preproc_warn_flag
37806   else
37807     ac_cpp_err=
37808   fi
37809 else
37810   ac_cpp_err=yes
37811 fi
37812 if test -z "$ac_cpp_err"; then
37813   ac_header_preproc=yes
37814 else
37815   echo "$as_me: failed program was:" >&5
37816 sed 's/^/| /' conftest.$ac_ext >&5
37817
37818   ac_header_preproc=no
37819 fi
37820 rm -f conftest.err conftest.$ac_ext
37821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37822 echo "${ECHO_T}$ac_header_preproc" >&6
37823
37824 # So?  What about this header?
37825 case $ac_header_compiler:$ac_header_preproc in
37826   yes:no )
37827     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37828 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37829     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37830 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37831     (
37832       cat <<\_ASBOX
37833 ## ------------------------------------ ##
37834 ## Report this to bug-autoconf@gnu.org. ##
37835 ## ------------------------------------ ##
37836 _ASBOX
37837     ) |
37838       sed "s/^/$as_me: WARNING:     /" >&2
37839     ;;
37840   no:yes )
37841     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37843     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37847     (
37848       cat <<\_ASBOX
37849 ## ------------------------------------ ##
37850 ## Report this to bug-autoconf@gnu.org. ##
37851 ## ------------------------------------ ##
37852 _ASBOX
37853     ) |
37854       sed "s/^/$as_me: WARNING:     /" >&2
37855     ;;
37856 esac
37857 echo "$as_me:$LINENO: checking for $ac_header" >&5
37858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37860   echo $ECHO_N "(cached) $ECHO_C" >&6
37861 else
37862   eval "$as_ac_Header=$ac_header_preproc"
37863 fi
37864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37866
37867 fi
37868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37869   cat >>confdefs.h <<_ACEOF
37870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37871 _ACEOF
37872
37873 fi
37874
37875 done
37876
37877   echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
37878 echo $ECHO_N "checking whether we can get the system boot time... $ECHO_C" >&6
37879 if test "${gnulib_cv_have_boot_time+set}" = set; then
37880   echo $ECHO_N "(cached) $ECHO_C" >&6
37881 else
37882
37883       cat >conftest.$ac_ext <<_ACEOF
37884 #line $LINENO "configure"
37885 /* confdefs.h.  */
37886 _ACEOF
37887 cat confdefs.h >>conftest.$ac_ext
37888 cat >>conftest.$ac_ext <<_ACEOF
37889 /* end confdefs.h.  */
37890 $ac_includes_default
37891 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
37892 # include <sys/param.h> /* needed for OpenBSD 3.0 */
37893 # include <sys/sysctl.h>
37894 #endif
37895 #ifdef HAVE_UTMPX_H
37896 # include <utmpx.h>
37897 #else
37898 # include <utmp.h>
37899 #endif
37900
37901 int
37902 main ()
37903 {
37904
37905 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME)
37906 /* your system *does* have the infrastructure to determine boot time */
37907 #else
37908 please_tell_us_how_to_determine_boot_time_on_your_system
37909 #endif
37910
37911   ;
37912   return 0;
37913 }
37914 _ACEOF
37915 rm -f conftest.$ac_objext
37916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37917   (eval $ac_compile) 2>&5
37918   ac_status=$?
37919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37920   (exit $ac_status); } &&
37921          { ac_try='test -s conftest.$ac_objext'
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   gnulib_cv_have_boot_time=yes
37928 else
37929   echo "$as_me: failed program was:" >&5
37930 sed 's/^/| /' conftest.$ac_ext >&5
37931
37932 gnulib_cv_have_boot_time=no
37933 fi
37934 rm -f conftest.$ac_objext conftest.$ac_ext
37935
37936 fi
37937 echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
37938 echo "${ECHO_T}$gnulib_cv_have_boot_time" >&6
37939   if test $gnulib_cv_have_boot_time = yes; then
37940   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uptime" MAN="$MAN uptime.1"
37941 fi
37942
37943
37944
37945 echo "$as_me:$LINENO: checking POSIX termios" >&5
37946 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
37947 if test "${ac_cv_sys_posix_termios+set}" = set; then
37948   echo $ECHO_N "(cached) $ECHO_C" >&6
37949 else
37950   cat >conftest.$ac_ext <<_ACEOF
37951 #line $LINENO "configure"
37952 /* confdefs.h.  */
37953 _ACEOF
37954 cat confdefs.h >>conftest.$ac_ext
37955 cat >>conftest.$ac_ext <<_ACEOF
37956 /* end confdefs.h.  */
37957 #include <sys/types.h>
37958 #include <unistd.h>
37959 #include <termios.h>
37960
37961 int
37962 main ()
37963 {
37964 /* SunOS 4.0.3 has termios.h but not the library calls.  */
37965    tcgetattr(0, 0);
37966   ;
37967   return 0;
37968 }
37969 _ACEOF
37970 rm -f conftest.$ac_objext conftest$ac_exeext
37971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37972   (eval $ac_link) 2>&5
37973   ac_status=$?
37974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37975   (exit $ac_status); } &&
37976          { ac_try='test -s conftest$ac_exeext'
37977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37978   (eval $ac_try) 2>&5
37979   ac_status=$?
37980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37981   (exit $ac_status); }; }; then
37982   ac_cv_sys_posix_termios=yes
37983 else
37984   echo "$as_me: failed program was:" >&5
37985 sed 's/^/| /' conftest.$ac_ext >&5
37986
37987 ac_cv_sys_posix_termios=no
37988 fi
37989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37990 fi
37991 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
37992 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
37993
37994
37995  echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
37996 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
37997 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
37998   echo $ECHO_N "(cached) $ECHO_C" >&6
37999 else
38000   jm_cv_sys_tiocgwinsz_needs_termios_h=no
38001
38002    if test $ac_cv_sys_posix_termios = yes; then
38003      cat >conftest.$ac_ext <<_ACEOF
38004 #line $LINENO "configure"
38005 /* confdefs.h.  */
38006 _ACEOF
38007 cat confdefs.h >>conftest.$ac_ext
38008 cat >>conftest.$ac_ext <<_ACEOF
38009 /* end confdefs.h.  */
38010 #include <sys/types.h>
38011 #      include <termios.h>
38012 #      ifdef TIOCGWINSZ
38013          yes
38014 #      endif
38015
38016 _ACEOF
38017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38018   $EGREP "yes" >/dev/null 2>&1; then
38019   jm_cv_sys_tiocgwinsz_needs_termios_h=yes
38020 fi
38021 rm -f conftest*
38022
38023    fi
38024
38025 fi
38026 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
38027 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
38028
38029
38030  echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
38031 echo $ECHO_N "checking whether use of TIOCGWINSZ requires sys/ioctl.h... $ECHO_C" >&6
38032 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
38033   echo $ECHO_N "(cached) $ECHO_C" >&6
38034 else
38035   jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
38036
38037   if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then
38038     cat >conftest.$ac_ext <<_ACEOF
38039 #line $LINENO "configure"
38040 /* confdefs.h.  */
38041 _ACEOF
38042 cat confdefs.h >>conftest.$ac_ext
38043 cat >>conftest.$ac_ext <<_ACEOF
38044 /* end confdefs.h.  */
38045 #include <sys/types.h>
38046 #     include <sys/ioctl.h>
38047 #     ifdef TIOCGWINSZ
38048         yes
38049 #     endif
38050
38051 _ACEOF
38052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38053   $EGREP "yes" >/dev/null 2>&1; then
38054   jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
38055 fi
38056 rm -f conftest*
38057
38058   fi
38059
38060 fi
38061 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
38062 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6
38063   if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
38064
38065 cat >>confdefs.h <<\_ACEOF
38066 #define GWINSZ_IN_SYS_IOCTL 1
38067 _ACEOF
38068
38069   fi
38070
38071
38072 if test $ac_cv_sys_posix_termios = yes; then
38073   OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS stty" MAN="$MAN stty.1"
38074
38075   echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
38076 echo $ECHO_N "checking whether termios.h needs _XOPEN_SOURCE... $ECHO_C" >&6
38077   if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
38078   echo $ECHO_N "(cached) $ECHO_C" >&6
38079 else
38080   cat >conftest.$ac_ext <<_ACEOF
38081 #line $LINENO "configure"
38082 /* confdefs.h.  */
38083 _ACEOF
38084 cat confdefs.h >>conftest.$ac_ext
38085 cat >>conftest.$ac_ext <<_ACEOF
38086 /* end confdefs.h.  */
38087 #include <termios.h>
38088 #ifdef IUCLC
38089 yes
38090 #endif
38091 _ACEOF
38092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38093   $EGREP "yes" >/dev/null 2>&1; then
38094   su_cv_sys_termios_needs_xopen_source=no
38095 else
38096   cat >conftest.$ac_ext <<_ACEOF
38097 #line $LINENO "configure"
38098 /* confdefs.h.  */
38099 _ACEOF
38100 cat confdefs.h >>conftest.$ac_ext
38101 cat >>conftest.$ac_ext <<_ACEOF
38102 /* end confdefs.h.  */
38103 #define _XOPEN_SOURCE
38104 #include <termios.h>
38105 #ifdef IUCLC
38106 yes
38107 #endif
38108 _ACEOF
38109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38110   $EGREP "yes" >/dev/null 2>&1; then
38111   su_cv_sys_termios_needs_xopen_source=yes
38112 else
38113   su_cv_sys_termios_needs_xopen_source=no
38114 fi
38115 rm -f conftest*
38116
38117 fi
38118 rm -f conftest*
38119
38120 fi
38121
38122   echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
38123 echo "${ECHO_T}$su_cv_sys_termios_needs_xopen_source" >&6
38124   test $su_cv_sys_termios_needs_xopen_source = yes &&
38125
38126 cat >>confdefs.h <<\_ACEOF
38127 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
38128 _ACEOF
38129
38130
38131   echo "$as_me:$LINENO: checking c_line in struct termios" >&5
38132 echo $ECHO_N "checking c_line in struct termios... $ECHO_C" >&6
38133   if test "${su_cv_sys_c_line_in_termios+set}" = set; then
38134   echo $ECHO_N "(cached) $ECHO_C" >&6
38135 else
38136   cat >conftest.$ac_ext <<_ACEOF
38137 #line $LINENO "configure"
38138 /* confdefs.h.  */
38139 _ACEOF
38140 cat confdefs.h >>conftest.$ac_ext
38141 cat >>conftest.$ac_ext <<_ACEOF
38142 /* end confdefs.h.  */
38143 #if TERMIOS_NEEDS_XOPEN_SOURCE
38144 #define _XOPEN_SOURCE
38145 #endif
38146 #include <sys/types.h>
38147 #include <termios.h>
38148 int
38149 main ()
38150 {
38151 struct termios t; t.c_line;
38152   ;
38153   return 0;
38154 }
38155 _ACEOF
38156 rm -f conftest.$ac_objext conftest$ac_exeext
38157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38158   (eval $ac_link) 2>&5
38159   ac_status=$?
38160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38161   (exit $ac_status); } &&
38162          { ac_try='test -s conftest$ac_exeext'
38163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38164   (eval $ac_try) 2>&5
38165   ac_status=$?
38166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38167   (exit $ac_status); }; }; then
38168   su_cv_sys_c_line_in_termios=yes
38169 else
38170   echo "$as_me: failed program was:" >&5
38171 sed 's/^/| /' conftest.$ac_ext >&5
38172
38173 su_cv_sys_c_line_in_termios=no
38174 fi
38175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38176 fi
38177
38178   echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
38179 echo "${ECHO_T}$su_cv_sys_c_line_in_termios" >&6
38180   test $su_cv_sys_c_line_in_termios = yes \
38181     &&
38182 cat >>confdefs.h <<\_ACEOF
38183 #define HAVE_C_LINE 1
38184 _ACEOF
38185
38186 fi
38187
38188 # FIXME: note that this macro appears above, too.
38189 # I'm leaving it here for now.  This whole thing needs to be modernized...
38190
38191    echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
38192 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
38193 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
38194   echo $ECHO_N "(cached) $ECHO_C" >&6
38195 else
38196   jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
38197       if test $ac_cv_sys_posix_termios = yes; then
38198         cat >conftest.$ac_ext <<_ACEOF
38199 #line $LINENO "configure"
38200 /* confdefs.h.  */
38201 _ACEOF
38202 cat confdefs.h >>conftest.$ac_ext
38203 cat >>conftest.$ac_ext <<_ACEOF
38204 /* end confdefs.h.  */
38205 #include <termios.h>
38206           struct winsize x;
38207 int
38208 main ()
38209 {
38210 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
38211   ;
38212   return 0;
38213 }
38214 _ACEOF
38215 rm -f conftest.$ac_objext
38216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38217   (eval $ac_compile) 2>&5
38218   ac_status=$?
38219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38220   (exit $ac_status); } &&
38221          { ac_try='test -s conftest.$ac_objext'
38222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38223   (eval $ac_try) 2>&5
38224   ac_status=$?
38225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38226   (exit $ac_status); }; }; then
38227   :
38228 else
38229   echo "$as_me: failed program was:" >&5
38230 sed 's/^/| /' conftest.$ac_ext >&5
38231
38232 fi
38233 rm -f conftest.$ac_objext conftest.$ac_ext
38234       fi
38235       if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
38236         cat >conftest.$ac_ext <<_ACEOF
38237 #line $LINENO "configure"
38238 /* confdefs.h.  */
38239 _ACEOF
38240 cat confdefs.h >>conftest.$ac_ext
38241 cat >>conftest.$ac_ext <<_ACEOF
38242 /* end confdefs.h.  */
38243 #include <sys/ptem.h>
38244 int
38245 main ()
38246 {
38247 struct winsize x;
38248   ;
38249   return 0;
38250 }
38251 _ACEOF
38252 rm -f conftest.$ac_objext
38253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38254   (eval $ac_compile) 2>&5
38255   ac_status=$?
38256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38257   (exit $ac_status); } &&
38258          { ac_try='test -s conftest.$ac_objext'
38259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38260   (eval $ac_try) 2>&5
38261   ac_status=$?
38262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38263   (exit $ac_status); }; }; then
38264   :
38265 else
38266   echo "$as_me: failed program was:" >&5
38267 sed 's/^/| /' conftest.$ac_ext >&5
38268
38269 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
38270 fi
38271 rm -f conftest.$ac_objext conftest.$ac_ext
38272       fi
38273 fi
38274 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
38275 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
38276    if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
38277
38278 cat >>confdefs.h <<\_ACEOF
38279 #define WINSIZE_IN_PTEM 1
38280 _ACEOF
38281
38282    fi
38283
38284
38285  echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
38286 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
38287 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
38288   echo $ECHO_N "(cached) $ECHO_C" >&6
38289 else
38290   jm_cv_sys_tiocgwinsz_needs_termios_h=no
38291
38292    if test $ac_cv_sys_posix_termios = yes; then
38293      cat >conftest.$ac_ext <<_ACEOF
38294 #line $LINENO "configure"
38295 /* confdefs.h.  */
38296 _ACEOF
38297 cat confdefs.h >>conftest.$ac_ext
38298 cat >>conftest.$ac_ext <<_ACEOF
38299 /* end confdefs.h.  */
38300 #include <sys/types.h>
38301 #      include <termios.h>
38302 #      ifdef TIOCGWINSZ
38303          yes
38304 #      endif
38305
38306 _ACEOF
38307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38308   $EGREP "yes" >/dev/null 2>&1; then
38309   jm_cv_sys_tiocgwinsz_needs_termios_h=yes
38310 fi
38311 rm -f conftest*
38312
38313    fi
38314
38315 fi
38316 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
38317 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
38318
38319
38320 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no && \
38321    test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no; then
38322   echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
38323 echo $ECHO_N "checking TIOCGWINSZ in sys/pty.h... $ECHO_C" >&6
38324   if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
38325   echo $ECHO_N "(cached) $ECHO_C" >&6
38326 else
38327   cat >conftest.$ac_ext <<_ACEOF
38328 #line $LINENO "configure"
38329 /* confdefs.h.  */
38330 _ACEOF
38331 cat confdefs.h >>conftest.$ac_ext
38332 cat >>conftest.$ac_ext <<_ACEOF
38333 /* end confdefs.h.  */
38334 #include <sys/types.h>
38335 #ifdef WINSIZE_IN_PTEM
38336 # include <sys/stream.h>
38337 # include <sys/ptem.h>
38338 #endif
38339 #include <sys/ioctl.h>
38340 #include <sys/tty.h>
38341 #include <sys/pty.h>
38342 int
38343 main ()
38344 {
38345 int x = TIOCGWINSZ;
38346   ;
38347   return 0;
38348 }
38349 _ACEOF
38350 rm -f conftest.$ac_objext conftest$ac_exeext
38351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38352   (eval $ac_link) 2>&5
38353   ac_status=$?
38354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38355   (exit $ac_status); } &&
38356          { ac_try='test -s conftest$ac_exeext'
38357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38358   (eval $ac_try) 2>&5
38359   ac_status=$?
38360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38361   (exit $ac_status); }; }; then
38362   su_cv_sys_tiocgwinsz_in_sys_pty_h=yes
38363 else
38364   echo "$as_me: failed program was:" >&5
38365 sed 's/^/| /' conftest.$ac_ext >&5
38366
38367 su_cv_sys_tiocgwinsz_in_sys_pty_h=no
38368 fi
38369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38370 fi
38371
38372   echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
38373 echo "${ECHO_T}$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6
38374
38375   test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
38376       &&
38377 cat >>confdefs.h <<\_ACEOF
38378 #define GWINSZ_IN_SYS_PTY 1
38379 _ACEOF
38380
38381 fi
38382
38383 # For src/kill.c.
38384 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
38385 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
38386 if test "${ac_cv_have_decl_strsignal+set}" = set; then
38387   echo $ECHO_N "(cached) $ECHO_C" >&6
38388 else
38389   cat >conftest.$ac_ext <<_ACEOF
38390 #line $LINENO "configure"
38391 /* confdefs.h.  */
38392 _ACEOF
38393 cat confdefs.h >>conftest.$ac_ext
38394 cat >>conftest.$ac_ext <<_ACEOF
38395 /* end confdefs.h.  */
38396 $ac_includes_default
38397 int
38398 main ()
38399 {
38400 #ifndef strsignal
38401   char *p = (char *) strsignal;
38402 #endif
38403
38404   ;
38405   return 0;
38406 }
38407 _ACEOF
38408 rm -f conftest.$ac_objext
38409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38410   (eval $ac_compile) 2>&5
38411   ac_status=$?
38412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38413   (exit $ac_status); } &&
38414          { ac_try='test -s conftest.$ac_objext'
38415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38416   (eval $ac_try) 2>&5
38417   ac_status=$?
38418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38419   (exit $ac_status); }; }; then
38420   ac_cv_have_decl_strsignal=yes
38421 else
38422   echo "$as_me: failed program was:" >&5
38423 sed 's/^/| /' conftest.$ac_ext >&5
38424
38425 ac_cv_have_decl_strsignal=no
38426 fi
38427 rm -f conftest.$ac_objext conftest.$ac_ext
38428 fi
38429 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
38430 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
38431 if test $ac_cv_have_decl_strsignal = yes; then
38432
38433 cat >>confdefs.h <<_ACEOF
38434 #define HAVE_DECL_STRSIGNAL 1
38435 _ACEOF
38436
38437
38438 else
38439   cat >>confdefs.h <<_ACEOF
38440 #define HAVE_DECL_STRSIGNAL 0
38441 _ACEOF
38442
38443
38444 fi
38445 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
38446 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
38447 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
38448   echo $ECHO_N "(cached) $ECHO_C" >&6
38449 else
38450   cat >conftest.$ac_ext <<_ACEOF
38451 #line $LINENO "configure"
38452 /* confdefs.h.  */
38453 _ACEOF
38454 cat confdefs.h >>conftest.$ac_ext
38455 cat >>conftest.$ac_ext <<_ACEOF
38456 /* end confdefs.h.  */
38457 $ac_includes_default
38458 int
38459 main ()
38460 {
38461 #ifndef strtoimax
38462   char *p = (char *) strtoimax;
38463 #endif
38464
38465   ;
38466   return 0;
38467 }
38468 _ACEOF
38469 rm -f conftest.$ac_objext
38470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38471   (eval $ac_compile) 2>&5
38472   ac_status=$?
38473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38474   (exit $ac_status); } &&
38475          { ac_try='test -s conftest.$ac_objext'
38476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38477   (eval $ac_try) 2>&5
38478   ac_status=$?
38479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38480   (exit $ac_status); }; }; then
38481   ac_cv_have_decl_strtoimax=yes
38482 else
38483   echo "$as_me: failed program was:" >&5
38484 sed 's/^/| /' conftest.$ac_ext >&5
38485
38486 ac_cv_have_decl_strtoimax=no
38487 fi
38488 rm -f conftest.$ac_objext conftest.$ac_ext
38489 fi
38490 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
38491 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
38492 if test $ac_cv_have_decl_strtoimax = yes; then
38493
38494 cat >>confdefs.h <<_ACEOF
38495 #define HAVE_DECL_STRTOIMAX 1
38496 _ACEOF
38497
38498
38499 else
38500   cat >>confdefs.h <<_ACEOF
38501 #define HAVE_DECL_STRTOIMAX 0
38502 _ACEOF
38503
38504
38505 fi
38506 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
38507 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
38508 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
38509   echo $ECHO_N "(cached) $ECHO_C" >&6
38510 else
38511   cat >conftest.$ac_ext <<_ACEOF
38512 #line $LINENO "configure"
38513 /* confdefs.h.  */
38514 _ACEOF
38515 cat confdefs.h >>conftest.$ac_ext
38516 cat >>conftest.$ac_ext <<_ACEOF
38517 /* end confdefs.h.  */
38518 $ac_includes_default
38519 int
38520 main ()
38521 {
38522 #ifndef sys_siglist
38523   char *p = (char *) sys_siglist;
38524 #endif
38525
38526   ;
38527   return 0;
38528 }
38529 _ACEOF
38530 rm -f conftest.$ac_objext
38531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38532   (eval $ac_compile) 2>&5
38533   ac_status=$?
38534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38535   (exit $ac_status); } &&
38536          { ac_try='test -s conftest.$ac_objext'
38537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38538   (eval $ac_try) 2>&5
38539   ac_status=$?
38540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38541   (exit $ac_status); }; }; then
38542   ac_cv_have_decl_sys_siglist=yes
38543 else
38544   echo "$as_me: failed program was:" >&5
38545 sed 's/^/| /' conftest.$ac_ext >&5
38546
38547 ac_cv_have_decl_sys_siglist=no
38548 fi
38549 rm -f conftest.$ac_objext conftest.$ac_ext
38550 fi
38551 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
38552 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
38553 if test $ac_cv_have_decl_sys_siglist = yes; then
38554
38555 cat >>confdefs.h <<_ACEOF
38556 #define HAVE_DECL_SYS_SIGLIST 1
38557 _ACEOF
38558
38559
38560 else
38561   cat >>confdefs.h <<_ACEOF
38562 #define HAVE_DECL_SYS_SIGLIST 0
38563 _ACEOF
38564
38565
38566 fi
38567 echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
38568 echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6
38569 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
38570   echo $ECHO_N "(cached) $ECHO_C" >&6
38571 else
38572   cat >conftest.$ac_ext <<_ACEOF
38573 #line $LINENO "configure"
38574 /* confdefs.h.  */
38575 _ACEOF
38576 cat confdefs.h >>conftest.$ac_ext
38577 cat >>conftest.$ac_ext <<_ACEOF
38578 /* end confdefs.h.  */
38579 $ac_includes_default
38580 int
38581 main ()
38582 {
38583 #ifndef _sys_siglist
38584   char *p = (char *) _sys_siglist;
38585 #endif
38586
38587   ;
38588   return 0;
38589 }
38590 _ACEOF
38591 rm -f conftest.$ac_objext
38592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38593   (eval $ac_compile) 2>&5
38594   ac_status=$?
38595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38596   (exit $ac_status); } &&
38597          { ac_try='test -s conftest.$ac_objext'
38598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38599   (eval $ac_try) 2>&5
38600   ac_status=$?
38601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38602   (exit $ac_status); }; }; then
38603   ac_cv_have_decl__sys_siglist=yes
38604 else
38605   echo "$as_me: failed program was:" >&5
38606 sed 's/^/| /' conftest.$ac_ext >&5
38607
38608 ac_cv_have_decl__sys_siglist=no
38609 fi
38610 rm -f conftest.$ac_objext conftest.$ac_ext
38611 fi
38612 echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
38613 echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6
38614 if test $ac_cv_have_decl__sys_siglist = yes; then
38615
38616 cat >>confdefs.h <<_ACEOF
38617 #define HAVE_DECL__SYS_SIGLIST 1
38618 _ACEOF
38619
38620
38621 else
38622   cat >>confdefs.h <<_ACEOF
38623 #define HAVE_DECL__SYS_SIGLIST 0
38624 _ACEOF
38625
38626
38627 fi
38628
38629
38630
38631
38632
38633   # Check for libypsec.a on Dolphin M88K machines.
38634
38635 echo "$as_me:$LINENO: checking for main in -lypsec" >&5
38636 echo $ECHO_N "checking for main in -lypsec... $ECHO_C" >&6
38637 if test "${ac_cv_lib_ypsec_main+set}" = set; then
38638   echo $ECHO_N "(cached) $ECHO_C" >&6
38639 else
38640   ac_check_lib_save_LIBS=$LIBS
38641 LIBS="-lypsec  $LIBS"
38642 cat >conftest.$ac_ext <<_ACEOF
38643 #line $LINENO "configure"
38644 /* confdefs.h.  */
38645 _ACEOF
38646 cat confdefs.h >>conftest.$ac_ext
38647 cat >>conftest.$ac_ext <<_ACEOF
38648 /* end confdefs.h.  */
38649
38650
38651 int
38652 main ()
38653 {
38654 main ();
38655   ;
38656   return 0;
38657 }
38658 _ACEOF
38659 rm -f conftest.$ac_objext conftest$ac_exeext
38660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38661   (eval $ac_link) 2>&5
38662   ac_status=$?
38663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38664   (exit $ac_status); } &&
38665          { ac_try='test -s conftest$ac_exeext'
38666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38667   (eval $ac_try) 2>&5
38668   ac_status=$?
38669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38670   (exit $ac_status); }; }; then
38671   ac_cv_lib_ypsec_main=yes
38672 else
38673   echo "$as_me: failed program was:" >&5
38674 sed 's/^/| /' conftest.$ac_ext >&5
38675
38676 ac_cv_lib_ypsec_main=no
38677 fi
38678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38679 LIBS=$ac_check_lib_save_LIBS
38680 fi
38681 echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
38682 echo "${ECHO_T}$ac_cv_lib_ypsec_main" >&6
38683 if test $ac_cv_lib_ypsec_main = yes; then
38684   cat >>confdefs.h <<_ACEOF
38685 #define HAVE_LIBYPSEC 1
38686 _ACEOF
38687
38688   LIBS="-lypsec $LIBS"
38689
38690 fi
38691
38692
38693   # m88k running dgux 5.4 needs this
38694
38695 echo "$as_me:$LINENO: checking for main in -lldgc" >&5
38696 echo $ECHO_N "checking for main in -lldgc... $ECHO_C" >&6
38697 if test "${ac_cv_lib_ldgc_main+set}" = set; then
38698   echo $ECHO_N "(cached) $ECHO_C" >&6
38699 else
38700   ac_check_lib_save_LIBS=$LIBS
38701 LIBS="-lldgc  $LIBS"
38702 cat >conftest.$ac_ext <<_ACEOF
38703 #line $LINENO "configure"
38704 /* confdefs.h.  */
38705 _ACEOF
38706 cat confdefs.h >>conftest.$ac_ext
38707 cat >>conftest.$ac_ext <<_ACEOF
38708 /* end confdefs.h.  */
38709
38710
38711 int
38712 main ()
38713 {
38714 main ();
38715   ;
38716   return 0;
38717 }
38718 _ACEOF
38719 rm -f conftest.$ac_objext conftest$ac_exeext
38720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38721   (eval $ac_link) 2>&5
38722   ac_status=$?
38723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38724   (exit $ac_status); } &&
38725          { ac_try='test -s conftest$ac_exeext'
38726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38727   (eval $ac_try) 2>&5
38728   ac_status=$?
38729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38730   (exit $ac_status); }; }; then
38731   ac_cv_lib_ldgc_main=yes
38732 else
38733   echo "$as_me: failed program was:" >&5
38734 sed 's/^/| /' conftest.$ac_ext >&5
38735
38736 ac_cv_lib_ldgc_main=no
38737 fi
38738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38739 LIBS=$ac_check_lib_save_LIBS
38740 fi
38741 echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
38742 echo "${ECHO_T}$ac_cv_lib_ldgc_main" >&6
38743 if test $ac_cv_lib_ldgc_main = yes; then
38744   cat >>confdefs.h <<_ACEOF
38745 #define HAVE_LIBLDGC 1
38746 _ACEOF
38747
38748   LIBS="-lldgc $LIBS"
38749
38750 fi
38751
38752
38753   # Some programs need to link with -lm.  printf does if it uses
38754   # lib/strtod.c which uses pow.  And seq uses the math functions,
38755   # floor, modf, rint.  And factor uses sqrt.  And sleep uses fesetround.
38756
38757   # Save a copy of $LIBS and add $FLOOR_LIBM before these tests
38758   # Check for these math functions used by seq.
38759   ac_su_saved_lib="$LIBS"
38760   LIBS="$LIBS -lm"
38761
38762
38763
38764 for ac_func in floor modf rint
38765 do
38766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38767 echo "$as_me:$LINENO: checking for $ac_func" >&5
38768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38769 if eval "test \"\${$as_ac_var+set}\" = set"; then
38770   echo $ECHO_N "(cached) $ECHO_C" >&6
38771 else
38772   cat >conftest.$ac_ext <<_ACEOF
38773 #line $LINENO "configure"
38774 /* confdefs.h.  */
38775 _ACEOF
38776 cat confdefs.h >>conftest.$ac_ext
38777 cat >>conftest.$ac_ext <<_ACEOF
38778 /* end confdefs.h.  */
38779 /* System header to define __stub macros and hopefully few prototypes,
38780     which can conflict with char $ac_func (); below.
38781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38782     <limits.h> exists even on freestanding compilers.  */
38783 #ifdef __STDC__
38784 # include <limits.h>
38785 #else
38786 # include <assert.h>
38787 #endif
38788 /* Override any gcc2 internal prototype to avoid an error.  */
38789 #ifdef __cplusplus
38790 extern "C"
38791 {
38792 #endif
38793 /* We use char because int might match the return type of a gcc2
38794    builtin and then its argument prototype would still apply.  */
38795 char $ac_func ();
38796 /* The GNU C library defines this for functions which it implements
38797     to always fail with ENOSYS.  Some functions are actually named
38798     something starting with __ and the normal name is an alias.  */
38799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38800 choke me
38801 #else
38802 char (*f) () = $ac_func;
38803 #endif
38804 #ifdef __cplusplus
38805 }
38806 #endif
38807
38808 int
38809 main ()
38810 {
38811 return f != $ac_func;
38812   ;
38813   return 0;
38814 }
38815 _ACEOF
38816 rm -f conftest.$ac_objext conftest$ac_exeext
38817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38818   (eval $ac_link) 2>&5
38819   ac_status=$?
38820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38821   (exit $ac_status); } &&
38822          { ac_try='test -s conftest$ac_exeext'
38823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38824   (eval $ac_try) 2>&5
38825   ac_status=$?
38826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38827   (exit $ac_status); }; }; then
38828   eval "$as_ac_var=yes"
38829 else
38830   echo "$as_me: failed program was:" >&5
38831 sed 's/^/| /' conftest.$ac_ext >&5
38832
38833 eval "$as_ac_var=no"
38834 fi
38835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38836 fi
38837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38839 if test `eval echo '${'$as_ac_var'}'` = yes; then
38840   cat >>confdefs.h <<_ACEOF
38841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38842 _ACEOF
38843
38844 fi
38845 done
38846
38847   LIBS="$ac_su_saved_lib"
38848
38849
38850
38851 for ac_func in sqrt
38852 do
38853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38854 echo "$as_me:$LINENO: checking for $ac_func" >&5
38855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38856 if eval "test \"\${$as_ac_var+set}\" = set"; then
38857   echo $ECHO_N "(cached) $ECHO_C" >&6
38858 else
38859   cat >conftest.$ac_ext <<_ACEOF
38860 #line $LINENO "configure"
38861 /* confdefs.h.  */
38862 _ACEOF
38863 cat confdefs.h >>conftest.$ac_ext
38864 cat >>conftest.$ac_ext <<_ACEOF
38865 /* end confdefs.h.  */
38866 /* System header to define __stub macros and hopefully few prototypes,
38867     which can conflict with char $ac_func (); below.
38868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38869     <limits.h> exists even on freestanding compilers.  */
38870 #ifdef __STDC__
38871 # include <limits.h>
38872 #else
38873 # include <assert.h>
38874 #endif
38875 /* Override any gcc2 internal prototype to avoid an error.  */
38876 #ifdef __cplusplus
38877 extern "C"
38878 {
38879 #endif
38880 /* We use char because int might match the return type of a gcc2
38881    builtin and then its argument prototype would still apply.  */
38882 char $ac_func ();
38883 /* The GNU C library defines this for functions which it implements
38884     to always fail with ENOSYS.  Some functions are actually named
38885     something starting with __ and the normal name is an alias.  */
38886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38887 choke me
38888 #else
38889 char (*f) () = $ac_func;
38890 #endif
38891 #ifdef __cplusplus
38892 }
38893 #endif
38894
38895 int
38896 main ()
38897 {
38898 return f != $ac_func;
38899   ;
38900   return 0;
38901 }
38902 _ACEOF
38903 rm -f conftest.$ac_objext conftest$ac_exeext
38904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38905   (eval $ac_link) 2>&5
38906   ac_status=$?
38907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38908   (exit $ac_status); } &&
38909          { ac_try='test -s conftest$ac_exeext'
38910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38911   (eval $ac_try) 2>&5
38912   ac_status=$?
38913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38914   (exit $ac_status); }; }; then
38915   eval "$as_ac_var=yes"
38916 else
38917   echo "$as_me: failed program was:" >&5
38918 sed 's/^/| /' conftest.$ac_ext >&5
38919
38920 eval "$as_ac_var=no"
38921 fi
38922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38923 fi
38924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38926 if test `eval echo '${'$as_ac_var'}'` = yes; then
38927   cat >>confdefs.h <<_ACEOF
38928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38929 _ACEOF
38930
38931 fi
38932 done
38933
38934   if test $ac_cv_func_sqrt = no; then
38935     echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
38936 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
38937 if test "${ac_cv_lib_m_sqrt+set}" = set; then
38938   echo $ECHO_N "(cached) $ECHO_C" >&6
38939 else
38940   ac_check_lib_save_LIBS=$LIBS
38941 LIBS="-lm  $LIBS"
38942 cat >conftest.$ac_ext <<_ACEOF
38943 #line $LINENO "configure"
38944 /* confdefs.h.  */
38945 _ACEOF
38946 cat confdefs.h >>conftest.$ac_ext
38947 cat >>conftest.$ac_ext <<_ACEOF
38948 /* end confdefs.h.  */
38949
38950 /* Override any gcc2 internal prototype to avoid an error.  */
38951 #ifdef __cplusplus
38952 extern "C"
38953 #endif
38954 /* We use char because int might match the return type of a gcc2
38955    builtin and then its argument prototype would still apply.  */
38956 char sqrt ();
38957 int
38958 main ()
38959 {
38960 sqrt ();
38961   ;
38962   return 0;
38963 }
38964 _ACEOF
38965 rm -f conftest.$ac_objext conftest$ac_exeext
38966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38967   (eval $ac_link) 2>&5
38968   ac_status=$?
38969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38970   (exit $ac_status); } &&
38971          { ac_try='test -s conftest$ac_exeext'
38972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38973   (eval $ac_try) 2>&5
38974   ac_status=$?
38975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38976   (exit $ac_status); }; }; then
38977   ac_cv_lib_m_sqrt=yes
38978 else
38979   echo "$as_me: failed program was:" >&5
38980 sed 's/^/| /' conftest.$ac_ext >&5
38981
38982 ac_cv_lib_m_sqrt=no
38983 fi
38984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38985 LIBS=$ac_check_lib_save_LIBS
38986 fi
38987 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
38988 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
38989 if test $ac_cv_lib_m_sqrt = yes; then
38990   SQRT_LIBM=-lm
38991 fi
38992
38993   fi
38994
38995
38996
38997 for ac_func in fesetround
38998 do
38999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39000 echo "$as_me:$LINENO: checking for $ac_func" >&5
39001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39002 if eval "test \"\${$as_ac_var+set}\" = set"; then
39003   echo $ECHO_N "(cached) $ECHO_C" >&6
39004 else
39005   cat >conftest.$ac_ext <<_ACEOF
39006 #line $LINENO "configure"
39007 /* confdefs.h.  */
39008 _ACEOF
39009 cat confdefs.h >>conftest.$ac_ext
39010 cat >>conftest.$ac_ext <<_ACEOF
39011 /* end confdefs.h.  */
39012 /* System header to define __stub macros and hopefully few prototypes,
39013     which can conflict with char $ac_func (); below.
39014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39015     <limits.h> exists even on freestanding compilers.  */
39016 #ifdef __STDC__
39017 # include <limits.h>
39018 #else
39019 # include <assert.h>
39020 #endif
39021 /* Override any gcc2 internal prototype to avoid an error.  */
39022 #ifdef __cplusplus
39023 extern "C"
39024 {
39025 #endif
39026 /* We use char because int might match the return type of a gcc2
39027    builtin and then its argument prototype would still apply.  */
39028 char $ac_func ();
39029 /* The GNU C library defines this for functions which it implements
39030     to always fail with ENOSYS.  Some functions are actually named
39031     something starting with __ and the normal name is an alias.  */
39032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39033 choke me
39034 #else
39035 char (*f) () = $ac_func;
39036 #endif
39037 #ifdef __cplusplus
39038 }
39039 #endif
39040
39041 int
39042 main ()
39043 {
39044 return f != $ac_func;
39045   ;
39046   return 0;
39047 }
39048 _ACEOF
39049 rm -f conftest.$ac_objext conftest$ac_exeext
39050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39051   (eval $ac_link) 2>&5
39052   ac_status=$?
39053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39054   (exit $ac_status); } &&
39055          { ac_try='test -s conftest$ac_exeext'
39056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39057   (eval $ac_try) 2>&5
39058   ac_status=$?
39059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39060   (exit $ac_status); }; }; then
39061   eval "$as_ac_var=yes"
39062 else
39063   echo "$as_me: failed program was:" >&5
39064 sed 's/^/| /' conftest.$ac_ext >&5
39065
39066 eval "$as_ac_var=no"
39067 fi
39068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39069 fi
39070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39071 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39072 if test `eval echo '${'$as_ac_var'}'` = yes; then
39073   cat >>confdefs.h <<_ACEOF
39074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39075 _ACEOF
39076
39077 fi
39078 done
39079
39080   if test $ac_cv_func_fesetround = no; then
39081     echo "$as_me:$LINENO: checking for fesetround in -lm" >&5
39082 echo $ECHO_N "checking for fesetround in -lm... $ECHO_C" >&6
39083 if test "${ac_cv_lib_m_fesetround+set}" = set; then
39084   echo $ECHO_N "(cached) $ECHO_C" >&6
39085 else
39086   ac_check_lib_save_LIBS=$LIBS
39087 LIBS="-lm  $LIBS"
39088 cat >conftest.$ac_ext <<_ACEOF
39089 #line $LINENO "configure"
39090 /* confdefs.h.  */
39091 _ACEOF
39092 cat confdefs.h >>conftest.$ac_ext
39093 cat >>conftest.$ac_ext <<_ACEOF
39094 /* end confdefs.h.  */
39095
39096 /* Override any gcc2 internal prototype to avoid an error.  */
39097 #ifdef __cplusplus
39098 extern "C"
39099 #endif
39100 /* We use char because int might match the return type of a gcc2
39101    builtin and then its argument prototype would still apply.  */
39102 char fesetround ();
39103 int
39104 main ()
39105 {
39106 fesetround ();
39107   ;
39108   return 0;
39109 }
39110 _ACEOF
39111 rm -f conftest.$ac_objext conftest$ac_exeext
39112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39113   (eval $ac_link) 2>&5
39114   ac_status=$?
39115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39116   (exit $ac_status); } &&
39117          { ac_try='test -s conftest$ac_exeext'
39118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39119   (eval $ac_try) 2>&5
39120   ac_status=$?
39121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39122   (exit $ac_status); }; }; then
39123   ac_cv_lib_m_fesetround=yes
39124 else
39125   echo "$as_me: failed program was:" >&5
39126 sed 's/^/| /' conftest.$ac_ext >&5
39127
39128 ac_cv_lib_m_fesetround=no
39129 fi
39130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39131 LIBS=$ac_check_lib_save_LIBS
39132 fi
39133 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fesetround" >&5
39134 echo "${ECHO_T}$ac_cv_lib_m_fesetround" >&6
39135 if test $ac_cv_lib_m_fesetround = yes; then
39136   FESETROUND_LIBM=-lm
39137 fi
39138
39139   fi
39140
39141   # The -lsun library is required for YP support on Irix-4.0.5 systems.
39142   # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
39143
39144   echo "$as_me:$LINENO: checking for library containing yp_match" >&5
39145 echo $ECHO_N "checking for library containing yp_match... $ECHO_C" >&6
39146 if test "${ac_cv_search_yp_match+set}" = set; then
39147   echo $ECHO_N "(cached) $ECHO_C" >&6
39148 else
39149
39150     ac_func_search_save_LIBS=$LIBS
39151     ac_cv_search_yp_match=no
39152     cat >conftest.$ac_ext <<_ACEOF
39153 #line $LINENO "configure"
39154 /* confdefs.h.  */
39155 _ACEOF
39156 cat confdefs.h >>conftest.$ac_ext
39157 cat >>conftest.$ac_ext <<_ACEOF
39158 /* end confdefs.h.  */
39159
39160 /* Override any gcc2 internal prototype to avoid an error.  */
39161 #ifdef __cplusplus
39162 extern "C"
39163 #endif
39164 /* We use char because int might match the return type of a gcc2
39165    builtin and then its argument prototype would still apply.  */
39166 char yp_match ();
39167 int
39168 main ()
39169 {
39170 yp_match ();
39171   ;
39172   return 0;
39173 }
39174 _ACEOF
39175 rm -f conftest.$ac_objext conftest$ac_exeext
39176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39177   (eval $ac_link) 2>&5
39178   ac_status=$?
39179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39180   (exit $ac_status); } &&
39181          { ac_try='test -s conftest$ac_exeext'
39182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39183   (eval $ac_try) 2>&5
39184   ac_status=$?
39185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39186   (exit $ac_status); }; }; then
39187   ac_cv_search_yp_match='none required'
39188 else
39189   echo "$as_me: failed program was:" >&5
39190 sed 's/^/| /' conftest.$ac_ext >&5
39191
39192 fi
39193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39194     if test "$ac_cv_search_yp_match" = no; then
39195       for ac_lib in sun ypsec; do
39196         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
39197         cat >conftest.$ac_ext <<_ACEOF
39198 #line $LINENO "configure"
39199 /* confdefs.h.  */
39200 _ACEOF
39201 cat confdefs.h >>conftest.$ac_ext
39202 cat >>conftest.$ac_ext <<_ACEOF
39203 /* end confdefs.h.  */
39204
39205 /* Override any gcc2 internal prototype to avoid an error.  */
39206 #ifdef __cplusplus
39207 extern "C"
39208 #endif
39209 /* We use char because int might match the return type of a gcc2
39210    builtin and then its argument prototype would still apply.  */
39211 char yp_match ();
39212 int
39213 main ()
39214 {
39215 yp_match ();
39216   ;
39217   return 0;
39218 }
39219 _ACEOF
39220 rm -f conftest.$ac_objext conftest$ac_exeext
39221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39222   (eval $ac_link) 2>&5
39223   ac_status=$?
39224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39225   (exit $ac_status); } &&
39226          { ac_try='test -s conftest$ac_exeext'
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_cv_search_yp_match="-l$ac_lib"; break
39233 else
39234   echo "$as_me: failed program was:" >&5
39235 sed 's/^/| /' conftest.$ac_ext >&5
39236
39237 fi
39238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39239       done
39240     fi
39241     LIBS=$ac_func_search_save_LIBS
39242
39243 fi
39244 echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
39245 echo "${ECHO_T}$ac_cv_search_yp_match" >&6
39246
39247   if test "$ac_cv_search_yp_match" = no; then :
39248
39249   else
39250     if test "$ac_cv_search_yp_match" = 'none required'; then :
39251
39252     else
39253       LIBS="$ac_cv_search_yp_match $LIBS"
39254
39255     fi
39256   fi
39257
39258
39259   # SysV needs -lsec, older versions of Linux need -lshadow for
39260   # shadow passwords.  UnixWare 7 needs -lgen.
39261
39262   echo "$as_me:$LINENO: checking for library containing getspnam" >&5
39263 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
39264 if test "${ac_cv_search_getspnam+set}" = set; then
39265   echo $ECHO_N "(cached) $ECHO_C" >&6
39266 else
39267
39268     ac_func_search_save_LIBS=$LIBS
39269     ac_cv_search_getspnam=no
39270     cat >conftest.$ac_ext <<_ACEOF
39271 #line $LINENO "configure"
39272 /* confdefs.h.  */
39273 _ACEOF
39274 cat confdefs.h >>conftest.$ac_ext
39275 cat >>conftest.$ac_ext <<_ACEOF
39276 /* end confdefs.h.  */
39277
39278 /* Override any gcc2 internal prototype to avoid an error.  */
39279 #ifdef __cplusplus
39280 extern "C"
39281 #endif
39282 /* We use char because int might match the return type of a gcc2
39283    builtin and then its argument prototype would still apply.  */
39284 char getspnam ();
39285 int
39286 main ()
39287 {
39288 getspnam ();
39289   ;
39290   return 0;
39291 }
39292 _ACEOF
39293 rm -f conftest.$ac_objext conftest$ac_exeext
39294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39295   (eval $ac_link) 2>&5
39296   ac_status=$?
39297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39298   (exit $ac_status); } &&
39299          { ac_try='test -s conftest$ac_exeext'
39300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39301   (eval $ac_try) 2>&5
39302   ac_status=$?
39303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39304   (exit $ac_status); }; }; then
39305   ac_cv_search_getspnam='none required'
39306 else
39307   echo "$as_me: failed program was:" >&5
39308 sed 's/^/| /' conftest.$ac_ext >&5
39309
39310 fi
39311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39312     if test "$ac_cv_search_getspnam" = no; then
39313       for ac_lib in shadow sec gen; do
39314         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
39315         cat >conftest.$ac_ext <<_ACEOF
39316 #line $LINENO "configure"
39317 /* confdefs.h.  */
39318 _ACEOF
39319 cat confdefs.h >>conftest.$ac_ext
39320 cat >>conftest.$ac_ext <<_ACEOF
39321 /* end confdefs.h.  */
39322
39323 /* Override any gcc2 internal prototype to avoid an error.  */
39324 #ifdef __cplusplus
39325 extern "C"
39326 #endif
39327 /* We use char because int might match the return type of a gcc2
39328    builtin and then its argument prototype would still apply.  */
39329 char getspnam ();
39330 int
39331 main ()
39332 {
39333 getspnam ();
39334   ;
39335   return 0;
39336 }
39337 _ACEOF
39338 rm -f conftest.$ac_objext conftest$ac_exeext
39339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39340   (eval $ac_link) 2>&5
39341   ac_status=$?
39342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39343   (exit $ac_status); } &&
39344          { ac_try='test -s conftest$ac_exeext'
39345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39346   (eval $ac_try) 2>&5
39347   ac_status=$?
39348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39349   (exit $ac_status); }; }; then
39350   ac_cv_search_getspnam="-l$ac_lib"; break
39351 else
39352   echo "$as_me: failed program was:" >&5
39353 sed 's/^/| /' conftest.$ac_ext >&5
39354
39355 fi
39356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39357       done
39358     fi
39359     LIBS=$ac_func_search_save_LIBS
39360
39361 fi
39362 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
39363 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
39364
39365   if test "$ac_cv_search_getspnam" = no; then :
39366
39367   else
39368     if test "$ac_cv_search_getspnam" = 'none required'; then :
39369
39370     else
39371       LIBS="$ac_cv_search_getspnam $LIBS"
39372
39373     fi
39374   fi
39375
39376
39377
39378 for ac_header in shadow.h
39379 do
39380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39382   echo "$as_me:$LINENO: checking for $ac_header" >&5
39383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39385   echo $ECHO_N "(cached) $ECHO_C" >&6
39386 fi
39387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39389 else
39390   # Is the header compilable?
39391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39393 cat >conftest.$ac_ext <<_ACEOF
39394 #line $LINENO "configure"
39395 /* confdefs.h.  */
39396 _ACEOF
39397 cat confdefs.h >>conftest.$ac_ext
39398 cat >>conftest.$ac_ext <<_ACEOF
39399 /* end confdefs.h.  */
39400 $ac_includes_default
39401 #include <$ac_header>
39402 _ACEOF
39403 rm -f conftest.$ac_objext
39404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39405   (eval $ac_compile) 2>&5
39406   ac_status=$?
39407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39408   (exit $ac_status); } &&
39409          { ac_try='test -s conftest.$ac_objext'
39410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39411   (eval $ac_try) 2>&5
39412   ac_status=$?
39413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39414   (exit $ac_status); }; }; then
39415   ac_header_compiler=yes
39416 else
39417   echo "$as_me: failed program was:" >&5
39418 sed 's/^/| /' conftest.$ac_ext >&5
39419
39420 ac_header_compiler=no
39421 fi
39422 rm -f conftest.$ac_objext conftest.$ac_ext
39423 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39424 echo "${ECHO_T}$ac_header_compiler" >&6
39425
39426 # Is the header present?
39427 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39428 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39429 cat >conftest.$ac_ext <<_ACEOF
39430 #line $LINENO "configure"
39431 /* confdefs.h.  */
39432 _ACEOF
39433 cat confdefs.h >>conftest.$ac_ext
39434 cat >>conftest.$ac_ext <<_ACEOF
39435 /* end confdefs.h.  */
39436 #include <$ac_header>
39437 _ACEOF
39438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39439   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39440   ac_status=$?
39441   grep -v '^ *+' conftest.er1 >conftest.err
39442   rm -f conftest.er1
39443   cat conftest.err >&5
39444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39445   (exit $ac_status); } >/dev/null; then
39446   if test -s conftest.err; then
39447     ac_cpp_err=$ac_c_preproc_warn_flag
39448   else
39449     ac_cpp_err=
39450   fi
39451 else
39452   ac_cpp_err=yes
39453 fi
39454 if test -z "$ac_cpp_err"; then
39455   ac_header_preproc=yes
39456 else
39457   echo "$as_me: failed program was:" >&5
39458 sed 's/^/| /' conftest.$ac_ext >&5
39459
39460   ac_header_preproc=no
39461 fi
39462 rm -f conftest.err conftest.$ac_ext
39463 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39464 echo "${ECHO_T}$ac_header_preproc" >&6
39465
39466 # So?  What about this header?
39467 case $ac_header_compiler:$ac_header_preproc in
39468   yes:no )
39469     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39471     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39473     (
39474       cat <<\_ASBOX
39475 ## ------------------------------------ ##
39476 ## Report this to bug-autoconf@gnu.org. ##
39477 ## ------------------------------------ ##
39478 _ASBOX
39479     ) |
39480       sed "s/^/$as_me: WARNING:     /" >&2
39481     ;;
39482   no:yes )
39483     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39485     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39489     (
39490       cat <<\_ASBOX
39491 ## ------------------------------------ ##
39492 ## Report this to bug-autoconf@gnu.org. ##
39493 ## ------------------------------------ ##
39494 _ASBOX
39495     ) |
39496       sed "s/^/$as_me: WARNING:     /" >&2
39497     ;;
39498 esac
39499 echo "$as_me:$LINENO: checking for $ac_header" >&5
39500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39502   echo $ECHO_N "(cached) $ECHO_C" >&6
39503 else
39504   eval "$as_ac_Header=$ac_header_preproc"
39505 fi
39506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39508
39509 fi
39510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39511   cat >>confdefs.h <<_ACEOF
39512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39513 _ACEOF
39514
39515 fi
39516
39517 done
39518
39519
39520   # Requirements for su.c.
39521   shadow_includes="\
39522 $ac_includes_default
39523 #if HAVE_SHADOW_H
39524 # include <shadow.h>
39525 #endif
39526 "
39527   echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
39528 echo $ECHO_N "checking for struct spwd.sp_pwdp... $ECHO_C" >&6
39529 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
39530   echo $ECHO_N "(cached) $ECHO_C" >&6
39531 else
39532   cat >conftest.$ac_ext <<_ACEOF
39533 #line $LINENO "configure"
39534 /* confdefs.h.  */
39535 _ACEOF
39536 cat confdefs.h >>conftest.$ac_ext
39537 cat >>conftest.$ac_ext <<_ACEOF
39538 /* end confdefs.h.  */
39539 $shadow_includes
39540
39541 int
39542 main ()
39543 {
39544 static struct spwd ac_aggr;
39545 if (ac_aggr.sp_pwdp)
39546 return 0;
39547   ;
39548   return 0;
39549 }
39550 _ACEOF
39551 rm -f conftest.$ac_objext
39552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39553   (eval $ac_compile) 2>&5
39554   ac_status=$?
39555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39556   (exit $ac_status); } &&
39557          { ac_try='test -s conftest.$ac_objext'
39558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39559   (eval $ac_try) 2>&5
39560   ac_status=$?
39561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39562   (exit $ac_status); }; }; then
39563   ac_cv_member_struct_spwd_sp_pwdp=yes
39564 else
39565   echo "$as_me: failed program was:" >&5
39566 sed 's/^/| /' conftest.$ac_ext >&5
39567
39568 cat >conftest.$ac_ext <<_ACEOF
39569 #line $LINENO "configure"
39570 /* confdefs.h.  */
39571 _ACEOF
39572 cat confdefs.h >>conftest.$ac_ext
39573 cat >>conftest.$ac_ext <<_ACEOF
39574 /* end confdefs.h.  */
39575 $shadow_includes
39576
39577 int
39578 main ()
39579 {
39580 static struct spwd ac_aggr;
39581 if (sizeof ac_aggr.sp_pwdp)
39582 return 0;
39583   ;
39584   return 0;
39585 }
39586 _ACEOF
39587 rm -f conftest.$ac_objext
39588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39589   (eval $ac_compile) 2>&5
39590   ac_status=$?
39591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39592   (exit $ac_status); } &&
39593          { ac_try='test -s conftest.$ac_objext'
39594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39595   (eval $ac_try) 2>&5
39596   ac_status=$?
39597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39598   (exit $ac_status); }; }; then
39599   ac_cv_member_struct_spwd_sp_pwdp=yes
39600 else
39601   echo "$as_me: failed program was:" >&5
39602 sed 's/^/| /' conftest.$ac_ext >&5
39603
39604 ac_cv_member_struct_spwd_sp_pwdp=no
39605 fi
39606 rm -f conftest.$ac_objext conftest.$ac_ext
39607 fi
39608 rm -f conftest.$ac_objext conftest.$ac_ext
39609 fi
39610 echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
39611 echo "${ECHO_T}$ac_cv_member_struct_spwd_sp_pwdp" >&6
39612 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
39613
39614 cat >>confdefs.h <<_ACEOF
39615 #define HAVE_STRUCT_SPWD_SP_PWDP 1
39616 _ACEOF
39617
39618
39619 fi
39620
39621
39622 for ac_func in getspnam
39623 do
39624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39625 echo "$as_me:$LINENO: checking for $ac_func" >&5
39626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39627 if eval "test \"\${$as_ac_var+set}\" = set"; then
39628   echo $ECHO_N "(cached) $ECHO_C" >&6
39629 else
39630   cat >conftest.$ac_ext <<_ACEOF
39631 #line $LINENO "configure"
39632 /* confdefs.h.  */
39633 _ACEOF
39634 cat confdefs.h >>conftest.$ac_ext
39635 cat >>conftest.$ac_ext <<_ACEOF
39636 /* end confdefs.h.  */
39637 /* System header to define __stub macros and hopefully few prototypes,
39638     which can conflict with char $ac_func (); below.
39639     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39640     <limits.h> exists even on freestanding compilers.  */
39641 #ifdef __STDC__
39642 # include <limits.h>
39643 #else
39644 # include <assert.h>
39645 #endif
39646 /* Override any gcc2 internal prototype to avoid an error.  */
39647 #ifdef __cplusplus
39648 extern "C"
39649 {
39650 #endif
39651 /* We use char because int might match the return type of a gcc2
39652    builtin and then its argument prototype would still apply.  */
39653 char $ac_func ();
39654 /* The GNU C library defines this for functions which it implements
39655     to always fail with ENOSYS.  Some functions are actually named
39656     something starting with __ and the normal name is an alias.  */
39657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39658 choke me
39659 #else
39660 char (*f) () = $ac_func;
39661 #endif
39662 #ifdef __cplusplus
39663 }
39664 #endif
39665
39666 int
39667 main ()
39668 {
39669 return f != $ac_func;
39670   ;
39671   return 0;
39672 }
39673 _ACEOF
39674 rm -f conftest.$ac_objext conftest$ac_exeext
39675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39676   (eval $ac_link) 2>&5
39677   ac_status=$?
39678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39679   (exit $ac_status); } &&
39680          { ac_try='test -s conftest$ac_exeext'
39681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39682   (eval $ac_try) 2>&5
39683   ac_status=$?
39684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39685   (exit $ac_status); }; }; then
39686   eval "$as_ac_var=yes"
39687 else
39688   echo "$as_me: failed program was:" >&5
39689 sed 's/^/| /' conftest.$ac_ext >&5
39690
39691 eval "$as_ac_var=no"
39692 fi
39693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39694 fi
39695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39697 if test `eval echo '${'$as_ac_var'}'` = yes; then
39698   cat >>confdefs.h <<_ACEOF
39699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39700 _ACEOF
39701
39702 fi
39703 done
39704
39705
39706   # SCO-ODT-3.0 is reported to need -lufc for crypt.
39707   # NetBSD needs -lcrypt for crypt.
39708   ac_su_saved_lib="$LIBS"
39709
39710   echo "$as_me:$LINENO: checking for library containing crypt" >&5
39711 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
39712 if test "${ac_cv_search_crypt+set}" = set; then
39713   echo $ECHO_N "(cached) $ECHO_C" >&6
39714 else
39715
39716     ac_func_search_save_LIBS=$LIBS
39717     ac_cv_search_crypt=no
39718     cat >conftest.$ac_ext <<_ACEOF
39719 #line $LINENO "configure"
39720 /* confdefs.h.  */
39721 _ACEOF
39722 cat confdefs.h >>conftest.$ac_ext
39723 cat >>conftest.$ac_ext <<_ACEOF
39724 /* end confdefs.h.  */
39725
39726 /* Override any gcc2 internal prototype to avoid an error.  */
39727 #ifdef __cplusplus
39728 extern "C"
39729 #endif
39730 /* We use char because int might match the return type of a gcc2
39731    builtin and then its argument prototype would still apply.  */
39732 char crypt ();
39733 int
39734 main ()
39735 {
39736 crypt ();
39737   ;
39738   return 0;
39739 }
39740 _ACEOF
39741 rm -f conftest.$ac_objext conftest$ac_exeext
39742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39743   (eval $ac_link) 2>&5
39744   ac_status=$?
39745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39746   (exit $ac_status); } &&
39747          { ac_try='test -s conftest$ac_exeext'
39748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39749   (eval $ac_try) 2>&5
39750   ac_status=$?
39751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39752   (exit $ac_status); }; }; then
39753   ac_cv_search_crypt='none required'
39754 else
39755   echo "$as_me: failed program was:" >&5
39756 sed 's/^/| /' conftest.$ac_ext >&5
39757
39758 fi
39759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39760     if test "$ac_cv_search_crypt" = no; then
39761       for ac_lib in ufc crypt; do
39762         LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
39763         cat >conftest.$ac_ext <<_ACEOF
39764 #line $LINENO "configure"
39765 /* confdefs.h.  */
39766 _ACEOF
39767 cat confdefs.h >>conftest.$ac_ext
39768 cat >>conftest.$ac_ext <<_ACEOF
39769 /* end confdefs.h.  */
39770
39771 /* Override any gcc2 internal prototype to avoid an error.  */
39772 #ifdef __cplusplus
39773 extern "C"
39774 #endif
39775 /* We use char because int might match the return type of a gcc2
39776    builtin and then its argument prototype would still apply.  */
39777 char crypt ();
39778 int
39779 main ()
39780 {
39781 crypt ();
39782   ;
39783   return 0;
39784 }
39785 _ACEOF
39786 rm -f conftest.$ac_objext conftest$ac_exeext
39787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39788   (eval $ac_link) 2>&5
39789   ac_status=$?
39790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39791   (exit $ac_status); } &&
39792          { ac_try='test -s conftest$ac_exeext'
39793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39794   (eval $ac_try) 2>&5
39795   ac_status=$?
39796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39797   (exit $ac_status); }; }; then
39798   ac_cv_search_crypt="-l$ac_lib"; break
39799 else
39800   echo "$as_me: failed program was:" >&5
39801 sed 's/^/| /' conftest.$ac_ext >&5
39802
39803 fi
39804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39805       done
39806     fi
39807     LIBS=$ac_func_search_save_LIBS
39808
39809 fi
39810 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
39811 echo "${ECHO_T}$ac_cv_search_crypt" >&6
39812
39813   if test "$ac_cv_search_crypt" = no; then :
39814
39815   else
39816     if test "$ac_cv_search_crypt" = 'none required'; then :
39817
39818     else
39819       LIBS="$ac_cv_search_crypt $LIBS"
39820       LIB_CRYPT="$ac_cv_search_crypt"
39821     fi
39822   fi
39823
39824   LIBS="$ac_su_saved_lib"
39825
39826
39827
39828
39829         MKINSTALLDIRS=
39830   if test -n "$ac_aux_dir"; then
39831     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
39832   fi
39833   if test -z "$MKINSTALLDIRS"; then
39834     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
39835   fi
39836
39837
39838
39839
39840
39841         # Extract the first word of "msgfmt", so it can be a program name with args.
39842 set dummy msgfmt; ac_word=$2
39843 echo "$as_me:$LINENO: checking for $ac_word" >&5
39844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39845 if test "${ac_cv_path_MSGFMT+set}" = set; then
39846   echo $ECHO_N "(cached) $ECHO_C" >&6
39847 else
39848   case "$MSGFMT" in
39849   /*)
39850   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
39851   ;;
39852   *)
39853   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
39854   for ac_dir in $PATH; do
39855     test -z "$ac_dir" && ac_dir=.
39856     if test -f $ac_dir/$ac_word; then
39857       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
39858      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
39859         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
39860         break
39861       fi
39862     fi
39863   done
39864   IFS="$ac_save_ifs"
39865   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
39866   ;;
39867 esac
39868 fi
39869 MSGFMT="$ac_cv_path_MSGFMT"
39870 if test "$MSGFMT" != ":"; then
39871   echo "$as_me:$LINENO: result: $MSGFMT" >&5
39872 echo "${ECHO_T}$MSGFMT" >&6
39873 else
39874   echo "$as_me:$LINENO: result: no" >&5
39875 echo "${ECHO_T}no" >&6
39876 fi
39877
39878   # Extract the first word of "gmsgfmt", so it can be a program name with args.
39879 set dummy gmsgfmt; ac_word=$2
39880 echo "$as_me:$LINENO: checking for $ac_word" >&5
39881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39882 if test "${ac_cv_path_GMSGFMT+set}" = set; then
39883   echo $ECHO_N "(cached) $ECHO_C" >&6
39884 else
39885   case $GMSGFMT in
39886   [\\/]* | ?:[\\/]*)
39887   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
39888   ;;
39889   *)
39890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39891 for as_dir in $PATH
39892 do
39893   IFS=$as_save_IFS
39894   test -z "$as_dir" && as_dir=.
39895   for ac_exec_ext in '' $ac_executable_extensions; do
39896   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39897     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
39898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39899     break 2
39900   fi
39901 done
39902 done
39903
39904   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
39905   ;;
39906 esac
39907 fi
39908 GMSGFMT=$ac_cv_path_GMSGFMT
39909
39910 if test -n "$GMSGFMT"; then
39911   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
39912 echo "${ECHO_T}$GMSGFMT" >&6
39913 else
39914   echo "$as_me:$LINENO: result: no" >&5
39915 echo "${ECHO_T}no" >&6
39916 fi
39917
39918
39919         # Extract the first word of "xgettext", so it can be a program name with args.
39920 set dummy xgettext; ac_word=$2
39921 echo "$as_me:$LINENO: checking for $ac_word" >&5
39922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39923 if test "${ac_cv_path_XGETTEXT+set}" = set; then
39924   echo $ECHO_N "(cached) $ECHO_C" >&6
39925 else
39926   case "$XGETTEXT" in
39927   /*)
39928   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
39929   ;;
39930   *)
39931   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
39932   for ac_dir in $PATH; do
39933     test -z "$ac_dir" && ac_dir=.
39934     if test -f $ac_dir/$ac_word; then
39935       if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
39936      (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
39937         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
39938         break
39939       fi
39940     fi
39941   done
39942   IFS="$ac_save_ifs"
39943   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
39944   ;;
39945 esac
39946 fi
39947 XGETTEXT="$ac_cv_path_XGETTEXT"
39948 if test "$XGETTEXT" != ":"; then
39949   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
39950 echo "${ECHO_T}$XGETTEXT" >&6
39951 else
39952   echo "$as_me:$LINENO: result: no" >&5
39953 echo "${ECHO_T}no" >&6
39954 fi
39955
39956     rm -f messages.po
39957
39958     # Extract the first word of "msgmerge", so it can be a program name with args.
39959 set dummy msgmerge; ac_word=$2
39960 echo "$as_me:$LINENO: checking for $ac_word" >&5
39961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39962 if test "${ac_cv_path_MSGMERGE+set}" = set; then
39963   echo $ECHO_N "(cached) $ECHO_C" >&6
39964 else
39965   case "$MSGMERGE" in
39966   /*)
39967   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
39968   ;;
39969   *)
39970   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
39971   for ac_dir in $PATH; do
39972     test -z "$ac_dir" && ac_dir=.
39973     if test -f $ac_dir/$ac_word; then
39974       if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
39975         ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
39976         break
39977       fi
39978     fi
39979   done
39980   IFS="$ac_save_ifs"
39981   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
39982   ;;
39983 esac
39984 fi
39985 MSGMERGE="$ac_cv_path_MSGMERGE"
39986 if test "$MSGMERGE" != ":"; then
39987   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
39988 echo "${ECHO_T}$MSGMERGE" >&6
39989 else
39990   echo "$as_me:$LINENO: result: no" >&5
39991 echo "${ECHO_T}no" >&6
39992 fi
39993
39994
39995       if test "$GMSGFMT" != ":"; then
39996             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
39997        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
39998       : ;
39999     else
40000       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
40001       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
40002 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
40003       GMSGFMT=":"
40004     fi
40005   fi
40006
40007       if test "$XGETTEXT" != ":"; then
40008             if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
40009        (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
40010       : ;
40011     else
40012       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
40013 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
40014       XGETTEXT=":"
40015     fi
40016         rm -f messages.po
40017   fi
40018
40019             ac_config_commands="$ac_config_commands default-1"
40020
40021
40022
40023
40024
40025
40026
40027
40028
40029
40030
40031
40032
40033
40034
40035
40036
40037   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
40038 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
40039     # Check whether --enable-nls or --disable-nls was given.
40040 if test "${enable_nls+set}" = set; then
40041   enableval="$enable_nls"
40042   USE_NLS=$enableval
40043 else
40044   USE_NLS=yes
40045 fi;
40046   echo "$as_me:$LINENO: result: $USE_NLS" >&5
40047 echo "${ECHO_T}$USE_NLS" >&6
40048
40049
40050
40051   LIBINTL=
40052   LTLIBINTL=
40053   POSUB=
40054
40055     if test "$USE_NLS" = "yes"; then
40056     gt_use_preinstalled_gnugettext=no
40057
40058
40059
40060
40061
40062
40063         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
40064 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
40065 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
40066   echo $ECHO_N "(cached) $ECHO_C" >&6
40067 else
40068   cat >conftest.$ac_ext <<_ACEOF
40069 #line $LINENO "configure"
40070 /* confdefs.h.  */
40071 _ACEOF
40072 cat confdefs.h >>conftest.$ac_ext
40073 cat >>conftest.$ac_ext <<_ACEOF
40074 /* end confdefs.h.  */
40075 #include <libintl.h>
40076 extern int _nl_msg_cat_cntr;
40077 extern int *_nl_domain_bindings;
40078 int
40079 main ()
40080 {
40081 bindtextdomain ("", "");
40082 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
40083   ;
40084   return 0;
40085 }
40086 _ACEOF
40087 rm -f conftest.$ac_objext conftest$ac_exeext
40088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40089   (eval $ac_link) 2>&5
40090   ac_status=$?
40091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40092   (exit $ac_status); } &&
40093          { ac_try='test -s conftest$ac_exeext'
40094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40095   (eval $ac_try) 2>&5
40096   ac_status=$?
40097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40098   (exit $ac_status); }; }; then
40099   gt_cv_func_gnugettext2_libc=yes
40100 else
40101   echo "$as_me: failed program was:" >&5
40102 sed 's/^/| /' conftest.$ac_ext >&5
40103
40104 gt_cv_func_gnugettext2_libc=no
40105 fi
40106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40107 fi
40108 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
40109 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
40110
40111         if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
40112
40113
40114
40115
40116
40117           am_save_CPPFLAGS="$CPPFLAGS"
40118
40119   for element in $INCICONV; do
40120     haveit=
40121     for x in $CPPFLAGS; do
40122
40123   acl_save_prefix="$prefix"
40124   prefix="$acl_final_prefix"
40125   acl_save_exec_prefix="$exec_prefix"
40126   exec_prefix="$acl_final_exec_prefix"
40127   eval x=\"$x\"
40128   exec_prefix="$acl_save_exec_prefix"
40129   prefix="$acl_save_prefix"
40130
40131       if test "X$x" = "X$element"; then
40132         haveit=yes
40133         break
40134       fi
40135     done
40136     if test -z "$haveit"; then
40137       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
40138     fi
40139   done
40140
40141
40142   echo "$as_me:$LINENO: checking for iconv" >&5
40143 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
40144 if test "${am_cv_func_iconv+set}" = set; then
40145   echo $ECHO_N "(cached) $ECHO_C" >&6
40146 else
40147
40148     am_cv_func_iconv="no, consider installing GNU libiconv"
40149     am_cv_lib_iconv=no
40150     cat >conftest.$ac_ext <<_ACEOF
40151 #line $LINENO "configure"
40152 /* confdefs.h.  */
40153 _ACEOF
40154 cat confdefs.h >>conftest.$ac_ext
40155 cat >>conftest.$ac_ext <<_ACEOF
40156 /* end confdefs.h.  */
40157 #include <stdlib.h>
40158 #include <iconv.h>
40159 int
40160 main ()
40161 {
40162 iconv_t cd = iconv_open("","");
40163        iconv(cd,NULL,NULL,NULL,NULL);
40164        iconv_close(cd);
40165   ;
40166   return 0;
40167 }
40168 _ACEOF
40169 rm -f conftest.$ac_objext conftest$ac_exeext
40170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40171   (eval $ac_link) 2>&5
40172   ac_status=$?
40173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40174   (exit $ac_status); } &&
40175          { ac_try='test -s conftest$ac_exeext'
40176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40177   (eval $ac_try) 2>&5
40178   ac_status=$?
40179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40180   (exit $ac_status); }; }; then
40181   am_cv_func_iconv=yes
40182 else
40183   echo "$as_me: failed program was:" >&5
40184 sed 's/^/| /' conftest.$ac_ext >&5
40185
40186 fi
40187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40188     if test "$am_cv_func_iconv" != yes; then
40189       am_save_LIBS="$LIBS"
40190       LIBS="$LIBS $LIBICONV"
40191       cat >conftest.$ac_ext <<_ACEOF
40192 #line $LINENO "configure"
40193 /* confdefs.h.  */
40194 _ACEOF
40195 cat confdefs.h >>conftest.$ac_ext
40196 cat >>conftest.$ac_ext <<_ACEOF
40197 /* end confdefs.h.  */
40198 #include <stdlib.h>
40199 #include <iconv.h>
40200 int
40201 main ()
40202 {
40203 iconv_t cd = iconv_open("","");
40204          iconv(cd,NULL,NULL,NULL,NULL);
40205          iconv_close(cd);
40206   ;
40207   return 0;
40208 }
40209 _ACEOF
40210 rm -f conftest.$ac_objext conftest$ac_exeext
40211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40212   (eval $ac_link) 2>&5
40213   ac_status=$?
40214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40215   (exit $ac_status); } &&
40216          { ac_try='test -s conftest$ac_exeext'
40217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40218   (eval $ac_try) 2>&5
40219   ac_status=$?
40220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40221   (exit $ac_status); }; }; then
40222   am_cv_lib_iconv=yes
40223         am_cv_func_iconv=yes
40224 else
40225   echo "$as_me: failed program was:" >&5
40226 sed 's/^/| /' conftest.$ac_ext >&5
40227
40228 fi
40229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40230       LIBS="$am_save_LIBS"
40231     fi
40232
40233 fi
40234 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
40235 echo "${ECHO_T}$am_cv_func_iconv" >&6
40236   if test "$am_cv_func_iconv" = yes; then
40237
40238 cat >>confdefs.h <<\_ACEOF
40239 #define HAVE_ICONV 1
40240 _ACEOF
40241
40242   fi
40243   if test "$am_cv_lib_iconv" = yes; then
40244     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
40245 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
40246     echo "$as_me:$LINENO: result: $LIBICONV" >&5
40247 echo "${ECHO_T}$LIBICONV" >&6
40248   else
40249             CPPFLAGS="$am_save_CPPFLAGS"
40250     LIBICONV=
40251     LTLIBICONV=
40252   fi
40253
40254
40255
40256
40257
40258
40259     use_additional=yes
40260
40261   acl_save_prefix="$prefix"
40262   prefix="$acl_final_prefix"
40263   acl_save_exec_prefix="$exec_prefix"
40264   exec_prefix="$acl_final_exec_prefix"
40265
40266     eval additional_includedir=\"$includedir\"
40267     eval additional_libdir=\"$libdir\"
40268
40269   exec_prefix="$acl_save_exec_prefix"
40270   prefix="$acl_save_prefix"
40271
40272
40273 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
40274 if test "${with_libintl_prefix+set}" = set; then
40275   withval="$with_libintl_prefix"
40276
40277     if test "X$withval" = "Xno"; then
40278       use_additional=no
40279     else
40280       if test "X$withval" = "X"; then
40281
40282   acl_save_prefix="$prefix"
40283   prefix="$acl_final_prefix"
40284   acl_save_exec_prefix="$exec_prefix"
40285   exec_prefix="$acl_final_exec_prefix"
40286
40287           eval additional_includedir=\"$includedir\"
40288           eval additional_libdir=\"$libdir\"
40289
40290   exec_prefix="$acl_save_exec_prefix"
40291   prefix="$acl_save_prefix"
40292
40293       else
40294         additional_includedir="$withval/include"
40295         additional_libdir="$withval/lib"
40296       fi
40297     fi
40298
40299 fi;
40300       LIBINTL=
40301   LTLIBINTL=
40302   INCINTL=
40303   rpathdirs=
40304   ltrpathdirs=
40305   names_already_handled=
40306   names_next_round='intl '
40307   while test -n "$names_next_round"; do
40308     names_this_round="$names_next_round"
40309     names_next_round=
40310     for name in $names_this_round; do
40311       already_handled=
40312       for n in $names_already_handled; do
40313         if test "$n" = "$name"; then
40314           already_handled=yes
40315           break
40316         fi
40317       done
40318       if test -z "$already_handled"; then
40319         names_already_handled="$names_already_handled $name"
40320                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
40321         eval value=\"\$HAVE_LIB$uppername\"
40322         if test -n "$value"; then
40323           if test "$value" = yes; then
40324             eval value=\"\$LIB$uppername\"
40325             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
40326             eval value=\"\$LTLIB$uppername\"
40327             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
40328           else
40329                                     :
40330           fi
40331         else
40332                               found_dir=
40333           found_la=
40334           found_so=
40335           found_a=
40336           if test $use_additional = yes; then
40337             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
40338               found_dir="$additional_libdir"
40339               found_so="$additional_libdir/lib$name.$shlibext"
40340               if test -f "$additional_libdir/lib$name.la"; then
40341                 found_la="$additional_libdir/lib$name.la"
40342               fi
40343             else
40344               if test -f "$additional_libdir/lib$name.$libext"; then
40345                 found_dir="$additional_libdir"
40346                 found_a="$additional_libdir/lib$name.$libext"
40347                 if test -f "$additional_libdir/lib$name.la"; then
40348                   found_la="$additional_libdir/lib$name.la"
40349                 fi
40350               fi
40351             fi
40352           fi
40353           if test "X$found_dir" = "X"; then
40354             for x in $LDFLAGS $LTLIBINTL; do
40355
40356   acl_save_prefix="$prefix"
40357   prefix="$acl_final_prefix"
40358   acl_save_exec_prefix="$exec_prefix"
40359   exec_prefix="$acl_final_exec_prefix"
40360   eval x=\"$x\"
40361   exec_prefix="$acl_save_exec_prefix"
40362   prefix="$acl_save_prefix"
40363
40364               case "$x" in
40365                 -L*)
40366                   dir=`echo "X$x" | sed -e 's/^X-L//'`
40367                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
40368                     found_dir="$dir"
40369                     found_so="$dir/lib$name.$shlibext"
40370                     if test -f "$dir/lib$name.la"; then
40371                       found_la="$dir/lib$name.la"
40372                     fi
40373                   else
40374                     if test -f "$dir/lib$name.$libext"; then
40375                       found_dir="$dir"
40376                       found_a="$dir/lib$name.$libext"
40377                       if test -f "$dir/lib$name.la"; then
40378                         found_la="$dir/lib$name.la"
40379                       fi
40380                     fi
40381                   fi
40382                   ;;
40383               esac
40384               if test "X$found_dir" != "X"; then
40385                 break
40386               fi
40387             done
40388           fi
40389           if test "X$found_dir" != "X"; then
40390                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
40391             if test "X$found_so" != "X"; then
40392                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
40393                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
40394               else
40395                                                                                 haveit=
40396                 for x in $ltrpathdirs; do
40397                   if test "X$x" = "X$found_dir"; then
40398                     haveit=yes
40399                     break
40400                   fi
40401                 done
40402                 if test -z "$haveit"; then
40403                   ltrpathdirs="$ltrpathdirs $found_dir"
40404                 fi
40405                                 if test "$hardcode_direct" = yes; then
40406                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
40407                 else
40408                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
40409                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
40410                                                             haveit=
40411                     for x in $rpathdirs; do
40412                       if test "X$x" = "X$found_dir"; then
40413                         haveit=yes
40414                         break
40415                       fi
40416                     done
40417                     if test -z "$haveit"; then
40418                       rpathdirs="$rpathdirs $found_dir"
40419                     fi
40420                   else
40421                                                                                 haveit=
40422                     for x in $LDFLAGS $LIBINTL; do
40423
40424   acl_save_prefix="$prefix"
40425   prefix="$acl_final_prefix"
40426   acl_save_exec_prefix="$exec_prefix"
40427   exec_prefix="$acl_final_exec_prefix"
40428   eval x=\"$x\"
40429   exec_prefix="$acl_save_exec_prefix"
40430   prefix="$acl_save_prefix"
40431
40432                       if test "X$x" = "X-L$found_dir"; then
40433                         haveit=yes
40434                         break
40435                       fi
40436                     done
40437                     if test -z "$haveit"; then
40438                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
40439                     fi
40440                     if test "$hardcode_minus_L" != no; then
40441                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
40442                     else
40443                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
40444                     fi
40445                   fi
40446                 fi
40447               fi
40448             else
40449               if test "X$found_a" != "X"; then
40450                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
40451               else
40452                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
40453               fi
40454             fi
40455                         additional_includedir=
40456             case "$found_dir" in
40457               */lib | */lib/)
40458                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
40459                 additional_includedir="$basedir/include"
40460                 ;;
40461             esac
40462             if test "X$additional_includedir" != "X"; then
40463                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
40464                 haveit=
40465                 if test "X$additional_includedir" = "X/usr/local/include"; then
40466                   if test -n "$GCC"; then
40467                     case $host_os in
40468                       linux*) haveit=yes;;
40469                     esac
40470                   fi
40471                 fi
40472                 if test -z "$haveit"; then
40473                   for x in $CPPFLAGS $INCINTL; do
40474
40475   acl_save_prefix="$prefix"
40476   prefix="$acl_final_prefix"
40477   acl_save_exec_prefix="$exec_prefix"
40478   exec_prefix="$acl_final_exec_prefix"
40479   eval x=\"$x\"
40480   exec_prefix="$acl_save_exec_prefix"
40481   prefix="$acl_save_prefix"
40482
40483                     if test "X$x" = "X-I$additional_includedir"; then
40484                       haveit=yes
40485                       break
40486                     fi
40487                   done
40488                   if test -z "$haveit"; then
40489                     if test -d "$additional_includedir"; then
40490                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
40491                     fi
40492                   fi
40493                 fi
40494               fi
40495             fi
40496                         if test -n "$found_la"; then
40497                                                         save_libdir="$libdir"
40498               case "$found_la" in
40499                 */* | *\\*) . "$found_la" ;;
40500                 *) . "./$found_la" ;;
40501               esac
40502               libdir="$save_libdir"
40503                             for dep in $dependency_libs; do
40504                 case "$dep" in
40505                   -L*)
40506                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
40507                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
40508                       haveit=
40509                       if test "X$additional_libdir" = "X/usr/local/lib"; then
40510                         if test -n "$GCC"; then
40511                           case $host_os in
40512                             linux*) haveit=yes;;
40513                           esac
40514                         fi
40515                       fi
40516                       if test -z "$haveit"; then
40517                         haveit=
40518                         for x in $LDFLAGS $LIBINTL; do
40519
40520   acl_save_prefix="$prefix"
40521   prefix="$acl_final_prefix"
40522   acl_save_exec_prefix="$exec_prefix"
40523   exec_prefix="$acl_final_exec_prefix"
40524   eval x=\"$x\"
40525   exec_prefix="$acl_save_exec_prefix"
40526   prefix="$acl_save_prefix"
40527
40528                           if test "X$x" = "X-L$additional_libdir"; then
40529                             haveit=yes
40530                             break
40531                           fi
40532                         done
40533                         if test -z "$haveit"; then
40534                           if test -d "$additional_libdir"; then
40535                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
40536                           fi
40537                         fi
40538                         haveit=
40539                         for x in $LDFLAGS $LTLIBINTL; do
40540
40541   acl_save_prefix="$prefix"
40542   prefix="$acl_final_prefix"
40543   acl_save_exec_prefix="$exec_prefix"
40544   exec_prefix="$acl_final_exec_prefix"
40545   eval x=\"$x\"
40546   exec_prefix="$acl_save_exec_prefix"
40547   prefix="$acl_save_prefix"
40548
40549                           if test "X$x" = "X-L$additional_libdir"; then
40550                             haveit=yes
40551                             break
40552                           fi
40553                         done
40554                         if test -z "$haveit"; then
40555                           if test -d "$additional_libdir"; then
40556                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
40557                           fi
40558                         fi
40559                       fi
40560                     fi
40561                     ;;
40562                   -R*)
40563                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
40564                     if test "$enable_rpath" != no; then
40565                                                                   haveit=
40566                       for x in $rpathdirs; do
40567                         if test "X$x" = "X$dir"; then
40568                           haveit=yes
40569                           break
40570                         fi
40571                       done
40572                       if test -z "$haveit"; then
40573                         rpathdirs="$rpathdirs $dir"
40574                       fi
40575                                                                   haveit=
40576                       for x in $ltrpathdirs; do
40577                         if test "X$x" = "X$dir"; then
40578                           haveit=yes
40579                           break
40580                         fi
40581                       done
40582                       if test -z "$haveit"; then
40583                         ltrpathdirs="$ltrpathdirs $dir"
40584                       fi
40585                     fi
40586                     ;;
40587                   -l*)
40588                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
40589                     ;;
40590                   *.la)
40591                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
40592                     ;;
40593                   *)
40594                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
40595                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
40596                     ;;
40597                 esac
40598               done
40599             fi
40600           else
40601                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
40602             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
40603           fi
40604         fi
40605       fi
40606     done
40607   done
40608   if test "X$rpathdirs" != "X"; then
40609     if test -n "$hardcode_libdir_separator"; then
40610                         alldirs=
40611       for found_dir in $rpathdirs; do
40612         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
40613       done
40614             acl_save_libdir="$libdir"
40615       libdir="$alldirs"
40616       eval flag=\"$hardcode_libdir_flag_spec\"
40617       libdir="$acl_save_libdir"
40618       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
40619     else
40620             for found_dir in $rpathdirs; do
40621         acl_save_libdir="$libdir"
40622         libdir="$found_dir"
40623         eval flag=\"$hardcode_libdir_flag_spec\"
40624         libdir="$acl_save_libdir"
40625         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
40626       done
40627     fi
40628   fi
40629   if test "X$ltrpathdirs" != "X"; then
40630             for found_dir in $ltrpathdirs; do
40631       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
40632     done
40633   fi
40634
40635           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
40636 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
40637 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
40638   echo $ECHO_N "(cached) $ECHO_C" >&6
40639 else
40640   gt_save_CPPFLAGS="$CPPFLAGS"
40641             CPPFLAGS="$CPPFLAGS $INCINTL"
40642             gt_save_LIBS="$LIBS"
40643             LIBS="$LIBS $LIBINTL"
40644                         cat >conftest.$ac_ext <<_ACEOF
40645 #line $LINENO "configure"
40646 /* confdefs.h.  */
40647 _ACEOF
40648 cat confdefs.h >>conftest.$ac_ext
40649 cat >>conftest.$ac_ext <<_ACEOF
40650 /* end confdefs.h.  */
40651 #include <libintl.h>
40652 extern int _nl_msg_cat_cntr;
40653 extern
40654 #ifdef __cplusplus
40655 "C"
40656 #endif
40657 const char *_nl_expand_alias ();
40658 int
40659 main ()
40660 {
40661 bindtextdomain ("", "");
40662 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
40663   ;
40664   return 0;
40665 }
40666 _ACEOF
40667 rm -f conftest.$ac_objext conftest$ac_exeext
40668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40669   (eval $ac_link) 2>&5
40670   ac_status=$?
40671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40672   (exit $ac_status); } &&
40673          { ac_try='test -s conftest$ac_exeext'
40674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40675   (eval $ac_try) 2>&5
40676   ac_status=$?
40677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40678   (exit $ac_status); }; }; then
40679   gt_cv_func_gnugettext2_libintl=yes
40680 else
40681   echo "$as_me: failed program was:" >&5
40682 sed 's/^/| /' conftest.$ac_ext >&5
40683
40684 gt_cv_func_gnugettext2_libintl=no
40685 fi
40686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40687                         if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
40688               LIBS="$LIBS $LIBICONV"
40689               cat >conftest.$ac_ext <<_ACEOF
40690 #line $LINENO "configure"
40691 /* confdefs.h.  */
40692 _ACEOF
40693 cat confdefs.h >>conftest.$ac_ext
40694 cat >>conftest.$ac_ext <<_ACEOF
40695 /* end confdefs.h.  */
40696 #include <libintl.h>
40697 extern int _nl_msg_cat_cntr;
40698 extern
40699 #ifdef __cplusplus
40700 "C"
40701 #endif
40702 const char *_nl_expand_alias ();
40703 int
40704 main ()
40705 {
40706 bindtextdomain ("", "");
40707 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
40708   ;
40709   return 0;
40710 }
40711 _ACEOF
40712 rm -f conftest.$ac_objext conftest$ac_exeext
40713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40714   (eval $ac_link) 2>&5
40715   ac_status=$?
40716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40717   (exit $ac_status); } &&
40718          { ac_try='test -s conftest$ac_exeext'
40719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40720   (eval $ac_try) 2>&5
40721   ac_status=$?
40722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40723   (exit $ac_status); }; }; then
40724   LIBINTL="$LIBINTL $LIBICONV"
40725                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
40726                 gt_cv_func_gnugettext2_libintl=yes
40727
40728 else
40729   echo "$as_me: failed program was:" >&5
40730 sed 's/^/| /' conftest.$ac_ext >&5
40731
40732 fi
40733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40734             fi
40735             CPPFLAGS="$gt_save_CPPFLAGS"
40736             LIBS="$gt_save_LIBS"
40737 fi
40738 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
40739 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
40740         fi
40741
40742                                         if test "$gt_cv_func_gnugettext2_libc" = "yes" \
40743            || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
40744                 && test "$PACKAGE" != gettext; }; then
40745           gt_use_preinstalled_gnugettext=yes
40746         else
40747                     LIBINTL=
40748           LTLIBINTL=
40749           INCINTL=
40750         fi
40751
40752
40753
40754     if test "$gt_use_preinstalled_gnugettext" = "yes" \
40755        || test "$nls_cv_use_gnu_gettext" = "yes"; then
40756
40757 cat >>confdefs.h <<\_ACEOF
40758 #define ENABLE_NLS 1
40759 _ACEOF
40760
40761     else
40762       USE_NLS=no
40763     fi
40764   fi
40765
40766   if test "$USE_NLS" = "yes"; then
40767
40768     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
40769       if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
40770         echo "$as_me:$LINENO: checking how to link with libintl" >&5
40771 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
40772         echo "$as_me:$LINENO: result: $LIBINTL" >&5
40773 echo "${ECHO_T}$LIBINTL" >&6
40774
40775   for element in $INCINTL; do
40776     haveit=
40777     for x in $CPPFLAGS; do
40778
40779   acl_save_prefix="$prefix"
40780   prefix="$acl_final_prefix"
40781   acl_save_exec_prefix="$exec_prefix"
40782   exec_prefix="$acl_final_exec_prefix"
40783   eval x=\"$x\"
40784   exec_prefix="$acl_save_exec_prefix"
40785   prefix="$acl_save_prefix"
40786
40787       if test "X$x" = "X$element"; then
40788         haveit=yes
40789         break
40790       fi
40791     done
40792     if test -z "$haveit"; then
40793       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
40794     fi
40795   done
40796
40797       fi
40798
40799
40800 cat >>confdefs.h <<\_ACEOF
40801 #define HAVE_GETTEXT 1
40802 _ACEOF
40803
40804
40805 cat >>confdefs.h <<\_ACEOF
40806 #define HAVE_DCGETTEXT 1
40807 _ACEOF
40808
40809     fi
40810
40811         POSUB=po
40812   fi
40813
40814
40815
40816     INTLLIBS="$LIBINTL"
40817
40818
40819
40820
40821
40822
40823
40824
40825                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               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"
40826
40827 cat >confcache <<\_ACEOF
40828 # This file is a shell script that caches the results of configure
40829 # tests run on this system so they can be shared between configure
40830 # scripts and configure runs, see configure's option --config-cache.
40831 # It is not useful on other systems.  If it contains results you don't
40832 # want to keep, you may remove or edit it.
40833 #
40834 # config.status only pays attention to the cache file if you give it
40835 # the --recheck option to rerun configure.
40836 #
40837 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40838 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40839 # following values.
40840
40841 _ACEOF
40842
40843 # The following way of writing the cache mishandles newlines in values,
40844 # but we know of no workaround that is simple, portable, and efficient.
40845 # So, don't put newlines in cache variables' values.
40846 # Ultrix sh set writes to stderr and can't be redirected directly,
40847 # and sets the high bit in the cache file unless we assign to the vars.
40848 {
40849   (set) 2>&1 |
40850     case `(ac_space=' '; set | grep ac_space) 2>&1` in
40851     *ac_space=\ *)
40852       # `set' does not quote correctly, so add quotes (double-quote
40853       # substitution turns \\\\ into \\, and sed turns \\ into \).
40854       sed -n \
40855         "s/'/'\\\\''/g;
40856           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
40857       ;;
40858     *)
40859       # `set' quotes correctly as required by POSIX, so do not add quotes.
40860       sed -n \
40861         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
40862       ;;
40863     esac;
40864 } |
40865   sed '
40866      t clear
40867      : clear
40868      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40869      t end
40870      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40871      : end' >>confcache
40872 if diff $cache_file confcache >/dev/null 2>&1; then :; else
40873   if test -w $cache_file; then
40874     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
40875     cat confcache >$cache_file
40876   else
40877     echo "not updating unwritable cache $cache_file"
40878   fi
40879 fi
40880 rm -f confcache
40881
40882 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40883 # Let make expand exec_prefix.
40884 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40885
40886 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40887 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40888 # trailing colons and then remove the whole line if VPATH becomes empty
40889 # (actually we leave an empty line to preserve line numbers).
40890 if test "x$srcdir" = x.; then
40891   ac_vpsub='/^[         ]*VPATH[        ]*=/{
40892 s/:*\$(srcdir):*/:/;
40893 s/:*\${srcdir}:*/:/;
40894 s/:*@srcdir@:*/:/;
40895 s/^\([^=]*=[    ]*\):*/\1/;
40896 s/:*$//;
40897 s/^[^=]*=[      ]*$//;
40898 }'
40899 fi
40900
40901 DEFS=-DHAVE_CONFIG_H
40902
40903 ac_libobjs=
40904 ac_ltlibobjs=
40905 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40906   # 1. Remove the extension, and $U if already installed.
40907   ac_i=`echo "$ac_i" |
40908          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40909   # 2. Add them.
40910   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40911   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40912 done
40913 LIBOBJS=$ac_libobjs
40914
40915 LTLIBOBJS=$ac_ltlibobjs
40916
40917
40918 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40919   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
40920 Usually this means the macro was only invoked conditionally." >&5
40921 echo "$as_me: error: conditional \"AMDEP\" was never defined.
40922 Usually this means the macro was only invoked conditionally." >&2;}
40923    { (exit 1); exit 1; }; }
40924 fi
40925 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40926   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40927 Usually this means the macro was only invoked conditionally." >&5
40928 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40929 Usually this means the macro was only invoked conditionally." >&2;}
40930    { (exit 1); exit 1; }; }
40931 fi
40932
40933 : ${CONFIG_STATUS=./config.status}
40934 ac_clean_files_save=$ac_clean_files
40935 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40936 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40937 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40938 cat >$CONFIG_STATUS <<_ACEOF
40939 #! $SHELL
40940 # Generated by $as_me.
40941 # Run this file to recreate the current configuration.
40942 # Compiler output produced by configure, useful for debugging
40943 # configure, is in config.log if it exists.
40944
40945 debug=false
40946 ac_cs_recheck=false
40947 ac_cs_silent=false
40948 SHELL=\${CONFIG_SHELL-$SHELL}
40949 _ACEOF
40950
40951 cat >>$CONFIG_STATUS <<\_ACEOF
40952 ## --------------------- ##
40953 ## M4sh Initialization.  ##
40954 ## --------------------- ##
40955
40956 # Be Bourne compatible
40957 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40958   emulate sh
40959   NULLCMD=:
40960   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40961   # is contrary to our usage.  Disable this feature.
40962   alias -g '${1+"$@"}'='"$@"'
40963 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40964   set -o posix
40965 fi
40966
40967 # Support unset when possible.
40968 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
40969   as_unset=unset
40970 else
40971   as_unset=false
40972 fi
40973
40974
40975 # Work around bugs in pre-3.0 UWIN ksh.
40976 $as_unset ENV MAIL MAILPATH
40977 PS1='$ '
40978 PS2='> '
40979 PS4='+ '
40980
40981 # NLS nuisances.
40982 for as_var in \
40983   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40984   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40985   LC_TELEPHONE LC_TIME
40986 do
40987   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
40988     eval $as_var=C; export $as_var
40989   else
40990     $as_unset $as_var
40991   fi
40992 done
40993
40994 # Required to use basename.
40995 if expr a : '\(a\)' >/dev/null 2>&1; then
40996   as_expr=expr
40997 else
40998   as_expr=false
40999 fi
41000
41001 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41002   as_basename=basename
41003 else
41004   as_basename=false
41005 fi
41006
41007
41008 # Name of the executable.
41009 as_me=`$as_basename "$0" ||
41010 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41011          X"$0" : 'X\(//\)$' \| \
41012          X"$0" : 'X\(/\)$' \| \
41013          .     : '\(.\)' 2>/dev/null ||
41014 echo X/"$0" |
41015     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41016           /^X\/\(\/\/\)$/{ s//\1/; q; }
41017           /^X\/\(\/\).*/{ s//\1/; q; }
41018           s/.*/./; q'`
41019
41020
41021 # PATH needs CR, and LINENO needs CR and PATH.
41022 # Avoid depending upon Character Ranges.
41023 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41024 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41025 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41026 as_cr_digits='0123456789'
41027 as_cr_alnum=$as_cr_Letters$as_cr_digits
41028
41029 # The user is always right.
41030 if test "${PATH_SEPARATOR+set}" != set; then
41031   echo "#! /bin/sh" >conf$$.sh
41032   echo  "exit 0"   >>conf$$.sh
41033   chmod +x conf$$.sh
41034   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41035     PATH_SEPARATOR=';'
41036   else
41037     PATH_SEPARATOR=:
41038   fi
41039   rm -f conf$$.sh
41040 fi
41041
41042
41043   as_lineno_1=$LINENO
41044   as_lineno_2=$LINENO
41045   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41046   test "x$as_lineno_1" != "x$as_lineno_2" &&
41047   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
41048   # Find who we are.  Look in the path if we contain no path at all
41049   # relative or not.
41050   case $0 in
41051     *[\\/]* ) as_myself=$0 ;;
41052     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41053 for as_dir in $PATH
41054 do
41055   IFS=$as_save_IFS
41056   test -z "$as_dir" && as_dir=.
41057   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41058 done
41059
41060        ;;
41061   esac
41062   # We did not find ourselves, most probably we were run as `sh COMMAND'
41063   # in which case we are not to be found in the path.
41064   if test "x$as_myself" = x; then
41065     as_myself=$0
41066   fi
41067   if test ! -f "$as_myself"; then
41068     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41069 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41070    { (exit 1); exit 1; }; }
41071   fi
41072   case $CONFIG_SHELL in
41073   '')
41074     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41075 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41076 do
41077   IFS=$as_save_IFS
41078   test -z "$as_dir" && as_dir=.
41079   for as_base in sh bash ksh sh5; do
41080          case $as_dir in
41081          /*)
41082            if ("$as_dir/$as_base" -c '
41083   as_lineno_1=$LINENO
41084   as_lineno_2=$LINENO
41085   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41086   test "x$as_lineno_1" != "x$as_lineno_2" &&
41087   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
41088              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41089              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41090              CONFIG_SHELL=$as_dir/$as_base
41091              export CONFIG_SHELL
41092              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41093            fi;;
41094          esac
41095        done
41096 done
41097 ;;
41098   esac
41099
41100   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41101   # uniformly replaced by the line number.  The first 'sed' inserts a
41102   # line-number line before each line; the second 'sed' does the real
41103   # work.  The second script uses 'N' to pair each line-number line
41104   # with the numbered line, and appends trailing '-' during
41105   # substitution so that $LINENO is not a special case at line end.
41106   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41107   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
41108   sed '=' <$as_myself |
41109     sed '
41110       N
41111       s,$,-,
41112       : loop
41113       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41114       t loop
41115       s,-$,,
41116       s,^['$as_cr_digits']*\n,,
41117     ' >$as_me.lineno &&
41118   chmod +x $as_me.lineno ||
41119     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41120 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41121    { (exit 1); exit 1; }; }
41122
41123   # Don't try to exec as it changes $[0], causing all sort of problems
41124   # (the dirname of $[0] is not the place where we might find the
41125   # original and so on.  Autoconf is especially sensible to this).
41126   . ./$as_me.lineno
41127   # Exit status is that of the last command.
41128   exit
41129 }
41130
41131
41132 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41133   *c*,-n*) ECHO_N= ECHO_C='
41134 ' ECHO_T='      ' ;;
41135   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41136   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
41137 esac
41138
41139 if expr a : '\(a\)' >/dev/null 2>&1; then
41140   as_expr=expr
41141 else
41142   as_expr=false
41143 fi
41144
41145 rm -f conf$$ conf$$.exe conf$$.file
41146 echo >conf$$.file
41147 if ln -s conf$$.file conf$$ 2>/dev/null; then
41148   # We could just check for DJGPP; but this test a) works b) is more generic
41149   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41150   if test -f conf$$.exe; then
41151     # Don't use ln at all; we don't have any links
41152     as_ln_s='cp -p'
41153   else
41154     as_ln_s='ln -s'
41155   fi
41156 elif ln conf$$.file conf$$ 2>/dev/null; then
41157   as_ln_s=ln
41158 else
41159   as_ln_s='cp -p'
41160 fi
41161 rm -f conf$$ conf$$.exe conf$$.file
41162
41163 if mkdir -p . 2>/dev/null; then
41164   as_mkdir_p=:
41165 else
41166   as_mkdir_p=false
41167 fi
41168
41169 as_executable_p="test -f"
41170
41171 # Sed expression to map a string onto a valid CPP name.
41172 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
41173
41174 # Sed expression to map a string onto a valid variable name.
41175 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
41176
41177
41178 # IFS
41179 # We need space, tab and new line, in precisely that order.
41180 as_nl='
41181 '
41182 IFS="   $as_nl"
41183
41184 # CDPATH.
41185 $as_unset CDPATH
41186
41187 exec 6>&1
41188
41189 # Open the log real soon, to keep \$[0] and so on meaningful, and to
41190 # report actual input values of CONFIG_FILES etc. instead of their
41191 # values after options handling.  Logging --version etc. is OK.
41192 exec 5>>config.log
41193 {
41194   echo
41195   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41196 ## Running $as_me. ##
41197 _ASBOX
41198 } >&5
41199 cat >&5 <<_CSEOF
41200
41201 This file was extended by GNU coreutils $as_me 4.5.5, which was
41202 generated by GNU Autoconf 2.57.  Invocation command line was
41203
41204   CONFIG_FILES    = $CONFIG_FILES
41205   CONFIG_HEADERS  = $CONFIG_HEADERS
41206   CONFIG_LINKS    = $CONFIG_LINKS
41207   CONFIG_COMMANDS = $CONFIG_COMMANDS
41208   $ $0 $@
41209
41210 _CSEOF
41211 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41212 echo >&5
41213 _ACEOF
41214
41215 # Files that config.status was made for.
41216 if test -n "$ac_config_files"; then
41217   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41218 fi
41219
41220 if test -n "$ac_config_headers"; then
41221   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41222 fi
41223
41224 if test -n "$ac_config_links"; then
41225   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41226 fi
41227
41228 if test -n "$ac_config_commands"; then
41229   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41230 fi
41231
41232 cat >>$CONFIG_STATUS <<\_ACEOF
41233
41234 ac_cs_usage="\
41235 \`$as_me' instantiates files from templates according to the
41236 current configuration.
41237
41238 Usage: $0 [OPTIONS] [FILE]...
41239
41240   -h, --help       print this help, then exit
41241   -V, --version    print version number, then exit
41242   -q, --quiet      do not print progress messages
41243   -d, --debug      don't remove temporary files
41244       --recheck    update $as_me by reconfiguring in the same conditions
41245   --file=FILE[:TEMPLATE]
41246                    instantiate the configuration file FILE
41247   --header=FILE[:TEMPLATE]
41248                    instantiate the configuration header FILE
41249
41250 Configuration files:
41251 $config_files
41252
41253 Configuration headers:
41254 $config_headers
41255
41256 Configuration links:
41257 $config_links
41258
41259 Configuration commands:
41260 $config_commands
41261
41262 Report bugs to <bug-autoconf@gnu.org>."
41263 _ACEOF
41264
41265 cat >>$CONFIG_STATUS <<_ACEOF
41266 ac_cs_version="\\
41267 GNU coreutils config.status 4.5.5
41268 configured by $0, generated by GNU Autoconf 2.57,
41269   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41270
41271 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
41272 Free Software Foundation, Inc.
41273 This config.status script is free software; the Free Software Foundation
41274 gives unlimited permission to copy, distribute and modify it."
41275 srcdir=$srcdir
41276 INSTALL="$INSTALL"
41277 _ACEOF
41278
41279 cat >>$CONFIG_STATUS <<\_ACEOF
41280 # If no file are specified by the user, then we need to provide default
41281 # value.  By we need to know if files were specified by the user.
41282 ac_need_defaults=:
41283 while test $# != 0
41284 do
41285   case $1 in
41286   --*=*)
41287     ac_option=`expr "x$1" : 'x\([^=]*\)='`
41288     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41289     ac_shift=:
41290     ;;
41291   -*)
41292     ac_option=$1
41293     ac_optarg=$2
41294     ac_shift=shift
41295     ;;
41296   *) # This is not an option, so the user has probably given explicit
41297      # arguments.
41298      ac_option=$1
41299      ac_need_defaults=false;;
41300   esac
41301
41302   case $ac_option in
41303   # Handling of the options.
41304 _ACEOF
41305 cat >>$CONFIG_STATUS <<\_ACEOF
41306   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41307     ac_cs_recheck=: ;;
41308   --version | --vers* | -V )
41309     echo "$ac_cs_version"; exit 0 ;;
41310   --he | --h)
41311     # Conflict between --help and --header
41312     { { echo "$as_me:$LINENO: error: ambiguous option: $1
41313 Try \`$0 --help' for more information." >&5
41314 echo "$as_me: error: ambiguous option: $1
41315 Try \`$0 --help' for more information." >&2;}
41316    { (exit 1); exit 1; }; };;
41317   --help | --hel | -h )
41318     echo "$ac_cs_usage"; exit 0 ;;
41319   --debug | --d* | -d )
41320     debug=: ;;
41321   --file | --fil | --fi | --f )
41322     $ac_shift
41323     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41324     ac_need_defaults=false;;
41325   --header | --heade | --head | --hea )
41326     $ac_shift
41327     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41328     ac_need_defaults=false;;
41329   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41330   | -silent | --silent | --silen | --sile | --sil | --si | --s)
41331     ac_cs_silent=: ;;
41332
41333   # This is an error.
41334   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41335 Try \`$0 --help' for more information." >&5
41336 echo "$as_me: error: unrecognized option: $1
41337 Try \`$0 --help' for more information." >&2;}
41338    { (exit 1); exit 1; }; } ;;
41339
41340   *) ac_config_targets="$ac_config_targets $1" ;;
41341
41342   esac
41343   shift
41344 done
41345
41346 ac_configure_extra_args=
41347
41348 if $ac_cs_silent; then
41349   exec 6>/dev/null
41350   ac_configure_extra_args="$ac_configure_extra_args --silent"
41351 fi
41352
41353 _ACEOF
41354 cat >>$CONFIG_STATUS <<_ACEOF
41355 if \$ac_cs_recheck; then
41356   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41357   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41358 fi
41359
41360 _ACEOF
41361
41362 cat >>$CONFIG_STATUS <<_ACEOF
41363 #
41364 # INIT-COMMANDS section.
41365 #
41366
41367 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41368 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
41369     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
41370     # from automake.
41371     eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
41372     # Capture the value of LINGUAS because we need it to compute CATALOGS.
41373     LINGUAS="${LINGUAS-%UNSET%}"
41374
41375
41376 _ACEOF
41377
41378
41379
41380 cat >>$CONFIG_STATUS <<\_ACEOF
41381 for ac_config_target in $ac_config_targets
41382 do
41383   case "$ac_config_target" in
41384   # Handling of arguments.
41385   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41386   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
41387   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
41388   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
41389   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
41390   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
41391   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
41392   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
41393   "tests/basename/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/basename/Makefile" ;;
41394   "tests/chgrp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chgrp/Makefile" ;;
41395   "tests/chmod/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chmod/Makefile" ;;
41396   "tests/chown/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chown/Makefile" ;;
41397   "tests/cp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cp/Makefile" ;;
41398   "tests/cut/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cut/Makefile" ;;
41399   "tests/date/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/date/Makefile" ;;
41400   "tests/dd/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dd/Makefile" ;;
41401   "tests/dircolors/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dircolors/Makefile" ;;
41402   "tests/du/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/du/Makefile" ;;
41403   "tests/expr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/expr/Makefile" ;;
41404   "tests/factor/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/factor/Makefile" ;;
41405   "tests/fmt/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/fmt/Makefile" ;;
41406   "tests/head/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/head/Makefile" ;;
41407   "tests/install/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/install/Makefile" ;;
41408   "tests/join/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/join/Makefile" ;;
41409   "tests/ln/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ln/Makefile" ;;
41410   "tests/ls-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls-2/Makefile" ;;
41411   "tests/ls/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls/Makefile" ;;
41412   "tests/md5sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/md5sum/Makefile" ;;
41413   "tests/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
41414   "tests/mkdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mkdir/Makefile" ;;
41415   "tests/mv/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mv/Makefile" ;;
41416   "tests/od/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/od/Makefile" ;;
41417   "tests/pr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/pr/Makefile" ;;
41418   "tests/rm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rm/Makefile" ;;
41419   "tests/rmdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rmdir/Makefile" ;;
41420   "tests/seq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/seq/Makefile" ;;
41421   "tests/sha1sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sha1sum/Makefile" ;;
41422   "tests/shred/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/shred/Makefile" ;;
41423   "tests/sort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sort/Makefile" ;;
41424   "tests/stty/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/stty/Makefile" ;;
41425   "tests/sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sum/Makefile" ;;
41426   "tests/tac/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tac/Makefile" ;;
41427   "tests/tail-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail-2/Makefile" ;;
41428   "tests/tail/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail/Makefile" ;;
41429   "tests/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test/Makefile" ;;
41430   "tests/touch/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/touch/Makefile" ;;
41431   "tests/tr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tr/Makefile" ;;
41432   "tests/tsort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tsort/Makefile" ;;
41433   "tests/unexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/unexpand/Makefile" ;;
41434   "tests/uniq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/uniq/Makefile" ;;
41435   "tests/wc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/wc/Makefile" ;;
41436   "$ac_config_libobj_dir/fnmatch.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h" ;;
41437   "$ac_config_libobj_dir/ftw.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/ftw.h:$ac_config_libobj_dir/ftw_.h" ;;
41438   "$ac_config_libobj_dir/search.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/search.h:$ac_config_libobj_dir/search_.h" ;;
41439   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41440   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
41441   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
41442   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41443 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41444    { (exit 1); exit 1; }; };;
41445   esac
41446 done
41447
41448 # If the user did not use the arguments to specify the items to instantiate,
41449 # then the envvar interface is used.  Set only those that are not.
41450 # We use the long form for the default assignment because of an extremely
41451 # bizarre bug on SunOS 4.1.3.
41452 if $ac_need_defaults; then
41453   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41454   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41455   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
41456   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41457 fi
41458
41459 # Have a temporary directory for convenience.  Make it in the build tree
41460 # simply because there is no reason to put it here, and in addition,
41461 # creating and moving files from /tmp can sometimes cause problems.
41462 # Create a temporary directory, and hook for its removal unless debugging.
41463 $debug ||
41464 {
41465   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41466   trap '{ (exit 1); exit 1; }' 1 2 13 15
41467 }
41468
41469 # Create a (secure) tmp directory for tmp files.
41470
41471 {
41472   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41473   test -n "$tmp" && test -d "$tmp"
41474 }  ||
41475 {
41476   tmp=./confstat$$-$RANDOM
41477   (umask 077 && mkdir $tmp)
41478 } ||
41479 {
41480    echo "$me: cannot create a temporary directory in ." >&2
41481    { (exit 1); exit 1; }
41482 }
41483
41484 _ACEOF
41485
41486 cat >>$CONFIG_STATUS <<_ACEOF
41487
41488 #
41489 # CONFIG_FILES section.
41490 #
41491
41492 # No need to generate the scripts if there are no CONFIG_FILES.
41493 # This happens for instance when ./config.status config.h
41494 if test -n "\$CONFIG_FILES"; then
41495   # Protect against being on the right side of a sed subst in config.status.
41496   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41497    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41498 s,@SHELL@,$SHELL,;t t
41499 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41500 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41501 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41502 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41503 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41504 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41505 s,@exec_prefix@,$exec_prefix,;t t
41506 s,@prefix@,$prefix,;t t
41507 s,@program_transform_name@,$program_transform_name,;t t
41508 s,@bindir@,$bindir,;t t
41509 s,@sbindir@,$sbindir,;t t
41510 s,@libexecdir@,$libexecdir,;t t
41511 s,@datadir@,$datadir,;t t
41512 s,@sysconfdir@,$sysconfdir,;t t
41513 s,@sharedstatedir@,$sharedstatedir,;t t
41514 s,@localstatedir@,$localstatedir,;t t
41515 s,@libdir@,$libdir,;t t
41516 s,@includedir@,$includedir,;t t
41517 s,@oldincludedir@,$oldincludedir,;t t
41518 s,@infodir@,$infodir,;t t
41519 s,@mandir@,$mandir,;t t
41520 s,@build_alias@,$build_alias,;t t
41521 s,@host_alias@,$host_alias,;t t
41522 s,@target_alias@,$target_alias,;t t
41523 s,@DEFS@,$DEFS,;t t
41524 s,@ECHO_C@,$ECHO_C,;t t
41525 s,@ECHO_N@,$ECHO_N,;t t
41526 s,@ECHO_T@,$ECHO_T,;t t
41527 s,@LIBS@,$LIBS,;t t
41528 s,@build@,$build,;t t
41529 s,@build_cpu@,$build_cpu,;t t
41530 s,@build_vendor@,$build_vendor,;t t
41531 s,@build_os@,$build_os,;t t
41532 s,@host@,$host,;t t
41533 s,@host_cpu@,$host_cpu,;t t
41534 s,@host_vendor@,$host_vendor,;t t
41535 s,@host_os@,$host_os,;t t
41536 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41537 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41538 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41539 s,@CYGPATH_W@,$CYGPATH_W,;t t
41540 s,@PACKAGE@,$PACKAGE,;t t
41541 s,@VERSION@,$VERSION,;t t
41542 s,@ACLOCAL@,$ACLOCAL,;t t
41543 s,@AUTOCONF@,$AUTOCONF,;t t
41544 s,@AUTOMAKE@,$AUTOMAKE,;t t
41545 s,@AUTOHEADER@,$AUTOHEADER,;t t
41546 s,@MAKEINFO@,$MAKEINFO,;t t
41547 s,@AMTAR@,$AMTAR,;t t
41548 s,@install_sh@,$install_sh,;t t
41549 s,@STRIP@,$STRIP,;t t
41550 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41551 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
41552 s,@AWK@,$AWK,;t t
41553 s,@SET_MAKE@,$SET_MAKE,;t t
41554 s,@PERL@,$PERL,;t t
41555 s,@CC@,$CC,;t t
41556 s,@CFLAGS@,$CFLAGS,;t t
41557 s,@LDFLAGS@,$LDFLAGS,;t t
41558 s,@CPPFLAGS@,$CPPFLAGS,;t t
41559 s,@ac_ct_CC@,$ac_ct_CC,;t t
41560 s,@EXEEXT@,$EXEEXT,;t t
41561 s,@OBJEXT@,$OBJEXT,;t t
41562 s,@DEPDIR@,$DEPDIR,;t t
41563 s,@am__include@,$am__include,;t t
41564 s,@am__quote@,$am__quote,;t t
41565 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41566 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41567 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41568 s,@CCDEPMODE@,$CCDEPMODE,;t t
41569 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41570 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41571 s,@CPP@,$CPP,;t t
41572 s,@EGREP@,$EGREP,;t t
41573 s,@RANLIB@,$RANLIB,;t t
41574 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41575 s,@GNU_PACKAGE@,$GNU_PACKAGE,;t t
41576 s,@HELP2MAN@,$HELP2MAN,;t t
41577 s,@OPTIONAL_BIN_PROGS@,$OPTIONAL_BIN_PROGS,;t t
41578 s,@OPTIONAL_BIN_ZCRIPTS@,$OPTIONAL_BIN_ZCRIPTS,;t t
41579 s,@MAN@,$MAN,;t t
41580 s,@DF_PROG@,$DF_PROG,;t t
41581 s,@U@,$U,;t t
41582 s,@ANSI2KNR@,$ANSI2KNR,;t t
41583 s,@LIBOBJS@,$LIBOBJS,;t t
41584 s,@ALLOCA@,$ALLOCA,;t t
41585 s,@YACC@,$YACC,;t t
41586 s,@LIB_NANOSLEEP@,$LIB_NANOSLEEP,;t t
41587 s,@NEED_SETGID@,$NEED_SETGID,;t t
41588 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
41589 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
41590 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
41591 s,@POW_LIB@,$POW_LIB,;t t
41592 s,@SEQ_LIBM@,$SEQ_LIBM,;t t
41593 s,@GLIBC21@,$GLIBC21,;t t
41594 s,@LIBICONV@,$LIBICONV,;t t
41595 s,@LTLIBICONV@,$LTLIBICONV,;t t
41596 s,@SQRT_LIBM@,$SQRT_LIBM,;t t
41597 s,@FESETROUND_LIBM@,$FESETROUND_LIBM,;t t
41598 s,@LIB_CRYPT@,$LIB_CRYPT,;t t
41599 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
41600 s,@MSGFMT@,$MSGFMT,;t t
41601 s,@GMSGFMT@,$GMSGFMT,;t t
41602 s,@XGETTEXT@,$XGETTEXT,;t t
41603 s,@MSGMERGE@,$MSGMERGE,;t t
41604 s,@USE_NLS@,$USE_NLS,;t t
41605 s,@INTLLIBS@,$INTLLIBS,;t t
41606 s,@LIBINTL@,$LIBINTL,;t t
41607 s,@LTLIBINTL@,$LTLIBINTL,;t t
41608 s,@POSUB@,$POSUB,;t t
41609 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41610 CEOF
41611
41612 _ACEOF
41613
41614   cat >>$CONFIG_STATUS <<\_ACEOF
41615   # Split the substitutions into bite-sized pieces for seds with
41616   # small command number limits, like on Digital OSF/1 and HP-UX.
41617   ac_max_sed_lines=48
41618   ac_sed_frag=1 # Number of current file.
41619   ac_beg=1 # First line for current file.
41620   ac_end=$ac_max_sed_lines # Line after last line for current file.
41621   ac_more_lines=:
41622   ac_sed_cmds=
41623   while $ac_more_lines; do
41624     if test $ac_beg -gt 1; then
41625       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41626     else
41627       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41628     fi
41629     if test ! -s $tmp/subs.frag; then
41630       ac_more_lines=false
41631     else
41632       # The purpose of the label and of the branching condition is to
41633       # speed up the sed processing (if there are no `@' at all, there
41634       # is no need to browse any of the substitutions).
41635       # These are the two extra sed commands mentioned above.
41636       (echo ':t
41637   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41638       if test -z "$ac_sed_cmds"; then
41639         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41640       else
41641         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41642       fi
41643       ac_sed_frag=`expr $ac_sed_frag + 1`
41644       ac_beg=$ac_end
41645       ac_end=`expr $ac_end + $ac_max_sed_lines`
41646     fi
41647   done
41648   if test -z "$ac_sed_cmds"; then
41649     ac_sed_cmds=cat
41650   fi
41651 fi # test -n "$CONFIG_FILES"
41652
41653 _ACEOF
41654 cat >>$CONFIG_STATUS <<\_ACEOF
41655 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41656   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41657   case $ac_file in
41658   - | *:- | *:-:* ) # input from stdin
41659         cat >$tmp/stdin
41660         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41661         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41662   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41663         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41664   * )   ac_file_in=$ac_file.in ;;
41665   esac
41666
41667   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41668   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41669 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41670          X"$ac_file" : 'X\(//\)[^/]' \| \
41671          X"$ac_file" : 'X\(//\)$' \| \
41672          X"$ac_file" : 'X\(/\)' \| \
41673          .     : '\(.\)' 2>/dev/null ||
41674 echo X"$ac_file" |
41675     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41676           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41677           /^X\(\/\/\)$/{ s//\1/; q; }
41678           /^X\(\/\).*/{ s//\1/; q; }
41679           s/.*/./; q'`
41680   { if $as_mkdir_p; then
41681     mkdir -p "$ac_dir"
41682   else
41683     as_dir="$ac_dir"
41684     as_dirs=
41685     while test ! -d "$as_dir"; do
41686       as_dirs="$as_dir $as_dirs"
41687       as_dir=`(dirname "$as_dir") 2>/dev/null ||
41688 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41689          X"$as_dir" : 'X\(//\)[^/]' \| \
41690          X"$as_dir" : 'X\(//\)$' \| \
41691          X"$as_dir" : 'X\(/\)' \| \
41692          .     : '\(.\)' 2>/dev/null ||
41693 echo X"$as_dir" |
41694     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41695           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41696           /^X\(\/\/\)$/{ s//\1/; q; }
41697           /^X\(\/\).*/{ s//\1/; q; }
41698           s/.*/./; q'`
41699     done
41700     test ! -n "$as_dirs" || mkdir $as_dirs
41701   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41702 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41703    { (exit 1); exit 1; }; }; }
41704
41705   ac_builddir=.
41706
41707 if test "$ac_dir" != .; then
41708   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41709   # A "../" for each directory in $ac_dir_suffix.
41710   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41711 else
41712   ac_dir_suffix= ac_top_builddir=
41713 fi
41714
41715 case $srcdir in
41716   .)  # No --srcdir option.  We are building in place.
41717     ac_srcdir=.
41718     if test -z "$ac_top_builddir"; then
41719        ac_top_srcdir=.
41720     else
41721        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41722     fi ;;
41723   [\\/]* | ?:[\\/]* )  # Absolute path.
41724     ac_srcdir=$srcdir$ac_dir_suffix;
41725     ac_top_srcdir=$srcdir ;;
41726   *) # Relative path.
41727     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41728     ac_top_srcdir=$ac_top_builddir$srcdir ;;
41729 esac
41730 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
41731 # absolute.
41732 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
41733 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
41734 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
41735 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
41736
41737
41738   case $INSTALL in
41739   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41740   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41741   esac
41742
41743   if test x"$ac_file" != x-; then
41744     { echo "$as_me:$LINENO: creating $ac_file" >&5
41745 echo "$as_me: creating $ac_file" >&6;}
41746     rm -f "$ac_file"
41747   fi
41748   # Let's still pretend it is `configure' which instantiates (i.e., don't
41749   # use $as_me), people would be surprised to read:
41750   #    /* config.h.  Generated by config.status.  */
41751   if test x"$ac_file" = x-; then
41752     configure_input=
41753   else
41754     configure_input="$ac_file.  "
41755   fi
41756   configure_input=$configure_input"Generated from `echo $ac_file_in |
41757                                      sed 's,.*/,,'` by configure."
41758
41759   # First look for the input files in the build tree, otherwise in the
41760   # src tree.
41761   ac_file_inputs=`IFS=:
41762     for f in $ac_file_in; do
41763       case $f in
41764       -) echo $tmp/stdin ;;
41765       [\\/$]*)
41766          # Absolute (can't be DOS-style, as IFS=:)
41767          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41768 echo "$as_me: error: cannot find input file: $f" >&2;}
41769    { (exit 1); exit 1; }; }
41770          echo $f;;
41771       *) # Relative
41772          if test -f "$f"; then
41773            # Build tree
41774            echo $f
41775          elif test -f "$srcdir/$f"; then
41776            # Source tree
41777            echo $srcdir/$f
41778          else
41779            # /dev/null tree
41780            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41781 echo "$as_me: error: cannot find input file: $f" >&2;}
41782    { (exit 1); exit 1; }; }
41783          fi;;
41784       esac
41785     done` || { (exit 1); exit 1; }
41786 _ACEOF
41787 cat >>$CONFIG_STATUS <<_ACEOF
41788   sed "$ac_vpsub
41789 $extrasub
41790 _ACEOF
41791 cat >>$CONFIG_STATUS <<\_ACEOF
41792 :t
41793 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41794 s,@configure_input@,$configure_input,;t t
41795 s,@srcdir@,$ac_srcdir,;t t
41796 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41797 s,@top_srcdir@,$ac_top_srcdir,;t t
41798 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41799 s,@builddir@,$ac_builddir,;t t
41800 s,@abs_builddir@,$ac_abs_builddir,;t t
41801 s,@top_builddir@,$ac_top_builddir,;t t
41802 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41803 s,@INSTALL@,$ac_INSTALL,;t t
41804 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41805   rm -f $tmp/stdin
41806   if test x"$ac_file" != x-; then
41807     mv $tmp/out $ac_file
41808   else
41809     cat $tmp/out
41810     rm -f $tmp/out
41811   fi
41812
41813 done
41814 _ACEOF
41815 cat >>$CONFIG_STATUS <<\_ACEOF
41816
41817 #
41818 # CONFIG_HEADER section.
41819 #
41820
41821 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41822 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41823 #
41824 # ac_d sets the value in "#define NAME VALUE" lines.
41825 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
41826 ac_dB='[        ].*$,\1#\2'
41827 ac_dC=' '
41828 ac_dD=',;t'
41829 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41830 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
41831 ac_uB='$,\1#\2define\3'
41832 ac_uC=' '
41833 ac_uD=',;t'
41834
41835 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41836   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41837   case $ac_file in
41838   - | *:- | *:-:* ) # input from stdin
41839         cat >$tmp/stdin
41840         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41841         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41842   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41843         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41844   * )   ac_file_in=$ac_file.in ;;
41845   esac
41846
41847   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41848 echo "$as_me: creating $ac_file" >&6;}
41849
41850   # First look for the input files in the build tree, otherwise in the
41851   # src tree.
41852   ac_file_inputs=`IFS=:
41853     for f in $ac_file_in; do
41854       case $f in
41855       -) echo $tmp/stdin ;;
41856       [\\/$]*)
41857          # Absolute (can't be DOS-style, as IFS=:)
41858          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41859 echo "$as_me: error: cannot find input file: $f" >&2;}
41860    { (exit 1); exit 1; }; }
41861          echo $f;;
41862       *) # Relative
41863          if test -f "$f"; then
41864            # Build tree
41865            echo $f
41866          elif test -f "$srcdir/$f"; then
41867            # Source tree
41868            echo $srcdir/$f
41869          else
41870            # /dev/null tree
41871            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41872 echo "$as_me: error: cannot find input file: $f" >&2;}
41873    { (exit 1); exit 1; }; }
41874          fi;;
41875       esac
41876     done` || { (exit 1); exit 1; }
41877   # Remove the trailing spaces.
41878   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
41879
41880 _ACEOF
41881
41882 # Transform confdefs.h into two sed scripts, `conftest.defines' and
41883 # `conftest.undefs', that substitutes the proper values into
41884 # config.h.in to produce config.h.  The first handles `#define'
41885 # templates, and the second `#undef' templates.
41886 # And first: Protect against being on the right side of a sed subst in
41887 # config.status.  Protect against being in an unquoted here document
41888 # in config.status.
41889 rm -f conftest.defines conftest.undefs
41890 # Using a here document instead of a string reduces the quoting nightmare.
41891 # Putting comments in sed scripts is not portable.
41892 #
41893 # `end' is used to avoid that the second main sed command (meant for
41894 # 0-ary CPP macros) applies to n-ary macro definitions.
41895 # See the Autoconf documentation for `clear'.
41896 cat >confdef2sed.sed <<\_ACEOF
41897 s/[\\&,]/\\&/g
41898 s,[\\$`],\\&,g
41899 t clear
41900 : clear
41901 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41902 t end
41903 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41904 : end
41905 _ACEOF
41906 # If some macros were called several times there might be several times
41907 # the same #defines, which is useless.  Nevertheless, we may not want to
41908 # sort them, since we want the *last* AC-DEFINE to be honored.
41909 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41910 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41911 rm -f confdef2sed.sed
41912
41913 # This sed command replaces #undef with comments.  This is necessary, for
41914 # example, in the case of _POSIX_SOURCE, which is predefined and required
41915 # on some systems where configure will not decide to define it.
41916 cat >>conftest.undefs <<\_ACEOF
41917 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41918 _ACEOF
41919
41920 # Break up conftest.defines because some shells have a limit on the size
41921 # of here documents, and old seds have small limits too (100 cmds).
41922 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41923 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41924 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41925 echo '  :' >>$CONFIG_STATUS
41926 rm -f conftest.tail
41927 while grep . conftest.defines >/dev/null
41928 do
41929   # Write a limited-size here document to $tmp/defines.sed.
41930   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41931   # Speed up: don't consider the non `#define' lines.
41932   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
41933   # Work around the forget-to-reset-the-flag bug.
41934   echo 't clr' >>$CONFIG_STATUS
41935   echo ': clr' >>$CONFIG_STATUS
41936   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41937   echo 'CEOF
41938   sed -f $tmp/defines.sed $tmp/in >$tmp/out
41939   rm -f $tmp/in
41940   mv $tmp/out $tmp/in
41941 ' >>$CONFIG_STATUS
41942   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41943   rm -f conftest.defines
41944   mv conftest.tail conftest.defines
41945 done
41946 rm -f conftest.defines
41947 echo '  fi # grep' >>$CONFIG_STATUS
41948 echo >>$CONFIG_STATUS
41949
41950 # Break up conftest.undefs because some shells have a limit on the size
41951 # of here documents, and old seds have small limits too (100 cmds).
41952 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
41953 rm -f conftest.tail
41954 while grep . conftest.undefs >/dev/null
41955 do
41956   # Write a limited-size here document to $tmp/undefs.sed.
41957   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41958   # Speed up: don't consider the non `#undef'
41959   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
41960   # Work around the forget-to-reset-the-flag bug.
41961   echo 't clr' >>$CONFIG_STATUS
41962   echo ': clr' >>$CONFIG_STATUS
41963   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
41964   echo 'CEOF
41965   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
41966   rm -f $tmp/in
41967   mv $tmp/out $tmp/in
41968 ' >>$CONFIG_STATUS
41969   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
41970   rm -f conftest.undefs
41971   mv conftest.tail conftest.undefs
41972 done
41973 rm -f conftest.undefs
41974
41975 cat >>$CONFIG_STATUS <<\_ACEOF
41976   # Let's still pretend it is `configure' which instantiates (i.e., don't
41977   # use $as_me), people would be surprised to read:
41978   #    /* config.h.  Generated by config.status.  */
41979   if test x"$ac_file" = x-; then
41980     echo "/* Generated by configure.  */" >$tmp/config.h
41981   else
41982     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
41983   fi
41984   cat $tmp/in >>$tmp/config.h
41985   rm -f $tmp/in
41986   if test x"$ac_file" != x-; then
41987     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
41988       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41989 echo "$as_me: $ac_file is unchanged" >&6;}
41990     else
41991       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41992 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41993          X"$ac_file" : 'X\(//\)[^/]' \| \
41994          X"$ac_file" : 'X\(//\)$' \| \
41995          X"$ac_file" : 'X\(/\)' \| \
41996          .     : '\(.\)' 2>/dev/null ||
41997 echo X"$ac_file" |
41998     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41999           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42000           /^X\(\/\/\)$/{ s//\1/; q; }
42001           /^X\(\/\).*/{ s//\1/; q; }
42002           s/.*/./; q'`
42003       { if $as_mkdir_p; then
42004     mkdir -p "$ac_dir"
42005   else
42006     as_dir="$ac_dir"
42007     as_dirs=
42008     while test ! -d "$as_dir"; do
42009       as_dirs="$as_dir $as_dirs"
42010       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42011 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42012          X"$as_dir" : 'X\(//\)[^/]' \| \
42013          X"$as_dir" : 'X\(//\)$' \| \
42014          X"$as_dir" : 'X\(/\)' \| \
42015          .     : '\(.\)' 2>/dev/null ||
42016 echo X"$as_dir" |
42017     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42018           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42019           /^X\(\/\/\)$/{ s//\1/; q; }
42020           /^X\(\/\).*/{ s//\1/; q; }
42021           s/.*/./; q'`
42022     done
42023     test ! -n "$as_dirs" || mkdir $as_dirs
42024   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42025 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42026    { (exit 1); exit 1; }; }; }
42027
42028       rm -f $ac_file
42029       mv $tmp/config.h $ac_file
42030     fi
42031   else
42032     cat $tmp/config.h
42033     rm -f $tmp/config.h
42034   fi
42035 _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
42036 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
42037 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42038          X$ac_file : 'X\(//\)[^/]' \| \
42039          X$ac_file : 'X\(//\)$' \| \
42040          X$ac_file : 'X\(/\)' \| \
42041          .     : '\(.\)' 2>/dev/null ||
42042 echo X$ac_file |
42043     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42044           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42045           /^X\(\/\/\)$/{ s//\1/; q; }
42046           /^X\(\/\).*/{ s//\1/; q; }
42047           s/.*/./; q'`/stamp-h$_am_stamp_count
42048 done
42049 _ACEOF
42050 cat >>$CONFIG_STATUS <<\_ACEOF
42051
42052 #
42053 # CONFIG_LINKS section.
42054 #
42055
42056 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
42057   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42058   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42059
42060   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
42061 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
42062
42063   if test ! -r $srcdir/$ac_source; then
42064     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
42065 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
42066    { (exit 1); exit 1; }; }
42067   fi
42068   rm -f $ac_dest
42069
42070   # Make relative symlinks.
42071   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
42072 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42073          X"$ac_dest" : 'X\(//\)[^/]' \| \
42074          X"$ac_dest" : 'X\(//\)$' \| \
42075          X"$ac_dest" : 'X\(/\)' \| \
42076          .     : '\(.\)' 2>/dev/null ||
42077 echo X"$ac_dest" |
42078     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42079           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42080           /^X\(\/\/\)$/{ s//\1/; q; }
42081           /^X\(\/\).*/{ s//\1/; q; }
42082           s/.*/./; q'`
42083   { if $as_mkdir_p; then
42084     mkdir -p "$ac_dest_dir"
42085   else
42086     as_dir="$ac_dest_dir"
42087     as_dirs=
42088     while test ! -d "$as_dir"; do
42089       as_dirs="$as_dir $as_dirs"
42090       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42091 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42092          X"$as_dir" : 'X\(//\)[^/]' \| \
42093          X"$as_dir" : 'X\(//\)$' \| \
42094          X"$as_dir" : 'X\(/\)' \| \
42095          .     : '\(.\)' 2>/dev/null ||
42096 echo X"$as_dir" |
42097     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42098           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42099           /^X\(\/\/\)$/{ s//\1/; q; }
42100           /^X\(\/\).*/{ s//\1/; q; }
42101           s/.*/./; q'`
42102     done
42103     test ! -n "$as_dirs" || mkdir $as_dirs
42104   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
42105 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
42106    { (exit 1); exit 1; }; }; }
42107
42108   ac_builddir=.
42109
42110 if test "$ac_dest_dir" != .; then
42111   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
42112   # A "../" for each directory in $ac_dir_suffix.
42113   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42114 else
42115   ac_dir_suffix= ac_top_builddir=
42116 fi
42117
42118 case $srcdir in
42119   .)  # No --srcdir option.  We are building in place.
42120     ac_srcdir=.
42121     if test -z "$ac_top_builddir"; then
42122        ac_top_srcdir=.
42123     else
42124        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42125     fi ;;
42126   [\\/]* | ?:[\\/]* )  # Absolute path.
42127     ac_srcdir=$srcdir$ac_dir_suffix;
42128     ac_top_srcdir=$srcdir ;;
42129   *) # Relative path.
42130     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42131     ac_top_srcdir=$ac_top_builddir$srcdir ;;
42132 esac
42133 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
42134 # absolute.
42135 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
42136 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
42137 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
42138 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
42139
42140
42141   case $srcdir in
42142   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
42143       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
42144   esac
42145
42146   # Try a symlink, then a hard link, then a copy.
42147   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
42148     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
42149     cp -p $srcdir/$ac_source $ac_dest ||
42150     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
42151 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
42152    { (exit 1); exit 1; }; }
42153 done
42154 _ACEOF
42155 cat >>$CONFIG_STATUS <<\_ACEOF
42156
42157 #
42158 # CONFIG_COMMANDS section.
42159 #
42160 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42161   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42162   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42163   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42164 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42165          X"$ac_dest" : 'X\(//\)[^/]' \| \
42166          X"$ac_dest" : 'X\(//\)$' \| \
42167          X"$ac_dest" : 'X\(/\)' \| \
42168          .     : '\(.\)' 2>/dev/null ||
42169 echo X"$ac_dest" |
42170     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42171           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42172           /^X\(\/\/\)$/{ s//\1/; q; }
42173           /^X\(\/\).*/{ s//\1/; q; }
42174           s/.*/./; q'`
42175   ac_builddir=.
42176
42177 if test "$ac_dir" != .; then
42178   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42179   # A "../" for each directory in $ac_dir_suffix.
42180   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42181 else
42182   ac_dir_suffix= ac_top_builddir=
42183 fi
42184
42185 case $srcdir in
42186   .)  # No --srcdir option.  We are building in place.
42187     ac_srcdir=.
42188     if test -z "$ac_top_builddir"; then
42189        ac_top_srcdir=.
42190     else
42191        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42192     fi ;;
42193   [\\/]* | ?:[\\/]* )  # Absolute path.
42194     ac_srcdir=$srcdir$ac_dir_suffix;
42195     ac_top_srcdir=$srcdir ;;
42196   *) # Relative path.
42197     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42198     ac_top_srcdir=$ac_top_builddir$srcdir ;;
42199 esac
42200 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
42201 # absolute.
42202 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
42203 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
42204 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
42205 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
42206
42207
42208   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42209 echo "$as_me: executing $ac_dest commands" >&6;}
42210   case $ac_dest in
42211     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
42212   # Strip MF so we end up with the name of the file.
42213   mf=`echo "$mf" | sed -e 's/:.*$//'`
42214   # Check whether this is an Automake generated Makefile or not.
42215   # We used to match only the files named `Makefile.in', but
42216   # some people rename them; so instead we look at the file content.
42217   # Grep'ing the first line is not enough: some people post-process
42218   # each Makefile.in and add a new line on top of each file to say so.
42219   # So let's grep whole file.
42220   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
42221     dirpart=`(dirname "$mf") 2>/dev/null ||
42222 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42223          X"$mf" : 'X\(//\)[^/]' \| \
42224          X"$mf" : 'X\(//\)$' \| \
42225          X"$mf" : 'X\(/\)' \| \
42226          .     : '\(.\)' 2>/dev/null ||
42227 echo X"$mf" |
42228     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42229           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42230           /^X\(\/\/\)$/{ s//\1/; q; }
42231           /^X\(\/\).*/{ s//\1/; q; }
42232           s/.*/./; q'`
42233   else
42234     continue
42235   fi
42236   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
42237   # Extract the definition of DEP_FILES from the Makefile without
42238   # running `make'.
42239   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
42240   test -z "$DEPDIR" && continue
42241   # When using ansi2knr, U may be empty or an underscore; expand it
42242   U=`sed -n -e '/^U = / s///p' < "$mf"`
42243   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
42244   # We invoke sed twice because it is the simplest approach to
42245   # changing $(DEPDIR) to its actual value in the expansion.
42246   for file in `sed -n -e '
42247     /^DEP_FILES = .*\\\\$/ {
42248       s/^DEP_FILES = //
42249       :loop
42250         s/\\\\$//
42251         p
42252         n
42253         /\\\\$/ b loop
42254       p
42255     }
42256     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
42257        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42258     # Make sure the directory exists.
42259     test -f "$dirpart/$file" && continue
42260     fdir=`(dirname "$file") 2>/dev/null ||
42261 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42262          X"$file" : 'X\(//\)[^/]' \| \
42263          X"$file" : 'X\(//\)$' \| \
42264          X"$file" : 'X\(/\)' \| \
42265          .     : '\(.\)' 2>/dev/null ||
42266 echo X"$file" |
42267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42268           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42269           /^X\(\/\/\)$/{ s//\1/; q; }
42270           /^X\(\/\).*/{ s//\1/; q; }
42271           s/.*/./; q'`
42272     { if $as_mkdir_p; then
42273     mkdir -p $dirpart/$fdir
42274   else
42275     as_dir=$dirpart/$fdir
42276     as_dirs=
42277     while test ! -d "$as_dir"; do
42278       as_dirs="$as_dir $as_dirs"
42279       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42280 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42281          X"$as_dir" : 'X\(//\)[^/]' \| \
42282          X"$as_dir" : 'X\(//\)$' \| \
42283          X"$as_dir" : 'X\(/\)' \| \
42284          .     : '\(.\)' 2>/dev/null ||
42285 echo X"$as_dir" |
42286     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42287           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42288           /^X\(\/\/\)$/{ s//\1/; q; }
42289           /^X\(\/\).*/{ s//\1/; q; }
42290           s/.*/./; q'`
42291     done
42292     test ! -n "$as_dirs" || mkdir $as_dirs
42293   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
42294 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
42295    { (exit 1); exit 1; }; }; }
42296
42297     # echo "creating $dirpart/$file"
42298     echo '# dummy' > "$dirpart/$file"
42299   done
42300 done
42301  ;;
42302     default-1 )
42303     for ac_file in $CONFIG_FILES; do
42304       # Support "outfile[:infile[:infile...]]"
42305       case "$ac_file" in
42306         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
42307       esac
42308       # PO directories have a Makefile.in generated from Makefile.in.in.
42309       case "$ac_file" in */Makefile.in)
42310         # Adjust a relative srcdir.
42311         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
42312         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
42313         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
42314         # In autoconf-2.13 it is called $ac_given_srcdir.
42315         # In autoconf-2.50 it is called $srcdir.
42316         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
42317         case "$ac_given_srcdir" in
42318           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
42319           /*) top_srcdir="$ac_given_srcdir" ;;
42320           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
42321         esac
42322         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
42323           rm -f "$ac_dir/POTFILES"
42324           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
42325           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
42326           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
42327           # on $ac_dir but don't depend on user-specified configuration
42328           # parameters.
42329           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
42330             # The LINGUAS file contains the set of available languages.
42331             if test -n "$ALL_LINGUAS"; then
42332               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
42333             fi
42334             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
42335             # Hide the ALL_LINGUAS assigment from automake.
42336             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
42337           fi
42338           case "$ac_given_srcdir" in
42339             .) srcdirpre= ;;
42340             *) srcdirpre='$(srcdir)/' ;;
42341           esac
42342           POFILES=
42343           GMOFILES=
42344           UPDATEPOFILES=
42345           DUMMYPOFILES=
42346           for lang in $ALL_LINGUAS; do
42347             POFILES="$POFILES $srcdirpre$lang.po"
42348             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
42349             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
42350             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
42351           done
42352           # CATALOGS depends on both $ac_dir and the user's LINGUAS
42353           # environment variable.
42354           INST_LINGUAS=
42355           if test -n "$ALL_LINGUAS"; then
42356             for presentlang in $ALL_LINGUAS; do
42357               useit=no
42358               if test "%UNSET%" != "$LINGUAS"; then
42359                 desiredlanguages="$LINGUAS"
42360               else
42361                 desiredlanguages="$ALL_LINGUAS"
42362               fi
42363               for desiredlang in $desiredlanguages; do
42364                 # Use the presentlang catalog if desiredlang is
42365                 #   a. equal to presentlang, or
42366                 #   b. a variant of presentlang (because in this case,
42367                 #      presentlang can be used as a fallback for messages
42368                 #      which are not translated in the desiredlang catalog).
42369                 case "$desiredlang" in
42370                   "$presentlang"*) useit=yes;;
42371                 esac
42372               done
42373               if test $useit = yes; then
42374                 INST_LINGUAS="$INST_LINGUAS $presentlang"
42375               fi
42376             done
42377           fi
42378           CATALOGS=
42379           if test -n "$INST_LINGUAS"; then
42380             for lang in $INST_LINGUAS; do
42381               CATALOGS="$CATALOGS $lang.gmo"
42382             done
42383           fi
42384           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
42385           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
42386           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
42387             if test -f "$f"; then
42388               case "$f" in
42389                 *.orig | *.bak | *~) ;;
42390                 *) cat "$f" >> "$ac_dir/Makefile" ;;
42391               esac
42392             fi
42393           done
42394         fi
42395         ;;
42396       esac
42397     done ;;
42398   esac
42399 done
42400 _ACEOF
42401
42402 cat >>$CONFIG_STATUS <<\_ACEOF
42403
42404 { (exit 0); exit 0; }
42405 _ACEOF
42406 chmod +x $CONFIG_STATUS
42407 ac_clean_files=$ac_clean_files_save
42408
42409
42410 # configure is writing to config.log, and then calls config.status.
42411 # config.status does its own redirection, appending to config.log.
42412 # Unfortunately, on DOS this fails, as config.log is still kept open
42413 # by configure, so config.status won't be able to write to it; its
42414 # output is simply discarded.  So we exec the FD to /dev/null,
42415 # effectively closing config.log, so it can be properly (re)opened and
42416 # appended to by config.status.  When coming back to configure, we
42417 # need to make the FD available again.
42418 if test "$no_create" != yes; then
42419   ac_cs_success=:
42420   ac_config_status_args=
42421   test "$silent" = yes &&
42422     ac_config_status_args="$ac_config_status_args --quiet"
42423   exec 5>/dev/null
42424   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42425   exec 5>>config.log
42426   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42427   # would make configure fail if this is the last instruction.
42428   $ac_cs_success || { (exit 1); exit 1; }
42429 fi
42430