Also check for the log_user method, to avoid
[coreutils.git] / configure
blob471432a3d570962bdfcdd5f0b681b5088160cea6
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.9.
5 # Report bugs to <bug-coreutils@gnu.org>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 as_mkdir_p=false
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
239 IFS=" $as_nl"
241 # CDPATH.
242 $as_unset CDPATH
245 # Name of the host.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250 exec 6>&1
253 # Initializations.
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 # Identity of this package.
269 PACKAGE_NAME='GNU coreutils'
270 PACKAGE_TARNAME='coreutils'
271 PACKAGE_VERSION='4.5.9'
272 PACKAGE_STRING='GNU coreutils 4.5.9'
273 PACKAGE_BUGREPORT='bug-coreutils@gnu.org'
275 ac_unique_file="src/ls.c"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 ac_config_libobj_dir=lib
314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot PERL CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP RANLIB ac_ct_RANLIB GNU_PACKAGE HELP2MAN OPTIONAL_BIN_PROGS OPTIONAL_BIN_ZCRIPTS MAN DF_PROG U ANSI2KNR LIBOBJS ALLOCA YACC LIB_NANOSLEEP NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS LIB_CLOCK_GETTIME POW_LIB SEQ_LIBM GLIBC21 LIBICONV LTLIBICONV SQRT_LIBM FESETROUND_LIBM LIB_CRYPT MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE USE_NLS INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS'
315 ac_subst_files=''
317 # Initialize some variables set by options.
318 ac_init_help=
319 ac_init_version=false
320 # The variables have the same names as the options, with
321 # dashes changed to underlines.
322 cache_file=/dev/null
323 exec_prefix=NONE
324 no_create=
325 no_recursion=
326 prefix=NONE
327 program_prefix=NONE
328 program_suffix=NONE
329 program_transform_name=s,x,x,
330 silent=
331 site=
332 srcdir=
333 verbose=
334 x_includes=NONE
335 x_libraries=NONE
337 # Installation directory options.
338 # These are left unexpanded so users can "make install exec_prefix=/foo"
339 # and all the variables that are supposed to be based on exec_prefix
340 # by default will actually change.
341 # Use braces instead of parens because sh, perl, etc. also accept them.
342 bindir='${exec_prefix}/bin'
343 sbindir='${exec_prefix}/sbin'
344 libexecdir='${exec_prefix}/libexec'
345 datadir='${prefix}/share'
346 sysconfdir='${prefix}/etc'
347 sharedstatedir='${prefix}/com'
348 localstatedir='${prefix}/var'
349 libdir='${exec_prefix}/lib'
350 includedir='${prefix}/include'
351 oldincludedir='/usr/include'
352 infodir='${prefix}/info'
353 mandir='${prefix}/man'
355 ac_prev=
356 for ac_option
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367 # Accept the important Cygnus configure options, so we can diagnose typos.
369 case $ac_option in
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 bindir=$ac_optarg ;;
376 -build | --build | --buil | --bui | --bu)
377 ac_prev=build_alias ;;
378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379 build_alias=$ac_optarg ;;
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386 cache_file=$ac_optarg ;;
388 --config-cache | -C)
389 cache_file=config.cache ;;
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
395 datadir=$ac_optarg ;;
397 -disable-* | --disable-*)
398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399 # Reject names that are not valid shell variable names.
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
406 -enable-* | --enable-*)
407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408 # Reject names that are not valid shell variable names.
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 *) ac_optarg=yes ;;
416 esac
417 eval "enable_$ac_feature='$ac_optarg'" ;;
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
426 exec_prefix=$ac_optarg ;;
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
439 -host | --host | --hos | --ho)
440 ac_prev=host_alias ;;
441 -host=* | --host=* | --hos=* | --ho=*)
442 host_alias=$ac_optarg ;;
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
449 includedir=$ac_optarg ;;
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454 infodir=$ac_optarg ;;
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 libdir=$ac_optarg ;;
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
466 libexecdir=$ac_optarg ;;
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475 localstatedir=$ac_optarg ;;
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 mandir=$ac_optarg ;;
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487 | --no-cr | --no-c | -n)
488 no_create=yes ;;
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501 oldincludedir=$ac_optarg ;;
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 prefix=$ac_optarg ;;
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513 program_prefix=$ac_optarg ;;
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520 program_suffix=$ac_optarg ;;
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
537 program_transform_name=$ac_optarg ;;
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
547 sbindir=$ac_optarg ;;
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
558 sharedstatedir=$ac_optarg ;;
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
563 site=$ac_optarg ;;
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 srcdir=$ac_optarg ;;
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575 sysconfdir=$ac_optarg ;;
577 -target | --target | --targe | --targ | --tar | --ta | --t)
578 ac_prev=target_alias ;;
579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580 target_alias=$ac_optarg ;;
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
588 -with-* | --with-*)
589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590 # Reject names that are not valid shell variable names.
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
594 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 *) ac_optarg=yes ;;
598 esac
599 eval "with_$ac_package='$ac_optarg'" ;;
601 -without-* | --without-*)
602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603 # Reject names that are not valid shell variable names.
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619 x_includes=$ac_optarg ;;
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626 x_libraries=$ac_optarg ;;
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629 Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 esac
652 done
654 if test -n "$ac_prev"; then
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
660 # Be sure to have absolute paths.
661 for ac_var in exec_prefix prefix
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667 { (exit 1); exit 1; }; };;
668 esac
669 done
671 # Be sure to have absolute paths.
672 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679 { (exit 1); exit 1; }; };;
680 esac
681 done
683 # There might be people who depend on the old broken behavior: `$host'
684 # used to hold the argument of --host etc.
685 # FIXME: To remove some day.
686 build=$build_alias
687 host=$host_alias
688 target=$target_alias
690 # FIXME: To remove some day.
691 if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
701 ac_tool_prefix=
702 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704 test "$silent" = yes && exec 6>/dev/null
707 # Find the source files, if location was not specified.
708 if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717 echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
727 else
728 ac_srcdir_defaulted=no
730 if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733 { (exit 1); exit 1; }; }
734 else
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736 { (exit 1); exit 1; }; }
739 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
742 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743 ac_env_build_alias_set=${build_alias+set}
744 ac_env_build_alias_value=$build_alias
745 ac_cv_env_build_alias_set=${build_alias+set}
746 ac_cv_env_build_alias_value=$build_alias
747 ac_env_host_alias_set=${host_alias+set}
748 ac_env_host_alias_value=$host_alias
749 ac_cv_env_host_alias_set=${host_alias+set}
750 ac_cv_env_host_alias_value=$host_alias
751 ac_env_target_alias_set=${target_alias+set}
752 ac_env_target_alias_value=$target_alias
753 ac_cv_env_target_alias_set=${target_alias+set}
754 ac_cv_env_target_alias_value=$target_alias
755 ac_env_CC_set=${CC+set}
756 ac_env_CC_value=$CC
757 ac_cv_env_CC_set=${CC+set}
758 ac_cv_env_CC_value=$CC
759 ac_env_CFLAGS_set=${CFLAGS+set}
760 ac_env_CFLAGS_value=$CFLAGS
761 ac_cv_env_CFLAGS_set=${CFLAGS+set}
762 ac_cv_env_CFLAGS_value=$CFLAGS
763 ac_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_env_LDFLAGS_value=$LDFLAGS
765 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_cv_env_LDFLAGS_value=$LDFLAGS
767 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_env_CPPFLAGS_value=$CPPFLAGS
769 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771 ac_env_CPP_set=${CPP+set}
772 ac_env_CPP_value=$CPP
773 ac_cv_env_CPP_set=${CPP+set}
774 ac_cv_env_CPP_value=$CPP
777 # Report the --help message.
779 if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
782 cat <<_ACEOF
783 \`configure' configures GNU coreutils 4.5.9 to adapt to many kinds of systems.
785 Usage: $0 [OPTION]... [VAR=VALUE]...
787 To assign environment variables (e.g., CC, CFLAGS...), specify them as
788 VAR=VALUE. See below for descriptions of some of the useful variables.
790 Defaults for the options are specified in brackets.
792 Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 _ACEOF
805 cat <<_ACEOF
806 Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
812 By default, \`make install' will install all the files in
813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815 for instance \`--prefix=\$HOME'.
817 For better control, use the options below.
819 Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
832 _ACEOF
834 cat <<\_ACEOF
836 Program names:
837 --program-prefix=PREFIX prepend PREFIX to installed program names
838 --program-suffix=SUFFIX append SUFFIX to installed program names
839 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
841 System types:
842 --build=BUILD configure for building on BUILD [guessed]
843 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844 _ACEOF
847 if test -n "$ac_init_help"; then
848 case $ac_init_help in
849 short | recursive ) echo "Configuration of GNU coreutils 4.5.9:";;
850 esac
851 cat <<\_ACEOF
853 Optional Features:
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --disable-dependency-tracking Speeds up one-time builds
857 --enable-dependency-tracking Do not reject slow dependency extractors
858 --disable-largefile omit support for large files
859 --disable-assert turn off assertions
860 --disable-rpath do not hardcode runtime library paths
861 --disable-nls do not use Native Language Support
863 Optional Packages:
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --without-included-regex don't compile regex; this is the default on
867 systems with version 2 of the GNU C library
868 (use with caution on other system)
869 --with-gnu-ld assume the C compiler uses GNU ld default=no
870 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
871 --without-libiconv-prefix don't search for libiconv in includedir and libdir
872 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
873 --without-libintl-prefix don't search for libintl in includedir and libdir
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
882 CPP C preprocessor
884 Use these variables to override the choices made by `configure' or to help
885 it to find libraries and programs with nonstandard names/locations.
887 Report bugs to <bug-coreutils@gnu.org>.
888 _ACEOF
891 if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
893 ac_popdir=`pwd`
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
896 ac_builddir=.
898 if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902 else
903 ac_dir_suffix= ac_top_builddir=
906 case $srcdir in
907 .) # No --srcdir option. We are building in place.
908 ac_srcdir=.
909 if test -z "$ac_top_builddir"; then
910 ac_top_srcdir=.
911 else
912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 fi ;;
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
917 *) # Relative path.
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
920 esac
921 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
922 # absolute.
923 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
924 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
925 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
926 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
928 cd $ac_dir
929 # Check for guested configure; otherwise get Cygnus style configure.
930 if test -f $ac_srcdir/configure.gnu; then
931 echo
932 $SHELL $ac_srcdir/configure.gnu --help=recursive
933 elif test -f $ac_srcdir/configure; then
934 echo
935 $SHELL $ac_srcdir/configure --help=recursive
936 elif test -f $ac_srcdir/configure.ac ||
937 test -f $ac_srcdir/configure.in; then
938 echo
939 $ac_configure --help
940 else
941 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
943 cd $ac_popdir
944 done
947 test -n "$ac_init_help" && exit 0
948 if $ac_init_version; then
949 cat <<\_ACEOF
950 GNU coreutils configure 4.5.9
951 generated by GNU Autoconf 2.57
953 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
954 Free Software Foundation, Inc.
955 This configure script is free software; the Free Software Foundation
956 gives unlimited permission to copy, distribute and modify it.
957 _ACEOF
958 exit 0
960 exec 5>config.log
961 cat >&5 <<_ACEOF
962 This file contains any messages produced by compilers while
963 running configure, to aid debugging if configure makes a mistake.
965 It was created by GNU coreutils $as_me 4.5.9, which was
966 generated by GNU Autoconf 2.57. Invocation command line was
968 $ $0 $@
970 _ACEOF
972 cat <<_ASUNAME
973 ## --------- ##
974 ## Platform. ##
975 ## --------- ##
977 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
978 uname -m = `(uname -m) 2>/dev/null || echo unknown`
979 uname -r = `(uname -r) 2>/dev/null || echo unknown`
980 uname -s = `(uname -s) 2>/dev/null || echo unknown`
981 uname -v = `(uname -v) 2>/dev/null || echo unknown`
983 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
984 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
986 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
987 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
988 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
989 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
990 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
991 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
992 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
994 _ASUNAME
996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
997 for as_dir in $PATH
999 IFS=$as_save_IFS
1000 test -z "$as_dir" && as_dir=.
1001 echo "PATH: $as_dir"
1002 done
1004 } >&5
1006 cat >&5 <<_ACEOF
1009 ## ----------- ##
1010 ## Core tests. ##
1011 ## ----------- ##
1013 _ACEOF
1016 # Keep a trace of the command line.
1017 # Strip out --no-create and --no-recursion so they do not pile up.
1018 # Strip out --silent because we don't want to record it for future runs.
1019 # Also quote any args containing shell meta-characters.
1020 # Make two passes to allow for proper duplicate-argument suppression.
1021 ac_configure_args=
1022 ac_configure_args0=
1023 ac_configure_args1=
1024 ac_sep=
1025 ac_must_keep_next=false
1026 for ac_pass in 1 2
1028 for ac_arg
1030 case $ac_arg in
1031 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033 | -silent | --silent | --silen | --sile | --sil)
1034 continue ;;
1035 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1036 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037 esac
1038 case $ac_pass in
1039 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1041 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1042 if test $ac_must_keep_next = true; then
1043 ac_must_keep_next=false # Got value, back to normal.
1044 else
1045 case $ac_arg in
1046 *=* | --config-cache | -C | -disable-* | --disable-* \
1047 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1048 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1049 | -with-* | --with-* | -without-* | --without-* | --x)
1050 case "$ac_configure_args0 " in
1051 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1052 esac
1054 -* ) ac_must_keep_next=true ;;
1055 esac
1057 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1058 # Get rid of the leading space.
1059 ac_sep=" "
1061 esac
1062 done
1063 done
1064 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1065 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1067 # When interrupted or exit'd, cleanup temporary files, and complete
1068 # config.log. We remove comments because anyway the quotes in there
1069 # would cause problems or look ugly.
1070 # WARNING: Be sure not to use single quotes in there, as some shells,
1071 # such as our DU 5.0 friend, will then `close' the trap.
1072 trap 'exit_status=$?
1073 # Save into config.log some information that might help in debugging.
1075 echo
1077 cat <<\_ASBOX
1078 ## ---------------- ##
1079 ## Cache variables. ##
1080 ## ---------------- ##
1081 _ASBOX
1082 echo
1083 # The following way of writing the cache mishandles newlines in values,
1085 (set) 2>&1 |
1086 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1087 *ac_space=\ *)
1088 sed -n \
1089 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1093 sed -n \
1094 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1096 esac;
1098 echo
1100 cat <<\_ASBOX
1101 ## ----------------- ##
1102 ## Output variables. ##
1103 ## ----------------- ##
1104 _ASBOX
1105 echo
1106 for ac_var in $ac_subst_vars
1108 eval ac_val=$`echo $ac_var`
1109 echo "$ac_var='"'"'$ac_val'"'"'"
1110 done | sort
1111 echo
1113 if test -n "$ac_subst_files"; then
1114 cat <<\_ASBOX
1115 ## ------------- ##
1116 ## Output files. ##
1117 ## ------------- ##
1118 _ASBOX
1119 echo
1120 for ac_var in $ac_subst_files
1122 eval ac_val=$`echo $ac_var`
1123 echo "$ac_var='"'"'$ac_val'"'"'"
1124 done | sort
1125 echo
1128 if test -s confdefs.h; then
1129 cat <<\_ASBOX
1130 ## ----------- ##
1131 ## confdefs.h. ##
1132 ## ----------- ##
1133 _ASBOX
1134 echo
1135 sed "/^$/d" confdefs.h | sort
1136 echo
1138 test "$ac_signal" != 0 &&
1139 echo "$as_me: caught signal $ac_signal"
1140 echo "$as_me: exit $exit_status"
1141 } >&5
1142 rm -f core core.* *.core &&
1143 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1144 exit $exit_status
1146 for ac_signal in 1 2 13 15; do
1147 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1148 done
1149 ac_signal=0
1151 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1152 rm -rf conftest* confdefs.h
1153 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1154 echo >confdefs.h
1156 # Predefined preprocessor variables.
1158 cat >>confdefs.h <<_ACEOF
1159 #define PACKAGE_NAME "$PACKAGE_NAME"
1160 _ACEOF
1163 cat >>confdefs.h <<_ACEOF
1164 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1165 _ACEOF
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1170 _ACEOF
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_STRING "$PACKAGE_STRING"
1175 _ACEOF
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1180 _ACEOF
1183 # Let the site file select an alternate cache file if it wants to.
1184 # Prefer explicitly selected file to automatically selected ones.
1185 if test -z "$CONFIG_SITE"; then
1186 if test "x$prefix" != xNONE; then
1187 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1188 else
1189 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1192 for ac_site_file in $CONFIG_SITE; do
1193 if test -r "$ac_site_file"; then
1194 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1195 echo "$as_me: loading site script $ac_site_file" >&6;}
1196 sed 's/^/| /' "$ac_site_file" >&5
1197 . "$ac_site_file"
1199 done
1201 if test -r "$cache_file"; then
1202 # Some versions of bash will fail to source /dev/null (special
1203 # files actually), so we avoid doing that.
1204 if test -f "$cache_file"; then
1205 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1206 echo "$as_me: loading cache $cache_file" >&6;}
1207 case $cache_file in
1208 [\\/]* | ?:[\\/]* ) . $cache_file;;
1209 *) . ./$cache_file;;
1210 esac
1212 else
1213 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1214 echo "$as_me: creating cache $cache_file" >&6;}
1215 >$cache_file
1218 # Check that the precious variables saved in the cache have kept the same
1219 # value.
1220 ac_cache_corrupted=false
1221 for ac_var in `(set) 2>&1 |
1222 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1223 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1224 eval ac_new_set=\$ac_env_${ac_var}_set
1225 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1226 eval ac_new_val="\$ac_env_${ac_var}_value"
1227 case $ac_old_set,$ac_new_set in
1228 set,)
1229 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1230 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1231 ac_cache_corrupted=: ;;
1232 ,set)
1233 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1234 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1235 ac_cache_corrupted=: ;;
1236 ,);;
1238 if test "x$ac_old_val" != "x$ac_new_val"; then
1239 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1240 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1241 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1242 echo "$as_me: former value: $ac_old_val" >&2;}
1243 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1244 echo "$as_me: current value: $ac_new_val" >&2;}
1245 ac_cache_corrupted=:
1246 fi;;
1247 esac
1248 # Pass precious variables to config.status.
1249 if test "$ac_new_set" = set; then
1250 case $ac_new_val in
1251 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1253 *) ac_arg=$ac_var=$ac_new_val ;;
1254 esac
1255 case " $ac_configure_args " in
1256 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1257 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1258 esac
1260 done
1261 if $ac_cache_corrupted; then
1262 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1263 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1264 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1265 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1266 { (exit 1); exit 1; }; }
1269 ac_ext=c
1270 ac_cpp='$CPP $CPPFLAGS'
1271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303 ac_aux_dir=
1304 for ac_dir in config $srcdir/config; do
1305 if test -f $ac_dir/install-sh; then
1306 ac_aux_dir=$ac_dir
1307 ac_install_sh="$ac_aux_dir/install-sh -c"
1308 break
1309 elif test -f $ac_dir/install.sh; then
1310 ac_aux_dir=$ac_dir
1311 ac_install_sh="$ac_aux_dir/install.sh -c"
1312 break
1313 elif test -f $ac_dir/shtool; then
1314 ac_aux_dir=$ac_dir
1315 ac_install_sh="$ac_aux_dir/shtool install -c"
1316 break
1318 done
1319 if test -z "$ac_aux_dir"; then
1320 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1321 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1322 { (exit 1); exit 1; }; }
1324 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1325 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1326 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1328 ac_config_headers="$ac_config_headers config.h:config.hin"
1330 # Make sure we can run config.sub.
1331 $ac_config_sub sun4 >/dev/null 2>&1 ||
1332 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1333 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1334 { (exit 1); exit 1; }; }
1336 echo "$as_me:$LINENO: checking build system type" >&5
1337 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1338 if test "${ac_cv_build+set}" = set; then
1339 echo $ECHO_N "(cached) $ECHO_C" >&6
1340 else
1341 ac_cv_build_alias=$build_alias
1342 test -z "$ac_cv_build_alias" &&
1343 ac_cv_build_alias=`$ac_config_guess`
1344 test -z "$ac_cv_build_alias" &&
1345 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1346 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1347 { (exit 1); exit 1; }; }
1348 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1349 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1350 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1351 { (exit 1); exit 1; }; }
1354 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1355 echo "${ECHO_T}$ac_cv_build" >&6
1356 build=$ac_cv_build
1357 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1358 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1359 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1362 echo "$as_me:$LINENO: checking host system type" >&5
1363 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1364 if test "${ac_cv_host+set}" = set; then
1365 echo $ECHO_N "(cached) $ECHO_C" >&6
1366 else
1367 ac_cv_host_alias=$host_alias
1368 test -z "$ac_cv_host_alias" &&
1369 ac_cv_host_alias=$ac_cv_build_alias
1370 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1371 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1372 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1373 { (exit 1); exit 1; }; }
1376 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1377 echo "${ECHO_T}$ac_cv_host" >&6
1378 host=$ac_cv_host
1379 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1380 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1381 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1385 am__api_version="1.7"
1386 # Find a good install program. We prefer a C program (faster),
1387 # so one script is as good as another. But avoid the broken or
1388 # incompatible versions:
1389 # SysV /etc/install, /usr/sbin/install
1390 # SunOS /usr/etc/install
1391 # IRIX /sbin/install
1392 # AIX /bin/install
1393 # AmigaOS /C/install, which installs bootblocks on floppy discs
1394 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1395 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1396 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1397 # ./install, which can be erroneously created by make from ./install.sh.
1398 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1399 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1400 if test -z "$INSTALL"; then
1401 if test "${ac_cv_path_install+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1403 else
1404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1405 for as_dir in $PATH
1407 IFS=$as_save_IFS
1408 test -z "$as_dir" && as_dir=.
1409 # Account for people who put trailing slashes in PATH elements.
1410 case $as_dir/ in
1411 ./ | .// | /cC/* | \
1412 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1413 /usr/ucb/* ) ;;
1415 # OSF1 and SCO ODT 3.0 have their own names for install.
1416 # Don't use installbsd from OSF since it installs stuff as root
1417 # by default.
1418 for ac_prog in ginstall scoinst install; do
1419 for ac_exec_ext in '' $ac_executable_extensions; do
1420 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1421 if test $ac_prog = install &&
1422 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1423 # AIX install. It has an incompatible calling convention.
1425 elif test $ac_prog = install &&
1426 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1427 # program-specific install script used by HP pwplus--don't use.
1429 else
1430 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1431 break 3
1434 done
1435 done
1437 esac
1438 done
1442 if test "${ac_cv_path_install+set}" = set; then
1443 INSTALL=$ac_cv_path_install
1444 else
1445 # As a last resort, use the slow shell script. We don't cache a
1446 # path for INSTALL within a source directory, because that will
1447 # break other packages using the cache if that directory is
1448 # removed, or if the path is relative.
1449 INSTALL=$ac_install_sh
1452 echo "$as_me:$LINENO: result: $INSTALL" >&5
1453 echo "${ECHO_T}$INSTALL" >&6
1455 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1456 # It thinks the first close brace ends the variable substitution.
1457 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1459 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1461 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1463 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1464 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1465 # Just in case
1466 sleep 1
1467 echo timestamp > conftest.file
1468 # Do `set' in a subshell so we don't clobber the current shell's
1469 # arguments. Must try -L first in case configure is actually a
1470 # symlink; some systems play weird games with the mod time of symlinks
1471 # (eg FreeBSD returns the mod time of the symlink's containing
1472 # directory).
1473 if (
1474 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1475 if test "$*" = "X"; then
1476 # -L didn't work.
1477 set X `ls -t $srcdir/configure conftest.file`
1479 rm -f conftest.file
1480 if test "$*" != "X $srcdir/configure conftest.file" \
1481 && test "$*" != "X conftest.file $srcdir/configure"; then
1483 # If neither matched, then we have a broken ls. This can happen
1484 # if, for instance, CONFIG_SHELL is bash and it inherits a
1485 # broken ls alias from the environment. This has actually
1486 # happened. Such a system could not be considered "sane".
1487 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1488 alias in your environment" >&5
1489 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1490 alias in your environment" >&2;}
1491 { (exit 1); exit 1; }; }
1494 test "$2" = conftest.file
1496 then
1497 # Ok.
1499 else
1500 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1501 Check your system clock" >&5
1502 echo "$as_me: error: newly created file is older than distributed files!
1503 Check your system clock" >&2;}
1504 { (exit 1); exit 1; }; }
1506 echo "$as_me:$LINENO: result: yes" >&5
1507 echo "${ECHO_T}yes" >&6
1508 test "$program_prefix" != NONE &&
1509 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1510 # Use a double $ so make ignores it.
1511 test "$program_suffix" != NONE &&
1512 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1513 # Double any \ or $. echo might interpret backslashes.
1514 # By default was `s,x,x', remove it if useless.
1515 cat <<\_ACEOF >conftest.sed
1516 s/[\\$]/&&/g;s/;s,x,x,$//
1517 _ACEOF
1518 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1519 rm conftest.sed
1522 # expand $ac_aux_dir to an absolute path
1523 am_aux_dir=`cd $ac_aux_dir && pwd`
1525 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1526 # Use eval to expand $SHELL
1527 if eval "$MISSING --run true"; then
1528 am_missing_run="$MISSING --run "
1529 else
1530 am_missing_run=
1531 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1532 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1535 for ac_prog in gawk mawk nawk awk
1537 # Extract the first word of "$ac_prog", so it can be a program name with args.
1538 set dummy $ac_prog; ac_word=$2
1539 echo "$as_me:$LINENO: checking for $ac_word" >&5
1540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1541 if test "${ac_cv_prog_AWK+set}" = set; then
1542 echo $ECHO_N "(cached) $ECHO_C" >&6
1543 else
1544 if test -n "$AWK"; then
1545 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1546 else
1547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548 for as_dir in $PATH
1550 IFS=$as_save_IFS
1551 test -z "$as_dir" && as_dir=.
1552 for ac_exec_ext in '' $ac_executable_extensions; do
1553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1554 ac_cv_prog_AWK="$ac_prog"
1555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1556 break 2
1558 done
1559 done
1563 AWK=$ac_cv_prog_AWK
1564 if test -n "$AWK"; then
1565 echo "$as_me:$LINENO: result: $AWK" >&5
1566 echo "${ECHO_T}$AWK" >&6
1567 else
1568 echo "$as_me:$LINENO: result: no" >&5
1569 echo "${ECHO_T}no" >&6
1572 test -n "$AWK" && break
1573 done
1575 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1576 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1577 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1578 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 else
1581 cat >conftest.make <<\_ACEOF
1582 all:
1583 @echo 'ac_maketemp="$(MAKE)"'
1584 _ACEOF
1585 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1586 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1587 if test -n "$ac_maketemp"; then
1588 eval ac_cv_prog_make_${ac_make}_set=yes
1589 else
1590 eval ac_cv_prog_make_${ac_make}_set=no
1592 rm -f conftest.make
1594 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1595 echo "$as_me:$LINENO: result: yes" >&5
1596 echo "${ECHO_T}yes" >&6
1597 SET_MAKE=
1598 else
1599 echo "$as_me:$LINENO: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1601 SET_MAKE="MAKE=${MAKE-make}"
1604 rm -rf .tst 2>/dev/null
1605 mkdir .tst 2>/dev/null
1606 if test -d .tst; then
1607 am__leading_dot=.
1608 else
1609 am__leading_dot=_
1611 rmdir .tst 2>/dev/null
1613 # test to see if srcdir already configured
1614 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1615 test -f $srcdir/config.status; then
1616 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1617 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1618 { (exit 1); exit 1; }; }
1621 # test whether we have cygpath
1622 if test -z "$CYGPATH_W"; then
1623 if (cygpath --version) >/dev/null 2>/dev/null; then
1624 CYGPATH_W='cygpath -w'
1625 else
1626 CYGPATH_W=echo
1631 # Define the identity of the package.
1632 PACKAGE='coreutils'
1633 VERSION='4.5.9'
1636 cat >>confdefs.h <<_ACEOF
1637 #define PACKAGE "$PACKAGE"
1638 _ACEOF
1641 cat >>confdefs.h <<_ACEOF
1642 #define VERSION "$VERSION"
1643 _ACEOF
1645 # Some tools Automake needs.
1647 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1650 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1653 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1656 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1659 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1662 AMTAR=${AMTAR-"${am_missing_run}tar"}
1664 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1666 # Installed binaries are usually stripped using `strip' when the user
1667 # run `make install-strip'. However `strip' might not be the right
1668 # tool to use in cross-compilation environments, therefore Automake
1669 # will honor the `STRIP' environment variable to overrule this program.
1670 if test "$cross_compiling" != no; then
1671 if test -n "$ac_tool_prefix"; then
1672 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1673 set dummy ${ac_tool_prefix}strip; ac_word=$2
1674 echo "$as_me:$LINENO: checking for $ac_word" >&5
1675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676 if test "${ac_cv_prog_STRIP+set}" = set; then
1677 echo $ECHO_N "(cached) $ECHO_C" >&6
1678 else
1679 if test -n "$STRIP"; then
1680 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1681 else
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 for as_dir in $PATH
1685 IFS=$as_save_IFS
1686 test -z "$as_dir" && as_dir=.
1687 for ac_exec_ext in '' $ac_executable_extensions; do
1688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691 break 2
1693 done
1694 done
1698 STRIP=$ac_cv_prog_STRIP
1699 if test -n "$STRIP"; then
1700 echo "$as_me:$LINENO: result: $STRIP" >&5
1701 echo "${ECHO_T}$STRIP" >&6
1702 else
1703 echo "$as_me:$LINENO: result: no" >&5
1704 echo "${ECHO_T}no" >&6
1708 if test -z "$ac_cv_prog_STRIP"; then
1709 ac_ct_STRIP=$STRIP
1710 # Extract the first word of "strip", so it can be a program name with args.
1711 set dummy strip; ac_word=$2
1712 echo "$as_me:$LINENO: checking for $ac_word" >&5
1713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1714 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1715 echo $ECHO_N "(cached) $ECHO_C" >&6
1716 else
1717 if test -n "$ac_ct_STRIP"; then
1718 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1719 else
1720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721 for as_dir in $PATH
1723 IFS=$as_save_IFS
1724 test -z "$as_dir" && as_dir=.
1725 for ac_exec_ext in '' $ac_executable_extensions; do
1726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1727 ac_cv_prog_ac_ct_STRIP="strip"
1728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729 break 2
1731 done
1732 done
1734 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1737 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1738 if test -n "$ac_ct_STRIP"; then
1739 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1740 echo "${ECHO_T}$ac_ct_STRIP" >&6
1741 else
1742 echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6
1746 STRIP=$ac_ct_STRIP
1747 else
1748 STRIP="$ac_cv_prog_STRIP"
1752 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1754 # We need awk for the "check" target. The system "awk" is bad on
1755 # some platforms.
1761 cat >>confdefs.h <<\_ACEOF
1762 #define _GNU_SOURCE 1
1763 _ACEOF
1767 echo "$as_me:$LINENO: checking for perl5.003 or newer" >&5
1768 echo $ECHO_N "checking for perl5.003 or newer... $ECHO_C" >&6
1769 if test "${PERL+set}" = set; then
1770 # `PERL' is set in the user's environment.
1771 candidate_perl_names="$PERL"
1772 perl_specified=yes
1773 else
1774 candidate_perl_names='perl perl5'
1775 perl_specified=no
1778 found=no
1780 PERL="$missing_dir/missing perl"
1781 for perl in $candidate_perl_names; do
1782 # Run test in a subshell; some versions of sh will print an error if
1783 # an executable is not found, even if stderr is redirected.
1784 if ( $perl -e 'require 5.003; use File::Compare' ) > /dev/null 2>&1; then
1785 PERL=$perl
1786 found=yes
1787 break
1789 done
1791 echo "$as_me:$LINENO: result: $found" >&5
1792 echo "${ECHO_T}$found" >&6
1793 test $found = no && { echo "$as_me:$LINENO: WARNING:
1794 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1795 a usable version of the Perl File::Compare module. As a result,
1796 you may be unable to run a few tests or to regenerate certain
1797 files if you modify the sources from which they are derived.
1798 " >&5
1799 echo "$as_me: WARNING:
1800 WARNING: You don't seem to have perl5.003 or newer installed, or you lack
1801 a usable version of the Perl File::Compare module. As a result,
1802 you may be unable to run a few tests or to regenerate certain
1803 files if you modify the sources from which they are derived.
1804 " >&2;}
1806 ac_ext=c
1807 ac_cpp='$CPP $CPPFLAGS'
1808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1811 if test -n "$ac_tool_prefix"; then
1812 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1813 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1814 echo "$as_me:$LINENO: checking for $ac_word" >&5
1815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816 if test "${ac_cv_prog_CC+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 else
1819 if test -n "$CC"; then
1820 ac_cv_prog_CC="$CC" # Let the user override the test.
1821 else
1822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823 for as_dir in $PATH
1825 IFS=$as_save_IFS
1826 test -z "$as_dir" && as_dir=.
1827 for ac_exec_ext in '' $ac_executable_extensions; do
1828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831 break 2
1833 done
1834 done
1838 CC=$ac_cv_prog_CC
1839 if test -n "$CC"; then
1840 echo "$as_me:$LINENO: result: $CC" >&5
1841 echo "${ECHO_T}$CC" >&6
1842 else
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1848 if test -z "$ac_cv_prog_CC"; then
1849 ac_ct_CC=$CC
1850 # Extract the first word of "gcc", so it can be a program name with args.
1851 set dummy gcc; ac_word=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 else
1857 if test -n "$ac_ct_CC"; then
1858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1859 else
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1863 IFS=$as_save_IFS
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_ac_ct_CC="gcc"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 break 2
1871 done
1872 done
1876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1877 if test -n "$ac_ct_CC"; then
1878 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1879 echo "${ECHO_T}$ac_ct_CC" >&6
1880 else
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1885 CC=$ac_ct_CC
1886 else
1887 CC="$ac_cv_prog_CC"
1890 if test -z "$CC"; then
1891 if test -n "$ac_tool_prefix"; then
1892 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1893 set dummy ${ac_tool_prefix}cc; ac_word=$2
1894 echo "$as_me:$LINENO: checking for $ac_word" >&5
1895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1896 if test "${ac_cv_prog_CC+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 else
1899 if test -n "$CC"; then
1900 ac_cv_prog_CC="$CC" # Let the user override the test.
1901 else
1902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903 for as_dir in $PATH
1905 IFS=$as_save_IFS
1906 test -z "$as_dir" && as_dir=.
1907 for ac_exec_ext in '' $ac_executable_extensions; do
1908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909 ac_cv_prog_CC="${ac_tool_prefix}cc"
1910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 break 2
1913 done
1914 done
1918 CC=$ac_cv_prog_CC
1919 if test -n "$CC"; then
1920 echo "$as_me:$LINENO: result: $CC" >&5
1921 echo "${ECHO_T}$CC" >&6
1922 else
1923 echo "$as_me:$LINENO: result: no" >&5
1924 echo "${ECHO_T}no" >&6
1928 if test -z "$ac_cv_prog_CC"; then
1929 ac_ct_CC=$CC
1930 # Extract the first word of "cc", so it can be a program name with args.
1931 set dummy cc; ac_word=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 else
1937 if test -n "$ac_ct_CC"; then
1938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1939 else
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 for as_dir in $PATH
1943 IFS=$as_save_IFS
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 ac_cv_prog_ac_ct_CC="cc"
1948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949 break 2
1951 done
1952 done
1956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1957 if test -n "$ac_ct_CC"; then
1958 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1959 echo "${ECHO_T}$ac_ct_CC" >&6
1960 else
1961 echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6
1965 CC=$ac_ct_CC
1966 else
1967 CC="$ac_cv_prog_CC"
1971 if test -z "$CC"; then
1972 # Extract the first word of "cc", so it can be a program name with args.
1973 set dummy cc; ac_word=$2
1974 echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976 if test "${ac_cv_prog_CC+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 else
1979 if test -n "$CC"; then
1980 ac_cv_prog_CC="$CC" # Let the user override the test.
1981 else
1982 ac_prog_rejected=no
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 for as_dir in $PATH
1986 IFS=$as_save_IFS
1987 test -z "$as_dir" && as_dir=.
1988 for ac_exec_ext in '' $ac_executable_extensions; do
1989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1990 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1991 ac_prog_rejected=yes
1992 continue
1994 ac_cv_prog_CC="cc"
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 break 2
1998 done
1999 done
2001 if test $ac_prog_rejected = yes; then
2002 # We found a bogon in the path, so make sure we never use it.
2003 set dummy $ac_cv_prog_CC
2004 shift
2005 if test $# != 0; then
2006 # We chose a different compiler from the bogus one.
2007 # However, it has the same basename, so the bogon will be chosen
2008 # first if we set CC to just the basename; use the full file name.
2009 shift
2010 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2015 CC=$ac_cv_prog_CC
2016 if test -n "$CC"; then
2017 echo "$as_me:$LINENO: result: $CC" >&5
2018 echo "${ECHO_T}$CC" >&6
2019 else
2020 echo "$as_me:$LINENO: result: no" >&5
2021 echo "${ECHO_T}no" >&6
2025 if test -z "$CC"; then
2026 if test -n "$ac_tool_prefix"; then
2027 for ac_prog in cl
2029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2031 echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033 if test "${ac_cv_prog_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036 if test -n "$CC"; then
2037 ac_cv_prog_CC="$CC" # Let the user override the test.
2038 else
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 for as_dir in $PATH
2042 IFS=$as_save_IFS
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 break 2
2050 done
2051 done
2055 CC=$ac_cv_prog_CC
2056 if test -n "$CC"; then
2057 echo "$as_me:$LINENO: result: $CC" >&5
2058 echo "${ECHO_T}$CC" >&6
2059 else
2060 echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2064 test -n "$CC" && break
2065 done
2067 if test -z "$CC"; then
2068 ac_ct_CC=$CC
2069 for ac_prog in cl
2071 # Extract the first word of "$ac_prog", so it can be a program name with args.
2072 set dummy $ac_prog; ac_word=$2
2073 echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078 if test -n "$ac_ct_CC"; then
2079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2080 else
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 for as_dir in $PATH
2084 IFS=$as_save_IFS
2085 test -z "$as_dir" && as_dir=.
2086 for ac_exec_ext in '' $ac_executable_extensions; do
2087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2088 ac_cv_prog_ac_ct_CC="$ac_prog"
2089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090 break 2
2092 done
2093 done
2097 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2098 if test -n "$ac_ct_CC"; then
2099 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2100 echo "${ECHO_T}$ac_ct_CC" >&6
2101 else
2102 echo "$as_me:$LINENO: result: no" >&5
2103 echo "${ECHO_T}no" >&6
2106 test -n "$ac_ct_CC" && break
2107 done
2109 CC=$ac_ct_CC
2115 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2116 See \`config.log' for more details." >&5
2117 echo "$as_me: error: no acceptable C compiler found in \$PATH
2118 See \`config.log' for more details." >&2;}
2119 { (exit 1); exit 1; }; }
2121 # Provide some information about the compiler.
2122 echo "$as_me:$LINENO:" \
2123 "checking for C compiler version" >&5
2124 ac_compiler=`set X $ac_compile; echo $2`
2125 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2126 (eval $ac_compiler --version </dev/null >&5) 2>&5
2127 ac_status=$?
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
2130 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2131 (eval $ac_compiler -v </dev/null >&5) 2>&5
2132 ac_status=$?
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }
2135 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2136 (eval $ac_compiler -V </dev/null >&5) 2>&5
2137 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2141 cat >conftest.$ac_ext <<_ACEOF
2142 #line $LINENO "configure"
2143 /* confdefs.h. */
2144 _ACEOF
2145 cat confdefs.h >>conftest.$ac_ext
2146 cat >>conftest.$ac_ext <<_ACEOF
2147 /* end confdefs.h. */
2150 main ()
2154 return 0;
2156 _ACEOF
2157 ac_clean_files_save=$ac_clean_files
2158 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2159 # Try to create an executable without -o first, disregard a.out.
2160 # It will help us diagnose broken compilers, and finding out an intuition
2161 # of exeext.
2162 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2163 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2164 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2165 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2166 (eval $ac_link_default) 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; then
2170 # Find the output, starting from the most likely. This scheme is
2171 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2172 # resort.
2174 # Be careful to initialize this variable, since it used to be cached.
2175 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2176 ac_cv_exeext=
2177 # b.out is created by i960 compilers.
2178 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2180 test -f "$ac_file" || continue
2181 case $ac_file in
2182 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2184 conftest.$ac_ext )
2185 # This is the source file.
2187 [ab].out )
2188 # We found the default executable, but exeext='' is most
2189 # certainly right.
2190 break;;
2191 *.* )
2192 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2193 # FIXME: I believe we export ac_cv_exeext for Libtool,
2194 # but it would be cool to find out if it's true. Does anybody
2195 # maintain Libtool? --akim.
2196 export ac_cv_exeext
2197 break;;
2199 break;;
2200 esac
2201 done
2202 else
2203 echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2206 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2207 See \`config.log' for more details." >&5
2208 echo "$as_me: error: C compiler cannot create executables
2209 See \`config.log' for more details." >&2;}
2210 { (exit 77); exit 77; }; }
2213 ac_exeext=$ac_cv_exeext
2214 echo "$as_me:$LINENO: result: $ac_file" >&5
2215 echo "${ECHO_T}$ac_file" >&6
2217 # Check the compiler produces executables we can run. If not, either
2218 # the compiler is broken, or we cross compile.
2219 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2220 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2221 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2222 # If not cross compiling, check that we can run a simple program.
2223 if test "$cross_compiling" != yes; then
2224 if { ac_try='./$ac_file'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2230 cross_compiling=no
2231 else
2232 if test "$cross_compiling" = maybe; then
2233 cross_compiling=yes
2234 else
2235 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2236 If you meant to cross compile, use \`--host'.
2237 See \`config.log' for more details." >&5
2238 echo "$as_me: error: cannot run C compiled programs.
2239 If you meant to cross compile, use \`--host'.
2240 See \`config.log' for more details." >&2;}
2241 { (exit 1); exit 1; }; }
2245 echo "$as_me:$LINENO: result: yes" >&5
2246 echo "${ECHO_T}yes" >&6
2248 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2249 ac_clean_files=$ac_clean_files_save
2250 # Check the compiler produces executables we can run. If not, either
2251 # the compiler is broken, or we cross compile.
2252 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2253 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2254 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2255 echo "${ECHO_T}$cross_compiling" >&6
2257 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2258 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2260 (eval $ac_link) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; then
2264 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2265 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2266 # work properly (i.e., refer to `conftest.exe'), while it won't with
2267 # `rm'.
2268 for ac_file in conftest.exe conftest conftest.*; do
2269 test -f "$ac_file" || continue
2270 case $ac_file in
2271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2272 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2273 export ac_cv_exeext
2274 break;;
2275 * ) break;;
2276 esac
2277 done
2278 else
2279 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2280 See \`config.log' for more details." >&5
2281 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2282 See \`config.log' for more details." >&2;}
2283 { (exit 1); exit 1; }; }
2286 rm -f conftest$ac_cv_exeext
2287 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2288 echo "${ECHO_T}$ac_cv_exeext" >&6
2290 rm -f conftest.$ac_ext
2291 EXEEXT=$ac_cv_exeext
2292 ac_exeext=$EXEEXT
2293 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2294 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2295 if test "${ac_cv_objext+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298 cat >conftest.$ac_ext <<_ACEOF
2299 #line $LINENO "configure"
2300 /* confdefs.h. */
2301 _ACEOF
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h. */
2307 main ()
2311 return 0;
2313 _ACEOF
2314 rm -f conftest.o conftest.obj
2315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316 (eval $ac_compile) 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; then
2320 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2321 case $ac_file in
2322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2323 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2324 break;;
2325 esac
2326 done
2327 else
2328 echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2331 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2332 See \`config.log' for more details." >&5
2333 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2334 See \`config.log' for more details." >&2;}
2335 { (exit 1); exit 1; }; }
2338 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2340 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2341 echo "${ECHO_T}$ac_cv_objext" >&6
2342 OBJEXT=$ac_cv_objext
2343 ac_objext=$OBJEXT
2344 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2345 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2346 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 else
2349 cat >conftest.$ac_ext <<_ACEOF
2350 #line $LINENO "configure"
2351 /* confdefs.h. */
2352 _ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h. */
2358 main ()
2360 #ifndef __GNUC__
2361 choke me
2362 #endif
2365 return 0;
2367 _ACEOF
2368 rm -f conftest.$ac_objext
2369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2370 (eval $ac_compile) 2>&5
2371 ac_status=$?
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); } &&
2374 { ac_try='test -s conftest.$ac_objext'
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376 (eval $ac_try) 2>&5
2377 ac_status=$?
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; }; then
2380 ac_compiler_gnu=yes
2381 else
2382 echo "$as_me: failed program was:" >&5
2383 sed 's/^/| /' conftest.$ac_ext >&5
2385 ac_compiler_gnu=no
2387 rm -f conftest.$ac_objext conftest.$ac_ext
2388 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2391 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2392 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2393 GCC=`test $ac_compiler_gnu = yes && echo yes`
2394 ac_test_CFLAGS=${CFLAGS+set}
2395 ac_save_CFLAGS=$CFLAGS
2396 CFLAGS="-g"
2397 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2398 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2399 if test "${ac_cv_prog_cc_g+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2401 else
2402 cat >conftest.$ac_ext <<_ACEOF
2403 #line $LINENO "configure"
2404 /* confdefs.h. */
2405 _ACEOF
2406 cat confdefs.h >>conftest.$ac_ext
2407 cat >>conftest.$ac_ext <<_ACEOF
2408 /* end confdefs.h. */
2411 main ()
2415 return 0;
2417 _ACEOF
2418 rm -f conftest.$ac_objext
2419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2420 (eval $ac_compile) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); } &&
2424 { ac_try='test -s conftest.$ac_objext'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 (eval $ac_try) 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; }; then
2430 ac_cv_prog_cc_g=yes
2431 else
2432 echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2435 ac_cv_prog_cc_g=no
2437 rm -f conftest.$ac_objext conftest.$ac_ext
2439 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2440 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2441 if test "$ac_test_CFLAGS" = set; then
2442 CFLAGS=$ac_save_CFLAGS
2443 elif test $ac_cv_prog_cc_g = yes; then
2444 if test "$GCC" = yes; then
2445 CFLAGS="-g -O2"
2446 else
2447 CFLAGS="-g"
2449 else
2450 if test "$GCC" = yes; then
2451 CFLAGS="-O2"
2452 else
2453 CFLAGS=
2456 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2457 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2458 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461 ac_cv_prog_cc_stdc=no
2462 ac_save_CC=$CC
2463 cat >conftest.$ac_ext <<_ACEOF
2464 #line $LINENO "configure"
2465 /* confdefs.h. */
2466 _ACEOF
2467 cat confdefs.h >>conftest.$ac_ext
2468 cat >>conftest.$ac_ext <<_ACEOF
2469 /* end confdefs.h. */
2470 #include <stdarg.h>
2471 #include <stdio.h>
2472 #include <sys/types.h>
2473 #include <sys/stat.h>
2474 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2475 struct buf { int x; };
2476 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2477 static char *e (p, i)
2478 char **p;
2479 int i;
2481 return p[i];
2483 static char *f (char * (*g) (char **, int), char **p, ...)
2485 char *s;
2486 va_list v;
2487 va_start (v,p);
2488 s = g (p, va_arg (v,int));
2489 va_end (v);
2490 return s;
2492 int test (int i, double x);
2493 struct s1 {int (*f) (int a);};
2494 struct s2 {int (*f) (double a);};
2495 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2496 int argc;
2497 char **argv;
2499 main ()
2501 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2503 return 0;
2505 _ACEOF
2506 # Don't try gcc -ansi; that turns off useful extensions and
2507 # breaks some systems' header files.
2508 # AIX -qlanglvl=ansi
2509 # Ultrix and OSF/1 -std1
2510 # HP-UX 10.20 and later -Ae
2511 # HP-UX older versions -Aa -D_HPUX_SOURCE
2512 # SVR4 -Xc -D__EXTENSIONS__
2513 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2515 CC="$ac_save_CC $ac_arg"
2516 rm -f conftest.$ac_objext
2517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518 (eval $ac_compile) 2>&5
2519 ac_status=$?
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); } &&
2522 { ac_try='test -s conftest.$ac_objext'
2523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 (eval $ac_try) 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; }; then
2528 ac_cv_prog_cc_stdc=$ac_arg
2529 break
2530 else
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2535 rm -f conftest.$ac_objext
2536 done
2537 rm -f conftest.$ac_ext conftest.$ac_objext
2538 CC=$ac_save_CC
2542 case "x$ac_cv_prog_cc_stdc" in
2543 x|xno)
2544 echo "$as_me:$LINENO: result: none needed" >&5
2545 echo "${ECHO_T}none needed" >&6 ;;
2547 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2548 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2549 CC="$CC $ac_cv_prog_cc_stdc" ;;
2550 esac
2552 # Some people use a C++ compiler to compile C. Since we use `exit',
2553 # in C++ we need to declare it. In case someone uses the same compiler
2554 # for both compiling C and C++ we need to have the C++ compiler decide
2555 # the declaration of exit, since it's the most demanding environment.
2556 cat >conftest.$ac_ext <<_ACEOF
2557 #ifndef __cplusplus
2558 choke me
2559 #endif
2560 _ACEOF
2561 rm -f conftest.$ac_objext
2562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563 (eval $ac_compile) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); } &&
2567 { ac_try='test -s conftest.$ac_objext'
2568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569 (eval $ac_try) 2>&5
2570 ac_status=$?
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }; }; then
2573 for ac_declaration in \
2575 '#include <stdlib.h>' \
2576 'extern "C" void std::exit (int) throw (); using std::exit;' \
2577 'extern "C" void std::exit (int); using std::exit;' \
2578 'extern "C" void exit (int) throw ();' \
2579 'extern "C" void exit (int);' \
2580 'void exit (int);'
2582 cat >conftest.$ac_ext <<_ACEOF
2583 #line $LINENO "configure"
2584 /* confdefs.h. */
2585 _ACEOF
2586 cat confdefs.h >>conftest.$ac_ext
2587 cat >>conftest.$ac_ext <<_ACEOF
2588 /* end confdefs.h. */
2589 #include <stdlib.h>
2590 $ac_declaration
2592 main ()
2594 exit (42);
2596 return 0;
2598 _ACEOF
2599 rm -f conftest.$ac_objext
2600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601 (eval $ac_compile) 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); } &&
2605 { ac_try='test -s conftest.$ac_objext'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 (eval $ac_try) 2>&5
2608 ac_status=$?
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2612 else
2613 echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2616 continue
2618 rm -f conftest.$ac_objext conftest.$ac_ext
2619 cat >conftest.$ac_ext <<_ACEOF
2620 #line $LINENO "configure"
2621 /* confdefs.h. */
2622 _ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h. */
2626 $ac_declaration
2628 main ()
2630 exit (42);
2632 return 0;
2634 _ACEOF
2635 rm -f conftest.$ac_objext
2636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2637 (eval $ac_compile) 2>&5
2638 ac_status=$?
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); } &&
2641 { ac_try='test -s conftest.$ac_objext'
2642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643 (eval $ac_try) 2>&5
2644 ac_status=$?
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; }; then
2647 break
2648 else
2649 echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2653 rm -f conftest.$ac_objext conftest.$ac_ext
2654 done
2655 rm -f conftest*
2656 if test -n "$ac_declaration"; then
2657 echo '#ifdef __cplusplus' >>confdefs.h
2658 echo $ac_declaration >>confdefs.h
2659 echo '#endif' >>confdefs.h
2662 else
2663 echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.$ac_ext >&5
2667 rm -f conftest.$ac_objext conftest.$ac_ext
2668 ac_ext=c
2669 ac_cpp='$CPP $CPPFLAGS'
2670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2673 DEPDIR="${am__leading_dot}deps"
2675 ac_config_commands="$ac_config_commands depfiles"
2678 am_make=${MAKE-make}
2679 cat > confinc << 'END'
2680 doit:
2681 @echo done
2683 # If we don't find an include directive, just comment out the code.
2684 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2685 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2686 am__include="#"
2687 am__quote=
2688 _am_result=none
2689 # First try GNU make style include.
2690 echo "include confinc" > confmf
2691 # We grep out `Entering directory' and `Leaving directory'
2692 # messages which can occur if `w' ends up in MAKEFLAGS.
2693 # In particular we don't look at `^make:' because GNU make might
2694 # be invoked under some other name (usually "gmake"), in which
2695 # case it prints its new name instead of `make'.
2696 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2697 am__include=include
2698 am__quote=
2699 _am_result=GNU
2701 # Now try BSD make style include.
2702 if test "$am__include" = "#"; then
2703 echo '.include "confinc"' > confmf
2704 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2705 am__include=.include
2706 am__quote="\""
2707 _am_result=BSD
2712 echo "$as_me:$LINENO: result: $_am_result" >&5
2713 echo "${ECHO_T}$_am_result" >&6
2714 rm -f confinc confmf
2716 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2717 if test "${enable_dependency_tracking+set}" = set; then
2718 enableval="$enable_dependency_tracking"
2721 if test "x$enable_dependency_tracking" != xno; then
2722 am_depcomp="$ac_aux_dir/depcomp"
2723 AMDEPBACKSLASH='\'
2727 if test "x$enable_dependency_tracking" != xno; then
2728 AMDEP_TRUE=
2729 AMDEP_FALSE='#'
2730 else
2731 AMDEP_TRUE='#'
2732 AMDEP_FALSE=
2738 depcc="$CC" am_compiler_list=
2740 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2741 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2742 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2746 # We make a subdir and do the tests there. Otherwise we can end up
2747 # making bogus files that we don't know about and never remove. For
2748 # instance it was reported that on HP-UX the gcc test will end up
2749 # making a dummy file named `D' -- because `-MD' means `put the output
2750 # in D'.
2751 mkdir conftest.dir
2752 # Copy depcomp to subdir because otherwise we won't find it if we're
2753 # using a relative directory.
2754 cp "$am_depcomp" conftest.dir
2755 cd conftest.dir
2757 am_cv_CC_dependencies_compiler_type=none
2758 if test "$am_compiler_list" = ""; then
2759 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2761 for depmode in $am_compiler_list; do
2762 # We need to recreate these files for each test, as the compiler may
2763 # overwrite some of them when testing with obscure command lines.
2764 # This happens at least with the AIX C compiler.
2765 echo '#include "conftest.h"' > conftest.c
2766 echo 'int i;' > conftest.h
2767 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2769 case $depmode in
2770 nosideeffect)
2771 # after this tag, mechanisms are not by side-effect, so they'll
2772 # only be used when explicitly requested
2773 if test "x$enable_dependency_tracking" = xyes; then
2774 continue
2775 else
2776 break
2779 none) break ;;
2780 esac
2781 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2782 # mode. It turns out that the SunPro C++ compiler does not properly
2783 # handle `-M -o', and we need to detect this.
2784 if depmode=$depmode \
2785 source=conftest.c object=conftest.o \
2786 depfile=conftest.Po tmpdepfile=conftest.TPo \
2787 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
2788 >/dev/null 2>conftest.err &&
2789 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2790 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2791 # icc doesn't choke on unknown options, it will just issue warnings
2792 # (even with -Werror). So we grep stderr for any message
2793 # that says an option was ignored.
2794 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2795 am_cv_CC_dependencies_compiler_type=$depmode
2796 break
2799 done
2801 cd ..
2802 rm -rf conftest.dir
2803 else
2804 am_cv_CC_dependencies_compiler_type=none
2808 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2809 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2810 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2815 test "x$enable_dependency_tracking" != xno \
2816 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2817 am__fastdepCC_TRUE=
2818 am__fastdepCC_FALSE='#'
2819 else
2820 am__fastdepCC_TRUE='#'
2821 am__fastdepCC_FALSE=
2825 ac_ext=c
2826 ac_cpp='$CPP $CPPFLAGS'
2827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2830 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2831 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2832 # On Suns, sometimes $CPP names a directory.
2833 if test -n "$CPP" && test -d "$CPP"; then
2834 CPP=
2836 if test -z "$CPP"; then
2837 if test "${ac_cv_prog_CPP+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2839 else
2840 # Double quotes because CPP needs to be expanded
2841 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2843 ac_preproc_ok=false
2844 for ac_c_preproc_warn_flag in '' yes
2846 # Use a header file that comes with gcc, so configuring glibc
2847 # with a fresh cross-compiler works.
2848 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2849 # <limits.h> exists even on freestanding compilers.
2850 # On the NeXT, cc -E runs the code through the compiler's parser,
2851 # not just through cpp. "Syntax error" is here to catch this case.
2852 cat >conftest.$ac_ext <<_ACEOF
2853 #line $LINENO "configure"
2854 /* confdefs.h. */
2855 _ACEOF
2856 cat confdefs.h >>conftest.$ac_ext
2857 cat >>conftest.$ac_ext <<_ACEOF
2858 /* end confdefs.h. */
2859 #ifdef __STDC__
2860 # include <limits.h>
2861 #else
2862 # include <assert.h>
2863 #endif
2864 Syntax error
2865 _ACEOF
2866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2868 ac_status=$?
2869 grep -v '^ *+' conftest.er1 >conftest.err
2870 rm -f conftest.er1
2871 cat conftest.err >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); } >/dev/null; then
2874 if test -s conftest.err; then
2875 ac_cpp_err=$ac_c_preproc_warn_flag
2876 else
2877 ac_cpp_err=
2879 else
2880 ac_cpp_err=yes
2882 if test -z "$ac_cpp_err"; then
2884 else
2885 echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2888 # Broken: fails on valid input.
2889 continue
2891 rm -f conftest.err conftest.$ac_ext
2893 # OK, works on sane cases. Now check whether non-existent headers
2894 # can be detected and how.
2895 cat >conftest.$ac_ext <<_ACEOF
2896 #line $LINENO "configure"
2897 /* confdefs.h. */
2898 _ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2902 #include <ac_nonexistent.h>
2903 _ACEOF
2904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2906 ac_status=$?
2907 grep -v '^ *+' conftest.er1 >conftest.err
2908 rm -f conftest.er1
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } >/dev/null; then
2912 if test -s conftest.err; then
2913 ac_cpp_err=$ac_c_preproc_warn_flag
2914 else
2915 ac_cpp_err=
2917 else
2918 ac_cpp_err=yes
2920 if test -z "$ac_cpp_err"; then
2921 # Broken: success on invalid input.
2922 continue
2923 else
2924 echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2927 # Passes both tests.
2928 ac_preproc_ok=:
2929 break
2931 rm -f conftest.err conftest.$ac_ext
2933 done
2934 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2935 rm -f conftest.err conftest.$ac_ext
2936 if $ac_preproc_ok; then
2937 break
2940 done
2941 ac_cv_prog_CPP=$CPP
2944 CPP=$ac_cv_prog_CPP
2945 else
2946 ac_cv_prog_CPP=$CPP
2948 echo "$as_me:$LINENO: result: $CPP" >&5
2949 echo "${ECHO_T}$CPP" >&6
2950 ac_preproc_ok=false
2951 for ac_c_preproc_warn_flag in '' yes
2953 # Use a header file that comes with gcc, so configuring glibc
2954 # with a fresh cross-compiler works.
2955 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2956 # <limits.h> exists even on freestanding compilers.
2957 # On the NeXT, cc -E runs the code through the compiler's parser,
2958 # not just through cpp. "Syntax error" is here to catch this case.
2959 cat >conftest.$ac_ext <<_ACEOF
2960 #line $LINENO "configure"
2961 /* confdefs.h. */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2966 #ifdef __STDC__
2967 # include <limits.h>
2968 #else
2969 # include <assert.h>
2970 #endif
2971 Syntax error
2972 _ACEOF
2973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2975 ac_status=$?
2976 grep -v '^ *+' conftest.er1 >conftest.err
2977 rm -f conftest.er1
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } >/dev/null; then
2981 if test -s conftest.err; then
2982 ac_cpp_err=$ac_c_preproc_warn_flag
2983 else
2984 ac_cpp_err=
2986 else
2987 ac_cpp_err=yes
2989 if test -z "$ac_cpp_err"; then
2991 else
2992 echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2995 # Broken: fails on valid input.
2996 continue
2998 rm -f conftest.err conftest.$ac_ext
3000 # OK, works on sane cases. Now check whether non-existent headers
3001 # can be detected and how.
3002 cat >conftest.$ac_ext <<_ACEOF
3003 #line $LINENO "configure"
3004 /* confdefs.h. */
3005 _ACEOF
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3009 #include <ac_nonexistent.h>
3010 _ACEOF
3011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3013 ac_status=$?
3014 grep -v '^ *+' conftest.er1 >conftest.err
3015 rm -f conftest.er1
3016 cat conftest.err >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); } >/dev/null; then
3019 if test -s conftest.err; then
3020 ac_cpp_err=$ac_c_preproc_warn_flag
3021 else
3022 ac_cpp_err=
3024 else
3025 ac_cpp_err=yes
3027 if test -z "$ac_cpp_err"; then
3028 # Broken: success on invalid input.
3029 continue
3030 else
3031 echo "$as_me: failed program was:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3034 # Passes both tests.
3035 ac_preproc_ok=:
3036 break
3038 rm -f conftest.err conftest.$ac_ext
3040 done
3041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3042 rm -f conftest.err conftest.$ac_ext
3043 if $ac_preproc_ok; then
3045 else
3046 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3047 See \`config.log' for more details." >&5
3048 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3049 See \`config.log' for more details." >&2;}
3050 { (exit 1); exit 1; }; }
3053 ac_ext=c
3054 ac_cpp='$CPP $CPPFLAGS'
3055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3061 echo "$as_me:$LINENO: checking for egrep" >&5
3062 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3063 if test "${ac_cv_prog_egrep+set}" = set; then
3064 echo $ECHO_N "(cached) $ECHO_C" >&6
3065 else
3066 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3067 then ac_cv_prog_egrep='grep -E'
3068 else ac_cv_prog_egrep='egrep'
3071 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3072 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3073 EGREP=$ac_cv_prog_egrep
3076 if test $ac_cv_c_compiler_gnu = yes; then
3077 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3078 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3079 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 else
3082 ac_pattern="Autoconf.*'x'"
3083 cat >conftest.$ac_ext <<_ACEOF
3084 #line $LINENO "configure"
3085 /* confdefs.h. */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3090 #include <sgtty.h>
3091 Autoconf TIOCGETP
3092 _ACEOF
3093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3094 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3095 ac_cv_prog_gcc_traditional=yes
3096 else
3097 ac_cv_prog_gcc_traditional=no
3099 rm -f conftest*
3102 if test $ac_cv_prog_gcc_traditional = no; then
3103 cat >conftest.$ac_ext <<_ACEOF
3104 #line $LINENO "configure"
3105 /* confdefs.h. */
3106 _ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h. */
3110 #include <termio.h>
3111 Autoconf TCGETA
3112 _ACEOF
3113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3114 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3115 ac_cv_prog_gcc_traditional=yes
3117 rm -f conftest*
3121 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3122 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3123 if test $ac_cv_prog_gcc_traditional = yes; then
3124 CC="$CC -traditional"
3128 if test -n "$ac_tool_prefix"; then
3129 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3130 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3131 echo "$as_me:$LINENO: checking for $ac_word" >&5
3132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3133 if test "${ac_cv_prog_RANLIB+set}" = set; then
3134 echo $ECHO_N "(cached) $ECHO_C" >&6
3135 else
3136 if test -n "$RANLIB"; then
3137 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3138 else
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 for as_dir in $PATH
3142 IFS=$as_save_IFS
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 break 2
3150 done
3151 done
3155 RANLIB=$ac_cv_prog_RANLIB
3156 if test -n "$RANLIB"; then
3157 echo "$as_me:$LINENO: result: $RANLIB" >&5
3158 echo "${ECHO_T}$RANLIB" >&6
3159 else
3160 echo "$as_me:$LINENO: result: no" >&5
3161 echo "${ECHO_T}no" >&6
3165 if test -z "$ac_cv_prog_RANLIB"; then
3166 ac_ct_RANLIB=$RANLIB
3167 # Extract the first word of "ranlib", so it can be a program name with args.
3168 set dummy ranlib; ac_word=$2
3169 echo "$as_me:$LINENO: checking for $ac_word" >&5
3170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3171 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 else
3174 if test -n "$ac_ct_RANLIB"; then
3175 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3176 else
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3180 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184 ac_cv_prog_ac_ct_RANLIB="ranlib"
3185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 break 2
3188 done
3189 done
3191 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3194 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3195 if test -n "$ac_ct_RANLIB"; then
3196 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3197 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3198 else
3199 echo "$as_me:$LINENO: result: no" >&5
3200 echo "${ECHO_T}no" >&6
3203 RANLIB=$ac_ct_RANLIB
3204 else
3205 RANLIB="$ac_cv_prog_RANLIB"
3209 echo "$as_me:$LINENO: checking for AIX" >&5
3210 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3211 cat >conftest.$ac_ext <<_ACEOF
3212 #line $LINENO "configure"
3213 /* confdefs.h. */
3214 _ACEOF
3215 cat confdefs.h >>conftest.$ac_ext
3216 cat >>conftest.$ac_ext <<_ACEOF
3217 /* end confdefs.h. */
3218 #ifdef _AIX
3220 #endif
3222 _ACEOF
3223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3224 $EGREP "yes" >/dev/null 2>&1; then
3225 echo "$as_me:$LINENO: result: yes" >&5
3226 echo "${ECHO_T}yes" >&6
3227 cat >>confdefs.h <<\_ACEOF
3228 #define _ALL_SOURCE 1
3229 _ACEOF
3231 else
3232 echo "$as_me:$LINENO: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3235 rm -f conftest*
3238 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3239 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3240 if test "${ac_cv_header_stdc+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3242 else
3243 cat >conftest.$ac_ext <<_ACEOF
3244 #line $LINENO "configure"
3245 /* confdefs.h. */
3246 _ACEOF
3247 cat confdefs.h >>conftest.$ac_ext
3248 cat >>conftest.$ac_ext <<_ACEOF
3249 /* end confdefs.h. */
3250 #include <stdlib.h>
3251 #include <stdarg.h>
3252 #include <string.h>
3253 #include <float.h>
3256 main ()
3260 return 0;
3262 _ACEOF
3263 rm -f conftest.$ac_objext
3264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3265 (eval $ac_compile) 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); } &&
3269 { ac_try='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 (eval $ac_try) 2>&5
3272 ac_status=$?
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 ac_cv_header_stdc=yes
3276 else
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3280 ac_cv_header_stdc=no
3282 rm -f conftest.$ac_objext conftest.$ac_ext
3284 if test $ac_cv_header_stdc = yes; then
3285 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3286 cat >conftest.$ac_ext <<_ACEOF
3287 #line $LINENO "configure"
3288 /* confdefs.h. */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3293 #include <string.h>
3295 _ACEOF
3296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3297 $EGREP "memchr" >/dev/null 2>&1; then
3299 else
3300 ac_cv_header_stdc=no
3302 rm -f conftest*
3306 if test $ac_cv_header_stdc = yes; then
3307 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3308 cat >conftest.$ac_ext <<_ACEOF
3309 #line $LINENO "configure"
3310 /* confdefs.h. */
3311 _ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3315 #include <stdlib.h>
3317 _ACEOF
3318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3319 $EGREP "free" >/dev/null 2>&1; then
3321 else
3322 ac_cv_header_stdc=no
3324 rm -f conftest*
3328 if test $ac_cv_header_stdc = yes; then
3329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3330 if test "$cross_compiling" = yes; then
3332 else
3333 cat >conftest.$ac_ext <<_ACEOF
3334 #line $LINENO "configure"
3335 /* confdefs.h. */
3336 _ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h. */
3340 #include <ctype.h>
3341 #if ((' ' & 0x0FF) == 0x020)
3342 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3343 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3344 #else
3345 # define ISLOWER(c) \
3346 (('a' <= (c) && (c) <= 'i') \
3347 || ('j' <= (c) && (c) <= 'r') \
3348 || ('s' <= (c) && (c) <= 'z'))
3349 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3350 #endif
3352 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3354 main ()
3356 int i;
3357 for (i = 0; i < 256; i++)
3358 if (XOR (islower (i), ISLOWER (i))
3359 || toupper (i) != TOUPPER (i))
3360 exit(2);
3361 exit (0);
3363 _ACEOF
3364 rm -f conftest$ac_exeext
3365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3366 (eval $ac_link) 2>&5
3367 ac_status=$?
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 (eval $ac_try) 2>&5
3372 ac_status=$?
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; }; then
3376 else
3377 echo "$as_me: program exited with status $ac_status" >&5
3378 echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3381 ( exit $ac_status )
3382 ac_cv_header_stdc=no
3384 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3388 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3389 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3390 if test $ac_cv_header_stdc = yes; then
3392 cat >>confdefs.h <<\_ACEOF
3393 #define STDC_HEADERS 1
3394 _ACEOF
3398 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3408 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3409 inttypes.h stdint.h unistd.h
3411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3412 echo "$as_me:$LINENO: checking for $ac_header" >&5
3413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417 cat >conftest.$ac_ext <<_ACEOF
3418 #line $LINENO "configure"
3419 /* confdefs.h. */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3424 $ac_includes_default
3426 #include <$ac_header>
3427 _ACEOF
3428 rm -f conftest.$ac_objext
3429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3430 (eval $ac_compile) 2>&5
3431 ac_status=$?
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); } &&
3434 { ac_try='test -s conftest.$ac_objext'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; }; then
3440 eval "$as_ac_Header=yes"
3441 else
3442 echo "$as_me: failed program was:" >&5
3443 sed 's/^/| /' conftest.$ac_ext >&5
3445 eval "$as_ac_Header=no"
3447 rm -f conftest.$ac_objext conftest.$ac_ext
3449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3452 cat >>confdefs.h <<_ACEOF
3453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3454 _ACEOF
3458 done
3461 if test "${ac_cv_header_minix_config_h+set}" = set; then
3462 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3463 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3464 if test "${ac_cv_header_minix_config_h+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3468 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3469 else
3470 # Is the header compilable?
3471 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3472 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3473 cat >conftest.$ac_ext <<_ACEOF
3474 #line $LINENO "configure"
3475 /* confdefs.h. */
3476 _ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3480 $ac_includes_default
3481 #include <minix/config.h>
3482 _ACEOF
3483 rm -f conftest.$ac_objext
3484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3485 (eval $ac_compile) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
3489 { ac_try='test -s conftest.$ac_objext'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 (eval $ac_try) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; }; then
3495 ac_header_compiler=yes
3496 else
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 ac_header_compiler=no
3502 rm -f conftest.$ac_objext conftest.$ac_ext
3503 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3504 echo "${ECHO_T}$ac_header_compiler" >&6
3506 # Is the header present?
3507 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3508 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3509 cat >conftest.$ac_ext <<_ACEOF
3510 #line $LINENO "configure"
3511 /* confdefs.h. */
3512 _ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h. */
3516 #include <minix/config.h>
3517 _ACEOF
3518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3520 ac_status=$?
3521 grep -v '^ *+' conftest.er1 >conftest.err
3522 rm -f conftest.er1
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } >/dev/null; then
3526 if test -s conftest.err; then
3527 ac_cpp_err=$ac_c_preproc_warn_flag
3528 else
3529 ac_cpp_err=
3531 else
3532 ac_cpp_err=yes
3534 if test -z "$ac_cpp_err"; then
3535 ac_header_preproc=yes
3536 else
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3540 ac_header_preproc=no
3542 rm -f conftest.err conftest.$ac_ext
3543 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3544 echo "${ECHO_T}$ac_header_preproc" >&6
3546 # So? What about this header?
3547 case $ac_header_compiler:$ac_header_preproc in
3548 yes:no )
3549 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3550 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3551 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3552 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3554 cat <<\_ASBOX
3555 ## ------------------------------------ ##
3556 ## Report this to bug-autoconf@gnu.org. ##
3557 ## ------------------------------------ ##
3558 _ASBOX
3560 sed "s/^/$as_me: WARNING: /" >&2
3562 no:yes )
3563 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3564 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3565 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3566 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3567 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3568 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3570 cat <<\_ASBOX
3571 ## ------------------------------------ ##
3572 ## Report this to bug-autoconf@gnu.org. ##
3573 ## ------------------------------------ ##
3574 _ASBOX
3576 sed "s/^/$as_me: WARNING: /" >&2
3578 esac
3579 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3580 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3581 if test "${ac_cv_header_minix_config_h+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584 ac_cv_header_minix_config_h=$ac_header_preproc
3586 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3587 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3590 if test $ac_cv_header_minix_config_h = yes; then
3591 MINIX=yes
3592 else
3593 MINIX=
3597 if test "$MINIX" = yes; then
3599 cat >>confdefs.h <<\_ACEOF
3600 #define _POSIX_SOURCE 1
3601 _ACEOF
3604 cat >>confdefs.h <<\_ACEOF
3605 #define _POSIX_1_SOURCE 2
3606 _ACEOF
3609 cat >>confdefs.h <<\_ACEOF
3610 #define _MINIX 1
3611 _ACEOF
3617 for ac_func in uname
3619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3620 echo "$as_me:$LINENO: checking for $ac_func" >&5
3621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3622 if eval "test \"\${$as_ac_var+set}\" = set"; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625 cat >conftest.$ac_ext <<_ACEOF
3626 #line $LINENO "configure"
3627 /* confdefs.h. */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3632 /* System header to define __stub macros and hopefully few prototypes,
3633 which can conflict with char $ac_func (); below.
3634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3635 <limits.h> exists even on freestanding compilers. */
3636 #ifdef __STDC__
3637 # include <limits.h>
3638 #else
3639 # include <assert.h>
3640 #endif
3641 /* Override any gcc2 internal prototype to avoid an error. */
3642 #ifdef __cplusplus
3643 extern "C"
3645 #endif
3646 /* We use char because int might match the return type of a gcc2
3647 builtin and then its argument prototype would still apply. */
3648 char $ac_func ();
3649 /* The GNU C library defines this for functions which it implements
3650 to always fail with ENOSYS. Some functions are actually named
3651 something starting with __ and the normal name is an alias. */
3652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3653 choke me
3654 #else
3655 char (*f) () = $ac_func;
3656 #endif
3657 #ifdef __cplusplus
3659 #endif
3662 main ()
3664 return f != $ac_func;
3666 return 0;
3668 _ACEOF
3669 rm -f conftest.$ac_objext conftest$ac_exeext
3670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3671 (eval $ac_link) 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } &&
3675 { ac_try='test -s conftest$ac_exeext'
3676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 (eval $ac_try) 2>&5
3678 ac_status=$?
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3681 eval "$as_ac_var=yes"
3682 else
3683 echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3686 eval "$as_ac_var=no"
3688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3691 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3692 if test `eval echo '${'$as_ac_var'}'` = yes; then
3693 cat >>confdefs.h <<_ACEOF
3694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3695 _ACEOF
3696 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uname" MAN="$MAN uname.1"
3698 done
3701 for ac_func in chroot
3703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3704 echo "$as_me:$LINENO: checking for $ac_func" >&5
3705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3706 if eval "test \"\${$as_ac_var+set}\" = set"; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 cat >conftest.$ac_ext <<_ACEOF
3710 #line $LINENO "configure"
3711 /* confdefs.h. */
3712 _ACEOF
3713 cat confdefs.h >>conftest.$ac_ext
3714 cat >>conftest.$ac_ext <<_ACEOF
3715 /* end confdefs.h. */
3716 /* System header to define __stub macros and hopefully few prototypes,
3717 which can conflict with char $ac_func (); below.
3718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3719 <limits.h> exists even on freestanding compilers. */
3720 #ifdef __STDC__
3721 # include <limits.h>
3722 #else
3723 # include <assert.h>
3724 #endif
3725 /* Override any gcc2 internal prototype to avoid an error. */
3726 #ifdef __cplusplus
3727 extern "C"
3729 #endif
3730 /* We use char because int might match the return type of a gcc2
3731 builtin and then its argument prototype would still apply. */
3732 char $ac_func ();
3733 /* The GNU C library defines this for functions which it implements
3734 to always fail with ENOSYS. Some functions are actually named
3735 something starting with __ and the normal name is an alias. */
3736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3737 choke me
3738 #else
3739 char (*f) () = $ac_func;
3740 #endif
3741 #ifdef __cplusplus
3743 #endif
3746 main ()
3748 return f != $ac_func;
3750 return 0;
3752 _ACEOF
3753 rm -f conftest.$ac_objext conftest$ac_exeext
3754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3755 (eval $ac_link) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); } &&
3759 { ac_try='test -s conftest$ac_exeext'
3760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3761 (eval $ac_try) 2>&5
3762 ac_status=$?
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; }; then
3765 eval "$as_ac_var=yes"
3766 else
3767 echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3770 eval "$as_ac_var=no"
3772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3776 if test `eval echo '${'$as_ac_var'}'` = yes; then
3777 cat >>confdefs.h <<_ACEOF
3778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3779 _ACEOF
3780 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS chroot" MAN="$MAN chroot.1"
3782 done
3785 for ac_func in gethostid
3787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3788 echo "$as_me:$LINENO: checking for $ac_func" >&5
3789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3790 if eval "test \"\${$as_ac_var+set}\" = set"; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 else
3793 cat >conftest.$ac_ext <<_ACEOF
3794 #line $LINENO "configure"
3795 /* confdefs.h. */
3796 _ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h. */
3800 /* System header to define __stub macros and hopefully few prototypes,
3801 which can conflict with char $ac_func (); below.
3802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3803 <limits.h> exists even on freestanding compilers. */
3804 #ifdef __STDC__
3805 # include <limits.h>
3806 #else
3807 # include <assert.h>
3808 #endif
3809 /* Override any gcc2 internal prototype to avoid an error. */
3810 #ifdef __cplusplus
3811 extern "C"
3813 #endif
3814 /* We use char because int might match the return type of a gcc2
3815 builtin and then its argument prototype would still apply. */
3816 char $ac_func ();
3817 /* The GNU C library defines this for functions which it implements
3818 to always fail with ENOSYS. Some functions are actually named
3819 something starting with __ and the normal name is an alias. */
3820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3821 choke me
3822 #else
3823 char (*f) () = $ac_func;
3824 #endif
3825 #ifdef __cplusplus
3827 #endif
3830 main ()
3832 return f != $ac_func;
3834 return 0;
3836 _ACEOF
3837 rm -f conftest.$ac_objext conftest$ac_exeext
3838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3839 (eval $ac_link) 2>&5
3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); } &&
3843 { ac_try='test -s conftest$ac_exeext'
3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845 (eval $ac_try) 2>&5
3846 ac_status=$?
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; }; then
3849 eval "$as_ac_var=yes"
3850 else
3851 echo "$as_me: failed program was:" >&5
3852 sed 's/^/| /' conftest.$ac_ext >&5
3854 eval "$as_ac_var=no"
3856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3859 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3860 if test `eval echo '${'$as_ac_var'}'` = yes; then
3861 cat >>confdefs.h <<_ACEOF
3862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3863 _ACEOF
3864 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS hostid" MAN="$MAN hostid.1"
3866 done
3870 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3871 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3872 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 else
3875 ac_check_lib_save_LIBS=$LIBS
3876 LIBS="-lcposix $LIBS"
3877 cat >conftest.$ac_ext <<_ACEOF
3878 #line $LINENO "configure"
3879 /* confdefs.h. */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3885 /* Override any gcc2 internal prototype to avoid an error. */
3886 #ifdef __cplusplus
3887 extern "C"
3888 #endif
3889 /* We use char because int might match the return type of a gcc2
3890 builtin and then its argument prototype would still apply. */
3891 char strerror ();
3893 main ()
3895 strerror ();
3897 return 0;
3899 _ACEOF
3900 rm -f conftest.$ac_objext conftest$ac_exeext
3901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3902 (eval $ac_link) 2>&5
3903 ac_status=$?
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); } &&
3906 { ac_try='test -s conftest$ac_exeext'
3907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908 (eval $ac_try) 2>&5
3909 ac_status=$?
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; }; then
3912 ac_cv_lib_cposix_strerror=yes
3913 else
3914 echo "$as_me: failed program was:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3917 ac_cv_lib_cposix_strerror=no
3919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3920 LIBS=$ac_check_lib_save_LIBS
3922 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3923 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3924 if test $ac_cv_lib_cposix_strerror = yes; then
3925 LIBS="$LIBS -lcposix"
3930 # Check whether --enable-largefile or --disable-largefile was given.
3931 if test "${enable_largefile+set}" = set; then
3932 enableval="$enable_largefile"
3935 if test "$enable_largefile" != no; then
3937 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3938 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3939 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 else
3942 ac_cv_sys_largefile_CC=no
3943 if test "$GCC" != yes; then
3944 ac_save_CC=$CC
3945 while :; do
3946 # IRIX 6.2 and later do not support large files by default,
3947 # so use the C compiler's -n32 option if that helps.
3948 cat >conftest.$ac_ext <<_ACEOF
3949 #line $LINENO "configure"
3950 /* confdefs.h. */
3951 _ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3955 #include <sys/types.h>
3956 /* Check that off_t can represent 2**63 - 1 correctly.
3957 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3958 since some C++ compilers masquerading as C compilers
3959 incorrectly reject 9223372036854775807. */
3960 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3961 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3962 && LARGE_OFF_T % 2147483647 == 1)
3963 ? 1 : -1];
3965 main ()
3969 return 0;
3971 _ACEOF
3972 rm -f conftest.$ac_objext
3973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3974 (eval $ac_compile) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); } &&
3978 { ac_try='test -s conftest.$ac_objext'
3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 (eval $ac_try) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; }; then
3984 break
3985 else
3986 echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3990 rm -f conftest.$ac_objext
3991 CC="$CC -n32"
3992 rm -f conftest.$ac_objext
3993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3994 (eval $ac_compile) 2>&5
3995 ac_status=$?
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); } &&
3998 { ac_try='test -s conftest.$ac_objext'
3999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000 (eval $ac_try) 2>&5
4001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; }; then
4004 ac_cv_sys_largefile_CC=' -n32'; break
4005 else
4006 echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4010 rm -f conftest.$ac_objext
4011 break
4012 done
4013 CC=$ac_save_CC
4014 rm -f conftest.$ac_ext
4017 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4018 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4019 if test "$ac_cv_sys_largefile_CC" != no; then
4020 CC=$CC$ac_cv_sys_largefile_CC
4023 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4024 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4025 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4026 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028 while :; do
4029 ac_cv_sys_file_offset_bits=no
4030 cat >conftest.$ac_ext <<_ACEOF
4031 #line $LINENO "configure"
4032 /* confdefs.h. */
4033 _ACEOF
4034 cat confdefs.h >>conftest.$ac_ext
4035 cat >>conftest.$ac_ext <<_ACEOF
4036 /* end confdefs.h. */
4037 #include <sys/types.h>
4038 /* Check that off_t can represent 2**63 - 1 correctly.
4039 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4040 since some C++ compilers masquerading as C compilers
4041 incorrectly reject 9223372036854775807. */
4042 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4043 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4044 && LARGE_OFF_T % 2147483647 == 1)
4045 ? 1 : -1];
4047 main ()
4051 return 0;
4053 _ACEOF
4054 rm -f conftest.$ac_objext
4055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4056 (eval $ac_compile) 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } &&
4060 { ac_try='test -s conftest.$ac_objext'
4061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4062 (eval $ac_try) 2>&5
4063 ac_status=$?
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); }; }; then
4066 break
4067 else
4068 echo "$as_me: failed program was:" >&5
4069 sed 's/^/| /' conftest.$ac_ext >&5
4072 rm -f conftest.$ac_objext conftest.$ac_ext
4073 cat >conftest.$ac_ext <<_ACEOF
4074 #line $LINENO "configure"
4075 /* confdefs.h. */
4076 _ACEOF
4077 cat confdefs.h >>conftest.$ac_ext
4078 cat >>conftest.$ac_ext <<_ACEOF
4079 /* end confdefs.h. */
4080 #define _FILE_OFFSET_BITS 64
4081 #include <sys/types.h>
4082 /* Check that off_t can represent 2**63 - 1 correctly.
4083 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4084 since some C++ compilers masquerading as C compilers
4085 incorrectly reject 9223372036854775807. */
4086 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4087 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4088 && LARGE_OFF_T % 2147483647 == 1)
4089 ? 1 : -1];
4091 main ()
4095 return 0;
4097 _ACEOF
4098 rm -f conftest.$ac_objext
4099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4100 (eval $ac_compile) 2>&5
4101 ac_status=$?
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } &&
4104 { ac_try='test -s conftest.$ac_objext'
4105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4106 (eval $ac_try) 2>&5
4107 ac_status=$?
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; }; then
4110 ac_cv_sys_file_offset_bits=64; break
4111 else
4112 echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4116 rm -f conftest.$ac_objext conftest.$ac_ext
4117 break
4118 done
4120 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4121 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4122 if test "$ac_cv_sys_file_offset_bits" != no; then
4124 cat >>confdefs.h <<_ACEOF
4125 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4126 _ACEOF
4129 rm -f conftest*
4130 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4131 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4132 if test "${ac_cv_sys_large_files+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135 while :; do
4136 ac_cv_sys_large_files=no
4137 cat >conftest.$ac_ext <<_ACEOF
4138 #line $LINENO "configure"
4139 /* confdefs.h. */
4140 _ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4144 #include <sys/types.h>
4145 /* Check that off_t can represent 2**63 - 1 correctly.
4146 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4147 since some C++ compilers masquerading as C compilers
4148 incorrectly reject 9223372036854775807. */
4149 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4150 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4151 && LARGE_OFF_T % 2147483647 == 1)
4152 ? 1 : -1];
4154 main ()
4158 return 0;
4160 _ACEOF
4161 rm -f conftest.$ac_objext
4162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4163 (eval $ac_compile) 2>&5
4164 ac_status=$?
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } &&
4167 { ac_try='test -s conftest.$ac_objext'
4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 (eval $ac_try) 2>&5
4170 ac_status=$?
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; }; then
4173 break
4174 else
4175 echo "$as_me: failed program was:" >&5
4176 sed 's/^/| /' conftest.$ac_ext >&5
4179 rm -f conftest.$ac_objext conftest.$ac_ext
4180 cat >conftest.$ac_ext <<_ACEOF
4181 #line $LINENO "configure"
4182 /* confdefs.h. */
4183 _ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4187 #define _LARGE_FILES 1
4188 #include <sys/types.h>
4189 /* Check that off_t can represent 2**63 - 1 correctly.
4190 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4191 since some C++ compilers masquerading as C compilers
4192 incorrectly reject 9223372036854775807. */
4193 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4194 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4195 && LARGE_OFF_T % 2147483647 == 1)
4196 ? 1 : -1];
4198 main ()
4202 return 0;
4204 _ACEOF
4205 rm -f conftest.$ac_objext
4206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4207 (eval $ac_compile) 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } &&
4211 { ac_try='test -s conftest.$ac_objext'
4212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 (eval $ac_try) 2>&5
4214 ac_status=$?
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
4217 ac_cv_sys_large_files=1; break
4218 else
4219 echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4223 rm -f conftest.$ac_objext conftest.$ac_ext
4224 break
4225 done
4227 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4228 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4229 if test "$ac_cv_sys_large_files" != no; then
4231 cat >>confdefs.h <<_ACEOF
4232 #define _LARGE_FILES $ac_cv_sys_large_files
4233 _ACEOF
4236 rm -f conftest*
4242 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4243 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
4244 if test "${am_cv_prog_cc_stdc+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247 am_cv_prog_cc_stdc=no
4248 ac_save_CC="$CC"
4249 # Don't try gcc -ansi; that turns off useful extensions and
4250 # breaks some systems' header files.
4251 # AIX -qlanglvl=ansi
4252 # Ultrix and OSF/1 -std1
4253 # HP-UX 10.20 and later -Ae
4254 # HP-UX older versions -Aa -D_HPUX_SOURCE
4255 # SVR4 -Xc -D__EXTENSIONS__
4256 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4258 CC="$ac_save_CC $ac_arg"
4259 cat >conftest.$ac_ext <<_ACEOF
4260 #line $LINENO "configure"
4261 /* confdefs.h. */
4262 _ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4266 #include <stdarg.h>
4267 #include <stdio.h>
4268 #include <sys/types.h>
4269 #include <sys/stat.h>
4270 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4271 struct buf { int x; };
4272 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4273 static char *e (p, i)
4274 char **p;
4275 int i;
4277 return p[i];
4279 static char *f (char * (*g) (char **, int), char **p, ...)
4281 char *s;
4282 va_list v;
4283 va_start (v,p);
4284 s = g (p, va_arg (v,int));
4285 va_end (v);
4286 return s;
4288 int test (int i, double x);
4289 struct s1 {int (*f) (int a);};
4290 struct s2 {int (*f) (double a);};
4291 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4292 int argc;
4293 char **argv;
4296 main ()
4299 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4302 return 0;
4304 _ACEOF
4305 rm -f conftest.$ac_objext
4306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4307 (eval $ac_compile) 2>&5
4308 ac_status=$?
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } &&
4311 { ac_try='test -s conftest.$ac_objext'
4312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313 (eval $ac_try) 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; }; then
4317 am_cv_prog_cc_stdc="$ac_arg"; break
4318 else
4319 echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4323 rm -f conftest.$ac_objext conftest.$ac_ext
4324 done
4325 CC="$ac_save_CC"
4329 if test -z "$am_cv_prog_cc_stdc"; then
4330 echo "$as_me:$LINENO: result: none needed" >&5
4331 echo "${ECHO_T}none needed" >&6
4332 else
4333 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4334 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
4336 case "x$am_cv_prog_cc_stdc" in
4337 x|xno) ;;
4338 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4339 esac
4343 echo "$as_me:$LINENO: checking for function prototypes" >&5
4344 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
4345 if test "$am_cv_prog_cc_stdc" != no; then
4346 echo "$as_me:$LINENO: result: yes" >&5
4347 echo "${ECHO_T}yes" >&6
4349 cat >>confdefs.h <<\_ACEOF
4350 #define PROTOTYPES 1
4351 _ACEOF
4353 U= ANSI2KNR=
4354 else
4355 echo "$as_me:$LINENO: result: no" >&5
4356 echo "${ECHO_T}no" >&6
4357 U=_ ANSI2KNR=./ansi2knr
4359 # Ensure some checks needed by ansi2knr itself.
4360 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4361 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4362 if test "${ac_cv_header_stdc+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365 cat >conftest.$ac_ext <<_ACEOF
4366 #line $LINENO "configure"
4367 /* confdefs.h. */
4368 _ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4372 #include <stdlib.h>
4373 #include <stdarg.h>
4374 #include <string.h>
4375 #include <float.h>
4378 main ()
4382 return 0;
4384 _ACEOF
4385 rm -f conftest.$ac_objext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4387 (eval $ac_compile) 2>&5
4388 ac_status=$?
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } &&
4391 { ac_try='test -s conftest.$ac_objext'
4392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 (eval $ac_try) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then
4397 ac_cv_header_stdc=yes
4398 else
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4402 ac_cv_header_stdc=no
4404 rm -f conftest.$ac_objext conftest.$ac_ext
4406 if test $ac_cv_header_stdc = yes; then
4407 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4408 cat >conftest.$ac_ext <<_ACEOF
4409 #line $LINENO "configure"
4410 /* confdefs.h. */
4411 _ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4415 #include <string.h>
4417 _ACEOF
4418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4419 $EGREP "memchr" >/dev/null 2>&1; then
4421 else
4422 ac_cv_header_stdc=no
4424 rm -f conftest*
4428 if test $ac_cv_header_stdc = yes; then
4429 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4430 cat >conftest.$ac_ext <<_ACEOF
4431 #line $LINENO "configure"
4432 /* confdefs.h. */
4433 _ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4437 #include <stdlib.h>
4439 _ACEOF
4440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4441 $EGREP "free" >/dev/null 2>&1; then
4443 else
4444 ac_cv_header_stdc=no
4446 rm -f conftest*
4450 if test $ac_cv_header_stdc = yes; then
4451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4452 if test "$cross_compiling" = yes; then
4454 else
4455 cat >conftest.$ac_ext <<_ACEOF
4456 #line $LINENO "configure"
4457 /* confdefs.h. */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4462 #include <ctype.h>
4463 #if ((' ' & 0x0FF) == 0x020)
4464 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4465 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4466 #else
4467 # define ISLOWER(c) \
4468 (('a' <= (c) && (c) <= 'i') \
4469 || ('j' <= (c) && (c) <= 'r') \
4470 || ('s' <= (c) && (c) <= 'z'))
4471 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4472 #endif
4474 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4476 main ()
4478 int i;
4479 for (i = 0; i < 256; i++)
4480 if (XOR (islower (i), ISLOWER (i))
4481 || toupper (i) != TOUPPER (i))
4482 exit(2);
4483 exit (0);
4485 _ACEOF
4486 rm -f conftest$ac_exeext
4487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4488 (eval $ac_link) 2>&5
4489 ac_status=$?
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4493 (eval $ac_try) 2>&5
4494 ac_status=$?
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; }; then
4498 else
4499 echo "$as_me: program exited with status $ac_status" >&5
4500 echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4503 ( exit $ac_status )
4504 ac_cv_header_stdc=no
4506 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4510 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4511 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4512 if test $ac_cv_header_stdc = yes; then
4514 cat >>confdefs.h <<\_ACEOF
4515 #define STDC_HEADERS 1
4516 _ACEOF
4521 for ac_header in string.h
4523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4525 echo "$as_me:$LINENO: checking for $ac_header" >&5
4526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4532 else
4533 # Is the header compilable?
4534 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4536 cat >conftest.$ac_ext <<_ACEOF
4537 #line $LINENO "configure"
4538 /* confdefs.h. */
4539 _ACEOF
4540 cat confdefs.h >>conftest.$ac_ext
4541 cat >>conftest.$ac_ext <<_ACEOF
4542 /* end confdefs.h. */
4543 $ac_includes_default
4544 #include <$ac_header>
4545 _ACEOF
4546 rm -f conftest.$ac_objext
4547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4548 (eval $ac_compile) 2>&5
4549 ac_status=$?
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); } &&
4552 { ac_try='test -s conftest.$ac_objext'
4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4554 (eval $ac_try) 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; }; then
4558 ac_header_compiler=yes
4559 else
4560 echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4563 ac_header_compiler=no
4565 rm -f conftest.$ac_objext conftest.$ac_ext
4566 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4567 echo "${ECHO_T}$ac_header_compiler" >&6
4569 # Is the header present?
4570 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4572 cat >conftest.$ac_ext <<_ACEOF
4573 #line $LINENO "configure"
4574 /* confdefs.h. */
4575 _ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h. */
4579 #include <$ac_header>
4580 _ACEOF
4581 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4583 ac_status=$?
4584 grep -v '^ *+' conftest.er1 >conftest.err
4585 rm -f conftest.er1
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } >/dev/null; then
4589 if test -s conftest.err; then
4590 ac_cpp_err=$ac_c_preproc_warn_flag
4591 else
4592 ac_cpp_err=
4594 else
4595 ac_cpp_err=yes
4597 if test -z "$ac_cpp_err"; then
4598 ac_header_preproc=yes
4599 else
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4603 ac_header_preproc=no
4605 rm -f conftest.err conftest.$ac_ext
4606 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4607 echo "${ECHO_T}$ac_header_preproc" >&6
4609 # So? What about this header?
4610 case $ac_header_compiler:$ac_header_preproc in
4611 yes:no )
4612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4617 cat <<\_ASBOX
4618 ## ------------------------------------ ##
4619 ## Report this to bug-autoconf@gnu.org. ##
4620 ## ------------------------------------ ##
4621 _ASBOX
4623 sed "s/^/$as_me: WARNING: /" >&2
4625 no:yes )
4626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4633 cat <<\_ASBOX
4634 ## ------------------------------------ ##
4635 ## Report this to bug-autoconf@gnu.org. ##
4636 ## ------------------------------------ ##
4637 _ASBOX
4639 sed "s/^/$as_me: WARNING: /" >&2
4641 esac
4642 echo "$as_me:$LINENO: checking for $ac_header" >&5
4643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647 eval "$as_ac_Header=$ac_header_preproc"
4649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4654 cat >>confdefs.h <<_ACEOF
4655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4656 _ACEOF
4660 done
4663 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4664 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4665 if test "${ac_cv_c_bigendian+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668 # See if sys/param.h defines the BYTE_ORDER macro.
4669 cat >conftest.$ac_ext <<_ACEOF
4670 #line $LINENO "configure"
4671 /* confdefs.h. */
4672 _ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4676 #include <sys/types.h>
4677 #include <sys/param.h>
4680 main ()
4682 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4683 bogus endian macros
4684 #endif
4687 return 0;
4689 _ACEOF
4690 rm -f conftest.$ac_objext
4691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4692 (eval $ac_compile) 2>&5
4693 ac_status=$?
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } &&
4696 { ac_try='test -s conftest.$ac_objext'
4697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698 (eval $ac_try) 2>&5
4699 ac_status=$?
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; }; then
4702 # It does; now see whether it defined to BIG_ENDIAN or not.
4703 cat >conftest.$ac_ext <<_ACEOF
4704 #line $LINENO "configure"
4705 /* confdefs.h. */
4706 _ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4710 #include <sys/types.h>
4711 #include <sys/param.h>
4714 main ()
4716 #if BYTE_ORDER != BIG_ENDIAN
4717 not big endian
4718 #endif
4721 return 0;
4723 _ACEOF
4724 rm -f conftest.$ac_objext
4725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4726 (eval $ac_compile) 2>&5
4727 ac_status=$?
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } &&
4730 { ac_try='test -s conftest.$ac_objext'
4731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 (eval $ac_try) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; }; then
4736 ac_cv_c_bigendian=yes
4737 else
4738 echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4741 ac_cv_c_bigendian=no
4743 rm -f conftest.$ac_objext conftest.$ac_ext
4744 else
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4748 # It does not; compile a test program.
4749 if test "$cross_compiling" = yes; then
4750 # try to guess the endianness by grepping values into an object file
4751 ac_cv_c_bigendian=unknown
4752 cat >conftest.$ac_ext <<_ACEOF
4753 #line $LINENO "configure"
4754 /* confdefs.h. */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4760 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4761 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4762 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4763 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4764 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4766 main ()
4768 _ascii (); _ebcdic ();
4770 return 0;
4772 _ACEOF
4773 rm -f conftest.$ac_objext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775 (eval $ac_compile) 2>&5
4776 ac_status=$?
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } &&
4779 { ac_try='test -s conftest.$ac_objext'
4780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 (eval $ac_try) 2>&5
4782 ac_status=$?
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); }; }; then
4785 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4786 ac_cv_c_bigendian=yes
4788 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4789 if test "$ac_cv_c_bigendian" = unknown; then
4790 ac_cv_c_bigendian=no
4791 else
4792 # finding both strings is unlikely to happen, but who knows?
4793 ac_cv_c_bigendian=unknown
4796 else
4797 echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4801 rm -f conftest.$ac_objext conftest.$ac_ext
4802 else
4803 cat >conftest.$ac_ext <<_ACEOF
4804 #line $LINENO "configure"
4805 /* confdefs.h. */
4806 _ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4811 main ()
4813 /* Are we little or big endian? From Harbison&Steele. */
4814 union
4816 long l;
4817 char c[sizeof (long)];
4818 } u;
4819 u.l = 1;
4820 exit (u.c[sizeof (long) - 1] == 1);
4822 _ACEOF
4823 rm -f conftest$ac_exeext
4824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4825 (eval $ac_link) 2>&5
4826 ac_status=$?
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830 (eval $ac_try) 2>&5
4831 ac_status=$?
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); }; }; then
4834 ac_cv_c_bigendian=no
4835 else
4836 echo "$as_me: program exited with status $ac_status" >&5
4837 echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4840 ( exit $ac_status )
4841 ac_cv_c_bigendian=yes
4843 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4846 rm -f conftest.$ac_objext conftest.$ac_ext
4848 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4849 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4850 case $ac_cv_c_bigendian in
4851 yes)
4853 cat >>confdefs.h <<\_ACEOF
4854 #define WORDS_BIGENDIAN 1
4855 _ACEOF
4860 { { echo "$as_me:$LINENO: error: unknown endianness
4861 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4862 echo "$as_me: error: unknown endianness
4863 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4864 { (exit 1); exit 1; }; } ;;
4865 esac
4867 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4868 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4869 if test "${ac_cv_c_const+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 else
4872 cat >conftest.$ac_ext <<_ACEOF
4873 #line $LINENO "configure"
4874 /* confdefs.h. */
4875 _ACEOF
4876 cat confdefs.h >>conftest.$ac_ext
4877 cat >>conftest.$ac_ext <<_ACEOF
4878 /* end confdefs.h. */
4881 main ()
4883 /* FIXME: Include the comments suggested by Paul. */
4884 #ifndef __cplusplus
4885 /* Ultrix mips cc rejects this. */
4886 typedef int charset[2];
4887 const charset x;
4888 /* SunOS 4.1.1 cc rejects this. */
4889 char const *const *ccp;
4890 char **p;
4891 /* NEC SVR4.0.2 mips cc rejects this. */
4892 struct point {int x, y;};
4893 static struct point const zero = {0,0};
4894 /* AIX XL C 1.02.0.0 rejects this.
4895 It does not let you subtract one const X* pointer from another in
4896 an arm of an if-expression whose if-part is not a constant
4897 expression */
4898 const char *g = "string";
4899 ccp = &g + (g ? g-g : 0);
4900 /* HPUX 7.0 cc rejects these. */
4901 ++ccp;
4902 p = (char**) ccp;
4903 ccp = (char const *const *) p;
4904 { /* SCO 3.2v4 cc rejects this. */
4905 char *t;
4906 char const *s = 0 ? (char *) 0 : (char const *) 0;
4908 *t++ = 0;
4910 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4911 int x[] = {25, 17};
4912 const int *foo = &x[0];
4913 ++foo;
4915 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4916 typedef const int *iptr;
4917 iptr p = 0;
4918 ++p;
4920 { /* AIX XL C 1.02.0.0 rejects this saying
4921 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4922 struct s { int j; const int *ap[3]; };
4923 struct s *b; b->j = 5;
4925 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4926 const int foo = 10;
4928 #endif
4931 return 0;
4933 _ACEOF
4934 rm -f conftest.$ac_objext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936 (eval $ac_compile) 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } &&
4940 { ac_try='test -s conftest.$ac_objext'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 (eval $ac_try) 2>&5
4943 ac_status=$?
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4946 ac_cv_c_const=yes
4947 else
4948 echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.$ac_ext >&5
4951 ac_cv_c_const=no
4953 rm -f conftest.$ac_objext conftest.$ac_ext
4955 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4956 echo "${ECHO_T}$ac_cv_c_const" >&6
4957 if test $ac_cv_c_const = no; then
4959 cat >>confdefs.h <<\_ACEOF
4960 #define const
4961 _ACEOF
4965 echo "$as_me:$LINENO: checking for working volatile" >&5
4966 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4967 if test "${ac_cv_c_volatile+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 else
4970 cat >conftest.$ac_ext <<_ACEOF
4971 #line $LINENO "configure"
4972 /* confdefs.h. */
4973 _ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h. */
4979 main ()
4982 volatile int x;
4983 int * volatile y;
4985 return 0;
4987 _ACEOF
4988 rm -f conftest.$ac_objext
4989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4990 (eval $ac_compile) 2>&5
4991 ac_status=$?
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } &&
4994 { ac_try='test -s conftest.$ac_objext'
4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996 (eval $ac_try) 2>&5
4997 ac_status=$?
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; }; then
5000 ac_cv_c_volatile=yes
5001 else
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5005 ac_cv_c_volatile=no
5007 rm -f conftest.$ac_objext conftest.$ac_ext
5009 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5010 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5011 if test $ac_cv_c_volatile = no; then
5013 cat >>confdefs.h <<\_ACEOF
5014 #define volatile
5015 _ACEOF
5019 echo "$as_me:$LINENO: checking for inline" >&5
5020 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5021 if test "${ac_cv_c_inline+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024 ac_cv_c_inline=no
5025 for ac_kw in inline __inline__ __inline; do
5026 cat >conftest.$ac_ext <<_ACEOF
5027 #line $LINENO "configure"
5028 /* confdefs.h. */
5029 _ACEOF
5030 cat confdefs.h >>conftest.$ac_ext
5031 cat >>conftest.$ac_ext <<_ACEOF
5032 /* end confdefs.h. */
5033 #ifndef __cplusplus
5034 typedef int foo_t;
5035 static $ac_kw foo_t static_foo () {return 0; }
5036 $ac_kw foo_t foo () {return 0; }
5037 #endif
5039 _ACEOF
5040 rm -f conftest.$ac_objext
5041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5042 (eval $ac_compile) 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } &&
5046 { ac_try='test -s conftest.$ac_objext'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 (eval $ac_try) 2>&5
5049 ac_status=$?
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; }; then
5052 ac_cv_c_inline=$ac_kw; break
5053 else
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5058 rm -f conftest.$ac_objext conftest.$ac_ext
5059 done
5062 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5063 echo "${ECHO_T}$ac_cv_c_inline" >&6
5064 case $ac_cv_c_inline in
5065 inline | yes) ;;
5067 cat >>confdefs.h <<\_ACEOF
5068 #define inline
5069 _ACEOF
5071 *) cat >>confdefs.h <<_ACEOF
5072 #define inline $ac_cv_c_inline
5073 _ACEOF
5075 esac
5077 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
5078 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
5079 if test "${ac_cv_c_long_double+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5081 else
5082 cat >conftest.$ac_ext <<_ACEOF
5083 #line $LINENO "configure"
5084 /* confdefs.h. */
5085 _ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5089 #include <float.h>
5090 long double foo = 0.0;
5092 main ()
5094 static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
5095 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
5096 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))];
5097 test_array [0] = 0
5100 return 0;
5102 _ACEOF
5103 rm -f conftest.$ac_objext
5104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5105 (eval $ac_compile) 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } &&
5109 { ac_try='test -s conftest.$ac_objext'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 (eval $ac_try) 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
5115 ac_cv_c_long_double=yes
5116 else
5117 echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.$ac_ext >&5
5120 ac_cv_c_long_double=no
5122 rm -f conftest.$ac_objext conftest.$ac_ext
5124 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
5125 echo "${ECHO_T}$ac_cv_c_long_double" >&6
5126 if test $ac_cv_c_long_double = yes; then
5128 cat >>confdefs.h <<\_ACEOF
5129 #define HAVE_LONG_DOUBLE 1
5130 _ACEOF
5172 for ac_header in \
5173 errno.h \
5174 fcntl.h \
5175 float.h \
5176 hurd.h \
5177 limits.h \
5178 memory.h \
5179 mntent.h \
5180 mnttab.h \
5181 netdb.h \
5182 paths.h \
5183 stdlib.h \
5184 stddef.h \
5185 stdint.h \
5186 string.h \
5187 sys/filsys.h \
5188 sys/fs/s5param.h \
5189 sys/fs_types.h \
5190 sys/fstyp.h \
5191 sys/ioctl.h \
5192 sys/mntent.h \
5193 sys/mount.h \
5194 sys/param.h \
5195 sys/resource.h \
5196 sys/socket.h \
5197 sys/statfs.h \
5198 sys/statvfs.h \
5199 sys/sysctl.h \
5200 sys/systeminfo.h \
5201 sys/time.h \
5202 sys/timeb.h \
5203 sys/vfs.h \
5204 sys/wait.h \
5205 syslog.h \
5206 termios.h \
5207 unistd.h \
5208 utime.h \
5209 values.h \
5212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5214 echo "$as_me:$LINENO: checking for $ac_header" >&5
5215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5221 else
5222 # Is the header compilable?
5223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5225 cat >conftest.$ac_ext <<_ACEOF
5226 #line $LINENO "configure"
5227 /* confdefs.h. */
5228 _ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h. */
5232 $ac_includes_default
5233 #include <$ac_header>
5234 _ACEOF
5235 rm -f conftest.$ac_objext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5237 (eval $ac_compile) 2>&5
5238 ac_status=$?
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try='test -s conftest.$ac_objext'
5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5243 (eval $ac_try) 2>&5
5244 ac_status=$?
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; }; then
5247 ac_header_compiler=yes
5248 else
5249 echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.$ac_ext >&5
5252 ac_header_compiler=no
5254 rm -f conftest.$ac_objext conftest.$ac_ext
5255 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5256 echo "${ECHO_T}$ac_header_compiler" >&6
5258 # Is the header present?
5259 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5260 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5261 cat >conftest.$ac_ext <<_ACEOF
5262 #line $LINENO "configure"
5263 /* confdefs.h. */
5264 _ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5268 #include <$ac_header>
5269 _ACEOF
5270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5272 ac_status=$?
5273 grep -v '^ *+' conftest.er1 >conftest.err
5274 rm -f conftest.er1
5275 cat conftest.err >&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); } >/dev/null; then
5278 if test -s conftest.err; then
5279 ac_cpp_err=$ac_c_preproc_warn_flag
5280 else
5281 ac_cpp_err=
5283 else
5284 ac_cpp_err=yes
5286 if test -z "$ac_cpp_err"; then
5287 ac_header_preproc=yes
5288 else
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5292 ac_header_preproc=no
5294 rm -f conftest.err conftest.$ac_ext
5295 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5296 echo "${ECHO_T}$ac_header_preproc" >&6
5298 # So? What about this header?
5299 case $ac_header_compiler:$ac_header_preproc in
5300 yes:no )
5301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5306 cat <<\_ASBOX
5307 ## ------------------------------------ ##
5308 ## Report this to bug-autoconf@gnu.org. ##
5309 ## ------------------------------------ ##
5310 _ASBOX
5312 sed "s/^/$as_me: WARNING: /" >&2
5314 no:yes )
5315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5318 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5322 cat <<\_ASBOX
5323 ## ------------------------------------ ##
5324 ## Report this to bug-autoconf@gnu.org. ##
5325 ## ------------------------------------ ##
5326 _ASBOX
5328 sed "s/^/$as_me: WARNING: /" >&2
5330 esac
5331 echo "$as_me:$LINENO: checking for $ac_header" >&5
5332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 else
5336 eval "$as_ac_Header=$ac_header_preproc"
5338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5343 cat >>confdefs.h <<_ACEOF
5344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5345 _ACEOF
5349 done
5357 ac_header_dirent=no
5358 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5359 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5360 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5361 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5364 else
5365 cat >conftest.$ac_ext <<_ACEOF
5366 #line $LINENO "configure"
5367 /* confdefs.h. */
5368 _ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h. */
5372 #include <sys/types.h>
5373 #include <$ac_hdr>
5376 main ()
5378 if ((DIR *) 0)
5379 return 0;
5381 return 0;
5383 _ACEOF
5384 rm -f conftest.$ac_objext
5385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5386 (eval $ac_compile) 2>&5
5387 ac_status=$?
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } &&
5390 { ac_try='test -s conftest.$ac_objext'
5391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392 (eval $ac_try) 2>&5
5393 ac_status=$?
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; }; then
5396 eval "$as_ac_Header=yes"
5397 else
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5401 eval "$as_ac_Header=no"
5403 rm -f conftest.$ac_objext conftest.$ac_ext
5405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5408 cat >>confdefs.h <<_ACEOF
5409 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5410 _ACEOF
5412 ac_header_dirent=$ac_hdr; break
5415 done
5416 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5417 if test $ac_header_dirent = dirent.h; then
5419 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5420 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5421 if test "${ac_cv_search_opendir+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 else
5425 ac_func_search_save_LIBS=$LIBS
5426 ac_cv_search_opendir=no
5427 cat >conftest.$ac_ext <<_ACEOF
5428 #line $LINENO "configure"
5429 /* confdefs.h. */
5430 _ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h. */
5435 /* Override any gcc2 internal prototype to avoid an error. */
5436 #ifdef __cplusplus
5437 extern "C"
5438 #endif
5439 /* We use char because int might match the return type of a gcc2
5440 builtin and then its argument prototype would still apply. */
5441 char opendir ();
5443 main ()
5445 opendir ();
5447 return 0;
5449 _ACEOF
5450 rm -f conftest.$ac_objext conftest$ac_exeext
5451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5452 (eval $ac_link) 2>&5
5453 ac_status=$?
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); } &&
5456 { ac_try='test -s conftest$ac_exeext'
5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458 (eval $ac_try) 2>&5
5459 ac_status=$?
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; }; then
5462 ac_cv_search_opendir='none required'
5463 else
5464 echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5469 if test "$ac_cv_search_opendir" = no; then
5470 for ac_lib in dir; do
5471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5472 cat >conftest.$ac_ext <<_ACEOF
5473 #line $LINENO "configure"
5474 /* confdefs.h. */
5475 _ACEOF
5476 cat confdefs.h >>conftest.$ac_ext
5477 cat >>conftest.$ac_ext <<_ACEOF
5478 /* end confdefs.h. */
5480 /* Override any gcc2 internal prototype to avoid an error. */
5481 #ifdef __cplusplus
5482 extern "C"
5483 #endif
5484 /* We use char because int might match the return type of a gcc2
5485 builtin and then its argument prototype would still apply. */
5486 char opendir ();
5488 main ()
5490 opendir ();
5492 return 0;
5494 _ACEOF
5495 rm -f conftest.$ac_objext conftest$ac_exeext
5496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5497 (eval $ac_link) 2>&5
5498 ac_status=$?
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); } &&
5501 { ac_try='test -s conftest$ac_exeext'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503 (eval $ac_try) 2>&5
5504 ac_status=$?
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; }; then
5507 ac_cv_search_opendir="-l$ac_lib"; break
5508 else
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5514 done
5516 LIBS=$ac_func_search_save_LIBS
5519 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5520 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5522 if test "$ac_cv_search_opendir" = no; then :
5524 else
5525 if test "$ac_cv_search_opendir" = 'none required'; then :
5527 else
5528 LIBS="$ac_cv_search_opendir $LIBS"
5533 else
5535 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5536 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5537 if test "${ac_cv_search_opendir+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5539 else
5541 ac_func_search_save_LIBS=$LIBS
5542 ac_cv_search_opendir=no
5543 cat >conftest.$ac_ext <<_ACEOF
5544 #line $LINENO "configure"
5545 /* confdefs.h. */
5546 _ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h. */
5551 /* Override any gcc2 internal prototype to avoid an error. */
5552 #ifdef __cplusplus
5553 extern "C"
5554 #endif
5555 /* We use char because int might match the return type of a gcc2
5556 builtin and then its argument prototype would still apply. */
5557 char opendir ();
5559 main ()
5561 opendir ();
5563 return 0;
5565 _ACEOF
5566 rm -f conftest.$ac_objext conftest$ac_exeext
5567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5568 (eval $ac_link) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); } &&
5572 { ac_try='test -s conftest$ac_exeext'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 (eval $ac_try) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 ac_cv_search_opendir='none required'
5579 else
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5585 if test "$ac_cv_search_opendir" = no; then
5586 for ac_lib in x; do
5587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5588 cat >conftest.$ac_ext <<_ACEOF
5589 #line $LINENO "configure"
5590 /* confdefs.h. */
5591 _ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5596 /* Override any gcc2 internal prototype to avoid an error. */
5597 #ifdef __cplusplus
5598 extern "C"
5599 #endif
5600 /* We use char because int might match the return type of a gcc2
5601 builtin and then its argument prototype would still apply. */
5602 char opendir ();
5604 main ()
5606 opendir ();
5608 return 0;
5610 _ACEOF
5611 rm -f conftest.$ac_objext conftest$ac_exeext
5612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5613 (eval $ac_link) 2>&5
5614 ac_status=$?
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } &&
5617 { ac_try='test -s conftest$ac_exeext'
5618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 (eval $ac_try) 2>&5
5620 ac_status=$?
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
5623 ac_cv_search_opendir="-l$ac_lib"; break
5624 else
5625 echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5630 done
5632 LIBS=$ac_func_search_save_LIBS
5635 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5636 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5638 if test "$ac_cv_search_opendir" = no; then :
5640 else
5641 if test "$ac_cv_search_opendir" = 'none required'; then :
5643 else
5644 LIBS="$ac_cv_search_opendir $LIBS"
5651 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
5652 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
5653 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 else
5656 cat >conftest.$ac_ext <<_ACEOF
5657 #line $LINENO "configure"
5658 /* confdefs.h. */
5659 _ACEOF
5660 cat confdefs.h >>conftest.$ac_ext
5661 cat >>conftest.$ac_ext <<_ACEOF
5662 /* end confdefs.h. */
5663 $ac_includes_default
5665 main ()
5667 static struct stat ac_aggr;
5668 if (ac_aggr.st_blocks)
5669 return 0;
5671 return 0;
5673 _ACEOF
5674 rm -f conftest.$ac_objext
5675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5676 (eval $ac_compile) 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } &&
5680 { ac_try='test -s conftest.$ac_objext'
5681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 (eval $ac_try) 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5686 ac_cv_member_struct_stat_st_blocks=yes
5687 else
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5691 cat >conftest.$ac_ext <<_ACEOF
5692 #line $LINENO "configure"
5693 /* confdefs.h. */
5694 _ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5698 $ac_includes_default
5700 main ()
5702 static struct stat ac_aggr;
5703 if (sizeof ac_aggr.st_blocks)
5704 return 0;
5706 return 0;
5708 _ACEOF
5709 rm -f conftest.$ac_objext
5710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5711 (eval $ac_compile) 2>&5
5712 ac_status=$?
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } &&
5715 { ac_try='test -s conftest.$ac_objext'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 (eval $ac_try) 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; }; then
5721 ac_cv_member_struct_stat_st_blocks=yes
5722 else
5723 echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5726 ac_cv_member_struct_stat_st_blocks=no
5728 rm -f conftest.$ac_objext conftest.$ac_ext
5730 rm -f conftest.$ac_objext conftest.$ac_ext
5732 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
5733 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
5734 if test $ac_cv_member_struct_stat_st_blocks = yes; then
5736 cat >>confdefs.h <<_ACEOF
5737 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
5738 _ACEOF
5741 cat >>confdefs.h <<\_ACEOF
5742 #define HAVE_ST_BLOCKS 1
5743 _ACEOF
5745 else
5746 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
5750 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5751 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5752 if test "${ac_cv_struct_tm+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755 cat >conftest.$ac_ext <<_ACEOF
5756 #line $LINENO "configure"
5757 /* confdefs.h. */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5762 #include <sys/types.h>
5763 #include <time.h>
5766 main ()
5768 struct tm *tp; tp->tm_sec;
5770 return 0;
5772 _ACEOF
5773 rm -f conftest.$ac_objext
5774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5775 (eval $ac_compile) 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } &&
5779 { ac_try='test -s conftest.$ac_objext'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5781 (eval $ac_try) 2>&5
5782 ac_status=$?
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then
5785 ac_cv_struct_tm=time.h
5786 else
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5790 ac_cv_struct_tm=sys/time.h
5792 rm -f conftest.$ac_objext conftest.$ac_ext
5794 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5795 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5796 if test $ac_cv_struct_tm = sys/time.h; then
5798 cat >>confdefs.h <<\_ACEOF
5799 #define TM_IN_SYS_TIME 1
5800 _ACEOF
5804 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5805 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5806 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5809 cat >conftest.$ac_ext <<_ACEOF
5810 #line $LINENO "configure"
5811 /* confdefs.h. */
5812 _ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5816 #include <sys/types.h>
5817 #include <$ac_cv_struct_tm>
5821 main ()
5823 static struct tm ac_aggr;
5824 if (ac_aggr.tm_zone)
5825 return 0;
5827 return 0;
5829 _ACEOF
5830 rm -f conftest.$ac_objext
5831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5832 (eval $ac_compile) 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } &&
5836 { ac_try='test -s conftest.$ac_objext'
5837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5838 (eval $ac_try) 2>&5
5839 ac_status=$?
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; }; then
5842 ac_cv_member_struct_tm_tm_zone=yes
5843 else
5844 echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.$ac_ext >&5
5847 cat >conftest.$ac_ext <<_ACEOF
5848 #line $LINENO "configure"
5849 /* confdefs.h. */
5850 _ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 #include <sys/types.h>
5855 #include <$ac_cv_struct_tm>
5859 main ()
5861 static struct tm ac_aggr;
5862 if (sizeof ac_aggr.tm_zone)
5863 return 0;
5865 return 0;
5867 _ACEOF
5868 rm -f conftest.$ac_objext
5869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5870 (eval $ac_compile) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try='test -s conftest.$ac_objext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5880 ac_cv_member_struct_tm_tm_zone=yes
5881 else
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5885 ac_cv_member_struct_tm_tm_zone=no
5887 rm -f conftest.$ac_objext conftest.$ac_ext
5889 rm -f conftest.$ac_objext conftest.$ac_ext
5891 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5892 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5893 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5895 cat >>confdefs.h <<_ACEOF
5896 #define HAVE_STRUCT_TM_TM_ZONE 1
5897 _ACEOF
5902 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5904 cat >>confdefs.h <<\_ACEOF
5905 #define HAVE_TM_ZONE 1
5906 _ACEOF
5908 else
5909 echo "$as_me:$LINENO: checking for tzname" >&5
5910 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5911 if test "${ac_cv_var_tzname+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914 cat >conftest.$ac_ext <<_ACEOF
5915 #line $LINENO "configure"
5916 /* confdefs.h. */
5917 _ACEOF
5918 cat confdefs.h >>conftest.$ac_ext
5919 cat >>conftest.$ac_ext <<_ACEOF
5920 /* end confdefs.h. */
5921 #include <time.h>
5922 #ifndef tzname /* For SGI. */
5923 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5924 #endif
5927 main ()
5929 atoi(*tzname);
5931 return 0;
5933 _ACEOF
5934 rm -f conftest.$ac_objext conftest$ac_exeext
5935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5936 (eval $ac_link) 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } &&
5940 { ac_try='test -s conftest$ac_exeext'
5941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 (eval $ac_try) 2>&5
5943 ac_status=$?
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; }; then
5946 ac_cv_var_tzname=yes
5947 else
5948 echo "$as_me: failed program was:" >&5
5949 sed 's/^/| /' conftest.$ac_ext >&5
5951 ac_cv_var_tzname=no
5953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5955 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5956 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5957 if test $ac_cv_var_tzname = yes; then
5959 cat >>confdefs.h <<\_ACEOF
5960 #define HAVE_TZNAME 1
5961 _ACEOF
5966 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5967 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5968 if test "${ac_cv_header_stat_broken+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971 cat >conftest.$ac_ext <<_ACEOF
5972 #line $LINENO "configure"
5973 /* confdefs.h. */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h. */
5978 #include <sys/types.h>
5979 #include <sys/stat.h>
5981 #if defined(S_ISBLK) && defined(S_IFDIR)
5982 # if S_ISBLK (S_IFDIR)
5983 You lose.
5984 # endif
5985 #endif
5987 #if defined(S_ISBLK) && defined(S_IFCHR)
5988 # if S_ISBLK (S_IFCHR)
5989 You lose.
5990 # endif
5991 #endif
5993 #if defined(S_ISLNK) && defined(S_IFREG)
5994 # if S_ISLNK (S_IFREG)
5995 You lose.
5996 # endif
5997 #endif
5999 #if defined(S_ISSOCK) && defined(S_IFREG)
6000 # if S_ISSOCK (S_IFREG)
6001 You lose.
6002 # endif
6003 #endif
6005 _ACEOF
6006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6007 $EGREP "You lose" >/dev/null 2>&1; then
6008 ac_cv_header_stat_broken=yes
6009 else
6010 ac_cv_header_stat_broken=no
6012 rm -f conftest*
6015 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6016 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6017 if test $ac_cv_header_stat_broken = yes; then
6019 cat >>confdefs.h <<\_ACEOF
6020 #define STAT_MACROS_BROKEN 1
6021 _ACEOF
6025 echo "$as_me:$LINENO: checking for nanoseconds member of struct stat.st_mtim" >&5
6026 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
6027 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 else
6030 ac_save_CPPFLAGS="$CPPFLAGS"
6031 ac_cv_struct_st_mtim_nsec=no
6032 # tv_nsec -- the usual case
6033 # _tv_nsec -- Solaris 2.6, if
6034 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
6035 # && !defined __EXTENSIONS__)
6036 # st__tim.tv_nsec -- UnixWare 2.1.2
6037 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
6038 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
6039 cat >conftest.$ac_ext <<_ACEOF
6040 #line $LINENO "configure"
6041 /* confdefs.h. */
6042 _ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h. */
6046 #include <sys/types.h>
6047 #include <sys/stat.h>
6049 main ()
6051 struct stat s; s.st_mtim.ST_MTIM_NSEC;
6053 return 0;
6055 _ACEOF
6056 rm -f conftest.$ac_objext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6058 (eval $ac_compile) 2>&5
6059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } &&
6062 { ac_try='test -s conftest.$ac_objext'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064 (eval $ac_try) 2>&5
6065 ac_status=$?
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
6068 ac_cv_struct_st_mtim_nsec=$ac_val; break
6069 else
6070 echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6074 rm -f conftest.$ac_objext conftest.$ac_ext
6075 done
6076 CPPFLAGS="$ac_save_CPPFLAGS"
6078 echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5
6079 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
6081 if test $ac_cv_struct_st_mtim_nsec != no; then
6083 cat >>confdefs.h <<_ACEOF
6084 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
6085 _ACEOF
6090 echo "$as_me:$LINENO: checking for st_dm_mode in struct stat" >&5
6091 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6
6092 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 else
6095 cat >conftest.$ac_ext <<_ACEOF
6096 #line $LINENO "configure"
6097 /* confdefs.h. */
6098 _ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h. */
6102 #include <sys/types.h>
6103 #include <sys/stat.h>
6105 main ()
6107 struct stat s; s.st_dm_mode;
6109 return 0;
6111 _ACEOF
6112 rm -f conftest.$ac_objext
6113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6114 (eval $ac_compile) 2>&5
6115 ac_status=$?
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } &&
6118 { ac_try='test -s conftest.$ac_objext'
6119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6120 (eval $ac_try) 2>&5
6121 ac_status=$?
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; }; then
6124 ac_cv_struct_st_dm_mode=yes
6125 else
6126 echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6129 ac_cv_struct_st_dm_mode=no
6131 rm -f conftest.$ac_objext conftest.$ac_ext
6133 echo "$as_me:$LINENO: result: $ac_cv_struct_st_dm_mode" >&5
6134 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6
6136 if test $ac_cv_struct_st_dm_mode = yes; then
6138 cat >>confdefs.h <<\_ACEOF
6139 #define HAVE_ST_DM_MODE 1
6140 _ACEOF
6145 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6146 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6147 if test "${ac_cv_header_time+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6149 else
6150 cat >conftest.$ac_ext <<_ACEOF
6151 #line $LINENO "configure"
6152 /* confdefs.h. */
6153 _ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h. */
6157 #include <sys/types.h>
6158 #include <sys/time.h>
6159 #include <time.h>
6162 main ()
6164 if ((struct tm *) 0)
6165 return 0;
6167 return 0;
6169 _ACEOF
6170 rm -f conftest.$ac_objext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6172 (eval $ac_compile) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } &&
6176 { ac_try='test -s conftest.$ac_objext'
6177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178 (eval $ac_try) 2>&5
6179 ac_status=$?
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6182 ac_cv_header_time=yes
6183 else
6184 echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6187 ac_cv_header_time=no
6189 rm -f conftest.$ac_objext conftest.$ac_ext
6191 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6192 echo "${ECHO_T}$ac_cv_header_time" >&6
6193 if test $ac_cv_header_time = yes; then
6195 cat >>confdefs.h <<\_ACEOF
6196 #define TIME_WITH_SYS_TIME 1
6197 _ACEOF
6203 echo "$as_me:$LINENO: checking for struct timespec" >&5
6204 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
6205 if test "${fu_cv_sys_struct_timespec+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
6208 cat >conftest.$ac_ext <<_ACEOF
6209 #line $LINENO "configure"
6210 /* confdefs.h. */
6211 _ACEOF
6212 cat confdefs.h >>conftest.$ac_ext
6213 cat >>conftest.$ac_ext <<_ACEOF
6214 /* end confdefs.h. */
6216 # if TIME_WITH_SYS_TIME
6217 # include <sys/time.h>
6218 # include <time.h>
6219 # else
6220 # if HAVE_SYS_TIME_H
6221 # include <sys/time.h>
6222 # else
6223 # include <time.h>
6224 # endif
6225 # endif
6228 main ()
6230 static struct timespec x; x.tv_sec = x.tv_nsec;
6232 return 0;
6234 _ACEOF
6235 rm -f conftest.$ac_objext
6236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6237 (eval $ac_compile) 2>&5
6238 ac_status=$?
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } &&
6241 { ac_try='test -s conftest.$ac_objext'
6242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 (eval $ac_try) 2>&5
6244 ac_status=$?
6245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); }; }; then
6247 fu_cv_sys_struct_timespec=yes
6248 else
6249 echo "$as_me: failed program was:" >&5
6250 sed 's/^/| /' conftest.$ac_ext >&5
6252 fu_cv_sys_struct_timespec=no
6254 rm -f conftest.$ac_objext conftest.$ac_ext
6257 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_timespec" >&5
6258 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
6260 if test $fu_cv_sys_struct_timespec = yes; then
6262 cat >>confdefs.h <<\_ACEOF
6263 #define HAVE_STRUCT_TIMESPEC 1
6264 _ACEOF
6268 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
6269 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6270 if test "${ac_cv_type_uid_t+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273 cat >conftest.$ac_ext <<_ACEOF
6274 #line $LINENO "configure"
6275 /* confdefs.h. */
6276 _ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h. */
6280 #include <sys/types.h>
6282 _ACEOF
6283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6284 $EGREP "uid_t" >/dev/null 2>&1; then
6285 ac_cv_type_uid_t=yes
6286 else
6287 ac_cv_type_uid_t=no
6289 rm -f conftest*
6292 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
6293 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6294 if test $ac_cv_type_uid_t = no; then
6296 cat >>confdefs.h <<\_ACEOF
6297 #define uid_t int
6298 _ACEOF
6301 cat >>confdefs.h <<\_ACEOF
6302 #define gid_t int
6303 _ACEOF
6307 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
6308 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
6309 if test "${ac_cv_type_getgroups+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312 if test "$cross_compiling" = yes; then
6313 ac_cv_type_getgroups=cross
6314 else
6315 cat >conftest.$ac_ext <<_ACEOF
6316 #line $LINENO "configure"
6317 /* confdefs.h. */
6318 _ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h. */
6322 /* Thanks to Mike Rendell for this test. */
6323 #include <sys/types.h>
6324 #define NGID 256
6325 #undef MAX
6326 #define MAX(x, y) ((x) > (y) ? (x) : (y))
6329 main ()
6331 gid_t gidset[NGID];
6332 int i, n;
6333 union { gid_t gval; long lval; } val;
6335 val.lval = -1;
6336 for (i = 0; i < NGID; i++)
6337 gidset[i] = val.gval;
6338 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
6339 gidset);
6340 /* Exit non-zero if getgroups seems to require an array of ints. This
6341 happens when gid_t is short but getgroups modifies an array of ints. */
6342 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
6344 _ACEOF
6345 rm -f conftest$ac_exeext
6346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6347 (eval $ac_link) 2>&5
6348 ac_status=$?
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 (eval $ac_try) 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 ac_cv_type_getgroups=gid_t
6357 else
6358 echo "$as_me: program exited with status $ac_status" >&5
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.$ac_ext >&5
6362 ( exit $ac_status )
6363 ac_cv_type_getgroups=int
6365 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6367 if test $ac_cv_type_getgroups = cross; then
6368 cat >conftest.$ac_ext <<_ACEOF
6369 #line $LINENO "configure"
6370 /* confdefs.h. */
6371 _ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h. */
6375 #include <unistd.h>
6377 _ACEOF
6378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6379 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
6380 ac_cv_type_getgroups=gid_t
6381 else
6382 ac_cv_type_getgroups=int
6384 rm -f conftest*
6388 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
6389 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
6391 cat >>confdefs.h <<_ACEOF
6392 #define GETGROUPS_T $ac_cv_type_getgroups
6393 _ACEOF
6396 echo "$as_me:$LINENO: checking for mode_t" >&5
6397 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
6398 if test "${ac_cv_type_mode_t+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 else
6401 cat >conftest.$ac_ext <<_ACEOF
6402 #line $LINENO "configure"
6403 /* confdefs.h. */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6408 $ac_includes_default
6410 main ()
6412 if ((mode_t *) 0)
6413 return 0;
6414 if (sizeof (mode_t))
6415 return 0;
6417 return 0;
6419 _ACEOF
6420 rm -f conftest.$ac_objext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422 (eval $ac_compile) 2>&5
6423 ac_status=$?
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } &&
6426 { ac_try='test -s conftest.$ac_objext'
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 (eval $ac_try) 2>&5
6429 ac_status=$?
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; }; then
6432 ac_cv_type_mode_t=yes
6433 else
6434 echo "$as_me: failed program was:" >&5
6435 sed 's/^/| /' conftest.$ac_ext >&5
6437 ac_cv_type_mode_t=no
6439 rm -f conftest.$ac_objext conftest.$ac_ext
6441 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6442 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
6443 if test $ac_cv_type_mode_t = yes; then
6445 else
6447 cat >>confdefs.h <<_ACEOF
6448 #define mode_t int
6449 _ACEOF
6453 echo "$as_me:$LINENO: checking for off_t" >&5
6454 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6455 if test "${ac_cv_type_off_t+set}" = set; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6457 else
6458 cat >conftest.$ac_ext <<_ACEOF
6459 #line $LINENO "configure"
6460 /* confdefs.h. */
6461 _ACEOF
6462 cat confdefs.h >>conftest.$ac_ext
6463 cat >>conftest.$ac_ext <<_ACEOF
6464 /* end confdefs.h. */
6465 $ac_includes_default
6467 main ()
6469 if ((off_t *) 0)
6470 return 0;
6471 if (sizeof (off_t))
6472 return 0;
6474 return 0;
6476 _ACEOF
6477 rm -f conftest.$ac_objext
6478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6479 (eval $ac_compile) 2>&5
6480 ac_status=$?
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } &&
6483 { ac_try='test -s conftest.$ac_objext'
6484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485 (eval $ac_try) 2>&5
6486 ac_status=$?
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; }; then
6489 ac_cv_type_off_t=yes
6490 else
6491 echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.$ac_ext >&5
6494 ac_cv_type_off_t=no
6496 rm -f conftest.$ac_objext conftest.$ac_ext
6498 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6499 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6500 if test $ac_cv_type_off_t = yes; then
6502 else
6504 cat >>confdefs.h <<_ACEOF
6505 #define off_t long
6506 _ACEOF
6510 echo "$as_me:$LINENO: checking for pid_t" >&5
6511 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6512 if test "${ac_cv_type_pid_t+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 else
6515 cat >conftest.$ac_ext <<_ACEOF
6516 #line $LINENO "configure"
6517 /* confdefs.h. */
6518 _ACEOF
6519 cat confdefs.h >>conftest.$ac_ext
6520 cat >>conftest.$ac_ext <<_ACEOF
6521 /* end confdefs.h. */
6522 $ac_includes_default
6524 main ()
6526 if ((pid_t *) 0)
6527 return 0;
6528 if (sizeof (pid_t))
6529 return 0;
6531 return 0;
6533 _ACEOF
6534 rm -f conftest.$ac_objext
6535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6536 (eval $ac_compile) 2>&5
6537 ac_status=$?
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } &&
6540 { ac_try='test -s conftest.$ac_objext'
6541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542 (eval $ac_try) 2>&5
6543 ac_status=$?
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; }; then
6546 ac_cv_type_pid_t=yes
6547 else
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6551 ac_cv_type_pid_t=no
6553 rm -f conftest.$ac_objext conftest.$ac_ext
6555 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6556 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6557 if test $ac_cv_type_pid_t = yes; then
6559 else
6561 cat >>confdefs.h <<_ACEOF
6562 #define pid_t int
6563 _ACEOF
6567 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6568 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6569 if test "${ac_cv_type_signal+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 else
6572 cat >conftest.$ac_ext <<_ACEOF
6573 #line $LINENO "configure"
6574 /* confdefs.h. */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 #include <sys/types.h>
6580 #include <signal.h>
6581 #ifdef signal
6582 # undef signal
6583 #endif
6584 #ifdef __cplusplus
6585 extern "C" void (*signal (int, void (*)(int)))(int);
6586 #else
6587 void (*signal ()) ();
6588 #endif
6591 main ()
6593 int i;
6595 return 0;
6597 _ACEOF
6598 rm -f conftest.$ac_objext
6599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6600 (eval $ac_compile) 2>&5
6601 ac_status=$?
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -s conftest.$ac_objext'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 (eval $ac_try) 2>&5
6607 ac_status=$?
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; }; then
6610 ac_cv_type_signal=void
6611 else
6612 echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.$ac_ext >&5
6615 ac_cv_type_signal=int
6617 rm -f conftest.$ac_objext conftest.$ac_ext
6619 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6620 echo "${ECHO_T}$ac_cv_type_signal" >&6
6622 cat >>confdefs.h <<_ACEOF
6623 #define RETSIGTYPE $ac_cv_type_signal
6624 _ACEOF
6627 echo "$as_me:$LINENO: checking for size_t" >&5
6628 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6629 if test "${ac_cv_type_size_t+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 else
6632 cat >conftest.$ac_ext <<_ACEOF
6633 #line $LINENO "configure"
6634 /* confdefs.h. */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 $ac_includes_default
6641 main ()
6643 if ((size_t *) 0)
6644 return 0;
6645 if (sizeof (size_t))
6646 return 0;
6648 return 0;
6650 _ACEOF
6651 rm -f conftest.$ac_objext
6652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6653 (eval $ac_compile) 2>&5
6654 ac_status=$?
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); } &&
6657 { ac_try='test -s conftest.$ac_objext'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 (eval $ac_try) 2>&5
6660 ac_status=$?
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; }; then
6663 ac_cv_type_size_t=yes
6664 else
6665 echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6668 ac_cv_type_size_t=no
6670 rm -f conftest.$ac_objext conftest.$ac_ext
6672 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6673 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6674 if test $ac_cv_type_size_t = yes; then
6676 else
6678 cat >>confdefs.h <<_ACEOF
6679 #define size_t unsigned
6680 _ACEOF
6685 echo "$as_me:$LINENO: checking for unsigned long long" >&5
6686 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6687 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6689 else
6690 cat >conftest.$ac_ext <<_ACEOF
6691 #line $LINENO "configure"
6692 /* confdefs.h. */
6693 _ACEOF
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6697 unsigned long long ull = 1; int i = 63;
6699 main ()
6701 unsigned long long ullmax = (unsigned long long) -1;
6702 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6704 return 0;
6706 _ACEOF
6707 rm -f conftest.$ac_objext conftest$ac_exeext
6708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6709 (eval $ac_link) 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } &&
6713 { ac_try='test -s conftest$ac_exeext'
6714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715 (eval $ac_try) 2>&5
6716 ac_status=$?
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; }; then
6719 ac_cv_type_unsigned_long_long=yes
6720 else
6721 echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.$ac_ext >&5
6724 ac_cv_type_unsigned_long_long=no
6726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6728 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6729 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6730 if test $ac_cv_type_unsigned_long_long = yes; then
6732 cat >>confdefs.h <<\_ACEOF
6733 #define HAVE_UNSIGNED_LONG_LONG 1
6734 _ACEOF
6740 echo "$as_me:$LINENO: checking for uintmax_t" >&5
6741 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
6742 if test "${ac_cv_type_uintmax_t+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 else
6745 cat >conftest.$ac_ext <<_ACEOF
6746 #line $LINENO "configure"
6747 /* confdefs.h. */
6748 _ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6752 $ac_includes_default
6754 main ()
6756 if ((uintmax_t *) 0)
6757 return 0;
6758 if (sizeof (uintmax_t))
6759 return 0;
6761 return 0;
6763 _ACEOF
6764 rm -f conftest.$ac_objext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6766 (eval $ac_compile) 2>&5
6767 ac_status=$?
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); } &&
6770 { ac_try='test -s conftest.$ac_objext'
6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772 (eval $ac_try) 2>&5
6773 ac_status=$?
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
6776 ac_cv_type_uintmax_t=yes
6777 else
6778 echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6781 ac_cv_type_uintmax_t=no
6783 rm -f conftest.$ac_objext conftest.$ac_ext
6785 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
6786 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
6787 if test $ac_cv_type_uintmax_t = yes; then
6789 else
6790 test $ac_cv_type_unsigned_long_long = yes \
6791 && ac_type='unsigned long long' \
6792 || ac_type='unsigned long'
6794 cat >>confdefs.h <<_ACEOF
6795 #define uintmax_t $ac_type
6796 _ACEOF
6801 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
6802 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
6803 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 else
6806 cat >conftest.$ac_ext <<_ACEOF
6807 #line $LINENO "configure"
6808 /* confdefs.h. */
6809 _ACEOF
6810 cat confdefs.h >>conftest.$ac_ext
6811 cat >>conftest.$ac_ext <<_ACEOF
6812 /* end confdefs.h. */
6813 #include <sys/types.h>
6815 main ()
6817 return makedev(0, 0);
6819 return 0;
6821 _ACEOF
6822 rm -f conftest.$ac_objext conftest$ac_exeext
6823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6824 (eval $ac_link) 2>&5
6825 ac_status=$?
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } &&
6828 { ac_try='test -s conftest$ac_exeext'
6829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830 (eval $ac_try) 2>&5
6831 ac_status=$?
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); }; }; then
6834 ac_cv_header_sys_types_h_makedev=yes
6835 else
6836 echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6839 ac_cv_header_sys_types_h_makedev=no
6841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6844 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
6845 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
6847 if test $ac_cv_header_sys_types_h_makedev = no; then
6848 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6849 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6850 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6851 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6854 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6855 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6856 else
6857 # Is the header compilable?
6858 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
6859 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
6860 cat >conftest.$ac_ext <<_ACEOF
6861 #line $LINENO "configure"
6862 /* confdefs.h. */
6863 _ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6867 $ac_includes_default
6868 #include <sys/mkdev.h>
6869 _ACEOF
6870 rm -f conftest.$ac_objext
6871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6872 (eval $ac_compile) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); } &&
6876 { ac_try='test -s conftest.$ac_objext'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 (eval $ac_try) 2>&5
6879 ac_status=$?
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6882 ac_header_compiler=yes
6883 else
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6887 ac_header_compiler=no
6889 rm -f conftest.$ac_objext conftest.$ac_ext
6890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6891 echo "${ECHO_T}$ac_header_compiler" >&6
6893 # Is the header present?
6894 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
6895 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
6896 cat >conftest.$ac_ext <<_ACEOF
6897 #line $LINENO "configure"
6898 /* confdefs.h. */
6899 _ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h. */
6903 #include <sys/mkdev.h>
6904 _ACEOF
6905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6907 ac_status=$?
6908 grep -v '^ *+' conftest.er1 >conftest.err
6909 rm -f conftest.er1
6910 cat conftest.err >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } >/dev/null; then
6913 if test -s conftest.err; then
6914 ac_cpp_err=$ac_c_preproc_warn_flag
6915 else
6916 ac_cpp_err=
6918 else
6919 ac_cpp_err=yes
6921 if test -z "$ac_cpp_err"; then
6922 ac_header_preproc=yes
6923 else
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6927 ac_header_preproc=no
6929 rm -f conftest.err conftest.$ac_ext
6930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6931 echo "${ECHO_T}$ac_header_preproc" >&6
6933 # So? What about this header?
6934 case $ac_header_compiler:$ac_header_preproc in
6935 yes:no )
6936 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
6937 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6938 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6939 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6941 cat <<\_ASBOX
6942 ## ------------------------------------ ##
6943 ## Report this to bug-autoconf@gnu.org. ##
6944 ## ------------------------------------ ##
6945 _ASBOX
6947 sed "s/^/$as_me: WARNING: /" >&2
6949 no:yes )
6950 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
6951 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
6952 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
6953 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
6954 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
6955 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
6957 cat <<\_ASBOX
6958 ## ------------------------------------ ##
6959 ## Report this to bug-autoconf@gnu.org. ##
6960 ## ------------------------------------ ##
6961 _ASBOX
6963 sed "s/^/$as_me: WARNING: /" >&2
6965 esac
6966 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
6967 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
6968 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971 ac_cv_header_sys_mkdev_h=$ac_header_preproc
6973 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
6974 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
6977 if test $ac_cv_header_sys_mkdev_h = yes; then
6979 cat >>confdefs.h <<\_ACEOF
6980 #define MAJOR_IN_MKDEV 1
6981 _ACEOF
6987 if test $ac_cv_header_sys_mkdev_h = no; then
6988 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6989 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
6990 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
6991 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
6995 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
6996 else
6997 # Is the header compilable?
6998 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
6999 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
7000 cat >conftest.$ac_ext <<_ACEOF
7001 #line $LINENO "configure"
7002 /* confdefs.h. */
7003 _ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7007 $ac_includes_default
7008 #include <sys/sysmacros.h>
7009 _ACEOF
7010 rm -f conftest.$ac_objext
7011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7012 (eval $ac_compile) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } &&
7016 { ac_try='test -s conftest.$ac_objext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 (eval $ac_try) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7022 ac_header_compiler=yes
7023 else
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7027 ac_header_compiler=no
7029 rm -f conftest.$ac_objext conftest.$ac_ext
7030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7031 echo "${ECHO_T}$ac_header_compiler" >&6
7033 # Is the header present?
7034 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
7035 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
7036 cat >conftest.$ac_ext <<_ACEOF
7037 #line $LINENO "configure"
7038 /* confdefs.h. */
7039 _ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h. */
7043 #include <sys/sysmacros.h>
7044 _ACEOF
7045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7047 ac_status=$?
7048 grep -v '^ *+' conftest.er1 >conftest.err
7049 rm -f conftest.er1
7050 cat conftest.err >&5
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); } >/dev/null; then
7053 if test -s conftest.err; then
7054 ac_cpp_err=$ac_c_preproc_warn_flag
7055 else
7056 ac_cpp_err=
7058 else
7059 ac_cpp_err=yes
7061 if test -z "$ac_cpp_err"; then
7062 ac_header_preproc=yes
7063 else
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7067 ac_header_preproc=no
7069 rm -f conftest.err conftest.$ac_ext
7070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7071 echo "${ECHO_T}$ac_header_preproc" >&6
7073 # So? What about this header?
7074 case $ac_header_compiler:$ac_header_preproc in
7075 yes:no )
7076 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7077 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7078 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7079 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7081 cat <<\_ASBOX
7082 ## ------------------------------------ ##
7083 ## Report this to bug-autoconf@gnu.org. ##
7084 ## ------------------------------------ ##
7085 _ASBOX
7087 sed "s/^/$as_me: WARNING: /" >&2
7089 no:yes )
7090 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7091 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7092 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
7093 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
7094 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7095 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7097 cat <<\_ASBOX
7098 ## ------------------------------------ ##
7099 ## Report this to bug-autoconf@gnu.org. ##
7100 ## ------------------------------------ ##
7101 _ASBOX
7103 sed "s/^/$as_me: WARNING: /" >&2
7105 esac
7106 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7107 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
7108 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7109 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 else
7111 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7113 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7114 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
7117 if test $ac_cv_header_sys_sysmacros_h = yes; then
7119 cat >>confdefs.h <<\_ACEOF
7120 #define MAJOR_IN_SYSMACROS 1
7121 _ACEOF
7129 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
7130 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
7131 if test "${acx_cv_c_restrict+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 else
7134 acx_cv_c_restrict=no
7135 # Try the official restrict keyword, then gcc's __restrict__.
7136 for acx_kw in restrict __restrict__; do
7137 cat >conftest.$ac_ext <<_ACEOF
7138 #line $LINENO "configure"
7139 /* confdefs.h. */
7140 _ACEOF
7141 cat confdefs.h >>conftest.$ac_ext
7142 cat >>conftest.$ac_ext <<_ACEOF
7143 /* end confdefs.h. */
7144 float * $acx_kw x;
7145 _ACEOF
7146 rm -f conftest.$ac_objext
7147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7148 (eval $ac_compile) 2>&5
7149 ac_status=$?
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } &&
7152 { ac_try='test -s conftest.$ac_objext'
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 acx_cv_c_restrict=$acx_kw; break
7159 else
7160 echo "$as_me: failed program was:" >&5
7161 sed 's/^/| /' conftest.$ac_ext >&5
7164 rm -f conftest.$ac_objext conftest.$ac_ext
7165 done
7168 echo "$as_me:$LINENO: result: $acx_cv_c_restrict" >&5
7169 echo "${ECHO_T}$acx_cv_c_restrict" >&6
7170 case $acx_cv_c_restrict in
7171 restrict) ;;
7173 cat >>confdefs.h <<\_ACEOF
7174 #define restrict
7175 _ACEOF
7177 *) cat >>confdefs.h <<_ACEOF
7178 #define restrict $acx_cv_c_restrict
7179 _ACEOF
7181 esac
7183 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7184 # for constant arguments. Useless!
7185 echo "$as_me:$LINENO: checking for working alloca.h" >&5
7186 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7187 if test "${ac_cv_working_alloca_h+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 else
7190 cat >conftest.$ac_ext <<_ACEOF
7191 #line $LINENO "configure"
7192 /* confdefs.h. */
7193 _ACEOF
7194 cat confdefs.h >>conftest.$ac_ext
7195 cat >>conftest.$ac_ext <<_ACEOF
7196 /* end confdefs.h. */
7197 #include <alloca.h>
7199 main ()
7201 char *p = (char *) alloca (2 * sizeof (int));
7203 return 0;
7205 _ACEOF
7206 rm -f conftest.$ac_objext conftest$ac_exeext
7207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7208 (eval $ac_link) 2>&5
7209 ac_status=$?
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } &&
7212 { ac_try='test -s conftest$ac_exeext'
7213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214 (eval $ac_try) 2>&5
7215 ac_status=$?
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); }; }; then
7218 ac_cv_working_alloca_h=yes
7219 else
7220 echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.$ac_ext >&5
7223 ac_cv_working_alloca_h=no
7225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7227 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7228 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7229 if test $ac_cv_working_alloca_h = yes; then
7231 cat >>confdefs.h <<\_ACEOF
7232 #define HAVE_ALLOCA_H 1
7233 _ACEOF
7237 echo "$as_me:$LINENO: checking for alloca" >&5
7238 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7239 if test "${ac_cv_func_alloca_works+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242 cat >conftest.$ac_ext <<_ACEOF
7243 #line $LINENO "configure"
7244 /* confdefs.h. */
7245 _ACEOF
7246 cat confdefs.h >>conftest.$ac_ext
7247 cat >>conftest.$ac_ext <<_ACEOF
7248 /* end confdefs.h. */
7249 #ifdef __GNUC__
7250 # define alloca __builtin_alloca
7251 #else
7252 # ifdef _MSC_VER
7253 # include <malloc.h>
7254 # define alloca _alloca
7255 # else
7256 # if HAVE_ALLOCA_H
7257 # include <alloca.h>
7258 # else
7259 # ifdef _AIX
7260 #pragma alloca
7261 # else
7262 # ifndef alloca /* predefined by HP cc +Olibcalls */
7263 char *alloca ();
7264 # endif
7265 # endif
7266 # endif
7267 # endif
7268 #endif
7271 main ()
7273 char *p = (char *) alloca (1);
7275 return 0;
7277 _ACEOF
7278 rm -f conftest.$ac_objext conftest$ac_exeext
7279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7280 (eval $ac_link) 2>&5
7281 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } &&
7284 { ac_try='test -s conftest$ac_exeext'
7285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286 (eval $ac_try) 2>&5
7287 ac_status=$?
7288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; }; then
7290 ac_cv_func_alloca_works=yes
7291 else
7292 echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7295 ac_cv_func_alloca_works=no
7297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7299 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7300 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7302 if test $ac_cv_func_alloca_works = yes; then
7304 cat >>confdefs.h <<\_ACEOF
7305 #define HAVE_ALLOCA 1
7306 _ACEOF
7308 else
7309 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7310 # that cause trouble. Some versions do not even contain alloca or
7311 # contain a buggy version. If you still want to use their alloca,
7312 # use ar to extract alloca.o from them instead of compiling alloca.c.
7314 ALLOCA=alloca.$ac_objext
7316 cat >>confdefs.h <<\_ACEOF
7317 #define C_ALLOCA 1
7318 _ACEOF
7321 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7322 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7323 if test "${ac_cv_os_cray+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 else
7326 cat >conftest.$ac_ext <<_ACEOF
7327 #line $LINENO "configure"
7328 /* confdefs.h. */
7329 _ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7333 #if defined(CRAY) && ! defined(CRAY2)
7334 webecray
7335 #else
7336 wenotbecray
7337 #endif
7339 _ACEOF
7340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7341 $EGREP "webecray" >/dev/null 2>&1; then
7342 ac_cv_os_cray=yes
7343 else
7344 ac_cv_os_cray=no
7346 rm -f conftest*
7349 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7350 echo "${ECHO_T}$ac_cv_os_cray" >&6
7351 if test $ac_cv_os_cray = yes; then
7352 for ac_func in _getb67 GETB67 getb67; do
7353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7354 echo "$as_me:$LINENO: checking for $ac_func" >&5
7355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7356 if eval "test \"\${$as_ac_var+set}\" = set"; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359 cat >conftest.$ac_ext <<_ACEOF
7360 #line $LINENO "configure"
7361 /* confdefs.h. */
7362 _ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h. */
7366 /* System header to define __stub macros and hopefully few prototypes,
7367 which can conflict with char $ac_func (); below.
7368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7369 <limits.h> exists even on freestanding compilers. */
7370 #ifdef __STDC__
7371 # include <limits.h>
7372 #else
7373 # include <assert.h>
7374 #endif
7375 /* Override any gcc2 internal prototype to avoid an error. */
7376 #ifdef __cplusplus
7377 extern "C"
7379 #endif
7380 /* We use char because int might match the return type of a gcc2
7381 builtin and then its argument prototype would still apply. */
7382 char $ac_func ();
7383 /* The GNU C library defines this for functions which it implements
7384 to always fail with ENOSYS. Some functions are actually named
7385 something starting with __ and the normal name is an alias. */
7386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7387 choke me
7388 #else
7389 char (*f) () = $ac_func;
7390 #endif
7391 #ifdef __cplusplus
7393 #endif
7396 main ()
7398 return f != $ac_func;
7400 return 0;
7402 _ACEOF
7403 rm -f conftest.$ac_objext conftest$ac_exeext
7404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7405 (eval $ac_link) 2>&5
7406 ac_status=$?
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } &&
7409 { ac_try='test -s conftest$ac_exeext'
7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 (eval $ac_try) 2>&5
7412 ac_status=$?
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; }; then
7415 eval "$as_ac_var=yes"
7416 else
7417 echo "$as_me: failed program was:" >&5
7418 sed 's/^/| /' conftest.$ac_ext >&5
7420 eval "$as_ac_var=no"
7422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7425 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7426 if test `eval echo '${'$as_ac_var'}'` = yes; then
7428 cat >>confdefs.h <<_ACEOF
7429 #define CRAY_STACKSEG_END $ac_func
7430 _ACEOF
7432 break
7435 done
7438 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7439 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7440 if test "${ac_cv_c_stack_direction+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 else
7443 if test "$cross_compiling" = yes; then
7444 ac_cv_c_stack_direction=0
7445 else
7446 cat >conftest.$ac_ext <<_ACEOF
7447 #line $LINENO "configure"
7448 /* confdefs.h. */
7449 _ACEOF
7450 cat confdefs.h >>conftest.$ac_ext
7451 cat >>conftest.$ac_ext <<_ACEOF
7452 /* end confdefs.h. */
7454 find_stack_direction ()
7456 static char *addr = 0;
7457 auto char dummy;
7458 if (addr == 0)
7460 addr = &dummy;
7461 return find_stack_direction ();
7463 else
7464 return (&dummy > addr) ? 1 : -1;
7468 main ()
7470 exit (find_stack_direction () < 0);
7472 _ACEOF
7473 rm -f conftest$ac_exeext
7474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7475 (eval $ac_link) 2>&5
7476 ac_status=$?
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480 (eval $ac_try) 2>&5
7481 ac_status=$?
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); }; }; then
7484 ac_cv_c_stack_direction=1
7485 else
7486 echo "$as_me: program exited with status $ac_status" >&5
7487 echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7490 ( exit $ac_status )
7491 ac_cv_c_stack_direction=-1
7493 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7496 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7497 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7499 cat >>confdefs.h <<_ACEOF
7500 #define STACK_DIRECTION $ac_cv_c_stack_direction
7501 _ACEOF
7508 for ac_header in limits.h
7510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7512 echo "$as_me:$LINENO: checking for $ac_header" >&5
7513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7519 else
7520 # Is the header compilable?
7521 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7523 cat >conftest.$ac_ext <<_ACEOF
7524 #line $LINENO "configure"
7525 /* confdefs.h. */
7526 _ACEOF
7527 cat confdefs.h >>conftest.$ac_ext
7528 cat >>conftest.$ac_ext <<_ACEOF
7529 /* end confdefs.h. */
7530 $ac_includes_default
7531 #include <$ac_header>
7532 _ACEOF
7533 rm -f conftest.$ac_objext
7534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7535 (eval $ac_compile) 2>&5
7536 ac_status=$?
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } &&
7539 { ac_try='test -s conftest.$ac_objext'
7540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 (eval $ac_try) 2>&5
7542 ac_status=$?
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); }; }; then
7545 ac_header_compiler=yes
7546 else
7547 echo "$as_me: failed program was:" >&5
7548 sed 's/^/| /' conftest.$ac_ext >&5
7550 ac_header_compiler=no
7552 rm -f conftest.$ac_objext conftest.$ac_ext
7553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7554 echo "${ECHO_T}$ac_header_compiler" >&6
7556 # Is the header present?
7557 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7559 cat >conftest.$ac_ext <<_ACEOF
7560 #line $LINENO "configure"
7561 /* confdefs.h. */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566 #include <$ac_header>
7567 _ACEOF
7568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7570 ac_status=$?
7571 grep -v '^ *+' conftest.er1 >conftest.err
7572 rm -f conftest.er1
7573 cat conftest.err >&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } >/dev/null; then
7576 if test -s conftest.err; then
7577 ac_cpp_err=$ac_c_preproc_warn_flag
7578 else
7579 ac_cpp_err=
7581 else
7582 ac_cpp_err=yes
7584 if test -z "$ac_cpp_err"; then
7585 ac_header_preproc=yes
7586 else
7587 echo "$as_me: failed program was:" >&5
7588 sed 's/^/| /' conftest.$ac_ext >&5
7590 ac_header_preproc=no
7592 rm -f conftest.err conftest.$ac_ext
7593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7594 echo "${ECHO_T}$ac_header_preproc" >&6
7596 # So? What about this header?
7597 case $ac_header_compiler:$ac_header_preproc in
7598 yes:no )
7599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7604 cat <<\_ASBOX
7605 ## ------------------------------------ ##
7606 ## Report this to bug-autoconf@gnu.org. ##
7607 ## ------------------------------------ ##
7608 _ASBOX
7610 sed "s/^/$as_me: WARNING: /" >&2
7612 no:yes )
7613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7620 cat <<\_ASBOX
7621 ## ------------------------------------ ##
7622 ## Report this to bug-autoconf@gnu.org. ##
7623 ## ------------------------------------ ##
7624 _ASBOX
7626 sed "s/^/$as_me: WARNING: /" >&2
7628 esac
7629 echo "$as_me:$LINENO: checking for $ac_header" >&5
7630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634 eval "$as_ac_Header=$ac_header_preproc"
7636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7641 cat >>confdefs.h <<_ACEOF
7642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7643 _ACEOF
7647 done
7652 for ac_header in string.h
7654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7656 echo "$as_me:$LINENO: checking for $ac_header" >&5
7657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7663 else
7664 # Is the header compilable?
7665 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7667 cat >conftest.$ac_ext <<_ACEOF
7668 #line $LINENO "configure"
7669 /* confdefs.h. */
7670 _ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7674 $ac_includes_default
7675 #include <$ac_header>
7676 _ACEOF
7677 rm -f conftest.$ac_objext
7678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7679 (eval $ac_compile) 2>&5
7680 ac_status=$?
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } &&
7683 { ac_try='test -s conftest.$ac_objext'
7684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685 (eval $ac_try) 2>&5
7686 ac_status=$?
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; }; then
7689 ac_header_compiler=yes
7690 else
7691 echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.$ac_ext >&5
7694 ac_header_compiler=no
7696 rm -f conftest.$ac_objext conftest.$ac_ext
7697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7698 echo "${ECHO_T}$ac_header_compiler" >&6
7700 # Is the header present?
7701 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7703 cat >conftest.$ac_ext <<_ACEOF
7704 #line $LINENO "configure"
7705 /* confdefs.h. */
7706 _ACEOF
7707 cat confdefs.h >>conftest.$ac_ext
7708 cat >>conftest.$ac_ext <<_ACEOF
7709 /* end confdefs.h. */
7710 #include <$ac_header>
7711 _ACEOF
7712 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7714 ac_status=$?
7715 grep -v '^ *+' conftest.er1 >conftest.err
7716 rm -f conftest.er1
7717 cat conftest.err >&5
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); } >/dev/null; then
7720 if test -s conftest.err; then
7721 ac_cpp_err=$ac_c_preproc_warn_flag
7722 else
7723 ac_cpp_err=
7725 else
7726 ac_cpp_err=yes
7728 if test -z "$ac_cpp_err"; then
7729 ac_header_preproc=yes
7730 else
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7734 ac_header_preproc=no
7736 rm -f conftest.err conftest.$ac_ext
7737 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7738 echo "${ECHO_T}$ac_header_preproc" >&6
7740 # So? What about this header?
7741 case $ac_header_compiler:$ac_header_preproc in
7742 yes:no )
7743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7748 cat <<\_ASBOX
7749 ## ------------------------------------ ##
7750 ## Report this to bug-autoconf@gnu.org. ##
7751 ## ------------------------------------ ##
7752 _ASBOX
7754 sed "s/^/$as_me: WARNING: /" >&2
7756 no:yes )
7757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7764 cat <<\_ASBOX
7765 ## ------------------------------------ ##
7766 ## Report this to bug-autoconf@gnu.org. ##
7767 ## ------------------------------------ ##
7768 _ASBOX
7770 sed "s/^/$as_me: WARNING: /" >&2
7772 esac
7773 echo "$as_me:$LINENO: checking for $ac_header" >&5
7774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7776 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 else
7778 eval "$as_ac_Header=$ac_header_preproc"
7780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7785 cat >>confdefs.h <<_ACEOF
7786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7787 _ACEOF
7791 done
7796 for ac_header in wchar.h
7798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7800 echo "$as_me:$LINENO: checking for $ac_header" >&5
7801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7807 else
7808 # Is the header compilable?
7809 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7811 cat >conftest.$ac_ext <<_ACEOF
7812 #line $LINENO "configure"
7813 /* confdefs.h. */
7814 _ACEOF
7815 cat confdefs.h >>conftest.$ac_ext
7816 cat >>conftest.$ac_ext <<_ACEOF
7817 /* end confdefs.h. */
7818 $ac_includes_default
7819 #include <$ac_header>
7820 _ACEOF
7821 rm -f conftest.$ac_objext
7822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7823 (eval $ac_compile) 2>&5
7824 ac_status=$?
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } &&
7827 { ac_try='test -s conftest.$ac_objext'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 (eval $ac_try) 2>&5
7830 ac_status=$?
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; }; then
7833 ac_header_compiler=yes
7834 else
7835 echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7838 ac_header_compiler=no
7840 rm -f conftest.$ac_objext conftest.$ac_ext
7841 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7842 echo "${ECHO_T}$ac_header_compiler" >&6
7844 # Is the header present?
7845 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7847 cat >conftest.$ac_ext <<_ACEOF
7848 #line $LINENO "configure"
7849 /* confdefs.h. */
7850 _ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7854 #include <$ac_header>
7855 _ACEOF
7856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7858 ac_status=$?
7859 grep -v '^ *+' conftest.er1 >conftest.err
7860 rm -f conftest.er1
7861 cat conftest.err >&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } >/dev/null; then
7864 if test -s conftest.err; then
7865 ac_cpp_err=$ac_c_preproc_warn_flag
7866 else
7867 ac_cpp_err=
7869 else
7870 ac_cpp_err=yes
7872 if test -z "$ac_cpp_err"; then
7873 ac_header_preproc=yes
7874 else
7875 echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7878 ac_header_preproc=no
7880 rm -f conftest.err conftest.$ac_ext
7881 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7882 echo "${ECHO_T}$ac_header_preproc" >&6
7884 # So? What about this header?
7885 case $ac_header_compiler:$ac_header_preproc in
7886 yes:no )
7887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7892 cat <<\_ASBOX
7893 ## ------------------------------------ ##
7894 ## Report this to bug-autoconf@gnu.org. ##
7895 ## ------------------------------------ ##
7896 _ASBOX
7898 sed "s/^/$as_me: WARNING: /" >&2
7900 no:yes )
7901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7908 cat <<\_ASBOX
7909 ## ------------------------------------ ##
7910 ## Report this to bug-autoconf@gnu.org. ##
7911 ## ------------------------------------ ##
7912 _ASBOX
7914 sed "s/^/$as_me: WARNING: /" >&2
7916 esac
7917 echo "$as_me:$LINENO: checking for $ac_header" >&5
7918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 else
7922 eval "$as_ac_Header=$ac_header_preproc"
7924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7929 cat >>confdefs.h <<_ACEOF
7930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7931 _ACEOF
7935 done
7940 for ac_header in wctype.h
7942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7944 echo "$as_me:$LINENO: checking for $ac_header" >&5
7945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7951 else
7952 # Is the header compilable?
7953 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7955 cat >conftest.$ac_ext <<_ACEOF
7956 #line $LINENO "configure"
7957 /* confdefs.h. */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7962 $ac_includes_default
7963 #include <$ac_header>
7964 _ACEOF
7965 rm -f conftest.$ac_objext
7966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7967 (eval $ac_compile) 2>&5
7968 ac_status=$?
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } &&
7971 { ac_try='test -s conftest.$ac_objext'
7972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 (eval $ac_try) 2>&5
7974 ac_status=$?
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); }; }; then
7977 ac_header_compiler=yes
7978 else
7979 echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7982 ac_header_compiler=no
7984 rm -f conftest.$ac_objext conftest.$ac_ext
7985 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7986 echo "${ECHO_T}$ac_header_compiler" >&6
7988 # Is the header present?
7989 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7991 cat >conftest.$ac_ext <<_ACEOF
7992 #line $LINENO "configure"
7993 /* confdefs.h. */
7994 _ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 #include <$ac_header>
7999 _ACEOF
8000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8002 ac_status=$?
8003 grep -v '^ *+' conftest.er1 >conftest.err
8004 rm -f conftest.er1
8005 cat conftest.err >&5
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); } >/dev/null; then
8008 if test -s conftest.err; then
8009 ac_cpp_err=$ac_c_preproc_warn_flag
8010 else
8011 ac_cpp_err=
8013 else
8014 ac_cpp_err=yes
8016 if test -z "$ac_cpp_err"; then
8017 ac_header_preproc=yes
8018 else
8019 echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8022 ac_header_preproc=no
8024 rm -f conftest.err conftest.$ac_ext
8025 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8026 echo "${ECHO_T}$ac_header_preproc" >&6
8028 # So? What about this header?
8029 case $ac_header_compiler:$ac_header_preproc in
8030 yes:no )
8031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8036 cat <<\_ASBOX
8037 ## ------------------------------------ ##
8038 ## Report this to bug-autoconf@gnu.org. ##
8039 ## ------------------------------------ ##
8040 _ASBOX
8042 sed "s/^/$as_me: WARNING: /" >&2
8044 no:yes )
8045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8048 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8052 cat <<\_ASBOX
8053 ## ------------------------------------ ##
8054 ## Report this to bug-autoconf@gnu.org. ##
8055 ## ------------------------------------ ##
8056 _ASBOX
8058 sed "s/^/$as_me: WARNING: /" >&2
8060 esac
8061 echo "$as_me:$LINENO: checking for $ac_header" >&5
8062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8064 echo $ECHO_N "(cached) $ECHO_C" >&6
8065 else
8066 eval "$as_ac_Header=$ac_header_preproc"
8068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8073 cat >>confdefs.h <<_ACEOF
8074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8075 _ACEOF
8079 done
8084 for ac_func in isascii
8086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8087 echo "$as_me:$LINENO: checking for $ac_func" >&5
8088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8089 if eval "test \"\${$as_ac_var+set}\" = set"; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 else
8092 cat >conftest.$ac_ext <<_ACEOF
8093 #line $LINENO "configure"
8094 /* confdefs.h. */
8095 _ACEOF
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h. */
8099 /* System header to define __stub macros and hopefully few prototypes,
8100 which can conflict with char $ac_func (); below.
8101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8102 <limits.h> exists even on freestanding compilers. */
8103 #ifdef __STDC__
8104 # include <limits.h>
8105 #else
8106 # include <assert.h>
8107 #endif
8108 /* Override any gcc2 internal prototype to avoid an error. */
8109 #ifdef __cplusplus
8110 extern "C"
8112 #endif
8113 /* We use char because int might match the return type of a gcc2
8114 builtin and then its argument prototype would still apply. */
8115 char $ac_func ();
8116 /* The GNU C library defines this for functions which it implements
8117 to always fail with ENOSYS. Some functions are actually named
8118 something starting with __ and the normal name is an alias. */
8119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8120 choke me
8121 #else
8122 char (*f) () = $ac_func;
8123 #endif
8124 #ifdef __cplusplus
8126 #endif
8129 main ()
8131 return f != $ac_func;
8133 return 0;
8135 _ACEOF
8136 rm -f conftest.$ac_objext conftest$ac_exeext
8137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8138 (eval $ac_link) 2>&5
8139 ac_status=$?
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } &&
8142 { ac_try='test -s conftest$ac_exeext'
8143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 (eval $ac_try) 2>&5
8145 ac_status=$?
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
8148 eval "$as_ac_var=yes"
8149 else
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8153 eval "$as_ac_var=no"
8155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8158 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8159 if test `eval echo '${'$as_ac_var'}'` = yes; then
8160 cat >>confdefs.h <<_ACEOF
8161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8162 _ACEOF
8165 done
8170 for ac_func in mempcpy
8172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8173 echo "$as_me:$LINENO: checking for $ac_func" >&5
8174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8175 if eval "test \"\${$as_ac_var+set}\" = set"; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 else
8178 cat >conftest.$ac_ext <<_ACEOF
8179 #line $LINENO "configure"
8180 /* confdefs.h. */
8181 _ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h. */
8185 /* System header to define __stub macros and hopefully few prototypes,
8186 which can conflict with char $ac_func (); below.
8187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8188 <limits.h> exists even on freestanding compilers. */
8189 #ifdef __STDC__
8190 # include <limits.h>
8191 #else
8192 # include <assert.h>
8193 #endif
8194 /* Override any gcc2 internal prototype to avoid an error. */
8195 #ifdef __cplusplus
8196 extern "C"
8198 #endif
8199 /* We use char because int might match the return type of a gcc2
8200 builtin and then its argument prototype would still apply. */
8201 char $ac_func ();
8202 /* The GNU C library defines this for functions which it implements
8203 to always fail with ENOSYS. Some functions are actually named
8204 something starting with __ and the normal name is an alias. */
8205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8206 choke me
8207 #else
8208 char (*f) () = $ac_func;
8209 #endif
8210 #ifdef __cplusplus
8212 #endif
8215 main ()
8217 return f != $ac_func;
8219 return 0;
8221 _ACEOF
8222 rm -f conftest.$ac_objext conftest$ac_exeext
8223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8224 (eval $ac_link) 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); } &&
8228 { ac_try='test -s conftest$ac_exeext'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230 (eval $ac_try) 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 eval "$as_ac_var=yes"
8235 else
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8239 eval "$as_ac_var=no"
8241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8244 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8245 if test `eval echo '${'$as_ac_var'}'` = yes; then
8246 cat >>confdefs.h <<_ACEOF
8247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8248 _ACEOF
8251 done
8255 echo "$as_me:$LINENO: checking host operating system" >&5
8256 echo $ECHO_N "checking host operating system... $ECHO_C" >&6
8257 if test "${utils_cv_host_operating_system+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 else
8260 case $host_os in
8262 # These operating system names do not use the default heuristic below.
8263 # They are in reverse order, so that more-specific prefixes come first.
8264 winnt*) os='Windows NT';;
8265 vos*) os='VOS';;
8266 sysv*) os='Unix System V';;
8267 superux*) os='SUPER-UX';;
8268 sunos*) os='SunOS';;
8269 stop*) os='STOP';;
8270 sco*) os='SCO Unix';;
8271 riscos*) os='RISC OS';;
8272 riscix*) os='RISCiX';;
8273 qnx*) os='QNX';;
8274 pw32*) os='PW32';;
8275 ptx*) os='ptx';;
8276 plan9*) os='Plan 9';;
8277 osf*) os='Tru64';;
8278 os2*) os='OS/2';;
8279 openbsd*) os='OpenBSD';;
8280 nsk*) os='NonStop Kernel';;
8281 nonstopux*) os='NonStop-UX';;
8282 netbsd*) os='NetBSD';;
8283 msdosdjgpp*) os='DJGPP';;
8284 mpeix*) os='MPE/iX';;
8285 mint*) os='MiNT';;
8286 mingw*) os='MinGW';;
8287 lynxos*) os='LynxOS';;
8288 linux*) os='GNU/Linux';;
8289 hpux*) os='HP-UX';;
8290 hiux*) os='HI-UX';;
8291 gnu*) os='GNU';;
8292 freebsd*-gnu*) os='GNU/FreeBSD';;
8293 freebsd*) os='FreeBSD';;
8294 dgux*) os='DG/UX';;
8295 bsdi*) os='BSD/OS';;
8296 bsd*) os='BSD';;
8297 beos*) os='BeOS';;
8298 aux*) os='A/UX';;
8299 atheos*) os='AtheOS';;
8300 amigaos*) os='Amiga OS';;
8301 aix*) os='AIX';;
8303 # The default heuristic takes the initial alphabetic string
8304 # from $host_os, but capitalizes its first letter.
8305 [A-Za-z]*)
8306 os=`
8307 expr "X$host_os" : 'X\([A-Za-z]\)' | tr '[a-z]' '[A-Z]'
8309 expr "X$host_os" : 'X.\([A-Za-z]*\)'
8313 # If $host_os does not start with an alphabetic string, use it unchanged.
8315 os=$host_os;;
8316 esac
8317 utils_cv_host_operating_system=$os
8319 echo "$as_me:$LINENO: result: $utils_cv_host_operating_system" >&5
8320 echo "${ECHO_T}$utils_cv_host_operating_system" >&6
8322 cat >>confdefs.h <<_ACEOF
8323 #define HOST_OPERATING_SYSTEM "$utils_cv_host_operating_system"
8324 _ACEOF
8327 echo "$as_me:$LINENO: checking whether mkdir fails due to a trailing slash" >&5
8328 echo $ECHO_N "checking whether mkdir fails due to a trailing slash... $ECHO_C" >&6
8329 if test "${utils_cv_func_mkdir_trailing_slash_bug+set}" = set; then
8330 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 else
8333 # Arrange for deletion of the temporary directory this test might create.
8334 ac_clean_files="$ac_clean_files confdir-slash"
8335 if test "$cross_compiling" = yes; then
8336 utils_cv_func_mkdir_trailing_slash_bug=yes
8338 else
8339 cat >conftest.$ac_ext <<_ACEOF
8340 #line $LINENO "configure"
8341 /* confdefs.h. */
8342 _ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h. */
8347 # include <sys/types.h>
8348 # include <sys/stat.h>
8349 # include <stdlib.h>
8350 int main ()
8352 rmdir ("confdir-slash");
8353 exit (mkdir ("confdir-slash/", 0700));
8356 _ACEOF
8357 rm -f conftest$ac_exeext
8358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8359 (eval $ac_link) 2>&5
8360 ac_status=$?
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8364 (eval $ac_try) 2>&5
8365 ac_status=$?
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; }; then
8368 utils_cv_func_mkdir_trailing_slash_bug=no
8369 else
8370 echo "$as_me: program exited with status $ac_status" >&5
8371 echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8374 ( exit $ac_status )
8375 utils_cv_func_mkdir_trailing_slash_bug=yes
8377 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8382 echo "$as_me:$LINENO: result: $utils_cv_func_mkdir_trailing_slash_bug" >&5
8383 echo "${ECHO_T}$utils_cv_func_mkdir_trailing_slash_bug" >&6
8385 if test $utils_cv_func_mkdir_trailing_slash_bug = yes; then
8386 LIBOBJS="$LIBOBJS mkdir.$ac_objext"
8388 cat >>confdefs.h <<\_ACEOF
8389 #define mkdir rpl_mkdir
8390 _ACEOF
8395 # getdate.y works with bison only.
8396 : ${YACC='bison -y'}
8400 echo "$as_me:$LINENO: checking whether to enable assertions" >&5
8401 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6
8402 # Check whether --enable-assert or --disable-assert was given.
8403 if test "${enable_assert+set}" = set; then
8404 enableval="$enable_assert"
8405 echo "$as_me:$LINENO: result: no" >&5
8406 echo "${ECHO_T}no" >&6
8408 cat >>confdefs.h <<\_ACEOF
8409 #define NDEBUG 1
8410 _ACEOF
8412 else
8413 echo "$as_me:$LINENO: result: yes" >&5
8414 echo "${ECHO_T}yes" >&6
8420 for ac_header in utime.h
8422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8424 echo "$as_me:$LINENO: checking for $ac_header" >&5
8425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8431 else
8432 # Is the header compilable?
8433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8435 cat >conftest.$ac_ext <<_ACEOF
8436 #line $LINENO "configure"
8437 /* confdefs.h. */
8438 _ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8442 $ac_includes_default
8443 #include <$ac_header>
8444 _ACEOF
8445 rm -f conftest.$ac_objext
8446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8447 (eval $ac_compile) 2>&5
8448 ac_status=$?
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } &&
8451 { ac_try='test -s conftest.$ac_objext'
8452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453 (eval $ac_try) 2>&5
8454 ac_status=$?
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; }; then
8457 ac_header_compiler=yes
8458 else
8459 echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8462 ac_header_compiler=no
8464 rm -f conftest.$ac_objext conftest.$ac_ext
8465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8466 echo "${ECHO_T}$ac_header_compiler" >&6
8468 # Is the header present?
8469 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8471 cat >conftest.$ac_ext <<_ACEOF
8472 #line $LINENO "configure"
8473 /* confdefs.h. */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8478 #include <$ac_header>
8479 _ACEOF
8480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8482 ac_status=$?
8483 grep -v '^ *+' conftest.er1 >conftest.err
8484 rm -f conftest.er1
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } >/dev/null; then
8488 if test -s conftest.err; then
8489 ac_cpp_err=$ac_c_preproc_warn_flag
8490 else
8491 ac_cpp_err=
8493 else
8494 ac_cpp_err=yes
8496 if test -z "$ac_cpp_err"; then
8497 ac_header_preproc=yes
8498 else
8499 echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8502 ac_header_preproc=no
8504 rm -f conftest.err conftest.$ac_ext
8505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8506 echo "${ECHO_T}$ac_header_preproc" >&6
8508 # So? What about this header?
8509 case $ac_header_compiler:$ac_header_preproc in
8510 yes:no )
8511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8516 cat <<\_ASBOX
8517 ## ------------------------------------ ##
8518 ## Report this to bug-autoconf@gnu.org. ##
8519 ## ------------------------------------ ##
8520 _ASBOX
8522 sed "s/^/$as_me: WARNING: /" >&2
8524 no:yes )
8525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8532 cat <<\_ASBOX
8533 ## ------------------------------------ ##
8534 ## Report this to bug-autoconf@gnu.org. ##
8535 ## ------------------------------------ ##
8536 _ASBOX
8538 sed "s/^/$as_me: WARNING: /" >&2
8540 esac
8541 echo "$as_me:$LINENO: checking for $ac_header" >&5
8542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8545 else
8546 eval "$as_ac_Header=$ac_header_preproc"
8548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8553 cat >>confdefs.h <<_ACEOF
8554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8555 _ACEOF
8559 done
8562 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
8563 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
8564 if test "${fu_cv_sys_struct_utimbuf+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8566 else
8567 cat >conftest.$ac_ext <<_ACEOF
8568 #line $LINENO "configure"
8569 /* confdefs.h. */
8570 _ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8575 #ifdef TIME_WITH_SYS_TIME
8576 # include <sys/time.h>
8577 # include <time.h>
8578 #else
8579 # ifdef HAVE_SYS_TIME_H
8580 # include <sys/time.h>
8581 # else
8582 # include <time.h>
8583 # endif
8584 #endif
8585 #ifdef HAVE_UTIME_H
8586 # include <utime.h>
8587 #endif
8590 main ()
8592 static struct utimbuf x; x.actime = x.modtime;
8594 return 0;
8596 _ACEOF
8597 rm -f conftest.$ac_objext
8598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8599 (eval $ac_compile) 2>&5
8600 ac_status=$?
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } &&
8603 { ac_try='test -s conftest.$ac_objext'
8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 (eval $ac_try) 2>&5
8606 ac_status=$?
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; }; then
8609 fu_cv_sys_struct_utimbuf=yes
8610 else
8611 echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8614 fu_cv_sys_struct_utimbuf=no
8616 rm -f conftest.$ac_objext conftest.$ac_ext
8619 echo "$as_me:$LINENO: result: $fu_cv_sys_struct_utimbuf" >&5
8620 echo "${ECHO_T}$fu_cv_sys_struct_utimbuf" >&6
8622 if test $fu_cv_sys_struct_utimbuf = yes; then
8624 cat >>confdefs.h <<\_ACEOF
8625 #define HAVE_STRUCT_UTIMBUF 1
8626 _ACEOF
8630 echo "$as_me:$LINENO: checking for d_type member in directory struct" >&5
8631 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6
8632 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
8633 echo $ECHO_N "(cached) $ECHO_C" >&6
8634 else
8635 cat >conftest.$ac_ext <<_ACEOF
8636 #line $LINENO "configure"
8637 /* confdefs.h. */
8638 _ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8643 #include <sys/types.h>
8644 #ifdef HAVE_DIRENT_H
8645 # include <dirent.h>
8646 #else /* not HAVE_DIRENT_H */
8647 # define dirent direct
8648 # ifdef HAVE_SYS_NDIR_H
8649 # include <sys/ndir.h>
8650 # endif /* HAVE_SYS_NDIR_H */
8651 # ifdef HAVE_SYS_DIR_H
8652 # include <sys/dir.h>
8653 # endif /* HAVE_SYS_DIR_H */
8654 # ifdef HAVE_NDIR_H
8655 # include <ndir.h>
8656 # endif /* HAVE_NDIR_H */
8657 #endif /* HAVE_DIRENT_H */
8660 main ()
8662 struct dirent dp; dp.d_type = 0;
8664 return 0;
8666 _ACEOF
8667 rm -f conftest.$ac_objext conftest$ac_exeext
8668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8669 (eval $ac_link) 2>&5
8670 ac_status=$?
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } &&
8673 { ac_try='test -s conftest$ac_exeext'
8674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 (eval $ac_try) 2>&5
8676 ac_status=$?
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); }; }; then
8679 jm_cv_struct_dirent_d_type=yes
8680 else
8681 echo "$as_me: failed program was:" >&5
8682 sed 's/^/| /' conftest.$ac_ext >&5
8684 jm_cv_struct_dirent_d_type=no
8686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8690 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_type" >&5
8691 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6
8692 if test $jm_cv_struct_dirent_d_type = yes; then
8694 cat >>confdefs.h <<\_ACEOF
8695 #define HAVE_STRUCT_DIRENT_D_TYPE 1
8696 _ACEOF
8701 echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
8702 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
8703 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 else
8706 cat >conftest.$ac_ext <<_ACEOF
8707 #line $LINENO "configure"
8708 /* confdefs.h. */
8709 _ACEOF
8710 cat confdefs.h >>conftest.$ac_ext
8711 cat >>conftest.$ac_ext <<_ACEOF
8712 /* end confdefs.h. */
8714 #include <sys/types.h>
8715 #ifdef HAVE_DIRENT_H
8716 # include <dirent.h>
8717 #else /* not HAVE_DIRENT_H */
8718 # define dirent direct
8719 # ifdef HAVE_SYS_NDIR_H
8720 # include <sys/ndir.h>
8721 # endif /* HAVE_SYS_NDIR_H */
8722 # ifdef HAVE_SYS_DIR_H
8723 # include <sys/dir.h>
8724 # endif /* HAVE_SYS_DIR_H */
8725 # ifdef HAVE_NDIR_H
8726 # include <ndir.h>
8727 # endif /* HAVE_NDIR_H */
8728 #endif /* HAVE_DIRENT_H */
8731 main ()
8733 struct dirent dp; dp.d_ino = 0;
8735 return 0;
8737 _ACEOF
8738 rm -f conftest.$ac_objext conftest$ac_exeext
8739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8740 (eval $ac_link) 2>&5
8741 ac_status=$?
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); } &&
8744 { ac_try='test -s conftest$ac_exeext'
8745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746 (eval $ac_try) 2>&5
8747 ac_status=$?
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); }; }; then
8750 jm_cv_struct_dirent_d_ino=yes
8751 else
8752 echo "$as_me: failed program was:" >&5
8753 sed 's/^/| /' conftest.$ac_ext >&5
8755 jm_cv_struct_dirent_d_ino=no
8757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8761 echo "$as_me:$LINENO: result: $jm_cv_struct_dirent_d_ino" >&5
8762 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
8763 if test $jm_cv_struct_dirent_d_ino = yes; then
8765 cat >>confdefs.h <<\_ACEOF
8766 #define D_INO_IN_DIRENT 1
8767 _ACEOF
8784 for ac_header in grp.h memory.h pwd.h string.h strings.h stdlib.h \
8785 unistd.h sys/time.h utmp.h utmpx.h
8787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8789 echo "$as_me:$LINENO: checking for $ac_header" >&5
8790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8796 else
8797 # Is the header compilable?
8798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8800 cat >conftest.$ac_ext <<_ACEOF
8801 #line $LINENO "configure"
8802 /* confdefs.h. */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8807 $ac_includes_default
8808 #include <$ac_header>
8809 _ACEOF
8810 rm -f conftest.$ac_objext
8811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8812 (eval $ac_compile) 2>&5
8813 ac_status=$?
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } &&
8816 { ac_try='test -s conftest.$ac_objext'
8817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818 (eval $ac_try) 2>&5
8819 ac_status=$?
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; }; then
8822 ac_header_compiler=yes
8823 else
8824 echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8827 ac_header_compiler=no
8829 rm -f conftest.$ac_objext conftest.$ac_ext
8830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8831 echo "${ECHO_T}$ac_header_compiler" >&6
8833 # Is the header present?
8834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8836 cat >conftest.$ac_ext <<_ACEOF
8837 #line $LINENO "configure"
8838 /* confdefs.h. */
8839 _ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h. */
8843 #include <$ac_header>
8844 _ACEOF
8845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8847 ac_status=$?
8848 grep -v '^ *+' conftest.er1 >conftest.err
8849 rm -f conftest.er1
8850 cat conftest.err >&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } >/dev/null; then
8853 if test -s conftest.err; then
8854 ac_cpp_err=$ac_c_preproc_warn_flag
8855 else
8856 ac_cpp_err=
8858 else
8859 ac_cpp_err=yes
8861 if test -z "$ac_cpp_err"; then
8862 ac_header_preproc=yes
8863 else
8864 echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8867 ac_header_preproc=no
8869 rm -f conftest.err conftest.$ac_ext
8870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8871 echo "${ECHO_T}$ac_header_preproc" >&6
8873 # So? What about this header?
8874 case $ac_header_compiler:$ac_header_preproc in
8875 yes:no )
8876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8881 cat <<\_ASBOX
8882 ## ------------------------------------ ##
8883 ## Report this to bug-autoconf@gnu.org. ##
8884 ## ------------------------------------ ##
8885 _ASBOX
8887 sed "s/^/$as_me: WARNING: /" >&2
8889 no:yes )
8890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8897 cat <<\_ASBOX
8898 ## ------------------------------------ ##
8899 ## Report this to bug-autoconf@gnu.org. ##
8900 ## ------------------------------------ ##
8901 _ASBOX
8903 sed "s/^/$as_me: WARNING: /" >&2
8905 esac
8906 echo "$as_me:$LINENO: checking for $ac_header" >&5
8907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
8910 else
8911 eval "$as_ac_Header=$ac_header_preproc"
8913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8918 cat >>confdefs.h <<_ACEOF
8919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8920 _ACEOF
8924 done
8930 headers='
8931 #include <stdio.h>
8932 #if HAVE_STRING_H
8933 # if !STDC_HEADERS && HAVE_MEMORY_H
8934 # include <memory.h>
8935 # endif
8936 # include <string.h>
8937 #else
8938 # if HAVE_STRINGS_H
8939 # include <strings.h>
8940 # endif
8941 #endif
8942 #if HAVE_STDLIB_H
8943 # include <stdlib.h>
8944 #endif
8945 #if HAVE_UNISTD_H
8946 # include <unistd.h>
8947 #endif
8949 #include <sys/types.h>
8950 #if TIME_WITH_SYS_TIME
8951 # include <sys/time.h>
8952 # include <time.h>
8953 #else
8954 # if HAVE_SYS_TIME_H
8955 # include <sys/time.h>
8956 # else
8957 # include <time.h>
8958 # endif
8959 #endif
8961 #if HAVE_UTMP_H
8962 # include <utmp.h>
8963 #endif
8965 #if HAVE_GRP_H
8966 # include <grp.h>
8967 #endif
8969 #if HAVE_PWD_H
8970 # include <pwd.h>
8971 #endif
8974 echo "$as_me:$LINENO: checking whether euidaccess is declared" >&5
8975 echo $ECHO_N "checking whether euidaccess is declared... $ECHO_C" >&6
8976 if test "${ac_cv_have_decl_euidaccess+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8978 else
8979 cat >conftest.$ac_ext <<_ACEOF
8980 #line $LINENO "configure"
8981 /* confdefs.h. */
8982 _ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8986 $headers
8989 main ()
8991 #ifndef euidaccess
8992 char *p = (char *) euidaccess;
8993 #endif
8996 return 0;
8998 _ACEOF
8999 rm -f conftest.$ac_objext
9000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9001 (eval $ac_compile) 2>&5
9002 ac_status=$?
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } &&
9005 { ac_try='test -s conftest.$ac_objext'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007 (eval $ac_try) 2>&5
9008 ac_status=$?
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; }; then
9011 ac_cv_have_decl_euidaccess=yes
9012 else
9013 echo "$as_me: failed program was:" >&5
9014 sed 's/^/| /' conftest.$ac_ext >&5
9016 ac_cv_have_decl_euidaccess=no
9018 rm -f conftest.$ac_objext conftest.$ac_ext
9020 echo "$as_me:$LINENO: result: $ac_cv_have_decl_euidaccess" >&5
9021 echo "${ECHO_T}$ac_cv_have_decl_euidaccess" >&6
9022 if test $ac_cv_have_decl_euidaccess = yes; then
9024 cat >>confdefs.h <<_ACEOF
9025 #define HAVE_DECL_EUIDACCESS 1
9026 _ACEOF
9029 else
9030 cat >>confdefs.h <<_ACEOF
9031 #define HAVE_DECL_EUIDACCESS 0
9032 _ACEOF
9036 echo "$as_me:$LINENO: checking whether free is declared" >&5
9037 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
9038 if test "${ac_cv_have_decl_free+set}" = set; then
9039 echo $ECHO_N "(cached) $ECHO_C" >&6
9040 else
9041 cat >conftest.$ac_ext <<_ACEOF
9042 #line $LINENO "configure"
9043 /* confdefs.h. */
9044 _ACEOF
9045 cat confdefs.h >>conftest.$ac_ext
9046 cat >>conftest.$ac_ext <<_ACEOF
9047 /* end confdefs.h. */
9048 $headers
9051 main ()
9053 #ifndef free
9054 char *p = (char *) free;
9055 #endif
9058 return 0;
9060 _ACEOF
9061 rm -f conftest.$ac_objext
9062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9063 (eval $ac_compile) 2>&5
9064 ac_status=$?
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); } &&
9067 { ac_try='test -s conftest.$ac_objext'
9068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069 (eval $ac_try) 2>&5
9070 ac_status=$?
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); }; }; then
9073 ac_cv_have_decl_free=yes
9074 else
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9078 ac_cv_have_decl_free=no
9080 rm -f conftest.$ac_objext conftest.$ac_ext
9082 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
9083 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
9084 if test $ac_cv_have_decl_free = yes; then
9086 cat >>confdefs.h <<_ACEOF
9087 #define HAVE_DECL_FREE 1
9088 _ACEOF
9091 else
9092 cat >>confdefs.h <<_ACEOF
9093 #define HAVE_DECL_FREE 0
9094 _ACEOF
9098 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9099 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
9100 if test "${ac_cv_have_decl_getenv+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9102 else
9103 cat >conftest.$ac_ext <<_ACEOF
9104 #line $LINENO "configure"
9105 /* confdefs.h. */
9106 _ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h. */
9110 $headers
9113 main ()
9115 #ifndef getenv
9116 char *p = (char *) getenv;
9117 #endif
9120 return 0;
9122 _ACEOF
9123 rm -f conftest.$ac_objext
9124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9125 (eval $ac_compile) 2>&5
9126 ac_status=$?
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } &&
9129 { ac_try='test -s conftest.$ac_objext'
9130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131 (eval $ac_try) 2>&5
9132 ac_status=$?
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); }; }; then
9135 ac_cv_have_decl_getenv=yes
9136 else
9137 echo "$as_me: failed program was:" >&5
9138 sed 's/^/| /' conftest.$ac_ext >&5
9140 ac_cv_have_decl_getenv=no
9142 rm -f conftest.$ac_objext conftest.$ac_ext
9144 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9145 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
9146 if test $ac_cv_have_decl_getenv = yes; then
9148 cat >>confdefs.h <<_ACEOF
9149 #define HAVE_DECL_GETENV 1
9150 _ACEOF
9153 else
9154 cat >>confdefs.h <<_ACEOF
9155 #define HAVE_DECL_GETENV 0
9156 _ACEOF
9160 echo "$as_me:$LINENO: checking whether geteuid is declared" >&5
9161 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6
9162 if test "${ac_cv_have_decl_geteuid+set}" = set; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165 cat >conftest.$ac_ext <<_ACEOF
9166 #line $LINENO "configure"
9167 /* confdefs.h. */
9168 _ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h. */
9172 $headers
9175 main ()
9177 #ifndef geteuid
9178 char *p = (char *) geteuid;
9179 #endif
9182 return 0;
9184 _ACEOF
9185 rm -f conftest.$ac_objext
9186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9187 (eval $ac_compile) 2>&5
9188 ac_status=$?
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } &&
9191 { ac_try='test -s conftest.$ac_objext'
9192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9193 (eval $ac_try) 2>&5
9194 ac_status=$?
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); }; }; then
9197 ac_cv_have_decl_geteuid=yes
9198 else
9199 echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.$ac_ext >&5
9202 ac_cv_have_decl_geteuid=no
9204 rm -f conftest.$ac_objext conftest.$ac_ext
9206 echo "$as_me:$LINENO: result: $ac_cv_have_decl_geteuid" >&5
9207 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6
9208 if test $ac_cv_have_decl_geteuid = yes; then
9210 cat >>confdefs.h <<_ACEOF
9211 #define HAVE_DECL_GETEUID 1
9212 _ACEOF
9215 else
9216 cat >>confdefs.h <<_ACEOF
9217 #define HAVE_DECL_GETEUID 0
9218 _ACEOF
9222 echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
9223 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6
9224 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9226 else
9227 cat >conftest.$ac_ext <<_ACEOF
9228 #line $LINENO "configure"
9229 /* confdefs.h. */
9230 _ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h. */
9234 $headers
9237 main ()
9239 #ifndef getgrgid
9240 char *p = (char *) getgrgid;
9241 #endif
9244 return 0;
9246 _ACEOF
9247 rm -f conftest.$ac_objext
9248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9249 (eval $ac_compile) 2>&5
9250 ac_status=$?
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } &&
9253 { ac_try='test -s conftest.$ac_objext'
9254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255 (eval $ac_try) 2>&5
9256 ac_status=$?
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); }; }; then
9259 ac_cv_have_decl_getgrgid=yes
9260 else
9261 echo "$as_me: failed program was:" >&5
9262 sed 's/^/| /' conftest.$ac_ext >&5
9264 ac_cv_have_decl_getgrgid=no
9266 rm -f conftest.$ac_objext conftest.$ac_ext
9268 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
9269 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6
9270 if test $ac_cv_have_decl_getgrgid = yes; then
9272 cat >>confdefs.h <<_ACEOF
9273 #define HAVE_DECL_GETGRGID 1
9274 _ACEOF
9277 else
9278 cat >>confdefs.h <<_ACEOF
9279 #define HAVE_DECL_GETGRGID 0
9280 _ACEOF
9284 echo "$as_me:$LINENO: checking whether getlogin is declared" >&5
9285 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6
9286 if test "${ac_cv_have_decl_getlogin+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9288 else
9289 cat >conftest.$ac_ext <<_ACEOF
9290 #line $LINENO "configure"
9291 /* confdefs.h. */
9292 _ACEOF
9293 cat confdefs.h >>conftest.$ac_ext
9294 cat >>conftest.$ac_ext <<_ACEOF
9295 /* end confdefs.h. */
9296 $headers
9299 main ()
9301 #ifndef getlogin
9302 char *p = (char *) getlogin;
9303 #endif
9306 return 0;
9308 _ACEOF
9309 rm -f conftest.$ac_objext
9310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9311 (eval $ac_compile) 2>&5
9312 ac_status=$?
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } &&
9315 { ac_try='test -s conftest.$ac_objext'
9316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317 (eval $ac_try) 2>&5
9318 ac_status=$?
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); }; }; then
9321 ac_cv_have_decl_getlogin=yes
9322 else
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9326 ac_cv_have_decl_getlogin=no
9328 rm -f conftest.$ac_objext conftest.$ac_ext
9330 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getlogin" >&5
9331 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6
9332 if test $ac_cv_have_decl_getlogin = yes; then
9334 cat >>confdefs.h <<_ACEOF
9335 #define HAVE_DECL_GETLOGIN 1
9336 _ACEOF
9339 else
9340 cat >>confdefs.h <<_ACEOF
9341 #define HAVE_DECL_GETLOGIN 0
9342 _ACEOF
9346 echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
9347 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6
9348 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351 cat >conftest.$ac_ext <<_ACEOF
9352 #line $LINENO "configure"
9353 /* confdefs.h. */
9354 _ACEOF
9355 cat confdefs.h >>conftest.$ac_ext
9356 cat >>conftest.$ac_ext <<_ACEOF
9357 /* end confdefs.h. */
9358 $headers
9361 main ()
9363 #ifndef getpwuid
9364 char *p = (char *) getpwuid;
9365 #endif
9368 return 0;
9370 _ACEOF
9371 rm -f conftest.$ac_objext
9372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9373 (eval $ac_compile) 2>&5
9374 ac_status=$?
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } &&
9377 { ac_try='test -s conftest.$ac_objext'
9378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 (eval $ac_try) 2>&5
9380 ac_status=$?
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); }; }; then
9383 ac_cv_have_decl_getpwuid=yes
9384 else
9385 echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9388 ac_cv_have_decl_getpwuid=no
9390 rm -f conftest.$ac_objext conftest.$ac_ext
9392 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
9393 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6
9394 if test $ac_cv_have_decl_getpwuid = yes; then
9396 cat >>confdefs.h <<_ACEOF
9397 #define HAVE_DECL_GETPWUID 1
9398 _ACEOF
9401 else
9402 cat >>confdefs.h <<_ACEOF
9403 #define HAVE_DECL_GETPWUID 0
9404 _ACEOF
9408 echo "$as_me:$LINENO: checking whether getuid is declared" >&5
9409 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6
9410 if test "${ac_cv_have_decl_getuid+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9412 else
9413 cat >conftest.$ac_ext <<_ACEOF
9414 #line $LINENO "configure"
9415 /* confdefs.h. */
9416 _ACEOF
9417 cat confdefs.h >>conftest.$ac_ext
9418 cat >>conftest.$ac_ext <<_ACEOF
9419 /* end confdefs.h. */
9420 $headers
9423 main ()
9425 #ifndef getuid
9426 char *p = (char *) getuid;
9427 #endif
9430 return 0;
9432 _ACEOF
9433 rm -f conftest.$ac_objext
9434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9435 (eval $ac_compile) 2>&5
9436 ac_status=$?
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } &&
9439 { ac_try='test -s conftest.$ac_objext'
9440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441 (eval $ac_try) 2>&5
9442 ac_status=$?
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); }; }; then
9445 ac_cv_have_decl_getuid=yes
9446 else
9447 echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9450 ac_cv_have_decl_getuid=no
9452 rm -f conftest.$ac_objext conftest.$ac_ext
9454 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getuid" >&5
9455 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6
9456 if test $ac_cv_have_decl_getuid = yes; then
9458 cat >>confdefs.h <<_ACEOF
9459 #define HAVE_DECL_GETUID 1
9460 _ACEOF
9463 else
9464 cat >>confdefs.h <<_ACEOF
9465 #define HAVE_DECL_GETUID 0
9466 _ACEOF
9470 echo "$as_me:$LINENO: checking whether getutent is declared" >&5
9471 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
9472 if test "${ac_cv_have_decl_getutent+set}" = set; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 else
9475 cat >conftest.$ac_ext <<_ACEOF
9476 #line $LINENO "configure"
9477 /* confdefs.h. */
9478 _ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482 $headers
9485 main ()
9487 #ifndef getutent
9488 char *p = (char *) getutent;
9489 #endif
9492 return 0;
9494 _ACEOF
9495 rm -f conftest.$ac_objext
9496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9497 (eval $ac_compile) 2>&5
9498 ac_status=$?
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } &&
9501 { ac_try='test -s conftest.$ac_objext'
9502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503 (eval $ac_try) 2>&5
9504 ac_status=$?
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); }; }; then
9507 ac_cv_have_decl_getutent=yes
9508 else
9509 echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.$ac_ext >&5
9512 ac_cv_have_decl_getutent=no
9514 rm -f conftest.$ac_objext conftest.$ac_ext
9516 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getutent" >&5
9517 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
9518 if test $ac_cv_have_decl_getutent = yes; then
9520 cat >>confdefs.h <<_ACEOF
9521 #define HAVE_DECL_GETUTENT 1
9522 _ACEOF
9525 else
9526 cat >>confdefs.h <<_ACEOF
9527 #define HAVE_DECL_GETUTENT 0
9528 _ACEOF
9532 echo "$as_me:$LINENO: checking whether lseek is declared" >&5
9533 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6
9534 if test "${ac_cv_have_decl_lseek+set}" = set; then
9535 echo $ECHO_N "(cached) $ECHO_C" >&6
9536 else
9537 cat >conftest.$ac_ext <<_ACEOF
9538 #line $LINENO "configure"
9539 /* confdefs.h. */
9540 _ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9544 $headers
9547 main ()
9549 #ifndef lseek
9550 char *p = (char *) lseek;
9551 #endif
9554 return 0;
9556 _ACEOF
9557 rm -f conftest.$ac_objext
9558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9559 (eval $ac_compile) 2>&5
9560 ac_status=$?
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } &&
9563 { ac_try='test -s conftest.$ac_objext'
9564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565 (eval $ac_try) 2>&5
9566 ac_status=$?
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); }; }; then
9569 ac_cv_have_decl_lseek=yes
9570 else
9571 echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.$ac_ext >&5
9574 ac_cv_have_decl_lseek=no
9576 rm -f conftest.$ac_objext conftest.$ac_ext
9578 echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek" >&5
9579 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6
9580 if test $ac_cv_have_decl_lseek = yes; then
9582 cat >>confdefs.h <<_ACEOF
9583 #define HAVE_DECL_LSEEK 1
9584 _ACEOF
9587 else
9588 cat >>confdefs.h <<_ACEOF
9589 #define HAVE_DECL_LSEEK 0
9590 _ACEOF
9594 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
9595 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
9596 if test "${ac_cv_have_decl_malloc+set}" = set; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9598 else
9599 cat >conftest.$ac_ext <<_ACEOF
9600 #line $LINENO "configure"
9601 /* confdefs.h. */
9602 _ACEOF
9603 cat confdefs.h >>conftest.$ac_ext
9604 cat >>conftest.$ac_ext <<_ACEOF
9605 /* end confdefs.h. */
9606 $headers
9609 main ()
9611 #ifndef malloc
9612 char *p = (char *) malloc;
9613 #endif
9616 return 0;
9618 _ACEOF
9619 rm -f conftest.$ac_objext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9621 (eval $ac_compile) 2>&5
9622 ac_status=$?
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } &&
9625 { ac_try='test -s conftest.$ac_objext'
9626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627 (eval $ac_try) 2>&5
9628 ac_status=$?
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); }; }; then
9631 ac_cv_have_decl_malloc=yes
9632 else
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9636 ac_cv_have_decl_malloc=no
9638 rm -f conftest.$ac_objext conftest.$ac_ext
9640 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
9641 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
9642 if test $ac_cv_have_decl_malloc = yes; then
9644 cat >>confdefs.h <<_ACEOF
9645 #define HAVE_DECL_MALLOC 1
9646 _ACEOF
9649 else
9650 cat >>confdefs.h <<_ACEOF
9651 #define HAVE_DECL_MALLOC 0
9652 _ACEOF
9656 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
9657 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
9658 if test "${ac_cv_have_decl_memchr+set}" = set; then
9659 echo $ECHO_N "(cached) $ECHO_C" >&6
9660 else
9661 cat >conftest.$ac_ext <<_ACEOF
9662 #line $LINENO "configure"
9663 /* confdefs.h. */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9668 $headers
9671 main ()
9673 #ifndef memchr
9674 char *p = (char *) memchr;
9675 #endif
9678 return 0;
9680 _ACEOF
9681 rm -f conftest.$ac_objext
9682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9683 (eval $ac_compile) 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } &&
9687 { ac_try='test -s conftest.$ac_objext'
9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 (eval $ac_try) 2>&5
9690 ac_status=$?
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; }; then
9693 ac_cv_have_decl_memchr=yes
9694 else
9695 echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9698 ac_cv_have_decl_memchr=no
9700 rm -f conftest.$ac_objext conftest.$ac_ext
9702 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
9703 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
9704 if test $ac_cv_have_decl_memchr = yes; then
9706 cat >>confdefs.h <<_ACEOF
9707 #define HAVE_DECL_MEMCHR 1
9708 _ACEOF
9711 else
9712 cat >>confdefs.h <<_ACEOF
9713 #define HAVE_DECL_MEMCHR 0
9714 _ACEOF
9718 echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
9719 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
9720 if test "${ac_cv_have_decl_memrchr+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 else
9723 cat >conftest.$ac_ext <<_ACEOF
9724 #line $LINENO "configure"
9725 /* confdefs.h. */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9730 $headers
9733 main ()
9735 #ifndef memrchr
9736 char *p = (char *) memrchr;
9737 #endif
9740 return 0;
9742 _ACEOF
9743 rm -f conftest.$ac_objext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9745 (eval $ac_compile) 2>&5
9746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); } &&
9749 { ac_try='test -s conftest.$ac_objext'
9750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 (eval $ac_try) 2>&5
9752 ac_status=$?
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9755 ac_cv_have_decl_memrchr=yes
9756 else
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9760 ac_cv_have_decl_memrchr=no
9762 rm -f conftest.$ac_objext conftest.$ac_ext
9764 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
9765 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
9766 if test $ac_cv_have_decl_memrchr = yes; then
9768 cat >>confdefs.h <<_ACEOF
9769 #define HAVE_DECL_MEMRCHR 1
9770 _ACEOF
9773 else
9774 cat >>confdefs.h <<_ACEOF
9775 #define HAVE_DECL_MEMRCHR 0
9776 _ACEOF
9780 echo "$as_me:$LINENO: checking whether nanosleep is declared" >&5
9781 echo $ECHO_N "checking whether nanosleep is declared... $ECHO_C" >&6
9782 if test "${ac_cv_have_decl_nanosleep+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9784 else
9785 cat >conftest.$ac_ext <<_ACEOF
9786 #line $LINENO "configure"
9787 /* confdefs.h. */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 $headers
9795 main ()
9797 #ifndef nanosleep
9798 char *p = (char *) nanosleep;
9799 #endif
9802 return 0;
9804 _ACEOF
9805 rm -f conftest.$ac_objext
9806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9807 (eval $ac_compile) 2>&5
9808 ac_status=$?
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } &&
9811 { ac_try='test -s conftest.$ac_objext'
9812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813 (eval $ac_try) 2>&5
9814 ac_status=$?
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; }; then
9817 ac_cv_have_decl_nanosleep=yes
9818 else
9819 echo "$as_me: failed program was:" >&5
9820 sed 's/^/| /' conftest.$ac_ext >&5
9822 ac_cv_have_decl_nanosleep=no
9824 rm -f conftest.$ac_objext conftest.$ac_ext
9826 echo "$as_me:$LINENO: result: $ac_cv_have_decl_nanosleep" >&5
9827 echo "${ECHO_T}$ac_cv_have_decl_nanosleep" >&6
9828 if test $ac_cv_have_decl_nanosleep = yes; then
9830 cat >>confdefs.h <<_ACEOF
9831 #define HAVE_DECL_NANOSLEEP 1
9832 _ACEOF
9835 else
9836 cat >>confdefs.h <<_ACEOF
9837 #define HAVE_DECL_NANOSLEEP 0
9838 _ACEOF
9842 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
9843 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
9844 if test "${ac_cv_have_decl_realloc+set}" = set; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9846 else
9847 cat >conftest.$ac_ext <<_ACEOF
9848 #line $LINENO "configure"
9849 /* confdefs.h. */
9850 _ACEOF
9851 cat confdefs.h >>conftest.$ac_ext
9852 cat >>conftest.$ac_ext <<_ACEOF
9853 /* end confdefs.h. */
9854 $headers
9857 main ()
9859 #ifndef realloc
9860 char *p = (char *) realloc;
9861 #endif
9864 return 0;
9866 _ACEOF
9867 rm -f conftest.$ac_objext
9868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9869 (eval $ac_compile) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } &&
9873 { ac_try='test -s conftest.$ac_objext'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 (eval $ac_try) 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 ac_cv_have_decl_realloc=yes
9880 else
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9884 ac_cv_have_decl_realloc=no
9886 rm -f conftest.$ac_objext conftest.$ac_ext
9888 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
9889 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
9890 if test $ac_cv_have_decl_realloc = yes; then
9892 cat >>confdefs.h <<_ACEOF
9893 #define HAVE_DECL_REALLOC 1
9894 _ACEOF
9897 else
9898 cat >>confdefs.h <<_ACEOF
9899 #define HAVE_DECL_REALLOC 0
9900 _ACEOF
9904 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
9905 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
9906 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9908 else
9909 cat >conftest.$ac_ext <<_ACEOF
9910 #line $LINENO "configure"
9911 /* confdefs.h. */
9912 _ACEOF
9913 cat confdefs.h >>conftest.$ac_ext
9914 cat >>conftest.$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9916 $headers
9919 main ()
9921 #ifndef stpcpy
9922 char *p = (char *) stpcpy;
9923 #endif
9926 return 0;
9928 _ACEOF
9929 rm -f conftest.$ac_objext
9930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9931 (eval $ac_compile) 2>&5
9932 ac_status=$?
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } &&
9935 { ac_try='test -s conftest.$ac_objext'
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 (eval $ac_try) 2>&5
9938 ac_status=$?
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; }; then
9941 ac_cv_have_decl_stpcpy=yes
9942 else
9943 echo "$as_me: failed program was:" >&5
9944 sed 's/^/| /' conftest.$ac_ext >&5
9946 ac_cv_have_decl_stpcpy=no
9948 rm -f conftest.$ac_objext conftest.$ac_ext
9950 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
9951 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
9952 if test $ac_cv_have_decl_stpcpy = yes; then
9954 cat >>confdefs.h <<_ACEOF
9955 #define HAVE_DECL_STPCPY 1
9956 _ACEOF
9959 else
9960 cat >>confdefs.h <<_ACEOF
9961 #define HAVE_DECL_STPCPY 0
9962 _ACEOF
9966 echo "$as_me:$LINENO: checking whether strndup is declared" >&5
9967 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
9968 if test "${ac_cv_have_decl_strndup+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 else
9971 cat >conftest.$ac_ext <<_ACEOF
9972 #line $LINENO "configure"
9973 /* confdefs.h. */
9974 _ACEOF
9975 cat confdefs.h >>conftest.$ac_ext
9976 cat >>conftest.$ac_ext <<_ACEOF
9977 /* end confdefs.h. */
9978 $headers
9981 main ()
9983 #ifndef strndup
9984 char *p = (char *) strndup;
9985 #endif
9988 return 0;
9990 _ACEOF
9991 rm -f conftest.$ac_objext
9992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9993 (eval $ac_compile) 2>&5
9994 ac_status=$?
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } &&
9997 { ac_try='test -s conftest.$ac_objext'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 (eval $ac_try) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; }; then
10003 ac_cv_have_decl_strndup=yes
10004 else
10005 echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10008 ac_cv_have_decl_strndup=no
10010 rm -f conftest.$ac_objext conftest.$ac_ext
10012 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
10013 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
10014 if test $ac_cv_have_decl_strndup = yes; then
10016 cat >>confdefs.h <<_ACEOF
10017 #define HAVE_DECL_STRNDUP 1
10018 _ACEOF
10021 else
10022 cat >>confdefs.h <<_ACEOF
10023 #define HAVE_DECL_STRNDUP 0
10024 _ACEOF
10028 echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
10029 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
10030 if test "${ac_cv_have_decl_strnlen+set}" = set; then
10031 echo $ECHO_N "(cached) $ECHO_C" >&6
10032 else
10033 cat >conftest.$ac_ext <<_ACEOF
10034 #line $LINENO "configure"
10035 /* confdefs.h. */
10036 _ACEOF
10037 cat confdefs.h >>conftest.$ac_ext
10038 cat >>conftest.$ac_ext <<_ACEOF
10039 /* end confdefs.h. */
10040 $headers
10043 main ()
10045 #ifndef strnlen
10046 char *p = (char *) strnlen;
10047 #endif
10050 return 0;
10052 _ACEOF
10053 rm -f conftest.$ac_objext
10054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10055 (eval $ac_compile) 2>&5
10056 ac_status=$?
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } &&
10059 { ac_try='test -s conftest.$ac_objext'
10060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10061 (eval $ac_try) 2>&5
10062 ac_status=$?
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); }; }; then
10065 ac_cv_have_decl_strnlen=yes
10066 else
10067 echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.$ac_ext >&5
10070 ac_cv_have_decl_strnlen=no
10072 rm -f conftest.$ac_objext conftest.$ac_ext
10074 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
10075 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
10076 if test $ac_cv_have_decl_strnlen = yes; then
10078 cat >>confdefs.h <<_ACEOF
10079 #define HAVE_DECL_STRNLEN 1
10080 _ACEOF
10083 else
10084 cat >>confdefs.h <<_ACEOF
10085 #define HAVE_DECL_STRNLEN 0
10086 _ACEOF
10090 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
10091 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
10092 if test "${ac_cv_have_decl_strstr+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10094 else
10095 cat >conftest.$ac_ext <<_ACEOF
10096 #line $LINENO "configure"
10097 /* confdefs.h. */
10098 _ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10102 $headers
10105 main ()
10107 #ifndef strstr
10108 char *p = (char *) strstr;
10109 #endif
10112 return 0;
10114 _ACEOF
10115 rm -f conftest.$ac_objext
10116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10117 (eval $ac_compile) 2>&5
10118 ac_status=$?
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); } &&
10121 { ac_try='test -s conftest.$ac_objext'
10122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10123 (eval $ac_try) 2>&5
10124 ac_status=$?
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); }; }; then
10127 ac_cv_have_decl_strstr=yes
10128 else
10129 echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10132 ac_cv_have_decl_strstr=no
10134 rm -f conftest.$ac_objext conftest.$ac_ext
10136 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
10137 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
10138 if test $ac_cv_have_decl_strstr = yes; then
10140 cat >>confdefs.h <<_ACEOF
10141 #define HAVE_DECL_STRSTR 1
10142 _ACEOF
10145 else
10146 cat >>confdefs.h <<_ACEOF
10147 #define HAVE_DECL_STRSTR 0
10148 _ACEOF
10152 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
10153 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
10154 if test "${ac_cv_have_decl_strtoul+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 else
10157 cat >conftest.$ac_ext <<_ACEOF
10158 #line $LINENO "configure"
10159 /* confdefs.h. */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10164 $headers
10167 main ()
10169 #ifndef strtoul
10170 char *p = (char *) strtoul;
10171 #endif
10174 return 0;
10176 _ACEOF
10177 rm -f conftest.$ac_objext
10178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10179 (eval $ac_compile) 2>&5
10180 ac_status=$?
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } &&
10183 { ac_try='test -s conftest.$ac_objext'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
10189 ac_cv_have_decl_strtoul=yes
10190 else
10191 echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10194 ac_cv_have_decl_strtoul=no
10196 rm -f conftest.$ac_objext conftest.$ac_ext
10198 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
10199 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
10200 if test $ac_cv_have_decl_strtoul = yes; then
10202 cat >>confdefs.h <<_ACEOF
10203 #define HAVE_DECL_STRTOUL 1
10204 _ACEOF
10207 else
10208 cat >>confdefs.h <<_ACEOF
10209 #define HAVE_DECL_STRTOUL 0
10210 _ACEOF
10214 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
10215 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
10216 if test "${ac_cv_have_decl_strtoull+set}" = set; then
10217 echo $ECHO_N "(cached) $ECHO_C" >&6
10218 else
10219 cat >conftest.$ac_ext <<_ACEOF
10220 #line $LINENO "configure"
10221 /* confdefs.h. */
10222 _ACEOF
10223 cat confdefs.h >>conftest.$ac_ext
10224 cat >>conftest.$ac_ext <<_ACEOF
10225 /* end confdefs.h. */
10226 $headers
10229 main ()
10231 #ifndef strtoull
10232 char *p = (char *) strtoull;
10233 #endif
10236 return 0;
10238 _ACEOF
10239 rm -f conftest.$ac_objext
10240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10241 (eval $ac_compile) 2>&5
10242 ac_status=$?
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } &&
10245 { ac_try='test -s conftest.$ac_objext'
10246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247 (eval $ac_try) 2>&5
10248 ac_status=$?
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10251 ac_cv_have_decl_strtoull=yes
10252 else
10253 echo "$as_me: failed program was:" >&5
10254 sed 's/^/| /' conftest.$ac_ext >&5
10256 ac_cv_have_decl_strtoull=no
10258 rm -f conftest.$ac_objext conftest.$ac_ext
10260 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
10261 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
10262 if test $ac_cv_have_decl_strtoull = yes; then
10264 cat >>confdefs.h <<_ACEOF
10265 #define HAVE_DECL_STRTOULL 1
10266 _ACEOF
10269 else
10270 cat >>confdefs.h <<_ACEOF
10271 #define HAVE_DECL_STRTOULL 0
10272 _ACEOF
10276 echo "$as_me:$LINENO: checking whether ttyname is declared" >&5
10277 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6
10278 if test "${ac_cv_have_decl_ttyname+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 else
10281 cat >conftest.$ac_ext <<_ACEOF
10282 #line $LINENO "configure"
10283 /* confdefs.h. */
10284 _ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10288 $headers
10291 main ()
10293 #ifndef ttyname
10294 char *p = (char *) ttyname;
10295 #endif
10298 return 0;
10300 _ACEOF
10301 rm -f conftest.$ac_objext
10302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10303 (eval $ac_compile) 2>&5
10304 ac_status=$?
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } &&
10307 { ac_try='test -s conftest.$ac_objext'
10308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309 (eval $ac_try) 2>&5
10310 ac_status=$?
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; }; then
10313 ac_cv_have_decl_ttyname=yes
10314 else
10315 echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10318 ac_cv_have_decl_ttyname=no
10320 rm -f conftest.$ac_objext conftest.$ac_ext
10322 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ttyname" >&5
10323 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6
10324 if test $ac_cv_have_decl_ttyname = yes; then
10326 cat >>confdefs.h <<_ACEOF
10327 #define HAVE_DECL_TTYNAME 1
10328 _ACEOF
10331 else
10332 cat >>confdefs.h <<_ACEOF
10333 #define HAVE_DECL_TTYNAME 0
10334 _ACEOF
10341 echo "$as_me:$LINENO: checking for long file names" >&5
10342 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
10343 if test "${ac_cv_sys_long_file_names+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10345 else
10346 ac_cv_sys_long_file_names=yes
10347 # Test for long file names in all the places we know might matter:
10348 # . the current directory, where building will happen
10349 # $prefix/lib where we will be installing things
10350 # $exec_prefix/lib likewise
10351 # eval it to expand exec_prefix.
10352 # $TMPDIR if set, where it might want to write temporary files
10353 # if $TMPDIR is not set:
10354 # /tmp where it might want to write temporary files
10355 # /var/tmp likewise
10356 # /usr/tmp likewise
10357 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
10358 ac_tmpdirs=$TMPDIR
10359 else
10360 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
10362 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
10363 test -d $ac_dir || continue
10364 test -w $ac_dir || continue # It is less confusing to not echo anything here.
10365 ac_xdir=$ac_dir/cf$$
10366 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
10367 ac_tf1=$ac_xdir/conftest9012345
10368 ac_tf2=$ac_xdir/conftest9012346
10369 (echo 1 >$ac_tf1) 2>/dev/null
10370 (echo 2 >$ac_tf2) 2>/dev/null
10371 ac_val=`cat $ac_tf1 2>/dev/null`
10372 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
10373 ac_cv_sys_long_file_names=no
10374 rm -rf $ac_xdir 2>/dev/null
10375 break
10377 rm -rf $ac_xdir 2>/dev/null
10378 done
10380 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
10381 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
10382 if test $ac_cv_sys_long_file_names = yes; then
10384 cat >>confdefs.h <<\_ACEOF
10385 #define HAVE_LONG_FILE_NAMES 1
10386 _ACEOF
10393 for ac_func in pathconf
10395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10396 echo "$as_me:$LINENO: checking for $ac_func" >&5
10397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10398 if eval "test \"\${$as_ac_var+set}\" = set"; then
10399 echo $ECHO_N "(cached) $ECHO_C" >&6
10400 else
10401 cat >conftest.$ac_ext <<_ACEOF
10402 #line $LINENO "configure"
10403 /* confdefs.h. */
10404 _ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h. */
10408 /* System header to define __stub macros and hopefully few prototypes,
10409 which can conflict with char $ac_func (); below.
10410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10411 <limits.h> exists even on freestanding compilers. */
10412 #ifdef __STDC__
10413 # include <limits.h>
10414 #else
10415 # include <assert.h>
10416 #endif
10417 /* Override any gcc2 internal prototype to avoid an error. */
10418 #ifdef __cplusplus
10419 extern "C"
10421 #endif
10422 /* We use char because int might match the return type of a gcc2
10423 builtin and then its argument prototype would still apply. */
10424 char $ac_func ();
10425 /* The GNU C library defines this for functions which it implements
10426 to always fail with ENOSYS. Some functions are actually named
10427 something starting with __ and the normal name is an alias. */
10428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10429 choke me
10430 #else
10431 char (*f) () = $ac_func;
10432 #endif
10433 #ifdef __cplusplus
10435 #endif
10438 main ()
10440 return f != $ac_func;
10442 return 0;
10444 _ACEOF
10445 rm -f conftest.$ac_objext conftest$ac_exeext
10446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10447 (eval $ac_link) 2>&5
10448 ac_status=$?
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } &&
10451 { ac_try='test -s conftest$ac_exeext'
10452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453 (eval $ac_try) 2>&5
10454 ac_status=$?
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; }; then
10457 eval "$as_ac_var=yes"
10458 else
10459 echo "$as_me: failed program was:" >&5
10460 sed 's/^/| /' conftest.$ac_ext >&5
10462 eval "$as_ac_var=no"
10464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10468 if test `eval echo '${'$as_ac_var'}'` = yes; then
10469 cat >>confdefs.h <<_ACEOF
10470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10471 _ACEOF
10474 done
10479 for ac_header in limits.h string.h unistd.h
10481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10483 echo "$as_me:$LINENO: checking for $ac_header" >&5
10484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10490 else
10491 # Is the header compilable?
10492 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10493 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10494 cat >conftest.$ac_ext <<_ACEOF
10495 #line $LINENO "configure"
10496 /* confdefs.h. */
10497 _ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10501 $ac_includes_default
10502 #include <$ac_header>
10503 _ACEOF
10504 rm -f conftest.$ac_objext
10505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10506 (eval $ac_compile) 2>&5
10507 ac_status=$?
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); } &&
10510 { ac_try='test -s conftest.$ac_objext'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10513 ac_status=$?
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; }; then
10516 ac_header_compiler=yes
10517 else
10518 echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.$ac_ext >&5
10521 ac_header_compiler=no
10523 rm -f conftest.$ac_objext conftest.$ac_ext
10524 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10525 echo "${ECHO_T}$ac_header_compiler" >&6
10527 # Is the header present?
10528 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10530 cat >conftest.$ac_ext <<_ACEOF
10531 #line $LINENO "configure"
10532 /* confdefs.h. */
10533 _ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h. */
10537 #include <$ac_header>
10538 _ACEOF
10539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10541 ac_status=$?
10542 grep -v '^ *+' conftest.er1 >conftest.err
10543 rm -f conftest.er1
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } >/dev/null; then
10547 if test -s conftest.err; then
10548 ac_cpp_err=$ac_c_preproc_warn_flag
10549 else
10550 ac_cpp_err=
10552 else
10553 ac_cpp_err=yes
10555 if test -z "$ac_cpp_err"; then
10556 ac_header_preproc=yes
10557 else
10558 echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10561 ac_header_preproc=no
10563 rm -f conftest.err conftest.$ac_ext
10564 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10565 echo "${ECHO_T}$ac_header_preproc" >&6
10567 # So? What about this header?
10568 case $ac_header_compiler:$ac_header_preproc in
10569 yes:no )
10570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10575 cat <<\_ASBOX
10576 ## ------------------------------------ ##
10577 ## Report this to bug-autoconf@gnu.org. ##
10578 ## ------------------------------------ ##
10579 _ASBOX
10581 sed "s/^/$as_me: WARNING: /" >&2
10583 no:yes )
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10591 cat <<\_ASBOX
10592 ## ------------------------------------ ##
10593 ## Report this to bug-autoconf@gnu.org. ##
10594 ## ------------------------------------ ##
10595 _ASBOX
10597 sed "s/^/$as_me: WARNING: /" >&2
10599 esac
10600 echo "$as_me:$LINENO: checking for $ac_header" >&5
10601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10604 else
10605 eval "$as_ac_Header=$ac_header_preproc"
10607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10612 cat >>confdefs.h <<_ACEOF
10613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10614 _ACEOF
10618 done
10621 # for STACK_DIRECTION
10624 for ac_func in setrlimit
10626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10627 echo "$as_me:$LINENO: checking for $ac_func" >&5
10628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10629 if eval "test \"\${$as_ac_var+set}\" = set"; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10631 else
10632 cat >conftest.$ac_ext <<_ACEOF
10633 #line $LINENO "configure"
10634 /* confdefs.h. */
10635 _ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10639 /* System header to define __stub macros and hopefully few prototypes,
10640 which can conflict with char $ac_func (); below.
10641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10642 <limits.h> exists even on freestanding compilers. */
10643 #ifdef __STDC__
10644 # include <limits.h>
10645 #else
10646 # include <assert.h>
10647 #endif
10648 /* Override any gcc2 internal prototype to avoid an error. */
10649 #ifdef __cplusplus
10650 extern "C"
10652 #endif
10653 /* We use char because int might match the return type of a gcc2
10654 builtin and then its argument prototype would still apply. */
10655 char $ac_func ();
10656 /* The GNU C library defines this for functions which it implements
10657 to always fail with ENOSYS. Some functions are actually named
10658 something starting with __ and the normal name is an alias. */
10659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10660 choke me
10661 #else
10662 char (*f) () = $ac_func;
10663 #endif
10664 #ifdef __cplusplus
10666 #endif
10669 main ()
10671 return f != $ac_func;
10673 return 0;
10675 _ACEOF
10676 rm -f conftest.$ac_objext conftest$ac_exeext
10677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10678 (eval $ac_link) 2>&5
10679 ac_status=$?
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); } &&
10682 { ac_try='test -s conftest$ac_exeext'
10683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10684 (eval $ac_try) 2>&5
10685 ac_status=$?
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); }; }; then
10688 eval "$as_ac_var=yes"
10689 else
10690 echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10693 eval "$as_ac_var=no"
10695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10699 if test `eval echo '${'$as_ac_var'}'` = yes; then
10700 cat >>confdefs.h <<_ACEOF
10701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10702 _ACEOF
10705 done
10708 echo "$as_me:$LINENO: checking for working C stack overflow detection" >&5
10709 echo $ECHO_N "checking for working C stack overflow detection... $ECHO_C" >&6
10710 if test "${ac_cv_sys_xsi_stack_overflow_heuristic+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 else
10713 if test "$cross_compiling" = yes; then
10714 ac_cv_sys_xsi_stack_overflow_heuristic=cross-compiling
10715 else
10716 cat >conftest.$ac_ext <<_ACEOF
10717 #line $LINENO "configure"
10718 /* confdefs.h. */
10719 _ACEOF
10720 cat confdefs.h >>conftest.$ac_ext
10721 cat >>conftest.$ac_ext <<_ACEOF
10722 /* end confdefs.h. */
10724 #include <unistd.h>
10725 #include <signal.h>
10726 #include <ucontext.h>
10727 #if HAVE_SETRLIMIT
10728 # include <sys/types.h>
10729 # include <sys/time.h>
10730 # include <sys/resource.h>
10731 #endif
10733 static union
10735 char buffer[SIGSTKSZ];
10736 long double ld;
10737 long u;
10738 void *p;
10739 } alternate_signal_stack;
10741 #if STACK_DIRECTION
10742 # define find_stack_direction(ptr) STACK_DIRECTION
10743 #else
10744 static int
10745 find_stack_direction (char const *addr)
10747 char dummy;
10748 return (! addr ? find_stack_direction (&dummy)
10749 : addr < &dummy ? 1 : -1);
10751 #endif
10753 static void
10754 segv_handler (int signo, siginfo_t *info, void *context)
10756 if (0 < info->si_code)
10758 ucontext_t const *user_context = context;
10759 char const *stack_min = user_context->uc_stack.ss_sp;
10760 size_t stack_size = user_context->uc_stack.ss_size;
10761 char const *faulting_address = info->si_addr;
10762 size_t s = faulting_address - stack_min;
10763 size_t page_size = sysconf (_SC_PAGESIZE);
10764 if (find_stack_direction (0) < 0)
10765 s += page_size;
10766 if (s < stack_size + page_size)
10767 _exit (0);
10770 _exit (1);
10773 static int
10774 c_stack_action (void)
10776 stack_t st;
10777 struct sigaction act;
10778 int r;
10780 st.ss_flags = 0;
10781 st.ss_sp = alternate_signal_stack.buffer;
10782 st.ss_size = sizeof alternate_signal_stack.buffer;
10783 r = sigaltstack (&st, 0);
10784 if (r != 0)
10785 return r;
10787 sigemptyset (&act.sa_mask);
10788 act.sa_flags = SA_NODEFER | SA_ONSTACK | SA_RESETHAND | SA_SIGINFO;
10789 act.sa_sigaction = segv_handler;
10790 return sigaction (SIGSEGV, &act, 0);
10793 static int
10794 recurse (char *p)
10796 char array[500];
10797 array[0] = 1;
10798 return *p + recurse (array);
10802 main (void)
10804 #if HAVE_SETRLIMIT && defined RLIMIT_STACK
10805 /* Before starting the endless recursion, try to be friendly
10806 to the user's machine. On some Linux 2.2.x systems, there
10807 is no stack limit for user processes at all. We don't want
10808 to kill such systems. */
10809 struct rlimit rl;
10810 rl.rlim_cur = rl.rlim_max = 0x100000; /* 1 MB */
10811 setrlimit (RLIMIT_STACK, &rl);
10812 #endif
10814 c_stack_action ();
10815 return recurse ("\1");
10818 _ACEOF
10819 rm -f conftest$ac_exeext
10820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10821 (eval $ac_link) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 (eval $ac_try) 2>&5
10827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 ac_cv_sys_xsi_stack_overflow_heuristic=yes
10831 else
10832 echo "$as_me: program exited with status $ac_status" >&5
10833 echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10836 ( exit $ac_status )
10837 ac_cv_sys_xsi_stack_overflow_heuristic=no
10839 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10842 echo "$as_me:$LINENO: result: $ac_cv_sys_xsi_stack_overflow_heuristic" >&5
10843 echo "${ECHO_T}$ac_cv_sys_xsi_stack_overflow_heuristic" >&6
10845 if test $ac_cv_sys_xsi_stack_overflow_heuristic = yes; then
10847 cat >>confdefs.h <<\_ACEOF
10848 #define HAVE_XSI_STACK_OVERFLOW_HEURISTIC 1
10849 _ACEOF
10854 # for STACK_DIRECTION
10859 for ac_func in getcontext sigaltstack
10861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10862 echo "$as_me:$LINENO: checking for $ac_func" >&5
10863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10864 if eval "test \"\${$as_ac_var+set}\" = set"; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10866 else
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 /* System header to define __stub macros and hopefully few prototypes,
10875 which can conflict with char $ac_func (); below.
10876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10877 <limits.h> exists even on freestanding compilers. */
10878 #ifdef __STDC__
10879 # include <limits.h>
10880 #else
10881 # include <assert.h>
10882 #endif
10883 /* Override any gcc2 internal prototype to avoid an error. */
10884 #ifdef __cplusplus
10885 extern "C"
10887 #endif
10888 /* We use char because int might match the return type of a gcc2
10889 builtin and then its argument prototype would still apply. */
10890 char $ac_func ();
10891 /* The GNU C library defines this for functions which it implements
10892 to always fail with ENOSYS. Some functions are actually named
10893 something starting with __ and the normal name is an alias. */
10894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10895 choke me
10896 #else
10897 char (*f) () = $ac_func;
10898 #endif
10899 #ifdef __cplusplus
10901 #endif
10904 main ()
10906 return f != $ac_func;
10908 return 0;
10910 _ACEOF
10911 rm -f conftest.$ac_objext conftest$ac_exeext
10912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10913 (eval $ac_link) 2>&5
10914 ac_status=$?
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } &&
10917 { ac_try='test -s conftest$ac_exeext'
10918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919 (eval $ac_try) 2>&5
10920 ac_status=$?
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; }; then
10923 eval "$as_ac_var=yes"
10924 else
10925 echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.$ac_ext >&5
10928 eval "$as_ac_var=no"
10930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10934 if test `eval echo '${'$as_ac_var'}'` = yes; then
10935 cat >>confdefs.h <<_ACEOF
10936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10937 _ACEOF
10940 done
10942 echo "$as_me:$LINENO: checking whether getcontext is declared" >&5
10943 echo $ECHO_N "checking whether getcontext is declared... $ECHO_C" >&6
10944 if test "${ac_cv_have_decl_getcontext+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 else
10947 cat >conftest.$ac_ext <<_ACEOF
10948 #line $LINENO "configure"
10949 /* confdefs.h. */
10950 _ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h. */
10954 #include <ucontext.h>
10957 main ()
10959 #ifndef getcontext
10960 char *p = (char *) getcontext;
10961 #endif
10964 return 0;
10966 _ACEOF
10967 rm -f conftest.$ac_objext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10969 (eval $ac_compile) 2>&5
10970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } &&
10973 { ac_try='test -s conftest.$ac_objext'
10974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10975 (eval $ac_try) 2>&5
10976 ac_status=$?
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978 (exit $ac_status); }; }; then
10979 ac_cv_have_decl_getcontext=yes
10980 else
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10984 ac_cv_have_decl_getcontext=no
10986 rm -f conftest.$ac_objext conftest.$ac_ext
10988 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcontext" >&5
10989 echo "${ECHO_T}$ac_cv_have_decl_getcontext" >&6
10990 if test $ac_cv_have_decl_getcontext = yes; then
10992 cat >>confdefs.h <<_ACEOF
10993 #define HAVE_DECL_GETCONTEXT 1
10994 _ACEOF
10997 else
10998 cat >>confdefs.h <<_ACEOF
10999 #define HAVE_DECL_GETCONTEXT 0
11000 _ACEOF
11006 echo "$as_me:$LINENO: checking whether sigaltstack is declared" >&5
11007 echo $ECHO_N "checking whether sigaltstack is declared... $ECHO_C" >&6
11008 if test "${ac_cv_have_decl_sigaltstack+set}" = set; then
11009 echo $ECHO_N "(cached) $ECHO_C" >&6
11010 else
11011 cat >conftest.$ac_ext <<_ACEOF
11012 #line $LINENO "configure"
11013 /* confdefs.h. */
11014 _ACEOF
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h. */
11018 #include <signal.h>
11021 main ()
11023 #ifndef sigaltstack
11024 char *p = (char *) sigaltstack;
11025 #endif
11028 return 0;
11030 _ACEOF
11031 rm -f conftest.$ac_objext
11032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11033 (eval $ac_compile) 2>&5
11034 ac_status=$?
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } &&
11037 { ac_try='test -s conftest.$ac_objext'
11038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039 (eval $ac_try) 2>&5
11040 ac_status=$?
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; }; then
11043 ac_cv_have_decl_sigaltstack=yes
11044 else
11045 echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11048 ac_cv_have_decl_sigaltstack=no
11050 rm -f conftest.$ac_objext conftest.$ac_ext
11052 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sigaltstack" >&5
11053 echo "${ECHO_T}$ac_cv_have_decl_sigaltstack" >&6
11054 if test $ac_cv_have_decl_sigaltstack = yes; then
11056 cat >>confdefs.h <<_ACEOF
11057 #define HAVE_DECL_SIGALTSTACK 1
11058 _ACEOF
11061 else
11062 cat >>confdefs.h <<_ACEOF
11063 #define HAVE_DECL_SIGALTSTACK 0
11064 _ACEOF
11074 for ac_header in sys/resource.h ucontext.h unistd.h
11076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11078 echo "$as_me:$LINENO: checking for $ac_header" >&5
11079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11085 else
11086 # Is the header compilable?
11087 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11089 cat >conftest.$ac_ext <<_ACEOF
11090 #line $LINENO "configure"
11091 /* confdefs.h. */
11092 _ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h. */
11096 $ac_includes_default
11097 #include <$ac_header>
11098 _ACEOF
11099 rm -f conftest.$ac_objext
11100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11101 (eval $ac_compile) 2>&5
11102 ac_status=$?
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } &&
11105 { ac_try='test -s conftest.$ac_objext'
11106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11107 (eval $ac_try) 2>&5
11108 ac_status=$?
11109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110 (exit $ac_status); }; }; then
11111 ac_header_compiler=yes
11112 else
11113 echo "$as_me: failed program was:" >&5
11114 sed 's/^/| /' conftest.$ac_ext >&5
11116 ac_header_compiler=no
11118 rm -f conftest.$ac_objext conftest.$ac_ext
11119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11120 echo "${ECHO_T}$ac_header_compiler" >&6
11122 # Is the header present?
11123 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11125 cat >conftest.$ac_ext <<_ACEOF
11126 #line $LINENO "configure"
11127 /* confdefs.h. */
11128 _ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h. */
11132 #include <$ac_header>
11133 _ACEOF
11134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11136 ac_status=$?
11137 grep -v '^ *+' conftest.er1 >conftest.err
11138 rm -f conftest.er1
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } >/dev/null; then
11142 if test -s conftest.err; then
11143 ac_cpp_err=$ac_c_preproc_warn_flag
11144 else
11145 ac_cpp_err=
11147 else
11148 ac_cpp_err=yes
11150 if test -z "$ac_cpp_err"; then
11151 ac_header_preproc=yes
11152 else
11153 echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11156 ac_header_preproc=no
11158 rm -f conftest.err conftest.$ac_ext
11159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11160 echo "${ECHO_T}$ac_header_preproc" >&6
11162 # So? What about this header?
11163 case $ac_header_compiler:$ac_header_preproc in
11164 yes:no )
11165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11170 cat <<\_ASBOX
11171 ## ------------------------------------ ##
11172 ## Report this to bug-autoconf@gnu.org. ##
11173 ## ------------------------------------ ##
11174 _ASBOX
11176 sed "s/^/$as_me: WARNING: /" >&2
11178 no:yes )
11179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11186 cat <<\_ASBOX
11187 ## ------------------------------------ ##
11188 ## Report this to bug-autoconf@gnu.org. ##
11189 ## ------------------------------------ ##
11190 _ASBOX
11192 sed "s/^/$as_me: WARNING: /" >&2
11194 esac
11195 echo "$as_me:$LINENO: checking for $ac_header" >&5
11196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 else
11200 eval "$as_ac_Header=$ac_header_preproc"
11202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11207 cat >>confdefs.h <<_ACEOF
11208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11209 _ACEOF
11213 done
11216 echo "$as_me:$LINENO: checking for stack_t" >&5
11217 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
11218 if test "${ac_cv_type_stack_t+set}" = set; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11220 else
11221 cat >conftest.$ac_ext <<_ACEOF
11222 #line $LINENO "configure"
11223 /* confdefs.h. */
11224 _ACEOF
11225 cat confdefs.h >>conftest.$ac_ext
11226 cat >>conftest.$ac_ext <<_ACEOF
11227 /* end confdefs.h. */
11228 #include <signal.h>
11231 main ()
11233 if ((stack_t *) 0)
11234 return 0;
11235 if (sizeof (stack_t))
11236 return 0;
11238 return 0;
11240 _ACEOF
11241 rm -f conftest.$ac_objext
11242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11243 (eval $ac_compile) 2>&5
11244 ac_status=$?
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } &&
11247 { ac_try='test -s conftest.$ac_objext'
11248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249 (eval $ac_try) 2>&5
11250 ac_status=$?
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; }; then
11253 ac_cv_type_stack_t=yes
11254 else
11255 echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11258 ac_cv_type_stack_t=no
11260 rm -f conftest.$ac_objext conftest.$ac_ext
11262 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11263 echo "${ECHO_T}$ac_cv_type_stack_t" >&6
11264 if test $ac_cv_type_stack_t = yes; then
11266 cat >>confdefs.h <<_ACEOF
11267 #define HAVE_STACK_T 1
11268 _ACEOF
11275 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
11276 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
11277 if test "${ac_cv_search_gethostbyname+set}" = set; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 else
11281 ac_func_search_save_LIBS=$LIBS
11282 ac_cv_search_gethostbyname=no
11283 cat >conftest.$ac_ext <<_ACEOF
11284 #line $LINENO "configure"
11285 /* confdefs.h. */
11286 _ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h. */
11291 /* Override any gcc2 internal prototype to avoid an error. */
11292 #ifdef __cplusplus
11293 extern "C"
11294 #endif
11295 /* We use char because int might match the return type of a gcc2
11296 builtin and then its argument prototype would still apply. */
11297 char gethostbyname ();
11299 main ()
11301 gethostbyname ();
11303 return 0;
11305 _ACEOF
11306 rm -f conftest.$ac_objext conftest$ac_exeext
11307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11308 (eval $ac_link) 2>&5
11309 ac_status=$?
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } &&
11312 { ac_try='test -s conftest$ac_exeext'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11315 ac_status=$?
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; }; then
11318 ac_cv_search_gethostbyname='none required'
11319 else
11320 echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.$ac_ext >&5
11324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11325 if test "$ac_cv_search_gethostbyname" = no; then
11326 for ac_lib in inet nsl; do
11327 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11328 cat >conftest.$ac_ext <<_ACEOF
11329 #line $LINENO "configure"
11330 /* confdefs.h. */
11331 _ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11336 /* Override any gcc2 internal prototype to avoid an error. */
11337 #ifdef __cplusplus
11338 extern "C"
11339 #endif
11340 /* We use char because int might match the return type of a gcc2
11341 builtin and then its argument prototype would still apply. */
11342 char gethostbyname ();
11344 main ()
11346 gethostbyname ();
11348 return 0;
11350 _ACEOF
11351 rm -f conftest.$ac_objext conftest$ac_exeext
11352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11353 (eval $ac_link) 2>&5
11354 ac_status=$?
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); } &&
11357 { ac_try='test -s conftest$ac_exeext'
11358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11359 (eval $ac_try) 2>&5
11360 ac_status=$?
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); }; }; then
11363 ac_cv_search_gethostbyname="-l$ac_lib"; break
11364 else
11365 echo "$as_me: failed program was:" >&5
11366 sed 's/^/| /' conftest.$ac_ext >&5
11369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11370 done
11372 LIBS=$ac_func_search_save_LIBS
11375 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
11376 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
11378 if test "$ac_cv_search_gethostbyname" = no; then :
11380 else
11381 if test "$ac_cv_search_gethostbyname" = 'none required'; then :
11383 else
11384 LIBS="$ac_cv_search_gethostbyname $LIBS"
11393 for ac_func in gethostbyname gethostbyaddr inet_ntoa
11395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11396 echo "$as_me:$LINENO: checking for $ac_func" >&5
11397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11398 if eval "test \"\${$as_ac_var+set}\" = set"; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11400 else
11401 cat >conftest.$ac_ext <<_ACEOF
11402 #line $LINENO "configure"
11403 /* confdefs.h. */
11404 _ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h. */
11408 /* System header to define __stub macros and hopefully few prototypes,
11409 which can conflict with char $ac_func (); below.
11410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11411 <limits.h> exists even on freestanding compilers. */
11412 #ifdef __STDC__
11413 # include <limits.h>
11414 #else
11415 # include <assert.h>
11416 #endif
11417 /* Override any gcc2 internal prototype to avoid an error. */
11418 #ifdef __cplusplus
11419 extern "C"
11421 #endif
11422 /* We use char because int might match the return type of a gcc2
11423 builtin and then its argument prototype would still apply. */
11424 char $ac_func ();
11425 /* The GNU C library defines this for functions which it implements
11426 to always fail with ENOSYS. Some functions are actually named
11427 something starting with __ and the normal name is an alias. */
11428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11429 choke me
11430 #else
11431 char (*f) () = $ac_func;
11432 #endif
11433 #ifdef __cplusplus
11435 #endif
11438 main ()
11440 return f != $ac_func;
11442 return 0;
11444 _ACEOF
11445 rm -f conftest.$ac_objext conftest$ac_exeext
11446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11447 (eval $ac_link) 2>&5
11448 ac_status=$?
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); } &&
11451 { ac_try='test -s conftest$ac_exeext'
11452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453 (eval $ac_try) 2>&5
11454 ac_status=$?
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; }; then
11457 eval "$as_ac_var=yes"
11458 else
11459 echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11462 eval "$as_ac_var=no"
11464 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11468 if test `eval echo '${'$as_ac_var'}'` = yes; then
11469 cat >>confdefs.h <<_ACEOF
11470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11471 _ACEOF
11474 done
11483 for ac_header in unistd.h string.h netdb.h sys/socket.h \
11484 netinet/in.h arpa/inet.h
11486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11488 echo "$as_me:$LINENO: checking for $ac_header" >&5
11489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11495 else
11496 # Is the header compilable?
11497 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11499 cat >conftest.$ac_ext <<_ACEOF
11500 #line $LINENO "configure"
11501 /* confdefs.h. */
11502 _ACEOF
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h. */
11506 $ac_includes_default
11507 #include <$ac_header>
11508 _ACEOF
11509 rm -f conftest.$ac_objext
11510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11511 (eval $ac_compile) 2>&5
11512 ac_status=$?
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); } &&
11515 { ac_try='test -s conftest.$ac_objext'
11516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11517 (eval $ac_try) 2>&5
11518 ac_status=$?
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }; }; then
11521 ac_header_compiler=yes
11522 else
11523 echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11526 ac_header_compiler=no
11528 rm -f conftest.$ac_objext conftest.$ac_ext
11529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11530 echo "${ECHO_T}$ac_header_compiler" >&6
11532 # Is the header present?
11533 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11535 cat >conftest.$ac_ext <<_ACEOF
11536 #line $LINENO "configure"
11537 /* confdefs.h. */
11538 _ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h. */
11542 #include <$ac_header>
11543 _ACEOF
11544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11546 ac_status=$?
11547 grep -v '^ *+' conftest.er1 >conftest.err
11548 rm -f conftest.er1
11549 cat conftest.err >&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } >/dev/null; then
11552 if test -s conftest.err; then
11553 ac_cpp_err=$ac_c_preproc_warn_flag
11554 else
11555 ac_cpp_err=
11557 else
11558 ac_cpp_err=yes
11560 if test -z "$ac_cpp_err"; then
11561 ac_header_preproc=yes
11562 else
11563 echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11566 ac_header_preproc=no
11568 rm -f conftest.err conftest.$ac_ext
11569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11570 echo "${ECHO_T}$ac_header_preproc" >&6
11572 # So? What about this header?
11573 case $ac_header_compiler:$ac_header_preproc in
11574 yes:no )
11575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11580 cat <<\_ASBOX
11581 ## ------------------------------------ ##
11582 ## Report this to bug-autoconf@gnu.org. ##
11583 ## ------------------------------------ ##
11584 _ASBOX
11586 sed "s/^/$as_me: WARNING: /" >&2
11588 no:yes )
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11596 cat <<\_ASBOX
11597 ## ------------------------------------ ##
11598 ## Report this to bug-autoconf@gnu.org. ##
11599 ## ------------------------------------ ##
11600 _ASBOX
11602 sed "s/^/$as_me: WARNING: /" >&2
11604 esac
11605 echo "$as_me:$LINENO: checking for $ac_header" >&5
11606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11608 echo $ECHO_N "(cached) $ECHO_C" >&6
11609 else
11610 eval "$as_ac_Header=$ac_header_preproc"
11612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11617 cat >>confdefs.h <<_ACEOF
11618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11619 _ACEOF
11623 done
11629 for ac_header in string.h
11631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11633 echo "$as_me:$LINENO: checking for $ac_header" >&5
11634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11640 else
11641 # Is the header compilable?
11642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11644 cat >conftest.$ac_ext <<_ACEOF
11645 #line $LINENO "configure"
11646 /* confdefs.h. */
11647 _ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h. */
11651 $ac_includes_default
11652 #include <$ac_header>
11653 _ACEOF
11654 rm -f conftest.$ac_objext
11655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11656 (eval $ac_compile) 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } &&
11660 { ac_try='test -s conftest.$ac_objext'
11661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11662 (eval $ac_try) 2>&5
11663 ac_status=$?
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); }; }; then
11666 ac_header_compiler=yes
11667 else
11668 echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11671 ac_header_compiler=no
11673 rm -f conftest.$ac_objext conftest.$ac_ext
11674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11675 echo "${ECHO_T}$ac_header_compiler" >&6
11677 # Is the header present?
11678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11680 cat >conftest.$ac_ext <<_ACEOF
11681 #line $LINENO "configure"
11682 /* confdefs.h. */
11683 _ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11687 #include <$ac_header>
11688 _ACEOF
11689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11691 ac_status=$?
11692 grep -v '^ *+' conftest.er1 >conftest.err
11693 rm -f conftest.er1
11694 cat conftest.err >&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } >/dev/null; then
11697 if test -s conftest.err; then
11698 ac_cpp_err=$ac_c_preproc_warn_flag
11699 else
11700 ac_cpp_err=
11702 else
11703 ac_cpp_err=yes
11705 if test -z "$ac_cpp_err"; then
11706 ac_header_preproc=yes
11707 else
11708 echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11711 ac_header_preproc=no
11713 rm -f conftest.err conftest.$ac_ext
11714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11715 echo "${ECHO_T}$ac_header_preproc" >&6
11717 # So? What about this header?
11718 case $ac_header_compiler:$ac_header_preproc in
11719 yes:no )
11720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11725 cat <<\_ASBOX
11726 ## ------------------------------------ ##
11727 ## Report this to bug-autoconf@gnu.org. ##
11728 ## ------------------------------------ ##
11729 _ASBOX
11731 sed "s/^/$as_me: WARNING: /" >&2
11733 no:yes )
11734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11741 cat <<\_ASBOX
11742 ## ------------------------------------ ##
11743 ## Report this to bug-autoconf@gnu.org. ##
11744 ## ------------------------------------ ##
11745 _ASBOX
11747 sed "s/^/$as_me: WARNING: /" >&2
11749 esac
11750 echo "$as_me:$LINENO: checking for $ac_header" >&5
11751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 else
11755 eval "$as_ac_Header=$ac_header_preproc"
11757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11762 cat >>confdefs.h <<_ACEOF
11763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11764 _ACEOF
11768 done
11775 for ac_func in strerror vprintf doprnt
11777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11778 echo "$as_me:$LINENO: checking for $ac_func" >&5
11779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11780 if eval "test \"\${$as_ac_var+set}\" = set"; then
11781 echo $ECHO_N "(cached) $ECHO_C" >&6
11782 else
11783 cat >conftest.$ac_ext <<_ACEOF
11784 #line $LINENO "configure"
11785 /* confdefs.h. */
11786 _ACEOF
11787 cat confdefs.h >>conftest.$ac_ext
11788 cat >>conftest.$ac_ext <<_ACEOF
11789 /* end confdefs.h. */
11790 /* System header to define __stub macros and hopefully few prototypes,
11791 which can conflict with char $ac_func (); below.
11792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11793 <limits.h> exists even on freestanding compilers. */
11794 #ifdef __STDC__
11795 # include <limits.h>
11796 #else
11797 # include <assert.h>
11798 #endif
11799 /* Override any gcc2 internal prototype to avoid an error. */
11800 #ifdef __cplusplus
11801 extern "C"
11803 #endif
11804 /* We use char because int might match the return type of a gcc2
11805 builtin and then its argument prototype would still apply. */
11806 char $ac_func ();
11807 /* The GNU C library defines this for functions which it implements
11808 to always fail with ENOSYS. Some functions are actually named
11809 something starting with __ and the normal name is an alias. */
11810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11811 choke me
11812 #else
11813 char (*f) () = $ac_func;
11814 #endif
11815 #ifdef __cplusplus
11817 #endif
11820 main ()
11822 return f != $ac_func;
11824 return 0;
11826 _ACEOF
11827 rm -f conftest.$ac_objext conftest$ac_exeext
11828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11829 (eval $ac_link) 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } &&
11833 { ac_try='test -s conftest$ac_exeext'
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; }; then
11839 eval "$as_ac_var=yes"
11840 else
11841 echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.$ac_ext >&5
11844 eval "$as_ac_var=no"
11846 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11850 if test `eval echo '${'$as_ac_var'}'` = yes; then
11851 cat >>confdefs.h <<_ACEOF
11852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11853 _ACEOF
11856 done
11858 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
11859 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
11860 if test "${ac_cv_have_decl_strerror+set}" = set; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11862 else
11863 cat >conftest.$ac_ext <<_ACEOF
11864 #line $LINENO "configure"
11865 /* confdefs.h. */
11866 _ACEOF
11867 cat confdefs.h >>conftest.$ac_ext
11868 cat >>conftest.$ac_ext <<_ACEOF
11869 /* end confdefs.h. */
11870 $ac_includes_default
11872 main ()
11874 #ifndef strerror
11875 char *p = (char *) strerror;
11876 #endif
11879 return 0;
11881 _ACEOF
11882 rm -f conftest.$ac_objext
11883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11884 (eval $ac_compile) 2>&5
11885 ac_status=$?
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); } &&
11888 { ac_try='test -s conftest.$ac_objext'
11889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11891 ac_status=$?
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; }; then
11894 ac_cv_have_decl_strerror=yes
11895 else
11896 echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11899 ac_cv_have_decl_strerror=no
11901 rm -f conftest.$ac_objext conftest.$ac_ext
11903 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
11904 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
11905 if test $ac_cv_have_decl_strerror = yes; then
11907 cat >>confdefs.h <<_ACEOF
11908 #define HAVE_DECL_STRERROR 1
11909 _ACEOF
11912 else
11913 cat >>confdefs.h <<_ACEOF
11914 #define HAVE_DECL_STRERROR 0
11915 _ACEOF
11922 for ac_header in libintl.h
11924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11926 echo "$as_me:$LINENO: checking for $ac_header" >&5
11927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11933 else
11934 # Is the header compilable?
11935 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11937 cat >conftest.$ac_ext <<_ACEOF
11938 #line $LINENO "configure"
11939 /* confdefs.h. */
11940 _ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h. */
11944 $ac_includes_default
11945 #include <$ac_header>
11946 _ACEOF
11947 rm -f conftest.$ac_objext
11948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11949 (eval $ac_compile) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); } &&
11953 { ac_try='test -s conftest.$ac_objext'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
11959 ac_header_compiler=yes
11960 else
11961 echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11964 ac_header_compiler=no
11966 rm -f conftest.$ac_objext conftest.$ac_ext
11967 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11968 echo "${ECHO_T}$ac_header_compiler" >&6
11970 # Is the header present?
11971 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11973 cat >conftest.$ac_ext <<_ACEOF
11974 #line $LINENO "configure"
11975 /* confdefs.h. */
11976 _ACEOF
11977 cat confdefs.h >>conftest.$ac_ext
11978 cat >>conftest.$ac_ext <<_ACEOF
11979 /* end confdefs.h. */
11980 #include <$ac_header>
11981 _ACEOF
11982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11984 ac_status=$?
11985 grep -v '^ *+' conftest.er1 >conftest.err
11986 rm -f conftest.er1
11987 cat conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); } >/dev/null; then
11990 if test -s conftest.err; then
11991 ac_cpp_err=$ac_c_preproc_warn_flag
11992 else
11993 ac_cpp_err=
11995 else
11996 ac_cpp_err=yes
11998 if test -z "$ac_cpp_err"; then
11999 ac_header_preproc=yes
12000 else
12001 echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12004 ac_header_preproc=no
12006 rm -f conftest.err conftest.$ac_ext
12007 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12008 echo "${ECHO_T}$ac_header_preproc" >&6
12010 # So? What about this header?
12011 case $ac_header_compiler:$ac_header_preproc in
12012 yes:no )
12013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12018 cat <<\_ASBOX
12019 ## ------------------------------------ ##
12020 ## Report this to bug-autoconf@gnu.org. ##
12021 ## ------------------------------------ ##
12022 _ASBOX
12024 sed "s/^/$as_me: WARNING: /" >&2
12026 no:yes )
12027 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12029 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12030 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12034 cat <<\_ASBOX
12035 ## ------------------------------------ ##
12036 ## Report this to bug-autoconf@gnu.org. ##
12037 ## ------------------------------------ ##
12038 _ASBOX
12040 sed "s/^/$as_me: WARNING: /" >&2
12042 esac
12043 echo "$as_me:$LINENO: checking for $ac_header" >&5
12044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12046 echo $ECHO_N "(cached) $ECHO_C" >&6
12047 else
12048 eval "$as_ac_Header=$ac_header_preproc"
12050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12055 cat >>confdefs.h <<_ACEOF
12056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12057 _ACEOF
12061 done
12063 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
12064 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
12065 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
12066 echo $ECHO_N "(cached) $ECHO_C" >&6
12067 else
12068 cat >conftest.$ac_ext <<_ACEOF
12069 #line $LINENO "configure"
12070 /* confdefs.h. */
12071 _ACEOF
12072 cat confdefs.h >>conftest.$ac_ext
12073 cat >>conftest.$ac_ext <<_ACEOF
12074 /* end confdefs.h. */
12075 $ac_includes_default
12077 main ()
12079 #ifndef strerror_r
12080 char *p = (char *) strerror_r;
12081 #endif
12084 return 0;
12086 _ACEOF
12087 rm -f conftest.$ac_objext
12088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12089 (eval $ac_compile) 2>&5
12090 ac_status=$?
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); } &&
12093 { ac_try='test -s conftest.$ac_objext'
12094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095 (eval $ac_try) 2>&5
12096 ac_status=$?
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; }; then
12099 ac_cv_have_decl_strerror_r=yes
12100 else
12101 echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12104 ac_cv_have_decl_strerror_r=no
12106 rm -f conftest.$ac_objext conftest.$ac_ext
12108 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
12109 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
12110 if test $ac_cv_have_decl_strerror_r = yes; then
12112 cat >>confdefs.h <<_ACEOF
12113 #define HAVE_DECL_STRERROR_R 1
12114 _ACEOF
12117 else
12118 cat >>confdefs.h <<_ACEOF
12119 #define HAVE_DECL_STRERROR_R 0
12120 _ACEOF
12127 for ac_func in strerror_r
12129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12130 echo "$as_me:$LINENO: checking for $ac_func" >&5
12131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12132 if eval "test \"\${$as_ac_var+set}\" = set"; then
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12134 else
12135 cat >conftest.$ac_ext <<_ACEOF
12136 #line $LINENO "configure"
12137 /* confdefs.h. */
12138 _ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12142 /* System header to define __stub macros and hopefully few prototypes,
12143 which can conflict with char $ac_func (); below.
12144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12145 <limits.h> exists even on freestanding compilers. */
12146 #ifdef __STDC__
12147 # include <limits.h>
12148 #else
12149 # include <assert.h>
12150 #endif
12151 /* Override any gcc2 internal prototype to avoid an error. */
12152 #ifdef __cplusplus
12153 extern "C"
12155 #endif
12156 /* We use char because int might match the return type of a gcc2
12157 builtin and then its argument prototype would still apply. */
12158 char $ac_func ();
12159 /* The GNU C library defines this for functions which it implements
12160 to always fail with ENOSYS. Some functions are actually named
12161 something starting with __ and the normal name is an alias. */
12162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12163 choke me
12164 #else
12165 char (*f) () = $ac_func;
12166 #endif
12167 #ifdef __cplusplus
12169 #endif
12172 main ()
12174 return f != $ac_func;
12176 return 0;
12178 _ACEOF
12179 rm -f conftest.$ac_objext conftest$ac_exeext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12181 (eval $ac_link) 2>&5
12182 ac_status=$?
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } &&
12185 { ac_try='test -s conftest$ac_exeext'
12186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187 (eval $ac_try) 2>&5
12188 ac_status=$?
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); }; }; then
12191 eval "$as_ac_var=yes"
12192 else
12193 echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12196 eval "$as_ac_var=no"
12198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12202 if test `eval echo '${'$as_ac_var'}'` = yes; then
12203 cat >>confdefs.h <<_ACEOF
12204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12205 _ACEOF
12208 done
12210 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
12211 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
12212 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12216 ac_cv_func_strerror_r_char_p=no
12217 if test $ac_cv_have_decl_strerror_r = yes; then
12218 cat >conftest.$ac_ext <<_ACEOF
12219 #line $LINENO "configure"
12220 /* confdefs.h. */
12221 _ACEOF
12222 cat confdefs.h >>conftest.$ac_ext
12223 cat >>conftest.$ac_ext <<_ACEOF
12224 /* end confdefs.h. */
12225 $ac_includes_default
12227 main ()
12230 char buf[100];
12231 char x = *strerror_r (0, buf, sizeof buf);
12232 char *p = strerror_r (0, buf, sizeof buf);
12235 return 0;
12237 _ACEOF
12238 rm -f conftest.$ac_objext
12239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12240 (eval $ac_compile) 2>&5
12241 ac_status=$?
12242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } &&
12244 { ac_try='test -s conftest.$ac_objext'
12245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12246 (eval $ac_try) 2>&5
12247 ac_status=$?
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; }; then
12250 ac_cv_func_strerror_r_char_p=yes
12251 else
12252 echo "$as_me: failed program was:" >&5
12253 sed 's/^/| /' conftest.$ac_ext >&5
12256 rm -f conftest.$ac_objext conftest.$ac_ext
12257 else
12258 # strerror_r is not declared. Choose between
12259 # systems that have relatively inaccessible declarations for the
12260 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
12261 # former has a strerror_r that returns char*, while the latter
12262 # has a strerror_r that returns `int'.
12263 # This test should segfault on the DEC system.
12264 if test "$cross_compiling" = yes; then
12266 else
12267 cat >conftest.$ac_ext <<_ACEOF
12268 #line $LINENO "configure"
12269 /* confdefs.h. */
12270 _ACEOF
12271 cat confdefs.h >>conftest.$ac_ext
12272 cat >>conftest.$ac_ext <<_ACEOF
12273 /* end confdefs.h. */
12274 $ac_includes_default
12275 extern char *strerror_r ();
12277 main ()
12279 char buf[100];
12280 char x = *strerror_r (0, buf, sizeof buf);
12281 exit (!isalpha (x));
12283 return 0;
12285 _ACEOF
12286 rm -f conftest$ac_exeext
12287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12288 (eval $ac_link) 2>&5
12289 ac_status=$?
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12294 ac_status=$?
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; }; then
12297 ac_cv_func_strerror_r_char_p=yes
12298 else
12299 echo "$as_me: program exited with status $ac_status" >&5
12300 echo "$as_me: failed program was:" >&5
12301 sed 's/^/| /' conftest.$ac_ext >&5
12304 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12309 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
12310 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
12311 if test $ac_cv_func_strerror_r_char_p = yes; then
12313 cat >>confdefs.h <<\_ACEOF
12314 #define STRERROR_R_CHAR_P 1
12315 _ACEOF
12319 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12320 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12321 if test "${ac_cv_header_stdc+set}" = set; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12323 else
12324 cat >conftest.$ac_ext <<_ACEOF
12325 #line $LINENO "configure"
12326 /* confdefs.h. */
12327 _ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h. */
12331 #include <stdlib.h>
12332 #include <stdarg.h>
12333 #include <string.h>
12334 #include <float.h>
12337 main ()
12341 return 0;
12343 _ACEOF
12344 rm -f conftest.$ac_objext
12345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12346 (eval $ac_compile) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } &&
12350 { ac_try='test -s conftest.$ac_objext'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; }; then
12356 ac_cv_header_stdc=yes
12357 else
12358 echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.$ac_ext >&5
12361 ac_cv_header_stdc=no
12363 rm -f conftest.$ac_objext conftest.$ac_ext
12365 if test $ac_cv_header_stdc = yes; then
12366 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12367 cat >conftest.$ac_ext <<_ACEOF
12368 #line $LINENO "configure"
12369 /* confdefs.h. */
12370 _ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12374 #include <string.h>
12376 _ACEOF
12377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12378 $EGREP "memchr" >/dev/null 2>&1; then
12380 else
12381 ac_cv_header_stdc=no
12383 rm -f conftest*
12387 if test $ac_cv_header_stdc = yes; then
12388 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12389 cat >conftest.$ac_ext <<_ACEOF
12390 #line $LINENO "configure"
12391 /* confdefs.h. */
12392 _ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h. */
12396 #include <stdlib.h>
12398 _ACEOF
12399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12400 $EGREP "free" >/dev/null 2>&1; then
12402 else
12403 ac_cv_header_stdc=no
12405 rm -f conftest*
12409 if test $ac_cv_header_stdc = yes; then
12410 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12411 if test "$cross_compiling" = yes; then
12413 else
12414 cat >conftest.$ac_ext <<_ACEOF
12415 #line $LINENO "configure"
12416 /* confdefs.h. */
12417 _ACEOF
12418 cat confdefs.h >>conftest.$ac_ext
12419 cat >>conftest.$ac_ext <<_ACEOF
12420 /* end confdefs.h. */
12421 #include <ctype.h>
12422 #if ((' ' & 0x0FF) == 0x020)
12423 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12424 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12425 #else
12426 # define ISLOWER(c) \
12427 (('a' <= (c) && (c) <= 'i') \
12428 || ('j' <= (c) && (c) <= 'r') \
12429 || ('s' <= (c) && (c) <= 'z'))
12430 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12431 #endif
12433 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12435 main ()
12437 int i;
12438 for (i = 0; i < 256; i++)
12439 if (XOR (islower (i), ISLOWER (i))
12440 || toupper (i) != TOUPPER (i))
12441 exit(2);
12442 exit (0);
12444 _ACEOF
12445 rm -f conftest$ac_exeext
12446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12447 (eval $ac_link) 2>&5
12448 ac_status=$?
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12452 (eval $ac_try) 2>&5
12453 ac_status=$?
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; }; then
12457 else
12458 echo "$as_me: program exited with status $ac_status" >&5
12459 echo "$as_me: failed program was:" >&5
12460 sed 's/^/| /' conftest.$ac_ext >&5
12462 ( exit $ac_status )
12463 ac_cv_header_stdc=no
12465 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12469 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12470 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12471 if test $ac_cv_header_stdc = yes; then
12473 cat >>confdefs.h <<\_ACEOF
12474 #define STDC_HEADERS 1
12475 _ACEOF
12480 echo "$as_me:$LINENO: checking for mbstate_t" >&5
12481 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
12482 if test "${ac_cv_type_mbstate_t+set}" = set; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
12484 else
12485 cat >conftest.$ac_ext <<_ACEOF
12486 #line $LINENO "configure"
12487 /* confdefs.h. */
12488 _ACEOF
12489 cat confdefs.h >>conftest.$ac_ext
12490 cat >>conftest.$ac_ext <<_ACEOF
12491 /* end confdefs.h. */
12492 $ac_includes_default
12493 # include <wchar.h>
12495 main ()
12497 mbstate_t x; return sizeof x;
12499 return 0;
12501 _ACEOF
12502 rm -f conftest.$ac_objext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12504 (eval $ac_compile) 2>&5
12505 ac_status=$?
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); } &&
12508 { ac_try='test -s conftest.$ac_objext'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514 ac_cv_type_mbstate_t=yes
12515 else
12516 echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12519 ac_cv_type_mbstate_t=no
12521 rm -f conftest.$ac_objext conftest.$ac_ext
12523 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
12524 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
12525 if test $ac_cv_type_mbstate_t = yes; then
12527 cat >>confdefs.h <<\_ACEOF
12528 #define HAVE_MBSTATE_T 1
12529 _ACEOF
12531 else
12533 cat >>confdefs.h <<\_ACEOF
12534 #define mbstate_t int
12535 _ACEOF
12539 echo "$as_me:$LINENO: checking for working GNU fnmatch" >&5
12540 echo $ECHO_N "checking for working GNU fnmatch... $ECHO_C" >&6
12541 if test "${ac_cv_func_fnmatch_gnu+set}" = set; then
12542 echo $ECHO_N "(cached) $ECHO_C" >&6
12543 else
12544 # Some versions of Solaris, SCO, and the GNU C Library
12545 # have a broken or incompatible fnmatch.
12546 # So we run a test program. If we are cross-compiling, take no chance.
12547 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
12548 if test "$cross_compiling" = yes; then
12549 ac_cv_func_fnmatch_gnu=cross
12550 else
12551 cat >conftest.$ac_ext <<_ACEOF
12552 #line $LINENO "configure"
12553 /* confdefs.h. */
12554 _ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12558 #include <fnmatch.h>
12559 # define y(a, b, c) (fnmatch (a, b, c) == 0)
12560 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
12563 main ()
12565 exit
12566 (!(y ("a*", "abc", 0)
12567 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
12568 && y ("a\\\\bc", "abc", 0)
12569 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
12570 && y ("*x", ".x", 0)
12571 && n ("*x", ".x", FNM_PERIOD)
12572 && y ("xxXX", "xXxX", FNM_CASEFOLD)
12573 && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
12574 && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
12575 && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
12576 && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
12577 && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)));
12579 return 0;
12581 _ACEOF
12582 rm -f conftest$ac_exeext
12583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12584 (eval $ac_link) 2>&5
12585 ac_status=$?
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12590 ac_status=$?
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; }; then
12593 ac_cv_func_fnmatch_gnu=yes
12594 else
12595 echo "$as_me: program exited with status $ac_status" >&5
12596 echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.$ac_ext >&5
12599 ( exit $ac_status )
12600 ac_cv_func_fnmatch_gnu=no
12602 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12605 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_gnu" >&5
12606 echo "${ECHO_T}$ac_cv_func_fnmatch_gnu" >&6
12607 if test $ac_cv_func_fnmatch_gnu = yes; then
12608 rm -f $ac_config_libobj_dir/fnmatch.h
12609 else
12610 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
12611 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
12612 if test "${ac_cv_have_decl_getenv+set}" = set; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12614 else
12615 cat >conftest.$ac_ext <<_ACEOF
12616 #line $LINENO "configure"
12617 /* confdefs.h. */
12618 _ACEOF
12619 cat confdefs.h >>conftest.$ac_ext
12620 cat >>conftest.$ac_ext <<_ACEOF
12621 /* end confdefs.h. */
12622 $ac_includes_default
12624 main ()
12626 #ifndef getenv
12627 char *p = (char *) getenv;
12628 #endif
12631 return 0;
12633 _ACEOF
12634 rm -f conftest.$ac_objext
12635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12636 (eval $ac_compile) 2>&5
12637 ac_status=$?
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } &&
12640 { ac_try='test -s conftest.$ac_objext'
12641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12643 ac_status=$?
12644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645 (exit $ac_status); }; }; then
12646 ac_cv_have_decl_getenv=yes
12647 else
12648 echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12651 ac_cv_have_decl_getenv=no
12653 rm -f conftest.$ac_objext conftest.$ac_ext
12655 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
12656 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
12657 if test $ac_cv_have_decl_getenv = yes; then
12659 cat >>confdefs.h <<_ACEOF
12660 #define HAVE_DECL_GETENV 1
12661 _ACEOF
12664 else
12665 cat >>confdefs.h <<_ACEOF
12666 #define HAVE_DECL_GETENV 0
12667 _ACEOF
12677 for ac_func in btowc mbsrtowcs mempcpy wmempcpy
12679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12680 echo "$as_me:$LINENO: checking for $ac_func" >&5
12681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12682 if eval "test \"\${$as_ac_var+set}\" = set"; then
12683 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 else
12685 cat >conftest.$ac_ext <<_ACEOF
12686 #line $LINENO "configure"
12687 /* confdefs.h. */
12688 _ACEOF
12689 cat confdefs.h >>conftest.$ac_ext
12690 cat >>conftest.$ac_ext <<_ACEOF
12691 /* end confdefs.h. */
12692 /* System header to define __stub macros and hopefully few prototypes,
12693 which can conflict with char $ac_func (); below.
12694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12695 <limits.h> exists even on freestanding compilers. */
12696 #ifdef __STDC__
12697 # include <limits.h>
12698 #else
12699 # include <assert.h>
12700 #endif
12701 /* Override any gcc2 internal prototype to avoid an error. */
12702 #ifdef __cplusplus
12703 extern "C"
12705 #endif
12706 /* We use char because int might match the return type of a gcc2
12707 builtin and then its argument prototype would still apply. */
12708 char $ac_func ();
12709 /* The GNU C library defines this for functions which it implements
12710 to always fail with ENOSYS. Some functions are actually named
12711 something starting with __ and the normal name is an alias. */
12712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12713 choke me
12714 #else
12715 char (*f) () = $ac_func;
12716 #endif
12717 #ifdef __cplusplus
12719 #endif
12722 main ()
12724 return f != $ac_func;
12726 return 0;
12728 _ACEOF
12729 rm -f conftest.$ac_objext conftest$ac_exeext
12730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12731 (eval $ac_link) 2>&5
12732 ac_status=$?
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } &&
12735 { ac_try='test -s conftest$ac_exeext'
12736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12737 (eval $ac_try) 2>&5
12738 ac_status=$?
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); }; }; then
12741 eval "$as_ac_var=yes"
12742 else
12743 echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12746 eval "$as_ac_var=no"
12748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12752 if test `eval echo '${'$as_ac_var'}'` = yes; then
12753 cat >>confdefs.h <<_ACEOF
12754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12755 _ACEOF
12758 done
12762 for ac_header in wchar.h wctype.h
12764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12766 echo "$as_me:$LINENO: checking for $ac_header" >&5
12767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12769 echo $ECHO_N "(cached) $ECHO_C" >&6
12771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12773 else
12774 # Is the header compilable?
12775 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12777 cat >conftest.$ac_ext <<_ACEOF
12778 #line $LINENO "configure"
12779 /* confdefs.h. */
12780 _ACEOF
12781 cat confdefs.h >>conftest.$ac_ext
12782 cat >>conftest.$ac_ext <<_ACEOF
12783 /* end confdefs.h. */
12784 $ac_includes_default
12785 #include <$ac_header>
12786 _ACEOF
12787 rm -f conftest.$ac_objext
12788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12789 (eval $ac_compile) 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } &&
12793 { ac_try='test -s conftest.$ac_objext'
12794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795 (eval $ac_try) 2>&5
12796 ac_status=$?
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; }; then
12799 ac_header_compiler=yes
12800 else
12801 echo "$as_me: failed program was:" >&5
12802 sed 's/^/| /' conftest.$ac_ext >&5
12804 ac_header_compiler=no
12806 rm -f conftest.$ac_objext conftest.$ac_ext
12807 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12808 echo "${ECHO_T}$ac_header_compiler" >&6
12810 # Is the header present?
12811 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12812 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12813 cat >conftest.$ac_ext <<_ACEOF
12814 #line $LINENO "configure"
12815 /* confdefs.h. */
12816 _ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h. */
12820 #include <$ac_header>
12821 _ACEOF
12822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12824 ac_status=$?
12825 grep -v '^ *+' conftest.er1 >conftest.err
12826 rm -f conftest.er1
12827 cat conftest.err >&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } >/dev/null; then
12830 if test -s conftest.err; then
12831 ac_cpp_err=$ac_c_preproc_warn_flag
12832 else
12833 ac_cpp_err=
12835 else
12836 ac_cpp_err=yes
12838 if test -z "$ac_cpp_err"; then
12839 ac_header_preproc=yes
12840 else
12841 echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.$ac_ext >&5
12844 ac_header_preproc=no
12846 rm -f conftest.err conftest.$ac_ext
12847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12848 echo "${ECHO_T}$ac_header_preproc" >&6
12850 # So? What about this header?
12851 case $ac_header_compiler:$ac_header_preproc in
12852 yes:no )
12853 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12854 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12858 cat <<\_ASBOX
12859 ## ------------------------------------ ##
12860 ## Report this to bug-autoconf@gnu.org. ##
12861 ## ------------------------------------ ##
12862 _ASBOX
12864 sed "s/^/$as_me: WARNING: /" >&2
12866 no:yes )
12867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12874 cat <<\_ASBOX
12875 ## ------------------------------------ ##
12876 ## Report this to bug-autoconf@gnu.org. ##
12877 ## ------------------------------------ ##
12878 _ASBOX
12880 sed "s/^/$as_me: WARNING: /" >&2
12882 esac
12883 echo "$as_me:$LINENO: checking for $ac_header" >&5
12884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12886 echo $ECHO_N "(cached) $ECHO_C" >&6
12887 else
12888 eval "$as_ac_Header=$ac_header_preproc"
12890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12895 cat >>confdefs.h <<_ACEOF
12896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12897 _ACEOF
12901 done
12903 LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
12904 ac_config_links="$ac_config_links $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h"
12907 cat >>confdefs.h <<\_ACEOF
12908 #define fnmatch rpl_fnmatch
12909 _ACEOF
12916 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
12917 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
12918 if test "${ac_cv_header_stdbool_h+set}" = set; then
12919 echo $ECHO_N "(cached) $ECHO_C" >&6
12920 else
12921 cat >conftest.$ac_ext <<_ACEOF
12922 #line $LINENO "configure"
12923 /* confdefs.h. */
12924 _ACEOF
12925 cat confdefs.h >>conftest.$ac_ext
12926 cat >>conftest.$ac_ext <<_ACEOF
12927 /* end confdefs.h. */
12929 #include <stdbool.h>
12930 #ifndef bool
12931 "error: bool is not defined"
12932 #endif
12933 #ifndef false
12934 "error: false is not defined"
12935 #endif
12936 #if false
12937 "error: false is not 0"
12938 #endif
12939 #ifndef true
12940 "error: false is not defined"
12941 #endif
12942 #if true != 1
12943 "error: true is not 1"
12944 #endif
12945 #ifndef __bool_true_false_are_defined
12946 "error: __bool_true_false_are_defined is not defined"
12947 #endif
12949 struct s { _Bool s: 1; _Bool t; } s;
12951 char a[true == 1 ? 1 : -1];
12952 char b[false == 0 ? 1 : -1];
12953 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
12954 char d[(bool) -0.5 == true ? 1 : -1];
12955 bool e = &s;
12956 char f[(_Bool) -0.0 == false ? 1 : -1];
12957 char g[true];
12958 char h[sizeof (_Bool)];
12959 char i[sizeof s.t];
12962 main ()
12964 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
12966 return 0;
12968 _ACEOF
12969 rm -f conftest.$ac_objext
12970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12971 (eval $ac_compile) 2>&5
12972 ac_status=$?
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } &&
12975 { ac_try='test -s conftest.$ac_objext'
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; }; then
12981 ac_cv_header_stdbool_h=yes
12982 else
12983 echo "$as_me: failed program was:" >&5
12984 sed 's/^/| /' conftest.$ac_ext >&5
12986 ac_cv_header_stdbool_h=no
12988 rm -f conftest.$ac_objext conftest.$ac_ext
12990 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
12991 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
12992 if test $ac_cv_header_stdbool_h = yes; then
12994 cat >>confdefs.h <<\_ACEOF
12995 #define HAVE_STDBOOL_H 1
12996 _ACEOF
13005 for ac_func in getpagesize
13007 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13008 echo "$as_me:$LINENO: checking for $ac_func" >&5
13009 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13010 if eval "test \"\${$as_ac_var+set}\" = set"; then
13011 echo $ECHO_N "(cached) $ECHO_C" >&6
13012 else
13013 cat >conftest.$ac_ext <<_ACEOF
13014 #line $LINENO "configure"
13015 /* confdefs.h. */
13016 _ACEOF
13017 cat confdefs.h >>conftest.$ac_ext
13018 cat >>conftest.$ac_ext <<_ACEOF
13019 /* end confdefs.h. */
13020 /* System header to define __stub macros and hopefully few prototypes,
13021 which can conflict with char $ac_func (); below.
13022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13023 <limits.h> exists even on freestanding compilers. */
13024 #ifdef __STDC__
13025 # include <limits.h>
13026 #else
13027 # include <assert.h>
13028 #endif
13029 /* Override any gcc2 internal prototype to avoid an error. */
13030 #ifdef __cplusplus
13031 extern "C"
13033 #endif
13034 /* We use char because int might match the return type of a gcc2
13035 builtin and then its argument prototype would still apply. */
13036 char $ac_func ();
13037 /* The GNU C library defines this for functions which it implements
13038 to always fail with ENOSYS. Some functions are actually named
13039 something starting with __ and the normal name is an alias. */
13040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13041 choke me
13042 #else
13043 char (*f) () = $ac_func;
13044 #endif
13045 #ifdef __cplusplus
13047 #endif
13050 main ()
13052 return f != $ac_func;
13054 return 0;
13056 _ACEOF
13057 rm -f conftest.$ac_objext conftest$ac_exeext
13058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13059 (eval $ac_link) 2>&5
13060 ac_status=$?
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); } &&
13063 { ac_try='test -s conftest$ac_exeext'
13064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13065 (eval $ac_try) 2>&5
13066 ac_status=$?
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; }; then
13069 eval "$as_ac_var=yes"
13070 else
13071 echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13074 eval "$as_ac_var=no"
13076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13080 if test `eval echo '${'$as_ac_var'}'` = yes; then
13081 cat >>confdefs.h <<_ACEOF
13082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13083 _ACEOF
13086 done
13090 for ac_header in OS.h unistd.h
13092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13094 echo "$as_me:$LINENO: checking for $ac_header" >&5
13095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13101 else
13102 # Is the header compilable?
13103 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13105 cat >conftest.$ac_ext <<_ACEOF
13106 #line $LINENO "configure"
13107 /* confdefs.h. */
13108 _ACEOF
13109 cat confdefs.h >>conftest.$ac_ext
13110 cat >>conftest.$ac_ext <<_ACEOF
13111 /* end confdefs.h. */
13112 $ac_includes_default
13113 #include <$ac_header>
13114 _ACEOF
13115 rm -f conftest.$ac_objext
13116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13117 (eval $ac_compile) 2>&5
13118 ac_status=$?
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); } &&
13121 { ac_try='test -s conftest.$ac_objext'
13122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123 (eval $ac_try) 2>&5
13124 ac_status=$?
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; }; then
13127 ac_header_compiler=yes
13128 else
13129 echo "$as_me: failed program was:" >&5
13130 sed 's/^/| /' conftest.$ac_ext >&5
13132 ac_header_compiler=no
13134 rm -f conftest.$ac_objext conftest.$ac_ext
13135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13136 echo "${ECHO_T}$ac_header_compiler" >&6
13138 # Is the header present?
13139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13141 cat >conftest.$ac_ext <<_ACEOF
13142 #line $LINENO "configure"
13143 /* confdefs.h. */
13144 _ACEOF
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h. */
13148 #include <$ac_header>
13149 _ACEOF
13150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13152 ac_status=$?
13153 grep -v '^ *+' conftest.er1 >conftest.err
13154 rm -f conftest.er1
13155 cat conftest.err >&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } >/dev/null; then
13158 if test -s conftest.err; then
13159 ac_cpp_err=$ac_c_preproc_warn_flag
13160 else
13161 ac_cpp_err=
13163 else
13164 ac_cpp_err=yes
13166 if test -z "$ac_cpp_err"; then
13167 ac_header_preproc=yes
13168 else
13169 echo "$as_me: failed program was:" >&5
13170 sed 's/^/| /' conftest.$ac_ext >&5
13172 ac_header_preproc=no
13174 rm -f conftest.err conftest.$ac_ext
13175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13176 echo "${ECHO_T}$ac_header_preproc" >&6
13178 # So? What about this header?
13179 case $ac_header_compiler:$ac_header_preproc in
13180 yes:no )
13181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13186 cat <<\_ASBOX
13187 ## ------------------------------------ ##
13188 ## Report this to bug-autoconf@gnu.org. ##
13189 ## ------------------------------------ ##
13190 _ASBOX
13192 sed "s/^/$as_me: WARNING: /" >&2
13194 no:yes )
13195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13196 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13198 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13202 cat <<\_ASBOX
13203 ## ------------------------------------ ##
13204 ## Report this to bug-autoconf@gnu.org. ##
13205 ## ------------------------------------ ##
13206 _ASBOX
13208 sed "s/^/$as_me: WARNING: /" >&2
13210 esac
13211 echo "$as_me:$LINENO: checking for $ac_header" >&5
13212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13214 echo $ECHO_N "(cached) $ECHO_C" >&6
13215 else
13216 eval "$as_ac_Header=$ac_header_preproc"
13218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13223 cat >>confdefs.h <<_ACEOF
13224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13225 _ACEOF
13229 done
13236 for ac_header in locale.h stdlib.h string.h
13238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13240 echo "$as_me:$LINENO: checking for $ac_header" >&5
13241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13243 echo $ECHO_N "(cached) $ECHO_C" >&6
13245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13247 else
13248 # Is the header compilable?
13249 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13251 cat >conftest.$ac_ext <<_ACEOF
13252 #line $LINENO "configure"
13253 /* confdefs.h. */
13254 _ACEOF
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h. */
13258 $ac_includes_default
13259 #include <$ac_header>
13260 _ACEOF
13261 rm -f conftest.$ac_objext
13262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13263 (eval $ac_compile) 2>&5
13264 ac_status=$?
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } &&
13267 { ac_try='test -s conftest.$ac_objext'
13268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13269 (eval $ac_try) 2>&5
13270 ac_status=$?
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; }; then
13273 ac_header_compiler=yes
13274 else
13275 echo "$as_me: failed program was:" >&5
13276 sed 's/^/| /' conftest.$ac_ext >&5
13278 ac_header_compiler=no
13280 rm -f conftest.$ac_objext conftest.$ac_ext
13281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13282 echo "${ECHO_T}$ac_header_compiler" >&6
13284 # Is the header present?
13285 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13287 cat >conftest.$ac_ext <<_ACEOF
13288 #line $LINENO "configure"
13289 /* confdefs.h. */
13290 _ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h. */
13294 #include <$ac_header>
13295 _ACEOF
13296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13298 ac_status=$?
13299 grep -v '^ *+' conftest.er1 >conftest.err
13300 rm -f conftest.er1
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } >/dev/null; then
13304 if test -s conftest.err; then
13305 ac_cpp_err=$ac_c_preproc_warn_flag
13306 else
13307 ac_cpp_err=
13309 else
13310 ac_cpp_err=yes
13312 if test -z "$ac_cpp_err"; then
13313 ac_header_preproc=yes
13314 else
13315 echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13318 ac_header_preproc=no
13320 rm -f conftest.err conftest.$ac_ext
13321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13322 echo "${ECHO_T}$ac_header_preproc" >&6
13324 # So? What about this header?
13325 case $ac_header_compiler:$ac_header_preproc in
13326 yes:no )
13327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13332 cat <<\_ASBOX
13333 ## ------------------------------------ ##
13334 ## Report this to bug-autoconf@gnu.org. ##
13335 ## ------------------------------------ ##
13336 _ASBOX
13338 sed "s/^/$as_me: WARNING: /" >&2
13340 no:yes )
13341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13344 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13348 cat <<\_ASBOX
13349 ## ------------------------------------ ##
13350 ## Report this to bug-autoconf@gnu.org. ##
13351 ## ------------------------------------ ##
13352 _ASBOX
13354 sed "s/^/$as_me: WARNING: /" >&2
13356 esac
13357 echo "$as_me:$LINENO: checking for $ac_header" >&5
13358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
13361 else
13362 eval "$as_ac_Header=$ac_header_preproc"
13364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13369 cat >>confdefs.h <<_ACEOF
13370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13371 _ACEOF
13375 done
13378 for ac_func in setlocale
13380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13381 echo "$as_me:$LINENO: checking for $ac_func" >&5
13382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13383 if eval "test \"\${$as_ac_var+set}\" = set"; then
13384 echo $ECHO_N "(cached) $ECHO_C" >&6
13385 else
13386 cat >conftest.$ac_ext <<_ACEOF
13387 #line $LINENO "configure"
13388 /* confdefs.h. */
13389 _ACEOF
13390 cat confdefs.h >>conftest.$ac_ext
13391 cat >>conftest.$ac_ext <<_ACEOF
13392 /* end confdefs.h. */
13393 /* System header to define __stub macros and hopefully few prototypes,
13394 which can conflict with char $ac_func (); below.
13395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13396 <limits.h> exists even on freestanding compilers. */
13397 #ifdef __STDC__
13398 # include <limits.h>
13399 #else
13400 # include <assert.h>
13401 #endif
13402 /* Override any gcc2 internal prototype to avoid an error. */
13403 #ifdef __cplusplus
13404 extern "C"
13406 #endif
13407 /* We use char because int might match the return type of a gcc2
13408 builtin and then its argument prototype would still apply. */
13409 char $ac_func ();
13410 /* The GNU C library defines this for functions which it implements
13411 to always fail with ENOSYS. Some functions are actually named
13412 something starting with __ and the normal name is an alias. */
13413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13414 choke me
13415 #else
13416 char (*f) () = $ac_func;
13417 #endif
13418 #ifdef __cplusplus
13420 #endif
13423 main ()
13425 return f != $ac_func;
13427 return 0;
13429 _ACEOF
13430 rm -f conftest.$ac_objext conftest$ac_exeext
13431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13432 (eval $ac_link) 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } &&
13436 { ac_try='test -s conftest$ac_exeext'
13437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438 (eval $ac_try) 2>&5
13439 ac_status=$?
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; }; then
13442 eval "$as_ac_var=yes"
13443 else
13444 echo "$as_me: failed program was:" >&5
13445 sed 's/^/| /' conftest.$ac_ext >&5
13447 eval "$as_ac_var=no"
13449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13453 if test `eval echo '${'$as_ac_var'}'` = yes; then
13454 cat >>confdefs.h <<_ACEOF
13455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13456 _ACEOF
13459 done
13465 for ac_header in stdlib.h
13467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13469 echo "$as_me:$LINENO: checking for $ac_header" >&5
13470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
13474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13476 else
13477 # Is the header compilable?
13478 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13479 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13480 cat >conftest.$ac_ext <<_ACEOF
13481 #line $LINENO "configure"
13482 /* confdefs.h. */
13483 _ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h. */
13487 $ac_includes_default
13488 #include <$ac_header>
13489 _ACEOF
13490 rm -f conftest.$ac_objext
13491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13492 (eval $ac_compile) 2>&5
13493 ac_status=$?
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } &&
13496 { ac_try='test -s conftest.$ac_objext'
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13499 ac_status=$?
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
13502 ac_header_compiler=yes
13503 else
13504 echo "$as_me: failed program was:" >&5
13505 sed 's/^/| /' conftest.$ac_ext >&5
13507 ac_header_compiler=no
13509 rm -f conftest.$ac_objext conftest.$ac_ext
13510 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13511 echo "${ECHO_T}$ac_header_compiler" >&6
13513 # Is the header present?
13514 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13516 cat >conftest.$ac_ext <<_ACEOF
13517 #line $LINENO "configure"
13518 /* confdefs.h. */
13519 _ACEOF
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h. */
13523 #include <$ac_header>
13524 _ACEOF
13525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13527 ac_status=$?
13528 grep -v '^ *+' conftest.er1 >conftest.err
13529 rm -f conftest.er1
13530 cat conftest.err >&5
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); } >/dev/null; then
13533 if test -s conftest.err; then
13534 ac_cpp_err=$ac_c_preproc_warn_flag
13535 else
13536 ac_cpp_err=
13538 else
13539 ac_cpp_err=yes
13541 if test -z "$ac_cpp_err"; then
13542 ac_header_preproc=yes
13543 else
13544 echo "$as_me: failed program was:" >&5
13545 sed 's/^/| /' conftest.$ac_ext >&5
13547 ac_header_preproc=no
13549 rm -f conftest.err conftest.$ac_ext
13550 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13551 echo "${ECHO_T}$ac_header_preproc" >&6
13553 # So? What about this header?
13554 case $ac_header_compiler:$ac_header_preproc in
13555 yes:no )
13556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13561 cat <<\_ASBOX
13562 ## ------------------------------------ ##
13563 ## Report this to bug-autoconf@gnu.org. ##
13564 ## ------------------------------------ ##
13565 _ASBOX
13567 sed "s/^/$as_me: WARNING: /" >&2
13569 no:yes )
13570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13577 cat <<\_ASBOX
13578 ## ------------------------------------ ##
13579 ## Report this to bug-autoconf@gnu.org. ##
13580 ## ------------------------------------ ##
13581 _ASBOX
13583 sed "s/^/$as_me: WARNING: /" >&2
13585 esac
13586 echo "$as_me:$LINENO: checking for $ac_header" >&5
13587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13589 echo $ECHO_N "(cached) $ECHO_C" >&6
13590 else
13591 eval "$as_ac_Header=$ac_header_preproc"
13593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13598 cat >>confdefs.h <<_ACEOF
13599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13600 _ACEOF
13604 done
13611 for ac_header in locale.h
13613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13615 echo "$as_me:$LINENO: checking for $ac_header" >&5
13616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13622 else
13623 # Is the header compilable?
13624 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13626 cat >conftest.$ac_ext <<_ACEOF
13627 #line $LINENO "configure"
13628 /* confdefs.h. */
13629 _ACEOF
13630 cat confdefs.h >>conftest.$ac_ext
13631 cat >>conftest.$ac_ext <<_ACEOF
13632 /* end confdefs.h. */
13633 $ac_includes_default
13634 #include <$ac_header>
13635 _ACEOF
13636 rm -f conftest.$ac_objext
13637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13638 (eval $ac_compile) 2>&5
13639 ac_status=$?
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); } &&
13642 { ac_try='test -s conftest.$ac_objext'
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13645 ac_status=$?
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; }; then
13648 ac_header_compiler=yes
13649 else
13650 echo "$as_me: failed program was:" >&5
13651 sed 's/^/| /' conftest.$ac_ext >&5
13653 ac_header_compiler=no
13655 rm -f conftest.$ac_objext conftest.$ac_ext
13656 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13657 echo "${ECHO_T}$ac_header_compiler" >&6
13659 # Is the header present?
13660 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13662 cat >conftest.$ac_ext <<_ACEOF
13663 #line $LINENO "configure"
13664 /* confdefs.h. */
13665 _ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h. */
13669 #include <$ac_header>
13670 _ACEOF
13671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13673 ac_status=$?
13674 grep -v '^ *+' conftest.er1 >conftest.err
13675 rm -f conftest.er1
13676 cat conftest.err >&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); } >/dev/null; then
13679 if test -s conftest.err; then
13680 ac_cpp_err=$ac_c_preproc_warn_flag
13681 else
13682 ac_cpp_err=
13684 else
13685 ac_cpp_err=yes
13687 if test -z "$ac_cpp_err"; then
13688 ac_header_preproc=yes
13689 else
13690 echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13693 ac_header_preproc=no
13695 rm -f conftest.err conftest.$ac_ext
13696 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13697 echo "${ECHO_T}$ac_header_preproc" >&6
13699 # So? What about this header?
13700 case $ac_header_compiler:$ac_header_preproc in
13701 yes:no )
13702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13707 cat <<\_ASBOX
13708 ## ------------------------------------ ##
13709 ## Report this to bug-autoconf@gnu.org. ##
13710 ## ------------------------------------ ##
13711 _ASBOX
13713 sed "s/^/$as_me: WARNING: /" >&2
13715 no:yes )
13716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13719 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13723 cat <<\_ASBOX
13724 ## ------------------------------------ ##
13725 ## Report this to bug-autoconf@gnu.org. ##
13726 ## ------------------------------------ ##
13727 _ASBOX
13729 sed "s/^/$as_me: WARNING: /" >&2
13731 esac
13732 echo "$as_me:$LINENO: checking for $ac_header" >&5
13733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13735 echo $ECHO_N "(cached) $ECHO_C" >&6
13736 else
13737 eval "$as_ac_Header=$ac_header_preproc"
13739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13744 cat >>confdefs.h <<_ACEOF
13745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13746 _ACEOF
13750 done
13752 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
13753 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
13754 if test "${ac_cv_have_decl_getenv+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13756 else
13757 cat >conftest.$ac_ext <<_ACEOF
13758 #line $LINENO "configure"
13759 /* confdefs.h. */
13760 _ACEOF
13761 cat confdefs.h >>conftest.$ac_ext
13762 cat >>conftest.$ac_ext <<_ACEOF
13763 /* end confdefs.h. */
13764 $ac_includes_default
13766 main ()
13768 #ifndef getenv
13769 char *p = (char *) getenv;
13770 #endif
13773 return 0;
13775 _ACEOF
13776 rm -f conftest.$ac_objext
13777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13778 (eval $ac_compile) 2>&5
13779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } &&
13782 { ac_try='test -s conftest.$ac_objext'
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; }; then
13788 ac_cv_have_decl_getenv=yes
13789 else
13790 echo "$as_me: failed program was:" >&5
13791 sed 's/^/| /' conftest.$ac_ext >&5
13793 ac_cv_have_decl_getenv=no
13795 rm -f conftest.$ac_objext conftest.$ac_ext
13797 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
13798 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
13799 if test $ac_cv_have_decl_getenv = yes; then
13801 cat >>confdefs.h <<_ACEOF
13802 #define HAVE_DECL_GETENV 1
13803 _ACEOF
13806 else
13807 cat >>confdefs.h <<_ACEOF
13808 #define HAVE_DECL_GETENV 0
13809 _ACEOF
13816 for ac_func in localeconv
13818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13819 echo "$as_me:$LINENO: checking for $ac_func" >&5
13820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13821 if eval "test \"\${$as_ac_var+set}\" = set"; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13823 else
13824 cat >conftest.$ac_ext <<_ACEOF
13825 #line $LINENO "configure"
13826 /* confdefs.h. */
13827 _ACEOF
13828 cat confdefs.h >>conftest.$ac_ext
13829 cat >>conftest.$ac_ext <<_ACEOF
13830 /* end confdefs.h. */
13831 /* System header to define __stub macros and hopefully few prototypes,
13832 which can conflict with char $ac_func (); below.
13833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13834 <limits.h> exists even on freestanding compilers. */
13835 #ifdef __STDC__
13836 # include <limits.h>
13837 #else
13838 # include <assert.h>
13839 #endif
13840 /* Override any gcc2 internal prototype to avoid an error. */
13841 #ifdef __cplusplus
13842 extern "C"
13844 #endif
13845 /* We use char because int might match the return type of a gcc2
13846 builtin and then its argument prototype would still apply. */
13847 char $ac_func ();
13848 /* The GNU C library defines this for functions which it implements
13849 to always fail with ENOSYS. Some functions are actually named
13850 something starting with __ and the normal name is an alias. */
13851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13852 choke me
13853 #else
13854 char (*f) () = $ac_func;
13855 #endif
13856 #ifdef __cplusplus
13858 #endif
13861 main ()
13863 return f != $ac_func;
13865 return 0;
13867 _ACEOF
13868 rm -f conftest.$ac_objext conftest$ac_exeext
13869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13870 (eval $ac_link) 2>&5
13871 ac_status=$?
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } &&
13874 { ac_try='test -s conftest$ac_exeext'
13875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13877 ac_status=$?
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; }; then
13880 eval "$as_ac_var=yes"
13881 else
13882 echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13885 eval "$as_ac_var=no"
13887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13891 if test `eval echo '${'$as_ac_var'}'` = yes; then
13892 cat >>confdefs.h <<_ACEOF
13893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13894 _ACEOF
13897 done
13909 for ac_header in limits.h stdlib.h string.h wchar.h wctype.h
13911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13913 echo "$as_me:$LINENO: checking for $ac_header" >&5
13914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13916 echo $ECHO_N "(cached) $ECHO_C" >&6
13918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13920 else
13921 # Is the header compilable?
13922 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13924 cat >conftest.$ac_ext <<_ACEOF
13925 #line $LINENO "configure"
13926 /* confdefs.h. */
13927 _ACEOF
13928 cat confdefs.h >>conftest.$ac_ext
13929 cat >>conftest.$ac_ext <<_ACEOF
13930 /* end confdefs.h. */
13931 $ac_includes_default
13932 #include <$ac_header>
13933 _ACEOF
13934 rm -f conftest.$ac_objext
13935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13936 (eval $ac_compile) 2>&5
13937 ac_status=$?
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); } &&
13940 { ac_try='test -s conftest.$ac_objext'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13943 ac_status=$?
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; }; then
13946 ac_header_compiler=yes
13947 else
13948 echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.$ac_ext >&5
13951 ac_header_compiler=no
13953 rm -f conftest.$ac_objext conftest.$ac_ext
13954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13955 echo "${ECHO_T}$ac_header_compiler" >&6
13957 # Is the header present?
13958 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13960 cat >conftest.$ac_ext <<_ACEOF
13961 #line $LINENO "configure"
13962 /* confdefs.h. */
13963 _ACEOF
13964 cat confdefs.h >>conftest.$ac_ext
13965 cat >>conftest.$ac_ext <<_ACEOF
13966 /* end confdefs.h. */
13967 #include <$ac_header>
13968 _ACEOF
13969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13971 ac_status=$?
13972 grep -v '^ *+' conftest.er1 >conftest.err
13973 rm -f conftest.er1
13974 cat conftest.err >&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } >/dev/null; then
13977 if test -s conftest.err; then
13978 ac_cpp_err=$ac_c_preproc_warn_flag
13979 else
13980 ac_cpp_err=
13982 else
13983 ac_cpp_err=yes
13985 if test -z "$ac_cpp_err"; then
13986 ac_header_preproc=yes
13987 else
13988 echo "$as_me: failed program was:" >&5
13989 sed 's/^/| /' conftest.$ac_ext >&5
13991 ac_header_preproc=no
13993 rm -f conftest.err conftest.$ac_ext
13994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13995 echo "${ECHO_T}$ac_header_preproc" >&6
13997 # So? What about this header?
13998 case $ac_header_compiler:$ac_header_preproc in
13999 yes:no )
14000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14005 cat <<\_ASBOX
14006 ## ------------------------------------ ##
14007 ## Report this to bug-autoconf@gnu.org. ##
14008 ## ------------------------------------ ##
14009 _ASBOX
14011 sed "s/^/$as_me: WARNING: /" >&2
14013 no:yes )
14014 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14015 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14016 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14017 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14021 cat <<\_ASBOX
14022 ## ------------------------------------ ##
14023 ## Report this to bug-autoconf@gnu.org. ##
14024 ## ------------------------------------ ##
14025 _ASBOX
14027 sed "s/^/$as_me: WARNING: /" >&2
14029 esac
14030 echo "$as_me:$LINENO: checking for $ac_header" >&5
14031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14034 else
14035 eval "$as_ac_Header=$ac_header_preproc"
14037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14042 cat >>confdefs.h <<_ACEOF
14043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14044 _ACEOF
14048 done
14055 for ac_func in isascii iswcntrl iswprint mbsinit wcwidth
14057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14058 echo "$as_me:$LINENO: checking for $ac_func" >&5
14059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14060 if eval "test \"\${$as_ac_var+set}\" = set"; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14062 else
14063 cat >conftest.$ac_ext <<_ACEOF
14064 #line $LINENO "configure"
14065 /* confdefs.h. */
14066 _ACEOF
14067 cat confdefs.h >>conftest.$ac_ext
14068 cat >>conftest.$ac_ext <<_ACEOF
14069 /* end confdefs.h. */
14070 /* System header to define __stub macros and hopefully few prototypes,
14071 which can conflict with char $ac_func (); below.
14072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14073 <limits.h> exists even on freestanding compilers. */
14074 #ifdef __STDC__
14075 # include <limits.h>
14076 #else
14077 # include <assert.h>
14078 #endif
14079 /* Override any gcc2 internal prototype to avoid an error. */
14080 #ifdef __cplusplus
14081 extern "C"
14083 #endif
14084 /* We use char because int might match the return type of a gcc2
14085 builtin and then its argument prototype would still apply. */
14086 char $ac_func ();
14087 /* The GNU C library defines this for functions which it implements
14088 to always fail with ENOSYS. Some functions are actually named
14089 something starting with __ and the normal name is an alias. */
14090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14091 choke me
14092 #else
14093 char (*f) () = $ac_func;
14094 #endif
14095 #ifdef __cplusplus
14097 #endif
14100 main ()
14102 return f != $ac_func;
14104 return 0;
14106 _ACEOF
14107 rm -f conftest.$ac_objext conftest$ac_exeext
14108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14109 (eval $ac_link) 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); } &&
14113 { ac_try='test -s conftest$ac_exeext'
14114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14115 (eval $ac_try) 2>&5
14116 ac_status=$?
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; }; then
14119 eval "$as_ac_var=yes"
14120 else
14121 echo "$as_me: failed program was:" >&5
14122 sed 's/^/| /' conftest.$ac_ext >&5
14124 eval "$as_ac_var=no"
14126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14130 if test `eval echo '${'$as_ac_var'}'` = yes; then
14131 cat >>confdefs.h <<_ACEOF
14132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14133 _ACEOF
14136 done
14139 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
14140 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
14141 if test "${jm_cv_func_mbrtowc+set}" = set; then
14142 echo $ECHO_N "(cached) $ECHO_C" >&6
14143 else
14144 cat >conftest.$ac_ext <<_ACEOF
14145 #line $LINENO "configure"
14146 /* confdefs.h. */
14147 _ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h. */
14151 #include <wchar.h>
14153 main ()
14155 mbstate_t state; return ! (sizeof state && mbrtowc);
14157 return 0;
14159 _ACEOF
14160 rm -f conftest.$ac_objext conftest$ac_exeext
14161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14162 (eval $ac_link) 2>&5
14163 ac_status=$?
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } &&
14166 { ac_try='test -s conftest$ac_exeext'
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14169 ac_status=$?
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; }; then
14172 jm_cv_func_mbrtowc=yes
14173 else
14174 echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14177 jm_cv_func_mbrtowc=no
14179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14181 echo "$as_me:$LINENO: result: $jm_cv_func_mbrtowc" >&5
14182 echo "${ECHO_T}$jm_cv_func_mbrtowc" >&6
14183 if test $jm_cv_func_mbrtowc = yes; then
14185 cat >>confdefs.h <<\_ACEOF
14186 #define HAVE_MBRTOWC 1
14187 _ACEOF
14192 echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
14193 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6
14194 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14196 else
14197 cat >conftest.$ac_ext <<_ACEOF
14198 #line $LINENO "configure"
14199 /* confdefs.h. */
14200 _ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h. */
14205 /* AIX 3.2.5 declares wcwidth in <string.h>. */
14206 #if HAVE_STRING_H
14207 # include <string.h>
14208 #endif
14209 #if HAVE_WCHAR_H
14210 # include <wchar.h>
14211 #endif
14214 main ()
14217 #ifndef wcwidth
14218 char *p = (char *) wcwidth;
14219 #endif
14222 return 0;
14224 _ACEOF
14225 rm -f conftest.$ac_objext
14226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14227 (eval $ac_compile) 2>&5
14228 ac_status=$?
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); } &&
14231 { ac_try='test -s conftest.$ac_objext'
14232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }; then
14237 ac_cv_have_decl_wcwidth=yes
14238 else
14239 echo "$as_me: failed program was:" >&5
14240 sed 's/^/| /' conftest.$ac_ext >&5
14242 ac_cv_have_decl_wcwidth=no
14244 rm -f conftest.$ac_objext conftest.$ac_ext
14246 echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
14247 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6
14248 if test $ac_cv_have_decl_wcwidth = yes; then
14249 ac_val=1
14250 else
14251 ac_val=0
14254 cat >>confdefs.h <<_ACEOF
14255 #define HAVE_DECL_WCWIDTH $ac_val
14256 _ACEOF
14259 echo "$as_me:$LINENO: checking for mbstate_t" >&5
14260 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
14261 if test "${ac_cv_type_mbstate_t+set}" = set; then
14262 echo $ECHO_N "(cached) $ECHO_C" >&6
14263 else
14264 cat >conftest.$ac_ext <<_ACEOF
14265 #line $LINENO "configure"
14266 /* confdefs.h. */
14267 _ACEOF
14268 cat confdefs.h >>conftest.$ac_ext
14269 cat >>conftest.$ac_ext <<_ACEOF
14270 /* end confdefs.h. */
14271 $ac_includes_default
14272 # include <wchar.h>
14274 main ()
14276 mbstate_t x; return sizeof x;
14278 return 0;
14280 _ACEOF
14281 rm -f conftest.$ac_objext
14282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14283 (eval $ac_compile) 2>&5
14284 ac_status=$?
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } &&
14287 { ac_try='test -s conftest.$ac_objext'
14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
14293 ac_cv_type_mbstate_t=yes
14294 else
14295 echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14298 ac_cv_type_mbstate_t=no
14300 rm -f conftest.$ac_objext conftest.$ac_ext
14302 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
14303 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
14304 if test $ac_cv_type_mbstate_t = yes; then
14306 cat >>confdefs.h <<\_ACEOF
14307 #define HAVE_MBSTATE_T 1
14308 _ACEOF
14310 else
14312 cat >>confdefs.h <<\_ACEOF
14313 #define mbstate_t int
14314 _ACEOF
14322 for ac_header in limits.h stdlib.h bp-sym.h
14324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14326 echo "$as_me:$LINENO: checking for $ac_header" >&5
14327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
14331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14333 else
14334 # Is the header compilable?
14335 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14337 cat >conftest.$ac_ext <<_ACEOF
14338 #line $LINENO "configure"
14339 /* confdefs.h. */
14340 _ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h. */
14344 $ac_includes_default
14345 #include <$ac_header>
14346 _ACEOF
14347 rm -f conftest.$ac_objext
14348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14349 (eval $ac_compile) 2>&5
14350 ac_status=$?
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); } &&
14353 { ac_try='test -s conftest.$ac_objext'
14354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355 (eval $ac_try) 2>&5
14356 ac_status=$?
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; }; then
14359 ac_header_compiler=yes
14360 else
14361 echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14364 ac_header_compiler=no
14366 rm -f conftest.$ac_objext conftest.$ac_ext
14367 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14368 echo "${ECHO_T}$ac_header_compiler" >&6
14370 # Is the header present?
14371 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14372 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14373 cat >conftest.$ac_ext <<_ACEOF
14374 #line $LINENO "configure"
14375 /* confdefs.h. */
14376 _ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h. */
14380 #include <$ac_header>
14381 _ACEOF
14382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14384 ac_status=$?
14385 grep -v '^ *+' conftest.er1 >conftest.err
14386 rm -f conftest.er1
14387 cat conftest.err >&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); } >/dev/null; then
14390 if test -s conftest.err; then
14391 ac_cpp_err=$ac_c_preproc_warn_flag
14392 else
14393 ac_cpp_err=
14395 else
14396 ac_cpp_err=yes
14398 if test -z "$ac_cpp_err"; then
14399 ac_header_preproc=yes
14400 else
14401 echo "$as_me: failed program was:" >&5
14402 sed 's/^/| /' conftest.$ac_ext >&5
14404 ac_header_preproc=no
14406 rm -f conftest.err conftest.$ac_ext
14407 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14408 echo "${ECHO_T}$ac_header_preproc" >&6
14410 # So? What about this header?
14411 case $ac_header_compiler:$ac_header_preproc in
14412 yes:no )
14413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14418 cat <<\_ASBOX
14419 ## ------------------------------------ ##
14420 ## Report this to bug-autoconf@gnu.org. ##
14421 ## ------------------------------------ ##
14422 _ASBOX
14424 sed "s/^/$as_me: WARNING: /" >&2
14426 no:yes )
14427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14434 cat <<\_ASBOX
14435 ## ------------------------------------ ##
14436 ## Report this to bug-autoconf@gnu.org. ##
14437 ## ------------------------------------ ##
14438 _ASBOX
14440 sed "s/^/$as_me: WARNING: /" >&2
14442 esac
14443 echo "$as_me:$LINENO: checking for $ac_header" >&5
14444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14446 echo $ECHO_N "(cached) $ECHO_C" >&6
14447 else
14448 eval "$as_ac_Header=$ac_header_preproc"
14450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14455 cat >>confdefs.h <<_ACEOF
14456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14457 _ACEOF
14461 done
14464 echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
14465 echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
14466 if test "${gl_cv_var__system_configuration+set}" = set; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
14468 else
14469 cat >conftest.$ac_ext <<_ACEOF
14470 #line $LINENO "configure"
14471 /* confdefs.h. */
14472 _ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h. */
14476 #include <sys/systemcfg.h>
14479 main ()
14481 double x = _system_configuration.physmem;
14483 return 0;
14485 _ACEOF
14486 rm -f conftest.$ac_objext conftest$ac_exeext
14487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14488 (eval $ac_link) 2>&5
14489 ac_status=$?
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); } &&
14492 { ac_try='test -s conftest$ac_exeext'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14495 ac_status=$?
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
14498 gl_cv_var__system_configuration=yes
14499 else
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14503 gl_cv_var__system_configuration=no
14505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14507 echo "$as_me:$LINENO: result: $gl_cv_var__system_configuration" >&5
14508 echo "${ECHO_T}$gl_cv_var__system_configuration" >&6
14510 if test $gl_cv_var__system_configuration = yes; then
14512 cat >>confdefs.h <<\_ACEOF
14513 #define HAVE__SYSTEM_CONFIGURATION 1
14514 _ACEOF
14529 for ac_header in unistd.h sys/pstat.h sys/sysmp.h sys/sysinfo.h \
14530 machine/hal_sysinfo.h sys/table.h sys/param.h sys/sysctl.h \
14531 sys/systemcfg.h
14533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14535 echo "$as_me:$LINENO: checking for $ac_header" >&5
14536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14542 else
14543 # Is the header compilable?
14544 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14546 cat >conftest.$ac_ext <<_ACEOF
14547 #line $LINENO "configure"
14548 /* confdefs.h. */
14549 _ACEOF
14550 cat confdefs.h >>conftest.$ac_ext
14551 cat >>conftest.$ac_ext <<_ACEOF
14552 /* end confdefs.h. */
14553 $ac_includes_default
14554 #include <$ac_header>
14555 _ACEOF
14556 rm -f conftest.$ac_objext
14557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14558 (eval $ac_compile) 2>&5
14559 ac_status=$?
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } &&
14562 { ac_try='test -s conftest.$ac_objext'
14563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14564 (eval $ac_try) 2>&5
14565 ac_status=$?
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; }; then
14568 ac_header_compiler=yes
14569 else
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14573 ac_header_compiler=no
14575 rm -f conftest.$ac_objext conftest.$ac_ext
14576 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14577 echo "${ECHO_T}$ac_header_compiler" >&6
14579 # Is the header present?
14580 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14582 cat >conftest.$ac_ext <<_ACEOF
14583 #line $LINENO "configure"
14584 /* confdefs.h. */
14585 _ACEOF
14586 cat confdefs.h >>conftest.$ac_ext
14587 cat >>conftest.$ac_ext <<_ACEOF
14588 /* end confdefs.h. */
14589 #include <$ac_header>
14590 _ACEOF
14591 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14592 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14593 ac_status=$?
14594 grep -v '^ *+' conftest.er1 >conftest.err
14595 rm -f conftest.er1
14596 cat conftest.err >&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } >/dev/null; then
14599 if test -s conftest.err; then
14600 ac_cpp_err=$ac_c_preproc_warn_flag
14601 else
14602 ac_cpp_err=
14604 else
14605 ac_cpp_err=yes
14607 if test -z "$ac_cpp_err"; then
14608 ac_header_preproc=yes
14609 else
14610 echo "$as_me: failed program was:" >&5
14611 sed 's/^/| /' conftest.$ac_ext >&5
14613 ac_header_preproc=no
14615 rm -f conftest.err conftest.$ac_ext
14616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14617 echo "${ECHO_T}$ac_header_preproc" >&6
14619 # So? What about this header?
14620 case $ac_header_compiler:$ac_header_preproc in
14621 yes:no )
14622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14627 cat <<\_ASBOX
14628 ## ------------------------------------ ##
14629 ## Report this to bug-autoconf@gnu.org. ##
14630 ## ------------------------------------ ##
14631 _ASBOX
14633 sed "s/^/$as_me: WARNING: /" >&2
14635 no:yes )
14636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14639 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14643 cat <<\_ASBOX
14644 ## ------------------------------------ ##
14645 ## Report this to bug-autoconf@gnu.org. ##
14646 ## ------------------------------------ ##
14647 _ASBOX
14649 sed "s/^/$as_me: WARNING: /" >&2
14651 esac
14652 echo "$as_me:$LINENO: checking for $ac_header" >&5
14653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14655 echo $ECHO_N "(cached) $ECHO_C" >&6
14656 else
14657 eval "$as_ac_Header=$ac_header_preproc"
14659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14664 cat >>confdefs.h <<_ACEOF
14665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14666 _ACEOF
14670 done
14678 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo sysctl table
14680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14681 echo "$as_me:$LINENO: checking for $ac_func" >&5
14682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14683 if eval "test \"\${$as_ac_var+set}\" = set"; then
14684 echo $ECHO_N "(cached) $ECHO_C" >&6
14685 else
14686 cat >conftest.$ac_ext <<_ACEOF
14687 #line $LINENO "configure"
14688 /* confdefs.h. */
14689 _ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h. */
14693 /* System header to define __stub macros and hopefully few prototypes,
14694 which can conflict with char $ac_func (); below.
14695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14696 <limits.h> exists even on freestanding compilers. */
14697 #ifdef __STDC__
14698 # include <limits.h>
14699 #else
14700 # include <assert.h>
14701 #endif
14702 /* Override any gcc2 internal prototype to avoid an error. */
14703 #ifdef __cplusplus
14704 extern "C"
14706 #endif
14707 /* We use char because int might match the return type of a gcc2
14708 builtin and then its argument prototype would still apply. */
14709 char $ac_func ();
14710 /* The GNU C library defines this for functions which it implements
14711 to always fail with ENOSYS. Some functions are actually named
14712 something starting with __ and the normal name is an alias. */
14713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14714 choke me
14715 #else
14716 char (*f) () = $ac_func;
14717 #endif
14718 #ifdef __cplusplus
14720 #endif
14723 main ()
14725 return f != $ac_func;
14727 return 0;
14729 _ACEOF
14730 rm -f conftest.$ac_objext conftest$ac_exeext
14731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14732 (eval $ac_link) 2>&5
14733 ac_status=$?
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } &&
14736 { ac_try='test -s conftest$ac_exeext'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14739 ac_status=$?
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
14742 eval "$as_ac_var=yes"
14743 else
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14747 eval "$as_ac_var=no"
14749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14753 if test `eval echo '${'$as_ac_var'}'` = yes; then
14754 cat >>confdefs.h <<_ACEOF
14755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14756 _ACEOF
14759 done
14766 for ac_header in unistd.h
14768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14770 echo "$as_me:$LINENO: checking for $ac_header" >&5
14771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14773 echo $ECHO_N "(cached) $ECHO_C" >&6
14775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14777 else
14778 # Is the header compilable?
14779 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14780 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14781 cat >conftest.$ac_ext <<_ACEOF
14782 #line $LINENO "configure"
14783 /* confdefs.h. */
14784 _ACEOF
14785 cat confdefs.h >>conftest.$ac_ext
14786 cat >>conftest.$ac_ext <<_ACEOF
14787 /* end confdefs.h. */
14788 $ac_includes_default
14789 #include <$ac_header>
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_header_compiler=yes
14804 else
14805 echo "$as_me: failed program was:" >&5
14806 sed 's/^/| /' conftest.$ac_ext >&5
14808 ac_header_compiler=no
14810 rm -f conftest.$ac_objext conftest.$ac_ext
14811 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14812 echo "${ECHO_T}$ac_header_compiler" >&6
14814 # Is the header present?
14815 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14817 cat >conftest.$ac_ext <<_ACEOF
14818 #line $LINENO "configure"
14819 /* confdefs.h. */
14820 _ACEOF
14821 cat confdefs.h >>conftest.$ac_ext
14822 cat >>conftest.$ac_ext <<_ACEOF
14823 /* end confdefs.h. */
14824 #include <$ac_header>
14825 _ACEOF
14826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14828 ac_status=$?
14829 grep -v '^ *+' conftest.er1 >conftest.err
14830 rm -f conftest.er1
14831 cat conftest.err >&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); } >/dev/null; then
14834 if test -s conftest.err; then
14835 ac_cpp_err=$ac_c_preproc_warn_flag
14836 else
14837 ac_cpp_err=
14839 else
14840 ac_cpp_err=yes
14842 if test -z "$ac_cpp_err"; then
14843 ac_header_preproc=yes
14844 else
14845 echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14848 ac_header_preproc=no
14850 rm -f conftest.err conftest.$ac_ext
14851 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14852 echo "${ECHO_T}$ac_header_preproc" >&6
14854 # So? What about this header?
14855 case $ac_header_compiler:$ac_header_preproc in
14856 yes:no )
14857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14858 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14862 cat <<\_ASBOX
14863 ## ------------------------------------ ##
14864 ## Report this to bug-autoconf@gnu.org. ##
14865 ## ------------------------------------ ##
14866 _ASBOX
14868 sed "s/^/$as_me: WARNING: /" >&2
14870 no:yes )
14871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14874 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14878 cat <<\_ASBOX
14879 ## ------------------------------------ ##
14880 ## Report this to bug-autoconf@gnu.org. ##
14881 ## ------------------------------------ ##
14882 _ASBOX
14884 sed "s/^/$as_me: WARNING: /" >&2
14886 esac
14887 echo "$as_me:$LINENO: checking for $ac_header" >&5
14888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14890 echo $ECHO_N "(cached) $ECHO_C" >&6
14891 else
14892 eval "$as_ac_Header=$ac_header_preproc"
14894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14899 cat >>confdefs.h <<_ACEOF
14900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14901 _ACEOF
14905 done
14907 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
14908 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
14909 if test "${ac_cv_have_decl_getenv+set}" = set; then
14910 echo $ECHO_N "(cached) $ECHO_C" >&6
14911 else
14912 cat >conftest.$ac_ext <<_ACEOF
14913 #line $LINENO "configure"
14914 /* confdefs.h. */
14915 _ACEOF
14916 cat confdefs.h >>conftest.$ac_ext
14917 cat >>conftest.$ac_ext <<_ACEOF
14918 /* end confdefs.h. */
14919 $ac_includes_default
14921 main ()
14923 #ifndef getenv
14924 char *p = (char *) getenv;
14925 #endif
14928 return 0;
14930 _ACEOF
14931 rm -f conftest.$ac_objext
14932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14933 (eval $ac_compile) 2>&5
14934 ac_status=$?
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } &&
14937 { ac_try='test -s conftest.$ac_objext'
14938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14939 (eval $ac_try) 2>&5
14940 ac_status=$?
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); }; }; then
14943 ac_cv_have_decl_getenv=yes
14944 else
14945 echo "$as_me: failed program was:" >&5
14946 sed 's/^/| /' conftest.$ac_ext >&5
14948 ac_cv_have_decl_getenv=no
14950 rm -f conftest.$ac_objext conftest.$ac_ext
14952 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
14953 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
14954 if test $ac_cv_have_decl_getenv = yes; then
14956 cat >>confdefs.h <<_ACEOF
14957 #define HAVE_DECL_GETENV 1
14958 _ACEOF
14961 else
14962 cat >>confdefs.h <<_ACEOF
14963 #define HAVE_DECL_GETENV 0
14964 _ACEOF
14971 echo "$as_me:$LINENO: checking for working memcmp" >&5
14972 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
14973 if test "${ac_cv_func_memcmp_working+set}" = set; then
14974 echo $ECHO_N "(cached) $ECHO_C" >&6
14975 else
14976 if test "$cross_compiling" = yes; then
14977 ac_cv_func_memcmp_working=no
14978 else
14979 cat >conftest.$ac_ext <<_ACEOF
14980 #line $LINENO "configure"
14981 /* confdefs.h. */
14982 _ACEOF
14983 cat confdefs.h >>conftest.$ac_ext
14984 cat >>conftest.$ac_ext <<_ACEOF
14985 /* end confdefs.h. */
14988 main ()
14991 /* Some versions of memcmp are not 8-bit clean. */
14992 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14993 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
14994 exit (1);
14996 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
14997 or more and with at least one buffer not starting on a 4-byte boundary.
14998 William Lewis provided this test program. */
15000 char foo[21];
15001 char bar[21];
15002 int i;
15003 for (i = 0; i < 4; i++)
15005 char *a = foo + i;
15006 char *b = bar + i;
15007 strcpy (a, "--------01111111");
15008 strcpy (b, "--------10000000");
15009 if (memcmp (a, b, 16) >= 0)
15010 exit (1);
15012 exit (0);
15016 return 0;
15018 _ACEOF
15019 rm -f conftest$ac_exeext
15020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15021 (eval $ac_link) 2>&5
15022 ac_status=$?
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026 (eval $ac_try) 2>&5
15027 ac_status=$?
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); }; }; then
15030 ac_cv_func_memcmp_working=yes
15031 else
15032 echo "$as_me: program exited with status $ac_status" >&5
15033 echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15036 ( exit $ac_status )
15037 ac_cv_func_memcmp_working=no
15039 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15042 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
15043 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
15044 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15046 if test $ac_cv_func_memcmp_working = no; then
15048 cat >>confdefs.h <<\_ACEOF
15049 #define memcmp rpl_memcmp
15050 _ACEOF
15055 echo "$as_me:$LINENO: checking whether backslash-a works in strings" >&5
15056 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
15057 if test "${ac_cv_c_backslash_a+set}" = set; then
15058 echo $ECHO_N "(cached) $ECHO_C" >&6
15059 else
15060 cat >conftest.$ac_ext <<_ACEOF
15061 #line $LINENO "configure"
15062 /* confdefs.h. */
15063 _ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15069 main ()
15072 #if '\a' == 'a'
15073 syntax error;
15074 #endif
15075 char buf['\a' == 'a' ? -1 : 1];
15076 buf[0] = '\a';
15077 return buf[0] != "\a"[0];
15080 return 0;
15082 _ACEOF
15083 rm -f conftest.$ac_objext
15084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15085 (eval $ac_compile) 2>&5
15086 ac_status=$?
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } &&
15089 { ac_try='test -s conftest.$ac_objext'
15090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091 (eval $ac_try) 2>&5
15092 ac_status=$?
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; }; then
15095 ac_cv_c_backslash_a=yes
15096 else
15097 echo "$as_me: failed program was:" >&5
15098 sed 's/^/| /' conftest.$ac_ext >&5
15100 ac_cv_c_backslash_a=no
15102 rm -f conftest.$ac_objext conftest.$ac_ext
15104 echo "$as_me:$LINENO: result: $ac_cv_c_backslash_a" >&5
15105 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
15106 if test $ac_cv_c_backslash_a = yes; then
15108 cat >>confdefs.h <<\_ACEOF
15109 #define HAVE_C_BACKSLASH_A 1
15110 _ACEOF
15117 for ac_func in isascii iswprint
15119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15120 echo "$as_me:$LINENO: checking for $ac_func" >&5
15121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15122 if eval "test \"\${$as_ac_var+set}\" = set"; then
15123 echo $ECHO_N "(cached) $ECHO_C" >&6
15124 else
15125 cat >conftest.$ac_ext <<_ACEOF
15126 #line $LINENO "configure"
15127 /* confdefs.h. */
15128 _ACEOF
15129 cat confdefs.h >>conftest.$ac_ext
15130 cat >>conftest.$ac_ext <<_ACEOF
15131 /* end confdefs.h. */
15132 /* System header to define __stub macros and hopefully few prototypes,
15133 which can conflict with char $ac_func (); below.
15134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15135 <limits.h> exists even on freestanding compilers. */
15136 #ifdef __STDC__
15137 # include <limits.h>
15138 #else
15139 # include <assert.h>
15140 #endif
15141 /* Override any gcc2 internal prototype to avoid an error. */
15142 #ifdef __cplusplus
15143 extern "C"
15145 #endif
15146 /* We use char because int might match the return type of a gcc2
15147 builtin and then its argument prototype would still apply. */
15148 char $ac_func ();
15149 /* The GNU C library defines this for functions which it implements
15150 to always fail with ENOSYS. Some functions are actually named
15151 something starting with __ and the normal name is an alias. */
15152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15153 choke me
15154 #else
15155 char (*f) () = $ac_func;
15156 #endif
15157 #ifdef __cplusplus
15159 #endif
15162 main ()
15164 return f != $ac_func;
15166 return 0;
15168 _ACEOF
15169 rm -f conftest.$ac_objext conftest$ac_exeext
15170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15171 (eval $ac_link) 2>&5
15172 ac_status=$?
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } &&
15175 { ac_try='test -s conftest$ac_exeext'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15178 ac_status=$?
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; }; then
15181 eval "$as_ac_var=yes"
15182 else
15183 echo "$as_me: failed program was:" >&5
15184 sed 's/^/| /' conftest.$ac_ext >&5
15186 eval "$as_ac_var=no"
15188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15192 if test `eval echo '${'$as_ac_var'}'` = yes; then
15193 cat >>confdefs.h <<_ACEOF
15194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15195 _ACEOF
15198 done
15208 for ac_header in limits.h stddef.h stdlib.h string.h wchar.h wctype.h
15210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15212 echo "$as_me:$LINENO: checking for $ac_header" >&5
15213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15215 echo $ECHO_N "(cached) $ECHO_C" >&6
15217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15219 else
15220 # Is the header compilable?
15221 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15223 cat >conftest.$ac_ext <<_ACEOF
15224 #line $LINENO "configure"
15225 /* confdefs.h. */
15226 _ACEOF
15227 cat confdefs.h >>conftest.$ac_ext
15228 cat >>conftest.$ac_ext <<_ACEOF
15229 /* end confdefs.h. */
15230 $ac_includes_default
15231 #include <$ac_header>
15232 _ACEOF
15233 rm -f conftest.$ac_objext
15234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15235 (eval $ac_compile) 2>&5
15236 ac_status=$?
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); } &&
15239 { ac_try='test -s conftest.$ac_objext'
15240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15241 (eval $ac_try) 2>&5
15242 ac_status=$?
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); }; }; then
15245 ac_header_compiler=yes
15246 else
15247 echo "$as_me: failed program was:" >&5
15248 sed 's/^/| /' conftest.$ac_ext >&5
15250 ac_header_compiler=no
15252 rm -f conftest.$ac_objext conftest.$ac_ext
15253 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15254 echo "${ECHO_T}$ac_header_compiler" >&6
15256 # Is the header present?
15257 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15259 cat >conftest.$ac_ext <<_ACEOF
15260 #line $LINENO "configure"
15261 /* confdefs.h. */
15262 _ACEOF
15263 cat confdefs.h >>conftest.$ac_ext
15264 cat >>conftest.$ac_ext <<_ACEOF
15265 /* end confdefs.h. */
15266 #include <$ac_header>
15267 _ACEOF
15268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15270 ac_status=$?
15271 grep -v '^ *+' conftest.er1 >conftest.err
15272 rm -f conftest.er1
15273 cat conftest.err >&5
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); } >/dev/null; then
15276 if test -s conftest.err; then
15277 ac_cpp_err=$ac_c_preproc_warn_flag
15278 else
15279 ac_cpp_err=
15281 else
15282 ac_cpp_err=yes
15284 if test -z "$ac_cpp_err"; then
15285 ac_header_preproc=yes
15286 else
15287 echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15290 ac_header_preproc=no
15292 rm -f conftest.err conftest.$ac_ext
15293 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15294 echo "${ECHO_T}$ac_header_preproc" >&6
15296 # So? What about this header?
15297 case $ac_header_compiler:$ac_header_preproc in
15298 yes:no )
15299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15304 cat <<\_ASBOX
15305 ## ------------------------------------ ##
15306 ## Report this to bug-autoconf@gnu.org. ##
15307 ## ------------------------------------ ##
15308 _ASBOX
15310 sed "s/^/$as_me: WARNING: /" >&2
15312 no:yes )
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15316 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15318 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15320 cat <<\_ASBOX
15321 ## ------------------------------------ ##
15322 ## Report this to bug-autoconf@gnu.org. ##
15323 ## ------------------------------------ ##
15324 _ASBOX
15326 sed "s/^/$as_me: WARNING: /" >&2
15328 esac
15329 echo "$as_me:$LINENO: checking for $ac_header" >&5
15330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
15333 else
15334 eval "$as_ac_Header=$ac_header_preproc"
15336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15341 cat >>confdefs.h <<_ACEOF
15342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15343 _ACEOF
15347 done
15360 for ac_header in string.h utmp.h utmpx.h sys/param.h
15362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15364 echo "$as_me:$LINENO: checking for $ac_header" >&5
15365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15371 else
15372 # Is the header compilable?
15373 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15375 cat >conftest.$ac_ext <<_ACEOF
15376 #line $LINENO "configure"
15377 /* confdefs.h. */
15378 _ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h. */
15382 $ac_includes_default
15383 #include <$ac_header>
15384 _ACEOF
15385 rm -f conftest.$ac_objext
15386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15387 (eval $ac_compile) 2>&5
15388 ac_status=$?
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); } &&
15391 { ac_try='test -s conftest.$ac_objext'
15392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393 (eval $ac_try) 2>&5
15394 ac_status=$?
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; }; then
15397 ac_header_compiler=yes
15398 else
15399 echo "$as_me: failed program was:" >&5
15400 sed 's/^/| /' conftest.$ac_ext >&5
15402 ac_header_compiler=no
15404 rm -f conftest.$ac_objext conftest.$ac_ext
15405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15406 echo "${ECHO_T}$ac_header_compiler" >&6
15408 # Is the header present?
15409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15411 cat >conftest.$ac_ext <<_ACEOF
15412 #line $LINENO "configure"
15413 /* confdefs.h. */
15414 _ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15418 #include <$ac_header>
15419 _ACEOF
15420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15422 ac_status=$?
15423 grep -v '^ *+' conftest.er1 >conftest.err
15424 rm -f conftest.er1
15425 cat conftest.err >&5
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); } >/dev/null; then
15428 if test -s conftest.err; then
15429 ac_cpp_err=$ac_c_preproc_warn_flag
15430 else
15431 ac_cpp_err=
15433 else
15434 ac_cpp_err=yes
15436 if test -z "$ac_cpp_err"; then
15437 ac_header_preproc=yes
15438 else
15439 echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.$ac_ext >&5
15442 ac_header_preproc=no
15444 rm -f conftest.err conftest.$ac_ext
15445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15446 echo "${ECHO_T}$ac_header_preproc" >&6
15448 # So? What about this header?
15449 case $ac_header_compiler:$ac_header_preproc in
15450 yes:no )
15451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15456 cat <<\_ASBOX
15457 ## ------------------------------------ ##
15458 ## Report this to bug-autoconf@gnu.org. ##
15459 ## ------------------------------------ ##
15460 _ASBOX
15462 sed "s/^/$as_me: WARNING: /" >&2
15464 no:yes )
15465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15472 cat <<\_ASBOX
15473 ## ------------------------------------ ##
15474 ## Report this to bug-autoconf@gnu.org. ##
15475 ## ------------------------------------ ##
15476 _ASBOX
15478 sed "s/^/$as_me: WARNING: /" >&2
15480 esac
15481 echo "$as_me:$LINENO: checking for $ac_header" >&5
15482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15484 echo $ECHO_N "(cached) $ECHO_C" >&6
15485 else
15486 eval "$as_ac_Header=$ac_header_preproc"
15488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15493 cat >>confdefs.h <<_ACEOF
15494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15495 _ACEOF
15499 done
15502 for ac_func in utmpname
15504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15505 echo "$as_me:$LINENO: checking for $ac_func" >&5
15506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15507 if eval "test \"\${$as_ac_var+set}\" = set"; then
15508 echo $ECHO_N "(cached) $ECHO_C" >&6
15509 else
15510 cat >conftest.$ac_ext <<_ACEOF
15511 #line $LINENO "configure"
15512 /* confdefs.h. */
15513 _ACEOF
15514 cat confdefs.h >>conftest.$ac_ext
15515 cat >>conftest.$ac_ext <<_ACEOF
15516 /* end confdefs.h. */
15517 /* System header to define __stub macros and hopefully few prototypes,
15518 which can conflict with char $ac_func (); below.
15519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15520 <limits.h> exists even on freestanding compilers. */
15521 #ifdef __STDC__
15522 # include <limits.h>
15523 #else
15524 # include <assert.h>
15525 #endif
15526 /* Override any gcc2 internal prototype to avoid an error. */
15527 #ifdef __cplusplus
15528 extern "C"
15530 #endif
15531 /* We use char because int might match the return type of a gcc2
15532 builtin and then its argument prototype would still apply. */
15533 char $ac_func ();
15534 /* The GNU C library defines this for functions which it implements
15535 to always fail with ENOSYS. Some functions are actually named
15536 something starting with __ and the normal name is an alias. */
15537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15538 choke me
15539 #else
15540 char (*f) () = $ac_func;
15541 #endif
15542 #ifdef __cplusplus
15544 #endif
15547 main ()
15549 return f != $ac_func;
15551 return 0;
15553 _ACEOF
15554 rm -f conftest.$ac_objext conftest$ac_exeext
15555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15556 (eval $ac_link) 2>&5
15557 ac_status=$?
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); } &&
15560 { ac_try='test -s conftest$ac_exeext'
15561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15562 (eval $ac_try) 2>&5
15563 ac_status=$?
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); }; }; then
15566 eval "$as_ac_var=yes"
15567 else
15568 echo "$as_me: failed program was:" >&5
15569 sed 's/^/| /' conftest.$ac_ext >&5
15571 eval "$as_ac_var=no"
15573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15576 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15577 if test `eval echo '${'$as_ac_var'}'` = yes; then
15578 cat >>confdefs.h <<_ACEOF
15579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15580 _ACEOF
15583 done
15586 for ac_func in utmpxname
15588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15589 echo "$as_me:$LINENO: checking for $ac_func" >&5
15590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15591 if eval "test \"\${$as_ac_var+set}\" = set"; then
15592 echo $ECHO_N "(cached) $ECHO_C" >&6
15593 else
15594 cat >conftest.$ac_ext <<_ACEOF
15595 #line $LINENO "configure"
15596 /* confdefs.h. */
15597 _ACEOF
15598 cat confdefs.h >>conftest.$ac_ext
15599 cat >>conftest.$ac_ext <<_ACEOF
15600 /* end confdefs.h. */
15601 /* System header to define __stub macros and hopefully few prototypes,
15602 which can conflict with char $ac_func (); below.
15603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15604 <limits.h> exists even on freestanding compilers. */
15605 #ifdef __STDC__
15606 # include <limits.h>
15607 #else
15608 # include <assert.h>
15609 #endif
15610 /* Override any gcc2 internal prototype to avoid an error. */
15611 #ifdef __cplusplus
15612 extern "C"
15614 #endif
15615 /* We use char because int might match the return type of a gcc2
15616 builtin and then its argument prototype would still apply. */
15617 char $ac_func ();
15618 /* The GNU C library defines this for functions which it implements
15619 to always fail with ENOSYS. Some functions are actually named
15620 something starting with __ and the normal name is an alias. */
15621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15622 choke me
15623 #else
15624 char (*f) () = $ac_func;
15625 #endif
15626 #ifdef __cplusplus
15628 #endif
15631 main ()
15633 return f != $ac_func;
15635 return 0;
15637 _ACEOF
15638 rm -f conftest.$ac_objext conftest$ac_exeext
15639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15640 (eval $ac_link) 2>&5
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); } &&
15644 { ac_try='test -s conftest$ac_exeext'
15645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15646 (eval $ac_try) 2>&5
15647 ac_status=$?
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; }; then
15650 eval "$as_ac_var=yes"
15651 else
15652 echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15655 eval "$as_ac_var=no"
15657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15660 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15661 if test `eval echo '${'$as_ac_var'}'` = yes; then
15662 cat >>confdefs.h <<_ACEOF
15663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15664 _ACEOF
15667 done
15671 if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
15672 utmp_includes="\
15673 $ac_includes_default
15674 #ifdef HAVE_UTMPX_H
15675 # include <utmpx.h>
15676 #endif
15677 #ifdef HAVE_UTMP_H
15678 # include <utmp.h>
15679 #endif
15681 echo "$as_me:$LINENO: checking for struct utmpx.ut_user" >&5
15682 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6
15683 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
15684 echo $ECHO_N "(cached) $ECHO_C" >&6
15685 else
15686 cat >conftest.$ac_ext <<_ACEOF
15687 #line $LINENO "configure"
15688 /* confdefs.h. */
15689 _ACEOF
15690 cat confdefs.h >>conftest.$ac_ext
15691 cat >>conftest.$ac_ext <<_ACEOF
15692 /* end confdefs.h. */
15693 $utmp_includes
15696 main ()
15698 static struct utmpx ac_aggr;
15699 if (ac_aggr.ut_user)
15700 return 0;
15702 return 0;
15704 _ACEOF
15705 rm -f conftest.$ac_objext
15706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15707 (eval $ac_compile) 2>&5
15708 ac_status=$?
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); } &&
15711 { ac_try='test -s conftest.$ac_objext'
15712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15713 (eval $ac_try) 2>&5
15714 ac_status=$?
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); }; }; then
15717 ac_cv_member_struct_utmpx_ut_user=yes
15718 else
15719 echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15722 cat >conftest.$ac_ext <<_ACEOF
15723 #line $LINENO "configure"
15724 /* confdefs.h. */
15725 _ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h. */
15729 $utmp_includes
15732 main ()
15734 static struct utmpx ac_aggr;
15735 if (sizeof ac_aggr.ut_user)
15736 return 0;
15738 return 0;
15740 _ACEOF
15741 rm -f conftest.$ac_objext
15742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15743 (eval $ac_compile) 2>&5
15744 ac_status=$?
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); } &&
15747 { ac_try='test -s conftest.$ac_objext'
15748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749 (eval $ac_try) 2>&5
15750 ac_status=$?
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; }; then
15753 ac_cv_member_struct_utmpx_ut_user=yes
15754 else
15755 echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15758 ac_cv_member_struct_utmpx_ut_user=no
15760 rm -f conftest.$ac_objext conftest.$ac_ext
15762 rm -f conftest.$ac_objext conftest.$ac_ext
15764 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_user" >&5
15765 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6
15766 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
15768 cat >>confdefs.h <<_ACEOF
15769 #define HAVE_STRUCT_UTMPX_UT_USER 1
15770 _ACEOF
15775 echo "$as_me:$LINENO: checking for struct utmp.ut_user" >&5
15776 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6
15777 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
15778 echo $ECHO_N "(cached) $ECHO_C" >&6
15779 else
15780 cat >conftest.$ac_ext <<_ACEOF
15781 #line $LINENO "configure"
15782 /* confdefs.h. */
15783 _ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h. */
15787 $utmp_includes
15790 main ()
15792 static struct utmp ac_aggr;
15793 if (ac_aggr.ut_user)
15794 return 0;
15796 return 0;
15798 _ACEOF
15799 rm -f conftest.$ac_objext
15800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15801 (eval $ac_compile) 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } &&
15805 { ac_try='test -s conftest.$ac_objext'
15806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807 (eval $ac_try) 2>&5
15808 ac_status=$?
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; }; then
15811 ac_cv_member_struct_utmp_ut_user=yes
15812 else
15813 echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15816 cat >conftest.$ac_ext <<_ACEOF
15817 #line $LINENO "configure"
15818 /* confdefs.h. */
15819 _ACEOF
15820 cat confdefs.h >>conftest.$ac_ext
15821 cat >>conftest.$ac_ext <<_ACEOF
15822 /* end confdefs.h. */
15823 $utmp_includes
15826 main ()
15828 static struct utmp ac_aggr;
15829 if (sizeof ac_aggr.ut_user)
15830 return 0;
15832 return 0;
15834 _ACEOF
15835 rm -f conftest.$ac_objext
15836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15837 (eval $ac_compile) 2>&5
15838 ac_status=$?
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } &&
15841 { ac_try='test -s conftest.$ac_objext'
15842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843 (eval $ac_try) 2>&5
15844 ac_status=$?
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); }; }; then
15847 ac_cv_member_struct_utmp_ut_user=yes
15848 else
15849 echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15852 ac_cv_member_struct_utmp_ut_user=no
15854 rm -f conftest.$ac_objext conftest.$ac_ext
15856 rm -f conftest.$ac_objext conftest.$ac_ext
15858 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_user" >&5
15859 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6
15860 if test $ac_cv_member_struct_utmp_ut_user = yes; then
15862 cat >>confdefs.h <<_ACEOF
15863 #define HAVE_STRUCT_UTMP_UT_USER 1
15864 _ACEOF
15869 echo "$as_me:$LINENO: checking for struct utmpx.ut_name" >&5
15870 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6
15871 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
15872 echo $ECHO_N "(cached) $ECHO_C" >&6
15873 else
15874 cat >conftest.$ac_ext <<_ACEOF
15875 #line $LINENO "configure"
15876 /* confdefs.h. */
15877 _ACEOF
15878 cat confdefs.h >>conftest.$ac_ext
15879 cat >>conftest.$ac_ext <<_ACEOF
15880 /* end confdefs.h. */
15881 $utmp_includes
15884 main ()
15886 static struct utmpx ac_aggr;
15887 if (ac_aggr.ut_name)
15888 return 0;
15890 return 0;
15892 _ACEOF
15893 rm -f conftest.$ac_objext
15894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15895 (eval $ac_compile) 2>&5
15896 ac_status=$?
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } &&
15899 { ac_try='test -s conftest.$ac_objext'
15900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901 (eval $ac_try) 2>&5
15902 ac_status=$?
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); }; }; then
15905 ac_cv_member_struct_utmpx_ut_name=yes
15906 else
15907 echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15910 cat >conftest.$ac_ext <<_ACEOF
15911 #line $LINENO "configure"
15912 /* confdefs.h. */
15913 _ACEOF
15914 cat confdefs.h >>conftest.$ac_ext
15915 cat >>conftest.$ac_ext <<_ACEOF
15916 /* end confdefs.h. */
15917 $utmp_includes
15920 main ()
15922 static struct utmpx ac_aggr;
15923 if (sizeof ac_aggr.ut_name)
15924 return 0;
15926 return 0;
15928 _ACEOF
15929 rm -f conftest.$ac_objext
15930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15931 (eval $ac_compile) 2>&5
15932 ac_status=$?
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); } &&
15935 { ac_try='test -s conftest.$ac_objext'
15936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15937 (eval $ac_try) 2>&5
15938 ac_status=$?
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); }; }; then
15941 ac_cv_member_struct_utmpx_ut_name=yes
15942 else
15943 echo "$as_me: failed program was:" >&5
15944 sed 's/^/| /' conftest.$ac_ext >&5
15946 ac_cv_member_struct_utmpx_ut_name=no
15948 rm -f conftest.$ac_objext conftest.$ac_ext
15950 rm -f conftest.$ac_objext conftest.$ac_ext
15952 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_name" >&5
15953 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6
15954 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
15956 cat >>confdefs.h <<_ACEOF
15957 #define HAVE_STRUCT_UTMPX_UT_NAME 1
15958 _ACEOF
15963 echo "$as_me:$LINENO: checking for struct utmp.ut_name" >&5
15964 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6
15965 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
15966 echo $ECHO_N "(cached) $ECHO_C" >&6
15967 else
15968 cat >conftest.$ac_ext <<_ACEOF
15969 #line $LINENO "configure"
15970 /* confdefs.h. */
15971 _ACEOF
15972 cat confdefs.h >>conftest.$ac_ext
15973 cat >>conftest.$ac_ext <<_ACEOF
15974 /* end confdefs.h. */
15975 $utmp_includes
15978 main ()
15980 static struct utmp ac_aggr;
15981 if (ac_aggr.ut_name)
15982 return 0;
15984 return 0;
15986 _ACEOF
15987 rm -f conftest.$ac_objext
15988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15989 (eval $ac_compile) 2>&5
15990 ac_status=$?
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } &&
15993 { ac_try='test -s conftest.$ac_objext'
15994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15995 (eval $ac_try) 2>&5
15996 ac_status=$?
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); }; }; then
15999 ac_cv_member_struct_utmp_ut_name=yes
16000 else
16001 echo "$as_me: failed program was:" >&5
16002 sed 's/^/| /' conftest.$ac_ext >&5
16004 cat >conftest.$ac_ext <<_ACEOF
16005 #line $LINENO "configure"
16006 /* confdefs.h. */
16007 _ACEOF
16008 cat confdefs.h >>conftest.$ac_ext
16009 cat >>conftest.$ac_ext <<_ACEOF
16010 /* end confdefs.h. */
16011 $utmp_includes
16014 main ()
16016 static struct utmp ac_aggr;
16017 if (sizeof ac_aggr.ut_name)
16018 return 0;
16020 return 0;
16022 _ACEOF
16023 rm -f conftest.$ac_objext
16024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16025 (eval $ac_compile) 2>&5
16026 ac_status=$?
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); } &&
16029 { ac_try='test -s conftest.$ac_objext'
16030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16031 (eval $ac_try) 2>&5
16032 ac_status=$?
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; }; then
16035 ac_cv_member_struct_utmp_ut_name=yes
16036 else
16037 echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16040 ac_cv_member_struct_utmp_ut_name=no
16042 rm -f conftest.$ac_objext conftest.$ac_ext
16044 rm -f conftest.$ac_objext conftest.$ac_ext
16046 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_name" >&5
16047 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6
16048 if test $ac_cv_member_struct_utmp_ut_name = yes; then
16050 cat >>confdefs.h <<_ACEOF
16051 #define HAVE_STRUCT_UTMP_UT_NAME 1
16052 _ACEOF
16057 echo "$as_me:$LINENO: checking for struct utmpx.ut_type" >&5
16058 echo $ECHO_N "checking for struct utmpx.ut_type... $ECHO_C" >&6
16059 if test "${ac_cv_member_struct_utmpx_ut_type+set}" = set; then
16060 echo $ECHO_N "(cached) $ECHO_C" >&6
16061 else
16062 cat >conftest.$ac_ext <<_ACEOF
16063 #line $LINENO "configure"
16064 /* confdefs.h. */
16065 _ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h. */
16069 $utmp_includes
16072 main ()
16074 static struct utmpx ac_aggr;
16075 if (ac_aggr.ut_type)
16076 return 0;
16078 return 0;
16080 _ACEOF
16081 rm -f conftest.$ac_objext
16082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16083 (eval $ac_compile) 2>&5
16084 ac_status=$?
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); } &&
16087 { ac_try='test -s conftest.$ac_objext'
16088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16089 (eval $ac_try) 2>&5
16090 ac_status=$?
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); }; }; then
16093 ac_cv_member_struct_utmpx_ut_type=yes
16094 else
16095 echo "$as_me: failed program was:" >&5
16096 sed 's/^/| /' conftest.$ac_ext >&5
16098 cat >conftest.$ac_ext <<_ACEOF
16099 #line $LINENO "configure"
16100 /* confdefs.h. */
16101 _ACEOF
16102 cat confdefs.h >>conftest.$ac_ext
16103 cat >>conftest.$ac_ext <<_ACEOF
16104 /* end confdefs.h. */
16105 $utmp_includes
16108 main ()
16110 static struct utmpx ac_aggr;
16111 if (sizeof ac_aggr.ut_type)
16112 return 0;
16114 return 0;
16116 _ACEOF
16117 rm -f conftest.$ac_objext
16118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16119 (eval $ac_compile) 2>&5
16120 ac_status=$?
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); } &&
16123 { ac_try='test -s conftest.$ac_objext'
16124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16125 (eval $ac_try) 2>&5
16126 ac_status=$?
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); }; }; then
16129 ac_cv_member_struct_utmpx_ut_type=yes
16130 else
16131 echo "$as_me: failed program was:" >&5
16132 sed 's/^/| /' conftest.$ac_ext >&5
16134 ac_cv_member_struct_utmpx_ut_type=no
16136 rm -f conftest.$ac_objext conftest.$ac_ext
16138 rm -f conftest.$ac_objext conftest.$ac_ext
16140 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_type" >&5
16141 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_type" >&6
16142 if test $ac_cv_member_struct_utmpx_ut_type = yes; then
16144 cat >>confdefs.h <<_ACEOF
16145 #define HAVE_STRUCT_UTMPX_UT_TYPE 1
16146 _ACEOF
16151 echo "$as_me:$LINENO: checking for struct utmp.ut_type" >&5
16152 echo $ECHO_N "checking for struct utmp.ut_type... $ECHO_C" >&6
16153 if test "${ac_cv_member_struct_utmp_ut_type+set}" = set; then
16154 echo $ECHO_N "(cached) $ECHO_C" >&6
16155 else
16156 cat >conftest.$ac_ext <<_ACEOF
16157 #line $LINENO "configure"
16158 /* confdefs.h. */
16159 _ACEOF
16160 cat confdefs.h >>conftest.$ac_ext
16161 cat >>conftest.$ac_ext <<_ACEOF
16162 /* end confdefs.h. */
16163 $utmp_includes
16166 main ()
16168 static struct utmp ac_aggr;
16169 if (ac_aggr.ut_type)
16170 return 0;
16172 return 0;
16174 _ACEOF
16175 rm -f conftest.$ac_objext
16176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16177 (eval $ac_compile) 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } &&
16181 { ac_try='test -s conftest.$ac_objext'
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16184 ac_status=$?
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; }; then
16187 ac_cv_member_struct_utmp_ut_type=yes
16188 else
16189 echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16192 cat >conftest.$ac_ext <<_ACEOF
16193 #line $LINENO "configure"
16194 /* confdefs.h. */
16195 _ACEOF
16196 cat confdefs.h >>conftest.$ac_ext
16197 cat >>conftest.$ac_ext <<_ACEOF
16198 /* end confdefs.h. */
16199 $utmp_includes
16202 main ()
16204 static struct utmp ac_aggr;
16205 if (sizeof ac_aggr.ut_type)
16206 return 0;
16208 return 0;
16210 _ACEOF
16211 rm -f conftest.$ac_objext
16212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16213 (eval $ac_compile) 2>&5
16214 ac_status=$?
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); } &&
16217 { ac_try='test -s conftest.$ac_objext'
16218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16219 (eval $ac_try) 2>&5
16220 ac_status=$?
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); }; }; then
16223 ac_cv_member_struct_utmp_ut_type=yes
16224 else
16225 echo "$as_me: failed program was:" >&5
16226 sed 's/^/| /' conftest.$ac_ext >&5
16228 ac_cv_member_struct_utmp_ut_type=no
16230 rm -f conftest.$ac_objext conftest.$ac_ext
16232 rm -f conftest.$ac_objext conftest.$ac_ext
16234 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_type" >&5
16235 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_type" >&6
16236 if test $ac_cv_member_struct_utmp_ut_type = yes; then
16238 cat >>confdefs.h <<_ACEOF
16239 #define HAVE_STRUCT_UTMP_UT_TYPE 1
16240 _ACEOF
16245 echo "$as_me:$LINENO: checking for struct utmpx.ut_pid" >&5
16246 echo $ECHO_N "checking for struct utmpx.ut_pid... $ECHO_C" >&6
16247 if test "${ac_cv_member_struct_utmpx_ut_pid+set}" = set; then
16248 echo $ECHO_N "(cached) $ECHO_C" >&6
16249 else
16250 cat >conftest.$ac_ext <<_ACEOF
16251 #line $LINENO "configure"
16252 /* confdefs.h. */
16253 _ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h. */
16257 $utmp_includes
16260 main ()
16262 static struct utmpx ac_aggr;
16263 if (ac_aggr.ut_pid)
16264 return 0;
16266 return 0;
16268 _ACEOF
16269 rm -f conftest.$ac_objext
16270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16271 (eval $ac_compile) 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } &&
16275 { ac_try='test -s conftest.$ac_objext'
16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16278 ac_status=$?
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; }; then
16281 ac_cv_member_struct_utmpx_ut_pid=yes
16282 else
16283 echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16286 cat >conftest.$ac_ext <<_ACEOF
16287 #line $LINENO "configure"
16288 /* confdefs.h. */
16289 _ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16293 $utmp_includes
16296 main ()
16298 static struct utmpx ac_aggr;
16299 if (sizeof ac_aggr.ut_pid)
16300 return 0;
16302 return 0;
16304 _ACEOF
16305 rm -f conftest.$ac_objext
16306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16307 (eval $ac_compile) 2>&5
16308 ac_status=$?
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); } &&
16311 { ac_try='test -s conftest.$ac_objext'
16312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16313 (eval $ac_try) 2>&5
16314 ac_status=$?
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; }; then
16317 ac_cv_member_struct_utmpx_ut_pid=yes
16318 else
16319 echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.$ac_ext >&5
16322 ac_cv_member_struct_utmpx_ut_pid=no
16324 rm -f conftest.$ac_objext conftest.$ac_ext
16326 rm -f conftest.$ac_objext conftest.$ac_ext
16328 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_pid" >&5
16329 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_pid" >&6
16330 if test $ac_cv_member_struct_utmpx_ut_pid = yes; then
16332 cat >>confdefs.h <<_ACEOF
16333 #define HAVE_STRUCT_UTMPX_UT_PID 1
16334 _ACEOF
16339 echo "$as_me:$LINENO: checking for struct utmp.ut_pid" >&5
16340 echo $ECHO_N "checking for struct utmp.ut_pid... $ECHO_C" >&6
16341 if test "${ac_cv_member_struct_utmp_ut_pid+set}" = set; then
16342 echo $ECHO_N "(cached) $ECHO_C" >&6
16343 else
16344 cat >conftest.$ac_ext <<_ACEOF
16345 #line $LINENO "configure"
16346 /* confdefs.h. */
16347 _ACEOF
16348 cat confdefs.h >>conftest.$ac_ext
16349 cat >>conftest.$ac_ext <<_ACEOF
16350 /* end confdefs.h. */
16351 $utmp_includes
16354 main ()
16356 static struct utmp ac_aggr;
16357 if (ac_aggr.ut_pid)
16358 return 0;
16360 return 0;
16362 _ACEOF
16363 rm -f conftest.$ac_objext
16364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16365 (eval $ac_compile) 2>&5
16366 ac_status=$?
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } &&
16369 { ac_try='test -s conftest.$ac_objext'
16370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16371 (eval $ac_try) 2>&5
16372 ac_status=$?
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); }; }; then
16375 ac_cv_member_struct_utmp_ut_pid=yes
16376 else
16377 echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.$ac_ext >&5
16380 cat >conftest.$ac_ext <<_ACEOF
16381 #line $LINENO "configure"
16382 /* confdefs.h. */
16383 _ACEOF
16384 cat confdefs.h >>conftest.$ac_ext
16385 cat >>conftest.$ac_ext <<_ACEOF
16386 /* end confdefs.h. */
16387 $utmp_includes
16390 main ()
16392 static struct utmp ac_aggr;
16393 if (sizeof ac_aggr.ut_pid)
16394 return 0;
16396 return 0;
16398 _ACEOF
16399 rm -f conftest.$ac_objext
16400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16401 (eval $ac_compile) 2>&5
16402 ac_status=$?
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } &&
16405 { ac_try='test -s conftest.$ac_objext'
16406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407 (eval $ac_try) 2>&5
16408 ac_status=$?
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; }; then
16411 ac_cv_member_struct_utmp_ut_pid=yes
16412 else
16413 echo "$as_me: failed program was:" >&5
16414 sed 's/^/| /' conftest.$ac_ext >&5
16416 ac_cv_member_struct_utmp_ut_pid=no
16418 rm -f conftest.$ac_objext conftest.$ac_ext
16420 rm -f conftest.$ac_objext conftest.$ac_ext
16422 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_pid" >&5
16423 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_pid" >&6
16424 if test $ac_cv_member_struct_utmp_ut_pid = yes; then
16426 cat >>confdefs.h <<_ACEOF
16427 #define HAVE_STRUCT_UTMP_UT_PID 1
16428 _ACEOF
16433 echo "$as_me:$LINENO: checking for struct utmpx.ut_id" >&5
16434 echo $ECHO_N "checking for struct utmpx.ut_id... $ECHO_C" >&6
16435 if test "${ac_cv_member_struct_utmpx_ut_id+set}" = set; then
16436 echo $ECHO_N "(cached) $ECHO_C" >&6
16437 else
16438 cat >conftest.$ac_ext <<_ACEOF
16439 #line $LINENO "configure"
16440 /* confdefs.h. */
16441 _ACEOF
16442 cat confdefs.h >>conftest.$ac_ext
16443 cat >>conftest.$ac_ext <<_ACEOF
16444 /* end confdefs.h. */
16445 $utmp_includes
16448 main ()
16450 static struct utmpx ac_aggr;
16451 if (ac_aggr.ut_id)
16452 return 0;
16454 return 0;
16456 _ACEOF
16457 rm -f conftest.$ac_objext
16458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16459 (eval $ac_compile) 2>&5
16460 ac_status=$?
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); } &&
16463 { ac_try='test -s conftest.$ac_objext'
16464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465 (eval $ac_try) 2>&5
16466 ac_status=$?
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; }; then
16469 ac_cv_member_struct_utmpx_ut_id=yes
16470 else
16471 echo "$as_me: failed program was:" >&5
16472 sed 's/^/| /' conftest.$ac_ext >&5
16474 cat >conftest.$ac_ext <<_ACEOF
16475 #line $LINENO "configure"
16476 /* confdefs.h. */
16477 _ACEOF
16478 cat confdefs.h >>conftest.$ac_ext
16479 cat >>conftest.$ac_ext <<_ACEOF
16480 /* end confdefs.h. */
16481 $utmp_includes
16484 main ()
16486 static struct utmpx ac_aggr;
16487 if (sizeof ac_aggr.ut_id)
16488 return 0;
16490 return 0;
16492 _ACEOF
16493 rm -f conftest.$ac_objext
16494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16495 (eval $ac_compile) 2>&5
16496 ac_status=$?
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } &&
16499 { ac_try='test -s conftest.$ac_objext'
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16502 ac_status=$?
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; }; then
16505 ac_cv_member_struct_utmpx_ut_id=yes
16506 else
16507 echo "$as_me: failed program was:" >&5
16508 sed 's/^/| /' conftest.$ac_ext >&5
16510 ac_cv_member_struct_utmpx_ut_id=no
16512 rm -f conftest.$ac_objext conftest.$ac_ext
16514 rm -f conftest.$ac_objext conftest.$ac_ext
16516 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_id" >&5
16517 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_id" >&6
16518 if test $ac_cv_member_struct_utmpx_ut_id = yes; then
16520 cat >>confdefs.h <<_ACEOF
16521 #define HAVE_STRUCT_UTMPX_UT_ID 1
16522 _ACEOF
16527 echo "$as_me:$LINENO: checking for struct utmp.ut_id" >&5
16528 echo $ECHO_N "checking for struct utmp.ut_id... $ECHO_C" >&6
16529 if test "${ac_cv_member_struct_utmp_ut_id+set}" = set; then
16530 echo $ECHO_N "(cached) $ECHO_C" >&6
16531 else
16532 cat >conftest.$ac_ext <<_ACEOF
16533 #line $LINENO "configure"
16534 /* confdefs.h. */
16535 _ACEOF
16536 cat confdefs.h >>conftest.$ac_ext
16537 cat >>conftest.$ac_ext <<_ACEOF
16538 /* end confdefs.h. */
16539 $utmp_includes
16542 main ()
16544 static struct utmp ac_aggr;
16545 if (ac_aggr.ut_id)
16546 return 0;
16548 return 0;
16550 _ACEOF
16551 rm -f conftest.$ac_objext
16552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16553 (eval $ac_compile) 2>&5
16554 ac_status=$?
16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); } &&
16557 { ac_try='test -s conftest.$ac_objext'
16558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16559 (eval $ac_try) 2>&5
16560 ac_status=$?
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); }; }; then
16563 ac_cv_member_struct_utmp_ut_id=yes
16564 else
16565 echo "$as_me: failed program was:" >&5
16566 sed 's/^/| /' conftest.$ac_ext >&5
16568 cat >conftest.$ac_ext <<_ACEOF
16569 #line $LINENO "configure"
16570 /* confdefs.h. */
16571 _ACEOF
16572 cat confdefs.h >>conftest.$ac_ext
16573 cat >>conftest.$ac_ext <<_ACEOF
16574 /* end confdefs.h. */
16575 $utmp_includes
16578 main ()
16580 static struct utmp ac_aggr;
16581 if (sizeof ac_aggr.ut_id)
16582 return 0;
16584 return 0;
16586 _ACEOF
16587 rm -f conftest.$ac_objext
16588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16589 (eval $ac_compile) 2>&5
16590 ac_status=$?
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); } &&
16593 { ac_try='test -s conftest.$ac_objext'
16594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16595 (eval $ac_try) 2>&5
16596 ac_status=$?
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); }; }; then
16599 ac_cv_member_struct_utmp_ut_id=yes
16600 else
16601 echo "$as_me: failed program was:" >&5
16602 sed 's/^/| /' conftest.$ac_ext >&5
16604 ac_cv_member_struct_utmp_ut_id=no
16606 rm -f conftest.$ac_objext conftest.$ac_ext
16608 rm -f conftest.$ac_objext conftest.$ac_ext
16610 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_id" >&5
16611 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_id" >&6
16612 if test $ac_cv_member_struct_utmp_ut_id = yes; then
16614 cat >>confdefs.h <<_ACEOF
16615 #define HAVE_STRUCT_UTMP_UT_ID 1
16616 _ACEOF
16622 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_exit" >&5
16623 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_exit... $ECHO_C" >&6
16624 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_exit+set}" = set; then
16625 echo $ECHO_N "(cached) $ECHO_C" >&6
16626 else
16627 cat >conftest.$ac_ext <<_ACEOF
16628 #line $LINENO "configure"
16629 /* confdefs.h. */
16630 _ACEOF
16631 cat confdefs.h >>conftest.$ac_ext
16632 cat >>conftest.$ac_ext <<_ACEOF
16633 /* end confdefs.h. */
16634 $utmp_includes
16637 main ()
16639 static struct utmpx ac_aggr;
16640 if (ac_aggr.ut_exit.ut_exit)
16641 return 0;
16643 return 0;
16645 _ACEOF
16646 rm -f conftest.$ac_objext
16647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16648 (eval $ac_compile) 2>&5
16649 ac_status=$?
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); } &&
16652 { ac_try='test -s conftest.$ac_objext'
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; }; then
16658 ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
16659 else
16660 echo "$as_me: failed program was:" >&5
16661 sed 's/^/| /' conftest.$ac_ext >&5
16663 cat >conftest.$ac_ext <<_ACEOF
16664 #line $LINENO "configure"
16665 /* confdefs.h. */
16666 _ACEOF
16667 cat confdefs.h >>conftest.$ac_ext
16668 cat >>conftest.$ac_ext <<_ACEOF
16669 /* end confdefs.h. */
16670 $utmp_includes
16673 main ()
16675 static struct utmpx ac_aggr;
16676 if (sizeof ac_aggr.ut_exit.ut_exit)
16677 return 0;
16679 return 0;
16681 _ACEOF
16682 rm -f conftest.$ac_objext
16683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16684 (eval $ac_compile) 2>&5
16685 ac_status=$?
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } &&
16688 { ac_try='test -s conftest.$ac_objext'
16689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16690 (eval $ac_try) 2>&5
16691 ac_status=$?
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; }; then
16694 ac_cv_member_struct_utmpx_ut_exit_ut_exit=yes
16695 else
16696 echo "$as_me: failed program was:" >&5
16697 sed 's/^/| /' conftest.$ac_ext >&5
16699 ac_cv_member_struct_utmpx_ut_exit_ut_exit=no
16701 rm -f conftest.$ac_objext conftest.$ac_ext
16703 rm -f conftest.$ac_objext conftest.$ac_ext
16705 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&5
16706 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_exit" >&6
16707 if test $ac_cv_member_struct_utmpx_ut_exit_ut_exit = yes; then
16709 cat >>confdefs.h <<_ACEOF
16710 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_EXIT 1
16711 _ACEOF
16716 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_exit" >&5
16717 echo $ECHO_N "checking for struct utmp.ut_exit.ut_exit... $ECHO_C" >&6
16718 if test "${ac_cv_member_struct_utmp_ut_exit_ut_exit+set}" = set; then
16719 echo $ECHO_N "(cached) $ECHO_C" >&6
16720 else
16721 cat >conftest.$ac_ext <<_ACEOF
16722 #line $LINENO "configure"
16723 /* confdefs.h. */
16724 _ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728 $utmp_includes
16731 main ()
16733 static struct utmp ac_aggr;
16734 if (ac_aggr.ut_exit.ut_exit)
16735 return 0;
16737 return 0;
16739 _ACEOF
16740 rm -f conftest.$ac_objext
16741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16742 (eval $ac_compile) 2>&5
16743 ac_status=$?
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); } &&
16746 { ac_try='test -s conftest.$ac_objext'
16747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16748 (eval $ac_try) 2>&5
16749 ac_status=$?
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); }; }; then
16752 ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
16753 else
16754 echo "$as_me: failed program was:" >&5
16755 sed 's/^/| /' conftest.$ac_ext >&5
16757 cat >conftest.$ac_ext <<_ACEOF
16758 #line $LINENO "configure"
16759 /* confdefs.h. */
16760 _ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16764 $utmp_includes
16767 main ()
16769 static struct utmp ac_aggr;
16770 if (sizeof ac_aggr.ut_exit.ut_exit)
16771 return 0;
16773 return 0;
16775 _ACEOF
16776 rm -f conftest.$ac_objext
16777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16778 (eval $ac_compile) 2>&5
16779 ac_status=$?
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); } &&
16782 { ac_try='test -s conftest.$ac_objext'
16783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16784 (eval $ac_try) 2>&5
16785 ac_status=$?
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); }; }; then
16788 ac_cv_member_struct_utmp_ut_exit_ut_exit=yes
16789 else
16790 echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.$ac_ext >&5
16793 ac_cv_member_struct_utmp_ut_exit_ut_exit=no
16795 rm -f conftest.$ac_objext conftest.$ac_ext
16797 rm -f conftest.$ac_objext conftest.$ac_ext
16799 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_exit" >&5
16800 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_exit" >&6
16801 if test $ac_cv_member_struct_utmp_ut_exit_ut_exit = yes; then
16803 cat >>confdefs.h <<_ACEOF
16804 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_EXIT 1
16805 _ACEOF
16810 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_exit" >&5
16811 echo $ECHO_N "checking for struct utmpx.ut_exit.e_exit... $ECHO_C" >&6
16812 if test "${ac_cv_member_struct_utmpx_ut_exit_e_exit+set}" = set; then
16813 echo $ECHO_N "(cached) $ECHO_C" >&6
16814 else
16815 cat >conftest.$ac_ext <<_ACEOF
16816 #line $LINENO "configure"
16817 /* confdefs.h. */
16818 _ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h. */
16822 $utmp_includes
16825 main ()
16827 static struct utmpx ac_aggr;
16828 if (ac_aggr.ut_exit.e_exit)
16829 return 0;
16831 return 0;
16833 _ACEOF
16834 rm -f conftest.$ac_objext
16835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16836 (eval $ac_compile) 2>&5
16837 ac_status=$?
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } &&
16840 { ac_try='test -s conftest.$ac_objext'
16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842 (eval $ac_try) 2>&5
16843 ac_status=$?
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; }; then
16846 ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
16847 else
16848 echo "$as_me: failed program was:" >&5
16849 sed 's/^/| /' conftest.$ac_ext >&5
16851 cat >conftest.$ac_ext <<_ACEOF
16852 #line $LINENO "configure"
16853 /* confdefs.h. */
16854 _ACEOF
16855 cat confdefs.h >>conftest.$ac_ext
16856 cat >>conftest.$ac_ext <<_ACEOF
16857 /* end confdefs.h. */
16858 $utmp_includes
16861 main ()
16863 static struct utmpx ac_aggr;
16864 if (sizeof ac_aggr.ut_exit.e_exit)
16865 return 0;
16867 return 0;
16869 _ACEOF
16870 rm -f conftest.$ac_objext
16871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16872 (eval $ac_compile) 2>&5
16873 ac_status=$?
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } &&
16876 { ac_try='test -s conftest.$ac_objext'
16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878 (eval $ac_try) 2>&5
16879 ac_status=$?
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; }; then
16882 ac_cv_member_struct_utmpx_ut_exit_e_exit=yes
16883 else
16884 echo "$as_me: failed program was:" >&5
16885 sed 's/^/| /' conftest.$ac_ext >&5
16887 ac_cv_member_struct_utmpx_ut_exit_e_exit=no
16889 rm -f conftest.$ac_objext conftest.$ac_ext
16891 rm -f conftest.$ac_objext conftest.$ac_ext
16893 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_exit" >&5
16894 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_exit" >&6
16895 if test $ac_cv_member_struct_utmpx_ut_exit_e_exit = yes; then
16897 cat >>confdefs.h <<_ACEOF
16898 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_EXIT 1
16899 _ACEOF
16904 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_exit" >&5
16905 echo $ECHO_N "checking for struct utmp.ut_exit.e_exit... $ECHO_C" >&6
16906 if test "${ac_cv_member_struct_utmp_ut_exit_e_exit+set}" = set; then
16907 echo $ECHO_N "(cached) $ECHO_C" >&6
16908 else
16909 cat >conftest.$ac_ext <<_ACEOF
16910 #line $LINENO "configure"
16911 /* confdefs.h. */
16912 _ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h. */
16916 $utmp_includes
16919 main ()
16921 static struct utmp ac_aggr;
16922 if (ac_aggr.ut_exit.e_exit)
16923 return 0;
16925 return 0;
16927 _ACEOF
16928 rm -f conftest.$ac_objext
16929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16930 (eval $ac_compile) 2>&5
16931 ac_status=$?
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); } &&
16934 { ac_try='test -s conftest.$ac_objext'
16935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936 (eval $ac_try) 2>&5
16937 ac_status=$?
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; }; then
16940 ac_cv_member_struct_utmp_ut_exit_e_exit=yes
16941 else
16942 echo "$as_me: failed program was:" >&5
16943 sed 's/^/| /' conftest.$ac_ext >&5
16945 cat >conftest.$ac_ext <<_ACEOF
16946 #line $LINENO "configure"
16947 /* confdefs.h. */
16948 _ACEOF
16949 cat confdefs.h >>conftest.$ac_ext
16950 cat >>conftest.$ac_ext <<_ACEOF
16951 /* end confdefs.h. */
16952 $utmp_includes
16955 main ()
16957 static struct utmp ac_aggr;
16958 if (sizeof ac_aggr.ut_exit.e_exit)
16959 return 0;
16961 return 0;
16963 _ACEOF
16964 rm -f conftest.$ac_objext
16965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16966 (eval $ac_compile) 2>&5
16967 ac_status=$?
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); } &&
16970 { ac_try='test -s conftest.$ac_objext'
16971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16972 (eval $ac_try) 2>&5
16973 ac_status=$?
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; }; then
16976 ac_cv_member_struct_utmp_ut_exit_e_exit=yes
16977 else
16978 echo "$as_me: failed program was:" >&5
16979 sed 's/^/| /' conftest.$ac_ext >&5
16981 ac_cv_member_struct_utmp_ut_exit_e_exit=no
16983 rm -f conftest.$ac_objext conftest.$ac_ext
16985 rm -f conftest.$ac_objext conftest.$ac_ext
16987 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_exit" >&5
16988 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_exit" >&6
16989 if test $ac_cv_member_struct_utmp_ut_exit_e_exit = yes; then
16991 cat >>confdefs.h <<_ACEOF
16992 #define HAVE_STRUCT_UTMP_UT_EXIT_E_EXIT 1
16993 _ACEOF
16999 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.ut_termination" >&5
17000 echo $ECHO_N "checking for struct utmpx.ut_exit.ut_termination... $ECHO_C" >&6
17001 if test "${ac_cv_member_struct_utmpx_ut_exit_ut_termination+set}" = set; then
17002 echo $ECHO_N "(cached) $ECHO_C" >&6
17003 else
17004 cat >conftest.$ac_ext <<_ACEOF
17005 #line $LINENO "configure"
17006 /* confdefs.h. */
17007 _ACEOF
17008 cat confdefs.h >>conftest.$ac_ext
17009 cat >>conftest.$ac_ext <<_ACEOF
17010 /* end confdefs.h. */
17011 $utmp_includes
17014 main ()
17016 static struct utmpx ac_aggr;
17017 if (ac_aggr.ut_exit.ut_termination)
17018 return 0;
17020 return 0;
17022 _ACEOF
17023 rm -f conftest.$ac_objext
17024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17025 (eval $ac_compile) 2>&5
17026 ac_status=$?
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); } &&
17029 { ac_try='test -s conftest.$ac_objext'
17030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031 (eval $ac_try) 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; }; then
17035 ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
17036 else
17037 echo "$as_me: failed program was:" >&5
17038 sed 's/^/| /' conftest.$ac_ext >&5
17040 cat >conftest.$ac_ext <<_ACEOF
17041 #line $LINENO "configure"
17042 /* confdefs.h. */
17043 _ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17047 $utmp_includes
17050 main ()
17052 static struct utmpx ac_aggr;
17053 if (sizeof ac_aggr.ut_exit.ut_termination)
17054 return 0;
17056 return 0;
17058 _ACEOF
17059 rm -f conftest.$ac_objext
17060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17061 (eval $ac_compile) 2>&5
17062 ac_status=$?
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } &&
17065 { ac_try='test -s conftest.$ac_objext'
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17068 ac_status=$?
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; }; then
17071 ac_cv_member_struct_utmpx_ut_exit_ut_termination=yes
17072 else
17073 echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17076 ac_cv_member_struct_utmpx_ut_exit_ut_termination=no
17078 rm -f conftest.$ac_objext conftest.$ac_ext
17080 rm -f conftest.$ac_objext conftest.$ac_ext
17082 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&5
17083 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_ut_termination" >&6
17084 if test $ac_cv_member_struct_utmpx_ut_exit_ut_termination = yes; then
17086 cat >>confdefs.h <<_ACEOF
17087 #define HAVE_STRUCT_UTMPX_UT_EXIT_UT_TERMINATION 1
17088 _ACEOF
17093 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.ut_termination" >&5
17094 echo $ECHO_N "checking for struct utmp.ut_exit.ut_termination... $ECHO_C" >&6
17095 if test "${ac_cv_member_struct_utmp_ut_exit_ut_termination+set}" = set; then
17096 echo $ECHO_N "(cached) $ECHO_C" >&6
17097 else
17098 cat >conftest.$ac_ext <<_ACEOF
17099 #line $LINENO "configure"
17100 /* confdefs.h. */
17101 _ACEOF
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h. */
17105 $utmp_includes
17108 main ()
17110 static struct utmp ac_aggr;
17111 if (ac_aggr.ut_exit.ut_termination)
17112 return 0;
17114 return 0;
17116 _ACEOF
17117 rm -f conftest.$ac_objext
17118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17119 (eval $ac_compile) 2>&5
17120 ac_status=$?
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); } &&
17123 { ac_try='test -s conftest.$ac_objext'
17124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17126 ac_status=$?
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; }; then
17129 ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
17130 else
17131 echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17134 cat >conftest.$ac_ext <<_ACEOF
17135 #line $LINENO "configure"
17136 /* confdefs.h. */
17137 _ACEOF
17138 cat confdefs.h >>conftest.$ac_ext
17139 cat >>conftest.$ac_ext <<_ACEOF
17140 /* end confdefs.h. */
17141 $utmp_includes
17144 main ()
17146 static struct utmp ac_aggr;
17147 if (sizeof ac_aggr.ut_exit.ut_termination)
17148 return 0;
17150 return 0;
17152 _ACEOF
17153 rm -f conftest.$ac_objext
17154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17155 (eval $ac_compile) 2>&5
17156 ac_status=$?
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); } &&
17159 { ac_try='test -s conftest.$ac_objext'
17160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17161 (eval $ac_try) 2>&5
17162 ac_status=$?
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; }; then
17165 ac_cv_member_struct_utmp_ut_exit_ut_termination=yes
17166 else
17167 echo "$as_me: failed program was:" >&5
17168 sed 's/^/| /' conftest.$ac_ext >&5
17170 ac_cv_member_struct_utmp_ut_exit_ut_termination=no
17172 rm -f conftest.$ac_objext conftest.$ac_ext
17174 rm -f conftest.$ac_objext conftest.$ac_ext
17176 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_ut_termination" >&5
17177 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_ut_termination" >&6
17178 if test $ac_cv_member_struct_utmp_ut_exit_ut_termination = yes; then
17180 cat >>confdefs.h <<_ACEOF
17181 #define HAVE_STRUCT_UTMP_UT_EXIT_UT_TERMINATION 1
17182 _ACEOF
17187 echo "$as_me:$LINENO: checking for struct utmpx.ut_exit.e_termination" >&5
17188 echo $ECHO_N "checking for struct utmpx.ut_exit.e_termination... $ECHO_C" >&6
17189 if test "${ac_cv_member_struct_utmpx_ut_exit_e_termination+set}" = set; then
17190 echo $ECHO_N "(cached) $ECHO_C" >&6
17191 else
17192 cat >conftest.$ac_ext <<_ACEOF
17193 #line $LINENO "configure"
17194 /* confdefs.h. */
17195 _ACEOF
17196 cat confdefs.h >>conftest.$ac_ext
17197 cat >>conftest.$ac_ext <<_ACEOF
17198 /* end confdefs.h. */
17199 $utmp_includes
17202 main ()
17204 static struct utmpx ac_aggr;
17205 if (ac_aggr.ut_exit.e_termination)
17206 return 0;
17208 return 0;
17210 _ACEOF
17211 rm -f conftest.$ac_objext
17212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17213 (eval $ac_compile) 2>&5
17214 ac_status=$?
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); } &&
17217 { ac_try='test -s conftest.$ac_objext'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17220 ac_status=$?
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; }; then
17223 ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
17224 else
17225 echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.$ac_ext >&5
17228 cat >conftest.$ac_ext <<_ACEOF
17229 #line $LINENO "configure"
17230 /* confdefs.h. */
17231 _ACEOF
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h. */
17235 $utmp_includes
17238 main ()
17240 static struct utmpx ac_aggr;
17241 if (sizeof ac_aggr.ut_exit.e_termination)
17242 return 0;
17244 return 0;
17246 _ACEOF
17247 rm -f conftest.$ac_objext
17248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17249 (eval $ac_compile) 2>&5
17250 ac_status=$?
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); } &&
17253 { ac_try='test -s conftest.$ac_objext'
17254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17255 (eval $ac_try) 2>&5
17256 ac_status=$?
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); }; }; then
17259 ac_cv_member_struct_utmpx_ut_exit_e_termination=yes
17260 else
17261 echo "$as_me: failed program was:" >&5
17262 sed 's/^/| /' conftest.$ac_ext >&5
17264 ac_cv_member_struct_utmpx_ut_exit_e_termination=no
17266 rm -f conftest.$ac_objext conftest.$ac_ext
17268 rm -f conftest.$ac_objext conftest.$ac_ext
17270 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmpx_ut_exit_e_termination" >&5
17271 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_exit_e_termination" >&6
17272 if test $ac_cv_member_struct_utmpx_ut_exit_e_termination = yes; then
17274 cat >>confdefs.h <<_ACEOF
17275 #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
17276 _ACEOF
17281 echo "$as_me:$LINENO: checking for struct utmp.ut_exit.e_termination" >&5
17282 echo $ECHO_N "checking for struct utmp.ut_exit.e_termination... $ECHO_C" >&6
17283 if test "${ac_cv_member_struct_utmp_ut_exit_e_termination+set}" = set; then
17284 echo $ECHO_N "(cached) $ECHO_C" >&6
17285 else
17286 cat >conftest.$ac_ext <<_ACEOF
17287 #line $LINENO "configure"
17288 /* confdefs.h. */
17289 _ACEOF
17290 cat confdefs.h >>conftest.$ac_ext
17291 cat >>conftest.$ac_ext <<_ACEOF
17292 /* end confdefs.h. */
17293 $utmp_includes
17296 main ()
17298 static struct utmp ac_aggr;
17299 if (ac_aggr.ut_exit.e_termination)
17300 return 0;
17302 return 0;
17304 _ACEOF
17305 rm -f conftest.$ac_objext
17306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17307 (eval $ac_compile) 2>&5
17308 ac_status=$?
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); } &&
17311 { ac_try='test -s conftest.$ac_objext'
17312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17313 (eval $ac_try) 2>&5
17314 ac_status=$?
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; }; then
17317 ac_cv_member_struct_utmp_ut_exit_e_termination=yes
17318 else
17319 echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17322 cat >conftest.$ac_ext <<_ACEOF
17323 #line $LINENO "configure"
17324 /* confdefs.h. */
17325 _ACEOF
17326 cat confdefs.h >>conftest.$ac_ext
17327 cat >>conftest.$ac_ext <<_ACEOF
17328 /* end confdefs.h. */
17329 $utmp_includes
17332 main ()
17334 static struct utmp ac_aggr;
17335 if (sizeof ac_aggr.ut_exit.e_termination)
17336 return 0;
17338 return 0;
17340 _ACEOF
17341 rm -f conftest.$ac_objext
17342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17343 (eval $ac_compile) 2>&5
17344 ac_status=$?
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); } &&
17347 { ac_try='test -s conftest.$ac_objext'
17348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17349 (eval $ac_try) 2>&5
17350 ac_status=$?
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); }; }; then
17353 ac_cv_member_struct_utmp_ut_exit_e_termination=yes
17354 else
17355 echo "$as_me: failed program was:" >&5
17356 sed 's/^/| /' conftest.$ac_ext >&5
17358 ac_cv_member_struct_utmp_ut_exit_e_termination=no
17360 rm -f conftest.$ac_objext conftest.$ac_ext
17362 rm -f conftest.$ac_objext conftest.$ac_ext
17364 echo "$as_me:$LINENO: result: $ac_cv_member_struct_utmp_ut_exit_e_termination" >&5
17365 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_exit_e_termination" >&6
17366 if test $ac_cv_member_struct_utmp_ut_exit_e_termination = yes; then
17368 cat >>confdefs.h <<_ACEOF
17369 #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
17370 _ACEOF
17375 LIBOBJS="$LIBOBJS readutmp.$ac_objext"
17379 echo "$as_me:$LINENO: checking for long long" >&5
17380 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17381 if test "${ac_cv_type_long_long+set}" = set; then
17382 echo $ECHO_N "(cached) $ECHO_C" >&6
17383 else
17384 cat >conftest.$ac_ext <<_ACEOF
17385 #line $LINENO "configure"
17386 /* confdefs.h. */
17387 _ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17391 long long ll = 1; int i = 63;
17393 main ()
17395 long long llmax = (long long) -1;
17396 return ll << i | ll >> i | llmax / ll | llmax % ll;
17398 return 0;
17400 _ACEOF
17401 rm -f conftest.$ac_objext conftest$ac_exeext
17402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17403 (eval $ac_link) 2>&5
17404 ac_status=$?
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } &&
17407 { ac_try='test -s conftest$ac_exeext'
17408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17409 (eval $ac_try) 2>&5
17410 ac_status=$?
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); }; }; then
17413 ac_cv_type_long_long=yes
17414 else
17415 echo "$as_me: failed program was:" >&5
17416 sed 's/^/| /' conftest.$ac_ext >&5
17418 ac_cv_type_long_long=no
17420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17422 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17423 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17424 if test $ac_cv_type_long_long = yes; then
17426 cat >>confdefs.h <<\_ACEOF
17427 #define HAVE_LONG_LONG 1
17428 _ACEOF
17437 for ac_header in sys/sysmacros.h sys/statvfs.h sys/vfs.h inttypes.h
17439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17441 echo "$as_me:$LINENO: checking for $ac_header" >&5
17442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17444 echo $ECHO_N "(cached) $ECHO_C" >&6
17446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17448 else
17449 # Is the header compilable?
17450 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17452 cat >conftest.$ac_ext <<_ACEOF
17453 #line $LINENO "configure"
17454 /* confdefs.h. */
17455 _ACEOF
17456 cat confdefs.h >>conftest.$ac_ext
17457 cat >>conftest.$ac_ext <<_ACEOF
17458 /* end confdefs.h. */
17459 $ac_includes_default
17460 #include <$ac_header>
17461 _ACEOF
17462 rm -f conftest.$ac_objext
17463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17464 (eval $ac_compile) 2>&5
17465 ac_status=$?
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); } &&
17468 { ac_try='test -s conftest.$ac_objext'
17469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17470 (eval $ac_try) 2>&5
17471 ac_status=$?
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; }; then
17474 ac_header_compiler=yes
17475 else
17476 echo "$as_me: failed program was:" >&5
17477 sed 's/^/| /' conftest.$ac_ext >&5
17479 ac_header_compiler=no
17481 rm -f conftest.$ac_objext conftest.$ac_ext
17482 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17483 echo "${ECHO_T}$ac_header_compiler" >&6
17485 # Is the header present?
17486 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17488 cat >conftest.$ac_ext <<_ACEOF
17489 #line $LINENO "configure"
17490 /* confdefs.h. */
17491 _ACEOF
17492 cat confdefs.h >>conftest.$ac_ext
17493 cat >>conftest.$ac_ext <<_ACEOF
17494 /* end confdefs.h. */
17495 #include <$ac_header>
17496 _ACEOF
17497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17499 ac_status=$?
17500 grep -v '^ *+' conftest.er1 >conftest.err
17501 rm -f conftest.er1
17502 cat conftest.err >&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); } >/dev/null; then
17505 if test -s conftest.err; then
17506 ac_cpp_err=$ac_c_preproc_warn_flag
17507 else
17508 ac_cpp_err=
17510 else
17511 ac_cpp_err=yes
17513 if test -z "$ac_cpp_err"; then
17514 ac_header_preproc=yes
17515 else
17516 echo "$as_me: failed program was:" >&5
17517 sed 's/^/| /' conftest.$ac_ext >&5
17519 ac_header_preproc=no
17521 rm -f conftest.err conftest.$ac_ext
17522 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17523 echo "${ECHO_T}$ac_header_preproc" >&6
17525 # So? What about this header?
17526 case $ac_header_compiler:$ac_header_preproc in
17527 yes:no )
17528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17533 cat <<\_ASBOX
17534 ## ------------------------------------ ##
17535 ## Report this to bug-autoconf@gnu.org. ##
17536 ## ------------------------------------ ##
17537 _ASBOX
17539 sed "s/^/$as_me: WARNING: /" >&2
17541 no:yes )
17542 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17543 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17544 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17545 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17549 cat <<\_ASBOX
17550 ## ------------------------------------ ##
17551 ## Report this to bug-autoconf@gnu.org. ##
17552 ## ------------------------------------ ##
17553 _ASBOX
17555 sed "s/^/$as_me: WARNING: /" >&2
17557 esac
17558 echo "$as_me:$LINENO: checking for $ac_header" >&5
17559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17561 echo $ECHO_N "(cached) $ECHO_C" >&6
17562 else
17563 eval "$as_ac_Header=$ac_header_preproc"
17565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17570 cat >>confdefs.h <<_ACEOF
17571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17572 _ACEOF
17576 done
17580 for ac_header in sys/param.h sys/mount.h
17582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17584 echo "$as_me:$LINENO: checking for $ac_header" >&5
17585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17587 echo $ECHO_N "(cached) $ECHO_C" >&6
17589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17591 else
17592 # Is the header compilable?
17593 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17595 cat >conftest.$ac_ext <<_ACEOF
17596 #line $LINENO "configure"
17597 /* confdefs.h. */
17598 _ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h. */
17602 $ac_includes_default
17603 #include <$ac_header>
17604 _ACEOF
17605 rm -f conftest.$ac_objext
17606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17607 (eval $ac_compile) 2>&5
17608 ac_status=$?
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); } &&
17611 { ac_try='test -s conftest.$ac_objext'
17612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17613 (eval $ac_try) 2>&5
17614 ac_status=$?
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); }; }; then
17617 ac_header_compiler=yes
17618 else
17619 echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17622 ac_header_compiler=no
17624 rm -f conftest.$ac_objext conftest.$ac_ext
17625 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17626 echo "${ECHO_T}$ac_header_compiler" >&6
17628 # Is the header present?
17629 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17631 cat >conftest.$ac_ext <<_ACEOF
17632 #line $LINENO "configure"
17633 /* confdefs.h. */
17634 _ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h. */
17638 #include <$ac_header>
17639 _ACEOF
17640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17642 ac_status=$?
17643 grep -v '^ *+' conftest.er1 >conftest.err
17644 rm -f conftest.er1
17645 cat conftest.err >&5
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); } >/dev/null; then
17648 if test -s conftest.err; then
17649 ac_cpp_err=$ac_c_preproc_warn_flag
17650 else
17651 ac_cpp_err=
17653 else
17654 ac_cpp_err=yes
17656 if test -z "$ac_cpp_err"; then
17657 ac_header_preproc=yes
17658 else
17659 echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17662 ac_header_preproc=no
17664 rm -f conftest.err conftest.$ac_ext
17665 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17666 echo "${ECHO_T}$ac_header_preproc" >&6
17668 # So? What about this header?
17669 case $ac_header_compiler:$ac_header_preproc in
17670 yes:no )
17671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17676 cat <<\_ASBOX
17677 ## ------------------------------------ ##
17678 ## Report this to bug-autoconf@gnu.org. ##
17679 ## ------------------------------------ ##
17680 _ASBOX
17682 sed "s/^/$as_me: WARNING: /" >&2
17684 no:yes )
17685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17692 cat <<\_ASBOX
17693 ## ------------------------------------ ##
17694 ## Report this to bug-autoconf@gnu.org. ##
17695 ## ------------------------------------ ##
17696 _ASBOX
17698 sed "s/^/$as_me: WARNING: /" >&2
17700 esac
17701 echo "$as_me:$LINENO: checking for $ac_header" >&5
17702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17704 echo $ECHO_N "(cached) $ECHO_C" >&6
17705 else
17706 eval "$as_ac_Header=$ac_header_preproc"
17708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17713 cat >>confdefs.h <<_ACEOF
17714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17715 _ACEOF
17719 done
17722 for ac_func in statvfs
17724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17725 echo "$as_me:$LINENO: checking for $ac_func" >&5
17726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17727 if eval "test \"\${$as_ac_var+set}\" = set"; then
17728 echo $ECHO_N "(cached) $ECHO_C" >&6
17729 else
17730 cat >conftest.$ac_ext <<_ACEOF
17731 #line $LINENO "configure"
17732 /* confdefs.h. */
17733 _ACEOF
17734 cat confdefs.h >>conftest.$ac_ext
17735 cat >>conftest.$ac_ext <<_ACEOF
17736 /* end confdefs.h. */
17737 /* System header to define __stub macros and hopefully few prototypes,
17738 which can conflict with char $ac_func (); below.
17739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17740 <limits.h> exists even on freestanding compilers. */
17741 #ifdef __STDC__
17742 # include <limits.h>
17743 #else
17744 # include <assert.h>
17745 #endif
17746 /* Override any gcc2 internal prototype to avoid an error. */
17747 #ifdef __cplusplus
17748 extern "C"
17750 #endif
17751 /* We use char because int might match the return type of a gcc2
17752 builtin and then its argument prototype would still apply. */
17753 char $ac_func ();
17754 /* The GNU C library defines this for functions which it implements
17755 to always fail with ENOSYS. Some functions are actually named
17756 something starting with __ and the normal name is an alias. */
17757 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17758 choke me
17759 #else
17760 char (*f) () = $ac_func;
17761 #endif
17762 #ifdef __cplusplus
17764 #endif
17767 main ()
17769 return f != $ac_func;
17771 return 0;
17773 _ACEOF
17774 rm -f conftest.$ac_objext conftest$ac_exeext
17775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17776 (eval $ac_link) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } &&
17780 { ac_try='test -s conftest$ac_exeext'
17781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782 (eval $ac_try) 2>&5
17783 ac_status=$?
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); }; }; then
17786 eval "$as_ac_var=yes"
17787 else
17788 echo "$as_me: failed program was:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17791 eval "$as_ac_var=no"
17793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17797 if test `eval echo '${'$as_ac_var'}'` = yes; then
17798 cat >>confdefs.h <<_ACEOF
17799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17800 _ACEOF
17803 done
17807 statxfs_includes="\
17808 $ac_includes_default
17809 #if HAVE_SYS_STATVFS_H
17810 # include <sys/statvfs.h>
17811 #endif
17812 #if HAVE_SYS_VFS_H
17813 # include <sys/vfs.h>
17814 #endif
17815 #if ( ! HAVE_SYS_STATVFS_H && ! HAVE_SYS_VFS_H && HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H )
17816 /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
17817 # include <sys/param.h>
17818 # include <sys/mount.h>
17819 #endif
17821 echo "$as_me:$LINENO: checking for struct statfs.f_basetype" >&5
17822 echo $ECHO_N "checking for struct statfs.f_basetype... $ECHO_C" >&6
17823 if test "${ac_cv_member_struct_statfs_f_basetype+set}" = set; then
17824 echo $ECHO_N "(cached) $ECHO_C" >&6
17825 else
17826 cat >conftest.$ac_ext <<_ACEOF
17827 #line $LINENO "configure"
17828 /* confdefs.h. */
17829 _ACEOF
17830 cat confdefs.h >>conftest.$ac_ext
17831 cat >>conftest.$ac_ext <<_ACEOF
17832 /* end confdefs.h. */
17833 $statxfs_includes
17836 main ()
17838 static struct statfs ac_aggr;
17839 if (ac_aggr.f_basetype)
17840 return 0;
17842 return 0;
17844 _ACEOF
17845 rm -f conftest.$ac_objext
17846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17847 (eval $ac_compile) 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); } &&
17851 { ac_try='test -s conftest.$ac_objext'
17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853 (eval $ac_try) 2>&5
17854 ac_status=$?
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; }; then
17857 ac_cv_member_struct_statfs_f_basetype=yes
17858 else
17859 echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17862 cat >conftest.$ac_ext <<_ACEOF
17863 #line $LINENO "configure"
17864 /* confdefs.h. */
17865 _ACEOF
17866 cat confdefs.h >>conftest.$ac_ext
17867 cat >>conftest.$ac_ext <<_ACEOF
17868 /* end confdefs.h. */
17869 $statxfs_includes
17872 main ()
17874 static struct statfs ac_aggr;
17875 if (sizeof ac_aggr.f_basetype)
17876 return 0;
17878 return 0;
17880 _ACEOF
17881 rm -f conftest.$ac_objext
17882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17883 (eval $ac_compile) 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } &&
17887 { ac_try='test -s conftest.$ac_objext'
17888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889 (eval $ac_try) 2>&5
17890 ac_status=$?
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; }; then
17893 ac_cv_member_struct_statfs_f_basetype=yes
17894 else
17895 echo "$as_me: failed program was:" >&5
17896 sed 's/^/| /' conftest.$ac_ext >&5
17898 ac_cv_member_struct_statfs_f_basetype=no
17900 rm -f conftest.$ac_objext conftest.$ac_ext
17902 rm -f conftest.$ac_objext conftest.$ac_ext
17904 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_basetype" >&5
17905 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_basetype" >&6
17906 if test $ac_cv_member_struct_statfs_f_basetype = yes; then
17908 cat >>confdefs.h <<_ACEOF
17909 #define HAVE_STRUCT_STATFS_F_BASETYPE 1
17910 _ACEOF
17915 echo "$as_me:$LINENO: checking for struct statvfs.f_basetype" >&5
17916 echo $ECHO_N "checking for struct statvfs.f_basetype... $ECHO_C" >&6
17917 if test "${ac_cv_member_struct_statvfs_f_basetype+set}" = set; then
17918 echo $ECHO_N "(cached) $ECHO_C" >&6
17919 else
17920 cat >conftest.$ac_ext <<_ACEOF
17921 #line $LINENO "configure"
17922 /* confdefs.h. */
17923 _ACEOF
17924 cat confdefs.h >>conftest.$ac_ext
17925 cat >>conftest.$ac_ext <<_ACEOF
17926 /* end confdefs.h. */
17927 $statxfs_includes
17930 main ()
17932 static struct statvfs ac_aggr;
17933 if (ac_aggr.f_basetype)
17934 return 0;
17936 return 0;
17938 _ACEOF
17939 rm -f conftest.$ac_objext
17940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17941 (eval $ac_compile) 2>&5
17942 ac_status=$?
17943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944 (exit $ac_status); } &&
17945 { ac_try='test -s conftest.$ac_objext'
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; }; then
17951 ac_cv_member_struct_statvfs_f_basetype=yes
17952 else
17953 echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17956 cat >conftest.$ac_ext <<_ACEOF
17957 #line $LINENO "configure"
17958 /* confdefs.h. */
17959 _ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h. */
17963 $statxfs_includes
17966 main ()
17968 static struct statvfs ac_aggr;
17969 if (sizeof ac_aggr.f_basetype)
17970 return 0;
17972 return 0;
17974 _ACEOF
17975 rm -f conftest.$ac_objext
17976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17977 (eval $ac_compile) 2>&5
17978 ac_status=$?
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); } &&
17981 { ac_try='test -s conftest.$ac_objext'
17982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17983 (eval $ac_try) 2>&5
17984 ac_status=$?
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); }; }; then
17987 ac_cv_member_struct_statvfs_f_basetype=yes
17988 else
17989 echo "$as_me: failed program was:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17992 ac_cv_member_struct_statvfs_f_basetype=no
17994 rm -f conftest.$ac_objext conftest.$ac_ext
17996 rm -f conftest.$ac_objext conftest.$ac_ext
17998 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_basetype" >&5
17999 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_basetype" >&6
18000 if test $ac_cv_member_struct_statvfs_f_basetype = yes; then
18002 cat >>confdefs.h <<_ACEOF
18003 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
18004 _ACEOF
18009 echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
18010 echo $ECHO_N "checking for struct statfs.f_fstypename... $ECHO_C" >&6
18011 if test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18013 else
18014 cat >conftest.$ac_ext <<_ACEOF
18015 #line $LINENO "configure"
18016 /* confdefs.h. */
18017 _ACEOF
18018 cat confdefs.h >>conftest.$ac_ext
18019 cat >>conftest.$ac_ext <<_ACEOF
18020 /* end confdefs.h. */
18021 $statxfs_includes
18024 main ()
18026 static struct statfs ac_aggr;
18027 if (ac_aggr.f_fstypename)
18028 return 0;
18030 return 0;
18032 _ACEOF
18033 rm -f conftest.$ac_objext
18034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18035 (eval $ac_compile) 2>&5
18036 ac_status=$?
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); } &&
18039 { ac_try='test -s conftest.$ac_objext'
18040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18041 (eval $ac_try) 2>&5
18042 ac_status=$?
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); }; }; then
18045 ac_cv_member_struct_statfs_f_fstypename=yes
18046 else
18047 echo "$as_me: failed program was:" >&5
18048 sed 's/^/| /' conftest.$ac_ext >&5
18050 cat >conftest.$ac_ext <<_ACEOF
18051 #line $LINENO "configure"
18052 /* confdefs.h. */
18053 _ACEOF
18054 cat confdefs.h >>conftest.$ac_ext
18055 cat >>conftest.$ac_ext <<_ACEOF
18056 /* end confdefs.h. */
18057 $statxfs_includes
18060 main ()
18062 static struct statfs ac_aggr;
18063 if (sizeof ac_aggr.f_fstypename)
18064 return 0;
18066 return 0;
18068 _ACEOF
18069 rm -f conftest.$ac_objext
18070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18071 (eval $ac_compile) 2>&5
18072 ac_status=$?
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); } &&
18075 { ac_try='test -s conftest.$ac_objext'
18076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18077 (eval $ac_try) 2>&5
18078 ac_status=$?
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); }; }; then
18081 ac_cv_member_struct_statfs_f_fstypename=yes
18082 else
18083 echo "$as_me: failed program was:" >&5
18084 sed 's/^/| /' conftest.$ac_ext >&5
18086 ac_cv_member_struct_statfs_f_fstypename=no
18088 rm -f conftest.$ac_objext conftest.$ac_ext
18090 rm -f conftest.$ac_objext conftest.$ac_ext
18092 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
18093 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fstypename" >&6
18094 if test $ac_cv_member_struct_statfs_f_fstypename = yes; then
18096 cat >>confdefs.h <<_ACEOF
18097 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
18098 _ACEOF
18103 echo "$as_me:$LINENO: checking for struct statfs.f_type" >&5
18104 echo $ECHO_N "checking for struct statfs.f_type... $ECHO_C" >&6
18105 if test "${ac_cv_member_struct_statfs_f_type+set}" = set; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18107 else
18108 cat >conftest.$ac_ext <<_ACEOF
18109 #line $LINENO "configure"
18110 /* confdefs.h. */
18111 _ACEOF
18112 cat confdefs.h >>conftest.$ac_ext
18113 cat >>conftest.$ac_ext <<_ACEOF
18114 /* end confdefs.h. */
18115 $statxfs_includes
18118 main ()
18120 static struct statfs ac_aggr;
18121 if (ac_aggr.f_type)
18122 return 0;
18124 return 0;
18126 _ACEOF
18127 rm -f conftest.$ac_objext
18128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18129 (eval $ac_compile) 2>&5
18130 ac_status=$?
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); } &&
18133 { ac_try='test -s conftest.$ac_objext'
18134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18135 (eval $ac_try) 2>&5
18136 ac_status=$?
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); }; }; then
18139 ac_cv_member_struct_statfs_f_type=yes
18140 else
18141 echo "$as_me: failed program was:" >&5
18142 sed 's/^/| /' conftest.$ac_ext >&5
18144 cat >conftest.$ac_ext <<_ACEOF
18145 #line $LINENO "configure"
18146 /* confdefs.h. */
18147 _ACEOF
18148 cat confdefs.h >>conftest.$ac_ext
18149 cat >>conftest.$ac_ext <<_ACEOF
18150 /* end confdefs.h. */
18151 $statxfs_includes
18154 main ()
18156 static struct statfs ac_aggr;
18157 if (sizeof ac_aggr.f_type)
18158 return 0;
18160 return 0;
18162 _ACEOF
18163 rm -f conftest.$ac_objext
18164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18165 (eval $ac_compile) 2>&5
18166 ac_status=$?
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); } &&
18169 { ac_try='test -s conftest.$ac_objext'
18170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171 (eval $ac_try) 2>&5
18172 ac_status=$?
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; }; then
18175 ac_cv_member_struct_statfs_f_type=yes
18176 else
18177 echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18180 ac_cv_member_struct_statfs_f_type=no
18182 rm -f conftest.$ac_objext conftest.$ac_ext
18184 rm -f conftest.$ac_objext conftest.$ac_ext
18186 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_type" >&5
18187 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_type" >&6
18188 if test $ac_cv_member_struct_statfs_f_type = yes; then
18190 cat >>confdefs.h <<_ACEOF
18191 #define HAVE_STRUCT_STATFS_F_TYPE 1
18192 _ACEOF
18197 echo "$as_me:$LINENO: checking for struct statvfs.f_type" >&5
18198 echo $ECHO_N "checking for struct statvfs.f_type... $ECHO_C" >&6
18199 if test "${ac_cv_member_struct_statvfs_f_type+set}" = set; then
18200 echo $ECHO_N "(cached) $ECHO_C" >&6
18201 else
18202 cat >conftest.$ac_ext <<_ACEOF
18203 #line $LINENO "configure"
18204 /* confdefs.h. */
18205 _ACEOF
18206 cat confdefs.h >>conftest.$ac_ext
18207 cat >>conftest.$ac_ext <<_ACEOF
18208 /* end confdefs.h. */
18209 $statxfs_includes
18212 main ()
18214 static struct statvfs ac_aggr;
18215 if (ac_aggr.f_type)
18216 return 0;
18218 return 0;
18220 _ACEOF
18221 rm -f conftest.$ac_objext
18222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18223 (eval $ac_compile) 2>&5
18224 ac_status=$?
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } &&
18227 { ac_try='test -s conftest.$ac_objext'
18228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229 (eval $ac_try) 2>&5
18230 ac_status=$?
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); }; }; then
18233 ac_cv_member_struct_statvfs_f_type=yes
18234 else
18235 echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18238 cat >conftest.$ac_ext <<_ACEOF
18239 #line $LINENO "configure"
18240 /* confdefs.h. */
18241 _ACEOF
18242 cat confdefs.h >>conftest.$ac_ext
18243 cat >>conftest.$ac_ext <<_ACEOF
18244 /* end confdefs.h. */
18245 $statxfs_includes
18248 main ()
18250 static struct statvfs ac_aggr;
18251 if (sizeof ac_aggr.f_type)
18252 return 0;
18254 return 0;
18256 _ACEOF
18257 rm -f conftest.$ac_objext
18258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18259 (eval $ac_compile) 2>&5
18260 ac_status=$?
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); } &&
18263 { ac_try='test -s conftest.$ac_objext'
18264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18265 (eval $ac_try) 2>&5
18266 ac_status=$?
18267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268 (exit $ac_status); }; }; then
18269 ac_cv_member_struct_statvfs_f_type=yes
18270 else
18271 echo "$as_me: failed program was:" >&5
18272 sed 's/^/| /' conftest.$ac_ext >&5
18274 ac_cv_member_struct_statvfs_f_type=no
18276 rm -f conftest.$ac_objext conftest.$ac_ext
18278 rm -f conftest.$ac_objext conftest.$ac_ext
18280 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_type" >&5
18281 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_type" >&6
18282 if test $ac_cv_member_struct_statvfs_f_type = yes; then
18284 cat >>confdefs.h <<_ACEOF
18285 #define HAVE_STRUCT_STATVFS_F_TYPE 1
18286 _ACEOF
18291 echo "$as_me:$LINENO: checking for struct statfs.f_fsid.__val" >&5
18292 echo $ECHO_N "checking for struct statfs.f_fsid.__val... $ECHO_C" >&6
18293 if test "${ac_cv_member_struct_statfs_f_fsid___val+set}" = set; then
18294 echo $ECHO_N "(cached) $ECHO_C" >&6
18295 else
18296 cat >conftest.$ac_ext <<_ACEOF
18297 #line $LINENO "configure"
18298 /* confdefs.h. */
18299 _ACEOF
18300 cat confdefs.h >>conftest.$ac_ext
18301 cat >>conftest.$ac_ext <<_ACEOF
18302 /* end confdefs.h. */
18303 $statxfs_includes
18306 main ()
18308 static struct statfs ac_aggr;
18309 if (ac_aggr.f_fsid.__val)
18310 return 0;
18312 return 0;
18314 _ACEOF
18315 rm -f conftest.$ac_objext
18316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18317 (eval $ac_compile) 2>&5
18318 ac_status=$?
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); } &&
18321 { ac_try='test -s conftest.$ac_objext'
18322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18323 (eval $ac_try) 2>&5
18324 ac_status=$?
18325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18326 (exit $ac_status); }; }; then
18327 ac_cv_member_struct_statfs_f_fsid___val=yes
18328 else
18329 echo "$as_me: failed program was:" >&5
18330 sed 's/^/| /' conftest.$ac_ext >&5
18332 cat >conftest.$ac_ext <<_ACEOF
18333 #line $LINENO "configure"
18334 /* confdefs.h. */
18335 _ACEOF
18336 cat confdefs.h >>conftest.$ac_ext
18337 cat >>conftest.$ac_ext <<_ACEOF
18338 /* end confdefs.h. */
18339 $statxfs_includes
18342 main ()
18344 static struct statfs ac_aggr;
18345 if (sizeof ac_aggr.f_fsid.__val)
18346 return 0;
18348 return 0;
18350 _ACEOF
18351 rm -f conftest.$ac_objext
18352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18353 (eval $ac_compile) 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); } &&
18357 { ac_try='test -s conftest.$ac_objext'
18358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18359 (eval $ac_try) 2>&5
18360 ac_status=$?
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; }; then
18363 ac_cv_member_struct_statfs_f_fsid___val=yes
18364 else
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18368 ac_cv_member_struct_statfs_f_fsid___val=no
18370 rm -f conftest.$ac_objext conftest.$ac_ext
18372 rm -f conftest.$ac_objext conftest.$ac_ext
18374 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fsid___val" >&5
18375 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_fsid___val" >&6
18376 if test $ac_cv_member_struct_statfs_f_fsid___val = yes; then
18378 cat >>confdefs.h <<_ACEOF
18379 #define HAVE_STRUCT_STATFS_F_FSID___VAL 1
18380 _ACEOF
18385 echo "$as_me:$LINENO: checking for struct statvfs.f_fsid.__val" >&5
18386 echo $ECHO_N "checking for struct statvfs.f_fsid.__val... $ECHO_C" >&6
18387 if test "${ac_cv_member_struct_statvfs_f_fsid___val+set}" = set; then
18388 echo $ECHO_N "(cached) $ECHO_C" >&6
18389 else
18390 cat >conftest.$ac_ext <<_ACEOF
18391 #line $LINENO "configure"
18392 /* confdefs.h. */
18393 _ACEOF
18394 cat confdefs.h >>conftest.$ac_ext
18395 cat >>conftest.$ac_ext <<_ACEOF
18396 /* end confdefs.h. */
18397 $statxfs_includes
18400 main ()
18402 static struct statvfs ac_aggr;
18403 if (ac_aggr.f_fsid.__val)
18404 return 0;
18406 return 0;
18408 _ACEOF
18409 rm -f conftest.$ac_objext
18410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18411 (eval $ac_compile) 2>&5
18412 ac_status=$?
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); } &&
18415 { ac_try='test -s conftest.$ac_objext'
18416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18417 (eval $ac_try) 2>&5
18418 ac_status=$?
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); }; }; then
18421 ac_cv_member_struct_statvfs_f_fsid___val=yes
18422 else
18423 echo "$as_me: failed program was:" >&5
18424 sed 's/^/| /' conftest.$ac_ext >&5
18426 cat >conftest.$ac_ext <<_ACEOF
18427 #line $LINENO "configure"
18428 /* confdefs.h. */
18429 _ACEOF
18430 cat confdefs.h >>conftest.$ac_ext
18431 cat >>conftest.$ac_ext <<_ACEOF
18432 /* end confdefs.h. */
18433 $statxfs_includes
18436 main ()
18438 static struct statvfs ac_aggr;
18439 if (sizeof ac_aggr.f_fsid.__val)
18440 return 0;
18442 return 0;
18444 _ACEOF
18445 rm -f conftest.$ac_objext
18446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18447 (eval $ac_compile) 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } &&
18451 { ac_try='test -s conftest.$ac_objext'
18452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18453 (eval $ac_try) 2>&5
18454 ac_status=$?
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); }; }; then
18457 ac_cv_member_struct_statvfs_f_fsid___val=yes
18458 else
18459 echo "$as_me: failed program was:" >&5
18460 sed 's/^/| /' conftest.$ac_ext >&5
18462 ac_cv_member_struct_statvfs_f_fsid___val=no
18464 rm -f conftest.$ac_objext conftest.$ac_ext
18466 rm -f conftest.$ac_objext conftest.$ac_ext
18468 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_fsid___val" >&5
18469 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_fsid___val" >&6
18470 if test $ac_cv_member_struct_statvfs_f_fsid___val = yes; then
18472 cat >>confdefs.h <<_ACEOF
18473 #define HAVE_STRUCT_STATVFS_F_FSID___VAL 1
18474 _ACEOF
18479 echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
18480 echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6
18481 if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
18482 echo $ECHO_N "(cached) $ECHO_C" >&6
18483 else
18484 cat >conftest.$ac_ext <<_ACEOF
18485 #line $LINENO "configure"
18486 /* confdefs.h. */
18487 _ACEOF
18488 cat confdefs.h >>conftest.$ac_ext
18489 cat >>conftest.$ac_ext <<_ACEOF
18490 /* end confdefs.h. */
18491 $statxfs_includes
18494 main ()
18496 static struct statfs ac_aggr;
18497 if (ac_aggr.f_namemax)
18498 return 0;
18500 return 0;
18502 _ACEOF
18503 rm -f conftest.$ac_objext
18504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18505 (eval $ac_compile) 2>&5
18506 ac_status=$?
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); } &&
18509 { ac_try='test -s conftest.$ac_objext'
18510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18511 (eval $ac_try) 2>&5
18512 ac_status=$?
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); }; }; then
18515 ac_cv_member_struct_statfs_f_namemax=yes
18516 else
18517 echo "$as_me: failed program was:" >&5
18518 sed 's/^/| /' conftest.$ac_ext >&5
18520 cat >conftest.$ac_ext <<_ACEOF
18521 #line $LINENO "configure"
18522 /* confdefs.h. */
18523 _ACEOF
18524 cat confdefs.h >>conftest.$ac_ext
18525 cat >>conftest.$ac_ext <<_ACEOF
18526 /* end confdefs.h. */
18527 $statxfs_includes
18530 main ()
18532 static struct statfs ac_aggr;
18533 if (sizeof ac_aggr.f_namemax)
18534 return 0;
18536 return 0;
18538 _ACEOF
18539 rm -f conftest.$ac_objext
18540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18541 (eval $ac_compile) 2>&5
18542 ac_status=$?
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); } &&
18545 { ac_try='test -s conftest.$ac_objext'
18546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18547 (eval $ac_try) 2>&5
18548 ac_status=$?
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); }; }; then
18551 ac_cv_member_struct_statfs_f_namemax=yes
18552 else
18553 echo "$as_me: failed program was:" >&5
18554 sed 's/^/| /' conftest.$ac_ext >&5
18556 ac_cv_member_struct_statfs_f_namemax=no
18558 rm -f conftest.$ac_objext conftest.$ac_ext
18560 rm -f conftest.$ac_objext conftest.$ac_ext
18562 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
18563 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6
18564 if test $ac_cv_member_struct_statfs_f_namemax = yes; then
18566 cat >>confdefs.h <<_ACEOF
18567 #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
18568 _ACEOF
18573 echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
18574 echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6
18575 if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
18576 echo $ECHO_N "(cached) $ECHO_C" >&6
18577 else
18578 cat >conftest.$ac_ext <<_ACEOF
18579 #line $LINENO "configure"
18580 /* confdefs.h. */
18581 _ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h. */
18585 $statxfs_includes
18588 main ()
18590 static struct statvfs ac_aggr;
18591 if (ac_aggr.f_namemax)
18592 return 0;
18594 return 0;
18596 _ACEOF
18597 rm -f conftest.$ac_objext
18598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18599 (eval $ac_compile) 2>&5
18600 ac_status=$?
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); } &&
18603 { ac_try='test -s conftest.$ac_objext'
18604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18605 (eval $ac_try) 2>&5
18606 ac_status=$?
18607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18608 (exit $ac_status); }; }; then
18609 ac_cv_member_struct_statvfs_f_namemax=yes
18610 else
18611 echo "$as_me: failed program was:" >&5
18612 sed 's/^/| /' conftest.$ac_ext >&5
18614 cat >conftest.$ac_ext <<_ACEOF
18615 #line $LINENO "configure"
18616 /* confdefs.h. */
18617 _ACEOF
18618 cat confdefs.h >>conftest.$ac_ext
18619 cat >>conftest.$ac_ext <<_ACEOF
18620 /* end confdefs.h. */
18621 $statxfs_includes
18624 main ()
18626 static struct statvfs ac_aggr;
18627 if (sizeof ac_aggr.f_namemax)
18628 return 0;
18630 return 0;
18632 _ACEOF
18633 rm -f conftest.$ac_objext
18634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18635 (eval $ac_compile) 2>&5
18636 ac_status=$?
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } &&
18639 { ac_try='test -s conftest.$ac_objext'
18640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641 (eval $ac_try) 2>&5
18642 ac_status=$?
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); }; }; then
18645 ac_cv_member_struct_statvfs_f_namemax=yes
18646 else
18647 echo "$as_me: failed program was:" >&5
18648 sed 's/^/| /' conftest.$ac_ext >&5
18650 ac_cv_member_struct_statvfs_f_namemax=no
18652 rm -f conftest.$ac_objext conftest.$ac_ext
18654 rm -f conftest.$ac_objext conftest.$ac_ext
18656 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
18657 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6
18658 if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
18660 cat >>confdefs.h <<_ACEOF
18661 #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
18662 _ACEOF
18667 echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18668 echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
18669 if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18670 echo $ECHO_N "(cached) $ECHO_C" >&6
18671 else
18672 cat >conftest.$ac_ext <<_ACEOF
18673 #line $LINENO "configure"
18674 /* confdefs.h. */
18675 _ACEOF
18676 cat confdefs.h >>conftest.$ac_ext
18677 cat >>conftest.$ac_ext <<_ACEOF
18678 /* end confdefs.h. */
18679 $statxfs_includes
18682 main ()
18684 static struct statfs ac_aggr;
18685 if (ac_aggr.f_namelen)
18686 return 0;
18688 return 0;
18690 _ACEOF
18691 rm -f conftest.$ac_objext
18692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18693 (eval $ac_compile) 2>&5
18694 ac_status=$?
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } &&
18697 { ac_try='test -s conftest.$ac_objext'
18698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699 (eval $ac_try) 2>&5
18700 ac_status=$?
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; }; then
18703 ac_cv_member_struct_statfs_f_namelen=yes
18704 else
18705 echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.$ac_ext >&5
18708 cat >conftest.$ac_ext <<_ACEOF
18709 #line $LINENO "configure"
18710 /* confdefs.h. */
18711 _ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h. */
18715 $statxfs_includes
18718 main ()
18720 static struct statfs ac_aggr;
18721 if (sizeof ac_aggr.f_namelen)
18722 return 0;
18724 return 0;
18726 _ACEOF
18727 rm -f conftest.$ac_objext
18728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18729 (eval $ac_compile) 2>&5
18730 ac_status=$?
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); } &&
18733 { ac_try='test -s conftest.$ac_objext'
18734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735 (eval $ac_try) 2>&5
18736 ac_status=$?
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; }; then
18739 ac_cv_member_struct_statfs_f_namelen=yes
18740 else
18741 echo "$as_me: failed program was:" >&5
18742 sed 's/^/| /' conftest.$ac_ext >&5
18744 ac_cv_member_struct_statfs_f_namelen=no
18746 rm -f conftest.$ac_objext conftest.$ac_ext
18748 rm -f conftest.$ac_objext conftest.$ac_ext
18750 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18751 echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
18752 if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18754 cat >>confdefs.h <<_ACEOF
18755 #define HAVE_STRUCT_STATFS_F_NAMELEN 1
18756 _ACEOF
18761 echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
18762 echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6
18763 if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
18764 echo $ECHO_N "(cached) $ECHO_C" >&6
18765 else
18766 cat >conftest.$ac_ext <<_ACEOF
18767 #line $LINENO "configure"
18768 /* confdefs.h. */
18769 _ACEOF
18770 cat confdefs.h >>conftest.$ac_ext
18771 cat >>conftest.$ac_ext <<_ACEOF
18772 /* end confdefs.h. */
18773 $statxfs_includes
18776 main ()
18778 static struct statvfs ac_aggr;
18779 if (ac_aggr.f_namelen)
18780 return 0;
18782 return 0;
18784 _ACEOF
18785 rm -f conftest.$ac_objext
18786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18787 (eval $ac_compile) 2>&5
18788 ac_status=$?
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); } &&
18791 { ac_try='test -s conftest.$ac_objext'
18792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18793 (eval $ac_try) 2>&5
18794 ac_status=$?
18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796 (exit $ac_status); }; }; then
18797 ac_cv_member_struct_statvfs_f_namelen=yes
18798 else
18799 echo "$as_me: failed program was:" >&5
18800 sed 's/^/| /' conftest.$ac_ext >&5
18802 cat >conftest.$ac_ext <<_ACEOF
18803 #line $LINENO "configure"
18804 /* confdefs.h. */
18805 _ACEOF
18806 cat confdefs.h >>conftest.$ac_ext
18807 cat >>conftest.$ac_ext <<_ACEOF
18808 /* end confdefs.h. */
18809 $statxfs_includes
18812 main ()
18814 static struct statvfs ac_aggr;
18815 if (sizeof ac_aggr.f_namelen)
18816 return 0;
18818 return 0;
18820 _ACEOF
18821 rm -f conftest.$ac_objext
18822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18823 (eval $ac_compile) 2>&5
18824 ac_status=$?
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); } &&
18827 { ac_try='test -s conftest.$ac_objext'
18828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18829 (eval $ac_try) 2>&5
18830 ac_status=$?
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); }; }; then
18833 ac_cv_member_struct_statvfs_f_namelen=yes
18834 else
18835 echo "$as_me: failed program was:" >&5
18836 sed 's/^/| /' conftest.$ac_ext >&5
18838 ac_cv_member_struct_statvfs_f_namelen=no
18840 rm -f conftest.$ac_objext conftest.$ac_ext
18842 rm -f conftest.$ac_objext conftest.$ac_ext
18844 echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
18845 echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6
18846 if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
18848 cat >>confdefs.h <<_ACEOF
18849 #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
18850 _ACEOF
18856 echo "$as_me:$LINENO: checking for working strnlen" >&5
18857 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6
18858 if test "${ac_cv_func_strnlen_working+set}" = set; then
18859 echo $ECHO_N "(cached) $ECHO_C" >&6
18860 else
18861 if test "$cross_compiling" = yes; then
18862 ac_cv_func_strnlen_working=no
18863 else
18864 cat >conftest.$ac_ext <<_ACEOF
18865 #line $LINENO "configure"
18866 /* confdefs.h. */
18867 _ACEOF
18868 cat confdefs.h >>conftest.$ac_ext
18869 cat >>conftest.$ac_ext <<_ACEOF
18870 /* end confdefs.h. */
18873 main ()
18876 #define S "foobar"
18877 #define S_LEN (sizeof S - 1)
18879 /* At least one implementation is buggy: that of AIX 4.3 would
18880 give strnlen (S, 1) == 3. */
18882 int i;
18883 for (i = 0; i < S_LEN + 1; ++i)
18885 int expected = i <= S_LEN ? i : S_LEN;
18886 if (strnlen (S, i) != expected)
18887 exit (1);
18889 exit (0);
18892 return 0;
18894 _ACEOF
18895 rm -f conftest$ac_exeext
18896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18897 (eval $ac_link) 2>&5
18898 ac_status=$?
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902 (eval $ac_try) 2>&5
18903 ac_status=$?
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); }; }; then
18906 ac_cv_func_strnlen_working=yes
18907 else
18908 echo "$as_me: program exited with status $ac_status" >&5
18909 echo "$as_me: failed program was:" >&5
18910 sed 's/^/| /' conftest.$ac_ext >&5
18912 ( exit $ac_status )
18913 ac_cv_func_strnlen_working=no
18915 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18918 echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
18919 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6
18920 test $ac_cv_func_strnlen_working = no && LIBOBJS="$LIBOBJS strnlen.$ac_objext"
18926 for ac_header in memory.h
18928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18930 echo "$as_me:$LINENO: checking for $ac_header" >&5
18931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18933 echo $ECHO_N "(cached) $ECHO_C" >&6
18935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18937 else
18938 # Is the header compilable?
18939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18941 cat >conftest.$ac_ext <<_ACEOF
18942 #line $LINENO "configure"
18943 /* confdefs.h. */
18944 _ACEOF
18945 cat confdefs.h >>conftest.$ac_ext
18946 cat >>conftest.$ac_ext <<_ACEOF
18947 /* end confdefs.h. */
18948 $ac_includes_default
18949 #include <$ac_header>
18950 _ACEOF
18951 rm -f conftest.$ac_objext
18952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18953 (eval $ac_compile) 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); } &&
18957 { ac_try='test -s conftest.$ac_objext'
18958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959 (eval $ac_try) 2>&5
18960 ac_status=$?
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; }; then
18963 ac_header_compiler=yes
18964 else
18965 echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18968 ac_header_compiler=no
18970 rm -f conftest.$ac_objext conftest.$ac_ext
18971 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18972 echo "${ECHO_T}$ac_header_compiler" >&6
18974 # Is the header present?
18975 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18977 cat >conftest.$ac_ext <<_ACEOF
18978 #line $LINENO "configure"
18979 /* confdefs.h. */
18980 _ACEOF
18981 cat confdefs.h >>conftest.$ac_ext
18982 cat >>conftest.$ac_ext <<_ACEOF
18983 /* end confdefs.h. */
18984 #include <$ac_header>
18985 _ACEOF
18986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18988 ac_status=$?
18989 grep -v '^ *+' conftest.er1 >conftest.err
18990 rm -f conftest.er1
18991 cat conftest.err >&5
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); } >/dev/null; then
18994 if test -s conftest.err; then
18995 ac_cpp_err=$ac_c_preproc_warn_flag
18996 else
18997 ac_cpp_err=
18999 else
19000 ac_cpp_err=yes
19002 if test -z "$ac_cpp_err"; then
19003 ac_header_preproc=yes
19004 else
19005 echo "$as_me: failed program was:" >&5
19006 sed 's/^/| /' conftest.$ac_ext >&5
19008 ac_header_preproc=no
19010 rm -f conftest.err conftest.$ac_ext
19011 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19012 echo "${ECHO_T}$ac_header_preproc" >&6
19014 # So? What about this header?
19015 case $ac_header_compiler:$ac_header_preproc in
19016 yes:no )
19017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19022 cat <<\_ASBOX
19023 ## ------------------------------------ ##
19024 ## Report this to bug-autoconf@gnu.org. ##
19025 ## ------------------------------------ ##
19026 _ASBOX
19028 sed "s/^/$as_me: WARNING: /" >&2
19030 no:yes )
19031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19038 cat <<\_ASBOX
19039 ## ------------------------------------ ##
19040 ## Report this to bug-autoconf@gnu.org. ##
19041 ## ------------------------------------ ##
19042 _ASBOX
19044 sed "s/^/$as_me: WARNING: /" >&2
19046 esac
19047 echo "$as_me:$LINENO: checking for $ac_header" >&5
19048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19050 echo $ECHO_N "(cached) $ECHO_C" >&6
19051 else
19052 eval "$as_ac_Header=$ac_header_preproc"
19054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19059 cat >>confdefs.h <<_ACEOF
19060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19061 _ACEOF
19065 done
19067 echo "$as_me:$LINENO: checking whether memchr is declared" >&5
19068 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
19069 if test "${ac_cv_have_decl_memchr+set}" = set; then
19070 echo $ECHO_N "(cached) $ECHO_C" >&6
19071 else
19072 cat >conftest.$ac_ext <<_ACEOF
19073 #line $LINENO "configure"
19074 /* confdefs.h. */
19075 _ACEOF
19076 cat confdefs.h >>conftest.$ac_ext
19077 cat >>conftest.$ac_ext <<_ACEOF
19078 /* end confdefs.h. */
19079 $ac_includes_default
19081 main ()
19083 #ifndef memchr
19084 char *p = (char *) memchr;
19085 #endif
19088 return 0;
19090 _ACEOF
19091 rm -f conftest.$ac_objext
19092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19093 (eval $ac_compile) 2>&5
19094 ac_status=$?
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); } &&
19097 { ac_try='test -s conftest.$ac_objext'
19098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19099 (eval $ac_try) 2>&5
19100 ac_status=$?
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); }; }; then
19103 ac_cv_have_decl_memchr=yes
19104 else
19105 echo "$as_me: failed program was:" >&5
19106 sed 's/^/| /' conftest.$ac_ext >&5
19108 ac_cv_have_decl_memchr=no
19110 rm -f conftest.$ac_objext conftest.$ac_ext
19112 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5
19113 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
19114 if test $ac_cv_have_decl_memchr = yes; then
19116 cat >>confdefs.h <<_ACEOF
19117 #define HAVE_DECL_MEMCHR 1
19118 _ACEOF
19121 else
19122 cat >>confdefs.h <<_ACEOF
19123 #define HAVE_DECL_MEMCHR 0
19124 _ACEOF
19131 # This is necessary because automake-1.6.1 doesn't understand
19132 # that the above use of AC_FUNC_STRNLEN means we may have to use
19133 # lib/strnlen.c.
19134 test $ac_cv_func_strnlen_working = yes \
19135 && LIBOBJS="$LIBOBJS strnlen.$ac_objext"
19144 for ac_header in fcntl.h sys/time.h stdint.h unistd.h
19146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19148 echo "$as_me:$LINENO: checking for $ac_header" >&5
19149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19151 echo $ECHO_N "(cached) $ECHO_C" >&6
19153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19155 else
19156 # Is the header compilable?
19157 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19158 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19159 cat >conftest.$ac_ext <<_ACEOF
19160 #line $LINENO "configure"
19161 /* confdefs.h. */
19162 _ACEOF
19163 cat confdefs.h >>conftest.$ac_ext
19164 cat >>conftest.$ac_ext <<_ACEOF
19165 /* end confdefs.h. */
19166 $ac_includes_default
19167 #include <$ac_header>
19168 _ACEOF
19169 rm -f conftest.$ac_objext
19170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19171 (eval $ac_compile) 2>&5
19172 ac_status=$?
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); } &&
19175 { ac_try='test -s conftest.$ac_objext'
19176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19177 (eval $ac_try) 2>&5
19178 ac_status=$?
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); }; }; then
19181 ac_header_compiler=yes
19182 else
19183 echo "$as_me: failed program was:" >&5
19184 sed 's/^/| /' conftest.$ac_ext >&5
19186 ac_header_compiler=no
19188 rm -f conftest.$ac_objext conftest.$ac_ext
19189 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19190 echo "${ECHO_T}$ac_header_compiler" >&6
19192 # Is the header present?
19193 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19194 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19195 cat >conftest.$ac_ext <<_ACEOF
19196 #line $LINENO "configure"
19197 /* confdefs.h. */
19198 _ACEOF
19199 cat confdefs.h >>conftest.$ac_ext
19200 cat >>conftest.$ac_ext <<_ACEOF
19201 /* end confdefs.h. */
19202 #include <$ac_header>
19203 _ACEOF
19204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19206 ac_status=$?
19207 grep -v '^ *+' conftest.er1 >conftest.err
19208 rm -f conftest.er1
19209 cat conftest.err >&5
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); } >/dev/null; then
19212 if test -s conftest.err; then
19213 ac_cpp_err=$ac_c_preproc_warn_flag
19214 else
19215 ac_cpp_err=
19217 else
19218 ac_cpp_err=yes
19220 if test -z "$ac_cpp_err"; then
19221 ac_header_preproc=yes
19222 else
19223 echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19226 ac_header_preproc=no
19228 rm -f conftest.err conftest.$ac_ext
19229 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19230 echo "${ECHO_T}$ac_header_preproc" >&6
19232 # So? What about this header?
19233 case $ac_header_compiler:$ac_header_preproc in
19234 yes:no )
19235 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19236 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19240 cat <<\_ASBOX
19241 ## ------------------------------------ ##
19242 ## Report this to bug-autoconf@gnu.org. ##
19243 ## ------------------------------------ ##
19244 _ASBOX
19246 sed "s/^/$as_me: WARNING: /" >&2
19248 no:yes )
19249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19256 cat <<\_ASBOX
19257 ## ------------------------------------ ##
19258 ## Report this to bug-autoconf@gnu.org. ##
19259 ## ------------------------------------ ##
19260 _ASBOX
19262 sed "s/^/$as_me: WARNING: /" >&2
19264 esac
19265 echo "$as_me:$LINENO: checking for $ac_header" >&5
19266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19268 echo $ECHO_N "(cached) $ECHO_C" >&6
19269 else
19270 eval "$as_ac_Header=$ac_header_preproc"
19272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19277 cat >>confdefs.h <<_ACEOF
19278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19279 _ACEOF
19283 done
19287 for ac_func in __secure_getenv gettimeofday
19289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19290 echo "$as_me:$LINENO: checking for $ac_func" >&5
19291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19292 if eval "test \"\${$as_ac_var+set}\" = set"; then
19293 echo $ECHO_N "(cached) $ECHO_C" >&6
19294 else
19295 cat >conftest.$ac_ext <<_ACEOF
19296 #line $LINENO "configure"
19297 /* confdefs.h. */
19298 _ACEOF
19299 cat confdefs.h >>conftest.$ac_ext
19300 cat >>conftest.$ac_ext <<_ACEOF
19301 /* end confdefs.h. */
19302 /* System header to define __stub macros and hopefully few prototypes,
19303 which can conflict with char $ac_func (); below.
19304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19305 <limits.h> exists even on freestanding compilers. */
19306 #ifdef __STDC__
19307 # include <limits.h>
19308 #else
19309 # include <assert.h>
19310 #endif
19311 /* Override any gcc2 internal prototype to avoid an error. */
19312 #ifdef __cplusplus
19313 extern "C"
19315 #endif
19316 /* We use char because int might match the return type of a gcc2
19317 builtin and then its argument prototype would still apply. */
19318 char $ac_func ();
19319 /* The GNU C library defines this for functions which it implements
19320 to always fail with ENOSYS. Some functions are actually named
19321 something starting with __ and the normal name is an alias. */
19322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19323 choke me
19324 #else
19325 char (*f) () = $ac_func;
19326 #endif
19327 #ifdef __cplusplus
19329 #endif
19332 main ()
19334 return f != $ac_func;
19336 return 0;
19338 _ACEOF
19339 rm -f conftest.$ac_objext conftest$ac_exeext
19340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19341 (eval $ac_link) 2>&5
19342 ac_status=$?
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); } &&
19345 { ac_try='test -s conftest$ac_exeext'
19346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19347 (eval $ac_try) 2>&5
19348 ac_status=$?
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; }; then
19351 eval "$as_ac_var=yes"
19352 else
19353 echo "$as_me: failed program was:" >&5
19354 sed 's/^/| /' conftest.$ac_ext >&5
19356 eval "$as_ac_var=no"
19358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19362 if test `eval echo '${'$as_ac_var'}'` = yes; then
19363 cat >>confdefs.h <<_ACEOF
19364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19365 _ACEOF
19368 done
19370 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
19371 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
19372 if test "${ac_cv_have_decl_getenv+set}" = set; then
19373 echo $ECHO_N "(cached) $ECHO_C" >&6
19374 else
19375 cat >conftest.$ac_ext <<_ACEOF
19376 #line $LINENO "configure"
19377 /* confdefs.h. */
19378 _ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h. */
19382 $ac_includes_default
19384 main ()
19386 #ifndef getenv
19387 char *p = (char *) getenv;
19388 #endif
19391 return 0;
19393 _ACEOF
19394 rm -f conftest.$ac_objext
19395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19396 (eval $ac_compile) 2>&5
19397 ac_status=$?
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } &&
19400 { ac_try='test -s conftest.$ac_objext'
19401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19402 (eval $ac_try) 2>&5
19403 ac_status=$?
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; }; then
19406 ac_cv_have_decl_getenv=yes
19407 else
19408 echo "$as_me: failed program was:" >&5
19409 sed 's/^/| /' conftest.$ac_ext >&5
19411 ac_cv_have_decl_getenv=no
19413 rm -f conftest.$ac_objext conftest.$ac_ext
19415 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
19416 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
19417 if test $ac_cv_have_decl_getenv = yes; then
19419 cat >>confdefs.h <<_ACEOF
19420 #define HAVE_DECL_GETENV 1
19421 _ACEOF
19424 else
19425 cat >>confdefs.h <<_ACEOF
19426 #define HAVE_DECL_GETENV 0
19427 _ACEOF
19435 echo "$as_me:$LINENO: checking for function prototypes" >&5
19436 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
19437 if test "$ac_cv_prog_cc_stdc" != no; then
19438 echo "$as_me:$LINENO: result: yes" >&5
19439 echo "${ECHO_T}yes" >&6
19441 cat >>confdefs.h <<\_ACEOF
19442 #define PROTOTYPES 1
19443 _ACEOF
19446 cat >>confdefs.h <<\_ACEOF
19447 #define __PROTOTYPES 1
19448 _ACEOF
19450 else
19451 echo "$as_me:$LINENO: result: no" >&5
19452 echo "${ECHO_T}no" >&6
19457 for ac_header in stdlib.h unistd.h
19459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19461 echo "$as_me:$LINENO: checking for $ac_header" >&5
19462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19464 echo $ECHO_N "(cached) $ECHO_C" >&6
19466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19468 else
19469 # Is the header compilable?
19470 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19472 cat >conftest.$ac_ext <<_ACEOF
19473 #line $LINENO "configure"
19474 /* confdefs.h. */
19475 _ACEOF
19476 cat confdefs.h >>conftest.$ac_ext
19477 cat >>conftest.$ac_ext <<_ACEOF
19478 /* end confdefs.h. */
19479 $ac_includes_default
19480 #include <$ac_header>
19481 _ACEOF
19482 rm -f conftest.$ac_objext
19483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19484 (eval $ac_compile) 2>&5
19485 ac_status=$?
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } &&
19488 { ac_try='test -s conftest.$ac_objext'
19489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19491 ac_status=$?
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; }; then
19494 ac_header_compiler=yes
19495 else
19496 echo "$as_me: failed program was:" >&5
19497 sed 's/^/| /' conftest.$ac_ext >&5
19499 ac_header_compiler=no
19501 rm -f conftest.$ac_objext conftest.$ac_ext
19502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19503 echo "${ECHO_T}$ac_header_compiler" >&6
19505 # Is the header present?
19506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19508 cat >conftest.$ac_ext <<_ACEOF
19509 #line $LINENO "configure"
19510 /* confdefs.h. */
19511 _ACEOF
19512 cat confdefs.h >>conftest.$ac_ext
19513 cat >>conftest.$ac_ext <<_ACEOF
19514 /* end confdefs.h. */
19515 #include <$ac_header>
19516 _ACEOF
19517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19519 ac_status=$?
19520 grep -v '^ *+' conftest.er1 >conftest.err
19521 rm -f conftest.er1
19522 cat conftest.err >&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); } >/dev/null; then
19525 if test -s conftest.err; then
19526 ac_cpp_err=$ac_c_preproc_warn_flag
19527 else
19528 ac_cpp_err=
19530 else
19531 ac_cpp_err=yes
19533 if test -z "$ac_cpp_err"; then
19534 ac_header_preproc=yes
19535 else
19536 echo "$as_me: failed program was:" >&5
19537 sed 's/^/| /' conftest.$ac_ext >&5
19539 ac_header_preproc=no
19541 rm -f conftest.err conftest.$ac_ext
19542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19543 echo "${ECHO_T}$ac_header_preproc" >&6
19545 # So? What about this header?
19546 case $ac_header_compiler:$ac_header_preproc in
19547 yes:no )
19548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19553 cat <<\_ASBOX
19554 ## ------------------------------------ ##
19555 ## Report this to bug-autoconf@gnu.org. ##
19556 ## ------------------------------------ ##
19557 _ASBOX
19559 sed "s/^/$as_me: WARNING: /" >&2
19561 no:yes )
19562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19565 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19569 cat <<\_ASBOX
19570 ## ------------------------------------ ##
19571 ## Report this to bug-autoconf@gnu.org. ##
19572 ## ------------------------------------ ##
19573 _ASBOX
19575 sed "s/^/$as_me: WARNING: /" >&2
19577 esac
19578 echo "$as_me:$LINENO: checking for $ac_header" >&5
19579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19581 echo $ECHO_N "(cached) $ECHO_C" >&6
19582 else
19583 eval "$as_ac_Header=$ac_header_preproc"
19585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19590 cat >>confdefs.h <<_ACEOF
19591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19592 _ACEOF
19596 done
19598 echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
19599 echo $ECHO_N "checking whether getcwd (NULL, 0) allocates memory for result... $ECHO_C" >&6
19600 if test "${ac_cv_func_getcwd_null+set}" = set; then
19601 echo $ECHO_N "(cached) $ECHO_C" >&6
19602 else
19603 if test "$cross_compiling" = yes; then
19604 ac_cv_func_getcwd_null=no
19605 else
19606 cat >conftest.$ac_ext <<_ACEOF
19607 #line $LINENO "configure"
19608 /* confdefs.h. */
19609 _ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h. */
19614 # ifdef HAVE_STDLIB_H
19615 # include <stdlib.h>
19616 # endif
19617 # ifdef HAVE_UNISTD_H
19618 # include <unistd.h>
19619 # endif
19620 # ifndef getcwd
19621 char *getcwd ();
19622 # endif
19624 main ()
19626 if (chdir ("/") != 0)
19627 exit (1);
19628 else
19630 char *f = getcwd (NULL, 0);
19631 exit (! (f && f[0] == '/' && !f[1]));
19634 _ACEOF
19635 rm -f conftest$ac_exeext
19636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19637 (eval $ac_link) 2>&5
19638 ac_status=$?
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642 (eval $ac_try) 2>&5
19643 ac_status=$?
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; }; then
19646 ac_cv_func_getcwd_null=yes
19647 else
19648 echo "$as_me: program exited with status $ac_status" >&5
19649 echo "$as_me: failed program was:" >&5
19650 sed 's/^/| /' conftest.$ac_ext >&5
19652 ( exit $ac_status )
19653 ac_cv_func_getcwd_null=no
19655 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19658 echo "$as_me:$LINENO: result: $ac_cv_func_getcwd_null" >&5
19659 echo "${ECHO_T}$ac_cv_func_getcwd_null" >&6
19660 if test $ac_cv_func_getcwd_null = yes; then
19662 cat >>confdefs.h <<\_ACEOF
19663 #define HAVE_GETCWD_NULL 1
19664 _ACEOF
19673 for ac_header in limits.h stdlib.h sys/param.h unistd.h
19675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19677 echo "$as_me:$LINENO: checking for $ac_header" >&5
19678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19680 echo $ECHO_N "(cached) $ECHO_C" >&6
19682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19684 else
19685 # Is the header compilable?
19686 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19687 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19688 cat >conftest.$ac_ext <<_ACEOF
19689 #line $LINENO "configure"
19690 /* confdefs.h. */
19691 _ACEOF
19692 cat confdefs.h >>conftest.$ac_ext
19693 cat >>conftest.$ac_ext <<_ACEOF
19694 /* end confdefs.h. */
19695 $ac_includes_default
19696 #include <$ac_header>
19697 _ACEOF
19698 rm -f conftest.$ac_objext
19699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19700 (eval $ac_compile) 2>&5
19701 ac_status=$?
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); } &&
19704 { ac_try='test -s conftest.$ac_objext'
19705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19706 (eval $ac_try) 2>&5
19707 ac_status=$?
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; }; then
19710 ac_header_compiler=yes
19711 else
19712 echo "$as_me: failed program was:" >&5
19713 sed 's/^/| /' conftest.$ac_ext >&5
19715 ac_header_compiler=no
19717 rm -f conftest.$ac_objext conftest.$ac_ext
19718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19719 echo "${ECHO_T}$ac_header_compiler" >&6
19721 # Is the header present?
19722 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19724 cat >conftest.$ac_ext <<_ACEOF
19725 #line $LINENO "configure"
19726 /* confdefs.h. */
19727 _ACEOF
19728 cat confdefs.h >>conftest.$ac_ext
19729 cat >>conftest.$ac_ext <<_ACEOF
19730 /* end confdefs.h. */
19731 #include <$ac_header>
19732 _ACEOF
19733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19735 ac_status=$?
19736 grep -v '^ *+' conftest.er1 >conftest.err
19737 rm -f conftest.er1
19738 cat conftest.err >&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } >/dev/null; then
19741 if test -s conftest.err; then
19742 ac_cpp_err=$ac_c_preproc_warn_flag
19743 else
19744 ac_cpp_err=
19746 else
19747 ac_cpp_err=yes
19749 if test -z "$ac_cpp_err"; then
19750 ac_header_preproc=yes
19751 else
19752 echo "$as_me: failed program was:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19755 ac_header_preproc=no
19757 rm -f conftest.err conftest.$ac_ext
19758 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19759 echo "${ECHO_T}$ac_header_preproc" >&6
19761 # So? What about this header?
19762 case $ac_header_compiler:$ac_header_preproc in
19763 yes:no )
19764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19769 cat <<\_ASBOX
19770 ## ------------------------------------ ##
19771 ## Report this to bug-autoconf@gnu.org. ##
19772 ## ------------------------------------ ##
19773 _ASBOX
19775 sed "s/^/$as_me: WARNING: /" >&2
19777 no:yes )
19778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19785 cat <<\_ASBOX
19786 ## ------------------------------------ ##
19787 ## Report this to bug-autoconf@gnu.org. ##
19788 ## ------------------------------------ ##
19789 _ASBOX
19791 sed "s/^/$as_me: WARNING: /" >&2
19793 esac
19794 echo "$as_me:$LINENO: checking for $ac_header" >&5
19795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19797 echo $ECHO_N "(cached) $ECHO_C" >&6
19798 else
19799 eval "$as_ac_Header=$ac_header_preproc"
19801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19805 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19806 cat >>confdefs.h <<_ACEOF
19807 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19808 _ACEOF
19812 done
19815 for ac_func in getcwd
19817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19818 echo "$as_me:$LINENO: checking for $ac_func" >&5
19819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19820 if eval "test \"\${$as_ac_var+set}\" = set"; then
19821 echo $ECHO_N "(cached) $ECHO_C" >&6
19822 else
19823 cat >conftest.$ac_ext <<_ACEOF
19824 #line $LINENO "configure"
19825 /* confdefs.h. */
19826 _ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h. */
19830 /* System header to define __stub macros and hopefully few prototypes,
19831 which can conflict with char $ac_func (); below.
19832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19833 <limits.h> exists even on freestanding compilers. */
19834 #ifdef __STDC__
19835 # include <limits.h>
19836 #else
19837 # include <assert.h>
19838 #endif
19839 /* Override any gcc2 internal prototype to avoid an error. */
19840 #ifdef __cplusplus
19841 extern "C"
19843 #endif
19844 /* We use char because int might match the return type of a gcc2
19845 builtin and then its argument prototype would still apply. */
19846 char $ac_func ();
19847 /* The GNU C library defines this for functions which it implements
19848 to always fail with ENOSYS. Some functions are actually named
19849 something starting with __ and the normal name is an alias. */
19850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19851 choke me
19852 #else
19853 char (*f) () = $ac_func;
19854 #endif
19855 #ifdef __cplusplus
19857 #endif
19860 main ()
19862 return f != $ac_func;
19864 return 0;
19866 _ACEOF
19867 rm -f conftest.$ac_objext conftest$ac_exeext
19868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19869 (eval $ac_link) 2>&5
19870 ac_status=$?
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); } &&
19873 { ac_try='test -s conftest$ac_exeext'
19874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19875 (eval $ac_try) 2>&5
19876 ac_status=$?
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); }; }; then
19879 eval "$as_ac_var=yes"
19880 else
19881 echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19884 eval "$as_ac_var=no"
19886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19890 if test `eval echo '${'$as_ac_var'}'` = yes; then
19891 cat >>confdefs.h <<_ACEOF
19892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19893 _ACEOF
19896 done
19906 for ac_header in limits.h stdlib.h sys/types.h unistd.h
19908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19910 echo "$as_me:$LINENO: checking for $ac_header" >&5
19911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
19915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19917 else
19918 # Is the header compilable?
19919 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19921 cat >conftest.$ac_ext <<_ACEOF
19922 #line $LINENO "configure"
19923 /* confdefs.h. */
19924 _ACEOF
19925 cat confdefs.h >>conftest.$ac_ext
19926 cat >>conftest.$ac_ext <<_ACEOF
19927 /* end confdefs.h. */
19928 $ac_includes_default
19929 #include <$ac_header>
19930 _ACEOF
19931 rm -f conftest.$ac_objext
19932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19933 (eval $ac_compile) 2>&5
19934 ac_status=$?
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); } &&
19937 { ac_try='test -s conftest.$ac_objext'
19938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939 (eval $ac_try) 2>&5
19940 ac_status=$?
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; }; then
19943 ac_header_compiler=yes
19944 else
19945 echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19948 ac_header_compiler=no
19950 rm -f conftest.$ac_objext conftest.$ac_ext
19951 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19952 echo "${ECHO_T}$ac_header_compiler" >&6
19954 # Is the header present?
19955 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19957 cat >conftest.$ac_ext <<_ACEOF
19958 #line $LINENO "configure"
19959 /* confdefs.h. */
19960 _ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h. */
19964 #include <$ac_header>
19965 _ACEOF
19966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19968 ac_status=$?
19969 grep -v '^ *+' conftest.er1 >conftest.err
19970 rm -f conftest.er1
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } >/dev/null; then
19974 if test -s conftest.err; then
19975 ac_cpp_err=$ac_c_preproc_warn_flag
19976 else
19977 ac_cpp_err=
19979 else
19980 ac_cpp_err=yes
19982 if test -z "$ac_cpp_err"; then
19983 ac_header_preproc=yes
19984 else
19985 echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.$ac_ext >&5
19988 ac_header_preproc=no
19990 rm -f conftest.err conftest.$ac_ext
19991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19992 echo "${ECHO_T}$ac_header_preproc" >&6
19994 # So? What about this header?
19995 case $ac_header_compiler:$ac_header_preproc in
19996 yes:no )
19997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20002 cat <<\_ASBOX
20003 ## ------------------------------------ ##
20004 ## Report this to bug-autoconf@gnu.org. ##
20005 ## ------------------------------------ ##
20006 _ASBOX
20008 sed "s/^/$as_me: WARNING: /" >&2
20010 no:yes )
20011 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20012 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20013 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20014 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20018 cat <<\_ASBOX
20019 ## ------------------------------------ ##
20020 ## Report this to bug-autoconf@gnu.org. ##
20021 ## ------------------------------------ ##
20022 _ASBOX
20024 sed "s/^/$as_me: WARNING: /" >&2
20026 esac
20027 echo "$as_me:$LINENO: checking for $ac_header" >&5
20028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20030 echo $ECHO_N "(cached) $ECHO_C" >&6
20031 else
20032 eval "$as_ac_Header=$ac_header_preproc"
20034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20039 cat >>confdefs.h <<_ACEOF
20040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20041 _ACEOF
20045 done
20067 # called by mkstemp
20080 ac_header_dirent=no
20081 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20082 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20083 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20084 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20086 echo $ECHO_N "(cached) $ECHO_C" >&6
20087 else
20088 cat >conftest.$ac_ext <<_ACEOF
20089 #line $LINENO "configure"
20090 /* confdefs.h. */
20091 _ACEOF
20092 cat confdefs.h >>conftest.$ac_ext
20093 cat >>conftest.$ac_ext <<_ACEOF
20094 /* end confdefs.h. */
20095 #include <sys/types.h>
20096 #include <$ac_hdr>
20099 main ()
20101 if ((DIR *) 0)
20102 return 0;
20104 return 0;
20106 _ACEOF
20107 rm -f conftest.$ac_objext
20108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20109 (eval $ac_compile) 2>&5
20110 ac_status=$?
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); } &&
20113 { ac_try='test -s conftest.$ac_objext'
20114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20115 (eval $ac_try) 2>&5
20116 ac_status=$?
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); }; }; then
20119 eval "$as_ac_Header=yes"
20120 else
20121 echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20124 eval "$as_ac_Header=no"
20126 rm -f conftest.$ac_objext conftest.$ac_ext
20128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20131 cat >>confdefs.h <<_ACEOF
20132 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20133 _ACEOF
20135 ac_header_dirent=$ac_hdr; break
20138 done
20139 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20140 if test $ac_header_dirent = dirent.h; then
20142 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20143 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20144 if test "${ac_cv_search_opendir+set}" = set; then
20145 echo $ECHO_N "(cached) $ECHO_C" >&6
20146 else
20148 ac_func_search_save_LIBS=$LIBS
20149 ac_cv_search_opendir=no
20150 cat >conftest.$ac_ext <<_ACEOF
20151 #line $LINENO "configure"
20152 /* confdefs.h. */
20153 _ACEOF
20154 cat confdefs.h >>conftest.$ac_ext
20155 cat >>conftest.$ac_ext <<_ACEOF
20156 /* end confdefs.h. */
20158 /* Override any gcc2 internal prototype to avoid an error. */
20159 #ifdef __cplusplus
20160 extern "C"
20161 #endif
20162 /* We use char because int might match the return type of a gcc2
20163 builtin and then its argument prototype would still apply. */
20164 char opendir ();
20166 main ()
20168 opendir ();
20170 return 0;
20172 _ACEOF
20173 rm -f conftest.$ac_objext conftest$ac_exeext
20174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20175 (eval $ac_link) 2>&5
20176 ac_status=$?
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); } &&
20179 { ac_try='test -s conftest$ac_exeext'
20180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20181 (eval $ac_try) 2>&5
20182 ac_status=$?
20183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184 (exit $ac_status); }; }; then
20185 ac_cv_search_opendir='none required'
20186 else
20187 echo "$as_me: failed program was:" >&5
20188 sed 's/^/| /' conftest.$ac_ext >&5
20191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20192 if test "$ac_cv_search_opendir" = no; then
20193 for ac_lib in dir; do
20194 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20195 cat >conftest.$ac_ext <<_ACEOF
20196 #line $LINENO "configure"
20197 /* confdefs.h. */
20198 _ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h. */
20203 /* Override any gcc2 internal prototype to avoid an error. */
20204 #ifdef __cplusplus
20205 extern "C"
20206 #endif
20207 /* We use char because int might match the return type of a gcc2
20208 builtin and then its argument prototype would still apply. */
20209 char opendir ();
20211 main ()
20213 opendir ();
20215 return 0;
20217 _ACEOF
20218 rm -f conftest.$ac_objext conftest$ac_exeext
20219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20220 (eval $ac_link) 2>&5
20221 ac_status=$?
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); } &&
20224 { ac_try='test -s conftest$ac_exeext'
20225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20226 (eval $ac_try) 2>&5
20227 ac_status=$?
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; }; then
20230 ac_cv_search_opendir="-l$ac_lib"; break
20231 else
20232 echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.$ac_ext >&5
20236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20237 done
20239 LIBS=$ac_func_search_save_LIBS
20242 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20243 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20245 if test "$ac_cv_search_opendir" = no; then :
20247 else
20248 if test "$ac_cv_search_opendir" = 'none required'; then :
20250 else
20251 LIBS="$ac_cv_search_opendir $LIBS"
20256 else
20258 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20259 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20260 if test "${ac_cv_search_opendir+set}" = set; then
20261 echo $ECHO_N "(cached) $ECHO_C" >&6
20262 else
20264 ac_func_search_save_LIBS=$LIBS
20265 ac_cv_search_opendir=no
20266 cat >conftest.$ac_ext <<_ACEOF
20267 #line $LINENO "configure"
20268 /* confdefs.h. */
20269 _ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h. */
20274 /* Override any gcc2 internal prototype to avoid an error. */
20275 #ifdef __cplusplus
20276 extern "C"
20277 #endif
20278 /* We use char because int might match the return type of a gcc2
20279 builtin and then its argument prototype would still apply. */
20280 char opendir ();
20282 main ()
20284 opendir ();
20286 return 0;
20288 _ACEOF
20289 rm -f conftest.$ac_objext conftest$ac_exeext
20290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20291 (eval $ac_link) 2>&5
20292 ac_status=$?
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); } &&
20295 { ac_try='test -s conftest$ac_exeext'
20296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20297 (eval $ac_try) 2>&5
20298 ac_status=$?
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); }; }; then
20301 ac_cv_search_opendir='none required'
20302 else
20303 echo "$as_me: failed program was:" >&5
20304 sed 's/^/| /' conftest.$ac_ext >&5
20307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20308 if test "$ac_cv_search_opendir" = no; then
20309 for ac_lib in x; do
20310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20311 cat >conftest.$ac_ext <<_ACEOF
20312 #line $LINENO "configure"
20313 /* confdefs.h. */
20314 _ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h. */
20319 /* Override any gcc2 internal prototype to avoid an error. */
20320 #ifdef __cplusplus
20321 extern "C"
20322 #endif
20323 /* We use char because int might match the return type of a gcc2
20324 builtin and then its argument prototype would still apply. */
20325 char opendir ();
20327 main ()
20329 opendir ();
20331 return 0;
20333 _ACEOF
20334 rm -f conftest.$ac_objext conftest$ac_exeext
20335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20336 (eval $ac_link) 2>&5
20337 ac_status=$?
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } &&
20340 { ac_try='test -s conftest$ac_exeext'
20341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342 (eval $ac_try) 2>&5
20343 ac_status=$?
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); }; }; then
20346 ac_cv_search_opendir="-l$ac_lib"; break
20347 else
20348 echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20353 done
20355 LIBS=$ac_func_search_save_LIBS
20358 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20359 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20361 if test "$ac_cv_search_opendir" = no; then :
20363 else
20364 if test "$ac_cv_search_opendir" = 'none required'; then :
20366 else
20367 LIBS="$ac_cv_search_opendir $LIBS"
20374 dirfd_headers='
20375 #if HAVE_DIRENT_H
20376 # include <dirent.h>
20377 #else /* not HAVE_DIRENT_H */
20378 # define dirent direct
20379 # if HAVE_SYS_NDIR_H
20380 # include <sys/ndir.h>
20381 # endif /* HAVE_SYS_NDIR_H */
20382 # if HAVE_SYS_DIR_H
20383 # include <sys/dir.h>
20384 # endif /* HAVE_SYS_DIR_H */
20385 # if HAVE_NDIR_H
20386 # include <ndir.h>
20387 # endif /* HAVE_NDIR_H */
20388 #endif /* HAVE_DIRENT_H */
20391 for ac_func in dirfd
20393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20394 echo "$as_me:$LINENO: checking for $ac_func" >&5
20395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20396 if eval "test \"\${$as_ac_var+set}\" = set"; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20398 else
20399 cat >conftest.$ac_ext <<_ACEOF
20400 #line $LINENO "configure"
20401 /* confdefs.h. */
20402 _ACEOF
20403 cat confdefs.h >>conftest.$ac_ext
20404 cat >>conftest.$ac_ext <<_ACEOF
20405 /* end confdefs.h. */
20406 /* System header to define __stub macros and hopefully few prototypes,
20407 which can conflict with char $ac_func (); below.
20408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20409 <limits.h> exists even on freestanding compilers. */
20410 #ifdef __STDC__
20411 # include <limits.h>
20412 #else
20413 # include <assert.h>
20414 #endif
20415 /* Override any gcc2 internal prototype to avoid an error. */
20416 #ifdef __cplusplus
20417 extern "C"
20419 #endif
20420 /* We use char because int might match the return type of a gcc2
20421 builtin and then its argument prototype would still apply. */
20422 char $ac_func ();
20423 /* The GNU C library defines this for functions which it implements
20424 to always fail with ENOSYS. Some functions are actually named
20425 something starting with __ and the normal name is an alias. */
20426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20427 choke me
20428 #else
20429 char (*f) () = $ac_func;
20430 #endif
20431 #ifdef __cplusplus
20433 #endif
20436 main ()
20438 return f != $ac_func;
20440 return 0;
20442 _ACEOF
20443 rm -f conftest.$ac_objext conftest$ac_exeext
20444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20445 (eval $ac_link) 2>&5
20446 ac_status=$?
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); } &&
20449 { ac_try='test -s conftest$ac_exeext'
20450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20451 (eval $ac_try) 2>&5
20452 ac_status=$?
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); }; }; then
20455 eval "$as_ac_var=yes"
20456 else
20457 echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20460 eval "$as_ac_var=no"
20462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20466 if test `eval echo '${'$as_ac_var'}'` = yes; then
20467 cat >>confdefs.h <<_ACEOF
20468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20469 _ACEOF
20472 done
20474 echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
20475 echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6
20476 if test "${ac_cv_have_decl_dirfd+set}" = set; then
20477 echo $ECHO_N "(cached) $ECHO_C" >&6
20478 else
20479 cat >conftest.$ac_ext <<_ACEOF
20480 #line $LINENO "configure"
20481 /* confdefs.h. */
20482 _ACEOF
20483 cat confdefs.h >>conftest.$ac_ext
20484 cat >>conftest.$ac_ext <<_ACEOF
20485 /* end confdefs.h. */
20486 $dirfd_headers
20489 main ()
20491 #ifndef dirfd
20492 char *p = (char *) dirfd;
20493 #endif
20496 return 0;
20498 _ACEOF
20499 rm -f conftest.$ac_objext
20500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20501 (eval $ac_compile) 2>&5
20502 ac_status=$?
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); } &&
20505 { ac_try='test -s conftest.$ac_objext'
20506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20507 (eval $ac_try) 2>&5
20508 ac_status=$?
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); }; }; then
20511 ac_cv_have_decl_dirfd=yes
20512 else
20513 echo "$as_me: failed program was:" >&5
20514 sed 's/^/| /' conftest.$ac_ext >&5
20516 ac_cv_have_decl_dirfd=no
20518 rm -f conftest.$ac_objext conftest.$ac_ext
20520 echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
20521 echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6
20522 if test $ac_cv_have_decl_dirfd = yes; then
20524 cat >>confdefs.h <<_ACEOF
20525 #define HAVE_DECL_DIRFD 1
20526 _ACEOF
20529 else
20530 cat >>confdefs.h <<_ACEOF
20531 #define HAVE_DECL_DIRFD 0
20532 _ACEOF
20539 echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
20540 echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6
20541 if test "${jm_cv_func_dirfd_macro+set}" = set; then
20542 echo $ECHO_N "(cached) $ECHO_C" >&6
20543 else
20544 cat >conftest.$ac_ext <<_ACEOF
20545 #line $LINENO "configure"
20546 /* confdefs.h. */
20547 _ACEOF
20548 cat confdefs.h >>conftest.$ac_ext
20549 cat >>conftest.$ac_ext <<_ACEOF
20550 /* end confdefs.h. */
20551 $dirfd_headers
20552 #ifdef dirfd
20553 dirent_header_defines_dirfd
20554 #endif
20555 _ACEOF
20556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20557 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
20558 jm_cv_func_dirfd_macro=yes
20559 else
20560 jm_cv_func_dirfd_macro=no
20562 rm -f conftest*
20565 echo "$as_me:$LINENO: result: $jm_cv_func_dirfd_macro" >&5
20566 echo "${ECHO_T}$jm_cv_func_dirfd_macro" >&6
20568 # Use the replacement only if we have no function, macro,
20569 # or declaration with that name.
20570 if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
20571 = no,no,no; then
20573 for ac_func in dirfd
20575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20576 echo "$as_me:$LINENO: checking for $ac_func" >&5
20577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20578 if eval "test \"\${$as_ac_var+set}\" = set"; then
20579 echo $ECHO_N "(cached) $ECHO_C" >&6
20580 else
20581 cat >conftest.$ac_ext <<_ACEOF
20582 #line $LINENO "configure"
20583 /* confdefs.h. */
20584 _ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20588 /* System header to define __stub macros and hopefully few prototypes,
20589 which can conflict with char $ac_func (); below.
20590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20591 <limits.h> exists even on freestanding compilers. */
20592 #ifdef __STDC__
20593 # include <limits.h>
20594 #else
20595 # include <assert.h>
20596 #endif
20597 /* Override any gcc2 internal prototype to avoid an error. */
20598 #ifdef __cplusplus
20599 extern "C"
20601 #endif
20602 /* We use char because int might match the return type of a gcc2
20603 builtin and then its argument prototype would still apply. */
20604 char $ac_func ();
20605 /* The GNU C library defines this for functions which it implements
20606 to always fail with ENOSYS. Some functions are actually named
20607 something starting with __ and the normal name is an alias. */
20608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20609 choke me
20610 #else
20611 char (*f) () = $ac_func;
20612 #endif
20613 #ifdef __cplusplus
20615 #endif
20618 main ()
20620 return f != $ac_func;
20622 return 0;
20624 _ACEOF
20625 rm -f conftest.$ac_objext conftest$ac_exeext
20626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20627 (eval $ac_link) 2>&5
20628 ac_status=$?
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); } &&
20631 { ac_try='test -s conftest$ac_exeext'
20632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633 (eval $ac_try) 2>&5
20634 ac_status=$?
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); }; }; then
20637 eval "$as_ac_var=yes"
20638 else
20639 echo "$as_me: failed program was:" >&5
20640 sed 's/^/| /' conftest.$ac_ext >&5
20642 eval "$as_ac_var=no"
20644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20647 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20648 if test `eval echo '${'$as_ac_var'}'` = yes; then
20649 cat >>confdefs.h <<_ACEOF
20650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20651 _ACEOF
20653 else
20654 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20656 done
20659 echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
20660 echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6
20661 if test "${ac_cv_sys_dir_fd_member_name+set}" = set; then
20662 echo $ECHO_N "(cached) $ECHO_C" >&6
20663 else
20665 dirfd_save_CFLAGS=$CFLAGS
20666 for ac_expr in d_fd dd_fd; do
20668 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
20669 cat >conftest.$ac_ext <<_ACEOF
20670 #line $LINENO "configure"
20671 /* confdefs.h. */
20672 _ACEOF
20673 cat confdefs.h >>conftest.$ac_ext
20674 cat >>conftest.$ac_ext <<_ACEOF
20675 /* end confdefs.h. */
20676 $dirfd_headers
20679 main ()
20681 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
20683 return 0;
20685 _ACEOF
20686 rm -f conftest.$ac_objext
20687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20688 (eval $ac_compile) 2>&5
20689 ac_status=$?
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); } &&
20692 { ac_try='test -s conftest.$ac_objext'
20693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20694 (eval $ac_try) 2>&5
20695 ac_status=$?
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); }; }; then
20698 dir_fd_found=yes
20700 else
20701 echo "$as_me: failed program was:" >&5
20702 sed 's/^/| /' conftest.$ac_ext >&5
20705 rm -f conftest.$ac_objext conftest.$ac_ext
20706 CFLAGS=$dirfd_save_CFLAGS
20707 test "$dir_fd_found" = yes && break
20708 done
20709 test "$dir_fd_found" = yes || ac_expr=-1
20711 ac_cv_sys_dir_fd_member_name=$ac_expr
20715 echo "$as_me:$LINENO: result: $ac_cv_sys_dir_fd_member_name" >&5
20716 echo "${ECHO_T}$ac_cv_sys_dir_fd_member_name" >&6
20717 if test $ac_cv_have_decl_dirfd = no; then
20719 cat >>confdefs.h <<_ACEOF
20720 #define DIR_FD_MEMBER_NAME $ac_cv_sys_dir_fd_member_name
20721 _ACEOF
20729 for ac_header in sys/acl.h
20731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20733 echo "$as_me:$LINENO: checking for $ac_header" >&5
20734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20736 echo $ECHO_N "(cached) $ECHO_C" >&6
20738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20740 else
20741 # Is the header compilable?
20742 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20743 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20744 cat >conftest.$ac_ext <<_ACEOF
20745 #line $LINENO "configure"
20746 /* confdefs.h. */
20747 _ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h. */
20751 $ac_includes_default
20752 #include <$ac_header>
20753 _ACEOF
20754 rm -f conftest.$ac_objext
20755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20756 (eval $ac_compile) 2>&5
20757 ac_status=$?
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } &&
20760 { ac_try='test -s conftest.$ac_objext'
20761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20762 (eval $ac_try) 2>&5
20763 ac_status=$?
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); }; }; then
20766 ac_header_compiler=yes
20767 else
20768 echo "$as_me: failed program was:" >&5
20769 sed 's/^/| /' conftest.$ac_ext >&5
20771 ac_header_compiler=no
20773 rm -f conftest.$ac_objext conftest.$ac_ext
20774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20775 echo "${ECHO_T}$ac_header_compiler" >&6
20777 # Is the header present?
20778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20780 cat >conftest.$ac_ext <<_ACEOF
20781 #line $LINENO "configure"
20782 /* confdefs.h. */
20783 _ACEOF
20784 cat confdefs.h >>conftest.$ac_ext
20785 cat >>conftest.$ac_ext <<_ACEOF
20786 /* end confdefs.h. */
20787 #include <$ac_header>
20788 _ACEOF
20789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20791 ac_status=$?
20792 grep -v '^ *+' conftest.er1 >conftest.err
20793 rm -f conftest.er1
20794 cat conftest.err >&5
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); } >/dev/null; then
20797 if test -s conftest.err; then
20798 ac_cpp_err=$ac_c_preproc_warn_flag
20799 else
20800 ac_cpp_err=
20802 else
20803 ac_cpp_err=yes
20805 if test -z "$ac_cpp_err"; then
20806 ac_header_preproc=yes
20807 else
20808 echo "$as_me: failed program was:" >&5
20809 sed 's/^/| /' conftest.$ac_ext >&5
20811 ac_header_preproc=no
20813 rm -f conftest.err conftest.$ac_ext
20814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20815 echo "${ECHO_T}$ac_header_preproc" >&6
20817 # So? What about this header?
20818 case $ac_header_compiler:$ac_header_preproc in
20819 yes:no )
20820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20825 cat <<\_ASBOX
20826 ## ------------------------------------ ##
20827 ## Report this to bug-autoconf@gnu.org. ##
20828 ## ------------------------------------ ##
20829 _ASBOX
20831 sed "s/^/$as_me: WARNING: /" >&2
20833 no:yes )
20834 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20835 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20836 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20837 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20841 cat <<\_ASBOX
20842 ## ------------------------------------ ##
20843 ## Report this to bug-autoconf@gnu.org. ##
20844 ## ------------------------------------ ##
20845 _ASBOX
20847 sed "s/^/$as_me: WARNING: /" >&2
20849 esac
20850 echo "$as_me:$LINENO: checking for $ac_header" >&5
20851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20853 echo $ECHO_N "(cached) $ECHO_C" >&6
20854 else
20855 eval "$as_ac_Header=$ac_header_preproc"
20857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20862 cat >>confdefs.h <<_ACEOF
20863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20864 _ACEOF
20868 done
20871 for ac_func in acl
20873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20874 echo "$as_me:$LINENO: checking for $ac_func" >&5
20875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20876 if eval "test \"\${$as_ac_var+set}\" = set"; then
20877 echo $ECHO_N "(cached) $ECHO_C" >&6
20878 else
20879 cat >conftest.$ac_ext <<_ACEOF
20880 #line $LINENO "configure"
20881 /* confdefs.h. */
20882 _ACEOF
20883 cat confdefs.h >>conftest.$ac_ext
20884 cat >>conftest.$ac_ext <<_ACEOF
20885 /* end confdefs.h. */
20886 /* System header to define __stub macros and hopefully few prototypes,
20887 which can conflict with char $ac_func (); below.
20888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20889 <limits.h> exists even on freestanding compilers. */
20890 #ifdef __STDC__
20891 # include <limits.h>
20892 #else
20893 # include <assert.h>
20894 #endif
20895 /* Override any gcc2 internal prototype to avoid an error. */
20896 #ifdef __cplusplus
20897 extern "C"
20899 #endif
20900 /* We use char because int might match the return type of a gcc2
20901 builtin and then its argument prototype would still apply. */
20902 char $ac_func ();
20903 /* The GNU C library defines this for functions which it implements
20904 to always fail with ENOSYS. Some functions are actually named
20905 something starting with __ and the normal name is an alias. */
20906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20907 choke me
20908 #else
20909 char (*f) () = $ac_func;
20910 #endif
20911 #ifdef __cplusplus
20913 #endif
20916 main ()
20918 return f != $ac_func;
20920 return 0;
20922 _ACEOF
20923 rm -f conftest.$ac_objext conftest$ac_exeext
20924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20925 (eval $ac_link) 2>&5
20926 ac_status=$?
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); } &&
20929 { ac_try='test -s conftest$ac_exeext'
20930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20931 (eval $ac_try) 2>&5
20932 ac_status=$?
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); }; }; then
20935 eval "$as_ac_var=yes"
20936 else
20937 echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20940 eval "$as_ac_var=no"
20942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20946 if test `eval echo '${'$as_ac_var'}'` = yes; then
20947 cat >>confdefs.h <<_ACEOF
20948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20949 _ACEOF
20952 done
20954 echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
20955 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
20956 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
20957 echo $ECHO_N "(cached) $ECHO_C" >&6
20958 else
20959 rm -f conftest.sym conftest.file
20960 echo >conftest.file
20961 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
20962 if test "$cross_compiling" = yes; then
20963 ac_cv_func_lstat_dereferences_slashed_symlink=no
20964 else
20965 cat >conftest.$ac_ext <<_ACEOF
20966 #line $LINENO "configure"
20967 /* confdefs.h. */
20968 _ACEOF
20969 cat confdefs.h >>conftest.$ac_ext
20970 cat >>conftest.$ac_ext <<_ACEOF
20971 /* end confdefs.h. */
20972 $ac_includes_default
20974 main ()
20976 struct stat sbuf;
20977 /* Linux will dereference the symlink and fail.
20978 That is better in the sense that it means we will not
20979 have to compile and use the lstat wrapper. */
20980 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
20982 return 0;
20984 _ACEOF
20985 rm -f conftest$ac_exeext
20986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20987 (eval $ac_link) 2>&5
20988 ac_status=$?
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20992 (eval $ac_try) 2>&5
20993 ac_status=$?
20994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995 (exit $ac_status); }; }; then
20996 ac_cv_func_lstat_dereferences_slashed_symlink=yes
20997 else
20998 echo "$as_me: program exited with status $ac_status" >&5
20999 echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21002 ( exit $ac_status )
21003 ac_cv_func_lstat_dereferences_slashed_symlink=no
21005 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21007 else
21008 # If the `ln -s' command failed, then we probably don't even
21009 # have an lstat function.
21010 ac_cv_func_lstat_dereferences_slashed_symlink=no
21012 rm -f conftest.sym conftest.file
21015 echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
21016 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
21018 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
21020 cat >>confdefs.h <<_ACEOF
21021 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
21022 _ACEOF
21025 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
21026 LIBOBJS="$LIBOBJS lstat.$ac_objext"
21031 echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
21032 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
21033 if test "${jm_cv_func_lstat_empty_string_bug+set}" = set; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21035 else
21036 if test "$cross_compiling" = yes; then
21037 jm_cv_func_lstat_empty_string_bug=yes
21038 else
21039 cat >conftest.$ac_ext <<_ACEOF
21040 #line $LINENO "configure"
21041 /* confdefs.h. */
21042 _ACEOF
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h. */
21047 # include <sys/types.h>
21048 # include <sys/stat.h>
21051 main ()
21053 struct stat sbuf;
21054 exit (lstat ("", &sbuf) ? 1 : 0);
21057 _ACEOF
21058 rm -f conftest$ac_exeext
21059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21060 (eval $ac_link) 2>&5
21061 ac_status=$?
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21065 (eval $ac_try) 2>&5
21066 ac_status=$?
21067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068 (exit $ac_status); }; }; then
21069 jm_cv_func_lstat_empty_string_bug=yes
21070 else
21071 echo "$as_me: program exited with status $ac_status" >&5
21072 echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21075 ( exit $ac_status )
21076 jm_cv_func_lstat_empty_string_bug=no
21078 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21082 echo "$as_me:$LINENO: result: $jm_cv_func_lstat_empty_string_bug" >&5
21083 echo "${ECHO_T}$jm_cv_func_lstat_empty_string_bug" >&6
21084 if test $jm_cv_func_lstat_empty_string_bug = yes; then
21085 LIBOBJS="$LIBOBJS lstat.$ac_objext"
21087 cat >>confdefs.h <<\_ACEOF
21088 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
21089 _ACEOF
21094 # prerequisites
21098 for ac_header in sys/param.h
21100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21102 echo "$as_me:$LINENO: checking for $ac_header" >&5
21103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21105 echo $ECHO_N "(cached) $ECHO_C" >&6
21107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21109 else
21110 # Is the header compilable?
21111 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21113 cat >conftest.$ac_ext <<_ACEOF
21114 #line $LINENO "configure"
21115 /* confdefs.h. */
21116 _ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21120 $ac_includes_default
21121 #include <$ac_header>
21122 _ACEOF
21123 rm -f conftest.$ac_objext
21124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21125 (eval $ac_compile) 2>&5
21126 ac_status=$?
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); } &&
21129 { ac_try='test -s conftest.$ac_objext'
21130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21131 (eval $ac_try) 2>&5
21132 ac_status=$?
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); }; }; then
21135 ac_header_compiler=yes
21136 else
21137 echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21140 ac_header_compiler=no
21142 rm -f conftest.$ac_objext conftest.$ac_ext
21143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21144 echo "${ECHO_T}$ac_header_compiler" >&6
21146 # Is the header present?
21147 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21149 cat >conftest.$ac_ext <<_ACEOF
21150 #line $LINENO "configure"
21151 /* confdefs.h. */
21152 _ACEOF
21153 cat confdefs.h >>conftest.$ac_ext
21154 cat >>conftest.$ac_ext <<_ACEOF
21155 /* end confdefs.h. */
21156 #include <$ac_header>
21157 _ACEOF
21158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21160 ac_status=$?
21161 grep -v '^ *+' conftest.er1 >conftest.err
21162 rm -f conftest.er1
21163 cat conftest.err >&5
21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165 (exit $ac_status); } >/dev/null; then
21166 if test -s conftest.err; then
21167 ac_cpp_err=$ac_c_preproc_warn_flag
21168 else
21169 ac_cpp_err=
21171 else
21172 ac_cpp_err=yes
21174 if test -z "$ac_cpp_err"; then
21175 ac_header_preproc=yes
21176 else
21177 echo "$as_me: failed program was:" >&5
21178 sed 's/^/| /' conftest.$ac_ext >&5
21180 ac_header_preproc=no
21182 rm -f conftest.err conftest.$ac_ext
21183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21184 echo "${ECHO_T}$ac_header_preproc" >&6
21186 # So? What about this header?
21187 case $ac_header_compiler:$ac_header_preproc in
21188 yes:no )
21189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21194 cat <<\_ASBOX
21195 ## ------------------------------------ ##
21196 ## Report this to bug-autoconf@gnu.org. ##
21197 ## ------------------------------------ ##
21198 _ASBOX
21200 sed "s/^/$as_me: WARNING: /" >&2
21202 no:yes )
21203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21210 cat <<\_ASBOX
21211 ## ------------------------------------ ##
21212 ## Report this to bug-autoconf@gnu.org. ##
21213 ## ------------------------------------ ##
21214 _ASBOX
21216 sed "s/^/$as_me: WARNING: /" >&2
21218 esac
21219 echo "$as_me:$LINENO: checking for $ac_header" >&5
21220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21222 echo $ECHO_N "(cached) $ECHO_C" >&6
21223 else
21224 eval "$as_ac_Header=$ac_header_preproc"
21226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21231 cat >>confdefs.h <<_ACEOF
21232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21233 _ACEOF
21237 done
21239 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
21240 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
21241 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
21242 echo $ECHO_N "(cached) $ECHO_C" >&6
21243 else
21244 cat >conftest.$ac_ext <<_ACEOF
21245 #line $LINENO "configure"
21246 /* confdefs.h. */
21247 _ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h. */
21251 $ac_includes_default
21253 main ()
21255 #ifndef stpcpy
21256 char *p = (char *) stpcpy;
21257 #endif
21260 return 0;
21262 _ACEOF
21263 rm -f conftest.$ac_objext
21264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21265 (eval $ac_compile) 2>&5
21266 ac_status=$?
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); } &&
21269 { ac_try='test -s conftest.$ac_objext'
21270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271 (eval $ac_try) 2>&5
21272 ac_status=$?
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); }; }; then
21275 ac_cv_have_decl_stpcpy=yes
21276 else
21277 echo "$as_me: failed program was:" >&5
21278 sed 's/^/| /' conftest.$ac_ext >&5
21280 ac_cv_have_decl_stpcpy=no
21282 rm -f conftest.$ac_objext conftest.$ac_ext
21284 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
21285 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
21286 if test $ac_cv_have_decl_stpcpy = yes; then
21288 cat >>confdefs.h <<_ACEOF
21289 #define HAVE_DECL_STPCPY 1
21290 _ACEOF
21293 else
21294 cat >>confdefs.h <<_ACEOF
21295 #define HAVE_DECL_STPCPY 0
21296 _ACEOF
21303 # In the event that we have to use the replacement ftw.c,
21304 # see if we'll also need the replacement tsearch.c.
21305 echo "$as_me:$LINENO: checking for tdestroy" >&5
21306 echo $ECHO_N "checking for tdestroy... $ECHO_C" >&6
21307 if test "${ac_cv_func_tdestroy+set}" = set; then
21308 echo $ECHO_N "(cached) $ECHO_C" >&6
21309 else
21310 cat >conftest.$ac_ext <<_ACEOF
21311 #line $LINENO "configure"
21312 /* confdefs.h. */
21313 _ACEOF
21314 cat confdefs.h >>conftest.$ac_ext
21315 cat >>conftest.$ac_ext <<_ACEOF
21316 /* end confdefs.h. */
21317 /* System header to define __stub macros and hopefully few prototypes,
21318 which can conflict with char tdestroy (); below.
21319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21320 <limits.h> exists even on freestanding compilers. */
21321 #ifdef __STDC__
21322 # include <limits.h>
21323 #else
21324 # include <assert.h>
21325 #endif
21326 /* Override any gcc2 internal prototype to avoid an error. */
21327 #ifdef __cplusplus
21328 extern "C"
21330 #endif
21331 /* We use char because int might match the return type of a gcc2
21332 builtin and then its argument prototype would still apply. */
21333 char tdestroy ();
21334 /* The GNU C library defines this for functions which it implements
21335 to always fail with ENOSYS. Some functions are actually named
21336 something starting with __ and the normal name is an alias. */
21337 #if defined (__stub_tdestroy) || defined (__stub___tdestroy)
21338 choke me
21339 #else
21340 char (*f) () = tdestroy;
21341 #endif
21342 #ifdef __cplusplus
21344 #endif
21347 main ()
21349 return f != tdestroy;
21351 return 0;
21353 _ACEOF
21354 rm -f conftest.$ac_objext conftest$ac_exeext
21355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21356 (eval $ac_link) 2>&5
21357 ac_status=$?
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); } &&
21360 { ac_try='test -s conftest$ac_exeext'
21361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21362 (eval $ac_try) 2>&5
21363 ac_status=$?
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); }; }; then
21366 ac_cv_func_tdestroy=yes
21367 else
21368 echo "$as_me: failed program was:" >&5
21369 sed 's/^/| /' conftest.$ac_ext >&5
21371 ac_cv_func_tdestroy=no
21373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21375 echo "$as_me:$LINENO: result: $ac_cv_func_tdestroy" >&5
21376 echo "${ECHO_T}$ac_cv_func_tdestroy" >&6
21377 if test $ac_cv_func_tdestroy = yes; then
21379 else
21380 need_tdestroy=1
21384 echo "$as_me:$LINENO: checking for ftw/FTW_CHDIR that informs callback of failed chdir" >&5
21385 echo $ECHO_N "checking for ftw/FTW_CHDIR that informs callback of failed chdir... $ECHO_C" >&6
21386 if test "${ac_cv_func_ftw_working+set}" = set; then
21387 echo $ECHO_N "(cached) $ECHO_C" >&6
21388 else
21390 # The following test would fail prior to glibc-2.3.2, because `depth'
21391 # would be 2 rather than 4. Of course, now that we require FTW_DCH
21392 # and FTW_DCHP, this test fails even with GNU libc's fixed ftw.
21393 mkdir -p conftest.dir/a/b/c
21394 if test "$cross_compiling" = yes; then
21395 ac_cv_func_ftw_working=no
21396 else
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. */
21405 #include <string.h>
21406 #include <stdlib.h>
21407 #include <ftw.h>
21409 static char *_f[] = { "conftest.dir", "conftest.dir/a",
21410 "conftest.dir/a/b", "conftest.dir/a/b/c" };
21411 static char **p = _f;
21412 static int depth;
21414 static int
21415 cb (const char *file, const struct stat *sb, int file_type, struct FTW *info)
21417 if (strcmp (file, *p++) != 0)
21418 exit (1);
21419 ++depth;
21420 return 0;
21424 main ()
21426 /* Require these symbols, too. */
21427 int d1 = FTW_DCH;
21428 int d2 = FTW_DCHP;
21430 int err = nftw ("conftest.dir", cb, 30, FTW_PHYS | FTW_MOUNT | FTW_CHDIR);
21431 exit ((err == 0 && depth == 4) ? 0 : 1);
21434 _ACEOF
21435 rm -f conftest$ac_exeext
21436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21437 (eval $ac_link) 2>&5
21438 ac_status=$?
21439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21442 (eval $ac_try) 2>&5
21443 ac_status=$?
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); }; }; then
21446 ac_cv_func_ftw_working=yes
21447 else
21448 echo "$as_me: program exited with status $ac_status" >&5
21449 echo "$as_me: failed program was:" >&5
21450 sed 's/^/| /' conftest.$ac_ext >&5
21452 ( exit $ac_status )
21453 ac_cv_func_ftw_working=no
21455 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21458 echo "$as_me:$LINENO: result: $ac_cv_func_ftw_working" >&5
21459 echo "${ECHO_T}$ac_cv_func_ftw_working" >&6
21460 rm -rf conftest.dir
21461 if test $ac_cv_func_ftw_working = no; then
21462 LIBOBJS="$LIBOBJS ftw.$ac_objext"
21463 ac_config_links="$ac_config_links $ac_config_libobj_dir/ftw.h:$ac_config_libobj_dir/ftw_.h"
21465 # Add tsearch.o IFF we have to use the replacement ftw.c.
21466 if test -n "$need_tdestroy"; then
21467 LIBOBJS="$LIBOBJS tsearch.$ac_objext"
21468 # Link search.h to search_.h if we use the replacement tsearch.c.
21469 ac_config_links="$ac_config_links $ac_config_libobj_dir/search.h:$ac_config_libobj_dir/search_.h"
21477 for ac_func in lchown
21479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21480 echo "$as_me:$LINENO: checking for $ac_func" >&5
21481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21482 if eval "test \"\${$as_ac_var+set}\" = set"; then
21483 echo $ECHO_N "(cached) $ECHO_C" >&6
21484 else
21485 cat >conftest.$ac_ext <<_ACEOF
21486 #line $LINENO "configure"
21487 /* confdefs.h. */
21488 _ACEOF
21489 cat confdefs.h >>conftest.$ac_ext
21490 cat >>conftest.$ac_ext <<_ACEOF
21491 /* end confdefs.h. */
21492 /* System header to define __stub macros and hopefully few prototypes,
21493 which can conflict with char $ac_func (); below.
21494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21495 <limits.h> exists even on freestanding compilers. */
21496 #ifdef __STDC__
21497 # include <limits.h>
21498 #else
21499 # include <assert.h>
21500 #endif
21501 /* Override any gcc2 internal prototype to avoid an error. */
21502 #ifdef __cplusplus
21503 extern "C"
21505 #endif
21506 /* We use char because int might match the return type of a gcc2
21507 builtin and then its argument prototype would still apply. */
21508 char $ac_func ();
21509 /* The GNU C library defines this for functions which it implements
21510 to always fail with ENOSYS. Some functions are actually named
21511 something starting with __ and the normal name is an alias. */
21512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21513 choke me
21514 #else
21515 char (*f) () = $ac_func;
21516 #endif
21517 #ifdef __cplusplus
21519 #endif
21522 main ()
21524 return f != $ac_func;
21526 return 0;
21528 _ACEOF
21529 rm -f conftest.$ac_objext 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); } &&
21535 { ac_try='test -s conftest$ac_exeext'
21536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537 (eval $ac_try) 2>&5
21538 ac_status=$?
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); }; }; then
21541 eval "$as_ac_var=yes"
21542 else
21543 echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21546 eval "$as_ac_var=no"
21548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21551 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21552 if test `eval echo '${'$as_ac_var'}'` = yes; then
21553 cat >>confdefs.h <<_ACEOF
21554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21555 _ACEOF
21557 else
21558 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21560 done
21564 echo "$as_me:$LINENO: checking for rmdir-not-empty errno value" >&5
21565 echo $ECHO_N "checking for rmdir-not-empty errno value... $ECHO_C" >&6
21566 if test "${fetish_cv_func_rmdir_errno_not_empty+set}" = set; then
21567 echo $ECHO_N "(cached) $ECHO_C" >&6
21568 else
21570 # Arrange for deletion of the temporary directory this test creates.
21571 ac_clean_files="$ac_clean_files confdir2"
21572 mkdir confdir2; : > confdir2/file
21573 if test "$cross_compiling" = yes; then
21574 fetish_cv_func_rmdir_errno_not_empty=ENOTEMPTY
21576 else
21577 cat >conftest.$ac_ext <<_ACEOF
21578 #line $LINENO "configure"
21579 /* confdefs.h. */
21580 _ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h. */
21585 #include <stdio.h>
21586 #include <errno.h>
21587 #ifndef errno
21588 extern int errno;
21589 #endif
21590 int main ()
21592 FILE *s;
21593 int val;
21594 rmdir ("confdir2");
21595 val = errno;
21596 s = fopen ("confdir2/errno", "w");
21597 fprintf (s, "%d\n", val);
21598 exit (0);
21601 _ACEOF
21602 rm -f conftest$ac_exeext
21603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21604 (eval $ac_link) 2>&5
21605 ac_status=$?
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21609 (eval $ac_try) 2>&5
21610 ac_status=$?
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); }; }; then
21613 fetish_cv_func_rmdir_errno_not_empty=`cat confdir2/errno`
21614 else
21615 echo "$as_me: program exited with status $ac_status" >&5
21616 echo "$as_me: failed program was:" >&5
21617 sed 's/^/| /' conftest.$ac_ext >&5
21619 ( exit $ac_status )
21620 fetish_cv_func_rmdir_errno_not_empty='configure error in rmdir-errno.m4'
21622 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21627 echo "$as_me:$LINENO: result: $fetish_cv_func_rmdir_errno_not_empty" >&5
21628 echo "${ECHO_T}$fetish_cv_func_rmdir_errno_not_empty" >&6
21631 cat >>confdefs.h <<_ACEOF
21632 #define RMDIR_ERRNO_NOT_EMPTY $fetish_cv_func_rmdir_errno_not_empty
21633 _ACEOF
21636 test -z "$ac_cv_header_unistd_h" \
21638 for ac_header in unistd.h
21640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21642 echo "$as_me:$LINENO: checking for $ac_header" >&5
21643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21645 echo $ECHO_N "(cached) $ECHO_C" >&6
21647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21649 else
21650 # Is the header compilable?
21651 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21653 cat >conftest.$ac_ext <<_ACEOF
21654 #line $LINENO "configure"
21655 /* confdefs.h. */
21656 _ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h. */
21660 $ac_includes_default
21661 #include <$ac_header>
21662 _ACEOF
21663 rm -f conftest.$ac_objext
21664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21665 (eval $ac_compile) 2>&5
21666 ac_status=$?
21667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668 (exit $ac_status); } &&
21669 { ac_try='test -s conftest.$ac_objext'
21670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21671 (eval $ac_try) 2>&5
21672 ac_status=$?
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); }; }; then
21675 ac_header_compiler=yes
21676 else
21677 echo "$as_me: failed program was:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21680 ac_header_compiler=no
21682 rm -f conftest.$ac_objext conftest.$ac_ext
21683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21684 echo "${ECHO_T}$ac_header_compiler" >&6
21686 # Is the header present?
21687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21689 cat >conftest.$ac_ext <<_ACEOF
21690 #line $LINENO "configure"
21691 /* confdefs.h. */
21692 _ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696 #include <$ac_header>
21697 _ACEOF
21698 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21700 ac_status=$?
21701 grep -v '^ *+' conftest.er1 >conftest.err
21702 rm -f conftest.er1
21703 cat conftest.err >&5
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); } >/dev/null; then
21706 if test -s conftest.err; then
21707 ac_cpp_err=$ac_c_preproc_warn_flag
21708 else
21709 ac_cpp_err=
21711 else
21712 ac_cpp_err=yes
21714 if test -z "$ac_cpp_err"; then
21715 ac_header_preproc=yes
21716 else
21717 echo "$as_me: failed program was:" >&5
21718 sed 's/^/| /' conftest.$ac_ext >&5
21720 ac_header_preproc=no
21722 rm -f conftest.err conftest.$ac_ext
21723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21724 echo "${ECHO_T}$ac_header_preproc" >&6
21726 # So? What about this header?
21727 case $ac_header_compiler:$ac_header_preproc in
21728 yes:no )
21729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21734 cat <<\_ASBOX
21735 ## ------------------------------------ ##
21736 ## Report this to bug-autoconf@gnu.org. ##
21737 ## ------------------------------------ ##
21738 _ASBOX
21740 sed "s/^/$as_me: WARNING: /" >&2
21742 no:yes )
21743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21750 cat <<\_ASBOX
21751 ## ------------------------------------ ##
21752 ## Report this to bug-autoconf@gnu.org. ##
21753 ## ------------------------------------ ##
21754 _ASBOX
21756 sed "s/^/$as_me: WARNING: /" >&2
21758 esac
21759 echo "$as_me:$LINENO: checking for $ac_header" >&5
21760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21762 echo $ECHO_N "(cached) $ECHO_C" >&6
21763 else
21764 eval "$as_ac_Header=$ac_header_preproc"
21766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21771 cat >>confdefs.h <<_ACEOF
21772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21773 _ACEOF
21777 done
21779 echo "$as_me:$LINENO: checking for working chown" >&5
21780 echo $ECHO_N "checking for working chown... $ECHO_C" >&6
21781 if test "${jm_cv_func_working_chown+set}" = set; then
21782 echo $ECHO_N "(cached) $ECHO_C" >&6
21783 else
21784 if test "$cross_compiling" = yes; then
21785 jm_cv_func_working_chown=no
21786 else
21787 cat >conftest.$ac_ext <<_ACEOF
21788 #line $LINENO "configure"
21789 /* confdefs.h. */
21790 _ACEOF
21791 cat confdefs.h >>conftest.$ac_ext
21792 cat >>conftest.$ac_ext <<_ACEOF
21793 /* end confdefs.h. */
21795 # include <sys/types.h>
21796 # include <sys/stat.h>
21797 # include <fcntl.h>
21798 # ifdef HAVE_UNISTD_H
21799 # include <unistd.h>
21800 # endif
21803 main ()
21805 char *f = "conftest.chown";
21806 struct stat before, after;
21808 if (creat (f, 0600) < 0)
21809 exit (1);
21810 if (stat (f, &before) < 0)
21811 exit (1);
21812 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
21813 exit (1);
21814 if (stat (f, &after) < 0)
21815 exit (1);
21816 exit ((before.st_uid == after.st_uid
21817 && before.st_gid == after.st_gid) ? 0 : 1);
21820 _ACEOF
21821 rm -f conftest$ac_exeext
21822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21823 (eval $ac_link) 2>&5
21824 ac_status=$?
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21828 (eval $ac_try) 2>&5
21829 ac_status=$?
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); }; }; then
21832 jm_cv_func_working_chown=yes
21833 else
21834 echo "$as_me: program exited with status $ac_status" >&5
21835 echo "$as_me: failed program was:" >&5
21836 sed 's/^/| /' conftest.$ac_ext >&5
21838 ( exit $ac_status )
21839 jm_cv_func_working_chown=no
21841 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21845 echo "$as_me:$LINENO: result: $jm_cv_func_working_chown" >&5
21846 echo "${ECHO_T}$jm_cv_func_working_chown" >&6
21847 if test $jm_cv_func_working_chown = no; then
21848 LIBOBJS="$LIBOBJS chown.$ac_objext"
21850 cat >>confdefs.h <<\_ACEOF
21851 #define chown rpl_chown
21852 _ACEOF
21858 for ac_header in sys/time.h unistd.h
21860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21862 echo "$as_me:$LINENO: checking for $ac_header" >&5
21863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21865 echo $ECHO_N "(cached) $ECHO_C" >&6
21867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21869 else
21870 # Is the header compilable?
21871 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21873 cat >conftest.$ac_ext <<_ACEOF
21874 #line $LINENO "configure"
21875 /* confdefs.h. */
21876 _ACEOF
21877 cat confdefs.h >>conftest.$ac_ext
21878 cat >>conftest.$ac_ext <<_ACEOF
21879 /* end confdefs.h. */
21880 $ac_includes_default
21881 #include <$ac_header>
21882 _ACEOF
21883 rm -f conftest.$ac_objext
21884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21885 (eval $ac_compile) 2>&5
21886 ac_status=$?
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); } &&
21889 { ac_try='test -s conftest.$ac_objext'
21890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21891 (eval $ac_try) 2>&5
21892 ac_status=$?
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); }; }; then
21895 ac_header_compiler=yes
21896 else
21897 echo "$as_me: failed program was:" >&5
21898 sed 's/^/| /' conftest.$ac_ext >&5
21900 ac_header_compiler=no
21902 rm -f conftest.$ac_objext conftest.$ac_ext
21903 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21904 echo "${ECHO_T}$ac_header_compiler" >&6
21906 # Is the header present?
21907 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21909 cat >conftest.$ac_ext <<_ACEOF
21910 #line $LINENO "configure"
21911 /* confdefs.h. */
21912 _ACEOF
21913 cat confdefs.h >>conftest.$ac_ext
21914 cat >>conftest.$ac_ext <<_ACEOF
21915 /* end confdefs.h. */
21916 #include <$ac_header>
21917 _ACEOF
21918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21920 ac_status=$?
21921 grep -v '^ *+' conftest.er1 >conftest.err
21922 rm -f conftest.er1
21923 cat conftest.err >&5
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); } >/dev/null; then
21926 if test -s conftest.err; then
21927 ac_cpp_err=$ac_c_preproc_warn_flag
21928 else
21929 ac_cpp_err=
21931 else
21932 ac_cpp_err=yes
21934 if test -z "$ac_cpp_err"; then
21935 ac_header_preproc=yes
21936 else
21937 echo "$as_me: failed program was:" >&5
21938 sed 's/^/| /' conftest.$ac_ext >&5
21940 ac_header_preproc=no
21942 rm -f conftest.err conftest.$ac_ext
21943 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21944 echo "${ECHO_T}$ac_header_preproc" >&6
21946 # So? What about this header?
21947 case $ac_header_compiler:$ac_header_preproc in
21948 yes:no )
21949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21954 cat <<\_ASBOX
21955 ## ------------------------------------ ##
21956 ## Report this to bug-autoconf@gnu.org. ##
21957 ## ------------------------------------ ##
21958 _ASBOX
21960 sed "s/^/$as_me: WARNING: /" >&2
21962 no:yes )
21963 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21964 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21965 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21966 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21970 cat <<\_ASBOX
21971 ## ------------------------------------ ##
21972 ## Report this to bug-autoconf@gnu.org. ##
21973 ## ------------------------------------ ##
21974 _ASBOX
21976 sed "s/^/$as_me: WARNING: /" >&2
21978 esac
21979 echo "$as_me:$LINENO: checking for $ac_header" >&5
21980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21982 echo $ECHO_N "(cached) $ECHO_C" >&6
21983 else
21984 eval "$as_ac_Header=$ac_header_preproc"
21986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21991 cat >>confdefs.h <<_ACEOF
21992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21993 _ACEOF
21997 done
22000 for ac_func in alarm
22002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22003 echo "$as_me:$LINENO: checking for $ac_func" >&5
22004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22005 if eval "test \"\${$as_ac_var+set}\" = set"; then
22006 echo $ECHO_N "(cached) $ECHO_C" >&6
22007 else
22008 cat >conftest.$ac_ext <<_ACEOF
22009 #line $LINENO "configure"
22010 /* confdefs.h. */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22015 /* System header to define __stub macros and hopefully few prototypes,
22016 which can conflict with char $ac_func (); below.
22017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22018 <limits.h> exists even on freestanding compilers. */
22019 #ifdef __STDC__
22020 # include <limits.h>
22021 #else
22022 # include <assert.h>
22023 #endif
22024 /* Override any gcc2 internal prototype to avoid an error. */
22025 #ifdef __cplusplus
22026 extern "C"
22028 #endif
22029 /* We use char because int might match the return type of a gcc2
22030 builtin and then its argument prototype would still apply. */
22031 char $ac_func ();
22032 /* The GNU C library defines this for functions which it implements
22033 to always fail with ENOSYS. Some functions are actually named
22034 something starting with __ and the normal name is an alias. */
22035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22036 choke me
22037 #else
22038 char (*f) () = $ac_func;
22039 #endif
22040 #ifdef __cplusplus
22042 #endif
22045 main ()
22047 return f != $ac_func;
22049 return 0;
22051 _ACEOF
22052 rm -f conftest.$ac_objext conftest$ac_exeext
22053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22054 (eval $ac_link) 2>&5
22055 ac_status=$?
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); } &&
22058 { ac_try='test -s conftest$ac_exeext'
22059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22060 (eval $ac_try) 2>&5
22061 ac_status=$?
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); }; }; then
22064 eval "$as_ac_var=yes"
22065 else
22066 echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22069 eval "$as_ac_var=no"
22071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22075 if test `eval echo '${'$as_ac_var'}'` = yes; then
22076 cat >>confdefs.h <<_ACEOF
22077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22078 _ACEOF
22081 done
22083 echo "$as_me:$LINENO: checking for working mktime" >&5
22084 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
22085 if test "${ac_cv_func_working_mktime+set}" = set; then
22086 echo $ECHO_N "(cached) $ECHO_C" >&6
22087 else
22088 if test "$cross_compiling" = yes; then
22089 ac_cv_func_working_mktime=no
22090 else
22091 cat >conftest.$ac_ext <<_ACEOF
22092 #line $LINENO "configure"
22093 /* confdefs.h. */
22094 _ACEOF
22095 cat confdefs.h >>conftest.$ac_ext
22096 cat >>conftest.$ac_ext <<_ACEOF
22097 /* end confdefs.h. */
22098 /* Test program from Paul Eggert and Tony Leneis. */
22099 #if TIME_WITH_SYS_TIME
22100 # include <sys/time.h>
22101 # include <time.h>
22102 #else
22103 # if HAVE_SYS_TIME_H
22104 # include <sys/time.h>
22105 # else
22106 # include <time.h>
22107 # endif
22108 #endif
22110 #if HAVE_UNISTD_H
22111 # include <unistd.h>
22112 #endif
22114 #if !HAVE_ALARM
22115 # define alarm(X) /* empty */
22116 #endif
22118 /* Work around redefinition to rpl_putenv by other config tests. */
22119 #undef putenv
22121 static time_t time_t_max;
22123 /* Values we'll use to set the TZ environment variable. */
22124 static const char *const tz_strings[] = {
22125 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
22126 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
22128 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
22130 /* Fail if mktime fails to convert a date in the spring-forward gap.
22131 Based on a problem report from Andreas Jaeger. */
22132 static void
22133 spring_forward_gap ()
22135 /* glibc (up to about 1998-10-07) failed this test. */
22136 struct tm tm;
22138 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
22139 instead of "TZ=America/Vancouver" in order to detect the bug even
22140 on systems that don't support the Olson extension, or don't have the
22141 full zoneinfo tables installed. */
22142 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
22144 tm.tm_year = 98;
22145 tm.tm_mon = 3;
22146 tm.tm_mday = 5;
22147 tm.tm_hour = 2;
22148 tm.tm_min = 0;
22149 tm.tm_sec = 0;
22150 tm.tm_isdst = -1;
22151 if (mktime (&tm) == (time_t)-1)
22152 exit (1);
22155 static void
22156 mktime_test (now)
22157 time_t now;
22159 struct tm *lt;
22160 if ((lt = localtime (&now)) && mktime (lt) != now)
22161 exit (1);
22162 now = time_t_max - now;
22163 if ((lt = localtime (&now)) && mktime (lt) != now)
22164 exit (1);
22167 static void
22168 irix_6_4_bug ()
22170 /* Based on code from Ariel Faigon. */
22171 struct tm tm;
22172 tm.tm_year = 96;
22173 tm.tm_mon = 3;
22174 tm.tm_mday = 0;
22175 tm.tm_hour = 0;
22176 tm.tm_min = 0;
22177 tm.tm_sec = 0;
22178 tm.tm_isdst = -1;
22179 mktime (&tm);
22180 if (tm.tm_mon != 2 || tm.tm_mday != 31)
22181 exit (1);
22184 static void
22185 bigtime_test (j)
22186 int j;
22188 struct tm tm;
22189 time_t now;
22190 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
22191 now = mktime (&tm);
22192 if (now != (time_t) -1)
22194 struct tm *lt = localtime (&now);
22195 if (! (lt
22196 && lt->tm_year == tm.tm_year
22197 && lt->tm_mon == tm.tm_mon
22198 && lt->tm_mday == tm.tm_mday
22199 && lt->tm_hour == tm.tm_hour
22200 && lt->tm_min == tm.tm_min
22201 && lt->tm_sec == tm.tm_sec
22202 && lt->tm_yday == tm.tm_yday
22203 && lt->tm_wday == tm.tm_wday
22204 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
22205 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
22206 exit (1);
22211 main ()
22213 time_t t, delta;
22214 int i, j;
22216 /* This test makes some buggy mktime implementations loop.
22217 Give up after 60 seconds; a mktime slower than that
22218 isn't worth using anyway. */
22219 alarm (60);
22221 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
22222 continue;
22223 time_t_max--;
22224 delta = time_t_max / 997; /* a suitable prime number */
22225 for (i = 0; i < N_STRINGS; i++)
22227 if (tz_strings[i])
22228 putenv (tz_strings[i]);
22230 for (t = 0; t <= time_t_max - delta; t += delta)
22231 mktime_test (t);
22232 mktime_test ((time_t) 60 * 60);
22233 mktime_test ((time_t) 60 * 60 * 24);
22235 for (j = 1; 0 < j; j *= 2)
22236 bigtime_test (j);
22237 bigtime_test (j - 1);
22239 irix_6_4_bug ();
22240 spring_forward_gap ();
22241 exit (0);
22243 _ACEOF
22244 rm -f conftest$ac_exeext
22245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22246 (eval $ac_link) 2>&5
22247 ac_status=$?
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22251 (eval $ac_try) 2>&5
22252 ac_status=$?
22253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254 (exit $ac_status); }; }; then
22255 ac_cv_func_working_mktime=yes
22256 else
22257 echo "$as_me: program exited with status $ac_status" >&5
22258 echo "$as_me: failed program was:" >&5
22259 sed 's/^/| /' conftest.$ac_ext >&5
22261 ( exit $ac_status )
22262 ac_cv_func_working_mktime=no
22264 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22267 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
22268 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
22269 if test $ac_cv_func_working_mktime = no; then
22270 LIBOBJS="$LIBOBJS mktime.$ac_objext"
22275 for ac_func in localtime_r
22277 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22278 echo "$as_me:$LINENO: checking for $ac_func" >&5
22279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22280 if eval "test \"\${$as_ac_var+set}\" = set"; then
22281 echo $ECHO_N "(cached) $ECHO_C" >&6
22282 else
22283 cat >conftest.$ac_ext <<_ACEOF
22284 #line $LINENO "configure"
22285 /* confdefs.h. */
22286 _ACEOF
22287 cat confdefs.h >>conftest.$ac_ext
22288 cat >>conftest.$ac_ext <<_ACEOF
22289 /* end confdefs.h. */
22290 /* System header to define __stub macros and hopefully few prototypes,
22291 which can conflict with char $ac_func (); below.
22292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22293 <limits.h> exists even on freestanding compilers. */
22294 #ifdef __STDC__
22295 # include <limits.h>
22296 #else
22297 # include <assert.h>
22298 #endif
22299 /* Override any gcc2 internal prototype to avoid an error. */
22300 #ifdef __cplusplus
22301 extern "C"
22303 #endif
22304 /* We use char because int might match the return type of a gcc2
22305 builtin and then its argument prototype would still apply. */
22306 char $ac_func ();
22307 /* The GNU C library defines this for functions which it implements
22308 to always fail with ENOSYS. Some functions are actually named
22309 something starting with __ and the normal name is an alias. */
22310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22311 choke me
22312 #else
22313 char (*f) () = $ac_func;
22314 #endif
22315 #ifdef __cplusplus
22317 #endif
22320 main ()
22322 return f != $ac_func;
22324 return 0;
22326 _ACEOF
22327 rm -f conftest.$ac_objext conftest$ac_exeext
22328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22329 (eval $ac_link) 2>&5
22330 ac_status=$?
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); } &&
22333 { ac_try='test -s conftest$ac_exeext'
22334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22335 (eval $ac_try) 2>&5
22336 ac_status=$?
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); }; }; then
22339 eval "$as_ac_var=yes"
22340 else
22341 echo "$as_me: failed program was:" >&5
22342 sed 's/^/| /' conftest.$ac_ext >&5
22344 eval "$as_ac_var=no"
22346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22350 if test `eval echo '${'$as_ac_var'}'` = yes; then
22351 cat >>confdefs.h <<_ACEOF
22352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22353 _ACEOF
22356 done
22359 if test $ac_cv_func_working_mktime = no; then
22361 cat >>confdefs.h <<\_ACEOF
22362 #define mktime rpl_mktime
22363 _ACEOF
22369 echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
22370 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
22371 if test "${jm_cv_func_stat_empty_string_bug+set}" = set; then
22372 echo $ECHO_N "(cached) $ECHO_C" >&6
22373 else
22374 if test "$cross_compiling" = yes; then
22375 jm_cv_func_stat_empty_string_bug=yes
22376 else
22377 cat >conftest.$ac_ext <<_ACEOF
22378 #line $LINENO "configure"
22379 /* confdefs.h. */
22380 _ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h. */
22385 # include <sys/types.h>
22386 # include <sys/stat.h>
22389 main ()
22391 struct stat sbuf;
22392 exit (stat ("", &sbuf) ? 1 : 0);
22395 _ACEOF
22396 rm -f conftest$ac_exeext
22397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22398 (eval $ac_link) 2>&5
22399 ac_status=$?
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22403 (eval $ac_try) 2>&5
22404 ac_status=$?
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); }; }; then
22407 jm_cv_func_stat_empty_string_bug=yes
22408 else
22409 echo "$as_me: program exited with status $ac_status" >&5
22410 echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.$ac_ext >&5
22413 ( exit $ac_status )
22414 jm_cv_func_stat_empty_string_bug=no
22416 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22420 echo "$as_me:$LINENO: result: $jm_cv_func_stat_empty_string_bug" >&5
22421 echo "${ECHO_T}$jm_cv_func_stat_empty_string_bug" >&6
22422 if test $jm_cv_func_stat_empty_string_bug = yes; then
22423 LIBOBJS="$LIBOBJS stat.$ac_objext"
22425 cat >>confdefs.h <<\_ACEOF
22426 #define HAVE_STAT_EMPTY_STRING_BUG 1
22427 _ACEOF
22432 for ac_header in stdlib.h
22434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22436 echo "$as_me:$LINENO: checking for $ac_header" >&5
22437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22439 echo $ECHO_N "(cached) $ECHO_C" >&6
22441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22443 else
22444 # Is the header compilable?
22445 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22447 cat >conftest.$ac_ext <<_ACEOF
22448 #line $LINENO "configure"
22449 /* confdefs.h. */
22450 _ACEOF
22451 cat confdefs.h >>conftest.$ac_ext
22452 cat >>conftest.$ac_ext <<_ACEOF
22453 /* end confdefs.h. */
22454 $ac_includes_default
22455 #include <$ac_header>
22456 _ACEOF
22457 rm -f conftest.$ac_objext
22458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22459 (eval $ac_compile) 2>&5
22460 ac_status=$?
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); } &&
22463 { ac_try='test -s conftest.$ac_objext'
22464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22465 (eval $ac_try) 2>&5
22466 ac_status=$?
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); }; }; then
22469 ac_header_compiler=yes
22470 else
22471 echo "$as_me: failed program was:" >&5
22472 sed 's/^/| /' conftest.$ac_ext >&5
22474 ac_header_compiler=no
22476 rm -f conftest.$ac_objext conftest.$ac_ext
22477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22478 echo "${ECHO_T}$ac_header_compiler" >&6
22480 # Is the header present?
22481 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22483 cat >conftest.$ac_ext <<_ACEOF
22484 #line $LINENO "configure"
22485 /* confdefs.h. */
22486 _ACEOF
22487 cat confdefs.h >>conftest.$ac_ext
22488 cat >>conftest.$ac_ext <<_ACEOF
22489 /* end confdefs.h. */
22490 #include <$ac_header>
22491 _ACEOF
22492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22494 ac_status=$?
22495 grep -v '^ *+' conftest.er1 >conftest.err
22496 rm -f conftest.er1
22497 cat conftest.err >&5
22498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 (exit $ac_status); } >/dev/null; then
22500 if test -s conftest.err; then
22501 ac_cpp_err=$ac_c_preproc_warn_flag
22502 else
22503 ac_cpp_err=
22505 else
22506 ac_cpp_err=yes
22508 if test -z "$ac_cpp_err"; then
22509 ac_header_preproc=yes
22510 else
22511 echo "$as_me: failed program was:" >&5
22512 sed 's/^/| /' conftest.$ac_ext >&5
22514 ac_header_preproc=no
22516 rm -f conftest.err conftest.$ac_ext
22517 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22518 echo "${ECHO_T}$ac_header_preproc" >&6
22520 # So? What about this header?
22521 case $ac_header_compiler:$ac_header_preproc in
22522 yes:no )
22523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22528 cat <<\_ASBOX
22529 ## ------------------------------------ ##
22530 ## Report this to bug-autoconf@gnu.org. ##
22531 ## ------------------------------------ ##
22532 _ASBOX
22534 sed "s/^/$as_me: WARNING: /" >&2
22536 no:yes )
22537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22544 cat <<\_ASBOX
22545 ## ------------------------------------ ##
22546 ## Report this to bug-autoconf@gnu.org. ##
22547 ## ------------------------------------ ##
22548 _ASBOX
22550 sed "s/^/$as_me: WARNING: /" >&2
22552 esac
22553 echo "$as_me:$LINENO: checking for $ac_header" >&5
22554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22556 echo $ECHO_N "(cached) $ECHO_C" >&6
22557 else
22558 eval "$as_ac_Header=$ac_header_preproc"
22560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22565 cat >>confdefs.h <<_ACEOF
22566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22567 _ACEOF
22571 done
22573 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
22574 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
22575 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
22576 echo $ECHO_N "(cached) $ECHO_C" >&6
22577 else
22578 if test "$cross_compiling" = yes; then
22579 ac_cv_func_realloc_0_nonnull=no
22580 else
22581 cat >conftest.$ac_ext <<_ACEOF
22582 #line $LINENO "configure"
22583 /* confdefs.h. */
22584 _ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h. */
22588 #if STDC_HEADERS || HAVE_STDLIB_H
22589 # include <stdlib.h>
22590 #else
22591 char *realloc ();
22592 #endif
22595 main ()
22597 exit (realloc (0, 0) ? 0 : 1);
22599 return 0;
22601 _ACEOF
22602 rm -f conftest$ac_exeext
22603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22604 (eval $ac_link) 2>&5
22605 ac_status=$?
22606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22609 (eval $ac_try) 2>&5
22610 ac_status=$?
22611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); }; }; then
22613 ac_cv_func_realloc_0_nonnull=yes
22614 else
22615 echo "$as_me: program exited with status $ac_status" >&5
22616 echo "$as_me: failed program was:" >&5
22617 sed 's/^/| /' conftest.$ac_ext >&5
22619 ( exit $ac_status )
22620 ac_cv_func_realloc_0_nonnull=no
22622 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22625 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
22626 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
22627 if test $ac_cv_func_realloc_0_nonnull = yes; then
22629 cat >>confdefs.h <<\_ACEOF
22630 #define HAVE_REALLOC 1
22631 _ACEOF
22633 else
22634 cat >>confdefs.h <<\_ACEOF
22635 #define HAVE_REALLOC 0
22636 _ACEOF
22638 LIBOBJS="$LIBOBJS realloc.$ac_objext"
22640 cat >>confdefs.h <<\_ACEOF
22641 #define realloc rpl_realloc
22642 _ACEOF
22649 for ac_header in stdlib.h
22651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22653 echo "$as_me:$LINENO: checking for $ac_header" >&5
22654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22656 echo $ECHO_N "(cached) $ECHO_C" >&6
22658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22660 else
22661 # Is the header compilable?
22662 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22664 cat >conftest.$ac_ext <<_ACEOF
22665 #line $LINENO "configure"
22666 /* confdefs.h. */
22667 _ACEOF
22668 cat confdefs.h >>conftest.$ac_ext
22669 cat >>conftest.$ac_ext <<_ACEOF
22670 /* end confdefs.h. */
22671 $ac_includes_default
22672 #include <$ac_header>
22673 _ACEOF
22674 rm -f conftest.$ac_objext
22675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22676 (eval $ac_compile) 2>&5
22677 ac_status=$?
22678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679 (exit $ac_status); } &&
22680 { ac_try='test -s conftest.$ac_objext'
22681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22682 (eval $ac_try) 2>&5
22683 ac_status=$?
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); }; }; then
22686 ac_header_compiler=yes
22687 else
22688 echo "$as_me: failed program was:" >&5
22689 sed 's/^/| /' conftest.$ac_ext >&5
22691 ac_header_compiler=no
22693 rm -f conftest.$ac_objext conftest.$ac_ext
22694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22695 echo "${ECHO_T}$ac_header_compiler" >&6
22697 # Is the header present?
22698 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22700 cat >conftest.$ac_ext <<_ACEOF
22701 #line $LINENO "configure"
22702 /* confdefs.h. */
22703 _ACEOF
22704 cat confdefs.h >>conftest.$ac_ext
22705 cat >>conftest.$ac_ext <<_ACEOF
22706 /* end confdefs.h. */
22707 #include <$ac_header>
22708 _ACEOF
22709 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22711 ac_status=$?
22712 grep -v '^ *+' conftest.er1 >conftest.err
22713 rm -f conftest.er1
22714 cat conftest.err >&5
22715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716 (exit $ac_status); } >/dev/null; then
22717 if test -s conftest.err; then
22718 ac_cpp_err=$ac_c_preproc_warn_flag
22719 else
22720 ac_cpp_err=
22722 else
22723 ac_cpp_err=yes
22725 if test -z "$ac_cpp_err"; then
22726 ac_header_preproc=yes
22727 else
22728 echo "$as_me: failed program was:" >&5
22729 sed 's/^/| /' conftest.$ac_ext >&5
22731 ac_header_preproc=no
22733 rm -f conftest.err conftest.$ac_ext
22734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22735 echo "${ECHO_T}$ac_header_preproc" >&6
22737 # So? What about this header?
22738 case $ac_header_compiler:$ac_header_preproc in
22739 yes:no )
22740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22745 cat <<\_ASBOX
22746 ## ------------------------------------ ##
22747 ## Report this to bug-autoconf@gnu.org. ##
22748 ## ------------------------------------ ##
22749 _ASBOX
22751 sed "s/^/$as_me: WARNING: /" >&2
22753 no:yes )
22754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22761 cat <<\_ASBOX
22762 ## ------------------------------------ ##
22763 ## Report this to bug-autoconf@gnu.org. ##
22764 ## ------------------------------------ ##
22765 _ASBOX
22767 sed "s/^/$as_me: WARNING: /" >&2
22769 esac
22770 echo "$as_me:$LINENO: checking for $ac_header" >&5
22771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22773 echo $ECHO_N "(cached) $ECHO_C" >&6
22774 else
22775 eval "$as_ac_Header=$ac_header_preproc"
22777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22782 cat >>confdefs.h <<_ACEOF
22783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22784 _ACEOF
22788 done
22790 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22791 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
22792 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22793 echo $ECHO_N "(cached) $ECHO_C" >&6
22794 else
22795 if test "$cross_compiling" = yes; then
22796 ac_cv_func_malloc_0_nonnull=no
22797 else
22798 cat >conftest.$ac_ext <<_ACEOF
22799 #line $LINENO "configure"
22800 /* confdefs.h. */
22801 _ACEOF
22802 cat confdefs.h >>conftest.$ac_ext
22803 cat >>conftest.$ac_ext <<_ACEOF
22804 /* end confdefs.h. */
22805 #if STDC_HEADERS || HAVE_STDLIB_H
22806 # include <stdlib.h>
22807 #else
22808 char *malloc ();
22809 #endif
22812 main ()
22814 exit (malloc (0) ? 0 : 1);
22816 return 0;
22818 _ACEOF
22819 rm -f conftest$ac_exeext
22820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22821 (eval $ac_link) 2>&5
22822 ac_status=$?
22823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22826 (eval $ac_try) 2>&5
22827 ac_status=$?
22828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); }; }; then
22830 ac_cv_func_malloc_0_nonnull=yes
22831 else
22832 echo "$as_me: program exited with status $ac_status" >&5
22833 echo "$as_me: failed program was:" >&5
22834 sed 's/^/| /' conftest.$ac_ext >&5
22836 ( exit $ac_status )
22837 ac_cv_func_malloc_0_nonnull=no
22839 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22842 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22843 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
22844 if test $ac_cv_func_malloc_0_nonnull = yes; then
22846 cat >>confdefs.h <<\_ACEOF
22847 #define HAVE_MALLOC 1
22848 _ACEOF
22850 else
22851 cat >>confdefs.h <<\_ACEOF
22852 #define HAVE_MALLOC 0
22853 _ACEOF
22855 LIBOBJS="$LIBOBJS malloc.$ac_objext"
22857 cat >>confdefs.h <<\_ACEOF
22858 #define malloc rpl_malloc
22859 _ACEOF
22866 nanosleep_save_libs=$LIBS
22868 # Solaris 2.5.1 needs -lposix4 to get the nanosleep function.
22869 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
22871 echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
22872 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
22873 if test "${ac_cv_search_nanosleep+set}" = set; then
22874 echo $ECHO_N "(cached) $ECHO_C" >&6
22875 else
22877 ac_func_search_save_LIBS=$LIBS
22878 ac_cv_search_nanosleep=no
22879 cat >conftest.$ac_ext <<_ACEOF
22880 #line $LINENO "configure"
22881 /* confdefs.h. */
22882 _ACEOF
22883 cat confdefs.h >>conftest.$ac_ext
22884 cat >>conftest.$ac_ext <<_ACEOF
22885 /* end confdefs.h. */
22887 /* Override any gcc2 internal prototype to avoid an error. */
22888 #ifdef __cplusplus
22889 extern "C"
22890 #endif
22891 /* We use char because int might match the return type of a gcc2
22892 builtin and then its argument prototype would still apply. */
22893 char nanosleep ();
22895 main ()
22897 nanosleep ();
22899 return 0;
22901 _ACEOF
22902 rm -f conftest.$ac_objext conftest$ac_exeext
22903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22904 (eval $ac_link) 2>&5
22905 ac_status=$?
22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); } &&
22908 { ac_try='test -s conftest$ac_exeext'
22909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22910 (eval $ac_try) 2>&5
22911 ac_status=$?
22912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913 (exit $ac_status); }; }; then
22914 ac_cv_search_nanosleep='none required'
22915 else
22916 echo "$as_me: failed program was:" >&5
22917 sed 's/^/| /' conftest.$ac_ext >&5
22920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22921 if test "$ac_cv_search_nanosleep" = no; then
22922 for ac_lib in rt posix4; do
22923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22924 cat >conftest.$ac_ext <<_ACEOF
22925 #line $LINENO "configure"
22926 /* confdefs.h. */
22927 _ACEOF
22928 cat confdefs.h >>conftest.$ac_ext
22929 cat >>conftest.$ac_ext <<_ACEOF
22930 /* end confdefs.h. */
22932 /* Override any gcc2 internal prototype to avoid an error. */
22933 #ifdef __cplusplus
22934 extern "C"
22935 #endif
22936 /* We use char because int might match the return type of a gcc2
22937 builtin and then its argument prototype would still apply. */
22938 char nanosleep ();
22940 main ()
22942 nanosleep ();
22944 return 0;
22946 _ACEOF
22947 rm -f conftest.$ac_objext conftest$ac_exeext
22948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22949 (eval $ac_link) 2>&5
22950 ac_status=$?
22951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952 (exit $ac_status); } &&
22953 { ac_try='test -s conftest$ac_exeext'
22954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22955 (eval $ac_try) 2>&5
22956 ac_status=$?
22957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958 (exit $ac_status); }; }; then
22959 ac_cv_search_nanosleep="-l$ac_lib"; break
22960 else
22961 echo "$as_me: failed program was:" >&5
22962 sed 's/^/| /' conftest.$ac_ext >&5
22965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22966 done
22968 LIBS=$ac_func_search_save_LIBS
22971 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
22972 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
22974 if test "$ac_cv_search_nanosleep" = no; then :
22976 else
22977 if test "$ac_cv_search_nanosleep" = 'none required'; then :
22979 else
22980 LIBS="$ac_cv_search_nanosleep $LIBS"
22981 LIB_NANOSLEEP=$ac_cv_search_nanosleep
22987 echo "$as_me:$LINENO: checking whether nanosleep works" >&5
22988 echo $ECHO_N "checking whether nanosleep works... $ECHO_C" >&6
22989 if test "${jm_cv_func_nanosleep_works+set}" = set; then
22990 echo $ECHO_N "(cached) $ECHO_C" >&6
22991 else
22994 if test "$cross_compiling" = yes; then
22995 jm_cv_func_nanosleep_works=no
22996 else
22997 cat >conftest.$ac_ext <<_ACEOF
22998 #line $LINENO "configure"
22999 /* confdefs.h. */
23000 _ACEOF
23001 cat confdefs.h >>conftest.$ac_ext
23002 cat >>conftest.$ac_ext <<_ACEOF
23003 /* end confdefs.h. */
23005 # if TIME_WITH_SYS_TIME
23006 # include <sys/time.h>
23007 # include <time.h>
23008 # else
23009 # if HAVE_SYS_TIME_H
23010 # include <sys/time.h>
23011 # else
23012 # include <time.h>
23013 # endif
23014 # endif
23017 main ()
23019 struct timespec ts_sleep, ts_remaining;
23020 ts_sleep.tv_sec = 0;
23021 ts_sleep.tv_nsec = 1;
23022 exit (nanosleep (&ts_sleep, &ts_remaining) == 0 ? 0 : 1);
23025 _ACEOF
23026 rm -f conftest$ac_exeext
23027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23028 (eval $ac_link) 2>&5
23029 ac_status=$?
23030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23033 (eval $ac_try) 2>&5
23034 ac_status=$?
23035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036 (exit $ac_status); }; }; then
23037 jm_cv_func_nanosleep_works=yes
23038 else
23039 echo "$as_me: program exited with status $ac_status" >&5
23040 echo "$as_me: failed program was:" >&5
23041 sed 's/^/| /' conftest.$ac_ext >&5
23043 ( exit $ac_status )
23044 jm_cv_func_nanosleep_works=no
23046 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23050 echo "$as_me:$LINENO: result: $jm_cv_func_nanosleep_works" >&5
23051 echo "${ECHO_T}$jm_cv_func_nanosleep_works" >&6
23052 if test $jm_cv_func_nanosleep_works = no; then
23053 LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
23055 cat >>confdefs.h <<\_ACEOF
23056 #define nanosleep rpl_nanosleep
23057 _ACEOF
23061 LIBS=$nanosleep_save_libs
23063 echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
23064 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
23065 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
23066 echo $ECHO_N "(cached) $ECHO_C" >&6
23067 else
23068 cat >conftest.$ac_ext <<_ACEOF
23069 #line $LINENO "configure"
23070 /* confdefs.h. */
23071 _ACEOF
23072 cat confdefs.h >>conftest.$ac_ext
23073 cat >>conftest.$ac_ext <<_ACEOF
23074 /* end confdefs.h. */
23075 $ac_includes_default
23077 main ()
23079 #ifndef clearerr_unlocked
23080 char *p = (char *) clearerr_unlocked;
23081 #endif
23084 return 0;
23086 _ACEOF
23087 rm -f conftest.$ac_objext
23088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23089 (eval $ac_compile) 2>&5
23090 ac_status=$?
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); } &&
23093 { ac_try='test -s conftest.$ac_objext'
23094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23095 (eval $ac_try) 2>&5
23096 ac_status=$?
23097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); }; }; then
23099 ac_cv_have_decl_clearerr_unlocked=yes
23100 else
23101 echo "$as_me: failed program was:" >&5
23102 sed 's/^/| /' conftest.$ac_ext >&5
23104 ac_cv_have_decl_clearerr_unlocked=no
23106 rm -f conftest.$ac_objext conftest.$ac_ext
23108 echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
23109 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
23110 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
23112 cat >>confdefs.h <<_ACEOF
23113 #define HAVE_DECL_CLEARERR_UNLOCKED 1
23114 _ACEOF
23117 else
23118 cat >>confdefs.h <<_ACEOF
23119 #define HAVE_DECL_CLEARERR_UNLOCKED 0
23120 _ACEOF
23124 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
23125 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
23126 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
23127 echo $ECHO_N "(cached) $ECHO_C" >&6
23128 else
23129 cat >conftest.$ac_ext <<_ACEOF
23130 #line $LINENO "configure"
23131 /* confdefs.h. */
23132 _ACEOF
23133 cat confdefs.h >>conftest.$ac_ext
23134 cat >>conftest.$ac_ext <<_ACEOF
23135 /* end confdefs.h. */
23136 $ac_includes_default
23138 main ()
23140 #ifndef feof_unlocked
23141 char *p = (char *) feof_unlocked;
23142 #endif
23145 return 0;
23147 _ACEOF
23148 rm -f conftest.$ac_objext
23149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23150 (eval $ac_compile) 2>&5
23151 ac_status=$?
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); } &&
23154 { ac_try='test -s conftest.$ac_objext'
23155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23156 (eval $ac_try) 2>&5
23157 ac_status=$?
23158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159 (exit $ac_status); }; }; then
23160 ac_cv_have_decl_feof_unlocked=yes
23161 else
23162 echo "$as_me: failed program was:" >&5
23163 sed 's/^/| /' conftest.$ac_ext >&5
23165 ac_cv_have_decl_feof_unlocked=no
23167 rm -f conftest.$ac_objext conftest.$ac_ext
23169 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
23170 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
23171 if test $ac_cv_have_decl_feof_unlocked = yes; then
23173 cat >>confdefs.h <<_ACEOF
23174 #define HAVE_DECL_FEOF_UNLOCKED 1
23175 _ACEOF
23178 else
23179 cat >>confdefs.h <<_ACEOF
23180 #define HAVE_DECL_FEOF_UNLOCKED 0
23181 _ACEOF
23185 echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
23186 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
23187 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
23188 echo $ECHO_N "(cached) $ECHO_C" >&6
23189 else
23190 cat >conftest.$ac_ext <<_ACEOF
23191 #line $LINENO "configure"
23192 /* confdefs.h. */
23193 _ACEOF
23194 cat confdefs.h >>conftest.$ac_ext
23195 cat >>conftest.$ac_ext <<_ACEOF
23196 /* end confdefs.h. */
23197 $ac_includes_default
23199 main ()
23201 #ifndef ferror_unlocked
23202 char *p = (char *) ferror_unlocked;
23203 #endif
23206 return 0;
23208 _ACEOF
23209 rm -f conftest.$ac_objext
23210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23211 (eval $ac_compile) 2>&5
23212 ac_status=$?
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); } &&
23215 { ac_try='test -s conftest.$ac_objext'
23216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23217 (eval $ac_try) 2>&5
23218 ac_status=$?
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); }; }; then
23221 ac_cv_have_decl_ferror_unlocked=yes
23222 else
23223 echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23226 ac_cv_have_decl_ferror_unlocked=no
23228 rm -f conftest.$ac_objext conftest.$ac_ext
23230 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
23231 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
23232 if test $ac_cv_have_decl_ferror_unlocked = yes; then
23234 cat >>confdefs.h <<_ACEOF
23235 #define HAVE_DECL_FERROR_UNLOCKED 1
23236 _ACEOF
23239 else
23240 cat >>confdefs.h <<_ACEOF
23241 #define HAVE_DECL_FERROR_UNLOCKED 0
23242 _ACEOF
23246 echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
23247 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
23248 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
23249 echo $ECHO_N "(cached) $ECHO_C" >&6
23250 else
23251 cat >conftest.$ac_ext <<_ACEOF
23252 #line $LINENO "configure"
23253 /* confdefs.h. */
23254 _ACEOF
23255 cat confdefs.h >>conftest.$ac_ext
23256 cat >>conftest.$ac_ext <<_ACEOF
23257 /* end confdefs.h. */
23258 $ac_includes_default
23260 main ()
23262 #ifndef fflush_unlocked
23263 char *p = (char *) fflush_unlocked;
23264 #endif
23267 return 0;
23269 _ACEOF
23270 rm -f conftest.$ac_objext
23271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23272 (eval $ac_compile) 2>&5
23273 ac_status=$?
23274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275 (exit $ac_status); } &&
23276 { ac_try='test -s conftest.$ac_objext'
23277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23278 (eval $ac_try) 2>&5
23279 ac_status=$?
23280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 (exit $ac_status); }; }; then
23282 ac_cv_have_decl_fflush_unlocked=yes
23283 else
23284 echo "$as_me: failed program was:" >&5
23285 sed 's/^/| /' conftest.$ac_ext >&5
23287 ac_cv_have_decl_fflush_unlocked=no
23289 rm -f conftest.$ac_objext conftest.$ac_ext
23291 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
23292 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
23293 if test $ac_cv_have_decl_fflush_unlocked = yes; then
23295 cat >>confdefs.h <<_ACEOF
23296 #define HAVE_DECL_FFLUSH_UNLOCKED 1
23297 _ACEOF
23300 else
23301 cat >>confdefs.h <<_ACEOF
23302 #define HAVE_DECL_FFLUSH_UNLOCKED 0
23303 _ACEOF
23307 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
23308 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
23309 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
23310 echo $ECHO_N "(cached) $ECHO_C" >&6
23311 else
23312 cat >conftest.$ac_ext <<_ACEOF
23313 #line $LINENO "configure"
23314 /* confdefs.h. */
23315 _ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h. */
23319 $ac_includes_default
23321 main ()
23323 #ifndef fgets_unlocked
23324 char *p = (char *) fgets_unlocked;
23325 #endif
23328 return 0;
23330 _ACEOF
23331 rm -f conftest.$ac_objext
23332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23333 (eval $ac_compile) 2>&5
23334 ac_status=$?
23335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336 (exit $ac_status); } &&
23337 { ac_try='test -s conftest.$ac_objext'
23338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23339 (eval $ac_try) 2>&5
23340 ac_status=$?
23341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342 (exit $ac_status); }; }; then
23343 ac_cv_have_decl_fgets_unlocked=yes
23344 else
23345 echo "$as_me: failed program was:" >&5
23346 sed 's/^/| /' conftest.$ac_ext >&5
23348 ac_cv_have_decl_fgets_unlocked=no
23350 rm -f conftest.$ac_objext conftest.$ac_ext
23352 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
23353 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
23354 if test $ac_cv_have_decl_fgets_unlocked = yes; then
23356 cat >>confdefs.h <<_ACEOF
23357 #define HAVE_DECL_FGETS_UNLOCKED 1
23358 _ACEOF
23361 else
23362 cat >>confdefs.h <<_ACEOF
23363 #define HAVE_DECL_FGETS_UNLOCKED 0
23364 _ACEOF
23368 echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
23369 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
23370 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
23371 echo $ECHO_N "(cached) $ECHO_C" >&6
23372 else
23373 cat >conftest.$ac_ext <<_ACEOF
23374 #line $LINENO "configure"
23375 /* confdefs.h. */
23376 _ACEOF
23377 cat confdefs.h >>conftest.$ac_ext
23378 cat >>conftest.$ac_ext <<_ACEOF
23379 /* end confdefs.h. */
23380 $ac_includes_default
23382 main ()
23384 #ifndef fputc_unlocked
23385 char *p = (char *) fputc_unlocked;
23386 #endif
23389 return 0;
23391 _ACEOF
23392 rm -f conftest.$ac_objext
23393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23394 (eval $ac_compile) 2>&5
23395 ac_status=$?
23396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397 (exit $ac_status); } &&
23398 { ac_try='test -s conftest.$ac_objext'
23399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23400 (eval $ac_try) 2>&5
23401 ac_status=$?
23402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403 (exit $ac_status); }; }; then
23404 ac_cv_have_decl_fputc_unlocked=yes
23405 else
23406 echo "$as_me: failed program was:" >&5
23407 sed 's/^/| /' conftest.$ac_ext >&5
23409 ac_cv_have_decl_fputc_unlocked=no
23411 rm -f conftest.$ac_objext conftest.$ac_ext
23413 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
23414 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
23415 if test $ac_cv_have_decl_fputc_unlocked = yes; then
23417 cat >>confdefs.h <<_ACEOF
23418 #define HAVE_DECL_FPUTC_UNLOCKED 1
23419 _ACEOF
23422 else
23423 cat >>confdefs.h <<_ACEOF
23424 #define HAVE_DECL_FPUTC_UNLOCKED 0
23425 _ACEOF
23429 echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
23430 echo $ECHO_N "checking whether fputs_unlocked is declared... $ECHO_C" >&6
23431 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
23432 echo $ECHO_N "(cached) $ECHO_C" >&6
23433 else
23434 cat >conftest.$ac_ext <<_ACEOF
23435 #line $LINENO "configure"
23436 /* confdefs.h. */
23437 _ACEOF
23438 cat confdefs.h >>conftest.$ac_ext
23439 cat >>conftest.$ac_ext <<_ACEOF
23440 /* end confdefs.h. */
23441 $ac_includes_default
23443 main ()
23445 #ifndef fputs_unlocked
23446 char *p = (char *) fputs_unlocked;
23447 #endif
23450 return 0;
23452 _ACEOF
23453 rm -f conftest.$ac_objext
23454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23455 (eval $ac_compile) 2>&5
23456 ac_status=$?
23457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458 (exit $ac_status); } &&
23459 { ac_try='test -s conftest.$ac_objext'
23460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23461 (eval $ac_try) 2>&5
23462 ac_status=$?
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); }; }; then
23465 ac_cv_have_decl_fputs_unlocked=yes
23466 else
23467 echo "$as_me: failed program was:" >&5
23468 sed 's/^/| /' conftest.$ac_ext >&5
23470 ac_cv_have_decl_fputs_unlocked=no
23472 rm -f conftest.$ac_objext conftest.$ac_ext
23474 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
23475 echo "${ECHO_T}$ac_cv_have_decl_fputs_unlocked" >&6
23476 if test $ac_cv_have_decl_fputs_unlocked = yes; then
23478 cat >>confdefs.h <<_ACEOF
23479 #define HAVE_DECL_FPUTS_UNLOCKED 1
23480 _ACEOF
23483 else
23484 cat >>confdefs.h <<_ACEOF
23485 #define HAVE_DECL_FPUTS_UNLOCKED 0
23486 _ACEOF
23490 echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
23491 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
23492 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
23493 echo $ECHO_N "(cached) $ECHO_C" >&6
23494 else
23495 cat >conftest.$ac_ext <<_ACEOF
23496 #line $LINENO "configure"
23497 /* confdefs.h. */
23498 _ACEOF
23499 cat confdefs.h >>conftest.$ac_ext
23500 cat >>conftest.$ac_ext <<_ACEOF
23501 /* end confdefs.h. */
23502 $ac_includes_default
23504 main ()
23506 #ifndef fread_unlocked
23507 char *p = (char *) fread_unlocked;
23508 #endif
23511 return 0;
23513 _ACEOF
23514 rm -f conftest.$ac_objext
23515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23516 (eval $ac_compile) 2>&5
23517 ac_status=$?
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); } &&
23520 { ac_try='test -s conftest.$ac_objext'
23521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23522 (eval $ac_try) 2>&5
23523 ac_status=$?
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); }; }; then
23526 ac_cv_have_decl_fread_unlocked=yes
23527 else
23528 echo "$as_me: failed program was:" >&5
23529 sed 's/^/| /' conftest.$ac_ext >&5
23531 ac_cv_have_decl_fread_unlocked=no
23533 rm -f conftest.$ac_objext conftest.$ac_ext
23535 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
23536 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
23537 if test $ac_cv_have_decl_fread_unlocked = yes; then
23539 cat >>confdefs.h <<_ACEOF
23540 #define HAVE_DECL_FREAD_UNLOCKED 1
23541 _ACEOF
23544 else
23545 cat >>confdefs.h <<_ACEOF
23546 #define HAVE_DECL_FREAD_UNLOCKED 0
23547 _ACEOF
23551 echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
23552 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
23553 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
23554 echo $ECHO_N "(cached) $ECHO_C" >&6
23555 else
23556 cat >conftest.$ac_ext <<_ACEOF
23557 #line $LINENO "configure"
23558 /* confdefs.h. */
23559 _ACEOF
23560 cat confdefs.h >>conftest.$ac_ext
23561 cat >>conftest.$ac_ext <<_ACEOF
23562 /* end confdefs.h. */
23563 $ac_includes_default
23565 main ()
23567 #ifndef fwrite_unlocked
23568 char *p = (char *) fwrite_unlocked;
23569 #endif
23572 return 0;
23574 _ACEOF
23575 rm -f conftest.$ac_objext
23576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23577 (eval $ac_compile) 2>&5
23578 ac_status=$?
23579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580 (exit $ac_status); } &&
23581 { ac_try='test -s conftest.$ac_objext'
23582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23583 (eval $ac_try) 2>&5
23584 ac_status=$?
23585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586 (exit $ac_status); }; }; then
23587 ac_cv_have_decl_fwrite_unlocked=yes
23588 else
23589 echo "$as_me: failed program was:" >&5
23590 sed 's/^/| /' conftest.$ac_ext >&5
23592 ac_cv_have_decl_fwrite_unlocked=no
23594 rm -f conftest.$ac_objext conftest.$ac_ext
23596 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
23597 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
23598 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
23600 cat >>confdefs.h <<_ACEOF
23601 #define HAVE_DECL_FWRITE_UNLOCKED 1
23602 _ACEOF
23605 else
23606 cat >>confdefs.h <<_ACEOF
23607 #define HAVE_DECL_FWRITE_UNLOCKED 0
23608 _ACEOF
23612 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
23613 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
23614 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
23615 echo $ECHO_N "(cached) $ECHO_C" >&6
23616 else
23617 cat >conftest.$ac_ext <<_ACEOF
23618 #line $LINENO "configure"
23619 /* confdefs.h. */
23620 _ACEOF
23621 cat confdefs.h >>conftest.$ac_ext
23622 cat >>conftest.$ac_ext <<_ACEOF
23623 /* end confdefs.h. */
23624 $ac_includes_default
23626 main ()
23628 #ifndef getc_unlocked
23629 char *p = (char *) getc_unlocked;
23630 #endif
23633 return 0;
23635 _ACEOF
23636 rm -f conftest.$ac_objext
23637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23638 (eval $ac_compile) 2>&5
23639 ac_status=$?
23640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641 (exit $ac_status); } &&
23642 { ac_try='test -s conftest.$ac_objext'
23643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23644 (eval $ac_try) 2>&5
23645 ac_status=$?
23646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647 (exit $ac_status); }; }; then
23648 ac_cv_have_decl_getc_unlocked=yes
23649 else
23650 echo "$as_me: failed program was:" >&5
23651 sed 's/^/| /' conftest.$ac_ext >&5
23653 ac_cv_have_decl_getc_unlocked=no
23655 rm -f conftest.$ac_objext conftest.$ac_ext
23657 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
23658 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
23659 if test $ac_cv_have_decl_getc_unlocked = yes; then
23661 cat >>confdefs.h <<_ACEOF
23662 #define HAVE_DECL_GETC_UNLOCKED 1
23663 _ACEOF
23666 else
23667 cat >>confdefs.h <<_ACEOF
23668 #define HAVE_DECL_GETC_UNLOCKED 0
23669 _ACEOF
23673 echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
23674 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
23675 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
23676 echo $ECHO_N "(cached) $ECHO_C" >&6
23677 else
23678 cat >conftest.$ac_ext <<_ACEOF
23679 #line $LINENO "configure"
23680 /* confdefs.h. */
23681 _ACEOF
23682 cat confdefs.h >>conftest.$ac_ext
23683 cat >>conftest.$ac_ext <<_ACEOF
23684 /* end confdefs.h. */
23685 $ac_includes_default
23687 main ()
23689 #ifndef getchar_unlocked
23690 char *p = (char *) getchar_unlocked;
23691 #endif
23694 return 0;
23696 _ACEOF
23697 rm -f conftest.$ac_objext
23698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23699 (eval $ac_compile) 2>&5
23700 ac_status=$?
23701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702 (exit $ac_status); } &&
23703 { ac_try='test -s conftest.$ac_objext'
23704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23705 (eval $ac_try) 2>&5
23706 ac_status=$?
23707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708 (exit $ac_status); }; }; then
23709 ac_cv_have_decl_getchar_unlocked=yes
23710 else
23711 echo "$as_me: failed program was:" >&5
23712 sed 's/^/| /' conftest.$ac_ext >&5
23714 ac_cv_have_decl_getchar_unlocked=no
23716 rm -f conftest.$ac_objext conftest.$ac_ext
23718 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
23719 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
23720 if test $ac_cv_have_decl_getchar_unlocked = yes; then
23722 cat >>confdefs.h <<_ACEOF
23723 #define HAVE_DECL_GETCHAR_UNLOCKED 1
23724 _ACEOF
23727 else
23728 cat >>confdefs.h <<_ACEOF
23729 #define HAVE_DECL_GETCHAR_UNLOCKED 0
23730 _ACEOF
23734 echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
23735 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
23736 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
23737 echo $ECHO_N "(cached) $ECHO_C" >&6
23738 else
23739 cat >conftest.$ac_ext <<_ACEOF
23740 #line $LINENO "configure"
23741 /* confdefs.h. */
23742 _ACEOF
23743 cat confdefs.h >>conftest.$ac_ext
23744 cat >>conftest.$ac_ext <<_ACEOF
23745 /* end confdefs.h. */
23746 $ac_includes_default
23748 main ()
23750 #ifndef putc_unlocked
23751 char *p = (char *) putc_unlocked;
23752 #endif
23755 return 0;
23757 _ACEOF
23758 rm -f conftest.$ac_objext
23759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23760 (eval $ac_compile) 2>&5
23761 ac_status=$?
23762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763 (exit $ac_status); } &&
23764 { ac_try='test -s conftest.$ac_objext'
23765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23766 (eval $ac_try) 2>&5
23767 ac_status=$?
23768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769 (exit $ac_status); }; }; then
23770 ac_cv_have_decl_putc_unlocked=yes
23771 else
23772 echo "$as_me: failed program was:" >&5
23773 sed 's/^/| /' conftest.$ac_ext >&5
23775 ac_cv_have_decl_putc_unlocked=no
23777 rm -f conftest.$ac_objext conftest.$ac_ext
23779 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
23780 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
23781 if test $ac_cv_have_decl_putc_unlocked = yes; then
23783 cat >>confdefs.h <<_ACEOF
23784 #define HAVE_DECL_PUTC_UNLOCKED 1
23785 _ACEOF
23788 else
23789 cat >>confdefs.h <<_ACEOF
23790 #define HAVE_DECL_PUTC_UNLOCKED 0
23791 _ACEOF
23795 echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
23796 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
23797 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
23798 echo $ECHO_N "(cached) $ECHO_C" >&6
23799 else
23800 cat >conftest.$ac_ext <<_ACEOF
23801 #line $LINENO "configure"
23802 /* confdefs.h. */
23803 _ACEOF
23804 cat confdefs.h >>conftest.$ac_ext
23805 cat >>conftest.$ac_ext <<_ACEOF
23806 /* end confdefs.h. */
23807 $ac_includes_default
23809 main ()
23811 #ifndef putchar_unlocked
23812 char *p = (char *) putchar_unlocked;
23813 #endif
23816 return 0;
23818 _ACEOF
23819 rm -f conftest.$ac_objext
23820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23821 (eval $ac_compile) 2>&5
23822 ac_status=$?
23823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824 (exit $ac_status); } &&
23825 { ac_try='test -s conftest.$ac_objext'
23826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23827 (eval $ac_try) 2>&5
23828 ac_status=$?
23829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830 (exit $ac_status); }; }; then
23831 ac_cv_have_decl_putchar_unlocked=yes
23832 else
23833 echo "$as_me: failed program was:" >&5
23834 sed 's/^/| /' conftest.$ac_ext >&5
23836 ac_cv_have_decl_putchar_unlocked=no
23838 rm -f conftest.$ac_objext conftest.$ac_ext
23840 echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
23841 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
23842 if test $ac_cv_have_decl_putchar_unlocked = yes; then
23844 cat >>confdefs.h <<_ACEOF
23845 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
23846 _ACEOF
23849 else
23850 cat >>confdefs.h <<_ACEOF
23851 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
23852 _ACEOF
23859 echo "$as_me:$LINENO: checking for group_member" >&5
23860 echo $ECHO_N "checking for group_member... $ECHO_C" >&6
23861 if test "${ac_cv_func_group_member+set}" = set; then
23862 echo $ECHO_N "(cached) $ECHO_C" >&6
23863 else
23864 cat >conftest.$ac_ext <<_ACEOF
23865 #line $LINENO "configure"
23866 /* confdefs.h. */
23867 _ACEOF
23868 cat confdefs.h >>conftest.$ac_ext
23869 cat >>conftest.$ac_ext <<_ACEOF
23870 /* end confdefs.h. */
23871 /* System header to define __stub macros and hopefully few prototypes,
23872 which can conflict with char group_member (); below.
23873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23874 <limits.h> exists even on freestanding compilers. */
23875 #ifdef __STDC__
23876 # include <limits.h>
23877 #else
23878 # include <assert.h>
23879 #endif
23880 /* Override any gcc2 internal prototype to avoid an error. */
23881 #ifdef __cplusplus
23882 extern "C"
23884 #endif
23885 /* We use char because int might match the return type of a gcc2
23886 builtin and then its argument prototype would still apply. */
23887 char group_member ();
23888 /* The GNU C library defines this for functions which it implements
23889 to always fail with ENOSYS. Some functions are actually named
23890 something starting with __ and the normal name is an alias. */
23891 #if defined (__stub_group_member) || defined (__stub___group_member)
23892 choke me
23893 #else
23894 char (*f) () = group_member;
23895 #endif
23896 #ifdef __cplusplus
23898 #endif
23901 main ()
23903 return f != group_member;
23905 return 0;
23907 _ACEOF
23908 rm -f conftest.$ac_objext conftest$ac_exeext
23909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23910 (eval $ac_link) 2>&5
23911 ac_status=$?
23912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23913 (exit $ac_status); } &&
23914 { ac_try='test -s conftest$ac_exeext'
23915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23916 (eval $ac_try) 2>&5
23917 ac_status=$?
23918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23919 (exit $ac_status); }; }; then
23920 ac_cv_func_group_member=yes
23921 else
23922 echo "$as_me: failed program was:" >&5
23923 sed 's/^/| /' conftest.$ac_ext >&5
23925 ac_cv_func_group_member=no
23927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23929 echo "$as_me:$LINENO: result: $ac_cv_func_group_member" >&5
23930 echo "${ECHO_T}$ac_cv_func_group_member" >&6
23931 if test $ac_cv_func_group_member = yes; then
23933 else
23934 LIBOBJS="$LIBOBJS group-member.$ac_objext"
23939 echo "$as_me:$LINENO: checking for SVID conformant putenv" >&5
23940 echo $ECHO_N "checking for SVID conformant putenv... $ECHO_C" >&6
23941 if test "${jm_cv_func_svid_putenv+set}" = set; then
23942 echo $ECHO_N "(cached) $ECHO_C" >&6
23943 else
23944 if test "$cross_compiling" = yes; then
23945 jm_cv_func_svid_putenv=no
23946 else
23947 cat >conftest.$ac_ext <<_ACEOF
23948 #line $LINENO "configure"
23949 /* confdefs.h. */
23950 _ACEOF
23951 cat confdefs.h >>conftest.$ac_ext
23952 cat >>conftest.$ac_ext <<_ACEOF
23953 /* end confdefs.h. */
23956 main ()
23958 /* Put it in env. */
23959 if (putenv ("CONFTEST_putenv=val"))
23960 exit (1);
23962 /* Try to remove it. */
23963 if (putenv ("CONFTEST_putenv"))
23964 exit (1);
23966 /* Make sure it was deleted. */
23967 if (getenv ("CONFTEST_putenv") != 0)
23968 exit (1);
23970 exit (0);
23973 _ACEOF
23974 rm -f conftest$ac_exeext
23975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23976 (eval $ac_link) 2>&5
23977 ac_status=$?
23978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23981 (eval $ac_try) 2>&5
23982 ac_status=$?
23983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); }; }; then
23985 jm_cv_func_svid_putenv=yes
23986 else
23987 echo "$as_me: program exited with status $ac_status" >&5
23988 echo "$as_me: failed program was:" >&5
23989 sed 's/^/| /' conftest.$ac_ext >&5
23991 ( exit $ac_status )
23992 jm_cv_func_svid_putenv=no
23994 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23998 echo "$as_me:$LINENO: result: $jm_cv_func_svid_putenv" >&5
23999 echo "${ECHO_T}$jm_cv_func_svid_putenv" >&6
24000 if test $jm_cv_func_svid_putenv = no; then
24001 LIBOBJS="$LIBOBJS putenv.$ac_objext"
24003 cat >>confdefs.h <<\_ACEOF
24004 #define putenv rpl_putenv
24005 _ACEOF
24010 echo "$as_me:$LINENO: checking for AFS" >&5
24011 echo $ECHO_N "checking for AFS... $ECHO_C" >&6
24012 if test -d /afs; then
24014 cat >>confdefs.h <<\_ACEOF
24015 #define AFS 1
24016 _ACEOF
24018 ac_result=yes
24019 else
24020 ac_result=no
24022 echo "$as_me:$LINENO: result: $ac_result" >&5
24023 echo "${ECHO_T}$ac_result" >&6
24027 echo "$as_me:$LINENO: checking for intmax_t" >&5
24028 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
24029 if test "${ac_cv_type_intmax_t+set}" = set; then
24030 echo $ECHO_N "(cached) $ECHO_C" >&6
24031 else
24032 cat >conftest.$ac_ext <<_ACEOF
24033 #line $LINENO "configure"
24034 /* confdefs.h. */
24035 _ACEOF
24036 cat confdefs.h >>conftest.$ac_ext
24037 cat >>conftest.$ac_ext <<_ACEOF
24038 /* end confdefs.h. */
24039 $ac_includes_default
24041 main ()
24043 if ((intmax_t *) 0)
24044 return 0;
24045 if (sizeof (intmax_t))
24046 return 0;
24048 return 0;
24050 _ACEOF
24051 rm -f conftest.$ac_objext
24052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24053 (eval $ac_compile) 2>&5
24054 ac_status=$?
24055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056 (exit $ac_status); } &&
24057 { ac_try='test -s conftest.$ac_objext'
24058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24059 (eval $ac_try) 2>&5
24060 ac_status=$?
24061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24062 (exit $ac_status); }; }; then
24063 ac_cv_type_intmax_t=yes
24064 else
24065 echo "$as_me: failed program was:" >&5
24066 sed 's/^/| /' conftest.$ac_ext >&5
24068 ac_cv_type_intmax_t=no
24070 rm -f conftest.$ac_objext conftest.$ac_ext
24072 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
24073 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
24074 if test $ac_cv_type_intmax_t = yes; then
24076 else
24077 test $ac_cv_type_long_long = yes \
24078 && ac_type='long long' \
24079 || ac_type='long'
24081 cat >>confdefs.h <<_ACEOF
24082 #define intmax_t $ac_type
24083 _ACEOF
24093 echo "$as_me:$LINENO: checking whether strtol is declared" >&5
24094 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
24095 if test "${ac_cv_have_decl_strtol+set}" = set; then
24096 echo $ECHO_N "(cached) $ECHO_C" >&6
24097 else
24098 cat >conftest.$ac_ext <<_ACEOF
24099 #line $LINENO "configure"
24100 /* confdefs.h. */
24101 _ACEOF
24102 cat confdefs.h >>conftest.$ac_ext
24103 cat >>conftest.$ac_ext <<_ACEOF
24104 /* end confdefs.h. */
24105 $ac_includes_default
24107 main ()
24109 #ifndef strtol
24110 char *p = (char *) strtol;
24111 #endif
24114 return 0;
24116 _ACEOF
24117 rm -f conftest.$ac_objext
24118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24119 (eval $ac_compile) 2>&5
24120 ac_status=$?
24121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122 (exit $ac_status); } &&
24123 { ac_try='test -s conftest.$ac_objext'
24124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24125 (eval $ac_try) 2>&5
24126 ac_status=$?
24127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128 (exit $ac_status); }; }; then
24129 ac_cv_have_decl_strtol=yes
24130 else
24131 echo "$as_me: failed program was:" >&5
24132 sed 's/^/| /' conftest.$ac_ext >&5
24134 ac_cv_have_decl_strtol=no
24136 rm -f conftest.$ac_objext conftest.$ac_ext
24138 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
24139 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
24140 if test $ac_cv_have_decl_strtol = yes; then
24142 cat >>confdefs.h <<_ACEOF
24143 #define HAVE_DECL_STRTOL 1
24144 _ACEOF
24147 else
24148 cat >>confdefs.h <<_ACEOF
24149 #define HAVE_DECL_STRTOL 0
24150 _ACEOF
24154 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
24155 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
24156 if test "${ac_cv_have_decl_strtoul+set}" = set; then
24157 echo $ECHO_N "(cached) $ECHO_C" >&6
24158 else
24159 cat >conftest.$ac_ext <<_ACEOF
24160 #line $LINENO "configure"
24161 /* confdefs.h. */
24162 _ACEOF
24163 cat confdefs.h >>conftest.$ac_ext
24164 cat >>conftest.$ac_ext <<_ACEOF
24165 /* end confdefs.h. */
24166 $ac_includes_default
24168 main ()
24170 #ifndef strtoul
24171 char *p = (char *) strtoul;
24172 #endif
24175 return 0;
24177 _ACEOF
24178 rm -f conftest.$ac_objext
24179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24180 (eval $ac_compile) 2>&5
24181 ac_status=$?
24182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183 (exit $ac_status); } &&
24184 { ac_try='test -s conftest.$ac_objext'
24185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24186 (eval $ac_try) 2>&5
24187 ac_status=$?
24188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189 (exit $ac_status); }; }; then
24190 ac_cv_have_decl_strtoul=yes
24191 else
24192 echo "$as_me: failed program was:" >&5
24193 sed 's/^/| /' conftest.$ac_ext >&5
24195 ac_cv_have_decl_strtoul=no
24197 rm -f conftest.$ac_objext conftest.$ac_ext
24199 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
24200 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
24201 if test $ac_cv_have_decl_strtoul = yes; then
24203 cat >>confdefs.h <<_ACEOF
24204 #define HAVE_DECL_STRTOUL 1
24205 _ACEOF
24208 else
24209 cat >>confdefs.h <<_ACEOF
24210 #define HAVE_DECL_STRTOUL 0
24211 _ACEOF
24215 echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
24216 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
24217 if test "${ac_cv_have_decl_strtoull+set}" = set; then
24218 echo $ECHO_N "(cached) $ECHO_C" >&6
24219 else
24220 cat >conftest.$ac_ext <<_ACEOF
24221 #line $LINENO "configure"
24222 /* confdefs.h. */
24223 _ACEOF
24224 cat confdefs.h >>conftest.$ac_ext
24225 cat >>conftest.$ac_ext <<_ACEOF
24226 /* end confdefs.h. */
24227 $ac_includes_default
24229 main ()
24231 #ifndef strtoull
24232 char *p = (char *) strtoull;
24233 #endif
24236 return 0;
24238 _ACEOF
24239 rm -f conftest.$ac_objext
24240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24241 (eval $ac_compile) 2>&5
24242 ac_status=$?
24243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24244 (exit $ac_status); } &&
24245 { ac_try='test -s conftest.$ac_objext'
24246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24247 (eval $ac_try) 2>&5
24248 ac_status=$?
24249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250 (exit $ac_status); }; }; then
24251 ac_cv_have_decl_strtoull=yes
24252 else
24253 echo "$as_me: failed program was:" >&5
24254 sed 's/^/| /' conftest.$ac_ext >&5
24256 ac_cv_have_decl_strtoull=no
24258 rm -f conftest.$ac_objext conftest.$ac_ext
24260 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
24261 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
24262 if test $ac_cv_have_decl_strtoull = yes; then
24264 cat >>confdefs.h <<_ACEOF
24265 #define HAVE_DECL_STRTOULL 1
24266 _ACEOF
24269 else
24270 cat >>confdefs.h <<_ACEOF
24271 #define HAVE_DECL_STRTOULL 0
24272 _ACEOF
24276 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
24277 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
24278 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
24279 echo $ECHO_N "(cached) $ECHO_C" >&6
24280 else
24281 cat >conftest.$ac_ext <<_ACEOF
24282 #line $LINENO "configure"
24283 /* confdefs.h. */
24284 _ACEOF
24285 cat confdefs.h >>conftest.$ac_ext
24286 cat >>conftest.$ac_ext <<_ACEOF
24287 /* end confdefs.h. */
24288 $ac_includes_default
24290 main ()
24292 #ifndef strtoimax
24293 char *p = (char *) strtoimax;
24294 #endif
24297 return 0;
24299 _ACEOF
24300 rm -f conftest.$ac_objext
24301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24302 (eval $ac_compile) 2>&5
24303 ac_status=$?
24304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305 (exit $ac_status); } &&
24306 { ac_try='test -s conftest.$ac_objext'
24307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24308 (eval $ac_try) 2>&5
24309 ac_status=$?
24310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311 (exit $ac_status); }; }; then
24312 ac_cv_have_decl_strtoimax=yes
24313 else
24314 echo "$as_me: failed program was:" >&5
24315 sed 's/^/| /' conftest.$ac_ext >&5
24317 ac_cv_have_decl_strtoimax=no
24319 rm -f conftest.$ac_objext conftest.$ac_ext
24321 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
24322 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
24323 if test $ac_cv_have_decl_strtoimax = yes; then
24325 cat >>confdefs.h <<_ACEOF
24326 #define HAVE_DECL_STRTOIMAX 1
24327 _ACEOF
24330 else
24331 cat >>confdefs.h <<_ACEOF
24332 #define HAVE_DECL_STRTOIMAX 0
24333 _ACEOF
24337 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
24338 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
24339 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
24340 echo $ECHO_N "(cached) $ECHO_C" >&6
24341 else
24342 cat >conftest.$ac_ext <<_ACEOF
24343 #line $LINENO "configure"
24344 /* confdefs.h. */
24345 _ACEOF
24346 cat confdefs.h >>conftest.$ac_ext
24347 cat >>conftest.$ac_ext <<_ACEOF
24348 /* end confdefs.h. */
24349 $ac_includes_default
24351 main ()
24353 #ifndef strtoumax
24354 char *p = (char *) strtoumax;
24355 #endif
24358 return 0;
24360 _ACEOF
24361 rm -f conftest.$ac_objext
24362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24363 (eval $ac_compile) 2>&5
24364 ac_status=$?
24365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24366 (exit $ac_status); } &&
24367 { ac_try='test -s conftest.$ac_objext'
24368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24369 (eval $ac_try) 2>&5
24370 ac_status=$?
24371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372 (exit $ac_status); }; }; then
24373 ac_cv_have_decl_strtoumax=yes
24374 else
24375 echo "$as_me: failed program was:" >&5
24376 sed 's/^/| /' conftest.$ac_ext >&5
24378 ac_cv_have_decl_strtoumax=no
24380 rm -f conftest.$ac_objext conftest.$ac_ext
24382 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
24383 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
24384 if test $ac_cv_have_decl_strtoumax = yes; then
24386 cat >>confdefs.h <<_ACEOF
24387 #define HAVE_DECL_STRTOUMAX 1
24388 _ACEOF
24391 else
24392 cat >>confdefs.h <<_ACEOF
24393 #define HAVE_DECL_STRTOUMAX 0
24394 _ACEOF
24403 for ac_header in limits.h stdlib.h inttypes.h
24405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24407 echo "$as_me:$LINENO: checking for $ac_header" >&5
24408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24410 echo $ECHO_N "(cached) $ECHO_C" >&6
24412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24414 else
24415 # Is the header compilable?
24416 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24418 cat >conftest.$ac_ext <<_ACEOF
24419 #line $LINENO "configure"
24420 /* confdefs.h. */
24421 _ACEOF
24422 cat confdefs.h >>conftest.$ac_ext
24423 cat >>conftest.$ac_ext <<_ACEOF
24424 /* end confdefs.h. */
24425 $ac_includes_default
24426 #include <$ac_header>
24427 _ACEOF
24428 rm -f conftest.$ac_objext
24429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24430 (eval $ac_compile) 2>&5
24431 ac_status=$?
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); } &&
24434 { ac_try='test -s conftest.$ac_objext'
24435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24436 (eval $ac_try) 2>&5
24437 ac_status=$?
24438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439 (exit $ac_status); }; }; then
24440 ac_header_compiler=yes
24441 else
24442 echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24445 ac_header_compiler=no
24447 rm -f conftest.$ac_objext conftest.$ac_ext
24448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24449 echo "${ECHO_T}$ac_header_compiler" >&6
24451 # Is the header present?
24452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24454 cat >conftest.$ac_ext <<_ACEOF
24455 #line $LINENO "configure"
24456 /* confdefs.h. */
24457 _ACEOF
24458 cat confdefs.h >>conftest.$ac_ext
24459 cat >>conftest.$ac_ext <<_ACEOF
24460 /* end confdefs.h. */
24461 #include <$ac_header>
24462 _ACEOF
24463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24465 ac_status=$?
24466 grep -v '^ *+' conftest.er1 >conftest.err
24467 rm -f conftest.er1
24468 cat conftest.err >&5
24469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470 (exit $ac_status); } >/dev/null; then
24471 if test -s conftest.err; then
24472 ac_cpp_err=$ac_c_preproc_warn_flag
24473 else
24474 ac_cpp_err=
24476 else
24477 ac_cpp_err=yes
24479 if test -z "$ac_cpp_err"; then
24480 ac_header_preproc=yes
24481 else
24482 echo "$as_me: failed program was:" >&5
24483 sed 's/^/| /' conftest.$ac_ext >&5
24485 ac_header_preproc=no
24487 rm -f conftest.err conftest.$ac_ext
24488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24489 echo "${ECHO_T}$ac_header_preproc" >&6
24491 # So? What about this header?
24492 case $ac_header_compiler:$ac_header_preproc in
24493 yes:no )
24494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24499 cat <<\_ASBOX
24500 ## ------------------------------------ ##
24501 ## Report this to bug-autoconf@gnu.org. ##
24502 ## ------------------------------------ ##
24503 _ASBOX
24505 sed "s/^/$as_me: WARNING: /" >&2
24507 no:yes )
24508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24515 cat <<\_ASBOX
24516 ## ------------------------------------ ##
24517 ## Report this to bug-autoconf@gnu.org. ##
24518 ## ------------------------------------ ##
24519 _ASBOX
24521 sed "s/^/$as_me: WARNING: /" >&2
24523 esac
24524 echo "$as_me:$LINENO: checking for $ac_header" >&5
24525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24527 echo $ECHO_N "(cached) $ECHO_C" >&6
24528 else
24529 eval "$as_ac_Header=$ac_header_preproc"
24531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24536 cat >>confdefs.h <<_ACEOF
24537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24538 _ACEOF
24542 done
24545 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
24546 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6
24547 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
24548 echo $ECHO_N "(cached) $ECHO_C" >&6
24549 else
24550 cat >conftest.$ac_ext <<_ACEOF
24551 #line $LINENO "configure"
24552 /* confdefs.h. */
24553 _ACEOF
24554 cat confdefs.h >>conftest.$ac_ext
24555 cat >>conftest.$ac_ext <<_ACEOF
24556 /* end confdefs.h. */
24557 #include <inttypes.h>
24558 #ifdef strtoumax
24559 inttypes_h_defines_strtoumax
24560 #endif
24561 _ACEOF
24562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24563 $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
24564 jm_cv_func_strtoumax_macro=yes
24565 else
24566 jm_cv_func_strtoumax_macro=no
24568 rm -f conftest*
24571 echo "$as_me:$LINENO: result: $jm_cv_func_strtoumax_macro" >&5
24572 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6
24574 if test "$jm_cv_func_strtoumax_macro" != yes; then
24576 for ac_func in strtoumax
24578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24579 echo "$as_me:$LINENO: checking for $ac_func" >&5
24580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24581 if eval "test \"\${$as_ac_var+set}\" = set"; then
24582 echo $ECHO_N "(cached) $ECHO_C" >&6
24583 else
24584 cat >conftest.$ac_ext <<_ACEOF
24585 #line $LINENO "configure"
24586 /* confdefs.h. */
24587 _ACEOF
24588 cat confdefs.h >>conftest.$ac_ext
24589 cat >>conftest.$ac_ext <<_ACEOF
24590 /* end confdefs.h. */
24591 /* System header to define __stub macros and hopefully few prototypes,
24592 which can conflict with char $ac_func (); below.
24593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24594 <limits.h> exists even on freestanding compilers. */
24595 #ifdef __STDC__
24596 # include <limits.h>
24597 #else
24598 # include <assert.h>
24599 #endif
24600 /* Override any gcc2 internal prototype to avoid an error. */
24601 #ifdef __cplusplus
24602 extern "C"
24604 #endif
24605 /* We use char because int might match the return type of a gcc2
24606 builtin and then its argument prototype would still apply. */
24607 char $ac_func ();
24608 /* The GNU C library defines this for functions which it implements
24609 to always fail with ENOSYS. Some functions are actually named
24610 something starting with __ and the normal name is an alias. */
24611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24612 choke me
24613 #else
24614 char (*f) () = $ac_func;
24615 #endif
24616 #ifdef __cplusplus
24618 #endif
24621 main ()
24623 return f != $ac_func;
24625 return 0;
24627 _ACEOF
24628 rm -f conftest.$ac_objext conftest$ac_exeext
24629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24630 (eval $ac_link) 2>&5
24631 ac_status=$?
24632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633 (exit $ac_status); } &&
24634 { ac_try='test -s conftest$ac_exeext'
24635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24636 (eval $ac_try) 2>&5
24637 ac_status=$?
24638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639 (exit $ac_status); }; }; then
24640 eval "$as_ac_var=yes"
24641 else
24642 echo "$as_me: failed program was:" >&5
24643 sed 's/^/| /' conftest.$ac_ext >&5
24645 eval "$as_ac_var=no"
24647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24650 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24651 if test `eval echo '${'$as_ac_var'}'` = yes; then
24652 cat >>confdefs.h <<_ACEOF
24653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24654 _ACEOF
24656 else
24657 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24659 done
24664 case "$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in
24665 no,no)
24667 for ac_func in strtoul
24669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24670 echo "$as_me:$LINENO: checking for $ac_func" >&5
24671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24672 if eval "test \"\${$as_ac_var+set}\" = set"; then
24673 echo $ECHO_N "(cached) $ECHO_C" >&6
24674 else
24675 cat >conftest.$ac_ext <<_ACEOF
24676 #line $LINENO "configure"
24677 /* confdefs.h. */
24678 _ACEOF
24679 cat confdefs.h >>conftest.$ac_ext
24680 cat >>conftest.$ac_ext <<_ACEOF
24681 /* end confdefs.h. */
24682 /* System header to define __stub macros and hopefully few prototypes,
24683 which can conflict with char $ac_func (); below.
24684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24685 <limits.h> exists even on freestanding compilers. */
24686 #ifdef __STDC__
24687 # include <limits.h>
24688 #else
24689 # include <assert.h>
24690 #endif
24691 /* Override any gcc2 internal prototype to avoid an error. */
24692 #ifdef __cplusplus
24693 extern "C"
24695 #endif
24696 /* We use char because int might match the return type of a gcc2
24697 builtin and then its argument prototype would still apply. */
24698 char $ac_func ();
24699 /* The GNU C library defines this for functions which it implements
24700 to always fail with ENOSYS. Some functions are actually named
24701 something starting with __ and the normal name is an alias. */
24702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24703 choke me
24704 #else
24705 char (*f) () = $ac_func;
24706 #endif
24707 #ifdef __cplusplus
24709 #endif
24712 main ()
24714 return f != $ac_func;
24716 return 0;
24718 _ACEOF
24719 rm -f conftest.$ac_objext conftest$ac_exeext
24720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24721 (eval $ac_link) 2>&5
24722 ac_status=$?
24723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724 (exit $ac_status); } &&
24725 { ac_try='test -s conftest$ac_exeext'
24726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24727 (eval $ac_try) 2>&5
24728 ac_status=$?
24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730 (exit $ac_status); }; }; then
24731 eval "$as_ac_var=yes"
24732 else
24733 echo "$as_me: failed program was:" >&5
24734 sed 's/^/| /' conftest.$ac_ext >&5
24736 eval "$as_ac_var=no"
24738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24742 if test `eval echo '${'$as_ac_var'}'` = yes; then
24743 cat >>confdefs.h <<_ACEOF
24744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24745 _ACEOF
24747 else
24748 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24750 done
24754 if test "$ac_cv_type_unsigned_long_long" = yes; then
24756 for ac_func in strtoull
24758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24759 echo "$as_me:$LINENO: checking for $ac_func" >&5
24760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24761 if eval "test \"\${$as_ac_var+set}\" = set"; then
24762 echo $ECHO_N "(cached) $ECHO_C" >&6
24763 else
24764 cat >conftest.$ac_ext <<_ACEOF
24765 #line $LINENO "configure"
24766 /* confdefs.h. */
24767 _ACEOF
24768 cat confdefs.h >>conftest.$ac_ext
24769 cat >>conftest.$ac_ext <<_ACEOF
24770 /* end confdefs.h. */
24771 /* System header to define __stub macros and hopefully few prototypes,
24772 which can conflict with char $ac_func (); below.
24773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24774 <limits.h> exists even on freestanding compilers. */
24775 #ifdef __STDC__
24776 # include <limits.h>
24777 #else
24778 # include <assert.h>
24779 #endif
24780 /* Override any gcc2 internal prototype to avoid an error. */
24781 #ifdef __cplusplus
24782 extern "C"
24784 #endif
24785 /* We use char because int might match the return type of a gcc2
24786 builtin and then its argument prototype would still apply. */
24787 char $ac_func ();
24788 /* The GNU C library defines this for functions which it implements
24789 to always fail with ENOSYS. Some functions are actually named
24790 something starting with __ and the normal name is an alias. */
24791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24792 choke me
24793 #else
24794 char (*f) () = $ac_func;
24795 #endif
24796 #ifdef __cplusplus
24798 #endif
24801 main ()
24803 return f != $ac_func;
24805 return 0;
24807 _ACEOF
24808 rm -f conftest.$ac_objext conftest$ac_exeext
24809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24810 (eval $ac_link) 2>&5
24811 ac_status=$?
24812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813 (exit $ac_status); } &&
24814 { ac_try='test -s conftest$ac_exeext'
24815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24816 (eval $ac_try) 2>&5
24817 ac_status=$?
24818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819 (exit $ac_status); }; }; then
24820 eval "$as_ac_var=yes"
24821 else
24822 echo "$as_me: failed program was:" >&5
24823 sed 's/^/| /' conftest.$ac_ext >&5
24825 eval "$as_ac_var=no"
24827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24831 if test `eval echo '${'$as_ac_var'}'` = yes; then
24832 cat >>confdefs.h <<_ACEOF
24833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24834 _ACEOF
24836 else
24837 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24839 done
24844 esac
24851 echo "$as_me:$LINENO: checking whether strtol is declared" >&5
24852 echo $ECHO_N "checking whether strtol is declared... $ECHO_C" >&6
24853 if test "${ac_cv_have_decl_strtol+set}" = set; then
24854 echo $ECHO_N "(cached) $ECHO_C" >&6
24855 else
24856 cat >conftest.$ac_ext <<_ACEOF
24857 #line $LINENO "configure"
24858 /* confdefs.h. */
24859 _ACEOF
24860 cat confdefs.h >>conftest.$ac_ext
24861 cat >>conftest.$ac_ext <<_ACEOF
24862 /* end confdefs.h. */
24863 $ac_includes_default
24865 main ()
24867 #ifndef strtol
24868 char *p = (char *) strtol;
24869 #endif
24872 return 0;
24874 _ACEOF
24875 rm -f conftest.$ac_objext
24876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24877 (eval $ac_compile) 2>&5
24878 ac_status=$?
24879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880 (exit $ac_status); } &&
24881 { ac_try='test -s conftest.$ac_objext'
24882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24883 (eval $ac_try) 2>&5
24884 ac_status=$?
24885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24886 (exit $ac_status); }; }; then
24887 ac_cv_have_decl_strtol=yes
24888 else
24889 echo "$as_me: failed program was:" >&5
24890 sed 's/^/| /' conftest.$ac_ext >&5
24892 ac_cv_have_decl_strtol=no
24894 rm -f conftest.$ac_objext conftest.$ac_ext
24896 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtol" >&5
24897 echo "${ECHO_T}$ac_cv_have_decl_strtol" >&6
24898 if test $ac_cv_have_decl_strtol = yes; then
24900 cat >>confdefs.h <<_ACEOF
24901 #define HAVE_DECL_STRTOL 1
24902 _ACEOF
24905 else
24906 cat >>confdefs.h <<_ACEOF
24907 #define HAVE_DECL_STRTOL 0
24908 _ACEOF
24912 echo "$as_me:$LINENO: checking whether strtoul is declared" >&5
24913 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
24914 if test "${ac_cv_have_decl_strtoul+set}" = set; then
24915 echo $ECHO_N "(cached) $ECHO_C" >&6
24916 else
24917 cat >conftest.$ac_ext <<_ACEOF
24918 #line $LINENO "configure"
24919 /* confdefs.h. */
24920 _ACEOF
24921 cat confdefs.h >>conftest.$ac_ext
24922 cat >>conftest.$ac_ext <<_ACEOF
24923 /* end confdefs.h. */
24924 $ac_includes_default
24926 main ()
24928 #ifndef strtoul
24929 char *p = (char *) strtoul;
24930 #endif
24933 return 0;
24935 _ACEOF
24936 rm -f conftest.$ac_objext
24937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24938 (eval $ac_compile) 2>&5
24939 ac_status=$?
24940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941 (exit $ac_status); } &&
24942 { ac_try='test -s conftest.$ac_objext'
24943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24944 (eval $ac_try) 2>&5
24945 ac_status=$?
24946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); }; }; then
24948 ac_cv_have_decl_strtoul=yes
24949 else
24950 echo "$as_me: failed program was:" >&5
24951 sed 's/^/| /' conftest.$ac_ext >&5
24953 ac_cv_have_decl_strtoul=no
24955 rm -f conftest.$ac_objext conftest.$ac_ext
24957 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoul" >&5
24958 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
24959 if test $ac_cv_have_decl_strtoul = yes; then
24961 cat >>confdefs.h <<_ACEOF
24962 #define HAVE_DECL_STRTOUL 1
24963 _ACEOF
24966 else
24967 cat >>confdefs.h <<_ACEOF
24968 #define HAVE_DECL_STRTOUL 0
24969 _ACEOF
24973 echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
24974 echo $ECHO_N "checking whether strtoll is declared... $ECHO_C" >&6
24975 if test "${ac_cv_have_decl_strtoll+set}" = set; then
24976 echo $ECHO_N "(cached) $ECHO_C" >&6
24977 else
24978 cat >conftest.$ac_ext <<_ACEOF
24979 #line $LINENO "configure"
24980 /* confdefs.h. */
24981 _ACEOF
24982 cat confdefs.h >>conftest.$ac_ext
24983 cat >>conftest.$ac_ext <<_ACEOF
24984 /* end confdefs.h. */
24985 $ac_includes_default
24987 main ()
24989 #ifndef strtoll
24990 char *p = (char *) strtoll;
24991 #endif
24994 return 0;
24996 _ACEOF
24997 rm -f conftest.$ac_objext
24998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24999 (eval $ac_compile) 2>&5
25000 ac_status=$?
25001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002 (exit $ac_status); } &&
25003 { ac_try='test -s conftest.$ac_objext'
25004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25005 (eval $ac_try) 2>&5
25006 ac_status=$?
25007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008 (exit $ac_status); }; }; then
25009 ac_cv_have_decl_strtoll=yes
25010 else
25011 echo "$as_me: failed program was:" >&5
25012 sed 's/^/| /' conftest.$ac_ext >&5
25014 ac_cv_have_decl_strtoll=no
25016 rm -f conftest.$ac_objext conftest.$ac_ext
25018 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
25019 echo "${ECHO_T}$ac_cv_have_decl_strtoll" >&6
25020 if test $ac_cv_have_decl_strtoll = yes; then
25022 cat >>confdefs.h <<_ACEOF
25023 #define HAVE_DECL_STRTOLL 1
25024 _ACEOF
25027 else
25028 cat >>confdefs.h <<_ACEOF
25029 #define HAVE_DECL_STRTOLL 0
25030 _ACEOF
25034 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
25035 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
25036 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
25037 echo $ECHO_N "(cached) $ECHO_C" >&6
25038 else
25039 cat >conftest.$ac_ext <<_ACEOF
25040 #line $LINENO "configure"
25041 /* confdefs.h. */
25042 _ACEOF
25043 cat confdefs.h >>conftest.$ac_ext
25044 cat >>conftest.$ac_ext <<_ACEOF
25045 /* end confdefs.h. */
25046 $ac_includes_default
25048 main ()
25050 #ifndef strtoimax
25051 char *p = (char *) strtoimax;
25052 #endif
25055 return 0;
25057 _ACEOF
25058 rm -f conftest.$ac_objext
25059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25060 (eval $ac_compile) 2>&5
25061 ac_status=$?
25062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063 (exit $ac_status); } &&
25064 { ac_try='test -s conftest.$ac_objext'
25065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25066 (eval $ac_try) 2>&5
25067 ac_status=$?
25068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069 (exit $ac_status); }; }; then
25070 ac_cv_have_decl_strtoimax=yes
25071 else
25072 echo "$as_me: failed program was:" >&5
25073 sed 's/^/| /' conftest.$ac_ext >&5
25075 ac_cv_have_decl_strtoimax=no
25077 rm -f conftest.$ac_objext conftest.$ac_ext
25079 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
25080 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
25081 if test $ac_cv_have_decl_strtoimax = yes; then
25083 cat >>confdefs.h <<_ACEOF
25084 #define HAVE_DECL_STRTOIMAX 1
25085 _ACEOF
25088 else
25089 cat >>confdefs.h <<_ACEOF
25090 #define HAVE_DECL_STRTOIMAX 0
25091 _ACEOF
25095 echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
25096 echo $ECHO_N "checking whether strtoumax is declared... $ECHO_C" >&6
25097 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
25098 echo $ECHO_N "(cached) $ECHO_C" >&6
25099 else
25100 cat >conftest.$ac_ext <<_ACEOF
25101 #line $LINENO "configure"
25102 /* confdefs.h. */
25103 _ACEOF
25104 cat confdefs.h >>conftest.$ac_ext
25105 cat >>conftest.$ac_ext <<_ACEOF
25106 /* end confdefs.h. */
25107 $ac_includes_default
25109 main ()
25111 #ifndef strtoumax
25112 char *p = (char *) strtoumax;
25113 #endif
25116 return 0;
25118 _ACEOF
25119 rm -f conftest.$ac_objext
25120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25121 (eval $ac_compile) 2>&5
25122 ac_status=$?
25123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124 (exit $ac_status); } &&
25125 { ac_try='test -s conftest.$ac_objext'
25126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25127 (eval $ac_try) 2>&5
25128 ac_status=$?
25129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25130 (exit $ac_status); }; }; then
25131 ac_cv_have_decl_strtoumax=yes
25132 else
25133 echo "$as_me: failed program was:" >&5
25134 sed 's/^/| /' conftest.$ac_ext >&5
25136 ac_cv_have_decl_strtoumax=no
25138 rm -f conftest.$ac_objext conftest.$ac_ext
25140 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
25141 echo "${ECHO_T}$ac_cv_have_decl_strtoumax" >&6
25142 if test $ac_cv_have_decl_strtoumax = yes; then
25144 cat >>confdefs.h <<_ACEOF
25145 #define HAVE_DECL_STRTOUMAX 1
25146 _ACEOF
25149 else
25150 cat >>confdefs.h <<_ACEOF
25151 #define HAVE_DECL_STRTOUMAX 0
25152 _ACEOF
25161 for ac_header in limits.h stdlib.h inttypes.h
25163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25165 echo "$as_me:$LINENO: checking for $ac_header" >&5
25166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25168 echo $ECHO_N "(cached) $ECHO_C" >&6
25170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25172 else
25173 # Is the header compilable?
25174 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25176 cat >conftest.$ac_ext <<_ACEOF
25177 #line $LINENO "configure"
25178 /* confdefs.h. */
25179 _ACEOF
25180 cat confdefs.h >>conftest.$ac_ext
25181 cat >>conftest.$ac_ext <<_ACEOF
25182 /* end confdefs.h. */
25183 $ac_includes_default
25184 #include <$ac_header>
25185 _ACEOF
25186 rm -f conftest.$ac_objext
25187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25188 (eval $ac_compile) 2>&5
25189 ac_status=$?
25190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191 (exit $ac_status); } &&
25192 { ac_try='test -s conftest.$ac_objext'
25193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25194 (eval $ac_try) 2>&5
25195 ac_status=$?
25196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); }; }; then
25198 ac_header_compiler=yes
25199 else
25200 echo "$as_me: failed program was:" >&5
25201 sed 's/^/| /' conftest.$ac_ext >&5
25203 ac_header_compiler=no
25205 rm -f conftest.$ac_objext conftest.$ac_ext
25206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25207 echo "${ECHO_T}$ac_header_compiler" >&6
25209 # Is the header present?
25210 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25212 cat >conftest.$ac_ext <<_ACEOF
25213 #line $LINENO "configure"
25214 /* confdefs.h. */
25215 _ACEOF
25216 cat confdefs.h >>conftest.$ac_ext
25217 cat >>conftest.$ac_ext <<_ACEOF
25218 /* end confdefs.h. */
25219 #include <$ac_header>
25220 _ACEOF
25221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25223 ac_status=$?
25224 grep -v '^ *+' conftest.er1 >conftest.err
25225 rm -f conftest.er1
25226 cat conftest.err >&5
25227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25228 (exit $ac_status); } >/dev/null; then
25229 if test -s conftest.err; then
25230 ac_cpp_err=$ac_c_preproc_warn_flag
25231 else
25232 ac_cpp_err=
25234 else
25235 ac_cpp_err=yes
25237 if test -z "$ac_cpp_err"; then
25238 ac_header_preproc=yes
25239 else
25240 echo "$as_me: failed program was:" >&5
25241 sed 's/^/| /' conftest.$ac_ext >&5
25243 ac_header_preproc=no
25245 rm -f conftest.err conftest.$ac_ext
25246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25247 echo "${ECHO_T}$ac_header_preproc" >&6
25249 # So? What about this header?
25250 case $ac_header_compiler:$ac_header_preproc in
25251 yes:no )
25252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25257 cat <<\_ASBOX
25258 ## ------------------------------------ ##
25259 ## Report this to bug-autoconf@gnu.org. ##
25260 ## ------------------------------------ ##
25261 _ASBOX
25263 sed "s/^/$as_me: WARNING: /" >&2
25265 no:yes )
25266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25273 cat <<\_ASBOX
25274 ## ------------------------------------ ##
25275 ## Report this to bug-autoconf@gnu.org. ##
25276 ## ------------------------------------ ##
25277 _ASBOX
25279 sed "s/^/$as_me: WARNING: /" >&2
25281 esac
25282 echo "$as_me:$LINENO: checking for $ac_header" >&5
25283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25285 echo $ECHO_N "(cached) $ECHO_C" >&6
25286 else
25287 eval "$as_ac_Header=$ac_header_preproc"
25289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25294 cat >>confdefs.h <<_ACEOF
25295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25296 _ACEOF
25300 done
25303 echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
25304 echo $ECHO_N "checking whether <inttypes.h> defines strtoimax as a macro... $ECHO_C" >&6
25305 if test "${jm_cv_func_strtoimax_macro+set}" = set; then
25306 echo $ECHO_N "(cached) $ECHO_C" >&6
25307 else
25308 cat >conftest.$ac_ext <<_ACEOF
25309 #line $LINENO "configure"
25310 /* confdefs.h. */
25311 _ACEOF
25312 cat confdefs.h >>conftest.$ac_ext
25313 cat >>conftest.$ac_ext <<_ACEOF
25314 /* end confdefs.h. */
25315 #include <inttypes.h>
25316 #ifdef strtoimax
25317 inttypes_h_defines_strtoimax
25318 #endif
25319 _ACEOF
25320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25321 $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
25322 jm_cv_func_strtoimax_macro=yes
25323 else
25324 jm_cv_func_strtoimax_macro=no
25326 rm -f conftest*
25329 echo "$as_me:$LINENO: result: $jm_cv_func_strtoimax_macro" >&5
25330 echo "${ECHO_T}$jm_cv_func_strtoimax_macro" >&6
25332 if test "$jm_cv_func_strtoimax_macro" != yes; then
25334 for ac_func in strtoimax
25336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25337 echo "$as_me:$LINENO: checking for $ac_func" >&5
25338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25339 if eval "test \"\${$as_ac_var+set}\" = set"; then
25340 echo $ECHO_N "(cached) $ECHO_C" >&6
25341 else
25342 cat >conftest.$ac_ext <<_ACEOF
25343 #line $LINENO "configure"
25344 /* confdefs.h. */
25345 _ACEOF
25346 cat confdefs.h >>conftest.$ac_ext
25347 cat >>conftest.$ac_ext <<_ACEOF
25348 /* end confdefs.h. */
25349 /* System header to define __stub macros and hopefully few prototypes,
25350 which can conflict with char $ac_func (); below.
25351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25352 <limits.h> exists even on freestanding compilers. */
25353 #ifdef __STDC__
25354 # include <limits.h>
25355 #else
25356 # include <assert.h>
25357 #endif
25358 /* Override any gcc2 internal prototype to avoid an error. */
25359 #ifdef __cplusplus
25360 extern "C"
25362 #endif
25363 /* We use char because int might match the return type of a gcc2
25364 builtin and then its argument prototype would still apply. */
25365 char $ac_func ();
25366 /* The GNU C library defines this for functions which it implements
25367 to always fail with ENOSYS. Some functions are actually named
25368 something starting with __ and the normal name is an alias. */
25369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25370 choke me
25371 #else
25372 char (*f) () = $ac_func;
25373 #endif
25374 #ifdef __cplusplus
25376 #endif
25379 main ()
25381 return f != $ac_func;
25383 return 0;
25385 _ACEOF
25386 rm -f conftest.$ac_objext conftest$ac_exeext
25387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25388 (eval $ac_link) 2>&5
25389 ac_status=$?
25390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391 (exit $ac_status); } &&
25392 { ac_try='test -s conftest$ac_exeext'
25393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25394 (eval $ac_try) 2>&5
25395 ac_status=$?
25396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397 (exit $ac_status); }; }; then
25398 eval "$as_ac_var=yes"
25399 else
25400 echo "$as_me: failed program was:" >&5
25401 sed 's/^/| /' conftest.$ac_ext >&5
25403 eval "$as_ac_var=no"
25405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25409 if test `eval echo '${'$as_ac_var'}'` = yes; then
25410 cat >>confdefs.h <<_ACEOF
25411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25412 _ACEOF
25414 else
25415 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25417 done
25422 case "$jm_cv_func_strtoimax_macro,$ac_cv_func_strtoimax" in
25423 no,no)
25425 for ac_func in strtol
25427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25428 echo "$as_me:$LINENO: checking for $ac_func" >&5
25429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25430 if eval "test \"\${$as_ac_var+set}\" = set"; then
25431 echo $ECHO_N "(cached) $ECHO_C" >&6
25432 else
25433 cat >conftest.$ac_ext <<_ACEOF
25434 #line $LINENO "configure"
25435 /* confdefs.h. */
25436 _ACEOF
25437 cat confdefs.h >>conftest.$ac_ext
25438 cat >>conftest.$ac_ext <<_ACEOF
25439 /* end confdefs.h. */
25440 /* System header to define __stub macros and hopefully few prototypes,
25441 which can conflict with char $ac_func (); below.
25442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25443 <limits.h> exists even on freestanding compilers. */
25444 #ifdef __STDC__
25445 # include <limits.h>
25446 #else
25447 # include <assert.h>
25448 #endif
25449 /* Override any gcc2 internal prototype to avoid an error. */
25450 #ifdef __cplusplus
25451 extern "C"
25453 #endif
25454 /* We use char because int might match the return type of a gcc2
25455 builtin and then its argument prototype would still apply. */
25456 char $ac_func ();
25457 /* The GNU C library defines this for functions which it implements
25458 to always fail with ENOSYS. Some functions are actually named
25459 something starting with __ and the normal name is an alias. */
25460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25461 choke me
25462 #else
25463 char (*f) () = $ac_func;
25464 #endif
25465 #ifdef __cplusplus
25467 #endif
25470 main ()
25472 return f != $ac_func;
25474 return 0;
25476 _ACEOF
25477 rm -f conftest.$ac_objext conftest$ac_exeext
25478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25479 (eval $ac_link) 2>&5
25480 ac_status=$?
25481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482 (exit $ac_status); } &&
25483 { ac_try='test -s conftest$ac_exeext'
25484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25485 (eval $ac_try) 2>&5
25486 ac_status=$?
25487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); }; }; then
25489 eval "$as_ac_var=yes"
25490 else
25491 echo "$as_me: failed program was:" >&5
25492 sed 's/^/| /' conftest.$ac_ext >&5
25494 eval "$as_ac_var=no"
25496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25500 if test `eval echo '${'$as_ac_var'}'` = yes; then
25501 cat >>confdefs.h <<_ACEOF
25502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25503 _ACEOF
25505 else
25506 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25508 done
25512 if test "$ac_cv_type_long_long" = yes; then
25514 for ac_func in strtoll
25516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25517 echo "$as_me:$LINENO: checking for $ac_func" >&5
25518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25519 if eval "test \"\${$as_ac_var+set}\" = set"; then
25520 echo $ECHO_N "(cached) $ECHO_C" >&6
25521 else
25522 cat >conftest.$ac_ext <<_ACEOF
25523 #line $LINENO "configure"
25524 /* confdefs.h. */
25525 _ACEOF
25526 cat confdefs.h >>conftest.$ac_ext
25527 cat >>conftest.$ac_ext <<_ACEOF
25528 /* end confdefs.h. */
25529 /* System header to define __stub macros and hopefully few prototypes,
25530 which can conflict with char $ac_func (); below.
25531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25532 <limits.h> exists even on freestanding compilers. */
25533 #ifdef __STDC__
25534 # include <limits.h>
25535 #else
25536 # include <assert.h>
25537 #endif
25538 /* Override any gcc2 internal prototype to avoid an error. */
25539 #ifdef __cplusplus
25540 extern "C"
25542 #endif
25543 /* We use char because int might match the return type of a gcc2
25544 builtin and then its argument prototype would still apply. */
25545 char $ac_func ();
25546 /* The GNU C library defines this for functions which it implements
25547 to always fail with ENOSYS. Some functions are actually named
25548 something starting with __ and the normal name is an alias. */
25549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25550 choke me
25551 #else
25552 char (*f) () = $ac_func;
25553 #endif
25554 #ifdef __cplusplus
25556 #endif
25559 main ()
25561 return f != $ac_func;
25563 return 0;
25565 _ACEOF
25566 rm -f conftest.$ac_objext conftest$ac_exeext
25567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25568 (eval $ac_link) 2>&5
25569 ac_status=$?
25570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25571 (exit $ac_status); } &&
25572 { ac_try='test -s conftest$ac_exeext'
25573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25574 (eval $ac_try) 2>&5
25575 ac_status=$?
25576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25577 (exit $ac_status); }; }; then
25578 eval "$as_ac_var=yes"
25579 else
25580 echo "$as_me: failed program was:" >&5
25581 sed 's/^/| /' conftest.$ac_ext >&5
25583 eval "$as_ac_var=no"
25585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25589 if test `eval echo '${'$as_ac_var'}'` = yes; then
25590 cat >>confdefs.h <<_ACEOF
25591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25592 _ACEOF
25594 else
25595 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
25597 done
25602 esac
25604 echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink specified with a trailing slash" >&5
25605 echo $ECHO_N "checking whether link(2) dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
25606 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
25607 echo $ECHO_N "(cached) $ECHO_C" >&6
25608 else
25610 test -z "$ac_cv_header_unistd_h" \
25612 for ac_header in unistd.h
25614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25616 echo "$as_me:$LINENO: checking for $ac_header" >&5
25617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25619 echo $ECHO_N "(cached) $ECHO_C" >&6
25621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25623 else
25624 # Is the header compilable?
25625 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25627 cat >conftest.$ac_ext <<_ACEOF
25628 #line $LINENO "configure"
25629 /* confdefs.h. */
25630 _ACEOF
25631 cat confdefs.h >>conftest.$ac_ext
25632 cat >>conftest.$ac_ext <<_ACEOF
25633 /* end confdefs.h. */
25634 $ac_includes_default
25635 #include <$ac_header>
25636 _ACEOF
25637 rm -f conftest.$ac_objext
25638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25639 (eval $ac_compile) 2>&5
25640 ac_status=$?
25641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642 (exit $ac_status); } &&
25643 { ac_try='test -s conftest.$ac_objext'
25644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25645 (eval $ac_try) 2>&5
25646 ac_status=$?
25647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); }; }; then
25649 ac_header_compiler=yes
25650 else
25651 echo "$as_me: failed program was:" >&5
25652 sed 's/^/| /' conftest.$ac_ext >&5
25654 ac_header_compiler=no
25656 rm -f conftest.$ac_objext conftest.$ac_ext
25657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25658 echo "${ECHO_T}$ac_header_compiler" >&6
25660 # Is the header present?
25661 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25663 cat >conftest.$ac_ext <<_ACEOF
25664 #line $LINENO "configure"
25665 /* confdefs.h. */
25666 _ACEOF
25667 cat confdefs.h >>conftest.$ac_ext
25668 cat >>conftest.$ac_ext <<_ACEOF
25669 /* end confdefs.h. */
25670 #include <$ac_header>
25671 _ACEOF
25672 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25673 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25674 ac_status=$?
25675 grep -v '^ *+' conftest.er1 >conftest.err
25676 rm -f conftest.er1
25677 cat conftest.err >&5
25678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679 (exit $ac_status); } >/dev/null; then
25680 if test -s conftest.err; then
25681 ac_cpp_err=$ac_c_preproc_warn_flag
25682 else
25683 ac_cpp_err=
25685 else
25686 ac_cpp_err=yes
25688 if test -z "$ac_cpp_err"; then
25689 ac_header_preproc=yes
25690 else
25691 echo "$as_me: failed program was:" >&5
25692 sed 's/^/| /' conftest.$ac_ext >&5
25694 ac_header_preproc=no
25696 rm -f conftest.err conftest.$ac_ext
25697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25698 echo "${ECHO_T}$ac_header_preproc" >&6
25700 # So? What about this header?
25701 case $ac_header_compiler:$ac_header_preproc in
25702 yes:no )
25703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25708 cat <<\_ASBOX
25709 ## ------------------------------------ ##
25710 ## Report this to bug-autoconf@gnu.org. ##
25711 ## ------------------------------------ ##
25712 _ASBOX
25714 sed "s/^/$as_me: WARNING: /" >&2
25716 no:yes )
25717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25724 cat <<\_ASBOX
25725 ## ------------------------------------ ##
25726 ## Report this to bug-autoconf@gnu.org. ##
25727 ## ------------------------------------ ##
25728 _ASBOX
25730 sed "s/^/$as_me: WARNING: /" >&2
25732 esac
25733 echo "$as_me:$LINENO: checking for $ac_header" >&5
25734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25736 echo $ECHO_N "(cached) $ECHO_C" >&6
25737 else
25738 eval "$as_ac_Header=$ac_header_preproc"
25740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25745 cat >>confdefs.h <<_ACEOF
25746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25747 _ACEOF
25751 done
25754 # Create a regular file.
25755 echo > conftest.file
25756 if test "$cross_compiling" = yes; then
25757 jm_ac_cv_func_link_follows_symlink=yes
25758 else
25759 cat >conftest.$ac_ext <<_ACEOF
25760 #line $LINENO "configure"
25761 /* confdefs.h. */
25762 _ACEOF
25763 cat confdefs.h >>conftest.$ac_ext
25764 cat >>conftest.$ac_ext <<_ACEOF
25765 /* end confdefs.h. */
25767 # include <sys/types.h>
25768 # include <sys/stat.h>
25769 # ifdef HAVE_UNISTD_H
25770 # include <unistd.h>
25771 # endif
25773 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
25774 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
25775 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
25778 main ()
25780 const char *file = "conftest.file";
25781 const char *sym = "conftest.sym";
25782 const char *hard = "conftest.hard";
25783 struct stat sb_file, sb_hard;
25785 /* Create a symlink to the regular file. */
25786 if (symlink (file, sym))
25787 abort ();
25789 /* Create a hard link to that symlink. */
25790 if (link (sym, hard))
25791 abort ();
25793 if (lstat (hard, &sb_hard))
25794 abort ();
25795 if (lstat (file, &sb_file))
25796 abort ();
25798 /* If the dev/inode of hard and file are the same, then
25799 the link call followed the symlink. */
25800 return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
25803 _ACEOF
25804 rm -f conftest$ac_exeext
25805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25806 (eval $ac_link) 2>&5
25807 ac_status=$?
25808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25811 (eval $ac_try) 2>&5
25812 ac_status=$?
25813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814 (exit $ac_status); }; }; then
25815 jm_ac_cv_func_link_follows_symlink=yes
25816 else
25817 echo "$as_me: program exited with status $ac_status" >&5
25818 echo "$as_me: failed program was:" >&5
25819 sed 's/^/| /' conftest.$ac_ext >&5
25821 ( exit $ac_status )
25822 jm_ac_cv_func_link_follows_symlink=no
25824 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25828 echo "$as_me:$LINENO: result: $jm_ac_cv_func_link_follows_symlink" >&5
25829 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6
25830 if test $jm_ac_cv_func_link_follows_symlink = yes; then
25832 cat >>confdefs.h <<\_ACEOF
25833 #define LINK_FOLLOWS_SYMLINKS 1
25834 _ACEOF
25838 echo "$as_me:$LINENO: checking for error_at_line" >&5
25839 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
25840 if test "${ac_cv_lib_error_at_line+set}" = set; then
25841 echo $ECHO_N "(cached) $ECHO_C" >&6
25842 else
25843 cat >conftest.$ac_ext <<_ACEOF
25844 #line $LINENO "configure"
25845 /* confdefs.h. */
25846 _ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h. */
25852 main ()
25854 error_at_line (0, 0, "", 0, "");
25856 return 0;
25858 _ACEOF
25859 rm -f conftest.$ac_objext conftest$ac_exeext
25860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25861 (eval $ac_link) 2>&5
25862 ac_status=$?
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); } &&
25865 { ac_try='test -s conftest$ac_exeext'
25866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25867 (eval $ac_try) 2>&5
25868 ac_status=$?
25869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25870 (exit $ac_status); }; }; then
25871 ac_cv_lib_error_at_line=yes
25872 else
25873 echo "$as_me: failed program was:" >&5
25874 sed 's/^/| /' conftest.$ac_ext >&5
25876 ac_cv_lib_error_at_line=no
25878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25880 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
25881 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
25882 if test $ac_cv_lib_error_at_line = no; then
25883 LIBOBJS="$LIBOBJS error.$ac_objext"
25890 for ac_func in localtime_r strftime
25892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25893 echo "$as_me:$LINENO: checking for $ac_func" >&5
25894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25895 if eval "test \"\${$as_ac_var+set}\" = set"; then
25896 echo $ECHO_N "(cached) $ECHO_C" >&6
25897 else
25898 cat >conftest.$ac_ext <<_ACEOF
25899 #line $LINENO "configure"
25900 /* confdefs.h. */
25901 _ACEOF
25902 cat confdefs.h >>conftest.$ac_ext
25903 cat >>conftest.$ac_ext <<_ACEOF
25904 /* end confdefs.h. */
25905 /* System header to define __stub macros and hopefully few prototypes,
25906 which can conflict with char $ac_func (); below.
25907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25908 <limits.h> exists even on freestanding compilers. */
25909 #ifdef __STDC__
25910 # include <limits.h>
25911 #else
25912 # include <assert.h>
25913 #endif
25914 /* Override any gcc2 internal prototype to avoid an error. */
25915 #ifdef __cplusplus
25916 extern "C"
25918 #endif
25919 /* We use char because int might match the return type of a gcc2
25920 builtin and then its argument prototype would still apply. */
25921 char $ac_func ();
25922 /* The GNU C library defines this for functions which it implements
25923 to always fail with ENOSYS. Some functions are actually named
25924 something starting with __ and the normal name is an alias. */
25925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25926 choke me
25927 #else
25928 char (*f) () = $ac_func;
25929 #endif
25930 #ifdef __cplusplus
25932 #endif
25935 main ()
25937 return f != $ac_func;
25939 return 0;
25941 _ACEOF
25942 rm -f conftest.$ac_objext conftest$ac_exeext
25943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25944 (eval $ac_link) 2>&5
25945 ac_status=$?
25946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947 (exit $ac_status); } &&
25948 { ac_try='test -s conftest$ac_exeext'
25949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25950 (eval $ac_try) 2>&5
25951 ac_status=$?
25952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953 (exit $ac_status); }; }; then
25954 eval "$as_ac_var=yes"
25955 else
25956 echo "$as_me: failed program was:" >&5
25957 sed 's/^/| /' conftest.$ac_ext >&5
25959 eval "$as_ac_var=no"
25961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25965 if test `eval echo '${'$as_ac_var'}'` = yes; then
25966 cat >>confdefs.h <<_ACEOF
25967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25968 _ACEOF
25971 done
25975 for ac_header in limits.h
25977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25979 echo "$as_me:$LINENO: checking for $ac_header" >&5
25980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25982 echo $ECHO_N "(cached) $ECHO_C" >&6
25984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25986 else
25987 # Is the header compilable?
25988 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25990 cat >conftest.$ac_ext <<_ACEOF
25991 #line $LINENO "configure"
25992 /* confdefs.h. */
25993 _ACEOF
25994 cat confdefs.h >>conftest.$ac_ext
25995 cat >>conftest.$ac_ext <<_ACEOF
25996 /* end confdefs.h. */
25997 $ac_includes_default
25998 #include <$ac_header>
25999 _ACEOF
26000 rm -f conftest.$ac_objext
26001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26002 (eval $ac_compile) 2>&5
26003 ac_status=$?
26004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26005 (exit $ac_status); } &&
26006 { ac_try='test -s conftest.$ac_objext'
26007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26008 (eval $ac_try) 2>&5
26009 ac_status=$?
26010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011 (exit $ac_status); }; }; then
26012 ac_header_compiler=yes
26013 else
26014 echo "$as_me: failed program was:" >&5
26015 sed 's/^/| /' conftest.$ac_ext >&5
26017 ac_header_compiler=no
26019 rm -f conftest.$ac_objext conftest.$ac_ext
26020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26021 echo "${ECHO_T}$ac_header_compiler" >&6
26023 # Is the header present?
26024 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26026 cat >conftest.$ac_ext <<_ACEOF
26027 #line $LINENO "configure"
26028 /* confdefs.h. */
26029 _ACEOF
26030 cat confdefs.h >>conftest.$ac_ext
26031 cat >>conftest.$ac_ext <<_ACEOF
26032 /* end confdefs.h. */
26033 #include <$ac_header>
26034 _ACEOF
26035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26037 ac_status=$?
26038 grep -v '^ *+' conftest.er1 >conftest.err
26039 rm -f conftest.er1
26040 cat conftest.err >&5
26041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042 (exit $ac_status); } >/dev/null; then
26043 if test -s conftest.err; then
26044 ac_cpp_err=$ac_c_preproc_warn_flag
26045 else
26046 ac_cpp_err=
26048 else
26049 ac_cpp_err=yes
26051 if test -z "$ac_cpp_err"; then
26052 ac_header_preproc=yes
26053 else
26054 echo "$as_me: failed program was:" >&5
26055 sed 's/^/| /' conftest.$ac_ext >&5
26057 ac_header_preproc=no
26059 rm -f conftest.err conftest.$ac_ext
26060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26061 echo "${ECHO_T}$ac_header_preproc" >&6
26063 # So? What about this header?
26064 case $ac_header_compiler:$ac_header_preproc in
26065 yes:no )
26066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26069 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26071 cat <<\_ASBOX
26072 ## ------------------------------------ ##
26073 ## Report this to bug-autoconf@gnu.org. ##
26074 ## ------------------------------------ ##
26075 _ASBOX
26077 sed "s/^/$as_me: WARNING: /" >&2
26079 no:yes )
26080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26087 cat <<\_ASBOX
26088 ## ------------------------------------ ##
26089 ## Report this to bug-autoconf@gnu.org. ##
26090 ## ------------------------------------ ##
26091 _ASBOX
26093 sed "s/^/$as_me: WARNING: /" >&2
26095 esac
26096 echo "$as_me:$LINENO: checking for $ac_header" >&5
26097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26099 echo $ECHO_N "(cached) $ECHO_C" >&6
26100 else
26101 eval "$as_ac_Header=$ac_header_preproc"
26103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26108 cat >>confdefs.h <<_ACEOF
26109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26110 _ACEOF
26114 done
26121 for ac_func in bcopy tzset mempcpy memcpy memset
26123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26124 echo "$as_me:$LINENO: checking for $ac_func" >&5
26125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26126 if eval "test \"\${$as_ac_var+set}\" = set"; then
26127 echo $ECHO_N "(cached) $ECHO_C" >&6
26128 else
26129 cat >conftest.$ac_ext <<_ACEOF
26130 #line $LINENO "configure"
26131 /* confdefs.h. */
26132 _ACEOF
26133 cat confdefs.h >>conftest.$ac_ext
26134 cat >>conftest.$ac_ext <<_ACEOF
26135 /* end confdefs.h. */
26136 /* System header to define __stub macros and hopefully few prototypes,
26137 which can conflict with char $ac_func (); below.
26138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26139 <limits.h> exists even on freestanding compilers. */
26140 #ifdef __STDC__
26141 # include <limits.h>
26142 #else
26143 # include <assert.h>
26144 #endif
26145 /* Override any gcc2 internal prototype to avoid an error. */
26146 #ifdef __cplusplus
26147 extern "C"
26149 #endif
26150 /* We use char because int might match the return type of a gcc2
26151 builtin and then its argument prototype would still apply. */
26152 char $ac_func ();
26153 /* The GNU C library defines this for functions which it implements
26154 to always fail with ENOSYS. Some functions are actually named
26155 something starting with __ and the normal name is an alias. */
26156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26157 choke me
26158 #else
26159 char (*f) () = $ac_func;
26160 #endif
26161 #ifdef __cplusplus
26163 #endif
26166 main ()
26168 return f != $ac_func;
26170 return 0;
26172 _ACEOF
26173 rm -f conftest.$ac_objext conftest$ac_exeext
26174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26175 (eval $ac_link) 2>&5
26176 ac_status=$?
26177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); } &&
26179 { ac_try='test -s conftest$ac_exeext'
26180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26181 (eval $ac_try) 2>&5
26182 ac_status=$?
26183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184 (exit $ac_status); }; }; then
26185 eval "$as_ac_var=yes"
26186 else
26187 echo "$as_me: failed program was:" >&5
26188 sed 's/^/| /' conftest.$ac_ext >&5
26190 eval "$as_ac_var=no"
26192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26195 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26196 if test `eval echo '${'$as_ac_var'}'` = yes; then
26197 cat >>confdefs.h <<_ACEOF
26198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26199 _ACEOF
26202 done
26205 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
26206 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
26207 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
26208 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
26209 echo $ECHO_N "(cached) $ECHO_C" >&6
26210 else
26211 cat >conftest.$ac_ext <<_ACEOF
26212 #line $LINENO "configure"
26213 /* confdefs.h. */
26214 _ACEOF
26215 cat confdefs.h >>conftest.$ac_ext
26216 cat >>conftest.$ac_ext <<_ACEOF
26217 /* end confdefs.h. */
26218 #include <sys/types.h>
26219 #include <$ac_cv_struct_tm>
26223 main ()
26225 static struct tm ac_aggr;
26226 if (ac_aggr.tm_zone)
26227 return 0;
26229 return 0;
26231 _ACEOF
26232 rm -f conftest.$ac_objext
26233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26234 (eval $ac_compile) 2>&5
26235 ac_status=$?
26236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26237 (exit $ac_status); } &&
26238 { ac_try='test -s conftest.$ac_objext'
26239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26240 (eval $ac_try) 2>&5
26241 ac_status=$?
26242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243 (exit $ac_status); }; }; then
26244 ac_cv_member_struct_tm_tm_zone=yes
26245 else
26246 echo "$as_me: failed program was:" >&5
26247 sed 's/^/| /' conftest.$ac_ext >&5
26249 cat >conftest.$ac_ext <<_ACEOF
26250 #line $LINENO "configure"
26251 /* confdefs.h. */
26252 _ACEOF
26253 cat confdefs.h >>conftest.$ac_ext
26254 cat >>conftest.$ac_ext <<_ACEOF
26255 /* end confdefs.h. */
26256 #include <sys/types.h>
26257 #include <$ac_cv_struct_tm>
26261 main ()
26263 static struct tm ac_aggr;
26264 if (sizeof ac_aggr.tm_zone)
26265 return 0;
26267 return 0;
26269 _ACEOF
26270 rm -f conftest.$ac_objext
26271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26272 (eval $ac_compile) 2>&5
26273 ac_status=$?
26274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275 (exit $ac_status); } &&
26276 { ac_try='test -s conftest.$ac_objext'
26277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26278 (eval $ac_try) 2>&5
26279 ac_status=$?
26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281 (exit $ac_status); }; }; then
26282 ac_cv_member_struct_tm_tm_zone=yes
26283 else
26284 echo "$as_me: failed program was:" >&5
26285 sed 's/^/| /' conftest.$ac_ext >&5
26287 ac_cv_member_struct_tm_tm_zone=no
26289 rm -f conftest.$ac_objext conftest.$ac_ext
26291 rm -f conftest.$ac_objext conftest.$ac_ext
26293 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
26294 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
26295 if test $ac_cv_member_struct_tm_tm_zone = yes; then
26297 cat >>confdefs.h <<_ACEOF
26298 #define HAVE_STRUCT_TM_TM_ZONE 1
26299 _ACEOF
26304 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26306 cat >>confdefs.h <<\_ACEOF
26307 #define HAVE_TM_ZONE 1
26308 _ACEOF
26310 else
26311 echo "$as_me:$LINENO: checking for tzname" >&5
26312 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
26313 if test "${ac_cv_var_tzname+set}" = set; then
26314 echo $ECHO_N "(cached) $ECHO_C" >&6
26315 else
26316 cat >conftest.$ac_ext <<_ACEOF
26317 #line $LINENO "configure"
26318 /* confdefs.h. */
26319 _ACEOF
26320 cat confdefs.h >>conftest.$ac_ext
26321 cat >>conftest.$ac_ext <<_ACEOF
26322 /* end confdefs.h. */
26323 #include <time.h>
26324 #ifndef tzname /* For SGI. */
26325 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
26326 #endif
26329 main ()
26331 atoi(*tzname);
26333 return 0;
26335 _ACEOF
26336 rm -f conftest.$ac_objext conftest$ac_exeext
26337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26338 (eval $ac_link) 2>&5
26339 ac_status=$?
26340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341 (exit $ac_status); } &&
26342 { ac_try='test -s conftest$ac_exeext'
26343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26344 (eval $ac_try) 2>&5
26345 ac_status=$?
26346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26347 (exit $ac_status); }; }; then
26348 ac_cv_var_tzname=yes
26349 else
26350 echo "$as_me: failed program was:" >&5
26351 sed 's/^/| /' conftest.$ac_ext >&5
26353 ac_cv_var_tzname=no
26355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26357 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
26358 echo "${ECHO_T}$ac_cv_var_tzname" >&6
26359 if test $ac_cv_var_tzname = yes; then
26361 cat >>confdefs.h <<\_ACEOF
26362 #define HAVE_TZNAME 1
26363 _ACEOF
26371 for ac_func in mblen mbrlen
26373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26374 echo "$as_me:$LINENO: checking for $ac_func" >&5
26375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26376 if eval "test \"\${$as_ac_var+set}\" = set"; then
26377 echo $ECHO_N "(cached) $ECHO_C" >&6
26378 else
26379 cat >conftest.$ac_ext <<_ACEOF
26380 #line $LINENO "configure"
26381 /* confdefs.h. */
26382 _ACEOF
26383 cat confdefs.h >>conftest.$ac_ext
26384 cat >>conftest.$ac_ext <<_ACEOF
26385 /* end confdefs.h. */
26386 /* System header to define __stub macros and hopefully few prototypes,
26387 which can conflict with char $ac_func (); below.
26388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26389 <limits.h> exists even on freestanding compilers. */
26390 #ifdef __STDC__
26391 # include <limits.h>
26392 #else
26393 # include <assert.h>
26394 #endif
26395 /* Override any gcc2 internal prototype to avoid an error. */
26396 #ifdef __cplusplus
26397 extern "C"
26399 #endif
26400 /* We use char because int might match the return type of a gcc2
26401 builtin and then its argument prototype would still apply. */
26402 char $ac_func ();
26403 /* The GNU C library defines this for functions which it implements
26404 to always fail with ENOSYS. Some functions are actually named
26405 something starting with __ and the normal name is an alias. */
26406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26407 choke me
26408 #else
26409 char (*f) () = $ac_func;
26410 #endif
26411 #ifdef __cplusplus
26413 #endif
26416 main ()
26418 return f != $ac_func;
26420 return 0;
26422 _ACEOF
26423 rm -f conftest.$ac_objext conftest$ac_exeext
26424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26425 (eval $ac_link) 2>&5
26426 ac_status=$?
26427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428 (exit $ac_status); } &&
26429 { ac_try='test -s conftest$ac_exeext'
26430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26431 (eval $ac_try) 2>&5
26432 ac_status=$?
26433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434 (exit $ac_status); }; }; then
26435 eval "$as_ac_var=yes"
26436 else
26437 echo "$as_me: failed program was:" >&5
26438 sed 's/^/| /' conftest.$ac_ext >&5
26440 eval "$as_ac_var=no"
26442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26446 if test `eval echo '${'$as_ac_var'}'` = yes; then
26447 cat >>confdefs.h <<_ACEOF
26448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26449 _ACEOF
26452 done
26455 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
26456 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
26457 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
26458 echo $ECHO_N "(cached) $ECHO_C" >&6
26459 else
26460 cat >conftest.$ac_ext <<_ACEOF
26461 #line $LINENO "configure"
26462 /* confdefs.h. */
26463 _ACEOF
26464 cat confdefs.h >>conftest.$ac_ext
26465 cat >>conftest.$ac_ext <<_ACEOF
26466 /* end confdefs.h. */
26467 #include <time.h>
26470 main ()
26472 static struct tm ac_aggr;
26473 if (ac_aggr.tm_gmtoff)
26474 return 0;
26476 return 0;
26478 _ACEOF
26479 rm -f conftest.$ac_objext
26480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26481 (eval $ac_compile) 2>&5
26482 ac_status=$?
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); } &&
26485 { ac_try='test -s conftest.$ac_objext'
26486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26487 (eval $ac_try) 2>&5
26488 ac_status=$?
26489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490 (exit $ac_status); }; }; then
26491 ac_cv_member_struct_tm_tm_gmtoff=yes
26492 else
26493 echo "$as_me: failed program was:" >&5
26494 sed 's/^/| /' conftest.$ac_ext >&5
26496 cat >conftest.$ac_ext <<_ACEOF
26497 #line $LINENO "configure"
26498 /* confdefs.h. */
26499 _ACEOF
26500 cat confdefs.h >>conftest.$ac_ext
26501 cat >>conftest.$ac_ext <<_ACEOF
26502 /* end confdefs.h. */
26503 #include <time.h>
26506 main ()
26508 static struct tm ac_aggr;
26509 if (sizeof ac_aggr.tm_gmtoff)
26510 return 0;
26512 return 0;
26514 _ACEOF
26515 rm -f conftest.$ac_objext
26516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26517 (eval $ac_compile) 2>&5
26518 ac_status=$?
26519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26520 (exit $ac_status); } &&
26521 { ac_try='test -s conftest.$ac_objext'
26522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26523 (eval $ac_try) 2>&5
26524 ac_status=$?
26525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526 (exit $ac_status); }; }; then
26527 ac_cv_member_struct_tm_tm_gmtoff=yes
26528 else
26529 echo "$as_me: failed program was:" >&5
26530 sed 's/^/| /' conftest.$ac_ext >&5
26532 ac_cv_member_struct_tm_tm_gmtoff=no
26534 rm -f conftest.$ac_objext conftest.$ac_ext
26536 rm -f conftest.$ac_objext conftest.$ac_ext
26538 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
26539 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
26540 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
26542 cat >>confdefs.h <<\_ACEOF
26543 #define HAVE_TM_GMTOFF 1
26544 _ACEOF
26551 for ac_header in sys/time.h
26553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26555 echo "$as_me:$LINENO: checking for $ac_header" >&5
26556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26558 echo $ECHO_N "(cached) $ECHO_C" >&6
26560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26562 else
26563 # Is the header compilable?
26564 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26566 cat >conftest.$ac_ext <<_ACEOF
26567 #line $LINENO "configure"
26568 /* confdefs.h. */
26569 _ACEOF
26570 cat confdefs.h >>conftest.$ac_ext
26571 cat >>conftest.$ac_ext <<_ACEOF
26572 /* end confdefs.h. */
26573 $ac_includes_default
26574 #include <$ac_header>
26575 _ACEOF
26576 rm -f conftest.$ac_objext
26577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26578 (eval $ac_compile) 2>&5
26579 ac_status=$?
26580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26581 (exit $ac_status); } &&
26582 { ac_try='test -s conftest.$ac_objext'
26583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26584 (eval $ac_try) 2>&5
26585 ac_status=$?
26586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26587 (exit $ac_status); }; }; then
26588 ac_header_compiler=yes
26589 else
26590 echo "$as_me: failed program was:" >&5
26591 sed 's/^/| /' conftest.$ac_ext >&5
26593 ac_header_compiler=no
26595 rm -f conftest.$ac_objext conftest.$ac_ext
26596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26597 echo "${ECHO_T}$ac_header_compiler" >&6
26599 # Is the header present?
26600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26602 cat >conftest.$ac_ext <<_ACEOF
26603 #line $LINENO "configure"
26604 /* confdefs.h. */
26605 _ACEOF
26606 cat confdefs.h >>conftest.$ac_ext
26607 cat >>conftest.$ac_ext <<_ACEOF
26608 /* end confdefs.h. */
26609 #include <$ac_header>
26610 _ACEOF
26611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26613 ac_status=$?
26614 grep -v '^ *+' conftest.er1 >conftest.err
26615 rm -f conftest.er1
26616 cat conftest.err >&5
26617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26618 (exit $ac_status); } >/dev/null; then
26619 if test -s conftest.err; then
26620 ac_cpp_err=$ac_c_preproc_warn_flag
26621 else
26622 ac_cpp_err=
26624 else
26625 ac_cpp_err=yes
26627 if test -z "$ac_cpp_err"; then
26628 ac_header_preproc=yes
26629 else
26630 echo "$as_me: failed program was:" >&5
26631 sed 's/^/| /' conftest.$ac_ext >&5
26633 ac_header_preproc=no
26635 rm -f conftest.err conftest.$ac_ext
26636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26637 echo "${ECHO_T}$ac_header_preproc" >&6
26639 # So? What about this header?
26640 case $ac_header_compiler:$ac_header_preproc in
26641 yes:no )
26642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26647 cat <<\_ASBOX
26648 ## ------------------------------------ ##
26649 ## Report this to bug-autoconf@gnu.org. ##
26650 ## ------------------------------------ ##
26651 _ASBOX
26653 sed "s/^/$as_me: WARNING: /" >&2
26655 no:yes )
26656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26659 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26663 cat <<\_ASBOX
26664 ## ------------------------------------ ##
26665 ## Report this to bug-autoconf@gnu.org. ##
26666 ## ------------------------------------ ##
26667 _ASBOX
26669 sed "s/^/$as_me: WARNING: /" >&2
26671 esac
26672 echo "$as_me:$LINENO: checking for $ac_header" >&5
26673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26675 echo $ECHO_N "(cached) $ECHO_C" >&6
26676 else
26677 eval "$as_ac_Header=$ac_header_preproc"
26679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26684 cat >>confdefs.h <<_ACEOF
26685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26686 _ACEOF
26690 done
26693 cat >>confdefs.h <<\_ACEOF
26694 #define my_strftime nstrftime
26695 _ACEOF
26700 for ac_header in stdio_ext.h
26702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26704 echo "$as_me:$LINENO: checking for $ac_header" >&5
26705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26707 echo $ECHO_N "(cached) $ECHO_C" >&6
26709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26711 else
26712 # Is the header compilable?
26713 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26715 cat >conftest.$ac_ext <<_ACEOF
26716 #line $LINENO "configure"
26717 /* confdefs.h. */
26718 _ACEOF
26719 cat confdefs.h >>conftest.$ac_ext
26720 cat >>conftest.$ac_ext <<_ACEOF
26721 /* end confdefs.h. */
26722 $ac_includes_default
26723 #include <$ac_header>
26724 _ACEOF
26725 rm -f conftest.$ac_objext
26726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26727 (eval $ac_compile) 2>&5
26728 ac_status=$?
26729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730 (exit $ac_status); } &&
26731 { ac_try='test -s conftest.$ac_objext'
26732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26733 (eval $ac_try) 2>&5
26734 ac_status=$?
26735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736 (exit $ac_status); }; }; then
26737 ac_header_compiler=yes
26738 else
26739 echo "$as_me: failed program was:" >&5
26740 sed 's/^/| /' conftest.$ac_ext >&5
26742 ac_header_compiler=no
26744 rm -f conftest.$ac_objext conftest.$ac_ext
26745 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26746 echo "${ECHO_T}$ac_header_compiler" >&6
26748 # Is the header present?
26749 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26751 cat >conftest.$ac_ext <<_ACEOF
26752 #line $LINENO "configure"
26753 /* confdefs.h. */
26754 _ACEOF
26755 cat confdefs.h >>conftest.$ac_ext
26756 cat >>conftest.$ac_ext <<_ACEOF
26757 /* end confdefs.h. */
26758 #include <$ac_header>
26759 _ACEOF
26760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26762 ac_status=$?
26763 grep -v '^ *+' conftest.er1 >conftest.err
26764 rm -f conftest.er1
26765 cat conftest.err >&5
26766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767 (exit $ac_status); } >/dev/null; then
26768 if test -s conftest.err; then
26769 ac_cpp_err=$ac_c_preproc_warn_flag
26770 else
26771 ac_cpp_err=
26773 else
26774 ac_cpp_err=yes
26776 if test -z "$ac_cpp_err"; then
26777 ac_header_preproc=yes
26778 else
26779 echo "$as_me: failed program was:" >&5
26780 sed 's/^/| /' conftest.$ac_ext >&5
26782 ac_header_preproc=no
26784 rm -f conftest.err conftest.$ac_ext
26785 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26786 echo "${ECHO_T}$ac_header_preproc" >&6
26788 # So? What about this header?
26789 case $ac_header_compiler:$ac_header_preproc in
26790 yes:no )
26791 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26796 cat <<\_ASBOX
26797 ## ------------------------------------ ##
26798 ## Report this to bug-autoconf@gnu.org. ##
26799 ## ------------------------------------ ##
26800 _ASBOX
26802 sed "s/^/$as_me: WARNING: /" >&2
26804 no:yes )
26805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26808 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26812 cat <<\_ASBOX
26813 ## ------------------------------------ ##
26814 ## Report this to bug-autoconf@gnu.org. ##
26815 ## ------------------------------------ ##
26816 _ASBOX
26818 sed "s/^/$as_me: WARNING: /" >&2
26820 esac
26821 echo "$as_me:$LINENO: checking for $ac_header" >&5
26822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26824 echo $ECHO_N "(cached) $ECHO_C" >&6
26825 else
26826 eval "$as_ac_Header=$ac_header_preproc"
26828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26833 cat >>confdefs.h <<_ACEOF
26834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26835 _ACEOF
26839 done
26842 for ac_func in __fpending
26844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26845 echo "$as_me:$LINENO: checking for $ac_func" >&5
26846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26847 if eval "test \"\${$as_ac_var+set}\" = set"; then
26848 echo $ECHO_N "(cached) $ECHO_C" >&6
26849 else
26850 cat >conftest.$ac_ext <<_ACEOF
26851 #line $LINENO "configure"
26852 /* confdefs.h. */
26853 _ACEOF
26854 cat confdefs.h >>conftest.$ac_ext
26855 cat >>conftest.$ac_ext <<_ACEOF
26856 /* end confdefs.h. */
26857 /* System header to define __stub macros and hopefully few prototypes,
26858 which can conflict with char $ac_func (); below.
26859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26860 <limits.h> exists even on freestanding compilers. */
26861 #ifdef __STDC__
26862 # include <limits.h>
26863 #else
26864 # include <assert.h>
26865 #endif
26866 /* Override any gcc2 internal prototype to avoid an error. */
26867 #ifdef __cplusplus
26868 extern "C"
26870 #endif
26871 /* We use char because int might match the return type of a gcc2
26872 builtin and then its argument prototype would still apply. */
26873 char $ac_func ();
26874 /* The GNU C library defines this for functions which it implements
26875 to always fail with ENOSYS. Some functions are actually named
26876 something starting with __ and the normal name is an alias. */
26877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26878 choke me
26879 #else
26880 char (*f) () = $ac_func;
26881 #endif
26882 #ifdef __cplusplus
26884 #endif
26887 main ()
26889 return f != $ac_func;
26891 return 0;
26893 _ACEOF
26894 rm -f conftest.$ac_objext conftest$ac_exeext
26895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26896 (eval $ac_link) 2>&5
26897 ac_status=$?
26898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26899 (exit $ac_status); } &&
26900 { ac_try='test -s conftest$ac_exeext'
26901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26902 (eval $ac_try) 2>&5
26903 ac_status=$?
26904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905 (exit $ac_status); }; }; then
26906 eval "$as_ac_var=yes"
26907 else
26908 echo "$as_me: failed program was:" >&5
26909 sed 's/^/| /' conftest.$ac_ext >&5
26911 eval "$as_ac_var=no"
26913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26916 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26917 if test `eval echo '${'$as_ac_var'}'` = yes; then
26918 cat >>confdefs.h <<_ACEOF
26919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26920 _ACEOF
26922 else
26923 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26925 done
26928 fp_headers='
26929 # if HAVE_STDIO_EXT_H
26930 # include <stdio_ext.h>
26931 # endif
26933 echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
26934 echo $ECHO_N "checking whether __fpending is declared... $ECHO_C" >&6
26935 if test "${ac_cv_have_decl___fpending+set}" = set; then
26936 echo $ECHO_N "(cached) $ECHO_C" >&6
26937 else
26938 cat >conftest.$ac_ext <<_ACEOF
26939 #line $LINENO "configure"
26940 /* confdefs.h. */
26941 _ACEOF
26942 cat confdefs.h >>conftest.$ac_ext
26943 cat >>conftest.$ac_ext <<_ACEOF
26944 /* end confdefs.h. */
26945 $fp_headers
26948 main ()
26950 #ifndef __fpending
26951 char *p = (char *) __fpending;
26952 #endif
26955 return 0;
26957 _ACEOF
26958 rm -f conftest.$ac_objext
26959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26960 (eval $ac_compile) 2>&5
26961 ac_status=$?
26962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963 (exit $ac_status); } &&
26964 { ac_try='test -s conftest.$ac_objext'
26965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26966 (eval $ac_try) 2>&5
26967 ac_status=$?
26968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969 (exit $ac_status); }; }; then
26970 ac_cv_have_decl___fpending=yes
26971 else
26972 echo "$as_me: failed program was:" >&5
26973 sed 's/^/| /' conftest.$ac_ext >&5
26975 ac_cv_have_decl___fpending=no
26977 rm -f conftest.$ac_objext conftest.$ac_ext
26979 echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
26980 echo "${ECHO_T}$ac_cv_have_decl___fpending" >&6
26981 if test $ac_cv_have_decl___fpending = yes; then
26983 cat >>confdefs.h <<_ACEOF
26984 #define HAVE_DECL___FPENDING 1
26985 _ACEOF
26988 else
26989 cat >>confdefs.h <<_ACEOF
26990 #define HAVE_DECL___FPENDING 0
26991 _ACEOF
26997 if test $ac_cv_func___fpending = no; then
26998 echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
26999 echo $ECHO_N "checking how to determine the number of pending output bytes on a stream... $ECHO_C" >&6
27000 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
27001 echo $ECHO_N "(cached) $ECHO_C" >&6
27002 else
27004 for ac_expr in \
27006 '# glibc2' \
27007 'fp->_IO_write_ptr - fp->_IO_write_base' \
27009 '# traditional Unix' \
27010 'fp->_ptr - fp->_base' \
27012 '# BSD' \
27013 'fp->_p - fp->_bf._base' \
27015 '# SCO, Unixware' \
27016 'fp->__ptr - fp->__base' \
27018 '# old glibc?' \
27019 'fp->__bufp - fp->__buffer' \
27021 '# old glibc iostream?' \
27022 'fp->_pptr - fp->_pbase' \
27024 '# VMS' \
27025 '(*fp)->_ptr - (*fp)->_base' \
27027 '# e.g., DGUX R4.11; the info is not available' \
27029 ; do
27031 # Skip each embedded comment.
27032 case "$ac_expr" in '#'*) continue;; esac
27034 cat >conftest.$ac_ext <<_ACEOF
27035 #line $LINENO "configure"
27036 /* confdefs.h. */
27037 _ACEOF
27038 cat confdefs.h >>conftest.$ac_ext
27039 cat >>conftest.$ac_ext <<_ACEOF
27040 /* end confdefs.h. */
27041 #include <stdio.h>
27044 main ()
27046 FILE *fp = stdin; (void) ($ac_expr);
27048 return 0;
27050 _ACEOF
27051 rm -f conftest.$ac_objext
27052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27053 (eval $ac_compile) 2>&5
27054 ac_status=$?
27055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056 (exit $ac_status); } &&
27057 { ac_try='test -s conftest.$ac_objext'
27058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27059 (eval $ac_try) 2>&5
27060 ac_status=$?
27061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062 (exit $ac_status); }; }; then
27063 fp_done=yes
27065 else
27066 echo "$as_me: failed program was:" >&5
27067 sed 's/^/| /' conftest.$ac_ext >&5
27070 rm -f conftest.$ac_objext conftest.$ac_ext
27071 test "$fp_done" = yes && break
27072 done
27074 ac_cv_sys_pending_output_n_bytes=$ac_expr
27078 echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
27079 echo "${ECHO_T}$ac_cv_sys_pending_output_n_bytes" >&6
27081 cat >>confdefs.h <<_ACEOF
27082 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
27083 _ACEOF
27089 for ac_header in stdlib.h unistd.h
27091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27093 echo "$as_me:$LINENO: checking for $ac_header" >&5
27094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27096 echo $ECHO_N "(cached) $ECHO_C" >&6
27098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27100 else
27101 # Is the header compilable?
27102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27104 cat >conftest.$ac_ext <<_ACEOF
27105 #line $LINENO "configure"
27106 /* confdefs.h. */
27107 _ACEOF
27108 cat confdefs.h >>conftest.$ac_ext
27109 cat >>conftest.$ac_ext <<_ACEOF
27110 /* end confdefs.h. */
27111 $ac_includes_default
27112 #include <$ac_header>
27113 _ACEOF
27114 rm -f conftest.$ac_objext
27115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27116 (eval $ac_compile) 2>&5
27117 ac_status=$?
27118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119 (exit $ac_status); } &&
27120 { ac_try='test -s conftest.$ac_objext'
27121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27122 (eval $ac_try) 2>&5
27123 ac_status=$?
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); }; }; then
27126 ac_header_compiler=yes
27127 else
27128 echo "$as_me: failed program was:" >&5
27129 sed 's/^/| /' conftest.$ac_ext >&5
27131 ac_header_compiler=no
27133 rm -f conftest.$ac_objext conftest.$ac_ext
27134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27135 echo "${ECHO_T}$ac_header_compiler" >&6
27137 # Is the header present?
27138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27140 cat >conftest.$ac_ext <<_ACEOF
27141 #line $LINENO "configure"
27142 /* confdefs.h. */
27143 _ACEOF
27144 cat confdefs.h >>conftest.$ac_ext
27145 cat >>conftest.$ac_ext <<_ACEOF
27146 /* end confdefs.h. */
27147 #include <$ac_header>
27148 _ACEOF
27149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27151 ac_status=$?
27152 grep -v '^ *+' conftest.er1 >conftest.err
27153 rm -f conftest.er1
27154 cat conftest.err >&5
27155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27156 (exit $ac_status); } >/dev/null; then
27157 if test -s conftest.err; then
27158 ac_cpp_err=$ac_c_preproc_warn_flag
27159 else
27160 ac_cpp_err=
27162 else
27163 ac_cpp_err=yes
27165 if test -z "$ac_cpp_err"; then
27166 ac_header_preproc=yes
27167 else
27168 echo "$as_me: failed program was:" >&5
27169 sed 's/^/| /' conftest.$ac_ext >&5
27171 ac_header_preproc=no
27173 rm -f conftest.err conftest.$ac_ext
27174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27175 echo "${ECHO_T}$ac_header_preproc" >&6
27177 # So? What about this header?
27178 case $ac_header_compiler:$ac_header_preproc in
27179 yes:no )
27180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27185 cat <<\_ASBOX
27186 ## ------------------------------------ ##
27187 ## Report this to bug-autoconf@gnu.org. ##
27188 ## ------------------------------------ ##
27189 _ASBOX
27191 sed "s/^/$as_me: WARNING: /" >&2
27193 no:yes )
27194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27201 cat <<\_ASBOX
27202 ## ------------------------------------ ##
27203 ## Report this to bug-autoconf@gnu.org. ##
27204 ## ------------------------------------ ##
27205 _ASBOX
27207 sed "s/^/$as_me: WARNING: /" >&2
27209 esac
27210 echo "$as_me:$LINENO: checking for $ac_header" >&5
27211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27213 echo $ECHO_N "(cached) $ECHO_C" >&6
27214 else
27215 eval "$as_ac_Header=$ac_header_preproc"
27217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27222 cat >>confdefs.h <<_ACEOF
27223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27224 _ACEOF
27228 done
27231 for ac_func in getpagesize
27233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27234 echo "$as_me:$LINENO: checking for $ac_func" >&5
27235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27236 if eval "test \"\${$as_ac_var+set}\" = set"; then
27237 echo $ECHO_N "(cached) $ECHO_C" >&6
27238 else
27239 cat >conftest.$ac_ext <<_ACEOF
27240 #line $LINENO "configure"
27241 /* confdefs.h. */
27242 _ACEOF
27243 cat confdefs.h >>conftest.$ac_ext
27244 cat >>conftest.$ac_ext <<_ACEOF
27245 /* end confdefs.h. */
27246 /* System header to define __stub macros and hopefully few prototypes,
27247 which can conflict with char $ac_func (); below.
27248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27249 <limits.h> exists even on freestanding compilers. */
27250 #ifdef __STDC__
27251 # include <limits.h>
27252 #else
27253 # include <assert.h>
27254 #endif
27255 /* Override any gcc2 internal prototype to avoid an error. */
27256 #ifdef __cplusplus
27257 extern "C"
27259 #endif
27260 /* We use char because int might match the return type of a gcc2
27261 builtin and then its argument prototype would still apply. */
27262 char $ac_func ();
27263 /* The GNU C library defines this for functions which it implements
27264 to always fail with ENOSYS. Some functions are actually named
27265 something starting with __ and the normal name is an alias. */
27266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27267 choke me
27268 #else
27269 char (*f) () = $ac_func;
27270 #endif
27271 #ifdef __cplusplus
27273 #endif
27276 main ()
27278 return f != $ac_func;
27280 return 0;
27282 _ACEOF
27283 rm -f conftest.$ac_objext conftest$ac_exeext
27284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27285 (eval $ac_link) 2>&5
27286 ac_status=$?
27287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288 (exit $ac_status); } &&
27289 { ac_try='test -s conftest$ac_exeext'
27290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27291 (eval $ac_try) 2>&5
27292 ac_status=$?
27293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27294 (exit $ac_status); }; }; then
27295 eval "$as_ac_var=yes"
27296 else
27297 echo "$as_me: failed program was:" >&5
27298 sed 's/^/| /' conftest.$ac_ext >&5
27300 eval "$as_ac_var=no"
27302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27306 if test `eval echo '${'$as_ac_var'}'` = yes; then
27307 cat >>confdefs.h <<_ACEOF
27308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27309 _ACEOF
27312 done
27314 echo "$as_me:$LINENO: checking for working mmap" >&5
27315 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
27316 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
27317 echo $ECHO_N "(cached) $ECHO_C" >&6
27318 else
27319 if test "$cross_compiling" = yes; then
27320 ac_cv_func_mmap_fixed_mapped=no
27321 else
27322 cat >conftest.$ac_ext <<_ACEOF
27323 #line $LINENO "configure"
27324 /* confdefs.h. */
27325 _ACEOF
27326 cat confdefs.h >>conftest.$ac_ext
27327 cat >>conftest.$ac_ext <<_ACEOF
27328 /* end confdefs.h. */
27329 $ac_includes_default
27330 /* malloc might have been renamed as rpl_malloc. */
27331 #undef malloc
27333 /* Thanks to Mike Haertel and Jim Avera for this test.
27334 Here is a matrix of mmap possibilities:
27335 mmap private not fixed
27336 mmap private fixed at somewhere currently unmapped
27337 mmap private fixed at somewhere already mapped
27338 mmap shared not fixed
27339 mmap shared fixed at somewhere currently unmapped
27340 mmap shared fixed at somewhere already mapped
27341 For private mappings, we should verify that changes cannot be read()
27342 back from the file, nor mmap's back from the file at a different
27343 address. (There have been systems where private was not correctly
27344 implemented like the infamous i386 svr4.0, and systems where the
27345 VM page cache was not coherent with the file system buffer cache
27346 like early versions of FreeBSD and possibly contemporary NetBSD.)
27347 For shared mappings, we should conversely verify that changes get
27348 propagated back to all the places they're supposed to be.
27350 Grep wants private fixed already mapped.
27351 The main things grep needs to know about mmap are:
27352 * does it exist and is it safe to write into the mmap'd area
27353 * how to use it (BSD variants) */
27355 #include <fcntl.h>
27356 #include <sys/mman.h>
27358 #if !STDC_HEADERS && !HAVE_STDLIB_H
27359 char *malloc ();
27360 #endif
27362 /* This mess was copied from the GNU getpagesize.h. */
27363 #if !HAVE_GETPAGESIZE
27364 /* Assume that all systems that can run configure have sys/param.h. */
27365 # if !HAVE_SYS_PARAM_H
27366 # define HAVE_SYS_PARAM_H 1
27367 # endif
27369 # ifdef _SC_PAGESIZE
27370 # define getpagesize() sysconf(_SC_PAGESIZE)
27371 # else /* no _SC_PAGESIZE */
27372 # if HAVE_SYS_PARAM_H
27373 # include <sys/param.h>
27374 # ifdef EXEC_PAGESIZE
27375 # define getpagesize() EXEC_PAGESIZE
27376 # else /* no EXEC_PAGESIZE */
27377 # ifdef NBPG
27378 # define getpagesize() NBPG * CLSIZE
27379 # ifndef CLSIZE
27380 # define CLSIZE 1
27381 # endif /* no CLSIZE */
27382 # else /* no NBPG */
27383 # ifdef NBPC
27384 # define getpagesize() NBPC
27385 # else /* no NBPC */
27386 # ifdef PAGESIZE
27387 # define getpagesize() PAGESIZE
27388 # endif /* PAGESIZE */
27389 # endif /* no NBPC */
27390 # endif /* no NBPG */
27391 # endif /* no EXEC_PAGESIZE */
27392 # else /* no HAVE_SYS_PARAM_H */
27393 # define getpagesize() 8192 /* punt totally */
27394 # endif /* no HAVE_SYS_PARAM_H */
27395 # endif /* no _SC_PAGESIZE */
27397 #endif /* no HAVE_GETPAGESIZE */
27400 main ()
27402 char *data, *data2, *data3;
27403 int i, pagesize;
27404 int fd;
27406 pagesize = getpagesize ();
27408 /* First, make a file with some known garbage in it. */
27409 data = (char *) malloc (pagesize);
27410 if (!data)
27411 exit (1);
27412 for (i = 0; i < pagesize; ++i)
27413 *(data + i) = rand ();
27414 umask (0);
27415 fd = creat ("conftest.mmap", 0600);
27416 if (fd < 0)
27417 exit (1);
27418 if (write (fd, data, pagesize) != pagesize)
27419 exit (1);
27420 close (fd);
27422 /* Next, try to mmap the file at a fixed address which already has
27423 something else allocated at it. If we can, also make sure that
27424 we see the same garbage. */
27425 fd = open ("conftest.mmap", O_RDWR);
27426 if (fd < 0)
27427 exit (1);
27428 data2 = (char *) malloc (2 * pagesize);
27429 if (!data2)
27430 exit (1);
27431 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
27432 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
27433 MAP_PRIVATE | MAP_FIXED, fd, 0L))
27434 exit (1);
27435 for (i = 0; i < pagesize; ++i)
27436 if (*(data + i) != *(data2 + i))
27437 exit (1);
27439 /* Finally, make sure that changes to the mapped area do not
27440 percolate back to the file as seen by read(). (This is a bug on
27441 some variants of i386 svr4.0.) */
27442 for (i = 0; i < pagesize; ++i)
27443 *(data2 + i) = *(data2 + i) + 1;
27444 data3 = (char *) malloc (pagesize);
27445 if (!data3)
27446 exit (1);
27447 if (read (fd, data3, pagesize) != pagesize)
27448 exit (1);
27449 for (i = 0; i < pagesize; ++i)
27450 if (*(data + i) != *(data3 + i))
27451 exit (1);
27452 close (fd);
27453 exit (0);
27455 _ACEOF
27456 rm -f conftest$ac_exeext
27457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27458 (eval $ac_link) 2>&5
27459 ac_status=$?
27460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27463 (eval $ac_try) 2>&5
27464 ac_status=$?
27465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466 (exit $ac_status); }; }; then
27467 ac_cv_func_mmap_fixed_mapped=yes
27468 else
27469 echo "$as_me: program exited with status $ac_status" >&5
27470 echo "$as_me: failed program was:" >&5
27471 sed 's/^/| /' conftest.$ac_ext >&5
27473 ( exit $ac_status )
27474 ac_cv_func_mmap_fixed_mapped=no
27476 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27479 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
27480 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
27481 if test $ac_cv_func_mmap_fixed_mapped = yes; then
27483 cat >>confdefs.h <<\_ACEOF
27484 #define HAVE_MMAP 1
27485 _ACEOF
27488 rm -f conftest.mmap
27492 for ac_header in sys/mman.h
27494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27496 echo "$as_me:$LINENO: checking for $ac_header" >&5
27497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27499 echo $ECHO_N "(cached) $ECHO_C" >&6
27501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27503 else
27504 # Is the header compilable?
27505 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27507 cat >conftest.$ac_ext <<_ACEOF
27508 #line $LINENO "configure"
27509 /* confdefs.h. */
27510 _ACEOF
27511 cat confdefs.h >>conftest.$ac_ext
27512 cat >>conftest.$ac_ext <<_ACEOF
27513 /* end confdefs.h. */
27514 $ac_includes_default
27515 #include <$ac_header>
27516 _ACEOF
27517 rm -f conftest.$ac_objext
27518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27519 (eval $ac_compile) 2>&5
27520 ac_status=$?
27521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522 (exit $ac_status); } &&
27523 { ac_try='test -s conftest.$ac_objext'
27524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27525 (eval $ac_try) 2>&5
27526 ac_status=$?
27527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528 (exit $ac_status); }; }; then
27529 ac_header_compiler=yes
27530 else
27531 echo "$as_me: failed program was:" >&5
27532 sed 's/^/| /' conftest.$ac_ext >&5
27534 ac_header_compiler=no
27536 rm -f conftest.$ac_objext conftest.$ac_ext
27537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27538 echo "${ECHO_T}$ac_header_compiler" >&6
27540 # Is the header present?
27541 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27543 cat >conftest.$ac_ext <<_ACEOF
27544 #line $LINENO "configure"
27545 /* confdefs.h. */
27546 _ACEOF
27547 cat confdefs.h >>conftest.$ac_ext
27548 cat >>conftest.$ac_ext <<_ACEOF
27549 /* end confdefs.h. */
27550 #include <$ac_header>
27551 _ACEOF
27552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27554 ac_status=$?
27555 grep -v '^ *+' conftest.er1 >conftest.err
27556 rm -f conftest.er1
27557 cat conftest.err >&5
27558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559 (exit $ac_status); } >/dev/null; then
27560 if test -s conftest.err; then
27561 ac_cpp_err=$ac_c_preproc_warn_flag
27562 else
27563 ac_cpp_err=
27565 else
27566 ac_cpp_err=yes
27568 if test -z "$ac_cpp_err"; then
27569 ac_header_preproc=yes
27570 else
27571 echo "$as_me: failed program was:" >&5
27572 sed 's/^/| /' conftest.$ac_ext >&5
27574 ac_header_preproc=no
27576 rm -f conftest.err conftest.$ac_ext
27577 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27578 echo "${ECHO_T}$ac_header_preproc" >&6
27580 # So? What about this header?
27581 case $ac_header_compiler:$ac_header_preproc in
27582 yes:no )
27583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27588 cat <<\_ASBOX
27589 ## ------------------------------------ ##
27590 ## Report this to bug-autoconf@gnu.org. ##
27591 ## ------------------------------------ ##
27592 _ASBOX
27594 sed "s/^/$as_me: WARNING: /" >&2
27596 no:yes )
27597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27600 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27604 cat <<\_ASBOX
27605 ## ------------------------------------ ##
27606 ## Report this to bug-autoconf@gnu.org. ##
27607 ## ------------------------------------ ##
27608 _ASBOX
27610 sed "s/^/$as_me: WARNING: /" >&2
27612 esac
27613 echo "$as_me:$LINENO: checking for $ac_header" >&5
27614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27616 echo $ECHO_N "(cached) $ECHO_C" >&6
27617 else
27618 eval "$as_ac_Header=$ac_header_preproc"
27620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27625 cat >>confdefs.h <<_ACEOF
27626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27627 _ACEOF
27631 done
27636 for ac_header in ucontext.h
27638 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27640 echo "$as_me:$LINENO: checking for $ac_header" >&5
27641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27643 echo $ECHO_N "(cached) $ECHO_C" >&6
27645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27647 else
27648 # Is the header compilable?
27649 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27650 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27651 cat >conftest.$ac_ext <<_ACEOF
27652 #line $LINENO "configure"
27653 /* confdefs.h. */
27654 _ACEOF
27655 cat confdefs.h >>conftest.$ac_ext
27656 cat >>conftest.$ac_ext <<_ACEOF
27657 /* end confdefs.h. */
27658 $ac_includes_default
27659 #include <$ac_header>
27660 _ACEOF
27661 rm -f conftest.$ac_objext
27662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27663 (eval $ac_compile) 2>&5
27664 ac_status=$?
27665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27666 (exit $ac_status); } &&
27667 { ac_try='test -s conftest.$ac_objext'
27668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27669 (eval $ac_try) 2>&5
27670 ac_status=$?
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); }; }; then
27673 ac_header_compiler=yes
27674 else
27675 echo "$as_me: failed program was:" >&5
27676 sed 's/^/| /' conftest.$ac_ext >&5
27678 ac_header_compiler=no
27680 rm -f conftest.$ac_objext conftest.$ac_ext
27681 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27682 echo "${ECHO_T}$ac_header_compiler" >&6
27684 # Is the header present?
27685 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27687 cat >conftest.$ac_ext <<_ACEOF
27688 #line $LINENO "configure"
27689 /* confdefs.h. */
27690 _ACEOF
27691 cat confdefs.h >>conftest.$ac_ext
27692 cat >>conftest.$ac_ext <<_ACEOF
27693 /* end confdefs.h. */
27694 #include <$ac_header>
27695 _ACEOF
27696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27698 ac_status=$?
27699 grep -v '^ *+' conftest.er1 >conftest.err
27700 rm -f conftest.er1
27701 cat conftest.err >&5
27702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703 (exit $ac_status); } >/dev/null; then
27704 if test -s conftest.err; then
27705 ac_cpp_err=$ac_c_preproc_warn_flag
27706 else
27707 ac_cpp_err=
27709 else
27710 ac_cpp_err=yes
27712 if test -z "$ac_cpp_err"; then
27713 ac_header_preproc=yes
27714 else
27715 echo "$as_me: failed program was:" >&5
27716 sed 's/^/| /' conftest.$ac_ext >&5
27718 ac_header_preproc=no
27720 rm -f conftest.err conftest.$ac_ext
27721 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27722 echo "${ECHO_T}$ac_header_preproc" >&6
27724 # So? What about this header?
27725 case $ac_header_compiler:$ac_header_preproc in
27726 yes:no )
27727 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27732 cat <<\_ASBOX
27733 ## ------------------------------------ ##
27734 ## Report this to bug-autoconf@gnu.org. ##
27735 ## ------------------------------------ ##
27736 _ASBOX
27738 sed "s/^/$as_me: WARNING: /" >&2
27740 no:yes )
27741 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27742 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27743 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27744 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27748 cat <<\_ASBOX
27749 ## ------------------------------------ ##
27750 ## Report this to bug-autoconf@gnu.org. ##
27751 ## ------------------------------------ ##
27752 _ASBOX
27754 sed "s/^/$as_me: WARNING: /" >&2
27756 esac
27757 echo "$as_me:$LINENO: checking for $ac_header" >&5
27758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27760 echo $ECHO_N "(cached) $ECHO_C" >&6
27761 else
27762 eval "$as_ac_Header=$ac_header_preproc"
27764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27769 cat >>confdefs.h <<_ACEOF
27770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27771 _ACEOF
27775 done
27780 for ac_header in stdarg.h
27782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27784 echo "$as_me:$LINENO: checking for $ac_header" >&5
27785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27787 echo $ECHO_N "(cached) $ECHO_C" >&6
27789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27791 else
27792 # Is the header compilable?
27793 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27795 cat >conftest.$ac_ext <<_ACEOF
27796 #line $LINENO "configure"
27797 /* confdefs.h. */
27798 _ACEOF
27799 cat confdefs.h >>conftest.$ac_ext
27800 cat >>conftest.$ac_ext <<_ACEOF
27801 /* end confdefs.h. */
27802 $ac_includes_default
27803 #include <$ac_header>
27804 _ACEOF
27805 rm -f conftest.$ac_objext
27806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27807 (eval $ac_compile) 2>&5
27808 ac_status=$?
27809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810 (exit $ac_status); } &&
27811 { ac_try='test -s conftest.$ac_objext'
27812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27813 (eval $ac_try) 2>&5
27814 ac_status=$?
27815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816 (exit $ac_status); }; }; then
27817 ac_header_compiler=yes
27818 else
27819 echo "$as_me: failed program was:" >&5
27820 sed 's/^/| /' conftest.$ac_ext >&5
27822 ac_header_compiler=no
27824 rm -f conftest.$ac_objext conftest.$ac_ext
27825 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27826 echo "${ECHO_T}$ac_header_compiler" >&6
27828 # Is the header present?
27829 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27831 cat >conftest.$ac_ext <<_ACEOF
27832 #line $LINENO "configure"
27833 /* confdefs.h. */
27834 _ACEOF
27835 cat confdefs.h >>conftest.$ac_ext
27836 cat >>conftest.$ac_ext <<_ACEOF
27837 /* end confdefs.h. */
27838 #include <$ac_header>
27839 _ACEOF
27840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27842 ac_status=$?
27843 grep -v '^ *+' conftest.er1 >conftest.err
27844 rm -f conftest.er1
27845 cat conftest.err >&5
27846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847 (exit $ac_status); } >/dev/null; then
27848 if test -s conftest.err; then
27849 ac_cpp_err=$ac_c_preproc_warn_flag
27850 else
27851 ac_cpp_err=
27853 else
27854 ac_cpp_err=yes
27856 if test -z "$ac_cpp_err"; then
27857 ac_header_preproc=yes
27858 else
27859 echo "$as_me: failed program was:" >&5
27860 sed 's/^/| /' conftest.$ac_ext >&5
27862 ac_header_preproc=no
27864 rm -f conftest.err conftest.$ac_ext
27865 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27866 echo "${ECHO_T}$ac_header_preproc" >&6
27868 # So? What about this header?
27869 case $ac_header_compiler:$ac_header_preproc in
27870 yes:no )
27871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27876 cat <<\_ASBOX
27877 ## ------------------------------------ ##
27878 ## Report this to bug-autoconf@gnu.org. ##
27879 ## ------------------------------------ ##
27880 _ASBOX
27882 sed "s/^/$as_me: WARNING: /" >&2
27884 no:yes )
27885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27892 cat <<\_ASBOX
27893 ## ------------------------------------ ##
27894 ## Report this to bug-autoconf@gnu.org. ##
27895 ## ------------------------------------ ##
27896 _ASBOX
27898 sed "s/^/$as_me: WARNING: /" >&2
27900 esac
27901 echo "$as_me:$LINENO: checking for $ac_header" >&5
27902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27904 echo $ECHO_N "(cached) $ECHO_C" >&6
27905 else
27906 eval "$as_ac_Header=$ac_header_preproc"
27908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27913 cat >>confdefs.h <<_ACEOF
27914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27915 _ACEOF
27919 done
27924 for ac_func in getcontext
27926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27927 echo "$as_me:$LINENO: checking for $ac_func" >&5
27928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27929 if eval "test \"\${$as_ac_var+set}\" = set"; then
27930 echo $ECHO_N "(cached) $ECHO_C" >&6
27931 else
27932 cat >conftest.$ac_ext <<_ACEOF
27933 #line $LINENO "configure"
27934 /* confdefs.h. */
27935 _ACEOF
27936 cat confdefs.h >>conftest.$ac_ext
27937 cat >>conftest.$ac_ext <<_ACEOF
27938 /* end confdefs.h. */
27939 /* System header to define __stub macros and hopefully few prototypes,
27940 which can conflict with char $ac_func (); below.
27941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27942 <limits.h> exists even on freestanding compilers. */
27943 #ifdef __STDC__
27944 # include <limits.h>
27945 #else
27946 # include <assert.h>
27947 #endif
27948 /* Override any gcc2 internal prototype to avoid an error. */
27949 #ifdef __cplusplus
27950 extern "C"
27952 #endif
27953 /* We use char because int might match the return type of a gcc2
27954 builtin and then its argument prototype would still apply. */
27955 char $ac_func ();
27956 /* The GNU C library defines this for functions which it implements
27957 to always fail with ENOSYS. Some functions are actually named
27958 something starting with __ and the normal name is an alias. */
27959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27960 choke me
27961 #else
27962 char (*f) () = $ac_func;
27963 #endif
27964 #ifdef __cplusplus
27966 #endif
27969 main ()
27971 return f != $ac_func;
27973 return 0;
27975 _ACEOF
27976 rm -f conftest.$ac_objext conftest$ac_exeext
27977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27978 (eval $ac_link) 2>&5
27979 ac_status=$?
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981 (exit $ac_status); } &&
27982 { ac_try='test -s conftest$ac_exeext'
27983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27984 (eval $ac_try) 2>&5
27985 ac_status=$?
27986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987 (exit $ac_status); }; }; then
27988 eval "$as_ac_var=yes"
27989 else
27990 echo "$as_me: failed program was:" >&5
27991 sed 's/^/| /' conftest.$ac_ext >&5
27993 eval "$as_ac_var=no"
27995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27999 if test `eval echo '${'$as_ac_var'}'` = yes; then
28000 cat >>confdefs.h <<_ACEOF
28001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28002 _ACEOF
28005 done
28010 for ac_func in makecontext
28012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28013 echo "$as_me:$LINENO: checking for $ac_func" >&5
28014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28015 if eval "test \"\${$as_ac_var+set}\" = set"; then
28016 echo $ECHO_N "(cached) $ECHO_C" >&6
28017 else
28018 cat >conftest.$ac_ext <<_ACEOF
28019 #line $LINENO "configure"
28020 /* confdefs.h. */
28021 _ACEOF
28022 cat confdefs.h >>conftest.$ac_ext
28023 cat >>conftest.$ac_ext <<_ACEOF
28024 /* end confdefs.h. */
28025 /* System header to define __stub macros and hopefully few prototypes,
28026 which can conflict with char $ac_func (); below.
28027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28028 <limits.h> exists even on freestanding compilers. */
28029 #ifdef __STDC__
28030 # include <limits.h>
28031 #else
28032 # include <assert.h>
28033 #endif
28034 /* Override any gcc2 internal prototype to avoid an error. */
28035 #ifdef __cplusplus
28036 extern "C"
28038 #endif
28039 /* We use char because int might match the return type of a gcc2
28040 builtin and then its argument prototype would still apply. */
28041 char $ac_func ();
28042 /* The GNU C library defines this for functions which it implements
28043 to always fail with ENOSYS. Some functions are actually named
28044 something starting with __ and the normal name is an alias. */
28045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28046 choke me
28047 #else
28048 char (*f) () = $ac_func;
28049 #endif
28050 #ifdef __cplusplus
28052 #endif
28055 main ()
28057 return f != $ac_func;
28059 return 0;
28061 _ACEOF
28062 rm -f conftest.$ac_objext conftest$ac_exeext
28063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28064 (eval $ac_link) 2>&5
28065 ac_status=$?
28066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067 (exit $ac_status); } &&
28068 { ac_try='test -s conftest$ac_exeext'
28069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28070 (eval $ac_try) 2>&5
28071 ac_status=$?
28072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073 (exit $ac_status); }; }; then
28074 eval "$as_ac_var=yes"
28075 else
28076 echo "$as_me: failed program was:" >&5
28077 sed 's/^/| /' conftest.$ac_ext >&5
28079 eval "$as_ac_var=no"
28081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28084 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28085 if test `eval echo '${'$as_ac_var'}'` = yes; then
28086 cat >>confdefs.h <<_ACEOF
28087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28088 _ACEOF
28091 done
28096 for ac_func in setcontext
28098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28099 echo "$as_me:$LINENO: checking for $ac_func" >&5
28100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28101 if eval "test \"\${$as_ac_var+set}\" = set"; then
28102 echo $ECHO_N "(cached) $ECHO_C" >&6
28103 else
28104 cat >conftest.$ac_ext <<_ACEOF
28105 #line $LINENO "configure"
28106 /* confdefs.h. */
28107 _ACEOF
28108 cat confdefs.h >>conftest.$ac_ext
28109 cat >>conftest.$ac_ext <<_ACEOF
28110 /* end confdefs.h. */
28111 /* System header to define __stub macros and hopefully few prototypes,
28112 which can conflict with char $ac_func (); below.
28113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28114 <limits.h> exists even on freestanding compilers. */
28115 #ifdef __STDC__
28116 # include <limits.h>
28117 #else
28118 # include <assert.h>
28119 #endif
28120 /* Override any gcc2 internal prototype to avoid an error. */
28121 #ifdef __cplusplus
28122 extern "C"
28124 #endif
28125 /* We use char because int might match the return type of a gcc2
28126 builtin and then its argument prototype would still apply. */
28127 char $ac_func ();
28128 /* The GNU C library defines this for functions which it implements
28129 to always fail with ENOSYS. Some functions are actually named
28130 something starting with __ and the normal name is an alias. */
28131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28132 choke me
28133 #else
28134 char (*f) () = $ac_func;
28135 #endif
28136 #ifdef __cplusplus
28138 #endif
28141 main ()
28143 return f != $ac_func;
28145 return 0;
28147 _ACEOF
28148 rm -f conftest.$ac_objext conftest$ac_exeext
28149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28150 (eval $ac_link) 2>&5
28151 ac_status=$?
28152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28153 (exit $ac_status); } &&
28154 { ac_try='test -s conftest$ac_exeext'
28155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28156 (eval $ac_try) 2>&5
28157 ac_status=$?
28158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28159 (exit $ac_status); }; }; then
28160 eval "$as_ac_var=yes"
28161 else
28162 echo "$as_me: failed program was:" >&5
28163 sed 's/^/| /' conftest.$ac_ext >&5
28165 eval "$as_ac_var=no"
28167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28171 if test `eval echo '${'$as_ac_var'}'` = yes; then
28172 cat >>confdefs.h <<_ACEOF
28173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28174 _ACEOF
28177 done
28182 for ac_func in tmpfile
28184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28185 echo "$as_me:$LINENO: checking for $ac_func" >&5
28186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28187 if eval "test \"\${$as_ac_var+set}\" = set"; then
28188 echo $ECHO_N "(cached) $ECHO_C" >&6
28189 else
28190 cat >conftest.$ac_ext <<_ACEOF
28191 #line $LINENO "configure"
28192 /* confdefs.h. */
28193 _ACEOF
28194 cat confdefs.h >>conftest.$ac_ext
28195 cat >>conftest.$ac_ext <<_ACEOF
28196 /* end confdefs.h. */
28197 /* System header to define __stub macros and hopefully few prototypes,
28198 which can conflict with char $ac_func (); below.
28199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28200 <limits.h> exists even on freestanding compilers. */
28201 #ifdef __STDC__
28202 # include <limits.h>
28203 #else
28204 # include <assert.h>
28205 #endif
28206 /* Override any gcc2 internal prototype to avoid an error. */
28207 #ifdef __cplusplus
28208 extern "C"
28210 #endif
28211 /* We use char because int might match the return type of a gcc2
28212 builtin and then its argument prototype would still apply. */
28213 char $ac_func ();
28214 /* The GNU C library defines this for functions which it implements
28215 to always fail with ENOSYS. Some functions are actually named
28216 something starting with __ and the normal name is an alias. */
28217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28218 choke me
28219 #else
28220 char (*f) () = $ac_func;
28221 #endif
28222 #ifdef __cplusplus
28224 #endif
28227 main ()
28229 return f != $ac_func;
28231 return 0;
28233 _ACEOF
28234 rm -f conftest.$ac_objext conftest$ac_exeext
28235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28236 (eval $ac_link) 2>&5
28237 ac_status=$?
28238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239 (exit $ac_status); } &&
28240 { ac_try='test -s conftest$ac_exeext'
28241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28242 (eval $ac_try) 2>&5
28243 ac_status=$?
28244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); }; }; then
28246 eval "$as_ac_var=yes"
28247 else
28248 echo "$as_me: failed program was:" >&5
28249 sed 's/^/| /' conftest.$ac_ext >&5
28251 eval "$as_ac_var=no"
28253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28256 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28257 if test `eval echo '${'$as_ac_var'}'` = yes; then
28258 cat >>confdefs.h <<_ACEOF
28259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28260 _ACEOF
28263 done
28267 # prerequisites
28296 # For now, require tmpfile. FIXME: if there's a system with working mmap
28297 # and *context functions yet that lacks tmpfile, we can provide a replacement.
28306 ac_i=$ac_cv_func_tmpfile
28307 ac_i=$ac_i:$ac_cv_func_getcontext
28308 ac_i=$ac_i:$ac_cv_func_makecontext
28309 ac_i=$ac_i:$ac_cv_func_setcontext
28310 ac_i=$ac_i:$ac_cv_func_mmap_fixed_mapped
28312 if test $ac_i = yes:yes:yes:yes:yes; then
28313 LIBOBJS="$LIBOBJS mmap-stack.$ac_objext"
28315 cat >>confdefs.h <<\_ACEOF
28316 #define HAVE_MMAP_STACK 1
28317 _ACEOF
28322 # autoconf-2.52 has a proper check for inttypes.h.
28325 if test $ac_cv_header_inttypes_h = yes; then
28326 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
28327 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
28328 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
28329 echo $ECHO_N "(cached) $ECHO_C" >&6
28330 else
28332 cat >conftest.$ac_ext <<_ACEOF
28333 #line $LINENO "configure"
28334 /* confdefs.h. */
28335 _ACEOF
28336 cat confdefs.h >>conftest.$ac_ext
28337 cat >>conftest.$ac_ext <<_ACEOF
28338 /* end confdefs.h. */
28339 #include <inttypes.h>
28340 #ifdef PRId32
28341 char *p = PRId32;
28342 #endif
28345 main ()
28349 return 0;
28351 _ACEOF
28352 rm -f conftest.$ac_objext
28353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28354 (eval $ac_compile) 2>&5
28355 ac_status=$?
28356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357 (exit $ac_status); } &&
28358 { ac_try='test -s conftest.$ac_objext'
28359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28360 (eval $ac_try) 2>&5
28361 ac_status=$?
28362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28363 (exit $ac_status); }; }; then
28364 gt_cv_inttypes_pri_broken=no
28365 else
28366 echo "$as_me: failed program was:" >&5
28367 sed 's/^/| /' conftest.$ac_ext >&5
28369 gt_cv_inttypes_pri_broken=yes
28371 rm -f conftest.$ac_objext conftest.$ac_ext
28374 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
28375 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
28377 if test "$gt_cv_inttypes_pri_broken" = yes; then
28379 cat >>confdefs.h <<_ACEOF
28380 #define PRI_MACROS_BROKEN 1
28381 _ACEOF
28385 echo "$as_me:$LINENO: checking for getgroups" >&5
28386 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6
28387 if test "${ac_cv_func_getgroups+set}" = set; then
28388 echo $ECHO_N "(cached) $ECHO_C" >&6
28389 else
28390 cat >conftest.$ac_ext <<_ACEOF
28391 #line $LINENO "configure"
28392 /* confdefs.h. */
28393 _ACEOF
28394 cat confdefs.h >>conftest.$ac_ext
28395 cat >>conftest.$ac_ext <<_ACEOF
28396 /* end confdefs.h. */
28397 /* System header to define __stub macros and hopefully few prototypes,
28398 which can conflict with char getgroups (); below.
28399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28400 <limits.h> exists even on freestanding compilers. */
28401 #ifdef __STDC__
28402 # include <limits.h>
28403 #else
28404 # include <assert.h>
28405 #endif
28406 /* Override any gcc2 internal prototype to avoid an error. */
28407 #ifdef __cplusplus
28408 extern "C"
28410 #endif
28411 /* We use char because int might match the return type of a gcc2
28412 builtin and then its argument prototype would still apply. */
28413 char getgroups ();
28414 /* The GNU C library defines this for functions which it implements
28415 to always fail with ENOSYS. Some functions are actually named
28416 something starting with __ and the normal name is an alias. */
28417 #if defined (__stub_getgroups) || defined (__stub___getgroups)
28418 choke me
28419 #else
28420 char (*f) () = getgroups;
28421 #endif
28422 #ifdef __cplusplus
28424 #endif
28427 main ()
28429 return f != getgroups;
28431 return 0;
28433 _ACEOF
28434 rm -f conftest.$ac_objext conftest$ac_exeext
28435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28436 (eval $ac_link) 2>&5
28437 ac_status=$?
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); } &&
28440 { ac_try='test -s conftest$ac_exeext'
28441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28442 (eval $ac_try) 2>&5
28443 ac_status=$?
28444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445 (exit $ac_status); }; }; then
28446 ac_cv_func_getgroups=yes
28447 else
28448 echo "$as_me: failed program was:" >&5
28449 sed 's/^/| /' conftest.$ac_ext >&5
28451 ac_cv_func_getgroups=no
28453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28455 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
28456 echo "${ECHO_T}$ac_cv_func_getgroups" >&6
28459 # If we don't yet have getgroups, see if it's in -lbsd.
28460 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
28461 ac_save_LIBS=$LIBS
28462 if test $ac_cv_func_getgroups = no; then
28463 echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
28464 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6
28465 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
28466 echo $ECHO_N "(cached) $ECHO_C" >&6
28467 else
28468 ac_check_lib_save_LIBS=$LIBS
28469 LIBS="-lbsd $LIBS"
28470 cat >conftest.$ac_ext <<_ACEOF
28471 #line $LINENO "configure"
28472 /* confdefs.h. */
28473 _ACEOF
28474 cat confdefs.h >>conftest.$ac_ext
28475 cat >>conftest.$ac_ext <<_ACEOF
28476 /* end confdefs.h. */
28478 /* Override any gcc2 internal prototype to avoid an error. */
28479 #ifdef __cplusplus
28480 extern "C"
28481 #endif
28482 /* We use char because int might match the return type of a gcc2
28483 builtin and then its argument prototype would still apply. */
28484 char getgroups ();
28486 main ()
28488 getgroups ();
28490 return 0;
28492 _ACEOF
28493 rm -f conftest.$ac_objext conftest$ac_exeext
28494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28495 (eval $ac_link) 2>&5
28496 ac_status=$?
28497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28498 (exit $ac_status); } &&
28499 { ac_try='test -s conftest$ac_exeext'
28500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28501 (eval $ac_try) 2>&5
28502 ac_status=$?
28503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504 (exit $ac_status); }; }; then
28505 ac_cv_lib_bsd_getgroups=yes
28506 else
28507 echo "$as_me: failed program was:" >&5
28508 sed 's/^/| /' conftest.$ac_ext >&5
28510 ac_cv_lib_bsd_getgroups=no
28512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28513 LIBS=$ac_check_lib_save_LIBS
28515 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
28516 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6
28517 if test $ac_cv_lib_bsd_getgroups = yes; then
28518 GETGROUPS_LIB=-lbsd
28523 # Run the program to test the functionality of the system-supplied
28524 # getgroups function only if there is such a function.
28525 if test $ac_cv_func_getgroups = yes; then
28526 echo "$as_me:$LINENO: checking for working getgroups" >&5
28527 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6
28528 if test "${ac_cv_func_getgroups_works+set}" = set; then
28529 echo $ECHO_N "(cached) $ECHO_C" >&6
28530 else
28531 if test "$cross_compiling" = yes; then
28532 ac_cv_func_getgroups_works=no
28533 else
28534 cat >conftest.$ac_ext <<_ACEOF
28535 #line $LINENO "configure"
28536 /* confdefs.h. */
28537 _ACEOF
28538 cat confdefs.h >>conftest.$ac_ext
28539 cat >>conftest.$ac_ext <<_ACEOF
28540 /* end confdefs.h. */
28543 main ()
28545 /* On Ultrix 4.3, getgroups (0, 0) always fails. */
28546 exit (getgroups (0, 0) == -1 ? 1 : 0);
28548 return 0;
28550 _ACEOF
28551 rm -f conftest$ac_exeext
28552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28553 (eval $ac_link) 2>&5
28554 ac_status=$?
28555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28558 (eval $ac_try) 2>&5
28559 ac_status=$?
28560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561 (exit $ac_status); }; }; then
28562 ac_cv_func_getgroups_works=yes
28563 else
28564 echo "$as_me: program exited with status $ac_status" >&5
28565 echo "$as_me: failed program was:" >&5
28566 sed 's/^/| /' conftest.$ac_ext >&5
28568 ( exit $ac_status )
28569 ac_cv_func_getgroups_works=no
28571 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28575 echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
28576 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6
28577 if test $ac_cv_func_getgroups_works = yes; then
28579 cat >>confdefs.h <<\_ACEOF
28580 #define HAVE_GETGROUPS 1
28581 _ACEOF
28585 LIBS=$ac_save_LIBS
28587 if test $ac_cv_func_getgroups_works = no; then
28588 LIBOBJS="$LIBOBJS getgroups.$ac_objext"
28590 cat >>confdefs.h <<\_ACEOF
28591 #define getgroups rpl_getgroups
28592 _ACEOF
28595 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
28597 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
28598 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
28599 if test "${ac_cv_sys_largefile_source+set}" = set; then
28600 echo $ECHO_N "(cached) $ECHO_C" >&6
28601 else
28602 while :; do
28603 ac_cv_sys_largefile_source=no
28604 cat >conftest.$ac_ext <<_ACEOF
28605 #line $LINENO "configure"
28606 /* confdefs.h. */
28607 _ACEOF
28608 cat confdefs.h >>conftest.$ac_ext
28609 cat >>conftest.$ac_ext <<_ACEOF
28610 /* end confdefs.h. */
28611 #include <stdio.h>
28613 main ()
28615 return !fseeko;
28617 return 0;
28619 _ACEOF
28620 rm -f conftest.$ac_objext
28621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28622 (eval $ac_compile) 2>&5
28623 ac_status=$?
28624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625 (exit $ac_status); } &&
28626 { ac_try='test -s conftest.$ac_objext'
28627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28628 (eval $ac_try) 2>&5
28629 ac_status=$?
28630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631 (exit $ac_status); }; }; then
28632 break
28633 else
28634 echo "$as_me: failed program was:" >&5
28635 sed 's/^/| /' conftest.$ac_ext >&5
28638 rm -f conftest.$ac_objext conftest.$ac_ext
28639 cat >conftest.$ac_ext <<_ACEOF
28640 #line $LINENO "configure"
28641 /* confdefs.h. */
28642 _ACEOF
28643 cat confdefs.h >>conftest.$ac_ext
28644 cat >>conftest.$ac_ext <<_ACEOF
28645 /* end confdefs.h. */
28646 #define _LARGEFILE_SOURCE 1
28647 #include <stdio.h>
28649 main ()
28651 return !fseeko;
28653 return 0;
28655 _ACEOF
28656 rm -f conftest.$ac_objext
28657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28658 (eval $ac_compile) 2>&5
28659 ac_status=$?
28660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28661 (exit $ac_status); } &&
28662 { ac_try='test -s conftest.$ac_objext'
28663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28664 (eval $ac_try) 2>&5
28665 ac_status=$?
28666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28667 (exit $ac_status); }; }; then
28668 ac_cv_sys_largefile_source=1; break
28669 else
28670 echo "$as_me: failed program was:" >&5
28671 sed 's/^/| /' conftest.$ac_ext >&5
28674 rm -f conftest.$ac_objext conftest.$ac_ext
28675 break
28676 done
28678 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
28679 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
28680 if test "$ac_cv_sys_largefile_source" != no; then
28682 cat >>confdefs.h <<_ACEOF
28683 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
28684 _ACEOF
28687 rm -f conftest*
28689 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
28690 # in glibc 2.1.3, but that breaks too many other things.
28691 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
28692 echo "$as_me:$LINENO: checking for fseeko" >&5
28693 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
28694 if test "${ac_cv_func_fseeko+set}" = set; then
28695 echo $ECHO_N "(cached) $ECHO_C" >&6
28696 else
28697 cat >conftest.$ac_ext <<_ACEOF
28698 #line $LINENO "configure"
28699 /* confdefs.h. */
28700 _ACEOF
28701 cat confdefs.h >>conftest.$ac_ext
28702 cat >>conftest.$ac_ext <<_ACEOF
28703 /* end confdefs.h. */
28704 #include <stdio.h>
28706 main ()
28708 return fseeko && fseeko (stdin, 0, 0);
28710 return 0;
28712 _ACEOF
28713 rm -f conftest.$ac_objext conftest$ac_exeext
28714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28715 (eval $ac_link) 2>&5
28716 ac_status=$?
28717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); } &&
28719 { ac_try='test -s conftest$ac_exeext'
28720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28721 (eval $ac_try) 2>&5
28722 ac_status=$?
28723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724 (exit $ac_status); }; }; then
28725 ac_cv_func_fseeko=yes
28726 else
28727 echo "$as_me: failed program was:" >&5
28728 sed 's/^/| /' conftest.$ac_ext >&5
28730 ac_cv_func_fseeko=no
28732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28734 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
28735 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
28736 if test $ac_cv_func_fseeko = yes; then
28738 cat >>confdefs.h <<\_ACEOF
28739 #define HAVE_FSEEKO 1
28740 _ACEOF
28745 for ac_func in vprintf
28747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28748 echo "$as_me:$LINENO: checking for $ac_func" >&5
28749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28750 if eval "test \"\${$as_ac_var+set}\" = set"; then
28751 echo $ECHO_N "(cached) $ECHO_C" >&6
28752 else
28753 cat >conftest.$ac_ext <<_ACEOF
28754 #line $LINENO "configure"
28755 /* confdefs.h. */
28756 _ACEOF
28757 cat confdefs.h >>conftest.$ac_ext
28758 cat >>conftest.$ac_ext <<_ACEOF
28759 /* end confdefs.h. */
28760 /* System header to define __stub macros and hopefully few prototypes,
28761 which can conflict with char $ac_func (); below.
28762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28763 <limits.h> exists even on freestanding compilers. */
28764 #ifdef __STDC__
28765 # include <limits.h>
28766 #else
28767 # include <assert.h>
28768 #endif
28769 /* Override any gcc2 internal prototype to avoid an error. */
28770 #ifdef __cplusplus
28771 extern "C"
28773 #endif
28774 /* We use char because int might match the return type of a gcc2
28775 builtin and then its argument prototype would still apply. */
28776 char $ac_func ();
28777 /* The GNU C library defines this for functions which it implements
28778 to always fail with ENOSYS. Some functions are actually named
28779 something starting with __ and the normal name is an alias. */
28780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28781 choke me
28782 #else
28783 char (*f) () = $ac_func;
28784 #endif
28785 #ifdef __cplusplus
28787 #endif
28790 main ()
28792 return f != $ac_func;
28794 return 0;
28796 _ACEOF
28797 rm -f conftest.$ac_objext conftest$ac_exeext
28798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28799 (eval $ac_link) 2>&5
28800 ac_status=$?
28801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802 (exit $ac_status); } &&
28803 { ac_try='test -s conftest$ac_exeext'
28804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28805 (eval $ac_try) 2>&5
28806 ac_status=$?
28807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28808 (exit $ac_status); }; }; then
28809 eval "$as_ac_var=yes"
28810 else
28811 echo "$as_me: failed program was:" >&5
28812 sed 's/^/| /' conftest.$ac_ext >&5
28814 eval "$as_ac_var=no"
28816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28819 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28820 if test `eval echo '${'$as_ac_var'}'` = yes; then
28821 cat >>confdefs.h <<_ACEOF
28822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28823 _ACEOF
28825 echo "$as_me:$LINENO: checking for _doprnt" >&5
28826 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
28827 if test "${ac_cv_func__doprnt+set}" = set; then
28828 echo $ECHO_N "(cached) $ECHO_C" >&6
28829 else
28830 cat >conftest.$ac_ext <<_ACEOF
28831 #line $LINENO "configure"
28832 /* confdefs.h. */
28833 _ACEOF
28834 cat confdefs.h >>conftest.$ac_ext
28835 cat >>conftest.$ac_ext <<_ACEOF
28836 /* end confdefs.h. */
28837 /* System header to define __stub macros and hopefully few prototypes,
28838 which can conflict with char _doprnt (); below.
28839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28840 <limits.h> exists even on freestanding compilers. */
28841 #ifdef __STDC__
28842 # include <limits.h>
28843 #else
28844 # include <assert.h>
28845 #endif
28846 /* Override any gcc2 internal prototype to avoid an error. */
28847 #ifdef __cplusplus
28848 extern "C"
28850 #endif
28851 /* We use char because int might match the return type of a gcc2
28852 builtin and then its argument prototype would still apply. */
28853 char _doprnt ();
28854 /* The GNU C library defines this for functions which it implements
28855 to always fail with ENOSYS. Some functions are actually named
28856 something starting with __ and the normal name is an alias. */
28857 #if defined (__stub__doprnt) || defined (__stub____doprnt)
28858 choke me
28859 #else
28860 char (*f) () = _doprnt;
28861 #endif
28862 #ifdef __cplusplus
28864 #endif
28867 main ()
28869 return f != _doprnt;
28871 return 0;
28873 _ACEOF
28874 rm -f conftest.$ac_objext conftest$ac_exeext
28875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28876 (eval $ac_link) 2>&5
28877 ac_status=$?
28878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879 (exit $ac_status); } &&
28880 { ac_try='test -s conftest$ac_exeext'
28881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28882 (eval $ac_try) 2>&5
28883 ac_status=$?
28884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885 (exit $ac_status); }; }; then
28886 ac_cv_func__doprnt=yes
28887 else
28888 echo "$as_me: failed program was:" >&5
28889 sed 's/^/| /' conftest.$ac_ext >&5
28891 ac_cv_func__doprnt=no
28893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28895 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28896 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
28897 if test $ac_cv_func__doprnt = yes; then
28899 cat >>confdefs.h <<\_ACEOF
28900 #define HAVE_DOPRNT 1
28901 _ACEOF
28906 done
28910 echo "$as_me:$LINENO: checking for /proc/uptime" >&5
28911 echo $ECHO_N "checking for /proc/uptime... $ECHO_C" >&6
28912 if test "${jm_cv_have_proc_uptime+set}" = set; then
28913 echo $ECHO_N "(cached) $ECHO_C" >&6
28914 else
28915 jm_cv_have_proc_uptime=no
28916 test -f /proc/uptime \
28917 && test "$cross_compiling" = no \
28918 && cat < /proc/uptime >/dev/null 2>/dev/null \
28919 && jm_cv_have_proc_uptime=yes
28921 echo "$as_me:$LINENO: result: $jm_cv_have_proc_uptime" >&5
28922 echo "${ECHO_T}$jm_cv_have_proc_uptime" >&6
28923 if test $jm_cv_have_proc_uptime = yes; then
28925 cat >>confdefs.h <<\_ACEOF
28926 #define HAVE_PROC_UPTIME 1
28927 _ACEOF
28933 for ac_func in ftruncate
28935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28936 echo "$as_me:$LINENO: checking for $ac_func" >&5
28937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28938 if eval "test \"\${$as_ac_var+set}\" = set"; then
28939 echo $ECHO_N "(cached) $ECHO_C" >&6
28940 else
28941 cat >conftest.$ac_ext <<_ACEOF
28942 #line $LINENO "configure"
28943 /* confdefs.h. */
28944 _ACEOF
28945 cat confdefs.h >>conftest.$ac_ext
28946 cat >>conftest.$ac_ext <<_ACEOF
28947 /* end confdefs.h. */
28948 /* System header to define __stub macros and hopefully few prototypes,
28949 which can conflict with char $ac_func (); below.
28950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28951 <limits.h> exists even on freestanding compilers. */
28952 #ifdef __STDC__
28953 # include <limits.h>
28954 #else
28955 # include <assert.h>
28956 #endif
28957 /* Override any gcc2 internal prototype to avoid an error. */
28958 #ifdef __cplusplus
28959 extern "C"
28961 #endif
28962 /* We use char because int might match the return type of a gcc2
28963 builtin and then its argument prototype would still apply. */
28964 char $ac_func ();
28965 /* The GNU C library defines this for functions which it implements
28966 to always fail with ENOSYS. Some functions are actually named
28967 something starting with __ and the normal name is an alias. */
28968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28969 choke me
28970 #else
28971 char (*f) () = $ac_func;
28972 #endif
28973 #ifdef __cplusplus
28975 #endif
28978 main ()
28980 return f != $ac_func;
28982 return 0;
28984 _ACEOF
28985 rm -f conftest.$ac_objext conftest$ac_exeext
28986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28987 (eval $ac_link) 2>&5
28988 ac_status=$?
28989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990 (exit $ac_status); } &&
28991 { ac_try='test -s conftest$ac_exeext'
28992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28993 (eval $ac_try) 2>&5
28994 ac_status=$?
28995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996 (exit $ac_status); }; }; then
28997 eval "$as_ac_var=yes"
28998 else
28999 echo "$as_me: failed program was:" >&5
29000 sed 's/^/| /' conftest.$ac_ext >&5
29002 eval "$as_ac_var=no"
29004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29007 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29008 if test `eval echo '${'$as_ac_var'}'` = yes; then
29009 cat >>confdefs.h <<_ACEOF
29010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29011 _ACEOF
29013 else
29014 ftruncate_missing=yes
29016 done
29019 if test "$ftruncate_missing" = yes; then
29021 for ac_header in unistd.h
29023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29025 echo "$as_me:$LINENO: checking for $ac_header" >&5
29026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29028 echo $ECHO_N "(cached) $ECHO_C" >&6
29030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29032 else
29033 # Is the header compilable?
29034 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29036 cat >conftest.$ac_ext <<_ACEOF
29037 #line $LINENO "configure"
29038 /* confdefs.h. */
29039 _ACEOF
29040 cat confdefs.h >>conftest.$ac_ext
29041 cat >>conftest.$ac_ext <<_ACEOF
29042 /* end confdefs.h. */
29043 $ac_includes_default
29044 #include <$ac_header>
29045 _ACEOF
29046 rm -f conftest.$ac_objext
29047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29048 (eval $ac_compile) 2>&5
29049 ac_status=$?
29050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29051 (exit $ac_status); } &&
29052 { ac_try='test -s conftest.$ac_objext'
29053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29054 (eval $ac_try) 2>&5
29055 ac_status=$?
29056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057 (exit $ac_status); }; }; then
29058 ac_header_compiler=yes
29059 else
29060 echo "$as_me: failed program was:" >&5
29061 sed 's/^/| /' conftest.$ac_ext >&5
29063 ac_header_compiler=no
29065 rm -f conftest.$ac_objext conftest.$ac_ext
29066 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29067 echo "${ECHO_T}$ac_header_compiler" >&6
29069 # Is the header present?
29070 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29072 cat >conftest.$ac_ext <<_ACEOF
29073 #line $LINENO "configure"
29074 /* confdefs.h. */
29075 _ACEOF
29076 cat confdefs.h >>conftest.$ac_ext
29077 cat >>conftest.$ac_ext <<_ACEOF
29078 /* end confdefs.h. */
29079 #include <$ac_header>
29080 _ACEOF
29081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29083 ac_status=$?
29084 grep -v '^ *+' conftest.er1 >conftest.err
29085 rm -f conftest.er1
29086 cat conftest.err >&5
29087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29088 (exit $ac_status); } >/dev/null; then
29089 if test -s conftest.err; then
29090 ac_cpp_err=$ac_c_preproc_warn_flag
29091 else
29092 ac_cpp_err=
29094 else
29095 ac_cpp_err=yes
29097 if test -z "$ac_cpp_err"; then
29098 ac_header_preproc=yes
29099 else
29100 echo "$as_me: failed program was:" >&5
29101 sed 's/^/| /' conftest.$ac_ext >&5
29103 ac_header_preproc=no
29105 rm -f conftest.err conftest.$ac_ext
29106 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29107 echo "${ECHO_T}$ac_header_preproc" >&6
29109 # So? What about this header?
29110 case $ac_header_compiler:$ac_header_preproc in
29111 yes:no )
29112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29117 cat <<\_ASBOX
29118 ## ------------------------------------ ##
29119 ## Report this to bug-autoconf@gnu.org. ##
29120 ## ------------------------------------ ##
29121 _ASBOX
29123 sed "s/^/$as_me: WARNING: /" >&2
29125 no:yes )
29126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29133 cat <<\_ASBOX
29134 ## ------------------------------------ ##
29135 ## Report this to bug-autoconf@gnu.org. ##
29136 ## ------------------------------------ ##
29137 _ASBOX
29139 sed "s/^/$as_me: WARNING: /" >&2
29141 esac
29142 echo "$as_me:$LINENO: checking for $ac_header" >&5
29143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29145 echo $ECHO_N "(cached) $ECHO_C" >&6
29146 else
29147 eval "$as_ac_Header=$ac_header_preproc"
29149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29154 cat >>confdefs.h <<_ACEOF
29155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29156 _ACEOF
29160 done
29163 for ac_func in chsize
29165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29166 echo "$as_me:$LINENO: checking for $ac_func" >&5
29167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29168 if eval "test \"\${$as_ac_var+set}\" = set"; then
29169 echo $ECHO_N "(cached) $ECHO_C" >&6
29170 else
29171 cat >conftest.$ac_ext <<_ACEOF
29172 #line $LINENO "configure"
29173 /* confdefs.h. */
29174 _ACEOF
29175 cat confdefs.h >>conftest.$ac_ext
29176 cat >>conftest.$ac_ext <<_ACEOF
29177 /* end confdefs.h. */
29178 /* System header to define __stub macros and hopefully few prototypes,
29179 which can conflict with char $ac_func (); below.
29180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29181 <limits.h> exists even on freestanding compilers. */
29182 #ifdef __STDC__
29183 # include <limits.h>
29184 #else
29185 # include <assert.h>
29186 #endif
29187 /* Override any gcc2 internal prototype to avoid an error. */
29188 #ifdef __cplusplus
29189 extern "C"
29191 #endif
29192 /* We use char because int might match the return type of a gcc2
29193 builtin and then its argument prototype would still apply. */
29194 char $ac_func ();
29195 /* The GNU C library defines this for functions which it implements
29196 to always fail with ENOSYS. Some functions are actually named
29197 something starting with __ and the normal name is an alias. */
29198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29199 choke me
29200 #else
29201 char (*f) () = $ac_func;
29202 #endif
29203 #ifdef __cplusplus
29205 #endif
29208 main ()
29210 return f != $ac_func;
29212 return 0;
29214 _ACEOF
29215 rm -f conftest.$ac_objext conftest$ac_exeext
29216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29217 (eval $ac_link) 2>&5
29218 ac_status=$?
29219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29220 (exit $ac_status); } &&
29221 { ac_try='test -s conftest$ac_exeext'
29222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29223 (eval $ac_try) 2>&5
29224 ac_status=$?
29225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29226 (exit $ac_status); }; }; then
29227 eval "$as_ac_var=yes"
29228 else
29229 echo "$as_me: failed program was:" >&5
29230 sed 's/^/| /' conftest.$ac_ext >&5
29232 eval "$as_ac_var=no"
29234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29237 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29238 if test `eval echo '${'$as_ac_var'}'` = yes; then
29239 cat >>confdefs.h <<_ACEOF
29240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29241 _ACEOF
29244 done
29246 LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
29250 echo "$as_me:$LINENO: checking whether rename is broken" >&5
29251 echo $ECHO_N "checking whether rename is broken... $ECHO_C" >&6
29252 if test "${vb_cv_func_rename_trailing_slash_bug+set}" = set; then
29253 echo $ECHO_N "(cached) $ECHO_C" >&6
29254 else
29256 rm -rf conftest.d1 conftest.d2
29257 mkdir conftest.d1 ||
29258 { { echo "$as_me:$LINENO: error: cannot create temporary directory" >&5
29259 echo "$as_me: error: cannot create temporary directory" >&2;}
29260 { (exit 1); exit 1; }; }
29261 if test "$cross_compiling" = yes; then
29262 vb_cv_func_rename_trailing_slash_bug=yes
29263 else
29264 cat >conftest.$ac_ext <<_ACEOF
29265 #line $LINENO "configure"
29266 /* confdefs.h. */
29267 _ACEOF
29268 cat confdefs.h >>conftest.$ac_ext
29269 cat >>conftest.$ac_ext <<_ACEOF
29270 /* end confdefs.h. */
29272 # include <stdio.h>
29274 main ()
29276 exit (rename ("conftest.d1/", "conftest.d2") ? 1 : 0);
29279 _ACEOF
29280 rm -f conftest$ac_exeext
29281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29282 (eval $ac_link) 2>&5
29283 ac_status=$?
29284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29287 (eval $ac_try) 2>&5
29288 ac_status=$?
29289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290 (exit $ac_status); }; }; then
29291 vb_cv_func_rename_trailing_slash_bug=no
29292 else
29293 echo "$as_me: program exited with status $ac_status" >&5
29294 echo "$as_me: failed program was:" >&5
29295 sed 's/^/| /' conftest.$ac_ext >&5
29297 ( exit $ac_status )
29298 vb_cv_func_rename_trailing_slash_bug=yes
29300 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29303 rm -rf conftest.d1 conftest.d2
29306 echo "$as_me:$LINENO: result: $vb_cv_func_rename_trailing_slash_bug" >&5
29307 echo "${ECHO_T}$vb_cv_func_rename_trailing_slash_bug" >&6
29308 if test $vb_cv_func_rename_trailing_slash_bug = yes; then
29309 LIBOBJS="$LIBOBJS rename.$ac_objext"
29311 cat >>confdefs.h <<\_ACEOF
29312 #define RENAME_TRAILING_SLASH_BUG 1
29313 _ACEOF
29318 for ac_func in mkstemp
29320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29321 echo "$as_me:$LINENO: checking for $ac_func" >&5
29322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29323 if eval "test \"\${$as_ac_var+set}\" = set"; then
29324 echo $ECHO_N "(cached) $ECHO_C" >&6
29325 else
29326 cat >conftest.$ac_ext <<_ACEOF
29327 #line $LINENO "configure"
29328 /* confdefs.h. */
29329 _ACEOF
29330 cat confdefs.h >>conftest.$ac_ext
29331 cat >>conftest.$ac_ext <<_ACEOF
29332 /* end confdefs.h. */
29333 /* System header to define __stub macros and hopefully few prototypes,
29334 which can conflict with char $ac_func (); below.
29335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29336 <limits.h> exists even on freestanding compilers. */
29337 #ifdef __STDC__
29338 # include <limits.h>
29339 #else
29340 # include <assert.h>
29341 #endif
29342 /* Override any gcc2 internal prototype to avoid an error. */
29343 #ifdef __cplusplus
29344 extern "C"
29346 #endif
29347 /* We use char because int might match the return type of a gcc2
29348 builtin and then its argument prototype would still apply. */
29349 char $ac_func ();
29350 /* The GNU C library defines this for functions which it implements
29351 to always fail with ENOSYS. Some functions are actually named
29352 something starting with __ and the normal name is an alias. */
29353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29354 choke me
29355 #else
29356 char (*f) () = $ac_func;
29357 #endif
29358 #ifdef __cplusplus
29360 #endif
29363 main ()
29365 return f != $ac_func;
29367 return 0;
29369 _ACEOF
29370 rm -f conftest.$ac_objext conftest$ac_exeext
29371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29372 (eval $ac_link) 2>&5
29373 ac_status=$?
29374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375 (exit $ac_status); } &&
29376 { ac_try='test -s conftest$ac_exeext'
29377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29378 (eval $ac_try) 2>&5
29379 ac_status=$?
29380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29381 (exit $ac_status); }; }; then
29382 eval "$as_ac_var=yes"
29383 else
29384 echo "$as_me: failed program was:" >&5
29385 sed 's/^/| /' conftest.$ac_ext >&5
29387 eval "$as_ac_var=no"
29389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29392 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29393 if test `eval echo '${'$as_ac_var'}'` = yes; then
29394 cat >>confdefs.h <<_ACEOF
29395 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29396 _ACEOF
29398 else
29399 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
29401 done
29404 if test $ac_cv_func_mkstemp = no; then
29405 utils_cv_func_mkstemp_limitations=yes
29406 else
29407 echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
29408 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6
29409 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
29410 echo $ECHO_N "(cached) $ECHO_C" >&6
29411 else
29413 if test "$cross_compiling" = yes; then
29414 utils_cv_func_mkstemp_limitations=yes
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. */
29425 # include <stdlib.h>
29426 int main ()
29428 int i;
29429 for (i = 0; i < 30; i++)
29431 char template[] = "conftestXXXXXX";
29432 int fd = mkstemp (template);
29433 if (fd == -1)
29434 exit (1);
29435 close (fd);
29437 exit (0);
29440 _ACEOF
29441 rm -f conftest$ac_exeext
29442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29443 (eval $ac_link) 2>&5
29444 ac_status=$?
29445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29448 (eval $ac_try) 2>&5
29449 ac_status=$?
29450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29451 (exit $ac_status); }; }; then
29452 utils_cv_func_mkstemp_limitations=no
29453 else
29454 echo "$as_me: program exited with status $ac_status" >&5
29455 echo "$as_me: failed program was:" >&5
29456 sed 's/^/| /' conftest.$ac_ext >&5
29458 ( exit $ac_status )
29459 utils_cv_func_mkstemp_limitations=yes
29461 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29466 echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
29467 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6
29470 if test $utils_cv_func_mkstemp_limitations = yes; then
29471 LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
29472 LIBOBJS="$LIBOBJS tempname.$ac_objext"
29474 cat >>confdefs.h <<\_ACEOF
29475 #define mkstemp rpl_mkstemp
29476 _ACEOF
29480 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
29481 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
29482 if test "${ac_cv_func_closedir_void+set}" = set; then
29483 echo $ECHO_N "(cached) $ECHO_C" >&6
29484 else
29485 if test "$cross_compiling" = yes; then
29486 ac_cv_func_closedir_void=yes
29487 else
29488 cat >conftest.$ac_ext <<_ACEOF
29489 #line $LINENO "configure"
29490 /* confdefs.h. */
29491 _ACEOF
29492 cat confdefs.h >>conftest.$ac_ext
29493 cat >>conftest.$ac_ext <<_ACEOF
29494 /* end confdefs.h. */
29495 $ac_includes_default
29496 #include <$ac_header_dirent>
29497 #ifndef __cplusplus
29498 int closedir ();
29499 #endif
29502 main ()
29504 exit (closedir (opendir (".")) != 0);
29506 return 0;
29508 _ACEOF
29509 rm -f conftest$ac_exeext
29510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29511 (eval $ac_link) 2>&5
29512 ac_status=$?
29513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29516 (eval $ac_try) 2>&5
29517 ac_status=$?
29518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29519 (exit $ac_status); }; }; then
29520 ac_cv_func_closedir_void=no
29521 else
29522 echo "$as_me: program exited with status $ac_status" >&5
29523 echo "$as_me: failed program was:" >&5
29524 sed 's/^/| /' conftest.$ac_ext >&5
29526 ( exit $ac_status )
29527 ac_cv_func_closedir_void=yes
29529 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29532 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29533 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
29534 if test $ac_cv_func_closedir_void = yes; then
29536 cat >>confdefs.h <<\_ACEOF
29537 #define CLOSEDIR_VOID 1
29538 _ACEOF
29542 echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
29543 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
29544 if test "${ac_cv_func_utime_null+set}" = set; then
29545 echo $ECHO_N "(cached) $ECHO_C" >&6
29546 else
29547 rm -f conftest.data; >conftest.data
29548 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
29549 if test "$cross_compiling" = yes; then
29550 ac_cv_func_utime_null=no
29551 else
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
29561 main ()
29563 struct stat s, t;
29564 exit (!(stat ("conftest.data", &s) == 0
29565 && utime ("conftest.data", (long *)0) == 0
29566 && stat ("conftest.data", &t) == 0
29567 && t.st_mtime >= s.st_mtime
29568 && t.st_mtime - s.st_mtime < 120));
29570 return 0;
29572 _ACEOF
29573 rm -f conftest$ac_exeext
29574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29575 (eval $ac_link) 2>&5
29576 ac_status=$?
29577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29580 (eval $ac_try) 2>&5
29581 ac_status=$?
29582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583 (exit $ac_status); }; }; then
29584 ac_cv_func_utime_null=yes
29585 else
29586 echo "$as_me: program exited with status $ac_status" >&5
29587 echo "$as_me: failed program was:" >&5
29588 sed 's/^/| /' conftest.$ac_ext >&5
29590 ( exit $ac_status )
29591 ac_cv_func_utime_null=no
29593 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29595 rm -f core core.* *.core
29597 echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
29598 echo "${ECHO_T}$ac_cv_func_utime_null" >&6
29599 if test $ac_cv_func_utime_null = yes; then
29601 cat >>confdefs.h <<\_ACEOF
29602 #define HAVE_UTIME_NULL 1
29603 _ACEOF
29606 rm -f conftest.data
29610 for ac_header in utime.h
29612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29614 echo "$as_me:$LINENO: checking for $ac_header" >&5
29615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29617 echo $ECHO_N "(cached) $ECHO_C" >&6
29619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29621 else
29622 # Is the header compilable?
29623 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29625 cat >conftest.$ac_ext <<_ACEOF
29626 #line $LINENO "configure"
29627 /* confdefs.h. */
29628 _ACEOF
29629 cat confdefs.h >>conftest.$ac_ext
29630 cat >>conftest.$ac_ext <<_ACEOF
29631 /* end confdefs.h. */
29632 $ac_includes_default
29633 #include <$ac_header>
29634 _ACEOF
29635 rm -f conftest.$ac_objext
29636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29637 (eval $ac_compile) 2>&5
29638 ac_status=$?
29639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29640 (exit $ac_status); } &&
29641 { ac_try='test -s conftest.$ac_objext'
29642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29643 (eval $ac_try) 2>&5
29644 ac_status=$?
29645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29646 (exit $ac_status); }; }; then
29647 ac_header_compiler=yes
29648 else
29649 echo "$as_me: failed program was:" >&5
29650 sed 's/^/| /' conftest.$ac_ext >&5
29652 ac_header_compiler=no
29654 rm -f conftest.$ac_objext conftest.$ac_ext
29655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29656 echo "${ECHO_T}$ac_header_compiler" >&6
29658 # Is the header present?
29659 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29661 cat >conftest.$ac_ext <<_ACEOF
29662 #line $LINENO "configure"
29663 /* confdefs.h. */
29664 _ACEOF
29665 cat confdefs.h >>conftest.$ac_ext
29666 cat >>conftest.$ac_ext <<_ACEOF
29667 /* end confdefs.h. */
29668 #include <$ac_header>
29669 _ACEOF
29670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29672 ac_status=$?
29673 grep -v '^ *+' conftest.er1 >conftest.err
29674 rm -f conftest.er1
29675 cat conftest.err >&5
29676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29677 (exit $ac_status); } >/dev/null; then
29678 if test -s conftest.err; then
29679 ac_cpp_err=$ac_c_preproc_warn_flag
29680 else
29681 ac_cpp_err=
29683 else
29684 ac_cpp_err=yes
29686 if test -z "$ac_cpp_err"; then
29687 ac_header_preproc=yes
29688 else
29689 echo "$as_me: failed program was:" >&5
29690 sed 's/^/| /' conftest.$ac_ext >&5
29692 ac_header_preproc=no
29694 rm -f conftest.err conftest.$ac_ext
29695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29696 echo "${ECHO_T}$ac_header_preproc" >&6
29698 # So? What about this header?
29699 case $ac_header_compiler:$ac_header_preproc in
29700 yes:no )
29701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29706 cat <<\_ASBOX
29707 ## ------------------------------------ ##
29708 ## Report this to bug-autoconf@gnu.org. ##
29709 ## ------------------------------------ ##
29710 _ASBOX
29712 sed "s/^/$as_me: WARNING: /" >&2
29714 no:yes )
29715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29722 cat <<\_ASBOX
29723 ## ------------------------------------ ##
29724 ## Report this to bug-autoconf@gnu.org. ##
29725 ## ------------------------------------ ##
29726 _ASBOX
29728 sed "s/^/$as_me: WARNING: /" >&2
29730 esac
29731 echo "$as_me:$LINENO: checking for $ac_header" >&5
29732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29734 echo $ECHO_N "(cached) $ECHO_C" >&6
29735 else
29736 eval "$as_ac_Header=$ac_header_preproc"
29738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29743 cat >>confdefs.h <<_ACEOF
29744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29745 _ACEOF
29749 done
29754 if test $ac_cv_func_utime_null = no; then
29755 echo "$as_me:$LINENO: checking whether utimes accepts a null argument" >&5
29756 echo $ECHO_N "checking whether utimes accepts a null argument... $ECHO_C" >&6
29757 if test "${ac_cv_func_utimes_null+set}" = set; then
29758 echo $ECHO_N "(cached) $ECHO_C" >&6
29759 else
29760 rm -f conftest.data; > conftest.data
29761 if test "$cross_compiling" = yes; then
29762 ac_cv_func_utimes_null=no
29763 else
29764 cat >conftest.$ac_ext <<_ACEOF
29765 #line $LINENO "configure"
29766 /* confdefs.h. */
29767 _ACEOF
29768 cat confdefs.h >>conftest.$ac_ext
29769 cat >>conftest.$ac_ext <<_ACEOF
29770 /* end confdefs.h. */
29772 /* In case stat has been defined to rpl_stat, undef it here. */
29773 #undef stat
29774 #include <sys/types.h>
29775 #include <sys/stat.h>
29776 main() {
29777 struct stat s, t;
29778 exit(!(stat ("conftest.data", &s) == 0
29779 && utimes("conftest.data", (long *)0) == 0
29780 && stat("conftest.data", &t) == 0
29781 && t.st_mtime >= s.st_mtime
29782 && t.st_mtime - s.st_mtime < 120));
29784 _ACEOF
29785 rm -f conftest$ac_exeext
29786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29787 (eval $ac_link) 2>&5
29788 ac_status=$?
29789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29792 (eval $ac_try) 2>&5
29793 ac_status=$?
29794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795 (exit $ac_status); }; }; then
29796 ac_cv_func_utimes_null=yes
29797 else
29798 echo "$as_me: program exited with status $ac_status" >&5
29799 echo "$as_me: failed program was:" >&5
29800 sed 's/^/| /' conftest.$ac_ext >&5
29802 ( exit $ac_status )
29803 ac_cv_func_utimes_null=no
29805 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29807 rm -f core core.* *.core
29809 echo "$as_me:$LINENO: result: $ac_cv_func_utimes_null" >&5
29810 echo "${ECHO_T}$ac_cv_func_utimes_null" >&6
29812 if test $ac_cv_func_utimes_null = yes; then
29814 cat >>confdefs.h <<\_ACEOF
29815 #define HAVE_UTIMES_NULL 1
29816 _ACEOF
29822 for ac_func in utime
29824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29825 echo "$as_me:$LINENO: checking for $ac_func" >&5
29826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29827 if eval "test \"\${$as_ac_var+set}\" = set"; then
29828 echo $ECHO_N "(cached) $ECHO_C" >&6
29829 else
29830 cat >conftest.$ac_ext <<_ACEOF
29831 #line $LINENO "configure"
29832 /* confdefs.h. */
29833 _ACEOF
29834 cat confdefs.h >>conftest.$ac_ext
29835 cat >>conftest.$ac_ext <<_ACEOF
29836 /* end confdefs.h. */
29837 /* System header to define __stub macros and hopefully few prototypes,
29838 which can conflict with char $ac_func (); below.
29839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29840 <limits.h> exists even on freestanding compilers. */
29841 #ifdef __STDC__
29842 # include <limits.h>
29843 #else
29844 # include <assert.h>
29845 #endif
29846 /* Override any gcc2 internal prototype to avoid an error. */
29847 #ifdef __cplusplus
29848 extern "C"
29850 #endif
29851 /* We use char because int might match the return type of a gcc2
29852 builtin and then its argument prototype would still apply. */
29853 char $ac_func ();
29854 /* The GNU C library defines this for functions which it implements
29855 to always fail with ENOSYS. Some functions are actually named
29856 something starting with __ and the normal name is an alias. */
29857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29858 choke me
29859 #else
29860 char (*f) () = $ac_func;
29861 #endif
29862 #ifdef __cplusplus
29864 #endif
29867 main ()
29869 return f != $ac_func;
29871 return 0;
29873 _ACEOF
29874 rm -f conftest.$ac_objext conftest$ac_exeext
29875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29876 (eval $ac_link) 2>&5
29877 ac_status=$?
29878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879 (exit $ac_status); } &&
29880 { ac_try='test -s conftest$ac_exeext'
29881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29882 (eval $ac_try) 2>&5
29883 ac_status=$?
29884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885 (exit $ac_status); }; }; then
29886 eval "$as_ac_var=yes"
29887 else
29888 echo "$as_me: failed program was:" >&5
29889 sed 's/^/| /' conftest.$ac_ext >&5
29891 eval "$as_ac_var=no"
29893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29897 if test `eval echo '${'$as_ac_var'}'` = yes; then
29898 cat >>confdefs.h <<_ACEOF
29899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29900 _ACEOF
29902 else
29903 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
29905 done
29911 echo "$as_me:$LINENO: checking determine how many files may be open simultaneously" >&5
29912 echo $ECHO_N "checking determine how many files may be open simultaneously... $ECHO_C" >&6
29913 if test "${utils_cv_sys_open_max+set}" = set; then
29914 echo $ECHO_N "(cached) $ECHO_C" >&6
29915 else
29917 if test "$cross_compiling" = yes; then
29918 utils_cv_sys_open_max='cross compiling run-test in open-max.m4'
29919 else
29920 cat >conftest.$ac_ext <<_ACEOF
29921 #line $LINENO "configure"
29922 /* confdefs.h. */
29923 _ACEOF
29924 cat confdefs.h >>conftest.$ac_ext
29925 cat >>conftest.$ac_ext <<_ACEOF
29926 /* end confdefs.h. */
29928 #include <stdio.h>
29929 #include <stdlib.h>
29930 #include <unistd.h>
29932 main ()
29934 FILE *result = fopen ("conftest.omax", "w");
29935 int i = 1;
29936 /* Impose an arbitrary limit, in case some system has no
29937 effective limit on the number of simultaneously open files. */
29938 while (i < 30000)
29940 FILE *s = fopen ("conftest.op", "w");
29941 if (!s)
29942 break;
29943 ++i;
29945 fprintf (result, "%d\n", i);
29946 exit (fclose (result) == EOF);
29949 _ACEOF
29950 rm -f conftest$ac_exeext
29951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29952 (eval $ac_link) 2>&5
29953 ac_status=$?
29954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29957 (eval $ac_try) 2>&5
29958 ac_status=$?
29959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29960 (exit $ac_status); }; }; then
29961 utils_cv_sys_open_max=`cat conftest.omax`
29962 else
29963 echo "$as_me: program exited with status $ac_status" >&5
29964 echo "$as_me: failed program was:" >&5
29965 sed 's/^/| /' conftest.$ac_ext >&5
29967 ( exit $ac_status )
29968 utils_cv_sys_open_max='internal error in open-max.m4'
29970 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29973 echo "$as_me:$LINENO: result: $utils_cv_sys_open_max" >&5
29974 echo "${ECHO_T}$utils_cv_sys_open_max" >&6
29977 cat >>confdefs.h <<_ACEOF
29978 #define UTILS_OPEN_MAX $utils_cv_sys_open_max
29979 _ACEOF
29983 echo "$as_me:$LINENO: checking whether getcwd properly handles paths longer than PATH_MAX" >&5
29984 echo $ECHO_N "checking whether getcwd properly handles paths longer than PATH_MAX... $ECHO_C" >&6
29985 if test "${gl_cv_func_getcwd_vs_path_max+set}" = set; then
29986 echo $ECHO_N "(cached) $ECHO_C" >&6
29987 else
29989 # Arrange for deletion of the temporary directory this test creates.
29990 ac_clean_files="$ac_clean_files confdir3"
29991 if test "$cross_compiling" = yes; then
29992 gl_cv_func_getcwd_vs_path_max=no
29993 else
29994 cat >conftest.$ac_ext <<_ACEOF
29995 #line $LINENO "configure"
29996 /* confdefs.h. */
29997 _ACEOF
29998 cat confdefs.h >>conftest.$ac_ext
29999 cat >>conftest.$ac_ext <<_ACEOF
30000 /* end confdefs.h. */
30002 #include <stdlib.h>
30003 #include <unistd.h>
30004 #include <string.h>
30005 #include <limits.h>
30006 #include <sys/stat.h>
30007 #include <sys/types.h>
30009 /* Don't get link errors because mkdir is redefined to rpl_mkdir. */
30010 #undef mkdir
30012 #ifndef CHAR_BIT
30013 # define CHAR_BIT 8
30014 #endif
30016 /* The extra casts work around common compiler bugs. */
30017 #define TYPE_SIGNED(t) (! ((t) 0 < (t) -1))
30018 /* The outer cast is needed to work around a bug in Cray C 5.0.3.0.
30019 It is necessary at least when t == time_t. */
30020 #define TYPE_MINIMUM(t) ((t) (TYPE_SIGNED (t) \
30021 ? ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1) : (t) 0))
30022 #define TYPE_MAXIMUM(t) ((t) (~ (t) 0 - TYPE_MINIMUM (t)))
30024 #ifndef INT_MAX
30025 # define INT_MAX TYPE_MAXIMUM (int)
30026 #endif
30028 #ifndef PATH_MAX
30029 /* There might be a better way to handle this case, but note:
30030 - the value shouldn't be anywhere near INT_MAX, and
30031 - the value shouldn't be so big that the local declaration, below,
30032 blows the stack. */
30033 # define PATH_MAX 40000
30034 #endif
30036 /* The length of this name must be 8. */
30037 #define DIR_NAME "confdir3"
30040 main ()
30042 /* The '9' comes from strlen (DIR_NAME) + 1. */
30043 #if INT_MAX - 9 <= PATH_MAX
30044 /* FIXME: Assuming there's a system for which this is true -- Hurd?,
30045 this should be done in a compile test. */
30046 exit (0);
30047 #else
30048 char buf[PATH_MAX + 20];
30049 char *cwd = getcwd (buf, PATH_MAX);
30050 size_t cwd_len;
30051 int fail = 0;
30052 size_t n_chdirs = 0;
30054 if (cwd == NULL)
30055 exit (1);
30057 cwd_len = strlen (cwd);
30059 while (1)
30061 char *c;
30062 size_t len;
30064 cwd_len += 1 + strlen (DIR_NAME);
30065 /* If mkdir or chdir fails, be pessimistic and consider that
30066 as a failure, too. */
30067 if (mkdir (DIR_NAME, 0700) < 0 || chdir (DIR_NAME) < 0)
30069 fail = 1;
30070 break;
30072 if ((c = getcwd (buf, PATH_MAX)) == NULL)
30074 /* This allows any failure to indicate there is no bug.
30075 FIXME: check errno? */
30076 break;
30078 if ((len = strlen (c)) != cwd_len)
30080 fail = 1;
30081 break;
30083 ++n_chdirs;
30084 if (PATH_MAX < len)
30085 break;
30088 /* Leaving behind such a deep directory is not polite.
30089 So clean up here, right away, even though the driving
30090 shell script would also clean up. */
30092 size_t i;
30094 /* Unlink first, in case the chdir failed. */
30095 unlink (DIR_NAME);
30096 for (i = 0; i <= n_chdirs; i++)
30098 if (chdir ("..") < 0)
30099 break;
30100 rmdir (DIR_NAME);
30104 exit (fail);
30105 #endif
30108 _ACEOF
30109 rm -f conftest$ac_exeext
30110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30111 (eval $ac_link) 2>&5
30112 ac_status=$?
30113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30116 (eval $ac_try) 2>&5
30117 ac_status=$?
30118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119 (exit $ac_status); }; }; then
30120 gl_cv_func_getcwd_vs_path_max=yes
30121 else
30122 echo "$as_me: program exited with status $ac_status" >&5
30123 echo "$as_me: failed program was:" >&5
30124 sed 's/^/| /' conftest.$ac_ext >&5
30126 ( exit $ac_status )
30127 gl_cv_func_getcwd_vs_path_max=no
30129 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30132 echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_vs_path_max" >&5
30133 echo "${ECHO_T}$gl_cv_func_getcwd_vs_path_max" >&6
30135 if test $gl_cv_func_getcwd_vs_path_max = yes; then
30136 LIBOBJS="$LIBOBJS getcwd.$ac_objext"
30138 cat >>confdefs.h <<\_ACEOF
30139 #define getcwd rpl_getcwd
30140 _ACEOF
30145 if test "X$prefix" = "XNONE"; then
30146 acl_final_prefix="$ac_default_prefix"
30147 else
30148 acl_final_prefix="$prefix"
30150 if test "X$exec_prefix" = "XNONE"; then
30151 acl_final_exec_prefix='${prefix}'
30152 else
30153 acl_final_exec_prefix="$exec_prefix"
30155 acl_save_prefix="$prefix"
30156 prefix="$acl_final_prefix"
30157 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
30158 prefix="$acl_save_prefix"
30161 # Check whether --with-gnu-ld or --without-gnu-ld was given.
30162 if test "${with_gnu_ld+set}" = set; then
30163 withval="$with_gnu_ld"
30164 test "$withval" = no || with_gnu_ld=yes
30165 else
30166 with_gnu_ld=no
30168 ac_prog=ld
30169 if test "$GCC" = yes; then
30170 # Check if gcc -print-prog-name=ld gives a path.
30171 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
30172 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
30173 case $host in
30174 *-*-mingw*)
30175 # gcc leaves a trailing carriage return which upsets mingw
30176 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
30178 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
30179 esac
30180 case $ac_prog in
30181 # Accept absolute paths.
30182 [\\/]* | [A-Za-z]:[\\/]*)
30183 re_direlt='/[^/][^/]*/\.\./'
30184 # Canonicalize the path of ld
30185 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
30186 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
30187 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
30188 done
30189 test -z "$LD" && LD="$ac_prog"
30192 # If it fails, then pretend we aren't using GCC.
30193 ac_prog=ld
30196 # If it is relative, then search for the first ld in PATH.
30197 with_gnu_ld=unknown
30199 esac
30200 elif test "$with_gnu_ld" = yes; then
30201 echo "$as_me:$LINENO: checking for GNU ld" >&5
30202 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
30203 else
30204 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
30205 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
30207 if test "${acl_cv_path_LD+set}" = set; then
30208 echo $ECHO_N "(cached) $ECHO_C" >&6
30209 else
30210 if test -z "$LD"; then
30211 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
30212 for ac_dir in $PATH; do
30213 test -z "$ac_dir" && ac_dir=.
30214 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
30215 acl_cv_path_LD="$ac_dir/$ac_prog"
30216 # Check to see if the program is GNU ld. I'd rather use --version,
30217 # but apparently some GNU ld's only accept -v.
30218 # Break only if it was the GNU/non-GNU ld that we prefer.
30219 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
30220 test "$with_gnu_ld" != no && break
30221 else
30222 test "$with_gnu_ld" != yes && break
30225 done
30226 IFS="$ac_save_ifs"
30227 else
30228 acl_cv_path_LD="$LD" # Let the user override the test with a path.
30232 LD="$acl_cv_path_LD"
30233 if test -n "$LD"; then
30234 echo "$as_me:$LINENO: result: $LD" >&5
30235 echo "${ECHO_T}$LD" >&6
30236 else
30237 echo "$as_me:$LINENO: result: no" >&5
30238 echo "${ECHO_T}no" >&6
30240 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
30241 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
30242 { (exit 1); exit 1; }; }
30243 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
30244 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
30245 if test "${acl_cv_prog_gnu_ld+set}" = set; then
30246 echo $ECHO_N "(cached) $ECHO_C" >&6
30247 else
30248 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
30249 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
30250 acl_cv_prog_gnu_ld=yes
30251 else
30252 acl_cv_prog_gnu_ld=no
30255 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
30256 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
30257 with_gnu_ld=$acl_cv_prog_gnu_ld
30261 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
30262 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
30263 if test "${acl_cv_rpath+set}" = set; then
30264 echo $ECHO_N "(cached) $ECHO_C" >&6
30265 else
30267 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
30268 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
30269 . ./conftest.sh
30270 rm -f ./conftest.sh
30271 acl_cv_rpath=done
30274 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
30275 echo "${ECHO_T}$acl_cv_rpath" >&6
30276 wl="$acl_cv_wl"
30277 libext="$acl_cv_libext"
30278 shlibext="$acl_cv_shlibext"
30279 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
30280 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
30281 hardcode_direct="$acl_cv_hardcode_direct"
30282 hardcode_minus_L="$acl_cv_hardcode_minus_L"
30283 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
30284 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
30285 # Check whether --enable-rpath or --disable-rpath was given.
30286 if test "${enable_rpath+set}" = set; then
30287 enableval="$enable_rpath"
30289 else
30290 enable_rpath=yes
30299 use_additional=yes
30301 acl_save_prefix="$prefix"
30302 prefix="$acl_final_prefix"
30303 acl_save_exec_prefix="$exec_prefix"
30304 exec_prefix="$acl_final_exec_prefix"
30306 eval additional_includedir=\"$includedir\"
30307 eval additional_libdir=\"$libdir\"
30309 exec_prefix="$acl_save_exec_prefix"
30310 prefix="$acl_save_prefix"
30313 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
30314 if test "${with_libiconv_prefix+set}" = set; then
30315 withval="$with_libiconv_prefix"
30317 if test "X$withval" = "Xno"; then
30318 use_additional=no
30319 else
30320 if test "X$withval" = "X"; then
30322 acl_save_prefix="$prefix"
30323 prefix="$acl_final_prefix"
30324 acl_save_exec_prefix="$exec_prefix"
30325 exec_prefix="$acl_final_exec_prefix"
30327 eval additional_includedir=\"$includedir\"
30328 eval additional_libdir=\"$libdir\"
30330 exec_prefix="$acl_save_exec_prefix"
30331 prefix="$acl_save_prefix"
30333 else
30334 additional_includedir="$withval/include"
30335 additional_libdir="$withval/lib"
30340 LIBICONV=
30341 LTLIBICONV=
30342 INCICONV=
30343 rpathdirs=
30344 ltrpathdirs=
30345 names_already_handled=
30346 names_next_round='iconv '
30347 while test -n "$names_next_round"; do
30348 names_this_round="$names_next_round"
30349 names_next_round=
30350 for name in $names_this_round; do
30351 already_handled=
30352 for n in $names_already_handled; do
30353 if test "$n" = "$name"; then
30354 already_handled=yes
30355 break
30357 done
30358 if test -z "$already_handled"; then
30359 names_already_handled="$names_already_handled $name"
30360 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
30361 eval value=\"\$HAVE_LIB$uppername\"
30362 if test -n "$value"; then
30363 if test "$value" = yes; then
30364 eval value=\"\$LIB$uppername\"
30365 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
30366 eval value=\"\$LTLIB$uppername\"
30367 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
30368 else
30371 else
30372 found_dir=
30373 found_la=
30374 found_so=
30375 found_a=
30376 if test $use_additional = yes; then
30377 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
30378 found_dir="$additional_libdir"
30379 found_so="$additional_libdir/lib$name.$shlibext"
30380 if test -f "$additional_libdir/lib$name.la"; then
30381 found_la="$additional_libdir/lib$name.la"
30383 else
30384 if test -f "$additional_libdir/lib$name.$libext"; then
30385 found_dir="$additional_libdir"
30386 found_a="$additional_libdir/lib$name.$libext"
30387 if test -f "$additional_libdir/lib$name.la"; then
30388 found_la="$additional_libdir/lib$name.la"
30393 if test "X$found_dir" = "X"; then
30394 for x in $LDFLAGS $LTLIBICONV; do
30396 acl_save_prefix="$prefix"
30397 prefix="$acl_final_prefix"
30398 acl_save_exec_prefix="$exec_prefix"
30399 exec_prefix="$acl_final_exec_prefix"
30400 eval x=\"$x\"
30401 exec_prefix="$acl_save_exec_prefix"
30402 prefix="$acl_save_prefix"
30404 case "$x" in
30405 -L*)
30406 dir=`echo "X$x" | sed -e 's/^X-L//'`
30407 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
30408 found_dir="$dir"
30409 found_so="$dir/lib$name.$shlibext"
30410 if test -f "$dir/lib$name.la"; then
30411 found_la="$dir/lib$name.la"
30413 else
30414 if test -f "$dir/lib$name.$libext"; then
30415 found_dir="$dir"
30416 found_a="$dir/lib$name.$libext"
30417 if test -f "$dir/lib$name.la"; then
30418 found_la="$dir/lib$name.la"
30423 esac
30424 if test "X$found_dir" != "X"; then
30425 break
30427 done
30429 if test "X$found_dir" != "X"; then
30430 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
30431 if test "X$found_so" != "X"; then
30432 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
30433 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
30434 else
30435 haveit=
30436 for x in $ltrpathdirs; do
30437 if test "X$x" = "X$found_dir"; then
30438 haveit=yes
30439 break
30441 done
30442 if test -z "$haveit"; then
30443 ltrpathdirs="$ltrpathdirs $found_dir"
30445 if test "$hardcode_direct" = yes; then
30446 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
30447 else
30448 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
30449 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
30450 haveit=
30451 for x in $rpathdirs; do
30452 if test "X$x" = "X$found_dir"; then
30453 haveit=yes
30454 break
30456 done
30457 if test -z "$haveit"; then
30458 rpathdirs="$rpathdirs $found_dir"
30460 else
30461 haveit=
30462 for x in $LDFLAGS $LIBICONV; do
30464 acl_save_prefix="$prefix"
30465 prefix="$acl_final_prefix"
30466 acl_save_exec_prefix="$exec_prefix"
30467 exec_prefix="$acl_final_exec_prefix"
30468 eval x=\"$x\"
30469 exec_prefix="$acl_save_exec_prefix"
30470 prefix="$acl_save_prefix"
30472 if test "X$x" = "X-L$found_dir"; then
30473 haveit=yes
30474 break
30476 done
30477 if test -z "$haveit"; then
30478 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
30480 if test "$hardcode_minus_L" != no; then
30481 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
30482 else
30483 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
30488 else
30489 if test "X$found_a" != "X"; then
30490 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
30491 else
30492 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
30495 additional_includedir=
30496 case "$found_dir" in
30497 */lib | */lib/)
30498 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
30499 additional_includedir="$basedir/include"
30501 esac
30502 if test "X$additional_includedir" != "X"; then
30503 if test "X$additional_includedir" != "X/usr/include"; then
30504 haveit=
30505 if test "X$additional_includedir" = "X/usr/local/include"; then
30506 if test -n "$GCC"; then
30507 case $host_os in
30508 linux*) haveit=yes;;
30509 esac
30512 if test -z "$haveit"; then
30513 for x in $CPPFLAGS $INCICONV; do
30515 acl_save_prefix="$prefix"
30516 prefix="$acl_final_prefix"
30517 acl_save_exec_prefix="$exec_prefix"
30518 exec_prefix="$acl_final_exec_prefix"
30519 eval x=\"$x\"
30520 exec_prefix="$acl_save_exec_prefix"
30521 prefix="$acl_save_prefix"
30523 if test "X$x" = "X-I$additional_includedir"; then
30524 haveit=yes
30525 break
30527 done
30528 if test -z "$haveit"; then
30529 if test -d "$additional_includedir"; then
30530 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
30536 if test -n "$found_la"; then
30537 save_libdir="$libdir"
30538 case "$found_la" in
30539 */* | *\\*) . "$found_la" ;;
30540 *) . "./$found_la" ;;
30541 esac
30542 libdir="$save_libdir"
30543 for dep in $dependency_libs; do
30544 case "$dep" in
30545 -L*)
30546 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
30547 if test "X$additional_libdir" != "X/usr/lib"; then
30548 haveit=
30549 if test "X$additional_libdir" = "X/usr/local/lib"; then
30550 if test -n "$GCC"; then
30551 case $host_os in
30552 linux*) haveit=yes;;
30553 esac
30556 if test -z "$haveit"; then
30557 haveit=
30558 for x in $LDFLAGS $LIBICONV; do
30560 acl_save_prefix="$prefix"
30561 prefix="$acl_final_prefix"
30562 acl_save_exec_prefix="$exec_prefix"
30563 exec_prefix="$acl_final_exec_prefix"
30564 eval x=\"$x\"
30565 exec_prefix="$acl_save_exec_prefix"
30566 prefix="$acl_save_prefix"
30568 if test "X$x" = "X-L$additional_libdir"; then
30569 haveit=yes
30570 break
30572 done
30573 if test -z "$haveit"; then
30574 if test -d "$additional_libdir"; then
30575 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
30578 haveit=
30579 for x in $LDFLAGS $LTLIBICONV; do
30581 acl_save_prefix="$prefix"
30582 prefix="$acl_final_prefix"
30583 acl_save_exec_prefix="$exec_prefix"
30584 exec_prefix="$acl_final_exec_prefix"
30585 eval x=\"$x\"
30586 exec_prefix="$acl_save_exec_prefix"
30587 prefix="$acl_save_prefix"
30589 if test "X$x" = "X-L$additional_libdir"; then
30590 haveit=yes
30591 break
30593 done
30594 if test -z "$haveit"; then
30595 if test -d "$additional_libdir"; then
30596 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
30602 -R*)
30603 dir=`echo "X$dep" | sed -e 's/^X-R//'`
30604 if test "$enable_rpath" != no; then
30605 haveit=
30606 for x in $rpathdirs; do
30607 if test "X$x" = "X$dir"; then
30608 haveit=yes
30609 break
30611 done
30612 if test -z "$haveit"; then
30613 rpathdirs="$rpathdirs $dir"
30615 haveit=
30616 for x in $ltrpathdirs; do
30617 if test "X$x" = "X$dir"; then
30618 haveit=yes
30619 break
30621 done
30622 if test -z "$haveit"; then
30623 ltrpathdirs="$ltrpathdirs $dir"
30627 -l*)
30628 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
30630 *.la)
30631 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
30634 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
30635 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
30637 esac
30638 done
30640 else
30641 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
30642 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
30646 done
30647 done
30648 if test "X$rpathdirs" != "X"; then
30649 if test -n "$hardcode_libdir_separator"; then
30650 alldirs=
30651 for found_dir in $rpathdirs; do
30652 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
30653 done
30654 acl_save_libdir="$libdir"
30655 libdir="$alldirs"
30656 eval flag=\"$hardcode_libdir_flag_spec\"
30657 libdir="$acl_save_libdir"
30658 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
30659 else
30660 for found_dir in $rpathdirs; do
30661 acl_save_libdir="$libdir"
30662 libdir="$found_dir"
30663 eval flag=\"$hardcode_libdir_flag_spec\"
30664 libdir="$acl_save_libdir"
30665 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
30666 done
30669 if test "X$ltrpathdirs" != "X"; then
30670 for found_dir in $ltrpathdirs; do
30671 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
30672 done
30677 echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
30678 echo $ECHO_N "checking whether system is Windows or MSDOS... $ECHO_C" >&6
30679 if test "${ac_cv_win_or_dos+set}" = set; then
30680 echo $ECHO_N "(cached) $ECHO_C" >&6
30681 else
30683 cat >conftest.$ac_ext <<_ACEOF
30684 #line $LINENO "configure"
30685 /* confdefs.h. */
30686 _ACEOF
30687 cat confdefs.h >>conftest.$ac_ext
30688 cat >>conftest.$ac_ext <<_ACEOF
30689 /* end confdefs.h. */
30692 main ()
30694 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__
30695 neither MSDOS nor Windows
30696 #endif
30698 return 0;
30700 _ACEOF
30701 rm -f conftest.$ac_objext
30702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30703 (eval $ac_compile) 2>&5
30704 ac_status=$?
30705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30706 (exit $ac_status); } &&
30707 { ac_try='test -s conftest.$ac_objext'
30708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30709 (eval $ac_try) 2>&5
30710 ac_status=$?
30711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30712 (exit $ac_status); }; }; then
30713 ac_cv_win_or_dos=yes
30714 else
30715 echo "$as_me: failed program was:" >&5
30716 sed 's/^/| /' conftest.$ac_ext >&5
30718 ac_cv_win_or_dos=no
30720 rm -f conftest.$ac_objext conftest.$ac_ext
30723 echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
30724 echo "${ECHO_T}$ac_cv_win_or_dos" >&6
30726 if test x"$ac_cv_win_or_dos" = xyes; then
30727 ac_fs_accepts_drive_letter_prefix=1
30728 ac_fs_backslash_is_file_name_separator=1
30729 else
30730 ac_fs_accepts_drive_letter_prefix=0
30731 ac_fs_backslash_is_file_name_separator=0
30738 cat >>confdefs.h <<_ACEOF
30739 #define FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
30740 _ACEOF
30747 cat >>confdefs.h <<_ACEOF
30748 #define FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
30749 _ACEOF
30757 for ac_header in string.h sys/param.h stddef.h
30759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30761 echo "$as_me:$LINENO: checking for $ac_header" >&5
30762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30764 echo $ECHO_N "(cached) $ECHO_C" >&6
30766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30768 else
30769 # Is the header compilable?
30770 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30772 cat >conftest.$ac_ext <<_ACEOF
30773 #line $LINENO "configure"
30774 /* confdefs.h. */
30775 _ACEOF
30776 cat confdefs.h >>conftest.$ac_ext
30777 cat >>conftest.$ac_ext <<_ACEOF
30778 /* end confdefs.h. */
30779 $ac_includes_default
30780 #include <$ac_header>
30781 _ACEOF
30782 rm -f conftest.$ac_objext
30783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30784 (eval $ac_compile) 2>&5
30785 ac_status=$?
30786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787 (exit $ac_status); } &&
30788 { ac_try='test -s conftest.$ac_objext'
30789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30790 (eval $ac_try) 2>&5
30791 ac_status=$?
30792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793 (exit $ac_status); }; }; then
30794 ac_header_compiler=yes
30795 else
30796 echo "$as_me: failed program was:" >&5
30797 sed 's/^/| /' conftest.$ac_ext >&5
30799 ac_header_compiler=no
30801 rm -f conftest.$ac_objext conftest.$ac_ext
30802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30803 echo "${ECHO_T}$ac_header_compiler" >&6
30805 # Is the header present?
30806 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30808 cat >conftest.$ac_ext <<_ACEOF
30809 #line $LINENO "configure"
30810 /* confdefs.h. */
30811 _ACEOF
30812 cat confdefs.h >>conftest.$ac_ext
30813 cat >>conftest.$ac_ext <<_ACEOF
30814 /* end confdefs.h. */
30815 #include <$ac_header>
30816 _ACEOF
30817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30819 ac_status=$?
30820 grep -v '^ *+' conftest.er1 >conftest.err
30821 rm -f conftest.er1
30822 cat conftest.err >&5
30823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30824 (exit $ac_status); } >/dev/null; then
30825 if test -s conftest.err; then
30826 ac_cpp_err=$ac_c_preproc_warn_flag
30827 else
30828 ac_cpp_err=
30830 else
30831 ac_cpp_err=yes
30833 if test -z "$ac_cpp_err"; then
30834 ac_header_preproc=yes
30835 else
30836 echo "$as_me: failed program was:" >&5
30837 sed 's/^/| /' conftest.$ac_ext >&5
30839 ac_header_preproc=no
30841 rm -f conftest.err conftest.$ac_ext
30842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30843 echo "${ECHO_T}$ac_header_preproc" >&6
30845 # So? What about this header?
30846 case $ac_header_compiler:$ac_header_preproc in
30847 yes:no )
30848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30853 cat <<\_ASBOX
30854 ## ------------------------------------ ##
30855 ## Report this to bug-autoconf@gnu.org. ##
30856 ## ------------------------------------ ##
30857 _ASBOX
30859 sed "s/^/$as_me: WARNING: /" >&2
30861 no:yes )
30862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30869 cat <<\_ASBOX
30870 ## ------------------------------------ ##
30871 ## Report this to bug-autoconf@gnu.org. ##
30872 ## ------------------------------------ ##
30873 _ASBOX
30875 sed "s/^/$as_me: WARNING: /" >&2
30877 esac
30878 echo "$as_me:$LINENO: checking for $ac_header" >&5
30879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30881 echo $ECHO_N "(cached) $ECHO_C" >&6
30882 else
30883 eval "$as_ac_Header=$ac_header_preproc"
30885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30890 cat >>confdefs.h <<_ACEOF
30891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30892 _ACEOF
30896 done
30899 for ac_func in resolvepath
30901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30902 echo "$as_me:$LINENO: checking for $ac_func" >&5
30903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30904 if eval "test \"\${$as_ac_var+set}\" = set"; then
30905 echo $ECHO_N "(cached) $ECHO_C" >&6
30906 else
30907 cat >conftest.$ac_ext <<_ACEOF
30908 #line $LINENO "configure"
30909 /* confdefs.h. */
30910 _ACEOF
30911 cat confdefs.h >>conftest.$ac_ext
30912 cat >>conftest.$ac_ext <<_ACEOF
30913 /* end confdefs.h. */
30914 /* System header to define __stub macros and hopefully few prototypes,
30915 which can conflict with char $ac_func (); below.
30916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30917 <limits.h> exists even on freestanding compilers. */
30918 #ifdef __STDC__
30919 # include <limits.h>
30920 #else
30921 # include <assert.h>
30922 #endif
30923 /* Override any gcc2 internal prototype to avoid an error. */
30924 #ifdef __cplusplus
30925 extern "C"
30927 #endif
30928 /* We use char because int might match the return type of a gcc2
30929 builtin and then its argument prototype would still apply. */
30930 char $ac_func ();
30931 /* The GNU C library defines this for functions which it implements
30932 to always fail with ENOSYS. Some functions are actually named
30933 something starting with __ and the normal name is an alias. */
30934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30935 choke me
30936 #else
30937 char (*f) () = $ac_func;
30938 #endif
30939 #ifdef __cplusplus
30941 #endif
30944 main ()
30946 return f != $ac_func;
30948 return 0;
30950 _ACEOF
30951 rm -f conftest.$ac_objext conftest$ac_exeext
30952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30953 (eval $ac_link) 2>&5
30954 ac_status=$?
30955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30956 (exit $ac_status); } &&
30957 { ac_try='test -s conftest$ac_exeext'
30958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30959 (eval $ac_try) 2>&5
30960 ac_status=$?
30961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30962 (exit $ac_status); }; }; then
30963 eval "$as_ac_var=yes"
30964 else
30965 echo "$as_me: failed program was:" >&5
30966 sed 's/^/| /' conftest.$ac_ext >&5
30968 eval "$as_ac_var=no"
30970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30973 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30974 if test `eval echo '${'$as_ac_var'}'` = yes; then
30975 cat >>confdefs.h <<_ACEOF
30976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30977 _ACEOF
30980 done
30984 # This would simply be AC_REPLACE_FUNC([canonicalize_file_name])
30985 # if the function name weren't so long. Besides, I would rather
30986 # not have underscores in file names.
30987 echo "$as_me:$LINENO: checking for canonicalize_file_name" >&5
30988 echo $ECHO_N "checking for canonicalize_file_name... $ECHO_C" >&6
30989 if test "${ac_cv_func_canonicalize_file_name+set}" = set; then
30990 echo $ECHO_N "(cached) $ECHO_C" >&6
30991 else
30992 cat >conftest.$ac_ext <<_ACEOF
30993 #line $LINENO "configure"
30994 /* confdefs.h. */
30995 _ACEOF
30996 cat confdefs.h >>conftest.$ac_ext
30997 cat >>conftest.$ac_ext <<_ACEOF
30998 /* end confdefs.h. */
30999 /* System header to define __stub macros and hopefully few prototypes,
31000 which can conflict with char canonicalize_file_name (); below.
31001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31002 <limits.h> exists even on freestanding compilers. */
31003 #ifdef __STDC__
31004 # include <limits.h>
31005 #else
31006 # include <assert.h>
31007 #endif
31008 /* Override any gcc2 internal prototype to avoid an error. */
31009 #ifdef __cplusplus
31010 extern "C"
31012 #endif
31013 /* We use char because int might match the return type of a gcc2
31014 builtin and then its argument prototype would still apply. */
31015 char canonicalize_file_name ();
31016 /* The GNU C library defines this for functions which it implements
31017 to always fail with ENOSYS. Some functions are actually named
31018 something starting with __ and the normal name is an alias. */
31019 #if defined (__stub_canonicalize_file_name) || defined (__stub___canonicalize_file_name)
31020 choke me
31021 #else
31022 char (*f) () = canonicalize_file_name;
31023 #endif
31024 #ifdef __cplusplus
31026 #endif
31029 main ()
31031 return f != canonicalize_file_name;
31033 return 0;
31035 _ACEOF
31036 rm -f conftest.$ac_objext conftest$ac_exeext
31037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31038 (eval $ac_link) 2>&5
31039 ac_status=$?
31040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31041 (exit $ac_status); } &&
31042 { ac_try='test -s conftest$ac_exeext'
31043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31044 (eval $ac_try) 2>&5
31045 ac_status=$?
31046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31047 (exit $ac_status); }; }; then
31048 ac_cv_func_canonicalize_file_name=yes
31049 else
31050 echo "$as_me: failed program was:" >&5
31051 sed 's/^/| /' conftest.$ac_ext >&5
31053 ac_cv_func_canonicalize_file_name=no
31055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31057 echo "$as_me:$LINENO: result: $ac_cv_func_canonicalize_file_name" >&5
31058 echo "${ECHO_T}$ac_cv_func_canonicalize_file_name" >&6
31059 if test $ac_cv_func_canonicalize_file_name = yes; then
31061 else
31062 LIBOBJS="$LIBOBJS canonicalize.$ac_objext"
31069 GNU_PACKAGE="GNU $PACKAGE"
31071 cat >>confdefs.h <<_ACEOF
31072 #define GNU_PACKAGE "$GNU_PACKAGE"
31073 _ACEOF
31078 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
31100 echo "$as_me:$LINENO: checking for struct stat.st_author" >&5
31101 echo $ECHO_N "checking for struct stat.st_author... $ECHO_C" >&6
31102 if test "${ac_cv_member_struct_stat_st_author+set}" = set; then
31103 echo $ECHO_N "(cached) $ECHO_C" >&6
31104 else
31105 cat >conftest.$ac_ext <<_ACEOF
31106 #line $LINENO "configure"
31107 /* confdefs.h. */
31108 _ACEOF
31109 cat confdefs.h >>conftest.$ac_ext
31110 cat >>conftest.$ac_ext <<_ACEOF
31111 /* end confdefs.h. */
31112 $ac_includes_default
31113 #include <sys/stat.h>
31117 main ()
31119 static struct stat ac_aggr;
31120 if (ac_aggr.st_author)
31121 return 0;
31123 return 0;
31125 _ACEOF
31126 rm -f conftest.$ac_objext
31127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31128 (eval $ac_compile) 2>&5
31129 ac_status=$?
31130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31131 (exit $ac_status); } &&
31132 { ac_try='test -s conftest.$ac_objext'
31133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31134 (eval $ac_try) 2>&5
31135 ac_status=$?
31136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137 (exit $ac_status); }; }; then
31138 ac_cv_member_struct_stat_st_author=yes
31139 else
31140 echo "$as_me: failed program was:" >&5
31141 sed 's/^/| /' conftest.$ac_ext >&5
31143 cat >conftest.$ac_ext <<_ACEOF
31144 #line $LINENO "configure"
31145 /* confdefs.h. */
31146 _ACEOF
31147 cat confdefs.h >>conftest.$ac_ext
31148 cat >>conftest.$ac_ext <<_ACEOF
31149 /* end confdefs.h. */
31150 $ac_includes_default
31151 #include <sys/stat.h>
31155 main ()
31157 static struct stat ac_aggr;
31158 if (sizeof ac_aggr.st_author)
31159 return 0;
31161 return 0;
31163 _ACEOF
31164 rm -f conftest.$ac_objext
31165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31166 (eval $ac_compile) 2>&5
31167 ac_status=$?
31168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31169 (exit $ac_status); } &&
31170 { ac_try='test -s conftest.$ac_objext'
31171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31172 (eval $ac_try) 2>&5
31173 ac_status=$?
31174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31175 (exit $ac_status); }; }; then
31176 ac_cv_member_struct_stat_st_author=yes
31177 else
31178 echo "$as_me: failed program was:" >&5
31179 sed 's/^/| /' conftest.$ac_ext >&5
31181 ac_cv_member_struct_stat_st_author=no
31183 rm -f conftest.$ac_objext conftest.$ac_ext
31185 rm -f conftest.$ac_objext conftest.$ac_ext
31187 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_author" >&5
31188 echo "${ECHO_T}$ac_cv_member_struct_stat_st_author" >&6
31189 if test $ac_cv_member_struct_stat_st_author = yes; then
31191 cat >>confdefs.h <<_ACEOF
31192 #define HAVE_STRUCT_STAT_ST_AUTHOR 1
31193 _ACEOF
31197 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31198 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
31199 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31200 echo $ECHO_N "(cached) $ECHO_C" >&6
31201 else
31202 cat >conftest.$ac_ext <<_ACEOF
31203 #line $LINENO "configure"
31204 /* confdefs.h. */
31205 _ACEOF
31206 cat confdefs.h >>conftest.$ac_ext
31207 cat >>conftest.$ac_ext <<_ACEOF
31208 /* end confdefs.h. */
31209 $ac_includes_default
31210 #include <sys/stat.h>
31214 main ()
31216 static struct stat ac_aggr;
31217 if (ac_aggr.st_blksize)
31218 return 0;
31220 return 0;
31222 _ACEOF
31223 rm -f conftest.$ac_objext
31224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31225 (eval $ac_compile) 2>&5
31226 ac_status=$?
31227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31228 (exit $ac_status); } &&
31229 { ac_try='test -s conftest.$ac_objext'
31230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31231 (eval $ac_try) 2>&5
31232 ac_status=$?
31233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234 (exit $ac_status); }; }; then
31235 ac_cv_member_struct_stat_st_blksize=yes
31236 else
31237 echo "$as_me: failed program was:" >&5
31238 sed 's/^/| /' conftest.$ac_ext >&5
31240 cat >conftest.$ac_ext <<_ACEOF
31241 #line $LINENO "configure"
31242 /* confdefs.h. */
31243 _ACEOF
31244 cat confdefs.h >>conftest.$ac_ext
31245 cat >>conftest.$ac_ext <<_ACEOF
31246 /* end confdefs.h. */
31247 $ac_includes_default
31248 #include <sys/stat.h>
31252 main ()
31254 static struct stat ac_aggr;
31255 if (sizeof ac_aggr.st_blksize)
31256 return 0;
31258 return 0;
31260 _ACEOF
31261 rm -f conftest.$ac_objext
31262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31263 (eval $ac_compile) 2>&5
31264 ac_status=$?
31265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31266 (exit $ac_status); } &&
31267 { ac_try='test -s conftest.$ac_objext'
31268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31269 (eval $ac_try) 2>&5
31270 ac_status=$?
31271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272 (exit $ac_status); }; }; then
31273 ac_cv_member_struct_stat_st_blksize=yes
31274 else
31275 echo "$as_me: failed program was:" >&5
31276 sed 's/^/| /' conftest.$ac_ext >&5
31278 ac_cv_member_struct_stat_st_blksize=no
31280 rm -f conftest.$ac_objext conftest.$ac_ext
31282 rm -f conftest.$ac_objext conftest.$ac_ext
31284 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31285 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
31286 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31288 cat >>confdefs.h <<_ACEOF
31289 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31290 _ACEOF
31311 echo "$as_me:$LINENO: checking for ino_t" >&5
31312 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
31313 if test "${ac_cv_type_ino_t+set}" = set; then
31314 echo $ECHO_N "(cached) $ECHO_C" >&6
31315 else
31316 cat >conftest.$ac_ext <<_ACEOF
31317 #line $LINENO "configure"
31318 /* confdefs.h. */
31319 _ACEOF
31320 cat confdefs.h >>conftest.$ac_ext
31321 cat >>conftest.$ac_ext <<_ACEOF
31322 /* end confdefs.h. */
31323 $ac_includes_default
31325 main ()
31327 if ((ino_t *) 0)
31328 return 0;
31329 if (sizeof (ino_t))
31330 return 0;
31332 return 0;
31334 _ACEOF
31335 rm -f conftest.$ac_objext
31336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31337 (eval $ac_compile) 2>&5
31338 ac_status=$?
31339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31340 (exit $ac_status); } &&
31341 { ac_try='test -s conftest.$ac_objext'
31342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31343 (eval $ac_try) 2>&5
31344 ac_status=$?
31345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346 (exit $ac_status); }; }; then
31347 ac_cv_type_ino_t=yes
31348 else
31349 echo "$as_me: failed program was:" >&5
31350 sed 's/^/| /' conftest.$ac_ext >&5
31352 ac_cv_type_ino_t=no
31354 rm -f conftest.$ac_objext conftest.$ac_ext
31356 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
31357 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
31358 if test $ac_cv_type_ino_t = yes; then
31360 else
31362 cat >>confdefs.h <<_ACEOF
31363 #define ino_t unsigned long
31364 _ACEOF
31369 echo "$as_me:$LINENO: checking for ssize_t" >&5
31370 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
31371 if test "${ac_cv_type_ssize_t+set}" = set; then
31372 echo $ECHO_N "(cached) $ECHO_C" >&6
31373 else
31374 cat >conftest.$ac_ext <<_ACEOF
31375 #line $LINENO "configure"
31376 /* confdefs.h. */
31377 _ACEOF
31378 cat confdefs.h >>conftest.$ac_ext
31379 cat >>conftest.$ac_ext <<_ACEOF
31380 /* end confdefs.h. */
31381 $ac_includes_default
31383 main ()
31385 if ((ssize_t *) 0)
31386 return 0;
31387 if (sizeof (ssize_t))
31388 return 0;
31390 return 0;
31392 _ACEOF
31393 rm -f conftest.$ac_objext
31394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31395 (eval $ac_compile) 2>&5
31396 ac_status=$?
31397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398 (exit $ac_status); } &&
31399 { ac_try='test -s conftest.$ac_objext'
31400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31401 (eval $ac_try) 2>&5
31402 ac_status=$?
31403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404 (exit $ac_status); }; }; then
31405 ac_cv_type_ssize_t=yes
31406 else
31407 echo "$as_me: failed program was:" >&5
31408 sed 's/^/| /' conftest.$ac_ext >&5
31410 ac_cv_type_ssize_t=no
31412 rm -f conftest.$ac_objext conftest.$ac_ext
31414 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31415 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
31416 if test $ac_cv_type_ssize_t = yes; then
31418 else
31420 cat >>confdefs.h <<_ACEOF
31421 #define ssize_t int
31422 _ACEOF
31426 echo "$as_me:$LINENO: checking for major_t" >&5
31427 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
31428 if test "${ac_cv_type_major_t+set}" = set; then
31429 echo $ECHO_N "(cached) $ECHO_C" >&6
31430 else
31431 cat >conftest.$ac_ext <<_ACEOF
31432 #line $LINENO "configure"
31433 /* confdefs.h. */
31434 _ACEOF
31435 cat confdefs.h >>conftest.$ac_ext
31436 cat >>conftest.$ac_ext <<_ACEOF
31437 /* end confdefs.h. */
31438 $ac_includes_default
31440 main ()
31442 if ((major_t *) 0)
31443 return 0;
31444 if (sizeof (major_t))
31445 return 0;
31447 return 0;
31449 _ACEOF
31450 rm -f conftest.$ac_objext
31451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31452 (eval $ac_compile) 2>&5
31453 ac_status=$?
31454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455 (exit $ac_status); } &&
31456 { ac_try='test -s conftest.$ac_objext'
31457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31458 (eval $ac_try) 2>&5
31459 ac_status=$?
31460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31461 (exit $ac_status); }; }; then
31462 ac_cv_type_major_t=yes
31463 else
31464 echo "$as_me: failed program was:" >&5
31465 sed 's/^/| /' conftest.$ac_ext >&5
31467 ac_cv_type_major_t=no
31469 rm -f conftest.$ac_objext conftest.$ac_ext
31471 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
31472 echo "${ECHO_T}$ac_cv_type_major_t" >&6
31473 if test $ac_cv_type_major_t = yes; then
31475 else
31477 cat >>confdefs.h <<_ACEOF
31478 #define major_t unsigned int
31479 _ACEOF
31483 echo "$as_me:$LINENO: checking for minor_t" >&5
31484 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
31485 if test "${ac_cv_type_minor_t+set}" = set; then
31486 echo $ECHO_N "(cached) $ECHO_C" >&6
31487 else
31488 cat >conftest.$ac_ext <<_ACEOF
31489 #line $LINENO "configure"
31490 /* confdefs.h. */
31491 _ACEOF
31492 cat confdefs.h >>conftest.$ac_ext
31493 cat >>conftest.$ac_ext <<_ACEOF
31494 /* end confdefs.h. */
31495 $ac_includes_default
31497 main ()
31499 if ((minor_t *) 0)
31500 return 0;
31501 if (sizeof (minor_t))
31502 return 0;
31504 return 0;
31506 _ACEOF
31507 rm -f conftest.$ac_objext
31508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31509 (eval $ac_compile) 2>&5
31510 ac_status=$?
31511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31512 (exit $ac_status); } &&
31513 { ac_try='test -s conftest.$ac_objext'
31514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31515 (eval $ac_try) 2>&5
31516 ac_status=$?
31517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31518 (exit $ac_status); }; }; then
31519 ac_cv_type_minor_t=yes
31520 else
31521 echo "$as_me: failed program was:" >&5
31522 sed 's/^/| /' conftest.$ac_ext >&5
31524 ac_cv_type_minor_t=no
31526 rm -f conftest.$ac_objext conftest.$ac_ext
31528 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
31529 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
31530 if test $ac_cv_type_minor_t = yes; then
31532 else
31534 cat >>confdefs.h <<_ACEOF
31535 #define minor_t unsigned int
31536 _ACEOF
31550 # Assume we'll default to using the included regex.c.
31551 ac_use_included_regex=yes
31553 # However, if the system regex support is good enough that it passes the
31554 # the following run test, then default to *not* using the included regex.c.
31555 # If cross compiling, assume the test would fail and use the included
31556 # regex.c. The first failing regular expression is from `Spencer ere
31557 # test #75' in grep-2.3.
31558 echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
31559 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
31560 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
31561 echo $ECHO_N "(cached) $ECHO_C" >&6
31562 else
31563 if test "$cross_compiling" = yes; then
31564 jm_cv_func_working_re_compile_pattern=no
31565 else
31566 cat >conftest.$ac_ext <<_ACEOF
31567 #line $LINENO "configure"
31568 /* confdefs.h. */
31569 _ACEOF
31570 cat confdefs.h >>conftest.$ac_ext
31571 cat >>conftest.$ac_ext <<_ACEOF
31572 /* end confdefs.h. */
31573 #include <stdio.h>
31574 #include <string.h>
31575 #include <regex.h>
31577 main ()
31579 static struct re_pattern_buffer regex;
31580 const char *s;
31581 struct re_registers regs;
31582 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
31583 memset (&regex, 0, sizeof (regex));
31584 s = re_compile_pattern ("a[[:]:]]b\n", 9, &regex);
31585 /* This should fail with _Invalid character class name_ error. */
31586 if (!s)
31587 exit (1);
31589 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
31590 memset (&regex, 0, sizeof (regex));
31591 s = re_compile_pattern ("{1", 2, &regex);
31593 if (s)
31594 exit (1);
31596 /* The following example is derived from a problem report
31597 against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
31598 memset (&regex, 0, sizeof (regex));
31599 s = re_compile_pattern ("[anù]*n", 7, &regex);
31600 if (s)
31601 exit (1);
31603 /* This should match, but doesn't for e.g. glibc-2.2.1. */
31604 if (re_match (&regex, "an", 2, 0, &regs) != 2)
31605 exit (1);
31607 memset (&regex, 0, sizeof (regex));
31608 s = re_compile_pattern ("x", 1, &regex);
31609 if (s)
31610 exit (1);
31612 /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
31613 work with a negative RANGE argument. */
31614 if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
31615 exit (1);
31617 exit (0);
31620 _ACEOF
31621 rm -f conftest$ac_exeext
31622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31623 (eval $ac_link) 2>&5
31624 ac_status=$?
31625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31628 (eval $ac_try) 2>&5
31629 ac_status=$?
31630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631 (exit $ac_status); }; }; then
31632 jm_cv_func_working_re_compile_pattern=yes
31633 else
31634 echo "$as_me: program exited with status $ac_status" >&5
31635 echo "$as_me: failed program was:" >&5
31636 sed 's/^/| /' conftest.$ac_ext >&5
31638 ( exit $ac_status )
31639 jm_cv_func_working_re_compile_pattern=no
31641 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31644 echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
31645 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
31646 if test $jm_cv_func_working_re_compile_pattern = yes; then
31647 ac_use_included_regex=no
31650 test -n "lib/regex.c" || { { echo "$as_me:$LINENO: error: missing argument" >&5
31651 echo "$as_me: error: missing argument" >&2;}
31652 { (exit 1); exit 1; }; }
31656 # Check whether --with-included-regex or --without-included-regex was given.
31657 if test "${with_included_regex+set}" = set; then
31658 withval="$with_included_regex"
31659 jm_with_regex=$withval
31660 else
31661 jm_with_regex=$ac_use_included_regex
31663 if test "$jm_with_regex" = yes; then
31664 LIBOBJS="$LIBOBJS regex.$ac_objext"
31699 for ac_func in btowc
31701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31702 echo "$as_me:$LINENO: checking for $ac_func" >&5
31703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31704 if eval "test \"\${$as_ac_var+set}\" = set"; then
31705 echo $ECHO_N "(cached) $ECHO_C" >&6
31706 else
31707 cat >conftest.$ac_ext <<_ACEOF
31708 #line $LINENO "configure"
31709 /* confdefs.h. */
31710 _ACEOF
31711 cat confdefs.h >>conftest.$ac_ext
31712 cat >>conftest.$ac_ext <<_ACEOF
31713 /* end confdefs.h. */
31714 /* System header to define __stub macros and hopefully few prototypes,
31715 which can conflict with char $ac_func (); below.
31716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31717 <limits.h> exists even on freestanding compilers. */
31718 #ifdef __STDC__
31719 # include <limits.h>
31720 #else
31721 # include <assert.h>
31722 #endif
31723 /* Override any gcc2 internal prototype to avoid an error. */
31724 #ifdef __cplusplus
31725 extern "C"
31727 #endif
31728 /* We use char because int might match the return type of a gcc2
31729 builtin and then its argument prototype would still apply. */
31730 char $ac_func ();
31731 /* The GNU C library defines this for functions which it implements
31732 to always fail with ENOSYS. Some functions are actually named
31733 something starting with __ and the normal name is an alias. */
31734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31735 choke me
31736 #else
31737 char (*f) () = $ac_func;
31738 #endif
31739 #ifdef __cplusplus
31741 #endif
31744 main ()
31746 return f != $ac_func;
31748 return 0;
31750 _ACEOF
31751 rm -f conftest.$ac_objext conftest$ac_exeext
31752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31753 (eval $ac_link) 2>&5
31754 ac_status=$?
31755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31756 (exit $ac_status); } &&
31757 { ac_try='test -s conftest$ac_exeext'
31758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31759 (eval $ac_try) 2>&5
31760 ac_status=$?
31761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31762 (exit $ac_status); }; }; then
31763 eval "$as_ac_var=yes"
31764 else
31765 echo "$as_me: failed program was:" >&5
31766 sed 's/^/| /' conftest.$ac_ext >&5
31768 eval "$as_ac_var=no"
31770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31773 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31774 if test `eval echo '${'$as_ac_var'}'` = yes; then
31775 cat >>confdefs.h <<_ACEOF
31776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31777 _ACEOF
31780 done
31828 # This is for od and stat, and any other program that
31829 # uses the PRI.MAX macros from inttypes.h.
31839 ac_have_func=no # yes means we've found a way to get the load average.
31841 # Make sure getloadavg.c is where it belongs, at configure-time.
31842 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
31843 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
31844 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
31845 { (exit 1); exit 1; }; }
31847 ac_save_LIBS=$LIBS
31849 # Check for getloadavg, but be sure not to touch the cache variable.
31850 (echo "$as_me:$LINENO: checking for getloadavg" >&5
31851 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
31852 if test "${ac_cv_func_getloadavg+set}" = set; then
31853 echo $ECHO_N "(cached) $ECHO_C" >&6
31854 else
31855 cat >conftest.$ac_ext <<_ACEOF
31856 #line $LINENO "configure"
31857 /* confdefs.h. */
31858 _ACEOF
31859 cat confdefs.h >>conftest.$ac_ext
31860 cat >>conftest.$ac_ext <<_ACEOF
31861 /* end confdefs.h. */
31862 /* System header to define __stub macros and hopefully few prototypes,
31863 which can conflict with char getloadavg (); below.
31864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31865 <limits.h> exists even on freestanding compilers. */
31866 #ifdef __STDC__
31867 # include <limits.h>
31868 #else
31869 # include <assert.h>
31870 #endif
31871 /* Override any gcc2 internal prototype to avoid an error. */
31872 #ifdef __cplusplus
31873 extern "C"
31875 #endif
31876 /* We use char because int might match the return type of a gcc2
31877 builtin and then its argument prototype would still apply. */
31878 char getloadavg ();
31879 /* The GNU C library defines this for functions which it implements
31880 to always fail with ENOSYS. Some functions are actually named
31881 something starting with __ and the normal name is an alias. */
31882 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
31883 choke me
31884 #else
31885 char (*f) () = getloadavg;
31886 #endif
31887 #ifdef __cplusplus
31889 #endif
31892 main ()
31894 return f != getloadavg;
31896 return 0;
31898 _ACEOF
31899 rm -f conftest.$ac_objext conftest$ac_exeext
31900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31901 (eval $ac_link) 2>&5
31902 ac_status=$?
31903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31904 (exit $ac_status); } &&
31905 { ac_try='test -s conftest$ac_exeext'
31906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31907 (eval $ac_try) 2>&5
31908 ac_status=$?
31909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31910 (exit $ac_status); }; }; then
31911 ac_cv_func_getloadavg=yes
31912 else
31913 echo "$as_me: failed program was:" >&5
31914 sed 's/^/| /' conftest.$ac_ext >&5
31916 ac_cv_func_getloadavg=no
31918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31920 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
31921 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
31922 if test $ac_cv_func_getloadavg = yes; then
31923 exit 0
31924 else
31925 exit 1
31927 ) && ac_have_func=yes
31929 # On HPUX9, an unprivileged user can get load averages through this function.
31931 for ac_func in pstat_getdynamic
31933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31934 echo "$as_me:$LINENO: checking for $ac_func" >&5
31935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31936 if eval "test \"\${$as_ac_var+set}\" = set"; then
31937 echo $ECHO_N "(cached) $ECHO_C" >&6
31938 else
31939 cat >conftest.$ac_ext <<_ACEOF
31940 #line $LINENO "configure"
31941 /* confdefs.h. */
31942 _ACEOF
31943 cat confdefs.h >>conftest.$ac_ext
31944 cat >>conftest.$ac_ext <<_ACEOF
31945 /* end confdefs.h. */
31946 /* System header to define __stub macros and hopefully few prototypes,
31947 which can conflict with char $ac_func (); below.
31948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31949 <limits.h> exists even on freestanding compilers. */
31950 #ifdef __STDC__
31951 # include <limits.h>
31952 #else
31953 # include <assert.h>
31954 #endif
31955 /* Override any gcc2 internal prototype to avoid an error. */
31956 #ifdef __cplusplus
31957 extern "C"
31959 #endif
31960 /* We use char because int might match the return type of a gcc2
31961 builtin and then its argument prototype would still apply. */
31962 char $ac_func ();
31963 /* The GNU C library defines this for functions which it implements
31964 to always fail with ENOSYS. Some functions are actually named
31965 something starting with __ and the normal name is an alias. */
31966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31967 choke me
31968 #else
31969 char (*f) () = $ac_func;
31970 #endif
31971 #ifdef __cplusplus
31973 #endif
31976 main ()
31978 return f != $ac_func;
31980 return 0;
31982 _ACEOF
31983 rm -f conftest.$ac_objext conftest$ac_exeext
31984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31985 (eval $ac_link) 2>&5
31986 ac_status=$?
31987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31988 (exit $ac_status); } &&
31989 { ac_try='test -s conftest$ac_exeext'
31990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31991 (eval $ac_try) 2>&5
31992 ac_status=$?
31993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31994 (exit $ac_status); }; }; then
31995 eval "$as_ac_var=yes"
31996 else
31997 echo "$as_me: failed program was:" >&5
31998 sed 's/^/| /' conftest.$ac_ext >&5
32000 eval "$as_ac_var=no"
32002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32006 if test `eval echo '${'$as_ac_var'}'` = yes; then
32007 cat >>confdefs.h <<_ACEOF
32008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32009 _ACEOF
32012 done
32015 # Solaris has libkstat which does not require root.
32017 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
32018 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
32019 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
32020 echo $ECHO_N "(cached) $ECHO_C" >&6
32021 else
32022 ac_check_lib_save_LIBS=$LIBS
32023 LIBS="-lkstat $LIBS"
32024 cat >conftest.$ac_ext <<_ACEOF
32025 #line $LINENO "configure"
32026 /* confdefs.h. */
32027 _ACEOF
32028 cat confdefs.h >>conftest.$ac_ext
32029 cat >>conftest.$ac_ext <<_ACEOF
32030 /* end confdefs.h. */
32032 /* Override any gcc2 internal prototype to avoid an error. */
32033 #ifdef __cplusplus
32034 extern "C"
32035 #endif
32036 /* We use char because int might match the return type of a gcc2
32037 builtin and then its argument prototype would still apply. */
32038 char kstat_open ();
32040 main ()
32042 kstat_open ();
32044 return 0;
32046 _ACEOF
32047 rm -f conftest.$ac_objext conftest$ac_exeext
32048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32049 (eval $ac_link) 2>&5
32050 ac_status=$?
32051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32052 (exit $ac_status); } &&
32053 { ac_try='test -s conftest$ac_exeext'
32054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32055 (eval $ac_try) 2>&5
32056 ac_status=$?
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058 (exit $ac_status); }; }; then
32059 ac_cv_lib_kstat_kstat_open=yes
32060 else
32061 echo "$as_me: failed program was:" >&5
32062 sed 's/^/| /' conftest.$ac_ext >&5
32064 ac_cv_lib_kstat_kstat_open=no
32066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32067 LIBS=$ac_check_lib_save_LIBS
32069 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
32070 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
32071 if test $ac_cv_lib_kstat_kstat_open = yes; then
32072 cat >>confdefs.h <<_ACEOF
32073 #define HAVE_LIBKSTAT 1
32074 _ACEOF
32076 LIBS="-lkstat $LIBS"
32080 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
32082 # Some systems with -lutil have (and need) -lkvm as well, some do not.
32083 # On Solaris, -lkvm requires nlist from -lelf, so check that first
32084 # to get the right answer into the cache.
32085 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
32086 if test $ac_have_func = no; then
32087 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
32088 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
32089 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
32090 echo $ECHO_N "(cached) $ECHO_C" >&6
32091 else
32092 ac_check_lib_save_LIBS=$LIBS
32093 LIBS="-lelf $LIBS"
32094 cat >conftest.$ac_ext <<_ACEOF
32095 #line $LINENO "configure"
32096 /* confdefs.h. */
32097 _ACEOF
32098 cat confdefs.h >>conftest.$ac_ext
32099 cat >>conftest.$ac_ext <<_ACEOF
32100 /* end confdefs.h. */
32102 /* Override any gcc2 internal prototype to avoid an error. */
32103 #ifdef __cplusplus
32104 extern "C"
32105 #endif
32106 /* We use char because int might match the return type of a gcc2
32107 builtin and then its argument prototype would still apply. */
32108 char elf_begin ();
32110 main ()
32112 elf_begin ();
32114 return 0;
32116 _ACEOF
32117 rm -f conftest.$ac_objext conftest$ac_exeext
32118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32119 (eval $ac_link) 2>&5
32120 ac_status=$?
32121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32122 (exit $ac_status); } &&
32123 { ac_try='test -s conftest$ac_exeext'
32124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32125 (eval $ac_try) 2>&5
32126 ac_status=$?
32127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32128 (exit $ac_status); }; }; then
32129 ac_cv_lib_elf_elf_begin=yes
32130 else
32131 echo "$as_me: failed program was:" >&5
32132 sed 's/^/| /' conftest.$ac_ext >&5
32134 ac_cv_lib_elf_elf_begin=no
32136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32137 LIBS=$ac_check_lib_save_LIBS
32139 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
32140 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
32141 if test $ac_cv_lib_elf_elf_begin = yes; then
32142 LIBS="-lelf $LIBS"
32146 if test $ac_have_func = no; then
32147 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
32148 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
32149 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
32150 echo $ECHO_N "(cached) $ECHO_C" >&6
32151 else
32152 ac_check_lib_save_LIBS=$LIBS
32153 LIBS="-lkvm $LIBS"
32154 cat >conftest.$ac_ext <<_ACEOF
32155 #line $LINENO "configure"
32156 /* confdefs.h. */
32157 _ACEOF
32158 cat confdefs.h >>conftest.$ac_ext
32159 cat >>conftest.$ac_ext <<_ACEOF
32160 /* end confdefs.h. */
32162 /* Override any gcc2 internal prototype to avoid an error. */
32163 #ifdef __cplusplus
32164 extern "C"
32165 #endif
32166 /* We use char because int might match the return type of a gcc2
32167 builtin and then its argument prototype would still apply. */
32168 char kvm_open ();
32170 main ()
32172 kvm_open ();
32174 return 0;
32176 _ACEOF
32177 rm -f conftest.$ac_objext conftest$ac_exeext
32178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32179 (eval $ac_link) 2>&5
32180 ac_status=$?
32181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32182 (exit $ac_status); } &&
32183 { ac_try='test -s conftest$ac_exeext'
32184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32185 (eval $ac_try) 2>&5
32186 ac_status=$?
32187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32188 (exit $ac_status); }; }; then
32189 ac_cv_lib_kvm_kvm_open=yes
32190 else
32191 echo "$as_me: failed program was:" >&5
32192 sed 's/^/| /' conftest.$ac_ext >&5
32194 ac_cv_lib_kvm_kvm_open=no
32196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32197 LIBS=$ac_check_lib_save_LIBS
32199 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
32200 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
32201 if test $ac_cv_lib_kvm_kvm_open = yes; then
32202 LIBS="-lkvm $LIBS"
32205 # Check for the 4.4BSD definition of getloadavg.
32206 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
32207 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
32208 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
32209 echo $ECHO_N "(cached) $ECHO_C" >&6
32210 else
32211 ac_check_lib_save_LIBS=$LIBS
32212 LIBS="-lutil $LIBS"
32213 cat >conftest.$ac_ext <<_ACEOF
32214 #line $LINENO "configure"
32215 /* confdefs.h. */
32216 _ACEOF
32217 cat confdefs.h >>conftest.$ac_ext
32218 cat >>conftest.$ac_ext <<_ACEOF
32219 /* end confdefs.h. */
32221 /* Override any gcc2 internal prototype to avoid an error. */
32222 #ifdef __cplusplus
32223 extern "C"
32224 #endif
32225 /* We use char because int might match the return type of a gcc2
32226 builtin and then its argument prototype would still apply. */
32227 char getloadavg ();
32229 main ()
32231 getloadavg ();
32233 return 0;
32235 _ACEOF
32236 rm -f conftest.$ac_objext conftest$ac_exeext
32237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32238 (eval $ac_link) 2>&5
32239 ac_status=$?
32240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32241 (exit $ac_status); } &&
32242 { ac_try='test -s conftest$ac_exeext'
32243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32244 (eval $ac_try) 2>&5
32245 ac_status=$?
32246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32247 (exit $ac_status); }; }; then
32248 ac_cv_lib_util_getloadavg=yes
32249 else
32250 echo "$as_me: failed program was:" >&5
32251 sed 's/^/| /' conftest.$ac_ext >&5
32253 ac_cv_lib_util_getloadavg=no
32255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32256 LIBS=$ac_check_lib_save_LIBS
32258 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
32259 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
32260 if test $ac_cv_lib_util_getloadavg = yes; then
32261 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
32266 if test $ac_have_func = no; then
32267 # There is a commonly available library for RS/6000 AIX.
32268 # Since it is not a standard part of AIX, it might be installed locally.
32269 ac_getloadavg_LIBS=$LIBS
32270 LIBS="-L/usr/local/lib $LIBS"
32271 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
32272 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
32273 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
32274 echo $ECHO_N "(cached) $ECHO_C" >&6
32275 else
32276 ac_check_lib_save_LIBS=$LIBS
32277 LIBS="-lgetloadavg $LIBS"
32278 cat >conftest.$ac_ext <<_ACEOF
32279 #line $LINENO "configure"
32280 /* confdefs.h. */
32281 _ACEOF
32282 cat confdefs.h >>conftest.$ac_ext
32283 cat >>conftest.$ac_ext <<_ACEOF
32284 /* end confdefs.h. */
32286 /* Override any gcc2 internal prototype to avoid an error. */
32287 #ifdef __cplusplus
32288 extern "C"
32289 #endif
32290 /* We use char because int might match the return type of a gcc2
32291 builtin and then its argument prototype would still apply. */
32292 char getloadavg ();
32294 main ()
32296 getloadavg ();
32298 return 0;
32300 _ACEOF
32301 rm -f conftest.$ac_objext conftest$ac_exeext
32302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32303 (eval $ac_link) 2>&5
32304 ac_status=$?
32305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32306 (exit $ac_status); } &&
32307 { ac_try='test -s conftest$ac_exeext'
32308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32309 (eval $ac_try) 2>&5
32310 ac_status=$?
32311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312 (exit $ac_status); }; }; then
32313 ac_cv_lib_getloadavg_getloadavg=yes
32314 else
32315 echo "$as_me: failed program was:" >&5
32316 sed 's/^/| /' conftest.$ac_ext >&5
32318 ac_cv_lib_getloadavg_getloadavg=no
32320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32321 LIBS=$ac_check_lib_save_LIBS
32323 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
32324 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
32325 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
32326 LIBS="-lgetloadavg $LIBS"
32327 else
32328 LIBS=$ac_getloadavg_LIBS
32333 # Make sure it is really in the library, if we think we found it,
32334 # otherwise set up the replacement function.
32336 for ac_func in getloadavg
32338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32339 echo "$as_me:$LINENO: checking for $ac_func" >&5
32340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32341 if eval "test \"\${$as_ac_var+set}\" = set"; then
32342 echo $ECHO_N "(cached) $ECHO_C" >&6
32343 else
32344 cat >conftest.$ac_ext <<_ACEOF
32345 #line $LINENO "configure"
32346 /* confdefs.h. */
32347 _ACEOF
32348 cat confdefs.h >>conftest.$ac_ext
32349 cat >>conftest.$ac_ext <<_ACEOF
32350 /* end confdefs.h. */
32351 /* System header to define __stub macros and hopefully few prototypes,
32352 which can conflict with char $ac_func (); below.
32353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32354 <limits.h> exists even on freestanding compilers. */
32355 #ifdef __STDC__
32356 # include <limits.h>
32357 #else
32358 # include <assert.h>
32359 #endif
32360 /* Override any gcc2 internal prototype to avoid an error. */
32361 #ifdef __cplusplus
32362 extern "C"
32364 #endif
32365 /* We use char because int might match the return type of a gcc2
32366 builtin and then its argument prototype would still apply. */
32367 char $ac_func ();
32368 /* The GNU C library defines this for functions which it implements
32369 to always fail with ENOSYS. Some functions are actually named
32370 something starting with __ and the normal name is an alias. */
32371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32372 choke me
32373 #else
32374 char (*f) () = $ac_func;
32375 #endif
32376 #ifdef __cplusplus
32378 #endif
32381 main ()
32383 return f != $ac_func;
32385 return 0;
32387 _ACEOF
32388 rm -f conftest.$ac_objext conftest$ac_exeext
32389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32390 (eval $ac_link) 2>&5
32391 ac_status=$?
32392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32393 (exit $ac_status); } &&
32394 { ac_try='test -s conftest$ac_exeext'
32395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32396 (eval $ac_try) 2>&5
32397 ac_status=$?
32398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32399 (exit $ac_status); }; }; then
32400 eval "$as_ac_var=yes"
32401 else
32402 echo "$as_me: failed program was:" >&5
32403 sed 's/^/| /' conftest.$ac_ext >&5
32405 eval "$as_ac_var=no"
32407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32411 if test `eval echo '${'$as_ac_var'}'` = yes; then
32412 cat >>confdefs.h <<_ACEOF
32413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32414 _ACEOF
32416 else
32417 LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
32419 cat >>confdefs.h <<\_ACEOF
32420 #define C_GETLOADAVG 1
32421 _ACEOF
32423 # Figure out what our getloadavg.c needs.
32424 ac_have_func=no
32425 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
32426 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
32427 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
32428 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
32429 echo $ECHO_N "(cached) $ECHO_C" >&6
32431 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
32432 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
32433 else
32434 # Is the header compilable?
32435 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
32436 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
32437 cat >conftest.$ac_ext <<_ACEOF
32438 #line $LINENO "configure"
32439 /* confdefs.h. */
32440 _ACEOF
32441 cat confdefs.h >>conftest.$ac_ext
32442 cat >>conftest.$ac_ext <<_ACEOF
32443 /* end confdefs.h. */
32444 $ac_includes_default
32445 #include <sys/dg_sys_info.h>
32446 _ACEOF
32447 rm -f conftest.$ac_objext
32448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32449 (eval $ac_compile) 2>&5
32450 ac_status=$?
32451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32452 (exit $ac_status); } &&
32453 { ac_try='test -s conftest.$ac_objext'
32454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32455 (eval $ac_try) 2>&5
32456 ac_status=$?
32457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458 (exit $ac_status); }; }; then
32459 ac_header_compiler=yes
32460 else
32461 echo "$as_me: failed program was:" >&5
32462 sed 's/^/| /' conftest.$ac_ext >&5
32464 ac_header_compiler=no
32466 rm -f conftest.$ac_objext conftest.$ac_ext
32467 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32468 echo "${ECHO_T}$ac_header_compiler" >&6
32470 # Is the header present?
32471 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
32472 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
32473 cat >conftest.$ac_ext <<_ACEOF
32474 #line $LINENO "configure"
32475 /* confdefs.h. */
32476 _ACEOF
32477 cat confdefs.h >>conftest.$ac_ext
32478 cat >>conftest.$ac_ext <<_ACEOF
32479 /* end confdefs.h. */
32480 #include <sys/dg_sys_info.h>
32481 _ACEOF
32482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32484 ac_status=$?
32485 grep -v '^ *+' conftest.er1 >conftest.err
32486 rm -f conftest.er1
32487 cat conftest.err >&5
32488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489 (exit $ac_status); } >/dev/null; then
32490 if test -s conftest.err; then
32491 ac_cpp_err=$ac_c_preproc_warn_flag
32492 else
32493 ac_cpp_err=
32495 else
32496 ac_cpp_err=yes
32498 if test -z "$ac_cpp_err"; then
32499 ac_header_preproc=yes
32500 else
32501 echo "$as_me: failed program was:" >&5
32502 sed 's/^/| /' conftest.$ac_ext >&5
32504 ac_header_preproc=no
32506 rm -f conftest.err conftest.$ac_ext
32507 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32508 echo "${ECHO_T}$ac_header_preproc" >&6
32510 # So? What about this header?
32511 case $ac_header_compiler:$ac_header_preproc in
32512 yes:no )
32513 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
32514 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32515 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
32516 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
32518 cat <<\_ASBOX
32519 ## ------------------------------------ ##
32520 ## Report this to bug-autoconf@gnu.org. ##
32521 ## ------------------------------------ ##
32522 _ASBOX
32524 sed "s/^/$as_me: WARNING: /" >&2
32526 no:yes )
32527 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
32528 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
32529 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
32530 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
32531 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
32532 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
32534 cat <<\_ASBOX
32535 ## ------------------------------------ ##
32536 ## Report this to bug-autoconf@gnu.org. ##
32537 ## ------------------------------------ ##
32538 _ASBOX
32540 sed "s/^/$as_me: WARNING: /" >&2
32542 esac
32543 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
32544 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
32545 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
32546 echo $ECHO_N "(cached) $ECHO_C" >&6
32547 else
32548 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
32550 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
32551 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
32554 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
32555 ac_have_func=yes
32557 cat >>confdefs.h <<\_ACEOF
32558 #define DGUX 1
32559 _ACEOF
32562 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
32563 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
32564 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
32565 echo $ECHO_N "(cached) $ECHO_C" >&6
32566 else
32567 ac_check_lib_save_LIBS=$LIBS
32568 LIBS="-ldgc $LIBS"
32569 cat >conftest.$ac_ext <<_ACEOF
32570 #line $LINENO "configure"
32571 /* confdefs.h. */
32572 _ACEOF
32573 cat confdefs.h >>conftest.$ac_ext
32574 cat >>conftest.$ac_ext <<_ACEOF
32575 /* end confdefs.h. */
32577 /* Override any gcc2 internal prototype to avoid an error. */
32578 #ifdef __cplusplus
32579 extern "C"
32580 #endif
32581 /* We use char because int might match the return type of a gcc2
32582 builtin and then its argument prototype would still apply. */
32583 char dg_sys_info ();
32585 main ()
32587 dg_sys_info ();
32589 return 0;
32591 _ACEOF
32592 rm -f conftest.$ac_objext conftest$ac_exeext
32593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32594 (eval $ac_link) 2>&5
32595 ac_status=$?
32596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32597 (exit $ac_status); } &&
32598 { ac_try='test -s conftest$ac_exeext'
32599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32600 (eval $ac_try) 2>&5
32601 ac_status=$?
32602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32603 (exit $ac_status); }; }; then
32604 ac_cv_lib_dgc_dg_sys_info=yes
32605 else
32606 echo "$as_me: failed program was:" >&5
32607 sed 's/^/| /' conftest.$ac_ext >&5
32609 ac_cv_lib_dgc_dg_sys_info=no
32611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32612 LIBS=$ac_check_lib_save_LIBS
32614 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
32615 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
32616 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
32617 cat >>confdefs.h <<_ACEOF
32618 #define HAVE_LIBDGC 1
32619 _ACEOF
32621 LIBS="-ldgc $LIBS"
32629 if test "${ac_cv_header_locale_h+set}" = set; then
32630 echo "$as_me:$LINENO: checking for locale.h" >&5
32631 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
32632 if test "${ac_cv_header_locale_h+set}" = set; then
32633 echo $ECHO_N "(cached) $ECHO_C" >&6
32635 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
32636 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
32637 else
32638 # Is the header compilable?
32639 echo "$as_me:$LINENO: checking locale.h usability" >&5
32640 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
32641 cat >conftest.$ac_ext <<_ACEOF
32642 #line $LINENO "configure"
32643 /* confdefs.h. */
32644 _ACEOF
32645 cat confdefs.h >>conftest.$ac_ext
32646 cat >>conftest.$ac_ext <<_ACEOF
32647 /* end confdefs.h. */
32648 $ac_includes_default
32649 #include <locale.h>
32650 _ACEOF
32651 rm -f conftest.$ac_objext
32652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32653 (eval $ac_compile) 2>&5
32654 ac_status=$?
32655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32656 (exit $ac_status); } &&
32657 { ac_try='test -s conftest.$ac_objext'
32658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32659 (eval $ac_try) 2>&5
32660 ac_status=$?
32661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32662 (exit $ac_status); }; }; then
32663 ac_header_compiler=yes
32664 else
32665 echo "$as_me: failed program was:" >&5
32666 sed 's/^/| /' conftest.$ac_ext >&5
32668 ac_header_compiler=no
32670 rm -f conftest.$ac_objext conftest.$ac_ext
32671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32672 echo "${ECHO_T}$ac_header_compiler" >&6
32674 # Is the header present?
32675 echo "$as_me:$LINENO: checking locale.h presence" >&5
32676 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
32677 cat >conftest.$ac_ext <<_ACEOF
32678 #line $LINENO "configure"
32679 /* confdefs.h. */
32680 _ACEOF
32681 cat confdefs.h >>conftest.$ac_ext
32682 cat >>conftest.$ac_ext <<_ACEOF
32683 /* end confdefs.h. */
32684 #include <locale.h>
32685 _ACEOF
32686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32687 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32688 ac_status=$?
32689 grep -v '^ *+' conftest.er1 >conftest.err
32690 rm -f conftest.er1
32691 cat conftest.err >&5
32692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693 (exit $ac_status); } >/dev/null; then
32694 if test -s conftest.err; then
32695 ac_cpp_err=$ac_c_preproc_warn_flag
32696 else
32697 ac_cpp_err=
32699 else
32700 ac_cpp_err=yes
32702 if test -z "$ac_cpp_err"; then
32703 ac_header_preproc=yes
32704 else
32705 echo "$as_me: failed program was:" >&5
32706 sed 's/^/| /' conftest.$ac_ext >&5
32708 ac_header_preproc=no
32710 rm -f conftest.err conftest.$ac_ext
32711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32712 echo "${ECHO_T}$ac_header_preproc" >&6
32714 # So? What about this header?
32715 case $ac_header_compiler:$ac_header_preproc in
32716 yes:no )
32717 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
32718 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32719 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
32720 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
32722 cat <<\_ASBOX
32723 ## ------------------------------------ ##
32724 ## Report this to bug-autoconf@gnu.org. ##
32725 ## ------------------------------------ ##
32726 _ASBOX
32728 sed "s/^/$as_me: WARNING: /" >&2
32730 no:yes )
32731 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
32732 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
32733 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
32734 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
32735 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
32736 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
32738 cat <<\_ASBOX
32739 ## ------------------------------------ ##
32740 ## Report this to bug-autoconf@gnu.org. ##
32741 ## ------------------------------------ ##
32742 _ASBOX
32744 sed "s/^/$as_me: WARNING: /" >&2
32746 esac
32747 echo "$as_me:$LINENO: checking for locale.h" >&5
32748 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
32749 if test "${ac_cv_header_locale_h+set}" = set; then
32750 echo $ECHO_N "(cached) $ECHO_C" >&6
32751 else
32752 ac_cv_header_locale_h=$ac_header_preproc
32754 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
32755 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
32761 for ac_func in setlocale
32763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32764 echo "$as_me:$LINENO: checking for $ac_func" >&5
32765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32766 if eval "test \"\${$as_ac_var+set}\" = set"; then
32767 echo $ECHO_N "(cached) $ECHO_C" >&6
32768 else
32769 cat >conftest.$ac_ext <<_ACEOF
32770 #line $LINENO "configure"
32771 /* confdefs.h. */
32772 _ACEOF
32773 cat confdefs.h >>conftest.$ac_ext
32774 cat >>conftest.$ac_ext <<_ACEOF
32775 /* end confdefs.h. */
32776 /* System header to define __stub macros and hopefully few prototypes,
32777 which can conflict with char $ac_func (); below.
32778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32779 <limits.h> exists even on freestanding compilers. */
32780 #ifdef __STDC__
32781 # include <limits.h>
32782 #else
32783 # include <assert.h>
32784 #endif
32785 /* Override any gcc2 internal prototype to avoid an error. */
32786 #ifdef __cplusplus
32787 extern "C"
32789 #endif
32790 /* We use char because int might match the return type of a gcc2
32791 builtin and then its argument prototype would still apply. */
32792 char $ac_func ();
32793 /* The GNU C library defines this for functions which it implements
32794 to always fail with ENOSYS. Some functions are actually named
32795 something starting with __ and the normal name is an alias. */
32796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32797 choke me
32798 #else
32799 char (*f) () = $ac_func;
32800 #endif
32801 #ifdef __cplusplus
32803 #endif
32806 main ()
32808 return f != $ac_func;
32810 return 0;
32812 _ACEOF
32813 rm -f conftest.$ac_objext conftest$ac_exeext
32814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32815 (eval $ac_link) 2>&5
32816 ac_status=$?
32817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32818 (exit $ac_status); } &&
32819 { ac_try='test -s conftest$ac_exeext'
32820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32821 (eval $ac_try) 2>&5
32822 ac_status=$?
32823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32824 (exit $ac_status); }; }; then
32825 eval "$as_ac_var=yes"
32826 else
32827 echo "$as_me: failed program was:" >&5
32828 sed 's/^/| /' conftest.$ac_ext >&5
32830 eval "$as_ac_var=no"
32832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32836 if test `eval echo '${'$as_ac_var'}'` = yes; then
32837 cat >>confdefs.h <<_ACEOF
32838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32839 _ACEOF
32842 done
32845 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
32846 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
32847 # Irix 4.0.5F has the header but not the library.
32848 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
32849 ac_have_func=yes
32851 cat >>confdefs.h <<\_ACEOF
32852 #define SVR4 1
32853 _ACEOF
32857 if test $ac_have_func = no; then
32858 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
32859 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
32860 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
32861 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
32862 echo $ECHO_N "(cached) $ECHO_C" >&6
32864 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
32865 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
32866 else
32867 # Is the header compilable?
32868 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
32869 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
32870 cat >conftest.$ac_ext <<_ACEOF
32871 #line $LINENO "configure"
32872 /* confdefs.h. */
32873 _ACEOF
32874 cat confdefs.h >>conftest.$ac_ext
32875 cat >>conftest.$ac_ext <<_ACEOF
32876 /* end confdefs.h. */
32877 $ac_includes_default
32878 #include <inq_stats/cpustats.h>
32879 _ACEOF
32880 rm -f conftest.$ac_objext
32881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32882 (eval $ac_compile) 2>&5
32883 ac_status=$?
32884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32885 (exit $ac_status); } &&
32886 { ac_try='test -s conftest.$ac_objext'
32887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32888 (eval $ac_try) 2>&5
32889 ac_status=$?
32890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32891 (exit $ac_status); }; }; then
32892 ac_header_compiler=yes
32893 else
32894 echo "$as_me: failed program was:" >&5
32895 sed 's/^/| /' conftest.$ac_ext >&5
32897 ac_header_compiler=no
32899 rm -f conftest.$ac_objext conftest.$ac_ext
32900 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32901 echo "${ECHO_T}$ac_header_compiler" >&6
32903 # Is the header present?
32904 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
32905 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
32906 cat >conftest.$ac_ext <<_ACEOF
32907 #line $LINENO "configure"
32908 /* confdefs.h. */
32909 _ACEOF
32910 cat confdefs.h >>conftest.$ac_ext
32911 cat >>conftest.$ac_ext <<_ACEOF
32912 /* end confdefs.h. */
32913 #include <inq_stats/cpustats.h>
32914 _ACEOF
32915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32917 ac_status=$?
32918 grep -v '^ *+' conftest.er1 >conftest.err
32919 rm -f conftest.er1
32920 cat conftest.err >&5
32921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32922 (exit $ac_status); } >/dev/null; then
32923 if test -s conftest.err; then
32924 ac_cpp_err=$ac_c_preproc_warn_flag
32925 else
32926 ac_cpp_err=
32928 else
32929 ac_cpp_err=yes
32931 if test -z "$ac_cpp_err"; then
32932 ac_header_preproc=yes
32933 else
32934 echo "$as_me: failed program was:" >&5
32935 sed 's/^/| /' conftest.$ac_ext >&5
32937 ac_header_preproc=no
32939 rm -f conftest.err conftest.$ac_ext
32940 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32941 echo "${ECHO_T}$ac_header_preproc" >&6
32943 # So? What about this header?
32944 case $ac_header_compiler:$ac_header_preproc in
32945 yes:no )
32946 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
32947 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32948 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
32949 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
32951 cat <<\_ASBOX
32952 ## ------------------------------------ ##
32953 ## Report this to bug-autoconf@gnu.org. ##
32954 ## ------------------------------------ ##
32955 _ASBOX
32957 sed "s/^/$as_me: WARNING: /" >&2
32959 no:yes )
32960 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
32961 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
32962 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
32963 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
32964 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
32965 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
32967 cat <<\_ASBOX
32968 ## ------------------------------------ ##
32969 ## Report this to bug-autoconf@gnu.org. ##
32970 ## ------------------------------------ ##
32971 _ASBOX
32973 sed "s/^/$as_me: WARNING: /" >&2
32975 esac
32976 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
32977 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
32978 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
32979 echo $ECHO_N "(cached) $ECHO_C" >&6
32980 else
32981 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
32983 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
32984 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
32987 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
32988 ac_have_func=yes
32990 cat >>confdefs.h <<\_ACEOF
32991 #define UMAX 1
32992 _ACEOF
32995 cat >>confdefs.h <<\_ACEOF
32996 #define UMAX4_3 1
32997 _ACEOF
33004 if test $ac_have_func = no; then
33005 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
33006 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
33007 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
33008 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
33009 echo $ECHO_N "(cached) $ECHO_C" >&6
33011 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
33012 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
33013 else
33014 # Is the header compilable?
33015 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
33016 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
33017 cat >conftest.$ac_ext <<_ACEOF
33018 #line $LINENO "configure"
33019 /* confdefs.h. */
33020 _ACEOF
33021 cat confdefs.h >>conftest.$ac_ext
33022 cat >>conftest.$ac_ext <<_ACEOF
33023 /* end confdefs.h. */
33024 $ac_includes_default
33025 #include <sys/cpustats.h>
33026 _ACEOF
33027 rm -f conftest.$ac_objext
33028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33029 (eval $ac_compile) 2>&5
33030 ac_status=$?
33031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33032 (exit $ac_status); } &&
33033 { ac_try='test -s conftest.$ac_objext'
33034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33035 (eval $ac_try) 2>&5
33036 ac_status=$?
33037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33038 (exit $ac_status); }; }; then
33039 ac_header_compiler=yes
33040 else
33041 echo "$as_me: failed program was:" >&5
33042 sed 's/^/| /' conftest.$ac_ext >&5
33044 ac_header_compiler=no
33046 rm -f conftest.$ac_objext conftest.$ac_ext
33047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33048 echo "${ECHO_T}$ac_header_compiler" >&6
33050 # Is the header present?
33051 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
33052 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
33053 cat >conftest.$ac_ext <<_ACEOF
33054 #line $LINENO "configure"
33055 /* confdefs.h. */
33056 _ACEOF
33057 cat confdefs.h >>conftest.$ac_ext
33058 cat >>conftest.$ac_ext <<_ACEOF
33059 /* end confdefs.h. */
33060 #include <sys/cpustats.h>
33061 _ACEOF
33062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33064 ac_status=$?
33065 grep -v '^ *+' conftest.er1 >conftest.err
33066 rm -f conftest.er1
33067 cat conftest.err >&5
33068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); } >/dev/null; then
33070 if test -s conftest.err; then
33071 ac_cpp_err=$ac_c_preproc_warn_flag
33072 else
33073 ac_cpp_err=
33075 else
33076 ac_cpp_err=yes
33078 if test -z "$ac_cpp_err"; then
33079 ac_header_preproc=yes
33080 else
33081 echo "$as_me: failed program was:" >&5
33082 sed 's/^/| /' conftest.$ac_ext >&5
33084 ac_header_preproc=no
33086 rm -f conftest.err conftest.$ac_ext
33087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33088 echo "${ECHO_T}$ac_header_preproc" >&6
33090 # So? What about this header?
33091 case $ac_header_compiler:$ac_header_preproc in
33092 yes:no )
33093 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
33094 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33095 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
33096 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
33098 cat <<\_ASBOX
33099 ## ------------------------------------ ##
33100 ## Report this to bug-autoconf@gnu.org. ##
33101 ## ------------------------------------ ##
33102 _ASBOX
33104 sed "s/^/$as_me: WARNING: /" >&2
33106 no:yes )
33107 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
33108 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
33109 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
33110 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
33111 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
33112 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
33114 cat <<\_ASBOX
33115 ## ------------------------------------ ##
33116 ## Report this to bug-autoconf@gnu.org. ##
33117 ## ------------------------------------ ##
33118 _ASBOX
33120 sed "s/^/$as_me: WARNING: /" >&2
33122 esac
33123 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
33124 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
33125 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
33126 echo $ECHO_N "(cached) $ECHO_C" >&6
33127 else
33128 ac_cv_header_sys_cpustats_h=$ac_header_preproc
33130 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
33131 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
33134 if test $ac_cv_header_sys_cpustats_h = yes; then
33135 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
33136 #define UMAX 1
33137 _ACEOF
33144 if test $ac_have_func = no; then
33146 for ac_header in mach/mach.h
33148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33150 echo "$as_me:$LINENO: checking for $ac_header" >&5
33151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33152 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33153 echo $ECHO_N "(cached) $ECHO_C" >&6
33155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33157 else
33158 # Is the header compilable?
33159 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33161 cat >conftest.$ac_ext <<_ACEOF
33162 #line $LINENO "configure"
33163 /* confdefs.h. */
33164 _ACEOF
33165 cat confdefs.h >>conftest.$ac_ext
33166 cat >>conftest.$ac_ext <<_ACEOF
33167 /* end confdefs.h. */
33168 $ac_includes_default
33169 #include <$ac_header>
33170 _ACEOF
33171 rm -f conftest.$ac_objext
33172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33173 (eval $ac_compile) 2>&5
33174 ac_status=$?
33175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176 (exit $ac_status); } &&
33177 { ac_try='test -s conftest.$ac_objext'
33178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33179 (eval $ac_try) 2>&5
33180 ac_status=$?
33181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33182 (exit $ac_status); }; }; then
33183 ac_header_compiler=yes
33184 else
33185 echo "$as_me: failed program was:" >&5
33186 sed 's/^/| /' conftest.$ac_ext >&5
33188 ac_header_compiler=no
33190 rm -f conftest.$ac_objext conftest.$ac_ext
33191 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33192 echo "${ECHO_T}$ac_header_compiler" >&6
33194 # Is the header present?
33195 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33197 cat >conftest.$ac_ext <<_ACEOF
33198 #line $LINENO "configure"
33199 /* confdefs.h. */
33200 _ACEOF
33201 cat confdefs.h >>conftest.$ac_ext
33202 cat >>conftest.$ac_ext <<_ACEOF
33203 /* end confdefs.h. */
33204 #include <$ac_header>
33205 _ACEOF
33206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33208 ac_status=$?
33209 grep -v '^ *+' conftest.er1 >conftest.err
33210 rm -f conftest.er1
33211 cat conftest.err >&5
33212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33213 (exit $ac_status); } >/dev/null; then
33214 if test -s conftest.err; then
33215 ac_cpp_err=$ac_c_preproc_warn_flag
33216 else
33217 ac_cpp_err=
33219 else
33220 ac_cpp_err=yes
33222 if test -z "$ac_cpp_err"; then
33223 ac_header_preproc=yes
33224 else
33225 echo "$as_me: failed program was:" >&5
33226 sed 's/^/| /' conftest.$ac_ext >&5
33228 ac_header_preproc=no
33230 rm -f conftest.err conftest.$ac_ext
33231 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33232 echo "${ECHO_T}$ac_header_preproc" >&6
33234 # So? What about this header?
33235 case $ac_header_compiler:$ac_header_preproc in
33236 yes:no )
33237 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33238 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33242 cat <<\_ASBOX
33243 ## ------------------------------------ ##
33244 ## Report this to bug-autoconf@gnu.org. ##
33245 ## ------------------------------------ ##
33246 _ASBOX
33248 sed "s/^/$as_me: WARNING: /" >&2
33250 no:yes )
33251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33254 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33258 cat <<\_ASBOX
33259 ## ------------------------------------ ##
33260 ## Report this to bug-autoconf@gnu.org. ##
33261 ## ------------------------------------ ##
33262 _ASBOX
33264 sed "s/^/$as_me: WARNING: /" >&2
33266 esac
33267 echo "$as_me:$LINENO: checking for $ac_header" >&5
33268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33270 echo $ECHO_N "(cached) $ECHO_C" >&6
33271 else
33272 eval "$as_ac_Header=$ac_header_preproc"
33274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33279 cat >>confdefs.h <<_ACEOF
33280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33281 _ACEOF
33285 done
33290 for ac_header in nlist.h
33292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33294 echo "$as_me:$LINENO: checking for $ac_header" >&5
33295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33297 echo $ECHO_N "(cached) $ECHO_C" >&6
33299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33301 else
33302 # Is the header compilable?
33303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33305 cat >conftest.$ac_ext <<_ACEOF
33306 #line $LINENO "configure"
33307 /* confdefs.h. */
33308 _ACEOF
33309 cat confdefs.h >>conftest.$ac_ext
33310 cat >>conftest.$ac_ext <<_ACEOF
33311 /* end confdefs.h. */
33312 $ac_includes_default
33313 #include <$ac_header>
33314 _ACEOF
33315 rm -f conftest.$ac_objext
33316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33317 (eval $ac_compile) 2>&5
33318 ac_status=$?
33319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33320 (exit $ac_status); } &&
33321 { ac_try='test -s conftest.$ac_objext'
33322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33323 (eval $ac_try) 2>&5
33324 ac_status=$?
33325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326 (exit $ac_status); }; }; then
33327 ac_header_compiler=yes
33328 else
33329 echo "$as_me: failed program was:" >&5
33330 sed 's/^/| /' conftest.$ac_ext >&5
33332 ac_header_compiler=no
33334 rm -f conftest.$ac_objext conftest.$ac_ext
33335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33336 echo "${ECHO_T}$ac_header_compiler" >&6
33338 # Is the header present?
33339 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33341 cat >conftest.$ac_ext <<_ACEOF
33342 #line $LINENO "configure"
33343 /* confdefs.h. */
33344 _ACEOF
33345 cat confdefs.h >>conftest.$ac_ext
33346 cat >>conftest.$ac_ext <<_ACEOF
33347 /* end confdefs.h. */
33348 #include <$ac_header>
33349 _ACEOF
33350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33352 ac_status=$?
33353 grep -v '^ *+' conftest.er1 >conftest.err
33354 rm -f conftest.er1
33355 cat conftest.err >&5
33356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33357 (exit $ac_status); } >/dev/null; then
33358 if test -s conftest.err; then
33359 ac_cpp_err=$ac_c_preproc_warn_flag
33360 else
33361 ac_cpp_err=
33363 else
33364 ac_cpp_err=yes
33366 if test -z "$ac_cpp_err"; then
33367 ac_header_preproc=yes
33368 else
33369 echo "$as_me: failed program was:" >&5
33370 sed 's/^/| /' conftest.$ac_ext >&5
33372 ac_header_preproc=no
33374 rm -f conftest.err conftest.$ac_ext
33375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33376 echo "${ECHO_T}$ac_header_preproc" >&6
33378 # So? What about this header?
33379 case $ac_header_compiler:$ac_header_preproc in
33380 yes:no )
33381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33386 cat <<\_ASBOX
33387 ## ------------------------------------ ##
33388 ## Report this to bug-autoconf@gnu.org. ##
33389 ## ------------------------------------ ##
33390 _ASBOX
33392 sed "s/^/$as_me: WARNING: /" >&2
33394 no:yes )
33395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33402 cat <<\_ASBOX
33403 ## ------------------------------------ ##
33404 ## Report this to bug-autoconf@gnu.org. ##
33405 ## ------------------------------------ ##
33406 _ASBOX
33408 sed "s/^/$as_me: WARNING: /" >&2
33410 esac
33411 echo "$as_me:$LINENO: checking for $ac_header" >&5
33412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33414 echo $ECHO_N "(cached) $ECHO_C" >&6
33415 else
33416 eval "$as_ac_Header=$ac_header_preproc"
33418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33423 cat >>confdefs.h <<_ACEOF
33424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33425 _ACEOF
33426 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
33427 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
33428 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
33429 echo $ECHO_N "(cached) $ECHO_C" >&6
33430 else
33431 cat >conftest.$ac_ext <<_ACEOF
33432 #line $LINENO "configure"
33433 /* confdefs.h. */
33434 _ACEOF
33435 cat confdefs.h >>conftest.$ac_ext
33436 cat >>conftest.$ac_ext <<_ACEOF
33437 /* end confdefs.h. */
33438 #include <nlist.h>
33441 main ()
33443 static struct nlist ac_aggr;
33444 if (ac_aggr.n_un.n_name)
33445 return 0;
33447 return 0;
33449 _ACEOF
33450 rm -f conftest.$ac_objext
33451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33452 (eval $ac_compile) 2>&5
33453 ac_status=$?
33454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33455 (exit $ac_status); } &&
33456 { ac_try='test -s conftest.$ac_objext'
33457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33458 (eval $ac_try) 2>&5
33459 ac_status=$?
33460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33461 (exit $ac_status); }; }; then
33462 ac_cv_member_struct_nlist_n_un_n_name=yes
33463 else
33464 echo "$as_me: failed program was:" >&5
33465 sed 's/^/| /' conftest.$ac_ext >&5
33467 cat >conftest.$ac_ext <<_ACEOF
33468 #line $LINENO "configure"
33469 /* confdefs.h. */
33470 _ACEOF
33471 cat confdefs.h >>conftest.$ac_ext
33472 cat >>conftest.$ac_ext <<_ACEOF
33473 /* end confdefs.h. */
33474 #include <nlist.h>
33477 main ()
33479 static struct nlist ac_aggr;
33480 if (sizeof ac_aggr.n_un.n_name)
33481 return 0;
33483 return 0;
33485 _ACEOF
33486 rm -f conftest.$ac_objext
33487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33488 (eval $ac_compile) 2>&5
33489 ac_status=$?
33490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33491 (exit $ac_status); } &&
33492 { ac_try='test -s conftest.$ac_objext'
33493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33494 (eval $ac_try) 2>&5
33495 ac_status=$?
33496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497 (exit $ac_status); }; }; then
33498 ac_cv_member_struct_nlist_n_un_n_name=yes
33499 else
33500 echo "$as_me: failed program was:" >&5
33501 sed 's/^/| /' conftest.$ac_ext >&5
33503 ac_cv_member_struct_nlist_n_un_n_name=no
33505 rm -f conftest.$ac_objext conftest.$ac_ext
33507 rm -f conftest.$ac_objext conftest.$ac_ext
33509 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
33510 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
33511 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
33513 cat >>confdefs.h <<_ACEOF
33514 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
33515 _ACEOF
33518 cat >>confdefs.h <<\_ACEOF
33519 #define NLIST_NAME_UNION 1
33520 _ACEOF
33527 done
33530 done
33533 # Some definitions of getloadavg require that the program be installed setgid.
33534 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
33535 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
33536 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
33537 echo $ECHO_N "(cached) $ECHO_C" >&6
33538 else
33539 cat >conftest.$ac_ext <<_ACEOF
33540 #line $LINENO "configure"
33541 /* confdefs.h. */
33542 _ACEOF
33543 cat confdefs.h >>conftest.$ac_ext
33544 cat >>conftest.$ac_ext <<_ACEOF
33545 /* end confdefs.h. */
33546 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
33547 #ifdef LDAV_PRIVILEGED
33548 Yowza Am I SETGID yet
33549 #endif
33550 _ACEOF
33551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33552 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
33553 ac_cv_func_getloadavg_setgid=yes
33554 else
33555 ac_cv_func_getloadavg_setgid=no
33557 rm -f conftest*
33560 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
33561 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
33562 if test $ac_cv_func_getloadavg_setgid = yes; then
33563 NEED_SETGID=true
33565 cat >>confdefs.h <<\_ACEOF
33566 #define GETLOADAVG_PRIVILEGED 1
33567 _ACEOF
33569 else
33570 NEED_SETGID=false
33573 if test $ac_cv_func_getloadavg_setgid = yes; then
33574 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
33575 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
33576 if test "${ac_cv_group_kmem+set}" = set; then
33577 echo $ECHO_N "(cached) $ECHO_C" >&6
33578 else
33579 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
33580 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
33581 # If we got an error (system does not support symlinks), try without -L.
33582 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
33583 ac_cv_group_kmem=`echo $ac_ls_output \
33584 | sed -ne 's/[ ][ ]*/ /g;
33585 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
33586 / /s/.* //;p;'`
33589 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
33590 echo "${ECHO_T}$ac_cv_group_kmem" >&6
33591 KMEM_GROUP=$ac_cv_group_kmem
33593 if test "x$ac_save_LIBS" = x; then
33594 GETLOADAVG_LIBS=$LIBS
33595 else
33596 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
33598 LIBS=$ac_save_LIBS
33608 for ac_func in strcasecmp strncasecmp
33610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33611 echo "$as_me:$LINENO: checking for $ac_func" >&5
33612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33613 if eval "test \"\${$as_ac_var+set}\" = set"; then
33614 echo $ECHO_N "(cached) $ECHO_C" >&6
33615 else
33616 cat >conftest.$ac_ext <<_ACEOF
33617 #line $LINENO "configure"
33618 /* confdefs.h. */
33619 _ACEOF
33620 cat confdefs.h >>conftest.$ac_ext
33621 cat >>conftest.$ac_ext <<_ACEOF
33622 /* end confdefs.h. */
33623 /* System header to define __stub macros and hopefully few prototypes,
33624 which can conflict with char $ac_func (); below.
33625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33626 <limits.h> exists even on freestanding compilers. */
33627 #ifdef __STDC__
33628 # include <limits.h>
33629 #else
33630 # include <assert.h>
33631 #endif
33632 /* Override any gcc2 internal prototype to avoid an error. */
33633 #ifdef __cplusplus
33634 extern "C"
33636 #endif
33637 /* We use char because int might match the return type of a gcc2
33638 builtin and then its argument prototype would still apply. */
33639 char $ac_func ();
33640 /* The GNU C library defines this for functions which it implements
33641 to always fail with ENOSYS. Some functions are actually named
33642 something starting with __ and the normal name is an alias. */
33643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33644 choke me
33645 #else
33646 char (*f) () = $ac_func;
33647 #endif
33648 #ifdef __cplusplus
33650 #endif
33653 main ()
33655 return f != $ac_func;
33657 return 0;
33659 _ACEOF
33660 rm -f conftest.$ac_objext conftest$ac_exeext
33661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33662 (eval $ac_link) 2>&5
33663 ac_status=$?
33664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33665 (exit $ac_status); } &&
33666 { ac_try='test -s conftest$ac_exeext'
33667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33668 (eval $ac_try) 2>&5
33669 ac_status=$?
33670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33671 (exit $ac_status); }; }; then
33672 eval "$as_ac_var=yes"
33673 else
33674 echo "$as_me: failed program was:" >&5
33675 sed 's/^/| /' conftest.$ac_ext >&5
33677 eval "$as_ac_var=no"
33679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33683 if test `eval echo '${'$as_ac_var'}'` = yes; then
33684 cat >>confdefs.h <<_ACEOF
33685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33686 _ACEOF
33688 else
33689 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
33691 done
33695 for ac_func in dup2
33697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33698 echo "$as_me:$LINENO: checking for $ac_func" >&5
33699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33700 if eval "test \"\${$as_ac_var+set}\" = set"; then
33701 echo $ECHO_N "(cached) $ECHO_C" >&6
33702 else
33703 cat >conftest.$ac_ext <<_ACEOF
33704 #line $LINENO "configure"
33705 /* confdefs.h. */
33706 _ACEOF
33707 cat confdefs.h >>conftest.$ac_ext
33708 cat >>conftest.$ac_ext <<_ACEOF
33709 /* end confdefs.h. */
33710 /* System header to define __stub macros and hopefully few prototypes,
33711 which can conflict with char $ac_func (); below.
33712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33713 <limits.h> exists even on freestanding compilers. */
33714 #ifdef __STDC__
33715 # include <limits.h>
33716 #else
33717 # include <assert.h>
33718 #endif
33719 /* Override any gcc2 internal prototype to avoid an error. */
33720 #ifdef __cplusplus
33721 extern "C"
33723 #endif
33724 /* We use char because int might match the return type of a gcc2
33725 builtin and then its argument prototype would still apply. */
33726 char $ac_func ();
33727 /* The GNU C library defines this for functions which it implements
33728 to always fail with ENOSYS. Some functions are actually named
33729 something starting with __ and the normal name is an alias. */
33730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33731 choke me
33732 #else
33733 char (*f) () = $ac_func;
33734 #endif
33735 #ifdef __cplusplus
33737 #endif
33740 main ()
33742 return f != $ac_func;
33744 return 0;
33746 _ACEOF
33747 rm -f conftest.$ac_objext conftest$ac_exeext
33748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33749 (eval $ac_link) 2>&5
33750 ac_status=$?
33751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33752 (exit $ac_status); } &&
33753 { ac_try='test -s conftest$ac_exeext'
33754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33755 (eval $ac_try) 2>&5
33756 ac_status=$?
33757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758 (exit $ac_status); }; }; then
33759 eval "$as_ac_var=yes"
33760 else
33761 echo "$as_me: failed program was:" >&5
33762 sed 's/^/| /' conftest.$ac_ext >&5
33764 eval "$as_ac_var=no"
33766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33770 if test `eval echo '${'$as_ac_var'}'` = yes; then
33771 cat >>confdefs.h <<_ACEOF
33772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33773 _ACEOF
33775 else
33776 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
33778 done
33783 for ac_func in gethostname getusershell
33785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33786 echo "$as_me:$LINENO: checking for $ac_func" >&5
33787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33788 if eval "test \"\${$as_ac_var+set}\" = set"; then
33789 echo $ECHO_N "(cached) $ECHO_C" >&6
33790 else
33791 cat >conftest.$ac_ext <<_ACEOF
33792 #line $LINENO "configure"
33793 /* confdefs.h. */
33794 _ACEOF
33795 cat confdefs.h >>conftest.$ac_ext
33796 cat >>conftest.$ac_ext <<_ACEOF
33797 /* end confdefs.h. */
33798 /* System header to define __stub macros and hopefully few prototypes,
33799 which can conflict with char $ac_func (); below.
33800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33801 <limits.h> exists even on freestanding compilers. */
33802 #ifdef __STDC__
33803 # include <limits.h>
33804 #else
33805 # include <assert.h>
33806 #endif
33807 /* Override any gcc2 internal prototype to avoid an error. */
33808 #ifdef __cplusplus
33809 extern "C"
33811 #endif
33812 /* We use char because int might match the return type of a gcc2
33813 builtin and then its argument prototype would still apply. */
33814 char $ac_func ();
33815 /* The GNU C library defines this for functions which it implements
33816 to always fail with ENOSYS. Some functions are actually named
33817 something starting with __ and the normal name is an alias. */
33818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33819 choke me
33820 #else
33821 char (*f) () = $ac_func;
33822 #endif
33823 #ifdef __cplusplus
33825 #endif
33828 main ()
33830 return f != $ac_func;
33832 return 0;
33834 _ACEOF
33835 rm -f conftest.$ac_objext conftest$ac_exeext
33836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33837 (eval $ac_link) 2>&5
33838 ac_status=$?
33839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33840 (exit $ac_status); } &&
33841 { ac_try='test -s conftest$ac_exeext'
33842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33843 (eval $ac_try) 2>&5
33844 ac_status=$?
33845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33846 (exit $ac_status); }; }; then
33847 eval "$as_ac_var=yes"
33848 else
33849 echo "$as_me: failed program was:" >&5
33850 sed 's/^/| /' conftest.$ac_ext >&5
33852 eval "$as_ac_var=no"
33854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33857 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33858 if test `eval echo '${'$as_ac_var'}'` = yes; then
33859 cat >>confdefs.h <<_ACEOF
33860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33861 _ACEOF
33863 else
33864 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
33866 done
33870 for ac_func in sig2str
33872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33873 echo "$as_me:$LINENO: checking for $ac_func" >&5
33874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33875 if eval "test \"\${$as_ac_var+set}\" = set"; then
33876 echo $ECHO_N "(cached) $ECHO_C" >&6
33877 else
33878 cat >conftest.$ac_ext <<_ACEOF
33879 #line $LINENO "configure"
33880 /* confdefs.h. */
33881 _ACEOF
33882 cat confdefs.h >>conftest.$ac_ext
33883 cat >>conftest.$ac_ext <<_ACEOF
33884 /* end confdefs.h. */
33885 /* System header to define __stub macros and hopefully few prototypes,
33886 which can conflict with char $ac_func (); below.
33887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33888 <limits.h> exists even on freestanding compilers. */
33889 #ifdef __STDC__
33890 # include <limits.h>
33891 #else
33892 # include <assert.h>
33893 #endif
33894 /* Override any gcc2 internal prototype to avoid an error. */
33895 #ifdef __cplusplus
33896 extern "C"
33898 #endif
33899 /* We use char because int might match the return type of a gcc2
33900 builtin and then its argument prototype would still apply. */
33901 char $ac_func ();
33902 /* The GNU C library defines this for functions which it implements
33903 to always fail with ENOSYS. Some functions are actually named
33904 something starting with __ and the normal name is an alias. */
33905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33906 choke me
33907 #else
33908 char (*f) () = $ac_func;
33909 #endif
33910 #ifdef __cplusplus
33912 #endif
33915 main ()
33917 return f != $ac_func;
33919 return 0;
33921 _ACEOF
33922 rm -f conftest.$ac_objext conftest$ac_exeext
33923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33924 (eval $ac_link) 2>&5
33925 ac_status=$?
33926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927 (exit $ac_status); } &&
33928 { ac_try='test -s conftest$ac_exeext'
33929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33930 (eval $ac_try) 2>&5
33931 ac_status=$?
33932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33933 (exit $ac_status); }; }; then
33934 eval "$as_ac_var=yes"
33935 else
33936 echo "$as_me: failed program was:" >&5
33937 sed 's/^/| /' conftest.$ac_ext >&5
33939 eval "$as_ac_var=no"
33941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33945 if test `eval echo '${'$as_ac_var'}'` = yes; then
33946 cat >>confdefs.h <<_ACEOF
33947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33948 _ACEOF
33950 else
33951 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
33953 done
33961 for ac_func in strcspn stpcpy strstr strtol strtoul
33963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33964 echo "$as_me:$LINENO: checking for $ac_func" >&5
33965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33966 if eval "test \"\${$as_ac_var+set}\" = set"; then
33967 echo $ECHO_N "(cached) $ECHO_C" >&6
33968 else
33969 cat >conftest.$ac_ext <<_ACEOF
33970 #line $LINENO "configure"
33971 /* confdefs.h. */
33972 _ACEOF
33973 cat confdefs.h >>conftest.$ac_ext
33974 cat >>conftest.$ac_ext <<_ACEOF
33975 /* end confdefs.h. */
33976 /* System header to define __stub macros and hopefully few prototypes,
33977 which can conflict with char $ac_func (); below.
33978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33979 <limits.h> exists even on freestanding compilers. */
33980 #ifdef __STDC__
33981 # include <limits.h>
33982 #else
33983 # include <assert.h>
33984 #endif
33985 /* Override any gcc2 internal prototype to avoid an error. */
33986 #ifdef __cplusplus
33987 extern "C"
33989 #endif
33990 /* We use char because int might match the return type of a gcc2
33991 builtin and then its argument prototype would still apply. */
33992 char $ac_func ();
33993 /* The GNU C library defines this for functions which it implements
33994 to always fail with ENOSYS. Some functions are actually named
33995 something starting with __ and the normal name is an alias. */
33996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33997 choke me
33998 #else
33999 char (*f) () = $ac_func;
34000 #endif
34001 #ifdef __cplusplus
34003 #endif
34006 main ()
34008 return f != $ac_func;
34010 return 0;
34012 _ACEOF
34013 rm -f conftest.$ac_objext conftest$ac_exeext
34014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34015 (eval $ac_link) 2>&5
34016 ac_status=$?
34017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34018 (exit $ac_status); } &&
34019 { ac_try='test -s conftest$ac_exeext'
34020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34021 (eval $ac_try) 2>&5
34022 ac_status=$?
34023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34024 (exit $ac_status); }; }; then
34025 eval "$as_ac_var=yes"
34026 else
34027 echo "$as_me: failed program was:" >&5
34028 sed 's/^/| /' conftest.$ac_ext >&5
34030 eval "$as_ac_var=no"
34032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34036 if test `eval echo '${'$as_ac_var'}'` = yes; then
34037 cat >>confdefs.h <<_ACEOF
34038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34039 _ACEOF
34041 else
34042 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
34044 done
34048 for ac_func in strpbrk
34050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34051 echo "$as_me:$LINENO: checking for $ac_func" >&5
34052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34053 if eval "test \"\${$as_ac_var+set}\" = set"; then
34054 echo $ECHO_N "(cached) $ECHO_C" >&6
34055 else
34056 cat >conftest.$ac_ext <<_ACEOF
34057 #line $LINENO "configure"
34058 /* confdefs.h. */
34059 _ACEOF
34060 cat confdefs.h >>conftest.$ac_ext
34061 cat >>conftest.$ac_ext <<_ACEOF
34062 /* end confdefs.h. */
34063 /* System header to define __stub macros and hopefully few prototypes,
34064 which can conflict with char $ac_func (); below.
34065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34066 <limits.h> exists even on freestanding compilers. */
34067 #ifdef __STDC__
34068 # include <limits.h>
34069 #else
34070 # include <assert.h>
34071 #endif
34072 /* Override any gcc2 internal prototype to avoid an error. */
34073 #ifdef __cplusplus
34074 extern "C"
34076 #endif
34077 /* We use char because int might match the return type of a gcc2
34078 builtin and then its argument prototype would still apply. */
34079 char $ac_func ();
34080 /* The GNU C library defines this for functions which it implements
34081 to always fail with ENOSYS. Some functions are actually named
34082 something starting with __ and the normal name is an alias. */
34083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34084 choke me
34085 #else
34086 char (*f) () = $ac_func;
34087 #endif
34088 #ifdef __cplusplus
34090 #endif
34093 main ()
34095 return f != $ac_func;
34097 return 0;
34099 _ACEOF
34100 rm -f conftest.$ac_objext conftest$ac_exeext
34101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34102 (eval $ac_link) 2>&5
34103 ac_status=$?
34104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34105 (exit $ac_status); } &&
34106 { ac_try='test -s conftest$ac_exeext'
34107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34108 (eval $ac_try) 2>&5
34109 ac_status=$?
34110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34111 (exit $ac_status); }; }; then
34112 eval "$as_ac_var=yes"
34113 else
34114 echo "$as_me: failed program was:" >&5
34115 sed 's/^/| /' conftest.$ac_ext >&5
34117 eval "$as_ac_var=no"
34119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34123 if test `eval echo '${'$as_ac_var'}'` = yes; then
34124 cat >>confdefs.h <<_ACEOF
34125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34126 _ACEOF
34128 else
34129 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
34131 done
34140 for ac_func in euidaccess memcmp rmdir rpmatch strndup strverscmp
34142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34143 echo "$as_me:$LINENO: checking for $ac_func" >&5
34144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34145 if eval "test \"\${$as_ac_var+set}\" = set"; then
34146 echo $ECHO_N "(cached) $ECHO_C" >&6
34147 else
34148 cat >conftest.$ac_ext <<_ACEOF
34149 #line $LINENO "configure"
34150 /* confdefs.h. */
34151 _ACEOF
34152 cat confdefs.h >>conftest.$ac_ext
34153 cat >>conftest.$ac_ext <<_ACEOF
34154 /* end confdefs.h. */
34155 /* System header to define __stub macros and hopefully few prototypes,
34156 which can conflict with char $ac_func (); below.
34157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34158 <limits.h> exists even on freestanding compilers. */
34159 #ifdef __STDC__
34160 # include <limits.h>
34161 #else
34162 # include <assert.h>
34163 #endif
34164 /* Override any gcc2 internal prototype to avoid an error. */
34165 #ifdef __cplusplus
34166 extern "C"
34168 #endif
34169 /* We use char because int might match the return type of a gcc2
34170 builtin and then its argument prototype would still apply. */
34171 char $ac_func ();
34172 /* The GNU C library defines this for functions which it implements
34173 to always fail with ENOSYS. Some functions are actually named
34174 something starting with __ and the normal name is an alias. */
34175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34176 choke me
34177 #else
34178 char (*f) () = $ac_func;
34179 #endif
34180 #ifdef __cplusplus
34182 #endif
34185 main ()
34187 return f != $ac_func;
34189 return 0;
34191 _ACEOF
34192 rm -f conftest.$ac_objext conftest$ac_exeext
34193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34194 (eval $ac_link) 2>&5
34195 ac_status=$?
34196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34197 (exit $ac_status); } &&
34198 { ac_try='test -s conftest$ac_exeext'
34199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34200 (eval $ac_try) 2>&5
34201 ac_status=$?
34202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34203 (exit $ac_status); }; }; then
34204 eval "$as_ac_var=yes"
34205 else
34206 echo "$as_me: failed program was:" >&5
34207 sed 's/^/| /' conftest.$ac_ext >&5
34209 eval "$as_ac_var=no"
34211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34215 if test `eval echo '${'$as_ac_var'}'` = yes; then
34216 cat >>confdefs.h <<_ACEOF
34217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34218 _ACEOF
34220 else
34221 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
34223 done
34227 for ac_func in atexit
34229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34230 echo "$as_me:$LINENO: checking for $ac_func" >&5
34231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34232 if eval "test \"\${$as_ac_var+set}\" = set"; then
34233 echo $ECHO_N "(cached) $ECHO_C" >&6
34234 else
34235 cat >conftest.$ac_ext <<_ACEOF
34236 #line $LINENO "configure"
34237 /* confdefs.h. */
34238 _ACEOF
34239 cat confdefs.h >>conftest.$ac_ext
34240 cat >>conftest.$ac_ext <<_ACEOF
34241 /* end confdefs.h. */
34242 /* System header to define __stub macros and hopefully few prototypes,
34243 which can conflict with char $ac_func (); below.
34244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34245 <limits.h> exists even on freestanding compilers. */
34246 #ifdef __STDC__
34247 # include <limits.h>
34248 #else
34249 # include <assert.h>
34250 #endif
34251 /* Override any gcc2 internal prototype to avoid an error. */
34252 #ifdef __cplusplus
34253 extern "C"
34255 #endif
34256 /* We use char because int might match the return type of a gcc2
34257 builtin and then its argument prototype would still apply. */
34258 char $ac_func ();
34259 /* The GNU C library defines this for functions which it implements
34260 to always fail with ENOSYS. Some functions are actually named
34261 something starting with __ and the normal name is an alias. */
34262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34263 choke me
34264 #else
34265 char (*f) () = $ac_func;
34266 #endif
34267 #ifdef __cplusplus
34269 #endif
34272 main ()
34274 return f != $ac_func;
34276 return 0;
34278 _ACEOF
34279 rm -f conftest.$ac_objext conftest$ac_exeext
34280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34281 (eval $ac_link) 2>&5
34282 ac_status=$?
34283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34284 (exit $ac_status); } &&
34285 { ac_try='test -s conftest$ac_exeext'
34286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34287 (eval $ac_try) 2>&5
34288 ac_status=$?
34289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34290 (exit $ac_status); }; }; then
34291 eval "$as_ac_var=yes"
34292 else
34293 echo "$as_me: failed program was:" >&5
34294 sed 's/^/| /' conftest.$ac_ext >&5
34296 eval "$as_ac_var=no"
34298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34302 if test `eval echo '${'$as_ac_var'}'` = yes; then
34303 cat >>confdefs.h <<_ACEOF
34304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34305 _ACEOF
34307 else
34308 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
34310 done
34314 for ac_func in getpass
34316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34317 echo "$as_me:$LINENO: checking for $ac_func" >&5
34318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34319 if eval "test \"\${$as_ac_var+set}\" = set"; then
34320 echo $ECHO_N "(cached) $ECHO_C" >&6
34321 else
34322 cat >conftest.$ac_ext <<_ACEOF
34323 #line $LINENO "configure"
34324 /* confdefs.h. */
34325 _ACEOF
34326 cat confdefs.h >>conftest.$ac_ext
34327 cat >>conftest.$ac_ext <<_ACEOF
34328 /* end confdefs.h. */
34329 /* System header to define __stub macros and hopefully few prototypes,
34330 which can conflict with char $ac_func (); below.
34331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34332 <limits.h> exists even on freestanding compilers. */
34333 #ifdef __STDC__
34334 # include <limits.h>
34335 #else
34336 # include <assert.h>
34337 #endif
34338 /* Override any gcc2 internal prototype to avoid an error. */
34339 #ifdef __cplusplus
34340 extern "C"
34342 #endif
34343 /* We use char because int might match the return type of a gcc2
34344 builtin and then its argument prototype would still apply. */
34345 char $ac_func ();
34346 /* The GNU C library defines this for functions which it implements
34347 to always fail with ENOSYS. Some functions are actually named
34348 something starting with __ and the normal name is an alias. */
34349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34350 choke me
34351 #else
34352 char (*f) () = $ac_func;
34353 #endif
34354 #ifdef __cplusplus
34356 #endif
34359 main ()
34361 return f != $ac_func;
34363 return 0;
34365 _ACEOF
34366 rm -f conftest.$ac_objext conftest$ac_exeext
34367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34368 (eval $ac_link) 2>&5
34369 ac_status=$?
34370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34371 (exit $ac_status); } &&
34372 { ac_try='test -s conftest$ac_exeext'
34373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34374 (eval $ac_try) 2>&5
34375 ac_status=$?
34376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34377 (exit $ac_status); }; }; then
34378 eval "$as_ac_var=yes"
34379 else
34380 echo "$as_me: failed program was:" >&5
34381 sed 's/^/| /' conftest.$ac_ext >&5
34383 eval "$as_ac_var=no"
34385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34389 if test `eval echo '${'$as_ac_var'}'` = yes; then
34390 cat >>confdefs.h <<_ACEOF
34391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34392 _ACEOF
34394 else
34395 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
34397 done
34401 # raise is used by at least sort and ls.
34403 for ac_func in raise
34405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34406 echo "$as_me:$LINENO: checking for $ac_func" >&5
34407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34408 if eval "test \"\${$as_ac_var+set}\" = set"; then
34409 echo $ECHO_N "(cached) $ECHO_C" >&6
34410 else
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 /* System header to define __stub macros and hopefully few prototypes,
34419 which can conflict with char $ac_func (); below.
34420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34421 <limits.h> exists even on freestanding compilers. */
34422 #ifdef __STDC__
34423 # include <limits.h>
34424 #else
34425 # include <assert.h>
34426 #endif
34427 /* Override any gcc2 internal prototype to avoid an error. */
34428 #ifdef __cplusplus
34429 extern "C"
34431 #endif
34432 /* We use char because int might match the return type of a gcc2
34433 builtin and then its argument prototype would still apply. */
34434 char $ac_func ();
34435 /* The GNU C library defines this for functions which it implements
34436 to always fail with ENOSYS. Some functions are actually named
34437 something starting with __ and the normal name is an alias. */
34438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34439 choke me
34440 #else
34441 char (*f) () = $ac_func;
34442 #endif
34443 #ifdef __cplusplus
34445 #endif
34448 main ()
34450 return f != $ac_func;
34452 return 0;
34454 _ACEOF
34455 rm -f conftest.$ac_objext conftest$ac_exeext
34456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34457 (eval $ac_link) 2>&5
34458 ac_status=$?
34459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34460 (exit $ac_status); } &&
34461 { ac_try='test -s conftest$ac_exeext'
34462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34463 (eval $ac_try) 2>&5
34464 ac_status=$?
34465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34466 (exit $ac_status); }; }; then
34467 eval "$as_ac_var=yes"
34468 else
34469 echo "$as_me: failed program was:" >&5
34470 sed 's/^/| /' conftest.$ac_ext >&5
34472 eval "$as_ac_var=no"
34474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34478 if test `eval echo '${'$as_ac_var'}'` = yes; then
34479 cat >>confdefs.h <<_ACEOF
34480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34481 _ACEOF
34483 else
34484 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
34486 done
34491 for ac_func in strdup
34493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34494 echo "$as_me:$LINENO: checking for $ac_func" >&5
34495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34496 if eval "test \"\${$as_ac_var+set}\" = set"; then
34497 echo $ECHO_N "(cached) $ECHO_C" >&6
34498 else
34499 cat >conftest.$ac_ext <<_ACEOF
34500 #line $LINENO "configure"
34501 /* confdefs.h. */
34502 _ACEOF
34503 cat confdefs.h >>conftest.$ac_ext
34504 cat >>conftest.$ac_ext <<_ACEOF
34505 /* end confdefs.h. */
34506 /* System header to define __stub macros and hopefully few prototypes,
34507 which can conflict with char $ac_func (); below.
34508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34509 <limits.h> exists even on freestanding compilers. */
34510 #ifdef __STDC__
34511 # include <limits.h>
34512 #else
34513 # include <assert.h>
34514 #endif
34515 /* Override any gcc2 internal prototype to avoid an error. */
34516 #ifdef __cplusplus
34517 extern "C"
34519 #endif
34520 /* We use char because int might match the return type of a gcc2
34521 builtin and then its argument prototype would still apply. */
34522 char $ac_func ();
34523 /* The GNU C library defines this for functions which it implements
34524 to always fail with ENOSYS. Some functions are actually named
34525 something starting with __ and the normal name is an alias. */
34526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34527 choke me
34528 #else
34529 char (*f) () = $ac_func;
34530 #endif
34531 #ifdef __cplusplus
34533 #endif
34536 main ()
34538 return f != $ac_func;
34540 return 0;
34542 _ACEOF
34543 rm -f conftest.$ac_objext conftest$ac_exeext
34544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34545 (eval $ac_link) 2>&5
34546 ac_status=$?
34547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34548 (exit $ac_status); } &&
34549 { ac_try='test -s conftest$ac_exeext'
34550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34551 (eval $ac_try) 2>&5
34552 ac_status=$?
34553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34554 (exit $ac_status); }; }; then
34555 eval "$as_ac_var=yes"
34556 else
34557 echo "$as_me: failed program was:" >&5
34558 sed 's/^/| /' conftest.$ac_ext >&5
34560 eval "$as_ac_var=no"
34562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34566 if test `eval echo '${'$as_ac_var'}'` = yes; then
34567 cat >>confdefs.h <<_ACEOF
34568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34569 _ACEOF
34571 else
34572 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
34574 done
34583 for ac_func in memchr memcpy memmove memrchr memset
34585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34586 echo "$as_me:$LINENO: checking for $ac_func" >&5
34587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34588 if eval "test \"\${$as_ac_var+set}\" = set"; then
34589 echo $ECHO_N "(cached) $ECHO_C" >&6
34590 else
34591 cat >conftest.$ac_ext <<_ACEOF
34592 #line $LINENO "configure"
34593 /* confdefs.h. */
34594 _ACEOF
34595 cat confdefs.h >>conftest.$ac_ext
34596 cat >>conftest.$ac_ext <<_ACEOF
34597 /* end confdefs.h. */
34598 /* System header to define __stub macros and hopefully few prototypes,
34599 which can conflict with char $ac_func (); below.
34600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34601 <limits.h> exists even on freestanding compilers. */
34602 #ifdef __STDC__
34603 # include <limits.h>
34604 #else
34605 # include <assert.h>
34606 #endif
34607 /* Override any gcc2 internal prototype to avoid an error. */
34608 #ifdef __cplusplus
34609 extern "C"
34611 #endif
34612 /* We use char because int might match the return type of a gcc2
34613 builtin and then its argument prototype would still apply. */
34614 char $ac_func ();
34615 /* The GNU C library defines this for functions which it implements
34616 to always fail with ENOSYS. Some functions are actually named
34617 something starting with __ and the normal name is an alias. */
34618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34619 choke me
34620 #else
34621 char (*f) () = $ac_func;
34622 #endif
34623 #ifdef __cplusplus
34625 #endif
34628 main ()
34630 return f != $ac_func;
34632 return 0;
34634 _ACEOF
34635 rm -f conftest.$ac_objext conftest$ac_exeext
34636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34637 (eval $ac_link) 2>&5
34638 ac_status=$?
34639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34640 (exit $ac_status); } &&
34641 { ac_try='test -s conftest$ac_exeext'
34642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34643 (eval $ac_try) 2>&5
34644 ac_status=$?
34645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34646 (exit $ac_status); }; }; then
34647 eval "$as_ac_var=yes"
34648 else
34649 echo "$as_me: failed program was:" >&5
34650 sed 's/^/| /' conftest.$ac_ext >&5
34652 eval "$as_ac_var=no"
34654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34658 if test `eval echo '${'$as_ac_var'}'` = yes; then
34659 cat >>confdefs.h <<_ACEOF
34660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34661 _ACEOF
34663 else
34664 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
34666 done
34670 for ac_func in getpagesize
34672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34673 echo "$as_me:$LINENO: checking for $ac_func" >&5
34674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34675 if eval "test \"\${$as_ac_var+set}\" = set"; then
34676 echo $ECHO_N "(cached) $ECHO_C" >&6
34677 else
34678 cat >conftest.$ac_ext <<_ACEOF
34679 #line $LINENO "configure"
34680 /* confdefs.h. */
34681 _ACEOF
34682 cat confdefs.h >>conftest.$ac_ext
34683 cat >>conftest.$ac_ext <<_ACEOF
34684 /* end confdefs.h. */
34685 /* System header to define __stub macros and hopefully few prototypes,
34686 which can conflict with char $ac_func (); below.
34687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34688 <limits.h> exists even on freestanding compilers. */
34689 #ifdef __STDC__
34690 # include <limits.h>
34691 #else
34692 # include <assert.h>
34693 #endif
34694 /* Override any gcc2 internal prototype to avoid an error. */
34695 #ifdef __cplusplus
34696 extern "C"
34698 #endif
34699 /* We use char because int might match the return type of a gcc2
34700 builtin and then its argument prototype would still apply. */
34701 char $ac_func ();
34702 /* The GNU C library defines this for functions which it implements
34703 to always fail with ENOSYS. Some functions are actually named
34704 something starting with __ and the normal name is an alias. */
34705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34706 choke me
34707 #else
34708 char (*f) () = $ac_func;
34709 #endif
34710 #ifdef __cplusplus
34712 #endif
34715 main ()
34717 return f != $ac_func;
34719 return 0;
34721 _ACEOF
34722 rm -f conftest.$ac_objext conftest$ac_exeext
34723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34724 (eval $ac_link) 2>&5
34725 ac_status=$?
34726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34727 (exit $ac_status); } &&
34728 { ac_try='test -s conftest$ac_exeext'
34729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34730 (eval $ac_try) 2>&5
34731 ac_status=$?
34732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34733 (exit $ac_status); }; }; then
34734 eval "$as_ac_var=yes"
34735 else
34736 echo "$as_me: failed program was:" >&5
34737 sed 's/^/| /' conftest.$ac_ext >&5
34739 eval "$as_ac_var=no"
34741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34744 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34745 if test `eval echo '${'$as_ac_var'}'` = yes; then
34746 cat >>confdefs.h <<_ACEOF
34747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34748 _ACEOF
34751 done
34756 # By default, argmatch should fail calling usage (1).
34758 cat >>confdefs.h <<\_ACEOF
34759 #define ARGMATCH_DIE usage (1)
34760 _ACEOF
34763 cat >>confdefs.h <<\_ACEOF
34764 #define ARGMATCH_DIE_DECL extern void usage ()
34765 _ACEOF
34768 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
34769 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
34770 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
34771 echo $ECHO_N "(cached) $ECHO_C" >&6
34772 else
34773 ac_cv_func_setvbuf_reversed=no
34774 cat >conftest.$ac_ext <<_ACEOF
34775 #line $LINENO "configure"
34776 /* confdefs.h. */
34777 _ACEOF
34778 cat confdefs.h >>conftest.$ac_ext
34779 cat >>conftest.$ac_ext <<_ACEOF
34780 /* end confdefs.h. */
34781 #include <stdio.h>
34782 # if PROTOTYPES
34783 int (setvbuf) (FILE *, int, char *, size_t);
34784 # endif
34786 main ()
34788 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
34790 return 0;
34792 _ACEOF
34793 rm -f conftest.$ac_objext conftest$ac_exeext
34794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34795 (eval $ac_link) 2>&5
34796 ac_status=$?
34797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34798 (exit $ac_status); } &&
34799 { ac_try='test -s conftest$ac_exeext'
34800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34801 (eval $ac_try) 2>&5
34802 ac_status=$?
34803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34804 (exit $ac_status); }; }; then
34805 cat >conftest.$ac_ext <<_ACEOF
34806 #line $LINENO "configure"
34807 /* confdefs.h. */
34808 _ACEOF
34809 cat confdefs.h >>conftest.$ac_ext
34810 cat >>conftest.$ac_ext <<_ACEOF
34811 /* end confdefs.h. */
34812 #include <stdio.h>
34813 # if PROTOTYPES
34814 int (setvbuf) (FILE *, int, char *, size_t);
34815 # endif
34817 main ()
34819 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
34821 return 0;
34823 _ACEOF
34824 rm -f conftest.$ac_objext conftest$ac_exeext
34825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34826 (eval $ac_link) 2>&5
34827 ac_status=$?
34828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34829 (exit $ac_status); } &&
34830 { ac_try='test -s conftest$ac_exeext'
34831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34832 (eval $ac_try) 2>&5
34833 ac_status=$?
34834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34835 (exit $ac_status); }; }; then
34836 # It compiles and links either way, so it must not be declared
34837 # with a prototype and most likely this is a K&R C compiler.
34838 # Try running it.
34839 if test "$cross_compiling" = yes; then
34840 : # Assume setvbuf is not reversed when cross-compiling.
34841 else
34842 cat >conftest.$ac_ext <<_ACEOF
34843 #line $LINENO "configure"
34844 /* confdefs.h. */
34845 _ACEOF
34846 cat confdefs.h >>conftest.$ac_ext
34847 cat >>conftest.$ac_ext <<_ACEOF
34848 /* end confdefs.h. */
34849 #include <stdio.h>
34851 main ()
34853 /* This call has the arguments reversed.
34854 A reversed system may check and see that the address of buf
34855 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
34856 char buf;
34857 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
34858 exit (1);
34859 putchar ('\r');
34860 exit (0); /* Non-reversed systems SEGV here. */
34862 return 0;
34864 _ACEOF
34865 rm -f conftest$ac_exeext
34866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34867 (eval $ac_link) 2>&5
34868 ac_status=$?
34869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34872 (eval $ac_try) 2>&5
34873 ac_status=$?
34874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34875 (exit $ac_status); }; }; then
34876 ac_cv_func_setvbuf_reversed=yes
34877 else
34878 echo "$as_me: program exited with status $ac_status" >&5
34879 echo "$as_me: failed program was:" >&5
34880 sed 's/^/| /' conftest.$ac_ext >&5
34882 ( exit $ac_status )
34883 rm -f core core.* *.core
34885 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34887 ac_cv_func_setvbuf_reversed=yes
34888 else
34889 echo "$as_me: failed program was:" >&5
34890 sed 's/^/| /' conftest.$ac_ext >&5
34893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34894 else
34895 echo "$as_me: failed program was:" >&5
34896 sed 's/^/| /' conftest.$ac_ext >&5
34899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34901 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
34902 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
34903 if test $ac_cv_func_setvbuf_reversed = yes; then
34905 cat >>confdefs.h <<\_ACEOF
34906 #define SETVBUF_REVERSED 1
34907 _ACEOF
34912 # used by sleep and shred
34913 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
34914 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
34916 # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all*
34917 # programs in the package would end up linked with that potentially-shared
34918 # library, inducing unnecessary run-time overhead.
34919 fetish_saved_libs=$LIBS
34921 echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
34922 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
34923 if test "${ac_cv_search_clock_gettime+set}" = set; then
34924 echo $ECHO_N "(cached) $ECHO_C" >&6
34925 else
34927 ac_func_search_save_LIBS=$LIBS
34928 ac_cv_search_clock_gettime=no
34929 cat >conftest.$ac_ext <<_ACEOF
34930 #line $LINENO "configure"
34931 /* confdefs.h. */
34932 _ACEOF
34933 cat confdefs.h >>conftest.$ac_ext
34934 cat >>conftest.$ac_ext <<_ACEOF
34935 /* end confdefs.h. */
34937 /* Override any gcc2 internal prototype to avoid an error. */
34938 #ifdef __cplusplus
34939 extern "C"
34940 #endif
34941 /* We use char because int might match the return type of a gcc2
34942 builtin and then its argument prototype would still apply. */
34943 char clock_gettime ();
34945 main ()
34947 clock_gettime ();
34949 return 0;
34951 _ACEOF
34952 rm -f conftest.$ac_objext conftest$ac_exeext
34953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34954 (eval $ac_link) 2>&5
34955 ac_status=$?
34956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34957 (exit $ac_status); } &&
34958 { ac_try='test -s conftest$ac_exeext'
34959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34960 (eval $ac_try) 2>&5
34961 ac_status=$?
34962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963 (exit $ac_status); }; }; then
34964 ac_cv_search_clock_gettime='none required'
34965 else
34966 echo "$as_me: failed program was:" >&5
34967 sed 's/^/| /' conftest.$ac_ext >&5
34970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34971 if test "$ac_cv_search_clock_gettime" = no; then
34972 for ac_lib in rt posix4; do
34973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
34974 cat >conftest.$ac_ext <<_ACEOF
34975 #line $LINENO "configure"
34976 /* confdefs.h. */
34977 _ACEOF
34978 cat confdefs.h >>conftest.$ac_ext
34979 cat >>conftest.$ac_ext <<_ACEOF
34980 /* end confdefs.h. */
34982 /* Override any gcc2 internal prototype to avoid an error. */
34983 #ifdef __cplusplus
34984 extern "C"
34985 #endif
34986 /* We use char because int might match the return type of a gcc2
34987 builtin and then its argument prototype would still apply. */
34988 char clock_gettime ();
34990 main ()
34992 clock_gettime ();
34994 return 0;
34996 _ACEOF
34997 rm -f conftest.$ac_objext conftest$ac_exeext
34998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34999 (eval $ac_link) 2>&5
35000 ac_status=$?
35001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35002 (exit $ac_status); } &&
35003 { ac_try='test -s conftest$ac_exeext'
35004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35005 (eval $ac_try) 2>&5
35006 ac_status=$?
35007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35008 (exit $ac_status); }; }; then
35009 ac_cv_search_clock_gettime="-l$ac_lib"; break
35010 else
35011 echo "$as_me: failed program was:" >&5
35012 sed 's/^/| /' conftest.$ac_ext >&5
35015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35016 done
35018 LIBS=$ac_func_search_save_LIBS
35021 echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
35022 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
35024 if test "$ac_cv_search_clock_gettime" = no; then :
35026 else
35027 if test "$ac_cv_search_clock_gettime" = 'none required'; then :
35029 else
35030 LIBS="$ac_cv_search_clock_gettime $LIBS"
35031 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
35038 for ac_func in clock_gettime clock_settime
35040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35041 echo "$as_me:$LINENO: checking for $ac_func" >&5
35042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35043 if eval "test \"\${$as_ac_var+set}\" = set"; then
35044 echo $ECHO_N "(cached) $ECHO_C" >&6
35045 else
35046 cat >conftest.$ac_ext <<_ACEOF
35047 #line $LINENO "configure"
35048 /* confdefs.h. */
35049 _ACEOF
35050 cat confdefs.h >>conftest.$ac_ext
35051 cat >>conftest.$ac_ext <<_ACEOF
35052 /* end confdefs.h. */
35053 /* System header to define __stub macros and hopefully few prototypes,
35054 which can conflict with char $ac_func (); below.
35055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35056 <limits.h> exists even on freestanding compilers. */
35057 #ifdef __STDC__
35058 # include <limits.h>
35059 #else
35060 # include <assert.h>
35061 #endif
35062 /* Override any gcc2 internal prototype to avoid an error. */
35063 #ifdef __cplusplus
35064 extern "C"
35066 #endif
35067 /* We use char because int might match the return type of a gcc2
35068 builtin and then its argument prototype would still apply. */
35069 char $ac_func ();
35070 /* The GNU C library defines this for functions which it implements
35071 to always fail with ENOSYS. Some functions are actually named
35072 something starting with __ and the normal name is an alias. */
35073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35074 choke me
35075 #else
35076 char (*f) () = $ac_func;
35077 #endif
35078 #ifdef __cplusplus
35080 #endif
35083 main ()
35085 return f != $ac_func;
35087 return 0;
35089 _ACEOF
35090 rm -f conftest.$ac_objext conftest$ac_exeext
35091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35092 (eval $ac_link) 2>&5
35093 ac_status=$?
35094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35095 (exit $ac_status); } &&
35096 { ac_try='test -s conftest$ac_exeext'
35097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35098 (eval $ac_try) 2>&5
35099 ac_status=$?
35100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35101 (exit $ac_status); }; }; then
35102 eval "$as_ac_var=yes"
35103 else
35104 echo "$as_me: failed program was:" >&5
35105 sed 's/^/| /' conftest.$ac_ext >&5
35107 eval "$as_ac_var=no"
35109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35112 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35113 if test `eval echo '${'$as_ac_var'}'` = yes; then
35114 cat >>confdefs.h <<_ACEOF
35115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35116 _ACEOF
35119 done
35121 LIBS=$fetish_saved_libs
35123 for ac_func in gettimeofday
35125 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35126 echo "$as_me:$LINENO: checking for $ac_func" >&5
35127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35128 if eval "test \"\${$as_ac_var+set}\" = set"; then
35129 echo $ECHO_N "(cached) $ECHO_C" >&6
35130 else
35131 cat >conftest.$ac_ext <<_ACEOF
35132 #line $LINENO "configure"
35133 /* confdefs.h. */
35134 _ACEOF
35135 cat confdefs.h >>conftest.$ac_ext
35136 cat >>conftest.$ac_ext <<_ACEOF
35137 /* end confdefs.h. */
35138 /* System header to define __stub macros and hopefully few prototypes,
35139 which can conflict with char $ac_func (); below.
35140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35141 <limits.h> exists even on freestanding compilers. */
35142 #ifdef __STDC__
35143 # include <limits.h>
35144 #else
35145 # include <assert.h>
35146 #endif
35147 /* Override any gcc2 internal prototype to avoid an error. */
35148 #ifdef __cplusplus
35149 extern "C"
35151 #endif
35152 /* We use char because int might match the return type of a gcc2
35153 builtin and then its argument prototype would still apply. */
35154 char $ac_func ();
35155 /* The GNU C library defines this for functions which it implements
35156 to always fail with ENOSYS. Some functions are actually named
35157 something starting with __ and the normal name is an alias. */
35158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35159 choke me
35160 #else
35161 char (*f) () = $ac_func;
35162 #endif
35163 #ifdef __cplusplus
35165 #endif
35168 main ()
35170 return f != $ac_func;
35172 return 0;
35174 _ACEOF
35175 rm -f conftest.$ac_objext conftest$ac_exeext
35176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35177 (eval $ac_link) 2>&5
35178 ac_status=$?
35179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35180 (exit $ac_status); } &&
35181 { ac_try='test -s conftest$ac_exeext'
35182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35183 (eval $ac_try) 2>&5
35184 ac_status=$?
35185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35186 (exit $ac_status); }; }; then
35187 eval "$as_ac_var=yes"
35188 else
35189 echo "$as_me: failed program was:" >&5
35190 sed 's/^/| /' conftest.$ac_ext >&5
35192 eval "$as_ac_var=no"
35194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35198 if test `eval echo '${'$as_ac_var'}'` = yes; then
35199 cat >>confdefs.h <<_ACEOF
35200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35201 _ACEOF
35204 done
35210 for ac_header in string.h stdlib.h
35212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35214 echo "$as_me:$LINENO: checking for $ac_header" >&5
35215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35217 echo $ECHO_N "(cached) $ECHO_C" >&6
35219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35221 else
35222 # Is the header compilable?
35223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35225 cat >conftest.$ac_ext <<_ACEOF
35226 #line $LINENO "configure"
35227 /* confdefs.h. */
35228 _ACEOF
35229 cat confdefs.h >>conftest.$ac_ext
35230 cat >>conftest.$ac_ext <<_ACEOF
35231 /* end confdefs.h. */
35232 $ac_includes_default
35233 #include <$ac_header>
35234 _ACEOF
35235 rm -f conftest.$ac_objext
35236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35237 (eval $ac_compile) 2>&5
35238 ac_status=$?
35239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35240 (exit $ac_status); } &&
35241 { ac_try='test -s conftest.$ac_objext'
35242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35243 (eval $ac_try) 2>&5
35244 ac_status=$?
35245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35246 (exit $ac_status); }; }; then
35247 ac_header_compiler=yes
35248 else
35249 echo "$as_me: failed program was:" >&5
35250 sed 's/^/| /' conftest.$ac_ext >&5
35252 ac_header_compiler=no
35254 rm -f conftest.$ac_objext conftest.$ac_ext
35255 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35256 echo "${ECHO_T}$ac_header_compiler" >&6
35258 # Is the header present?
35259 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35260 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35261 cat >conftest.$ac_ext <<_ACEOF
35262 #line $LINENO "configure"
35263 /* confdefs.h. */
35264 _ACEOF
35265 cat confdefs.h >>conftest.$ac_ext
35266 cat >>conftest.$ac_ext <<_ACEOF
35267 /* end confdefs.h. */
35268 #include <$ac_header>
35269 _ACEOF
35270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35272 ac_status=$?
35273 grep -v '^ *+' conftest.er1 >conftest.err
35274 rm -f conftest.er1
35275 cat conftest.err >&5
35276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35277 (exit $ac_status); } >/dev/null; then
35278 if test -s conftest.err; then
35279 ac_cpp_err=$ac_c_preproc_warn_flag
35280 else
35281 ac_cpp_err=
35283 else
35284 ac_cpp_err=yes
35286 if test -z "$ac_cpp_err"; then
35287 ac_header_preproc=yes
35288 else
35289 echo "$as_me: failed program was:" >&5
35290 sed 's/^/| /' conftest.$ac_ext >&5
35292 ac_header_preproc=no
35294 rm -f conftest.err conftest.$ac_ext
35295 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35296 echo "${ECHO_T}$ac_header_preproc" >&6
35298 # So? What about this header?
35299 case $ac_header_compiler:$ac_header_preproc in
35300 yes:no )
35301 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35306 cat <<\_ASBOX
35307 ## ------------------------------------ ##
35308 ## Report this to bug-autoconf@gnu.org. ##
35309 ## ------------------------------------ ##
35310 _ASBOX
35312 sed "s/^/$as_me: WARNING: /" >&2
35314 no:yes )
35315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35318 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35322 cat <<\_ASBOX
35323 ## ------------------------------------ ##
35324 ## Report this to bug-autoconf@gnu.org. ##
35325 ## ------------------------------------ ##
35326 _ASBOX
35328 sed "s/^/$as_me: WARNING: /" >&2
35330 esac
35331 echo "$as_me:$LINENO: checking for $ac_header" >&5
35332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35334 echo $ECHO_N "(cached) $ECHO_C" >&6
35335 else
35336 eval "$as_ac_Header=$ac_header_preproc"
35338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35343 cat >>confdefs.h <<_ACEOF
35344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35345 _ACEOF
35349 done
35351 echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
35352 echo $ECHO_N "checking whether gettimeofday clobbers localtime buffer... $ECHO_C" >&6
35353 if test "${jm_cv_func_gettimeofday_clobber+set}" = set; then
35354 echo $ECHO_N "(cached) $ECHO_C" >&6
35355 else
35356 if test "$cross_compiling" = yes; then
35357 jm_cv_func_gettimeofday_clobber=yes
35358 else
35359 cat >conftest.$ac_ext <<_ACEOF
35360 #line $LINENO "configure"
35361 /* confdefs.h. */
35362 _ACEOF
35363 cat confdefs.h >>conftest.$ac_ext
35364 cat >>conftest.$ac_ext <<_ACEOF
35365 /* end confdefs.h. */
35367 #include <stdio.h>
35368 #if HAVE_STRING_H
35369 # include <string.h>
35370 #endif
35372 #if TIME_WITH_SYS_TIME
35373 # include <sys/time.h>
35374 # include <time.h>
35375 #else
35376 # if HAVE_SYS_TIME_H
35377 # include <sys/time.h>
35378 # else
35379 # include <time.h>
35380 # endif
35381 #endif
35383 #if HAVE_STDLIB_H
35384 # include <stdlib.h>
35385 #endif
35388 main ()
35390 time_t t = 0;
35391 struct tm *lt;
35392 struct tm saved_lt;
35393 struct timeval tv;
35394 lt = localtime (&t);
35395 saved_lt = *lt;
35396 gettimeofday (&tv, NULL);
35397 if (memcmp (lt, &saved_lt, sizeof (struct tm)) != 0)
35398 exit (1);
35400 exit (0);
35403 _ACEOF
35404 rm -f conftest$ac_exeext
35405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35406 (eval $ac_link) 2>&5
35407 ac_status=$?
35408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35411 (eval $ac_try) 2>&5
35412 ac_status=$?
35413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35414 (exit $ac_status); }; }; then
35415 jm_cv_func_gettimeofday_clobber=no
35416 else
35417 echo "$as_me: program exited with status $ac_status" >&5
35418 echo "$as_me: failed program was:" >&5
35419 sed 's/^/| /' conftest.$ac_ext >&5
35421 ( exit $ac_status )
35422 jm_cv_func_gettimeofday_clobber=yes
35424 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35428 echo "$as_me:$LINENO: result: $jm_cv_func_gettimeofday_clobber" >&5
35429 echo "${ECHO_T}$jm_cv_func_gettimeofday_clobber" >&6
35430 if test $jm_cv_func_gettimeofday_clobber = yes; then
35431 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
35433 cat >>confdefs.h <<\_ACEOF
35434 #define localtime rpl_localtime
35435 _ACEOF
35438 cat >>confdefs.h <<\_ACEOF
35439 #define gettimeofday rpl_gettimeofday
35440 _ACEOF
35443 cat >>confdefs.h <<\_ACEOF
35444 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER 1
35445 _ACEOF
35481 for ac_func in \
35482 bcopy \
35483 endgrent \
35484 endpwent \
35485 fchdir \
35486 fdatasync \
35487 ftime \
35488 ftruncate \
35489 getcwd \
35490 gethrtime \
35491 getmntinfo \
35492 hasmntopt \
35493 isascii \
35494 iswspace \
35495 lchown \
35496 listmntent \
35497 localeconv \
35498 memcpy \
35499 mempcpy \
35500 mkfifo \
35501 realpath \
35502 sethostname \
35503 strchr \
35504 strerror \
35505 strrchr \
35506 sysctl \
35507 sysinfo \
35508 wcrtomb \
35509 tzset \
35512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35513 echo "$as_me:$LINENO: checking for $ac_func" >&5
35514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35515 if eval "test \"\${$as_ac_var+set}\" = set"; then
35516 echo $ECHO_N "(cached) $ECHO_C" >&6
35517 else
35518 cat >conftest.$ac_ext <<_ACEOF
35519 #line $LINENO "configure"
35520 /* confdefs.h. */
35521 _ACEOF
35522 cat confdefs.h >>conftest.$ac_ext
35523 cat >>conftest.$ac_ext <<_ACEOF
35524 /* end confdefs.h. */
35525 /* System header to define __stub macros and hopefully few prototypes,
35526 which can conflict with char $ac_func (); below.
35527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35528 <limits.h> exists even on freestanding compilers. */
35529 #ifdef __STDC__
35530 # include <limits.h>
35531 #else
35532 # include <assert.h>
35533 #endif
35534 /* Override any gcc2 internal prototype to avoid an error. */
35535 #ifdef __cplusplus
35536 extern "C"
35538 #endif
35539 /* We use char because int might match the return type of a gcc2
35540 builtin and then its argument prototype would still apply. */
35541 char $ac_func ();
35542 /* The GNU C library defines this for functions which it implements
35543 to always fail with ENOSYS. Some functions are actually named
35544 something starting with __ and the normal name is an alias. */
35545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35546 choke me
35547 #else
35548 char (*f) () = $ac_func;
35549 #endif
35550 #ifdef __cplusplus
35552 #endif
35555 main ()
35557 return f != $ac_func;
35559 return 0;
35561 _ACEOF
35562 rm -f conftest.$ac_objext conftest$ac_exeext
35563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35564 (eval $ac_link) 2>&5
35565 ac_status=$?
35566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35567 (exit $ac_status); } &&
35568 { ac_try='test -s conftest$ac_exeext'
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 eval "$as_ac_var=yes"
35575 else
35576 echo "$as_me: failed program was:" >&5
35577 sed 's/^/| /' conftest.$ac_ext >&5
35579 eval "$as_ac_var=no"
35581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35584 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35585 if test `eval echo '${'$as_ac_var'}'` = yes; then
35586 cat >>confdefs.h <<_ACEOF
35587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35588 _ACEOF
35591 done
35594 # for test.c
35597 for ac_func in setreuid setregid
35599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35600 echo "$as_me:$LINENO: checking for $ac_func" >&5
35601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35602 if eval "test \"\${$as_ac_var+set}\" = set"; then
35603 echo $ECHO_N "(cached) $ECHO_C" >&6
35604 else
35605 cat >conftest.$ac_ext <<_ACEOF
35606 #line $LINENO "configure"
35607 /* confdefs.h. */
35608 _ACEOF
35609 cat confdefs.h >>conftest.$ac_ext
35610 cat >>conftest.$ac_ext <<_ACEOF
35611 /* end confdefs.h. */
35612 /* System header to define __stub macros and hopefully few prototypes,
35613 which can conflict with char $ac_func (); below.
35614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35615 <limits.h> exists even on freestanding compilers. */
35616 #ifdef __STDC__
35617 # include <limits.h>
35618 #else
35619 # include <assert.h>
35620 #endif
35621 /* Override any gcc2 internal prototype to avoid an error. */
35622 #ifdef __cplusplus
35623 extern "C"
35625 #endif
35626 /* We use char because int might match the return type of a gcc2
35627 builtin and then its argument prototype would still apply. */
35628 char $ac_func ();
35629 /* The GNU C library defines this for functions which it implements
35630 to always fail with ENOSYS. Some functions are actually named
35631 something starting with __ and the normal name is an alias. */
35632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35633 choke me
35634 #else
35635 char (*f) () = $ac_func;
35636 #endif
35637 #ifdef __cplusplus
35639 #endif
35642 main ()
35644 return f != $ac_func;
35646 return 0;
35648 _ACEOF
35649 rm -f conftest.$ac_objext conftest$ac_exeext
35650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35651 (eval $ac_link) 2>&5
35652 ac_status=$?
35653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35654 (exit $ac_status); } &&
35655 { ac_try='test -s conftest$ac_exeext'
35656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35657 (eval $ac_try) 2>&5
35658 ac_status=$?
35659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35660 (exit $ac_status); }; }; then
35661 eval "$as_ac_var=yes"
35662 else
35663 echo "$as_me: failed program was:" >&5
35664 sed 's/^/| /' conftest.$ac_ext >&5
35666 eval "$as_ac_var=no"
35668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35672 if test `eval echo '${'$as_ac_var'}'` = yes; then
35673 cat >>confdefs.h <<_ACEOF
35674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35675 _ACEOF
35678 done
35681 am_getline_needs_run_time_check=no
35682 echo "$as_me:$LINENO: checking for getline" >&5
35683 echo $ECHO_N "checking for getline... $ECHO_C" >&6
35684 if test "${ac_cv_func_getline+set}" = set; then
35685 echo $ECHO_N "(cached) $ECHO_C" >&6
35686 else
35687 cat >conftest.$ac_ext <<_ACEOF
35688 #line $LINENO "configure"
35689 /* confdefs.h. */
35690 _ACEOF
35691 cat confdefs.h >>conftest.$ac_ext
35692 cat >>conftest.$ac_ext <<_ACEOF
35693 /* end confdefs.h. */
35694 /* System header to define __stub macros and hopefully few prototypes,
35695 which can conflict with char getline (); below.
35696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35697 <limits.h> exists even on freestanding compilers. */
35698 #ifdef __STDC__
35699 # include <limits.h>
35700 #else
35701 # include <assert.h>
35702 #endif
35703 /* Override any gcc2 internal prototype to avoid an error. */
35704 #ifdef __cplusplus
35705 extern "C"
35707 #endif
35708 /* We use char because int might match the return type of a gcc2
35709 builtin and then its argument prototype would still apply. */
35710 char getline ();
35711 /* The GNU C library defines this for functions which it implements
35712 to always fail with ENOSYS. Some functions are actually named
35713 something starting with __ and the normal name is an alias. */
35714 #if defined (__stub_getline) || defined (__stub___getline)
35715 choke me
35716 #else
35717 char (*f) () = getline;
35718 #endif
35719 #ifdef __cplusplus
35721 #endif
35724 main ()
35726 return f != getline;
35728 return 0;
35730 _ACEOF
35731 rm -f conftest.$ac_objext conftest$ac_exeext
35732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35733 (eval $ac_link) 2>&5
35734 ac_status=$?
35735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35736 (exit $ac_status); } &&
35737 { ac_try='test -s conftest$ac_exeext'
35738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35739 (eval $ac_try) 2>&5
35740 ac_status=$?
35741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35742 (exit $ac_status); }; }; then
35743 ac_cv_func_getline=yes
35744 else
35745 echo "$as_me: failed program was:" >&5
35746 sed 's/^/| /' conftest.$ac_ext >&5
35748 ac_cv_func_getline=no
35750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35752 echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
35753 echo "${ECHO_T}$ac_cv_func_getline" >&6
35754 if test $ac_cv_func_getline = yes; then
35755 am_getline_needs_run_time_check=yes
35756 else
35757 am_cv_func_working_getline=no
35760 if test $am_getline_needs_run_time_check = yes; then
35761 echo "$as_me:$LINENO: checking for working getline function" >&5
35762 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
35763 if test "${am_cv_func_working_getline+set}" = set; then
35764 echo $ECHO_N "(cached) $ECHO_C" >&6
35765 else
35766 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
35767 if test "$cross_compiling" = yes; then
35768 am_cv_func_working_getline=no
35769 else
35770 cat >conftest.$ac_ext <<_ACEOF
35771 #line $LINENO "configure"
35772 /* confdefs.h. */
35773 _ACEOF
35774 cat confdefs.h >>conftest.$ac_ext
35775 cat >>conftest.$ac_ext <<_ACEOF
35776 /* end confdefs.h. */
35778 # include <stdio.h>
35779 # include <sys/types.h>
35780 # include <string.h>
35781 int main ()
35782 { /* Based on a test program from Karl Heuer. */
35783 char *line = NULL;
35784 size_t siz = 0;
35785 int len;
35786 FILE *in = fopen ("./conftest.data", "r");
35787 if (!in)
35788 return 1;
35789 len = getline (&line, &siz, in);
35790 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
35793 _ACEOF
35794 rm -f conftest$ac_exeext
35795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35796 (eval $ac_link) 2>&5
35797 ac_status=$?
35798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35799 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35801 (eval $ac_try) 2>&5
35802 ac_status=$?
35803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35804 (exit $ac_status); }; }; then
35805 am_cv_func_working_getline=yes
35806 else
35807 echo "$as_me: program exited with status $ac_status" >&5
35808 echo "$as_me: failed program was:" >&5
35809 sed 's/^/| /' conftest.$ac_ext >&5
35811 ( exit $ac_status )
35812 am_cv_func_working_getline=no
35814 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35817 echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
35818 echo "${ECHO_T}$am_cv_func_working_getline" >&6
35821 if test $am_cv_func_working_getline = no; then
35822 LIBOBJS="$LIBOBJS getline.$ac_objext"
35825 if test $am_cv_func_working_getline != yes; then
35827 for ac_func in getdelim
35829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35830 echo "$as_me:$LINENO: checking for $ac_func" >&5
35831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35832 if eval "test \"\${$as_ac_var+set}\" = set"; then
35833 echo $ECHO_N "(cached) $ECHO_C" >&6
35834 else
35835 cat >conftest.$ac_ext <<_ACEOF
35836 #line $LINENO "configure"
35837 /* confdefs.h. */
35838 _ACEOF
35839 cat confdefs.h >>conftest.$ac_ext
35840 cat >>conftest.$ac_ext <<_ACEOF
35841 /* end confdefs.h. */
35842 /* System header to define __stub macros and hopefully few prototypes,
35843 which can conflict with char $ac_func (); below.
35844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35845 <limits.h> exists even on freestanding compilers. */
35846 #ifdef __STDC__
35847 # include <limits.h>
35848 #else
35849 # include <assert.h>
35850 #endif
35851 /* Override any gcc2 internal prototype to avoid an error. */
35852 #ifdef __cplusplus
35853 extern "C"
35855 #endif
35856 /* We use char because int might match the return type of a gcc2
35857 builtin and then its argument prototype would still apply. */
35858 char $ac_func ();
35859 /* The GNU C library defines this for functions which it implements
35860 to always fail with ENOSYS. Some functions are actually named
35861 something starting with __ and the normal name is an alias. */
35862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35863 choke me
35864 #else
35865 char (*f) () = $ac_func;
35866 #endif
35867 #ifdef __cplusplus
35869 #endif
35872 main ()
35874 return f != $ac_func;
35876 return 0;
35878 _ACEOF
35879 rm -f conftest.$ac_objext conftest$ac_exeext
35880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35881 (eval $ac_link) 2>&5
35882 ac_status=$?
35883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35884 (exit $ac_status); } &&
35885 { ac_try='test -s conftest$ac_exeext'
35886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35887 (eval $ac_try) 2>&5
35888 ac_status=$?
35889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35890 (exit $ac_status); }; }; then
35891 eval "$as_ac_var=yes"
35892 else
35893 echo "$as_me: failed program was:" >&5
35894 sed 's/^/| /' conftest.$ac_ext >&5
35896 eval "$as_ac_var=no"
35898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35901 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35902 if test `eval echo '${'$as_ac_var'}'` = yes; then
35903 cat >>confdefs.h <<_ACEOF
35904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35905 _ACEOF
35908 done
35911 echo "$as_me:$LINENO: checking for obstacks" >&5
35912 echo $ECHO_N "checking for obstacks... $ECHO_C" >&6
35913 if test "${ac_cv_func_obstack+set}" = set; then
35914 echo $ECHO_N "(cached) $ECHO_C" >&6
35915 else
35916 cat >conftest.$ac_ext <<_ACEOF
35917 #line $LINENO "configure"
35918 /* confdefs.h. */
35919 _ACEOF
35920 cat confdefs.h >>conftest.$ac_ext
35921 cat >>conftest.$ac_ext <<_ACEOF
35922 /* end confdefs.h. */
35923 #include "obstack.h"
35925 main ()
35927 struct obstack *mem; obstack_free(mem,(char *) 0)
35929 return 0;
35931 _ACEOF
35932 rm -f conftest.$ac_objext conftest$ac_exeext
35933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35934 (eval $ac_link) 2>&5
35935 ac_status=$?
35936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35937 (exit $ac_status); } &&
35938 { ac_try='test -s conftest$ac_exeext'
35939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35940 (eval $ac_try) 2>&5
35941 ac_status=$?
35942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35943 (exit $ac_status); }; }; then
35944 ac_cv_func_obstack=yes
35945 else
35946 echo "$as_me: failed program was:" >&5
35947 sed 's/^/| /' conftest.$ac_ext >&5
35949 ac_cv_func_obstack=no
35951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35953 echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
35954 echo "${ECHO_T}$ac_cv_func_obstack" >&6
35955 if test $ac_cv_func_obstack = yes; then
35957 cat >>confdefs.h <<\_ACEOF
35958 #define HAVE_OBSTACK 1
35959 _ACEOF
35961 else
35962 LIBOBJS="$LIBOBJS obstack.$ac_objext"
35966 echo "$as_me:$LINENO: checking for working strtod" >&5
35967 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
35968 if test "${ac_cv_func_strtod+set}" = set; then
35969 echo $ECHO_N "(cached) $ECHO_C" >&6
35970 else
35971 if test "$cross_compiling" = yes; then
35972 ac_cv_func_strtod=no
35973 else
35974 cat >conftest.$ac_ext <<_ACEOF
35975 #line $LINENO "configure"
35976 /* confdefs.h. */
35977 _ACEOF
35978 cat confdefs.h >>conftest.$ac_ext
35979 cat >>conftest.$ac_ext <<_ACEOF
35980 /* end confdefs.h. */
35982 double strtod ();
35984 main()
35987 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
35988 char *string = " +69";
35989 char *term;
35990 double value;
35991 value = strtod (string, &term);
35992 if (value != 69 || term != (string + 4))
35993 exit (1);
35997 /* Under Solaris 2.4, strtod returns the wrong value for the
35998 terminating character under some conditions. */
35999 char *string = "NaN";
36000 char *term;
36001 strtod (string, &term);
36002 if (term != string && *(term - 1) == 0)
36003 exit (1);
36005 exit (0);
36008 _ACEOF
36009 rm -f conftest$ac_exeext
36010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36011 (eval $ac_link) 2>&5
36012 ac_status=$?
36013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36016 (eval $ac_try) 2>&5
36017 ac_status=$?
36018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36019 (exit $ac_status); }; }; then
36020 ac_cv_func_strtod=yes
36021 else
36022 echo "$as_me: program exited with status $ac_status" >&5
36023 echo "$as_me: failed program was:" >&5
36024 sed 's/^/| /' conftest.$ac_ext >&5
36026 ( exit $ac_status )
36027 ac_cv_func_strtod=no
36029 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36032 echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
36033 echo "${ECHO_T}$ac_cv_func_strtod" >&6
36034 if test $ac_cv_func_strtod = no; then
36035 LIBOBJS="$LIBOBJS strtod.$ac_objext"
36036 echo "$as_me:$LINENO: checking for pow" >&5
36037 echo $ECHO_N "checking for pow... $ECHO_C" >&6
36038 if test "${ac_cv_func_pow+set}" = set; then
36039 echo $ECHO_N "(cached) $ECHO_C" >&6
36040 else
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 /* System header to define __stub macros and hopefully few prototypes,
36049 which can conflict with char pow (); below.
36050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36051 <limits.h> exists even on freestanding compilers. */
36052 #ifdef __STDC__
36053 # include <limits.h>
36054 #else
36055 # include <assert.h>
36056 #endif
36057 /* Override any gcc2 internal prototype to avoid an error. */
36058 #ifdef __cplusplus
36059 extern "C"
36061 #endif
36062 /* We use char because int might match the return type of a gcc2
36063 builtin and then its argument prototype would still apply. */
36064 char pow ();
36065 /* The GNU C library defines this for functions which it implements
36066 to always fail with ENOSYS. Some functions are actually named
36067 something starting with __ and the normal name is an alias. */
36068 #if defined (__stub_pow) || defined (__stub___pow)
36069 choke me
36070 #else
36071 char (*f) () = pow;
36072 #endif
36073 #ifdef __cplusplus
36075 #endif
36078 main ()
36080 return f != pow;
36082 return 0;
36084 _ACEOF
36085 rm -f conftest.$ac_objext conftest$ac_exeext
36086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36087 (eval $ac_link) 2>&5
36088 ac_status=$?
36089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36090 (exit $ac_status); } &&
36091 { ac_try='test -s conftest$ac_exeext'
36092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36093 (eval $ac_try) 2>&5
36094 ac_status=$?
36095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36096 (exit $ac_status); }; }; then
36097 ac_cv_func_pow=yes
36098 else
36099 echo "$as_me: failed program was:" >&5
36100 sed 's/^/| /' conftest.$ac_ext >&5
36102 ac_cv_func_pow=no
36104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36106 echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
36107 echo "${ECHO_T}$ac_cv_func_pow" >&6
36109 if test $ac_cv_func_pow = no; then
36110 echo "$as_me:$LINENO: checking for pow in -lm" >&5
36111 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
36112 if test "${ac_cv_lib_m_pow+set}" = set; then
36113 echo $ECHO_N "(cached) $ECHO_C" >&6
36114 else
36115 ac_check_lib_save_LIBS=$LIBS
36116 LIBS="-lm $LIBS"
36117 cat >conftest.$ac_ext <<_ACEOF
36118 #line $LINENO "configure"
36119 /* confdefs.h. */
36120 _ACEOF
36121 cat confdefs.h >>conftest.$ac_ext
36122 cat >>conftest.$ac_ext <<_ACEOF
36123 /* end confdefs.h. */
36125 /* Override any gcc2 internal prototype to avoid an error. */
36126 #ifdef __cplusplus
36127 extern "C"
36128 #endif
36129 /* We use char because int might match the return type of a gcc2
36130 builtin and then its argument prototype would still apply. */
36131 char pow ();
36133 main ()
36135 pow ();
36137 return 0;
36139 _ACEOF
36140 rm -f conftest.$ac_objext conftest$ac_exeext
36141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36142 (eval $ac_link) 2>&5
36143 ac_status=$?
36144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36145 (exit $ac_status); } &&
36146 { ac_try='test -s conftest$ac_exeext'
36147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36148 (eval $ac_try) 2>&5
36149 ac_status=$?
36150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36151 (exit $ac_status); }; }; then
36152 ac_cv_lib_m_pow=yes
36153 else
36154 echo "$as_me: failed program was:" >&5
36155 sed 's/^/| /' conftest.$ac_ext >&5
36157 ac_cv_lib_m_pow=no
36159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36160 LIBS=$ac_check_lib_save_LIBS
36162 echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
36163 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
36164 if test $ac_cv_lib_m_pow = yes; then
36165 POW_LIB=-lm
36166 else
36167 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
36168 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
36178 # See if linking `seq' requires -lm.
36179 # It does on nearly every system. The single exception (so far) is
36180 # BeOS which has all the math functions in the normal runtime library
36181 # and doesn't have a separate math library.
36184 ac_seq_body='
36185 static double x, y;
36186 x = floor (x);
36187 x = rint (x);
36188 x = modf (x, &y);'
36189 cat >conftest.$ac_ext <<_ACEOF
36190 #line $LINENO "configure"
36191 /* confdefs.h. */
36192 _ACEOF
36193 cat confdefs.h >>conftest.$ac_ext
36194 cat >>conftest.$ac_ext <<_ACEOF
36195 /* end confdefs.h. */
36196 #include <math.h>
36198 main ()
36200 $ac_seq_body
36202 return 0;
36204 _ACEOF
36205 rm -f conftest.$ac_objext conftest$ac_exeext
36206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36207 (eval $ac_link) 2>&5
36208 ac_status=$?
36209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36210 (exit $ac_status); } &&
36211 { ac_try='test -s conftest$ac_exeext'
36212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36213 (eval $ac_try) 2>&5
36214 ac_status=$?
36215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36216 (exit $ac_status); }; }; then
36218 else
36219 echo "$as_me: failed program was:" >&5
36220 sed 's/^/| /' conftest.$ac_ext >&5
36222 ac_seq_save_LIBS="$LIBS"
36223 LIBS="$LIBS -lm"
36224 cat >conftest.$ac_ext <<_ACEOF
36225 #line $LINENO "configure"
36226 /* confdefs.h. */
36227 _ACEOF
36228 cat confdefs.h >>conftest.$ac_ext
36229 cat >>conftest.$ac_ext <<_ACEOF
36230 /* end confdefs.h. */
36231 #include <math.h>
36233 main ()
36235 $ac_seq_body
36237 return 0;
36239 _ACEOF
36240 rm -f conftest.$ac_objext conftest$ac_exeext
36241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36242 (eval $ac_link) 2>&5
36243 ac_status=$?
36244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36245 (exit $ac_status); } &&
36246 { ac_try='test -s conftest$ac_exeext'
36247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36248 (eval $ac_try) 2>&5
36249 ac_status=$?
36250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36251 (exit $ac_status); }; }; then
36252 SEQ_LIBM=-lm
36253 else
36254 echo "$as_me: failed program was:" >&5
36255 sed 's/^/| /' conftest.$ac_ext >&5
36258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36259 LIBS="$ac_seq_save_LIBS"
36262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36265 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
36266 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
36267 if test "${am_cv_langinfo_codeset+set}" = set; then
36268 echo $ECHO_N "(cached) $ECHO_C" >&6
36269 else
36270 cat >conftest.$ac_ext <<_ACEOF
36271 #line $LINENO "configure"
36272 /* confdefs.h. */
36273 _ACEOF
36274 cat confdefs.h >>conftest.$ac_ext
36275 cat >>conftest.$ac_ext <<_ACEOF
36276 /* end confdefs.h. */
36277 #include <langinfo.h>
36279 main ()
36281 char* cs = nl_langinfo(CODESET);
36283 return 0;
36285 _ACEOF
36286 rm -f conftest.$ac_objext conftest$ac_exeext
36287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36288 (eval $ac_link) 2>&5
36289 ac_status=$?
36290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36291 (exit $ac_status); } &&
36292 { ac_try='test -s conftest$ac_exeext'
36293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36294 (eval $ac_try) 2>&5
36295 ac_status=$?
36296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36297 (exit $ac_status); }; }; then
36298 am_cv_langinfo_codeset=yes
36299 else
36300 echo "$as_me: failed program was:" >&5
36301 sed 's/^/| /' conftest.$ac_ext >&5
36303 am_cv_langinfo_codeset=no
36305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36308 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
36309 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
36310 if test $am_cv_langinfo_codeset = yes; then
36312 cat >>confdefs.h <<\_ACEOF
36313 #define HAVE_LANGINFO_CODESET 1
36314 _ACEOF
36319 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
36320 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
36321 if test "${ac_cv_gnu_library_2_1+set}" = set; then
36322 echo $ECHO_N "(cached) $ECHO_C" >&6
36323 else
36324 cat >conftest.$ac_ext <<_ACEOF
36325 #line $LINENO "configure"
36326 /* confdefs.h. */
36327 _ACEOF
36328 cat confdefs.h >>conftest.$ac_ext
36329 cat >>conftest.$ac_ext <<_ACEOF
36330 /* end confdefs.h. */
36332 #include <features.h>
36333 #ifdef __GNU_LIBRARY__
36334 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
36335 Lucky GNU user
36336 #endif
36337 #endif
36339 _ACEOF
36340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36341 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
36342 ac_cv_gnu_library_2_1=yes
36343 else
36344 ac_cv_gnu_library_2_1=no
36346 rm -f conftest*
36351 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
36352 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
36354 GLIBC21="$ac_cv_gnu_library_2_1"
36362 am_save_CPPFLAGS="$CPPFLAGS"
36364 for element in $INCICONV; do
36365 haveit=
36366 for x in $CPPFLAGS; do
36368 acl_save_prefix="$prefix"
36369 prefix="$acl_final_prefix"
36370 acl_save_exec_prefix="$exec_prefix"
36371 exec_prefix="$acl_final_exec_prefix"
36372 eval x=\"$x\"
36373 exec_prefix="$acl_save_exec_prefix"
36374 prefix="$acl_save_prefix"
36376 if test "X$x" = "X$element"; then
36377 haveit=yes
36378 break
36380 done
36381 if test -z "$haveit"; then
36382 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
36384 done
36387 echo "$as_me:$LINENO: checking for iconv" >&5
36388 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
36389 if test "${am_cv_func_iconv+set}" = set; then
36390 echo $ECHO_N "(cached) $ECHO_C" >&6
36391 else
36393 am_cv_func_iconv="no, consider installing GNU libiconv"
36394 am_cv_lib_iconv=no
36395 cat >conftest.$ac_ext <<_ACEOF
36396 #line $LINENO "configure"
36397 /* confdefs.h. */
36398 _ACEOF
36399 cat confdefs.h >>conftest.$ac_ext
36400 cat >>conftest.$ac_ext <<_ACEOF
36401 /* end confdefs.h. */
36402 #include <stdlib.h>
36403 #include <iconv.h>
36405 main ()
36407 iconv_t cd = iconv_open("","");
36408 iconv(cd,NULL,NULL,NULL,NULL);
36409 iconv_close(cd);
36411 return 0;
36413 _ACEOF
36414 rm -f conftest.$ac_objext conftest$ac_exeext
36415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36416 (eval $ac_link) 2>&5
36417 ac_status=$?
36418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36419 (exit $ac_status); } &&
36420 { ac_try='test -s conftest$ac_exeext'
36421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36422 (eval $ac_try) 2>&5
36423 ac_status=$?
36424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36425 (exit $ac_status); }; }; then
36426 am_cv_func_iconv=yes
36427 else
36428 echo "$as_me: failed program was:" >&5
36429 sed 's/^/| /' conftest.$ac_ext >&5
36432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36433 if test "$am_cv_func_iconv" != yes; then
36434 am_save_LIBS="$LIBS"
36435 LIBS="$LIBS $LIBICONV"
36436 cat >conftest.$ac_ext <<_ACEOF
36437 #line $LINENO "configure"
36438 /* confdefs.h. */
36439 _ACEOF
36440 cat confdefs.h >>conftest.$ac_ext
36441 cat >>conftest.$ac_ext <<_ACEOF
36442 /* end confdefs.h. */
36443 #include <stdlib.h>
36444 #include <iconv.h>
36446 main ()
36448 iconv_t cd = iconv_open("","");
36449 iconv(cd,NULL,NULL,NULL,NULL);
36450 iconv_close(cd);
36452 return 0;
36454 _ACEOF
36455 rm -f conftest.$ac_objext conftest$ac_exeext
36456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36457 (eval $ac_link) 2>&5
36458 ac_status=$?
36459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36460 (exit $ac_status); } &&
36461 { ac_try='test -s conftest$ac_exeext'
36462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36463 (eval $ac_try) 2>&5
36464 ac_status=$?
36465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36466 (exit $ac_status); }; }; then
36467 am_cv_lib_iconv=yes
36468 am_cv_func_iconv=yes
36469 else
36470 echo "$as_me: failed program was:" >&5
36471 sed 's/^/| /' conftest.$ac_ext >&5
36474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36475 LIBS="$am_save_LIBS"
36479 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36480 echo "${ECHO_T}$am_cv_func_iconv" >&6
36481 if test "$am_cv_func_iconv" = yes; then
36483 cat >>confdefs.h <<\_ACEOF
36484 #define HAVE_ICONV 1
36485 _ACEOF
36488 if test "$am_cv_lib_iconv" = yes; then
36489 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
36490 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
36491 echo "$as_me:$LINENO: result: $LIBICONV" >&5
36492 echo "${ECHO_T}$LIBICONV" >&6
36493 else
36494 CPPFLAGS="$am_save_CPPFLAGS"
36495 LIBICONV=
36496 LTLIBICONV=
36501 if test "$am_cv_func_iconv" = yes; then
36502 echo "$as_me:$LINENO: checking for iconv declaration" >&5
36503 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
36504 if test "${am_cv_proto_iconv+set}" = set; then
36505 echo $ECHO_N "(cached) $ECHO_C" >&6
36506 else
36508 cat >conftest.$ac_ext <<_ACEOF
36509 #line $LINENO "configure"
36510 /* confdefs.h. */
36511 _ACEOF
36512 cat confdefs.h >>conftest.$ac_ext
36513 cat >>conftest.$ac_ext <<_ACEOF
36514 /* end confdefs.h. */
36516 #include <stdlib.h>
36517 #include <iconv.h>
36518 extern
36519 #ifdef __cplusplus
36521 #endif
36522 #if defined(__STDC__) || defined(__cplusplus)
36523 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36524 #else
36525 size_t iconv();
36526 #endif
36529 main ()
36533 return 0;
36535 _ACEOF
36536 rm -f conftest.$ac_objext
36537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36538 (eval $ac_compile) 2>&5
36539 ac_status=$?
36540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36541 (exit $ac_status); } &&
36542 { ac_try='test -s conftest.$ac_objext'
36543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36544 (eval $ac_try) 2>&5
36545 ac_status=$?
36546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36547 (exit $ac_status); }; }; then
36548 am_cv_proto_iconv_arg1=""
36549 else
36550 echo "$as_me: failed program was:" >&5
36551 sed 's/^/| /' conftest.$ac_ext >&5
36553 am_cv_proto_iconv_arg1="const"
36555 rm -f conftest.$ac_objext conftest.$ac_ext
36556 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);"
36559 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
36560 echo "$as_me:$LINENO: result: ${ac_t:-
36561 }$am_cv_proto_iconv" >&5
36562 echo "${ECHO_T}${ac_t:-
36563 }$am_cv_proto_iconv" >&6
36565 cat >>confdefs.h <<_ACEOF
36566 #define ICONV_CONST $am_cv_proto_iconv_arg1
36567 _ACEOF
36571 echo "$as_me:$LINENO: checking whether a running program can be unlinked" >&5
36572 echo $ECHO_N "checking whether a running program can be unlinked... $ECHO_C" >&6
36573 if test "${jm_cv_func_unlink_busy_text+set}" = set; then
36574 echo $ECHO_N "(cached) $ECHO_C" >&6
36575 else
36577 if test "$cross_compiling" = yes; then
36578 jm_cv_func_unlink_busy_text=no
36580 else
36581 cat >conftest.$ac_ext <<_ACEOF
36582 #line $LINENO "configure"
36583 /* confdefs.h. */
36584 _ACEOF
36585 cat confdefs.h >>conftest.$ac_ext
36586 cat >>conftest.$ac_ext <<_ACEOF
36587 /* end confdefs.h. */
36589 main (argc, argv)
36590 int argc;
36591 char **argv;
36593 if (!argc)
36594 exit (-1);
36595 exit (unlink (argv[0]));
36598 _ACEOF
36599 rm -f conftest$ac_exeext
36600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36601 (eval $ac_link) 2>&5
36602 ac_status=$?
36603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36606 (eval $ac_try) 2>&5
36607 ac_status=$?
36608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36609 (exit $ac_status); }; }; then
36610 jm_cv_func_unlink_busy_text=yes
36611 else
36612 echo "$as_me: program exited with status $ac_status" >&5
36613 echo "$as_me: failed program was:" >&5
36614 sed 's/^/| /' conftest.$ac_ext >&5
36616 ( exit $ac_status )
36617 jm_cv_func_unlink_busy_text=no
36619 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36624 echo "$as_me:$LINENO: result: $jm_cv_func_unlink_busy_text" >&5
36625 echo "${ECHO_T}$jm_cv_func_unlink_busy_text" >&6
36627 if test $jm_cv_func_unlink_busy_text = no; then
36628 INSTALL=$ac_install_sh
36632 # These tests are for df.
36636 for ac_func in listmntent getmntinfo
36638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36639 echo "$as_me:$LINENO: checking for $ac_func" >&5
36640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36641 if eval "test \"\${$as_ac_var+set}\" = set"; then
36642 echo $ECHO_N "(cached) $ECHO_C" >&6
36643 else
36644 cat >conftest.$ac_ext <<_ACEOF
36645 #line $LINENO "configure"
36646 /* confdefs.h. */
36647 _ACEOF
36648 cat confdefs.h >>conftest.$ac_ext
36649 cat >>conftest.$ac_ext <<_ACEOF
36650 /* end confdefs.h. */
36651 /* System header to define __stub macros and hopefully few prototypes,
36652 which can conflict with char $ac_func (); below.
36653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36654 <limits.h> exists even on freestanding compilers. */
36655 #ifdef __STDC__
36656 # include <limits.h>
36657 #else
36658 # include <assert.h>
36659 #endif
36660 /* Override any gcc2 internal prototype to avoid an error. */
36661 #ifdef __cplusplus
36662 extern "C"
36664 #endif
36665 /* We use char because int might match the return type of a gcc2
36666 builtin and then its argument prototype would still apply. */
36667 char $ac_func ();
36668 /* The GNU C library defines this for functions which it implements
36669 to always fail with ENOSYS. Some functions are actually named
36670 something starting with __ and the normal name is an alias. */
36671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36672 choke me
36673 #else
36674 char (*f) () = $ac_func;
36675 #endif
36676 #ifdef __cplusplus
36678 #endif
36681 main ()
36683 return f != $ac_func;
36685 return 0;
36687 _ACEOF
36688 rm -f conftest.$ac_objext conftest$ac_exeext
36689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36690 (eval $ac_link) 2>&5
36691 ac_status=$?
36692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36693 (exit $ac_status); } &&
36694 { ac_try='test -s conftest$ac_exeext'
36695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36696 (eval $ac_try) 2>&5
36697 ac_status=$?
36698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36699 (exit $ac_status); }; }; then
36700 eval "$as_ac_var=yes"
36701 else
36702 echo "$as_me: failed program was:" >&5
36703 sed 's/^/| /' conftest.$ac_ext >&5
36705 eval "$as_ac_var=no"
36707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36711 if test `eval echo '${'$as_ac_var'}'` = yes; then
36712 cat >>confdefs.h <<_ACEOF
36713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36714 _ACEOF
36717 done
36724 for ac_header in mntent.h sys/param.h sys/ucred.h sys/mount.h sys/fs_types.h
36726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36728 echo "$as_me:$LINENO: checking for $ac_header" >&5
36729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36731 echo $ECHO_N "(cached) $ECHO_C" >&6
36733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36735 else
36736 # Is the header compilable?
36737 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36739 cat >conftest.$ac_ext <<_ACEOF
36740 #line $LINENO "configure"
36741 /* confdefs.h. */
36742 _ACEOF
36743 cat confdefs.h >>conftest.$ac_ext
36744 cat >>conftest.$ac_ext <<_ACEOF
36745 /* end confdefs.h. */
36746 $ac_includes_default
36747 #include <$ac_header>
36748 _ACEOF
36749 rm -f conftest.$ac_objext
36750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36751 (eval $ac_compile) 2>&5
36752 ac_status=$?
36753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36754 (exit $ac_status); } &&
36755 { ac_try='test -s conftest.$ac_objext'
36756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36757 (eval $ac_try) 2>&5
36758 ac_status=$?
36759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36760 (exit $ac_status); }; }; then
36761 ac_header_compiler=yes
36762 else
36763 echo "$as_me: failed program was:" >&5
36764 sed 's/^/| /' conftest.$ac_ext >&5
36766 ac_header_compiler=no
36768 rm -f conftest.$ac_objext conftest.$ac_ext
36769 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36770 echo "${ECHO_T}$ac_header_compiler" >&6
36772 # Is the header present?
36773 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36774 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36775 cat >conftest.$ac_ext <<_ACEOF
36776 #line $LINENO "configure"
36777 /* confdefs.h. */
36778 _ACEOF
36779 cat confdefs.h >>conftest.$ac_ext
36780 cat >>conftest.$ac_ext <<_ACEOF
36781 /* end confdefs.h. */
36782 #include <$ac_header>
36783 _ACEOF
36784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36786 ac_status=$?
36787 grep -v '^ *+' conftest.er1 >conftest.err
36788 rm -f conftest.er1
36789 cat conftest.err >&5
36790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36791 (exit $ac_status); } >/dev/null; then
36792 if test -s conftest.err; then
36793 ac_cpp_err=$ac_c_preproc_warn_flag
36794 else
36795 ac_cpp_err=
36797 else
36798 ac_cpp_err=yes
36800 if test -z "$ac_cpp_err"; then
36801 ac_header_preproc=yes
36802 else
36803 echo "$as_me: failed program was:" >&5
36804 sed 's/^/| /' conftest.$ac_ext >&5
36806 ac_header_preproc=no
36808 rm -f conftest.err conftest.$ac_ext
36809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36810 echo "${ECHO_T}$ac_header_preproc" >&6
36812 # So? What about this header?
36813 case $ac_header_compiler:$ac_header_preproc in
36814 yes:no )
36815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36820 cat <<\_ASBOX
36821 ## ------------------------------------ ##
36822 ## Report this to bug-autoconf@gnu.org. ##
36823 ## ------------------------------------ ##
36824 _ASBOX
36826 sed "s/^/$as_me: WARNING: /" >&2
36828 no:yes )
36829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36832 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36836 cat <<\_ASBOX
36837 ## ------------------------------------ ##
36838 ## Report this to bug-autoconf@gnu.org. ##
36839 ## ------------------------------------ ##
36840 _ASBOX
36842 sed "s/^/$as_me: WARNING: /" >&2
36844 esac
36845 echo "$as_me:$LINENO: checking for $ac_header" >&5
36846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36848 echo $ECHO_N "(cached) $ECHO_C" >&6
36849 else
36850 eval "$as_ac_Header=$ac_header_preproc"
36852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36856 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36857 cat >>confdefs.h <<_ACEOF
36858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36859 _ACEOF
36863 done
36865 getfsstat_includes="\
36866 $ac_includes_default
36867 #if HAVE_SYS_PARAM_H
36868 # include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */
36869 #endif
36870 #if HAVE_SYS_UCRED_H
36871 # include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */
36872 #endif
36873 #if HAVE_SYS_MOUNT_H
36874 # include <sys/mount.h>
36875 #endif
36876 #if HAVE_SYS_FS_TYPES_H
36877 # include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */
36878 #endif
36880 echo "$as_me:$LINENO: checking for struct fsstat.f_fstypename" >&5
36881 echo $ECHO_N "checking for struct fsstat.f_fstypename... $ECHO_C" >&6
36882 if test "${ac_cv_member_struct_fsstat_f_fstypename+set}" = set; then
36883 echo $ECHO_N "(cached) $ECHO_C" >&6
36884 else
36885 cat >conftest.$ac_ext <<_ACEOF
36886 #line $LINENO "configure"
36887 /* confdefs.h. */
36888 _ACEOF
36889 cat confdefs.h >>conftest.$ac_ext
36890 cat >>conftest.$ac_ext <<_ACEOF
36891 /* end confdefs.h. */
36892 $getfsstat_includes
36895 main ()
36897 static struct fsstat ac_aggr;
36898 if (ac_aggr.f_fstypename)
36899 return 0;
36901 return 0;
36903 _ACEOF
36904 rm -f conftest.$ac_objext
36905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36906 (eval $ac_compile) 2>&5
36907 ac_status=$?
36908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36909 (exit $ac_status); } &&
36910 { ac_try='test -s conftest.$ac_objext'
36911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36912 (eval $ac_try) 2>&5
36913 ac_status=$?
36914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36915 (exit $ac_status); }; }; then
36916 ac_cv_member_struct_fsstat_f_fstypename=yes
36917 else
36918 echo "$as_me: failed program was:" >&5
36919 sed 's/^/| /' conftest.$ac_ext >&5
36921 cat >conftest.$ac_ext <<_ACEOF
36922 #line $LINENO "configure"
36923 /* confdefs.h. */
36924 _ACEOF
36925 cat confdefs.h >>conftest.$ac_ext
36926 cat >>conftest.$ac_ext <<_ACEOF
36927 /* end confdefs.h. */
36928 $getfsstat_includes
36931 main ()
36933 static struct fsstat ac_aggr;
36934 if (sizeof ac_aggr.f_fstypename)
36935 return 0;
36937 return 0;
36939 _ACEOF
36940 rm -f conftest.$ac_objext
36941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36942 (eval $ac_compile) 2>&5
36943 ac_status=$?
36944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36945 (exit $ac_status); } &&
36946 { ac_try='test -s conftest.$ac_objext'
36947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36948 (eval $ac_try) 2>&5
36949 ac_status=$?
36950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36951 (exit $ac_status); }; }; then
36952 ac_cv_member_struct_fsstat_f_fstypename=yes
36953 else
36954 echo "$as_me: failed program was:" >&5
36955 sed 's/^/| /' conftest.$ac_ext >&5
36957 ac_cv_member_struct_fsstat_f_fstypename=no
36959 rm -f conftest.$ac_objext conftest.$ac_ext
36961 rm -f conftest.$ac_objext conftest.$ac_ext
36963 echo "$as_me:$LINENO: result: $ac_cv_member_struct_fsstat_f_fstypename" >&5
36964 echo "${ECHO_T}$ac_cv_member_struct_fsstat_f_fstypename" >&6
36965 if test $ac_cv_member_struct_fsstat_f_fstypename = yes; then
36967 cat >>confdefs.h <<_ACEOF
36968 #define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1
36969 _ACEOF
36975 # Determine how to get the list of mounted filesystems.
36976 ac_list_mounted_fs=
36978 # If the getmntent function is available but not in the standard library,
36979 # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
36980 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
36981 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
36982 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
36983 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
36984 echo $ECHO_N "(cached) $ECHO_C" >&6
36985 else
36986 ac_check_lib_save_LIBS=$LIBS
36987 LIBS="-lsun $LIBS"
36988 cat >conftest.$ac_ext <<_ACEOF
36989 #line $LINENO "configure"
36990 /* confdefs.h. */
36991 _ACEOF
36992 cat confdefs.h >>conftest.$ac_ext
36993 cat >>conftest.$ac_ext <<_ACEOF
36994 /* end confdefs.h. */
36996 /* Override any gcc2 internal prototype to avoid an error. */
36997 #ifdef __cplusplus
36998 extern "C"
36999 #endif
37000 /* We use char because int might match the return type of a gcc2
37001 builtin and then its argument prototype would still apply. */
37002 char getmntent ();
37004 main ()
37006 getmntent ();
37008 return 0;
37010 _ACEOF
37011 rm -f conftest.$ac_objext conftest$ac_exeext
37012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37013 (eval $ac_link) 2>&5
37014 ac_status=$?
37015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37016 (exit $ac_status); } &&
37017 { ac_try='test -s conftest$ac_exeext'
37018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37019 (eval $ac_try) 2>&5
37020 ac_status=$?
37021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37022 (exit $ac_status); }; }; then
37023 ac_cv_lib_sun_getmntent=yes
37024 else
37025 echo "$as_me: failed program was:" >&5
37026 sed 's/^/| /' conftest.$ac_ext >&5
37028 ac_cv_lib_sun_getmntent=no
37030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37031 LIBS=$ac_check_lib_save_LIBS
37033 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
37034 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
37035 if test $ac_cv_lib_sun_getmntent = yes; then
37036 LIBS="-lsun $LIBS"
37037 else
37038 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
37039 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
37040 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
37041 echo $ECHO_N "(cached) $ECHO_C" >&6
37042 else
37043 ac_check_lib_save_LIBS=$LIBS
37044 LIBS="-lseq $LIBS"
37045 cat >conftest.$ac_ext <<_ACEOF
37046 #line $LINENO "configure"
37047 /* confdefs.h. */
37048 _ACEOF
37049 cat confdefs.h >>conftest.$ac_ext
37050 cat >>conftest.$ac_ext <<_ACEOF
37051 /* end confdefs.h. */
37053 /* Override any gcc2 internal prototype to avoid an error. */
37054 #ifdef __cplusplus
37055 extern "C"
37056 #endif
37057 /* We use char because int might match the return type of a gcc2
37058 builtin and then its argument prototype would still apply. */
37059 char getmntent ();
37061 main ()
37063 getmntent ();
37065 return 0;
37067 _ACEOF
37068 rm -f conftest.$ac_objext conftest$ac_exeext
37069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37070 (eval $ac_link) 2>&5
37071 ac_status=$?
37072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37073 (exit $ac_status); } &&
37074 { ac_try='test -s conftest$ac_exeext'
37075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37076 (eval $ac_try) 2>&5
37077 ac_status=$?
37078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37079 (exit $ac_status); }; }; then
37080 ac_cv_lib_seq_getmntent=yes
37081 else
37082 echo "$as_me: failed program was:" >&5
37083 sed 's/^/| /' conftest.$ac_ext >&5
37085 ac_cv_lib_seq_getmntent=no
37087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37088 LIBS=$ac_check_lib_save_LIBS
37090 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
37091 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
37092 if test $ac_cv_lib_seq_getmntent = yes; then
37093 LIBS="-lseq $LIBS"
37094 else
37095 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
37096 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
37097 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
37098 echo $ECHO_N "(cached) $ECHO_C" >&6
37099 else
37100 ac_check_lib_save_LIBS=$LIBS
37101 LIBS="-lgen $LIBS"
37102 cat >conftest.$ac_ext <<_ACEOF
37103 #line $LINENO "configure"
37104 /* confdefs.h. */
37105 _ACEOF
37106 cat confdefs.h >>conftest.$ac_ext
37107 cat >>conftest.$ac_ext <<_ACEOF
37108 /* end confdefs.h. */
37110 /* Override any gcc2 internal prototype to avoid an error. */
37111 #ifdef __cplusplus
37112 extern "C"
37113 #endif
37114 /* We use char because int might match the return type of a gcc2
37115 builtin and then its argument prototype would still apply. */
37116 char getmntent ();
37118 main ()
37120 getmntent ();
37122 return 0;
37124 _ACEOF
37125 rm -f conftest.$ac_objext conftest$ac_exeext
37126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37127 (eval $ac_link) 2>&5
37128 ac_status=$?
37129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37130 (exit $ac_status); } &&
37131 { ac_try='test -s conftest$ac_exeext'
37132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37133 (eval $ac_try) 2>&5
37134 ac_status=$?
37135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37136 (exit $ac_status); }; }; then
37137 ac_cv_lib_gen_getmntent=yes
37138 else
37139 echo "$as_me: failed program was:" >&5
37140 sed 's/^/| /' conftest.$ac_ext >&5
37142 ac_cv_lib_gen_getmntent=no
37144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37145 LIBS=$ac_check_lib_save_LIBS
37147 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
37148 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
37149 if test $ac_cv_lib_gen_getmntent = yes; then
37150 LIBS="-lgen $LIBS"
37158 for ac_func in getmntent
37160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37161 echo "$as_me:$LINENO: checking for $ac_func" >&5
37162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37163 if eval "test \"\${$as_ac_var+set}\" = set"; then
37164 echo $ECHO_N "(cached) $ECHO_C" >&6
37165 else
37166 cat >conftest.$ac_ext <<_ACEOF
37167 #line $LINENO "configure"
37168 /* confdefs.h. */
37169 _ACEOF
37170 cat confdefs.h >>conftest.$ac_ext
37171 cat >>conftest.$ac_ext <<_ACEOF
37172 /* end confdefs.h. */
37173 /* System header to define __stub macros and hopefully few prototypes,
37174 which can conflict with char $ac_func (); below.
37175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37176 <limits.h> exists even on freestanding compilers. */
37177 #ifdef __STDC__
37178 # include <limits.h>
37179 #else
37180 # include <assert.h>
37181 #endif
37182 /* Override any gcc2 internal prototype to avoid an error. */
37183 #ifdef __cplusplus
37184 extern "C"
37186 #endif
37187 /* We use char because int might match the return type of a gcc2
37188 builtin and then its argument prototype would still apply. */
37189 char $ac_func ();
37190 /* The GNU C library defines this for functions which it implements
37191 to always fail with ENOSYS. Some functions are actually named
37192 something starting with __ and the normal name is an alias. */
37193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37194 choke me
37195 #else
37196 char (*f) () = $ac_func;
37197 #endif
37198 #ifdef __cplusplus
37200 #endif
37203 main ()
37205 return f != $ac_func;
37207 return 0;
37209 _ACEOF
37210 rm -f conftest.$ac_objext conftest$ac_exeext
37211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37212 (eval $ac_link) 2>&5
37213 ac_status=$?
37214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37215 (exit $ac_status); } &&
37216 { ac_try='test -s conftest$ac_exeext'
37217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37218 (eval $ac_try) 2>&5
37219 ac_status=$?
37220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37221 (exit $ac_status); }; }; then
37222 eval "$as_ac_var=yes"
37223 else
37224 echo "$as_me: failed program was:" >&5
37225 sed 's/^/| /' conftest.$ac_ext >&5
37227 eval "$as_ac_var=no"
37229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37233 if test `eval echo '${'$as_ac_var'}'` = yes; then
37234 cat >>confdefs.h <<_ACEOF
37235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37236 _ACEOF
37239 done
37243 # This test must precede the ones for getmntent because Unicos-9 is
37244 # reported to have the getmntent function, but its support is incompatible
37245 # with other getmntent implementations.
37247 # NOTE: Normally, I wouldn't use a check for system type as I've done for
37248 # `CRAY' below since that goes against the whole autoconf philosophy. But
37249 # I think there is too great a chance that some non-Cray system has a
37250 # function named listmntent to risk the false positive.
37252 if test -z "$ac_list_mounted_fs"; then
37253 # Cray UNICOS 9
37254 echo "$as_me:$LINENO: checking for listmntent of Cray/Unicos-9" >&5
37255 echo $ECHO_N "checking for listmntent of Cray/Unicos-9... $ECHO_C" >&6
37256 if test "${fu_cv_sys_mounted_cray_listmntent+set}" = set; then
37257 echo $ECHO_N "(cached) $ECHO_C" >&6
37258 else
37259 fu_cv_sys_mounted_cray_listmntent=no
37260 cat >conftest.$ac_ext <<_ACEOF
37261 #line $LINENO "configure"
37262 /* confdefs.h. */
37263 _ACEOF
37264 cat confdefs.h >>conftest.$ac_ext
37265 cat >>conftest.$ac_ext <<_ACEOF
37266 /* end confdefs.h. */
37267 #ifdef _CRAY
37269 #endif
37271 _ACEOF
37272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37273 $EGREP "yes" >/dev/null 2>&1; then
37274 test $ac_cv_func_listmntent = yes \
37275 && fu_cv_sys_mounted_cray_listmntent=yes
37278 rm -f conftest*
37284 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_cray_listmntent" >&5
37285 echo "${ECHO_T}$fu_cv_sys_mounted_cray_listmntent" >&6
37286 if test $fu_cv_sys_mounted_cray_listmntent = yes; then
37287 ac_list_mounted_fs=found
37289 cat >>confdefs.h <<\_ACEOF
37290 #define MOUNTED_LISTMNTENT 1
37291 _ACEOF
37296 if test $ac_cv_func_getmntent = yes; then
37298 # This system has the getmntent function.
37299 # Determine whether it's the one-argument variant or the two-argument one.
37301 if test -z "$ac_list_mounted_fs"; then
37302 # 4.3BSD, SunOS, HP-UX, Dynix, Irix
37303 echo "$as_me:$LINENO: checking for one-argument getmntent function" >&5
37304 echo $ECHO_N "checking for one-argument getmntent function... $ECHO_C" >&6
37305 if test "${fu_cv_sys_mounted_getmntent1+set}" = set; then
37306 echo $ECHO_N "(cached) $ECHO_C" >&6
37307 else
37308 cat >conftest.$ac_ext <<_ACEOF
37309 #line $LINENO "configure"
37310 /* confdefs.h. */
37311 _ACEOF
37312 cat confdefs.h >>conftest.$ac_ext
37313 cat >>conftest.$ac_ext <<_ACEOF
37314 /* end confdefs.h. */
37316 /* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */
37317 #include <stdio.h>
37319 #include <mntent.h>
37320 #if !defined MOUNTED
37321 # if defined _PATH_MOUNTED /* GNU libc */
37322 # define MOUNTED _PATH_MOUNTED
37323 # endif
37324 # if defined MNT_MNTTAB /* HP-UX. */
37325 # define MOUNTED MNT_MNTTAB
37326 # endif
37327 # if defined MNTTABNAME /* Dynix. */
37328 # define MOUNTED MNTTABNAME
37329 # endif
37330 #endif
37333 main ()
37335 struct mntent *mnt = 0; char *table = MOUNTED;
37337 return 0;
37339 _ACEOF
37340 rm -f conftest.$ac_objext
37341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37342 (eval $ac_compile) 2>&5
37343 ac_status=$?
37344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37345 (exit $ac_status); } &&
37346 { ac_try='test -s conftest.$ac_objext'
37347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37348 (eval $ac_try) 2>&5
37349 ac_status=$?
37350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37351 (exit $ac_status); }; }; then
37352 fu_cv_sys_mounted_getmntent1=yes
37353 else
37354 echo "$as_me: failed program was:" >&5
37355 sed 's/^/| /' conftest.$ac_ext >&5
37357 fu_cv_sys_mounted_getmntent1=no
37359 rm -f conftest.$ac_objext conftest.$ac_ext
37362 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent1" >&5
37363 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent1" >&6
37364 if test $fu_cv_sys_mounted_getmntent1 = yes; then
37365 ac_list_mounted_fs=found
37367 cat >>confdefs.h <<\_ACEOF
37368 #define MOUNTED_GETMNTENT1 1
37369 _ACEOF
37374 if test -z "$ac_list_mounted_fs"; then
37375 # SVR4
37376 echo "$as_me:$LINENO: checking for two-argument getmntent function" >&5
37377 echo $ECHO_N "checking for two-argument getmntent function... $ECHO_C" >&6
37378 if test "${fu_cv_sys_mounted_getmntent2+set}" = set; then
37379 echo $ECHO_N "(cached) $ECHO_C" >&6
37380 else
37381 cat >conftest.$ac_ext <<_ACEOF
37382 #line $LINENO "configure"
37383 /* confdefs.h. */
37384 _ACEOF
37385 cat confdefs.h >>conftest.$ac_ext
37386 cat >>conftest.$ac_ext <<_ACEOF
37387 /* end confdefs.h. */
37388 #include <sys/mnttab.h>
37390 _ACEOF
37391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37392 $EGREP "getmntent" >/dev/null 2>&1; then
37393 fu_cv_sys_mounted_getmntent2=yes
37394 else
37395 fu_cv_sys_mounted_getmntent2=no
37397 rm -f conftest*
37401 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntent2" >&5
37402 echo "${ECHO_T}$fu_cv_sys_mounted_getmntent2" >&6
37403 if test $fu_cv_sys_mounted_getmntent2 = yes; then
37404 ac_list_mounted_fs=found
37406 cat >>confdefs.h <<\_ACEOF
37407 #define MOUNTED_GETMNTENT2 1
37408 _ACEOF
37415 if test -z "$ac_list_mounted_fs"; then
37416 # DEC Alpha running OSF/1, and Apple Darwin 1.3.
37417 # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
37419 echo "$as_me:$LINENO: checking for getfsstat function" >&5
37420 echo $ECHO_N "checking for getfsstat function... $ECHO_C" >&6
37421 if test "${fu_cv_sys_mounted_getfsstat+set}" = set; then
37422 echo $ECHO_N "(cached) $ECHO_C" >&6
37423 else
37424 cat >conftest.$ac_ext <<_ACEOF
37425 #line $LINENO "configure"
37426 /* confdefs.h. */
37427 _ACEOF
37428 cat confdefs.h >>conftest.$ac_ext
37429 cat >>conftest.$ac_ext <<_ACEOF
37430 /* end confdefs.h. */
37432 #include <sys/types.h>
37433 #if HAVE_STRUCT_FSSTAT_F_FSTYPENAME
37434 # define FS_TYPE(Ent) ((Ent).f_fstypename)
37435 #else
37436 # define FS_TYPE(Ent) mnt_names[(Ent).f_type]
37437 #endif
37438 $getfsstat_includes
37441 main ()
37443 struct statfs *stats;
37444 int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
37445 char *t = FS_TYPE (*stats);
37447 return 0;
37449 _ACEOF
37450 rm -f conftest.$ac_objext conftest$ac_exeext
37451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37452 (eval $ac_link) 2>&5
37453 ac_status=$?
37454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37455 (exit $ac_status); } &&
37456 { ac_try='test -s conftest$ac_exeext'
37457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37458 (eval $ac_try) 2>&5
37459 ac_status=$?
37460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37461 (exit $ac_status); }; }; then
37462 fu_cv_sys_mounted_getfsstat=yes
37463 else
37464 echo "$as_me: failed program was:" >&5
37465 sed 's/^/| /' conftest.$ac_ext >&5
37467 fu_cv_sys_mounted_getfsstat=no
37469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37472 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getfsstat" >&5
37473 echo "${ECHO_T}$fu_cv_sys_mounted_getfsstat" >&6
37474 if test $fu_cv_sys_mounted_getfsstat = yes; then
37475 ac_list_mounted_fs=found
37477 cat >>confdefs.h <<\_ACEOF
37478 #define MOUNTED_GETFSSTAT 1
37479 _ACEOF
37484 if test -z "$ac_list_mounted_fs"; then
37485 # AIX.
37486 echo "$as_me:$LINENO: checking for mntctl function and struct vmount" >&5
37487 echo $ECHO_N "checking for mntctl function and struct vmount... $ECHO_C" >&6
37488 if test "${fu_cv_sys_mounted_vmount+set}" = set; then
37489 echo $ECHO_N "(cached) $ECHO_C" >&6
37490 else
37491 cat >conftest.$ac_ext <<_ACEOF
37492 #line $LINENO "configure"
37493 /* confdefs.h. */
37494 _ACEOF
37495 cat confdefs.h >>conftest.$ac_ext
37496 cat >>conftest.$ac_ext <<_ACEOF
37497 /* end confdefs.h. */
37498 #include <fshelp.h>
37499 _ACEOF
37500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37502 ac_status=$?
37503 grep -v '^ *+' conftest.er1 >conftest.err
37504 rm -f conftest.er1
37505 cat conftest.err >&5
37506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37507 (exit $ac_status); } >/dev/null; then
37508 if test -s conftest.err; then
37509 ac_cpp_err=$ac_c_preproc_warn_flag
37510 else
37511 ac_cpp_err=
37513 else
37514 ac_cpp_err=yes
37516 if test -z "$ac_cpp_err"; then
37517 fu_cv_sys_mounted_vmount=yes
37518 else
37519 echo "$as_me: failed program was:" >&5
37520 sed 's/^/| /' conftest.$ac_ext >&5
37522 fu_cv_sys_mounted_vmount=no
37524 rm -f conftest.err conftest.$ac_ext
37527 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_vmount" >&5
37528 echo "${ECHO_T}$fu_cv_sys_mounted_vmount" >&6
37529 if test $fu_cv_sys_mounted_vmount = yes; then
37530 ac_list_mounted_fs=found
37532 cat >>confdefs.h <<\_ACEOF
37533 #define MOUNTED_VMOUNT 1
37534 _ACEOF
37539 if test -z "$ac_list_mounted_fs"; then
37540 # SVR3
37541 echo "$as_me:$LINENO: checking for FIXME existence of three headers" >&5
37542 echo $ECHO_N "checking for FIXME existence of three headers... $ECHO_C" >&6
37543 if test "${fu_cv_sys_mounted_fread_fstyp+set}" = set; then
37544 echo $ECHO_N "(cached) $ECHO_C" >&6
37545 else
37546 cat >conftest.$ac_ext <<_ACEOF
37547 #line $LINENO "configure"
37548 /* confdefs.h. */
37549 _ACEOF
37550 cat confdefs.h >>conftest.$ac_ext
37551 cat >>conftest.$ac_ext <<_ACEOF
37552 /* end confdefs.h. */
37554 #include <sys/statfs.h>
37555 #include <sys/fstyp.h>
37556 #include <mnttab.h>
37557 _ACEOF
37558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37560 ac_status=$?
37561 grep -v '^ *+' conftest.er1 >conftest.err
37562 rm -f conftest.er1
37563 cat conftest.err >&5
37564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37565 (exit $ac_status); } >/dev/null; then
37566 if test -s conftest.err; then
37567 ac_cpp_err=$ac_c_preproc_warn_flag
37568 else
37569 ac_cpp_err=
37571 else
37572 ac_cpp_err=yes
37574 if test -z "$ac_cpp_err"; then
37575 fu_cv_sys_mounted_fread_fstyp=yes
37576 else
37577 echo "$as_me: failed program was:" >&5
37578 sed 's/^/| /' conftest.$ac_ext >&5
37580 fu_cv_sys_mounted_fread_fstyp=no
37582 rm -f conftest.err conftest.$ac_ext
37585 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread_fstyp" >&5
37586 echo "${ECHO_T}$fu_cv_sys_mounted_fread_fstyp" >&6
37587 if test $fu_cv_sys_mounted_fread_fstyp = yes; then
37588 ac_list_mounted_fs=found
37590 cat >>confdefs.h <<\_ACEOF
37591 #define MOUNTED_FREAD_FSTYP 1
37592 _ACEOF
37597 if test -z "$ac_list_mounted_fs"; then
37598 # 4.4BSD and DEC OSF/1.
37599 echo "$as_me:$LINENO: checking for getmntinfo function" >&5
37600 echo $ECHO_N "checking for getmntinfo function... $ECHO_C" >&6
37601 if test "${fu_cv_sys_mounted_getmntinfo+set}" = set; then
37602 echo $ECHO_N "(cached) $ECHO_C" >&6
37603 else
37605 test "$ac_cv_func_getmntinfo" = yes \
37606 && fu_cv_sys_mounted_getmntinfo=yes \
37607 || fu_cv_sys_mounted_getmntinfo=no
37611 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmntinfo" >&5
37612 echo "${ECHO_T}$fu_cv_sys_mounted_getmntinfo" >&6
37613 if test $fu_cv_sys_mounted_getmntinfo = yes; then
37614 ac_list_mounted_fs=found
37616 cat >>confdefs.h <<\_ACEOF
37617 #define MOUNTED_GETMNTINFO 1
37618 _ACEOF
37623 if test -z "$ac_list_mounted_fs"; then
37624 # Ultrix
37625 echo "$as_me:$LINENO: checking for getmnt function" >&5
37626 echo $ECHO_N "checking for getmnt function... $ECHO_C" >&6
37627 if test "${fu_cv_sys_mounted_getmnt+set}" = set; then
37628 echo $ECHO_N "(cached) $ECHO_C" >&6
37629 else
37630 cat >conftest.$ac_ext <<_ACEOF
37631 #line $LINENO "configure"
37632 /* confdefs.h. */
37633 _ACEOF
37634 cat confdefs.h >>conftest.$ac_ext
37635 cat >>conftest.$ac_ext <<_ACEOF
37636 /* end confdefs.h. */
37638 #include <sys/fs_types.h>
37639 #include <sys/mount.h>
37640 _ACEOF
37641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37643 ac_status=$?
37644 grep -v '^ *+' conftest.er1 >conftest.err
37645 rm -f conftest.er1
37646 cat conftest.err >&5
37647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37648 (exit $ac_status); } >/dev/null; then
37649 if test -s conftest.err; then
37650 ac_cpp_err=$ac_c_preproc_warn_flag
37651 else
37652 ac_cpp_err=
37654 else
37655 ac_cpp_err=yes
37657 if test -z "$ac_cpp_err"; then
37658 fu_cv_sys_mounted_getmnt=yes
37659 else
37660 echo "$as_me: failed program was:" >&5
37661 sed 's/^/| /' conftest.$ac_ext >&5
37663 fu_cv_sys_mounted_getmnt=no
37665 rm -f conftest.err conftest.$ac_ext
37668 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_getmnt" >&5
37669 echo "${ECHO_T}$fu_cv_sys_mounted_getmnt" >&6
37670 if test $fu_cv_sys_mounted_getmnt = yes; then
37671 ac_list_mounted_fs=found
37673 cat >>confdefs.h <<\_ACEOF
37674 #define MOUNTED_GETMNT 1
37675 _ACEOF
37680 if test -z "$ac_list_mounted_fs"; then
37681 # BeOS
37684 for ac_func in next_dev fs_stat_dev
37686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37687 echo "$as_me:$LINENO: checking for $ac_func" >&5
37688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37689 if eval "test \"\${$as_ac_var+set}\" = set"; then
37690 echo $ECHO_N "(cached) $ECHO_C" >&6
37691 else
37692 cat >conftest.$ac_ext <<_ACEOF
37693 #line $LINENO "configure"
37694 /* confdefs.h. */
37695 _ACEOF
37696 cat confdefs.h >>conftest.$ac_ext
37697 cat >>conftest.$ac_ext <<_ACEOF
37698 /* end confdefs.h. */
37699 /* System header to define __stub macros and hopefully few prototypes,
37700 which can conflict with char $ac_func (); below.
37701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37702 <limits.h> exists even on freestanding compilers. */
37703 #ifdef __STDC__
37704 # include <limits.h>
37705 #else
37706 # include <assert.h>
37707 #endif
37708 /* Override any gcc2 internal prototype to avoid an error. */
37709 #ifdef __cplusplus
37710 extern "C"
37712 #endif
37713 /* We use char because int might match the return type of a gcc2
37714 builtin and then its argument prototype would still apply. */
37715 char $ac_func ();
37716 /* The GNU C library defines this for functions which it implements
37717 to always fail with ENOSYS. Some functions are actually named
37718 something starting with __ and the normal name is an alias. */
37719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37720 choke me
37721 #else
37722 char (*f) () = $ac_func;
37723 #endif
37724 #ifdef __cplusplus
37726 #endif
37729 main ()
37731 return f != $ac_func;
37733 return 0;
37735 _ACEOF
37736 rm -f conftest.$ac_objext conftest$ac_exeext
37737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37738 (eval $ac_link) 2>&5
37739 ac_status=$?
37740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37741 (exit $ac_status); } &&
37742 { ac_try='test -s conftest$ac_exeext'
37743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37744 (eval $ac_try) 2>&5
37745 ac_status=$?
37746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37747 (exit $ac_status); }; }; then
37748 eval "$as_ac_var=yes"
37749 else
37750 echo "$as_me: failed program was:" >&5
37751 sed 's/^/| /' conftest.$ac_ext >&5
37753 eval "$as_ac_var=no"
37755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37759 if test `eval echo '${'$as_ac_var'}'` = yes; then
37760 cat >>confdefs.h <<_ACEOF
37761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37762 _ACEOF
37765 done
37768 for ac_header in fs_info.h
37770 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37772 echo "$as_me:$LINENO: checking for $ac_header" >&5
37773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37775 echo $ECHO_N "(cached) $ECHO_C" >&6
37777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37778 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37779 else
37780 # Is the header compilable?
37781 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37783 cat >conftest.$ac_ext <<_ACEOF
37784 #line $LINENO "configure"
37785 /* confdefs.h. */
37786 _ACEOF
37787 cat confdefs.h >>conftest.$ac_ext
37788 cat >>conftest.$ac_ext <<_ACEOF
37789 /* end confdefs.h. */
37790 $ac_includes_default
37791 #include <$ac_header>
37792 _ACEOF
37793 rm -f conftest.$ac_objext
37794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37795 (eval $ac_compile) 2>&5
37796 ac_status=$?
37797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37798 (exit $ac_status); } &&
37799 { ac_try='test -s conftest.$ac_objext'
37800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37801 (eval $ac_try) 2>&5
37802 ac_status=$?
37803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37804 (exit $ac_status); }; }; then
37805 ac_header_compiler=yes
37806 else
37807 echo "$as_me: failed program was:" >&5
37808 sed 's/^/| /' conftest.$ac_ext >&5
37810 ac_header_compiler=no
37812 rm -f conftest.$ac_objext conftest.$ac_ext
37813 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37814 echo "${ECHO_T}$ac_header_compiler" >&6
37816 # Is the header present?
37817 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37819 cat >conftest.$ac_ext <<_ACEOF
37820 #line $LINENO "configure"
37821 /* confdefs.h. */
37822 _ACEOF
37823 cat confdefs.h >>conftest.$ac_ext
37824 cat >>conftest.$ac_ext <<_ACEOF
37825 /* end confdefs.h. */
37826 #include <$ac_header>
37827 _ACEOF
37828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37830 ac_status=$?
37831 grep -v '^ *+' conftest.er1 >conftest.err
37832 rm -f conftest.er1
37833 cat conftest.err >&5
37834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37835 (exit $ac_status); } >/dev/null; then
37836 if test -s conftest.err; then
37837 ac_cpp_err=$ac_c_preproc_warn_flag
37838 else
37839 ac_cpp_err=
37841 else
37842 ac_cpp_err=yes
37844 if test -z "$ac_cpp_err"; then
37845 ac_header_preproc=yes
37846 else
37847 echo "$as_me: failed program was:" >&5
37848 sed 's/^/| /' conftest.$ac_ext >&5
37850 ac_header_preproc=no
37852 rm -f conftest.err conftest.$ac_ext
37853 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37854 echo "${ECHO_T}$ac_header_preproc" >&6
37856 # So? What about this header?
37857 case $ac_header_compiler:$ac_header_preproc in
37858 yes:no )
37859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37864 cat <<\_ASBOX
37865 ## ------------------------------------ ##
37866 ## Report this to bug-autoconf@gnu.org. ##
37867 ## ------------------------------------ ##
37868 _ASBOX
37870 sed "s/^/$as_me: WARNING: /" >&2
37872 no:yes )
37873 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37874 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37875 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37876 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37880 cat <<\_ASBOX
37881 ## ------------------------------------ ##
37882 ## Report this to bug-autoconf@gnu.org. ##
37883 ## ------------------------------------ ##
37884 _ASBOX
37886 sed "s/^/$as_me: WARNING: /" >&2
37888 esac
37889 echo "$as_me:$LINENO: checking for $ac_header" >&5
37890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37892 echo $ECHO_N "(cached) $ECHO_C" >&6
37893 else
37894 eval "$as_ac_Header=$ac_header_preproc"
37896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37901 cat >>confdefs.h <<_ACEOF
37902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37903 _ACEOF
37907 done
37909 echo "$as_me:$LINENO: checking for BEOS mounted file system support functions" >&5
37910 echo $ECHO_N "checking for BEOS mounted file system support functions... $ECHO_C" >&6
37911 if test $ac_cv_header_fs_info_h = yes \
37912 && test $ac_cv_func_next_dev = yes \
37913 && test $ac_cv_func_fs_stat_dev = yes; then
37914 fu_result=yes
37915 else
37916 fu_result=no
37918 echo "$as_me:$LINENO: result: $fu_result" >&5
37919 echo "${ECHO_T}$fu_result" >&6
37920 if test $fu_result = yes; then
37921 ac_list_mounted_fs=found
37923 cat >>confdefs.h <<\_ACEOF
37924 #define MOUNTED_FS_STAT_DEV 1
37925 _ACEOF
37930 if test -z "$ac_list_mounted_fs"; then
37931 # SVR2
37932 echo "$as_me:$LINENO: checking whether it is possible to resort to fread on /etc/mnttab" >&5
37933 echo $ECHO_N "checking whether it is possible to resort to fread on /etc/mnttab... $ECHO_C" >&6
37934 if test "${fu_cv_sys_mounted_fread+set}" = set; then
37935 echo $ECHO_N "(cached) $ECHO_C" >&6
37936 else
37937 cat >conftest.$ac_ext <<_ACEOF
37938 #line $LINENO "configure"
37939 /* confdefs.h. */
37940 _ACEOF
37941 cat confdefs.h >>conftest.$ac_ext
37942 cat >>conftest.$ac_ext <<_ACEOF
37943 /* end confdefs.h. */
37944 #include <mnttab.h>
37945 _ACEOF
37946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37948 ac_status=$?
37949 grep -v '^ *+' conftest.er1 >conftest.err
37950 rm -f conftest.er1
37951 cat conftest.err >&5
37952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37953 (exit $ac_status); } >/dev/null; then
37954 if test -s conftest.err; then
37955 ac_cpp_err=$ac_c_preproc_warn_flag
37956 else
37957 ac_cpp_err=
37959 else
37960 ac_cpp_err=yes
37962 if test -z "$ac_cpp_err"; then
37963 fu_cv_sys_mounted_fread=yes
37964 else
37965 echo "$as_me: failed program was:" >&5
37966 sed 's/^/| /' conftest.$ac_ext >&5
37968 fu_cv_sys_mounted_fread=no
37970 rm -f conftest.err conftest.$ac_ext
37973 echo "$as_me:$LINENO: result: $fu_cv_sys_mounted_fread" >&5
37974 echo "${ECHO_T}$fu_cv_sys_mounted_fread" >&6
37975 if test $fu_cv_sys_mounted_fread = yes; then
37976 ac_list_mounted_fs=found
37978 cat >>confdefs.h <<\_ACEOF
37979 #define MOUNTED_FREAD 1
37980 _ACEOF
37985 if test -z "$ac_list_mounted_fs"; then
37986 { { echo "$as_me:$LINENO: error: could not determine how to read list of mounted filesystems" >&5
37987 echo "$as_me: error: could not determine how to read list of mounted filesystems" >&2;}
37988 { (exit 1); exit 1; }; }
37989 # FIXME -- no need to abort building the whole package
37990 # Can't build mountlist.c or anything that needs its functions
37993 if test $ac_list_mounted_fs = found; then
37994 list_mounted_fs=yes
37995 else
37996 list_mounted_fs=no
38002 echo "$as_me:$LINENO: checking for f_fstypename in struct statfs" >&5
38003 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6
38004 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
38005 echo $ECHO_N "(cached) $ECHO_C" >&6
38006 else
38008 cat >conftest.$ac_ext <<_ACEOF
38009 #line $LINENO "configure"
38010 /* confdefs.h. */
38011 _ACEOF
38012 cat confdefs.h >>conftest.$ac_ext
38013 cat >>conftest.$ac_ext <<_ACEOF
38014 /* end confdefs.h. */
38016 #include <sys/param.h>
38017 #include <sys/types.h>
38018 #include <sys/mount.h>
38021 main ()
38023 struct statfs s; int i = sizeof s.f_fstypename;
38025 return 0;
38027 _ACEOF
38028 rm -f conftest.$ac_objext
38029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38030 (eval $ac_compile) 2>&5
38031 ac_status=$?
38032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38033 (exit $ac_status); } &&
38034 { ac_try='test -s conftest.$ac_objext'
38035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38036 (eval $ac_try) 2>&5
38037 ac_status=$?
38038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38039 (exit $ac_status); }; }; then
38040 fu_cv_sys_f_fstypename_in_statfs=yes
38041 else
38042 echo "$as_me: failed program was:" >&5
38043 sed 's/^/| /' conftest.$ac_ext >&5
38045 fu_cv_sys_f_fstypename_in_statfs=no
38048 rm -f conftest.$ac_objext conftest.$ac_ext
38052 echo "$as_me:$LINENO: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
38053 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6
38055 if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
38057 cat >>confdefs.h <<\_ACEOF
38058 #define HAVE_F_FSTYPENAME_IN_STATFS 1
38059 _ACEOF
38066 echo "checking how to get filesystem space usage..."
38067 ac_fsusage_space=no
38069 # Perform only the link test since it seems there are no variants of the
38070 # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
38071 # because that got a false positive on SCO OSR5. Adding the declaration
38072 # of a `struct statvfs' causes this test to fail (as it should) on such
38073 # systems. That system is reported to work fine with STAT_STATFS4 which
38074 # is what it gets when this test fails.
38075 if test $ac_fsusage_space = no; then
38076 # SVR4
38077 echo "$as_me:$LINENO: checking for statvfs function (SVR4)" >&5
38078 echo $ECHO_N "checking for statvfs function (SVR4)... $ECHO_C" >&6
38079 if test "${fu_cv_sys_stat_statvfs+set}" = set; then
38080 echo $ECHO_N "(cached) $ECHO_C" >&6
38081 else
38082 cat >conftest.$ac_ext <<_ACEOF
38083 #line $LINENO "configure"
38084 /* confdefs.h. */
38085 _ACEOF
38086 cat confdefs.h >>conftest.$ac_ext
38087 cat >>conftest.$ac_ext <<_ACEOF
38088 /* end confdefs.h. */
38089 #include <sys/types.h>
38090 #ifdef __GLIBC__
38091 Do not use statvfs on systems with GNU libc, because that function stats
38092 all preceding entries in /proc/mounts, and that makes df hang if even
38093 one of the corresponding file systems is hard-mounted, but not available.
38094 #endif
38095 #include <sys/statvfs.h>
38097 main ()
38099 struct statvfs fsd; statvfs (0, &fsd);
38101 return 0;
38103 _ACEOF
38104 rm -f conftest.$ac_objext conftest$ac_exeext
38105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38106 (eval $ac_link) 2>&5
38107 ac_status=$?
38108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38109 (exit $ac_status); } &&
38110 { ac_try='test -s conftest$ac_exeext'
38111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38112 (eval $ac_try) 2>&5
38113 ac_status=$?
38114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38115 (exit $ac_status); }; }; then
38116 fu_cv_sys_stat_statvfs=yes
38117 else
38118 echo "$as_me: failed program was:" >&5
38119 sed 's/^/| /' conftest.$ac_ext >&5
38121 fu_cv_sys_stat_statvfs=no
38123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38125 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
38126 echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
38127 if test $fu_cv_sys_stat_statvfs = yes; then
38128 ac_fsusage_space=yes
38130 cat >>confdefs.h <<\_ACEOF
38131 #define STAT_STATVFS 1
38132 _ACEOF
38137 if test $ac_fsusage_space = no; then
38138 # DEC Alpha running OSF/1
38139 echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
38140 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
38141 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
38142 echo $ECHO_N "(cached) $ECHO_C" >&6
38143 else
38144 if test "$cross_compiling" = yes; then
38145 fu_cv_sys_stat_statfs3_osf1=no
38146 else
38147 cat >conftest.$ac_ext <<_ACEOF
38148 #line $LINENO "configure"
38149 /* confdefs.h. */
38150 _ACEOF
38151 cat confdefs.h >>conftest.$ac_ext
38152 cat >>conftest.$ac_ext <<_ACEOF
38153 /* end confdefs.h. */
38155 #include <sys/param.h>
38156 #include <sys/types.h>
38157 #include <sys/mount.h>
38158 main ()
38160 struct statfs fsd;
38161 fsd.f_fsize = 0;
38162 exit (statfs (".", &fsd, sizeof (struct statfs)));
38164 _ACEOF
38165 rm -f conftest$ac_exeext
38166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38167 (eval $ac_link) 2>&5
38168 ac_status=$?
38169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38172 (eval $ac_try) 2>&5
38173 ac_status=$?
38174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38175 (exit $ac_status); }; }; then
38176 fu_cv_sys_stat_statfs3_osf1=yes
38177 else
38178 echo "$as_me: program exited with status $ac_status" >&5
38179 echo "$as_me: failed program was:" >&5
38180 sed 's/^/| /' conftest.$ac_ext >&5
38182 ( exit $ac_status )
38183 fu_cv_sys_stat_statfs3_osf1=no
38185 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38189 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
38190 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6
38191 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
38192 ac_fsusage_space=yes
38194 cat >>confdefs.h <<\_ACEOF
38195 #define STAT_STATFS3_OSF1 1
38196 _ACEOF
38201 if test $ac_fsusage_space = no; then
38202 # AIX
38203 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
38204 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
38205 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
38206 echo $ECHO_N "(cached) $ECHO_C" >&6
38207 else
38208 if test "$cross_compiling" = yes; then
38209 fu_cv_sys_stat_statfs2_bsize=no
38210 else
38211 cat >conftest.$ac_ext <<_ACEOF
38212 #line $LINENO "configure"
38213 /* confdefs.h. */
38214 _ACEOF
38215 cat confdefs.h >>conftest.$ac_ext
38216 cat >>conftest.$ac_ext <<_ACEOF
38217 /* end confdefs.h. */
38219 #ifdef HAVE_SYS_PARAM_H
38220 #include <sys/param.h>
38221 #endif
38222 #ifdef HAVE_SYS_MOUNT_H
38223 #include <sys/mount.h>
38224 #endif
38225 #ifdef HAVE_SYS_VFS_H
38226 #include <sys/vfs.h>
38227 #endif
38228 main ()
38230 struct statfs fsd;
38231 fsd.f_bsize = 0;
38232 exit (statfs (".", &fsd));
38234 _ACEOF
38235 rm -f conftest$ac_exeext
38236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38237 (eval $ac_link) 2>&5
38238 ac_status=$?
38239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38242 (eval $ac_try) 2>&5
38243 ac_status=$?
38244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38245 (exit $ac_status); }; }; then
38246 fu_cv_sys_stat_statfs2_bsize=yes
38247 else
38248 echo "$as_me: program exited with status $ac_status" >&5
38249 echo "$as_me: failed program was:" >&5
38250 sed 's/^/| /' conftest.$ac_ext >&5
38252 ( exit $ac_status )
38253 fu_cv_sys_stat_statfs2_bsize=no
38255 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38259 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
38260 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
38261 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
38262 ac_fsusage_space=yes
38264 cat >>confdefs.h <<\_ACEOF
38265 #define STAT_STATFS2_BSIZE 1
38266 _ACEOF
38271 if test $ac_fsusage_space = no; then
38272 # SVR3
38273 echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
38274 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
38275 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
38276 echo $ECHO_N "(cached) $ECHO_C" >&6
38277 else
38278 if test "$cross_compiling" = yes; then
38279 fu_cv_sys_stat_statfs4=no
38280 else
38281 cat >conftest.$ac_ext <<_ACEOF
38282 #line $LINENO "configure"
38283 /* confdefs.h. */
38284 _ACEOF
38285 cat confdefs.h >>conftest.$ac_ext
38286 cat >>conftest.$ac_ext <<_ACEOF
38287 /* end confdefs.h. */
38288 #include <sys/types.h>
38289 #include <sys/statfs.h>
38290 main ()
38292 struct statfs fsd;
38293 exit (statfs (".", &fsd, sizeof fsd, 0));
38295 _ACEOF
38296 rm -f conftest$ac_exeext
38297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38298 (eval $ac_link) 2>&5
38299 ac_status=$?
38300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38303 (eval $ac_try) 2>&5
38304 ac_status=$?
38305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38306 (exit $ac_status); }; }; then
38307 fu_cv_sys_stat_statfs4=yes
38308 else
38309 echo "$as_me: program exited with status $ac_status" >&5
38310 echo "$as_me: failed program was:" >&5
38311 sed 's/^/| /' conftest.$ac_ext >&5
38313 ( exit $ac_status )
38314 fu_cv_sys_stat_statfs4=no
38316 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38320 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
38321 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
38322 if test $fu_cv_sys_stat_statfs4 = yes; then
38323 ac_fsusage_space=yes
38325 cat >>confdefs.h <<\_ACEOF
38326 #define STAT_STATFS4 1
38327 _ACEOF
38332 if test $ac_fsusage_space = no; then
38333 # 4.4BSD and NetBSD
38334 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
38335 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
38336 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
38337 echo $ECHO_N "(cached) $ECHO_C" >&6
38338 else
38339 if test "$cross_compiling" = yes; then
38340 fu_cv_sys_stat_statfs2_fsize=no
38341 else
38342 cat >conftest.$ac_ext <<_ACEOF
38343 #line $LINENO "configure"
38344 /* confdefs.h. */
38345 _ACEOF
38346 cat confdefs.h >>conftest.$ac_ext
38347 cat >>conftest.$ac_ext <<_ACEOF
38348 /* end confdefs.h. */
38349 #include <sys/types.h>
38350 #ifdef HAVE_SYS_PARAM_H
38351 #include <sys/param.h>
38352 #endif
38353 #ifdef HAVE_SYS_MOUNT_H
38354 #include <sys/mount.h>
38355 #endif
38356 main ()
38358 struct statfs fsd;
38359 fsd.f_fsize = 0;
38360 exit (statfs (".", &fsd));
38362 _ACEOF
38363 rm -f conftest$ac_exeext
38364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38365 (eval $ac_link) 2>&5
38366 ac_status=$?
38367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38370 (eval $ac_try) 2>&5
38371 ac_status=$?
38372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38373 (exit $ac_status); }; }; then
38374 fu_cv_sys_stat_statfs2_fsize=yes
38375 else
38376 echo "$as_me: program exited with status $ac_status" >&5
38377 echo "$as_me: failed program was:" >&5
38378 sed 's/^/| /' conftest.$ac_ext >&5
38380 ( exit $ac_status )
38381 fu_cv_sys_stat_statfs2_fsize=no
38383 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38387 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
38388 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
38389 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
38390 ac_fsusage_space=yes
38392 cat >>confdefs.h <<\_ACEOF
38393 #define STAT_STATFS2_FSIZE 1
38394 _ACEOF
38399 if test $ac_fsusage_space = no; then
38400 # Ultrix
38401 echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
38402 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
38403 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
38404 echo $ECHO_N "(cached) $ECHO_C" >&6
38405 else
38406 if test "$cross_compiling" = yes; then
38407 fu_cv_sys_stat_fs_data=no
38408 else
38409 cat >conftest.$ac_ext <<_ACEOF
38410 #line $LINENO "configure"
38411 /* confdefs.h. */
38412 _ACEOF
38413 cat confdefs.h >>conftest.$ac_ext
38414 cat >>conftest.$ac_ext <<_ACEOF
38415 /* end confdefs.h. */
38416 #include <sys/types.h>
38417 #ifdef HAVE_SYS_PARAM_H
38418 #include <sys/param.h>
38419 #endif
38420 #ifdef HAVE_SYS_MOUNT_H
38421 #include <sys/mount.h>
38422 #endif
38423 #ifdef HAVE_SYS_FS_TYPES_H
38424 #include <sys/fs_types.h>
38425 #endif
38426 main ()
38428 struct fs_data fsd;
38429 /* Ultrix's statfs returns 1 for success,
38430 0 for not mounted, -1 for failure. */
38431 exit (statfs (".", &fsd) != 1);
38433 _ACEOF
38434 rm -f conftest$ac_exeext
38435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38436 (eval $ac_link) 2>&5
38437 ac_status=$?
38438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38441 (eval $ac_try) 2>&5
38442 ac_status=$?
38443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38444 (exit $ac_status); }; }; then
38445 fu_cv_sys_stat_fs_data=yes
38446 else
38447 echo "$as_me: program exited with status $ac_status" >&5
38448 echo "$as_me: failed program was:" >&5
38449 sed 's/^/| /' conftest.$ac_ext >&5
38451 ( exit $ac_status )
38452 fu_cv_sys_stat_fs_data=no
38454 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38458 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
38459 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
38460 if test $fu_cv_sys_stat_fs_data = yes; then
38461 ac_fsusage_space=yes
38463 cat >>confdefs.h <<\_ACEOF
38464 #define STAT_STATFS2_FS_DATA 1
38465 _ACEOF
38470 if test $ac_fsusage_space = no; then
38471 # SVR2
38472 cat >conftest.$ac_ext <<_ACEOF
38473 #line $LINENO "configure"
38474 /* confdefs.h. */
38475 _ACEOF
38476 cat confdefs.h >>conftest.$ac_ext
38477 cat >>conftest.$ac_ext <<_ACEOF
38478 /* end confdefs.h. */
38479 #include <sys/filsys.h>
38481 _ACEOF
38482 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38484 ac_status=$?
38485 grep -v '^ *+' conftest.er1 >conftest.err
38486 rm -f conftest.er1
38487 cat conftest.err >&5
38488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38489 (exit $ac_status); } >/dev/null; then
38490 if test -s conftest.err; then
38491 ac_cpp_err=$ac_c_preproc_warn_flag
38492 else
38493 ac_cpp_err=
38495 else
38496 ac_cpp_err=yes
38498 if test -z "$ac_cpp_err"; then
38500 cat >>confdefs.h <<\_ACEOF
38501 #define STAT_READ_FILSYS 1
38502 _ACEOF
38504 ac_fsusage_space=yes
38505 else
38506 echo "$as_me: failed program was:" >&5
38507 sed 's/^/| /' conftest.$ac_ext >&5
38511 rm -f conftest.err conftest.$ac_ext
38514 if test $ac_fsusage_space = yes; then
38515 space=yes
38516 else
38517 space=no
38522 if test $list_mounted_fs = yes && test $space = yes; then
38523 DF_PROG=df
38524 LIBOBJS="$LIBOBJS fsusage.$ac_objext"
38525 LIBOBJS="$LIBOBJS mountlist.$ac_objext"
38532 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
38533 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
38534 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
38535 echo $ECHO_N "(cached) $ECHO_C" >&6
38536 else
38537 cat >conftest.$ac_ext <<_ACEOF
38538 #line $LINENO "configure"
38539 /* confdefs.h. */
38540 _ACEOF
38541 cat confdefs.h >>conftest.$ac_ext
38542 cat >>conftest.$ac_ext <<_ACEOF
38543 /* end confdefs.h. */
38544 #include <sys/types.h>
38545 #include <termios.h>
38546 #ifdef TIOCGWINSZ
38548 #endif
38550 _ACEOF
38551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38552 $EGREP "yes" >/dev/null 2>&1; then
38553 ac_cv_sys_tiocgwinsz_in_termios_h=yes
38554 else
38555 ac_cv_sys_tiocgwinsz_in_termios_h=no
38557 rm -f conftest*
38560 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
38561 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
38563 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
38564 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
38565 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
38566 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
38567 echo $ECHO_N "(cached) $ECHO_C" >&6
38568 else
38569 cat >conftest.$ac_ext <<_ACEOF
38570 #line $LINENO "configure"
38571 /* confdefs.h. */
38572 _ACEOF
38573 cat confdefs.h >>conftest.$ac_ext
38574 cat >>conftest.$ac_ext <<_ACEOF
38575 /* end confdefs.h. */
38576 #include <sys/types.h>
38577 #include <sys/ioctl.h>
38578 #ifdef TIOCGWINSZ
38580 #endif
38582 _ACEOF
38583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38584 $EGREP "yes" >/dev/null 2>&1; then
38585 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
38586 else
38587 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
38589 rm -f conftest*
38592 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
38593 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
38595 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
38597 cat >>confdefs.h <<\_ACEOF
38598 #define GWINSZ_IN_SYS_IOCTL 1
38599 _ACEOF
38604 echo "$as_me:$LINENO: checking POSIX termios" >&5
38605 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
38606 if test "${ac_cv_sys_posix_termios+set}" = set; then
38607 echo $ECHO_N "(cached) $ECHO_C" >&6
38608 else
38609 cat >conftest.$ac_ext <<_ACEOF
38610 #line $LINENO "configure"
38611 /* confdefs.h. */
38612 _ACEOF
38613 cat confdefs.h >>conftest.$ac_ext
38614 cat >>conftest.$ac_ext <<_ACEOF
38615 /* end confdefs.h. */
38616 #include <sys/types.h>
38617 #include <unistd.h>
38618 #include <termios.h>
38621 main ()
38623 /* SunOS 4.0.3 has termios.h but not the library calls. */
38624 tcgetattr(0, 0);
38626 return 0;
38628 _ACEOF
38629 rm -f conftest.$ac_objext conftest$ac_exeext
38630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38631 (eval $ac_link) 2>&5
38632 ac_status=$?
38633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38634 (exit $ac_status); } &&
38635 { ac_try='test -s conftest$ac_exeext'
38636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38637 (eval $ac_try) 2>&5
38638 ac_status=$?
38639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38640 (exit $ac_status); }; }; then
38641 ac_cv_sys_posix_termios=yes
38642 else
38643 echo "$as_me: failed program was:" >&5
38644 sed 's/^/| /' conftest.$ac_ext >&5
38646 ac_cv_sys_posix_termios=no
38648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38650 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
38651 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
38654 echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
38655 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
38656 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
38657 echo $ECHO_N "(cached) $ECHO_C" >&6
38658 else
38659 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
38660 if test $ac_cv_sys_posix_termios = yes; then
38661 cat >conftest.$ac_ext <<_ACEOF
38662 #line $LINENO "configure"
38663 /* confdefs.h. */
38664 _ACEOF
38665 cat confdefs.h >>conftest.$ac_ext
38666 cat >>conftest.$ac_ext <<_ACEOF
38667 /* end confdefs.h. */
38668 #include <termios.h>
38669 struct winsize x;
38671 main ()
38673 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
38675 return 0;
38677 _ACEOF
38678 rm -f conftest.$ac_objext
38679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38680 (eval $ac_compile) 2>&5
38681 ac_status=$?
38682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38683 (exit $ac_status); } &&
38684 { ac_try='test -s conftest.$ac_objext'
38685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38686 (eval $ac_try) 2>&5
38687 ac_status=$?
38688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38689 (exit $ac_status); }; }; then
38691 else
38692 echo "$as_me: failed program was:" >&5
38693 sed 's/^/| /' conftest.$ac_ext >&5
38696 rm -f conftest.$ac_objext conftest.$ac_ext
38698 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
38699 cat >conftest.$ac_ext <<_ACEOF
38700 #line $LINENO "configure"
38701 /* confdefs.h. */
38702 _ACEOF
38703 cat confdefs.h >>conftest.$ac_ext
38704 cat >>conftest.$ac_ext <<_ACEOF
38705 /* end confdefs.h. */
38706 #include <sys/ptem.h>
38708 main ()
38710 struct winsize x;
38712 return 0;
38714 _ACEOF
38715 rm -f conftest.$ac_objext
38716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38717 (eval $ac_compile) 2>&5
38718 ac_status=$?
38719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38720 (exit $ac_status); } &&
38721 { ac_try='test -s conftest.$ac_objext'
38722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38723 (eval $ac_try) 2>&5
38724 ac_status=$?
38725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38726 (exit $ac_status); }; }; then
38728 else
38729 echo "$as_me: failed program was:" >&5
38730 sed 's/^/| /' conftest.$ac_ext >&5
38732 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
38734 rm -f conftest.$ac_objext conftest.$ac_ext
38737 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
38738 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
38739 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
38741 cat >>confdefs.h <<\_ACEOF
38742 #define WINSIZE_IN_PTEM 1
38743 _ACEOF
38747 # Check for SunOS statfs brokenness wrt partitions 2GB and larger.
38748 # If <sys/vfs.h> exists and struct statfs has a member named f_spare,
38749 # enable the work-around code in fsusage.c.
38750 echo "$as_me:$LINENO: checking for statfs that truncates block counts" >&5
38751 echo $ECHO_N "checking for statfs that truncates block counts... $ECHO_C" >&6
38752 if test "${fu_cv_sys_truncating_statfs+set}" = set; then
38753 echo $ECHO_N "(cached) $ECHO_C" >&6
38754 else
38755 cat >conftest.$ac_ext <<_ACEOF
38756 #line $LINENO "configure"
38757 /* confdefs.h. */
38758 _ACEOF
38759 cat confdefs.h >>conftest.$ac_ext
38760 cat >>conftest.$ac_ext <<_ACEOF
38761 /* end confdefs.h. */
38763 #if !defined(sun) && !defined(__sun)
38764 choke -- this is a workaround for a Sun-specific problem
38765 #endif
38766 #include <sys/types.h>
38767 #include <sys/vfs.h>
38769 main ()
38771 struct statfs t; long c = *(t.f_spare);
38773 return 0;
38775 _ACEOF
38776 rm -f conftest.$ac_objext
38777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38778 (eval $ac_compile) 2>&5
38779 ac_status=$?
38780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38781 (exit $ac_status); } &&
38782 { ac_try='test -s conftest.$ac_objext'
38783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38784 (eval $ac_try) 2>&5
38785 ac_status=$?
38786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38787 (exit $ac_status); }; }; then
38788 fu_cv_sys_truncating_statfs=yes
38789 else
38790 echo "$as_me: failed program was:" >&5
38791 sed 's/^/| /' conftest.$ac_ext >&5
38793 fu_cv_sys_truncating_statfs=no
38795 rm -f conftest.$ac_objext conftest.$ac_ext
38798 if test $fu_cv_sys_truncating_statfs = yes; then
38800 cat >>confdefs.h <<\_ACEOF
38801 #define STATFS_TRUNCATES_BLOCK_COUNTS 1
38802 _ACEOF
38805 echo "$as_me:$LINENO: result: $fu_cv_sys_truncating_statfs" >&5
38806 echo "${ECHO_T}$fu_cv_sys_truncating_statfs" >&6
38808 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
38809 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
38810 if test "${utils_cv_localtime_cache+set}" = set; then
38811 echo $ECHO_N "(cached) $ECHO_C" >&6
38812 else
38813 if test x$ac_cv_func_tzset = xyes; then
38814 if test "$cross_compiling" = yes; then
38815 # If we have tzset, assume the worst when cross-compiling.
38816 utils_cv_localtime_cache=yes
38817 else
38818 cat >conftest.$ac_ext <<_ACEOF
38819 #line $LINENO "configure"
38820 /* confdefs.h. */
38821 _ACEOF
38822 cat confdefs.h >>conftest.$ac_ext
38823 cat >>conftest.$ac_ext <<_ACEOF
38824 /* end confdefs.h. */
38825 #include <time.h>
38826 #if STDC_HEADERS
38827 # include <stdlib.h>
38828 #endif
38829 extern char **environ;
38830 unset_TZ ()
38832 char **from, **to;
38833 for (to = from = environ; (*to = *from); from++)
38834 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
38835 to++;
38837 main()
38839 time_t now = time ((time_t *) 0);
38840 int hour_GMT0, hour_unset;
38841 if (putenv ("TZ=GMT0") != 0)
38842 exit (1);
38843 hour_GMT0 = localtime (&now)->tm_hour;
38844 unset_TZ ();
38845 hour_unset = localtime (&now)->tm_hour;
38846 if (putenv ("TZ=PST8") != 0)
38847 exit (1);
38848 if (localtime (&now)->tm_hour == hour_GMT0)
38849 exit (1);
38850 unset_TZ ();
38851 if (localtime (&now)->tm_hour != hour_unset)
38852 exit (1);
38853 exit (0);
38855 _ACEOF
38856 rm -f conftest$ac_exeext
38857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38858 (eval $ac_link) 2>&5
38859 ac_status=$?
38860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38863 (eval $ac_try) 2>&5
38864 ac_status=$?
38865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38866 (exit $ac_status); }; }; then
38867 utils_cv_localtime_cache=no
38868 else
38869 echo "$as_me: program exited with status $ac_status" >&5
38870 echo "$as_me: failed program was:" >&5
38871 sed 's/^/| /' conftest.$ac_ext >&5
38873 ( exit $ac_status )
38874 utils_cv_localtime_cache=yes
38876 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38878 else
38879 # If we lack tzset, report that localtime does not cache TZ,
38880 # since we can't invalidate the cache if we don't have tzset.
38881 utils_cv_localtime_cache=no
38884 echo "$as_me:$LINENO: result: $utils_cv_localtime_cache" >&5
38885 echo "${ECHO_T}$utils_cv_localtime_cache" >&6
38886 if test $utils_cv_localtime_cache = yes; then
38888 cat >>confdefs.h <<\_ACEOF
38889 #define LOCALTIME_CACHE 1
38890 _ACEOF
38894 # SCO-ODT-3.0 is reported to need -los to link programs using initgroups
38896 for ac_func in initgroups
38898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38899 echo "$as_me:$LINENO: checking for $ac_func" >&5
38900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38901 if eval "test \"\${$as_ac_var+set}\" = set"; then
38902 echo $ECHO_N "(cached) $ECHO_C" >&6
38903 else
38904 cat >conftest.$ac_ext <<_ACEOF
38905 #line $LINENO "configure"
38906 /* confdefs.h. */
38907 _ACEOF
38908 cat confdefs.h >>conftest.$ac_ext
38909 cat >>conftest.$ac_ext <<_ACEOF
38910 /* end confdefs.h. */
38911 /* System header to define __stub macros and hopefully few prototypes,
38912 which can conflict with char $ac_func (); below.
38913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38914 <limits.h> exists even on freestanding compilers. */
38915 #ifdef __STDC__
38916 # include <limits.h>
38917 #else
38918 # include <assert.h>
38919 #endif
38920 /* Override any gcc2 internal prototype to avoid an error. */
38921 #ifdef __cplusplus
38922 extern "C"
38924 #endif
38925 /* We use char because int might match the return type of a gcc2
38926 builtin and then its argument prototype would still apply. */
38927 char $ac_func ();
38928 /* The GNU C library defines this for functions which it implements
38929 to always fail with ENOSYS. Some functions are actually named
38930 something starting with __ and the normal name is an alias. */
38931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38932 choke me
38933 #else
38934 char (*f) () = $ac_func;
38935 #endif
38936 #ifdef __cplusplus
38938 #endif
38941 main ()
38943 return f != $ac_func;
38945 return 0;
38947 _ACEOF
38948 rm -f conftest.$ac_objext conftest$ac_exeext
38949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38950 (eval $ac_link) 2>&5
38951 ac_status=$?
38952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38953 (exit $ac_status); } &&
38954 { ac_try='test -s conftest$ac_exeext'
38955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38956 (eval $ac_try) 2>&5
38957 ac_status=$?
38958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38959 (exit $ac_status); }; }; then
38960 eval "$as_ac_var=yes"
38961 else
38962 echo "$as_me: failed program was:" >&5
38963 sed 's/^/| /' conftest.$ac_ext >&5
38965 eval "$as_ac_var=no"
38967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38970 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38971 if test `eval echo '${'$as_ac_var'}'` = yes; then
38972 cat >>confdefs.h <<_ACEOF
38973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38974 _ACEOF
38977 done
38979 if test $ac_cv_func_initgroups = no; then
38981 echo "$as_me:$LINENO: checking for initgroups in -los" >&5
38982 echo $ECHO_N "checking for initgroups in -los... $ECHO_C" >&6
38983 if test "${ac_cv_lib_os_initgroups+set}" = set; then
38984 echo $ECHO_N "(cached) $ECHO_C" >&6
38985 else
38986 ac_check_lib_save_LIBS=$LIBS
38987 LIBS="-los $LIBS"
38988 cat >conftest.$ac_ext <<_ACEOF
38989 #line $LINENO "configure"
38990 /* confdefs.h. */
38991 _ACEOF
38992 cat confdefs.h >>conftest.$ac_ext
38993 cat >>conftest.$ac_ext <<_ACEOF
38994 /* end confdefs.h. */
38996 /* Override any gcc2 internal prototype to avoid an error. */
38997 #ifdef __cplusplus
38998 extern "C"
38999 #endif
39000 /* We use char because int might match the return type of a gcc2
39001 builtin and then its argument prototype would still apply. */
39002 char initgroups ();
39004 main ()
39006 initgroups ();
39008 return 0;
39010 _ACEOF
39011 rm -f conftest.$ac_objext conftest$ac_exeext
39012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39013 (eval $ac_link) 2>&5
39014 ac_status=$?
39015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39016 (exit $ac_status); } &&
39017 { ac_try='test -s conftest$ac_exeext'
39018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39019 (eval $ac_try) 2>&5
39020 ac_status=$?
39021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39022 (exit $ac_status); }; }; then
39023 ac_cv_lib_os_initgroups=yes
39024 else
39025 echo "$as_me: failed program was:" >&5
39026 sed 's/^/| /' conftest.$ac_ext >&5
39028 ac_cv_lib_os_initgroups=no
39030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39031 LIBS=$ac_check_lib_save_LIBS
39033 echo "$as_me:$LINENO: result: $ac_cv_lib_os_initgroups" >&5
39034 echo "${ECHO_T}$ac_cv_lib_os_initgroups" >&6
39035 if test $ac_cv_lib_os_initgroups = yes; then
39036 cat >>confdefs.h <<_ACEOF
39037 #define HAVE_LIBOS 1
39038 _ACEOF
39040 LIBS="-los $LIBS"
39047 for ac_func in syslog
39049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39050 echo "$as_me:$LINENO: checking for $ac_func" >&5
39051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39052 if eval "test \"\${$as_ac_var+set}\" = set"; then
39053 echo $ECHO_N "(cached) $ECHO_C" >&6
39054 else
39055 cat >conftest.$ac_ext <<_ACEOF
39056 #line $LINENO "configure"
39057 /* confdefs.h. */
39058 _ACEOF
39059 cat confdefs.h >>conftest.$ac_ext
39060 cat >>conftest.$ac_ext <<_ACEOF
39061 /* end confdefs.h. */
39062 /* System header to define __stub macros and hopefully few prototypes,
39063 which can conflict with char $ac_func (); below.
39064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39065 <limits.h> exists even on freestanding compilers. */
39066 #ifdef __STDC__
39067 # include <limits.h>
39068 #else
39069 # include <assert.h>
39070 #endif
39071 /* Override any gcc2 internal prototype to avoid an error. */
39072 #ifdef __cplusplus
39073 extern "C"
39075 #endif
39076 /* We use char because int might match the return type of a gcc2
39077 builtin and then its argument prototype would still apply. */
39078 char $ac_func ();
39079 /* The GNU C library defines this for functions which it implements
39080 to always fail with ENOSYS. Some functions are actually named
39081 something starting with __ and the normal name is an alias. */
39082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39083 choke me
39084 #else
39085 char (*f) () = $ac_func;
39086 #endif
39087 #ifdef __cplusplus
39089 #endif
39092 main ()
39094 return f != $ac_func;
39096 return 0;
39098 _ACEOF
39099 rm -f conftest.$ac_objext conftest$ac_exeext
39100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39101 (eval $ac_link) 2>&5
39102 ac_status=$?
39103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39104 (exit $ac_status); } &&
39105 { ac_try='test -s conftest$ac_exeext'
39106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39107 (eval $ac_try) 2>&5
39108 ac_status=$?
39109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39110 (exit $ac_status); }; }; then
39111 eval "$as_ac_var=yes"
39112 else
39113 echo "$as_me: failed program was:" >&5
39114 sed 's/^/| /' conftest.$ac_ext >&5
39116 eval "$as_ac_var=no"
39118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39122 if test `eval echo '${'$as_ac_var'}'` = yes; then
39123 cat >>confdefs.h <<_ACEOF
39124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39125 _ACEOF
39128 done
39130 if test $ac_cv_func_syslog = no; then
39131 # syslog is not in the default libraries. See if it's in some other.
39132 for lib in bsd socket inet; do
39133 as_ac_Lib=`echo "ac_cv_lib_$lib''_syslog" | $as_tr_sh`
39134 echo "$as_me:$LINENO: checking for syslog in -l$lib" >&5
39135 echo $ECHO_N "checking for syslog in -l$lib... $ECHO_C" >&6
39136 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
39137 echo $ECHO_N "(cached) $ECHO_C" >&6
39138 else
39139 ac_check_lib_save_LIBS=$LIBS
39140 LIBS="-l$lib $LIBS"
39141 cat >conftest.$ac_ext <<_ACEOF
39142 #line $LINENO "configure"
39143 /* confdefs.h. */
39144 _ACEOF
39145 cat confdefs.h >>conftest.$ac_ext
39146 cat >>conftest.$ac_ext <<_ACEOF
39147 /* end confdefs.h. */
39149 /* Override any gcc2 internal prototype to avoid an error. */
39150 #ifdef __cplusplus
39151 extern "C"
39152 #endif
39153 /* We use char because int might match the return type of a gcc2
39154 builtin and then its argument prototype would still apply. */
39155 char syslog ();
39157 main ()
39159 syslog ();
39161 return 0;
39163 _ACEOF
39164 rm -f conftest.$ac_objext conftest$ac_exeext
39165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39166 (eval $ac_link) 2>&5
39167 ac_status=$?
39168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39169 (exit $ac_status); } &&
39170 { ac_try='test -s conftest$ac_exeext'
39171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39172 (eval $ac_try) 2>&5
39173 ac_status=$?
39174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39175 (exit $ac_status); }; }; then
39176 eval "$as_ac_Lib=yes"
39177 else
39178 echo "$as_me: failed program was:" >&5
39179 sed 's/^/| /' conftest.$ac_ext >&5
39181 eval "$as_ac_Lib=no"
39183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39184 LIBS=$ac_check_lib_save_LIBS
39186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
39187 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
39188 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
39190 cat >>confdefs.h <<\_ACEOF
39191 #define HAVE_SYSLOG 1
39192 _ACEOF
39194 LIBS="$LIBS -l$lib"; break
39197 done
39200 echo "$as_me:$LINENO: checking for 3-argument setpriority function" >&5
39201 echo $ECHO_N "checking for 3-argument setpriority function... $ECHO_C" >&6
39202 if test "${utils_cv_func_setpriority+set}" = set; then
39203 echo $ECHO_N "(cached) $ECHO_C" >&6
39204 else
39205 cat >conftest.$ac_ext <<_ACEOF
39206 #line $LINENO "configure"
39207 /* confdefs.h. */
39208 _ACEOF
39209 cat confdefs.h >>conftest.$ac_ext
39210 cat >>conftest.$ac_ext <<_ACEOF
39211 /* end confdefs.h. */
39212 #include <sys/time.h>
39213 #include <sys/resource.h>
39215 main ()
39217 setpriority(0, 0, 0);
39219 return 0;
39221 _ACEOF
39222 rm -f conftest.$ac_objext conftest$ac_exeext
39223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39224 (eval $ac_link) 2>&5
39225 ac_status=$?
39226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39227 (exit $ac_status); } &&
39228 { ac_try='test -s conftest$ac_exeext'
39229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39230 (eval $ac_try) 2>&5
39231 ac_status=$?
39232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39233 (exit $ac_status); }; }; then
39234 utils_cv_func_setpriority=yes
39235 else
39236 echo "$as_me: failed program was:" >&5
39237 sed 's/^/| /' conftest.$ac_ext >&5
39239 utils_cv_func_setpriority=no
39241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39244 echo "$as_me:$LINENO: result: $utils_cv_func_setpriority" >&5
39245 echo "${ECHO_T}$utils_cv_func_setpriority" >&6
39246 if test $utils_cv_func_setpriority = yes; then
39247 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice"
39248 OPTIONAL_BIN_ZCRIPTS="$OPTIONAL_BIN_ZCRIPTS nohup"
39249 MAN="$MAN nice.1 nohup.1"
39250 else
39251 echo "$as_me:$LINENO: checking for nice function" >&5
39252 echo $ECHO_N "checking for nice function... $ECHO_C" >&6
39253 if test "${utils_cv_func_nice+set}" = set; then
39254 echo $ECHO_N "(cached) $ECHO_C" >&6
39255 else
39256 cat >conftest.$ac_ext <<_ACEOF
39257 #line $LINENO "configure"
39258 /* confdefs.h. */
39259 _ACEOF
39260 cat confdefs.h >>conftest.$ac_ext
39261 cat >>conftest.$ac_ext <<_ACEOF
39262 /* end confdefs.h. */
39265 main ()
39267 nice();
39269 return 0;
39271 _ACEOF
39272 rm -f conftest.$ac_objext conftest$ac_exeext
39273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39274 (eval $ac_link) 2>&5
39275 ac_status=$?
39276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39277 (exit $ac_status); } &&
39278 { ac_try='test -s conftest$ac_exeext'
39279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39280 (eval $ac_try) 2>&5
39281 ac_status=$?
39282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39283 (exit $ac_status); }; }; then
39284 utils_cv_func_nice=yes
39285 else
39286 echo "$as_me: failed program was:" >&5
39287 sed 's/^/| /' conftest.$ac_ext >&5
39289 utils_cv_func_nice=no
39291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39294 echo "$as_me:$LINENO: result: $utils_cv_func_nice" >&5
39295 echo "${ECHO_T}$utils_cv_func_nice" >&6
39296 if test $utils_cv_func_nice = yes; then
39298 cat >>confdefs.h <<\_ACEOF
39299 #define NICE_PRIORITY 1
39300 _ACEOF
39302 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS nice"
39303 OPTIONAL_BIN_ZCRIPTS="$OPTIONAL_BIN_ZCRIPTS nohup"
39304 MAN="$MAN nice.1 nohup.1"
39311 if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
39312 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS pinky users who"
39313 MAN="$MAN pinky.1 users.1 who.1"
39317 echo "$as_me:$LINENO: checking ut_host in struct utmp" >&5
39318 echo $ECHO_N "checking ut_host in struct utmp... $ECHO_C" >&6
39319 if test "${su_cv_func_ut_host_in_utmp+set}" = set; then
39320 echo $ECHO_N "(cached) $ECHO_C" >&6
39321 else
39322 cat >conftest.$ac_ext <<_ACEOF
39323 #line $LINENO "configure"
39324 /* confdefs.h. */
39325 _ACEOF
39326 cat confdefs.h >>conftest.$ac_ext
39327 cat >>conftest.$ac_ext <<_ACEOF
39328 /* end confdefs.h. */
39329 #include <sys/types.h>
39330 #include <utmp.h>
39332 main ()
39334 struct utmp ut; ut.ut_host;
39336 return 0;
39338 _ACEOF
39339 rm -f conftest.$ac_objext conftest$ac_exeext
39340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39341 (eval $ac_link) 2>&5
39342 ac_status=$?
39343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39344 (exit $ac_status); } &&
39345 { ac_try='test -s conftest$ac_exeext'
39346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39347 (eval $ac_try) 2>&5
39348 ac_status=$?
39349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39350 (exit $ac_status); }; }; then
39351 su_cv_func_ut_host_in_utmp=yes
39352 else
39353 echo "$as_me: failed program was:" >&5
39354 sed 's/^/| /' conftest.$ac_ext >&5
39356 su_cv_func_ut_host_in_utmp=no
39358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39361 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmp" >&5
39362 echo "${ECHO_T}$su_cv_func_ut_host_in_utmp" >&6
39363 if test $su_cv_func_ut_host_in_utmp = yes; then
39364 have_ut_host=1
39366 cat >>confdefs.h <<\_ACEOF
39367 #define HAVE_UT_HOST 1
39368 _ACEOF
39372 if test -z "$have_ut_host"; then
39373 echo "$as_me:$LINENO: checking ut_host in struct utmpx" >&5
39374 echo $ECHO_N "checking ut_host in struct utmpx... $ECHO_C" >&6
39375 if test "${su_cv_func_ut_host_in_utmpx+set}" = set; then
39376 echo $ECHO_N "(cached) $ECHO_C" >&6
39377 else
39378 cat >conftest.$ac_ext <<_ACEOF
39379 #line $LINENO "configure"
39380 /* confdefs.h. */
39381 _ACEOF
39382 cat confdefs.h >>conftest.$ac_ext
39383 cat >>conftest.$ac_ext <<_ACEOF
39384 /* end confdefs.h. */
39385 #include <sys/types.h>
39386 #include <utmpx.h>
39388 main ()
39390 struct utmpx ut; ut.ut_host;
39392 return 0;
39394 _ACEOF
39395 rm -f conftest.$ac_objext conftest$ac_exeext
39396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39397 (eval $ac_link) 2>&5
39398 ac_status=$?
39399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39400 (exit $ac_status); } &&
39401 { ac_try='test -s conftest$ac_exeext'
39402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39403 (eval $ac_try) 2>&5
39404 ac_status=$?
39405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39406 (exit $ac_status); }; }; then
39407 su_cv_func_ut_host_in_utmpx=yes
39408 else
39409 echo "$as_me: failed program was:" >&5
39410 sed 's/^/| /' conftest.$ac_ext >&5
39412 su_cv_func_ut_host_in_utmpx=no
39414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39417 echo "$as_me:$LINENO: result: $su_cv_func_ut_host_in_utmpx" >&5
39418 echo "${ECHO_T}$su_cv_func_ut_host_in_utmpx" >&6
39419 if test $su_cv_func_ut_host_in_utmpx = yes; then
39421 cat >>confdefs.h <<\_ACEOF
39422 #define HAVE_UTMPX_H 1
39423 _ACEOF
39426 cat >>confdefs.h <<\_ACEOF
39427 #define HAVE_UT_HOST 1
39428 _ACEOF
39435 for ac_func in sysctl
39437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39438 echo "$as_me:$LINENO: checking for $ac_func" >&5
39439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39440 if eval "test \"\${$as_ac_var+set}\" = set"; then
39441 echo $ECHO_N "(cached) $ECHO_C" >&6
39442 else
39443 cat >conftest.$ac_ext <<_ACEOF
39444 #line $LINENO "configure"
39445 /* confdefs.h. */
39446 _ACEOF
39447 cat confdefs.h >>conftest.$ac_ext
39448 cat >>conftest.$ac_ext <<_ACEOF
39449 /* end confdefs.h. */
39450 /* System header to define __stub macros and hopefully few prototypes,
39451 which can conflict with char $ac_func (); below.
39452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39453 <limits.h> exists even on freestanding compilers. */
39454 #ifdef __STDC__
39455 # include <limits.h>
39456 #else
39457 # include <assert.h>
39458 #endif
39459 /* Override any gcc2 internal prototype to avoid an error. */
39460 #ifdef __cplusplus
39461 extern "C"
39463 #endif
39464 /* We use char because int might match the return type of a gcc2
39465 builtin and then its argument prototype would still apply. */
39466 char $ac_func ();
39467 /* The GNU C library defines this for functions which it implements
39468 to always fail with ENOSYS. Some functions are actually named
39469 something starting with __ and the normal name is an alias. */
39470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39471 choke me
39472 #else
39473 char (*f) () = $ac_func;
39474 #endif
39475 #ifdef __cplusplus
39477 #endif
39480 main ()
39482 return f != $ac_func;
39484 return 0;
39486 _ACEOF
39487 rm -f conftest.$ac_objext conftest$ac_exeext
39488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39489 (eval $ac_link) 2>&5
39490 ac_status=$?
39491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39492 (exit $ac_status); } &&
39493 { ac_try='test -s conftest$ac_exeext'
39494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39495 (eval $ac_try) 2>&5
39496 ac_status=$?
39497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39498 (exit $ac_status); }; }; then
39499 eval "$as_ac_var=yes"
39500 else
39501 echo "$as_me: failed program was:" >&5
39502 sed 's/^/| /' conftest.$ac_ext >&5
39504 eval "$as_ac_var=no"
39506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39509 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39510 if test `eval echo '${'$as_ac_var'}'` = yes; then
39511 cat >>confdefs.h <<_ACEOF
39512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39513 _ACEOF
39516 done
39519 for ac_header in sys/sysctl.h
39521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39523 echo "$as_me:$LINENO: checking for $ac_header" >&5
39524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39526 echo $ECHO_N "(cached) $ECHO_C" >&6
39528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39530 else
39531 # Is the header compilable?
39532 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39534 cat >conftest.$ac_ext <<_ACEOF
39535 #line $LINENO "configure"
39536 /* confdefs.h. */
39537 _ACEOF
39538 cat confdefs.h >>conftest.$ac_ext
39539 cat >>conftest.$ac_ext <<_ACEOF
39540 /* end confdefs.h. */
39541 $ac_includes_default
39542 #include <$ac_header>
39543 _ACEOF
39544 rm -f conftest.$ac_objext
39545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39546 (eval $ac_compile) 2>&5
39547 ac_status=$?
39548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39549 (exit $ac_status); } &&
39550 { ac_try='test -s conftest.$ac_objext'
39551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39552 (eval $ac_try) 2>&5
39553 ac_status=$?
39554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39555 (exit $ac_status); }; }; then
39556 ac_header_compiler=yes
39557 else
39558 echo "$as_me: failed program was:" >&5
39559 sed 's/^/| /' conftest.$ac_ext >&5
39561 ac_header_compiler=no
39563 rm -f conftest.$ac_objext conftest.$ac_ext
39564 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39565 echo "${ECHO_T}$ac_header_compiler" >&6
39567 # Is the header present?
39568 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39570 cat >conftest.$ac_ext <<_ACEOF
39571 #line $LINENO "configure"
39572 /* confdefs.h. */
39573 _ACEOF
39574 cat confdefs.h >>conftest.$ac_ext
39575 cat >>conftest.$ac_ext <<_ACEOF
39576 /* end confdefs.h. */
39577 #include <$ac_header>
39578 _ACEOF
39579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39581 ac_status=$?
39582 grep -v '^ *+' conftest.er1 >conftest.err
39583 rm -f conftest.er1
39584 cat conftest.err >&5
39585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39586 (exit $ac_status); } >/dev/null; then
39587 if test -s conftest.err; then
39588 ac_cpp_err=$ac_c_preproc_warn_flag
39589 else
39590 ac_cpp_err=
39592 else
39593 ac_cpp_err=yes
39595 if test -z "$ac_cpp_err"; then
39596 ac_header_preproc=yes
39597 else
39598 echo "$as_me: failed program was:" >&5
39599 sed 's/^/| /' conftest.$ac_ext >&5
39601 ac_header_preproc=no
39603 rm -f conftest.err conftest.$ac_ext
39604 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39605 echo "${ECHO_T}$ac_header_preproc" >&6
39607 # So? What about this header?
39608 case $ac_header_compiler:$ac_header_preproc in
39609 yes:no )
39610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39615 cat <<\_ASBOX
39616 ## ------------------------------------ ##
39617 ## Report this to bug-autoconf@gnu.org. ##
39618 ## ------------------------------------ ##
39619 _ASBOX
39621 sed "s/^/$as_me: WARNING: /" >&2
39623 no:yes )
39624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39631 cat <<\_ASBOX
39632 ## ------------------------------------ ##
39633 ## Report this to bug-autoconf@gnu.org. ##
39634 ## ------------------------------------ ##
39635 _ASBOX
39637 sed "s/^/$as_me: WARNING: /" >&2
39639 esac
39640 echo "$as_me:$LINENO: checking for $ac_header" >&5
39641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39643 echo $ECHO_N "(cached) $ECHO_C" >&6
39644 else
39645 eval "$as_ac_Header=$ac_header_preproc"
39647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39652 cat >>confdefs.h <<_ACEOF
39653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39654 _ACEOF
39658 done
39660 echo "$as_me:$LINENO: checking whether we can get the system boot time" >&5
39661 echo $ECHO_N "checking whether we can get the system boot time... $ECHO_C" >&6
39662 if test "${gnulib_cv_have_boot_time+set}" = set; then
39663 echo $ECHO_N "(cached) $ECHO_C" >&6
39664 else
39666 cat >conftest.$ac_ext <<_ACEOF
39667 #line $LINENO "configure"
39668 /* confdefs.h. */
39669 _ACEOF
39670 cat confdefs.h >>conftest.$ac_ext
39671 cat >>conftest.$ac_ext <<_ACEOF
39672 /* end confdefs.h. */
39673 $ac_includes_default
39674 #if HAVE_SYSCTL && HAVE_SYS_SYSCTL_H
39675 # include <sys/param.h> /* needed for OpenBSD 3.0 */
39676 # include <sys/sysctl.h>
39677 #endif
39678 #ifdef HAVE_UTMPX_H
39679 # include <utmpx.h>
39680 #else
39681 # include <utmp.h>
39682 #endif
39685 main ()
39688 #if defined BOOT_TIME || (defined CTL_KERN && defined KERN_BOOTTIME)
39689 /* your system *does* have the infrastructure to determine boot time */
39690 #else
39691 please_tell_us_how_to_determine_boot_time_on_your_system
39692 #endif
39695 return 0;
39697 _ACEOF
39698 rm -f conftest.$ac_objext
39699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39700 (eval $ac_compile) 2>&5
39701 ac_status=$?
39702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39703 (exit $ac_status); } &&
39704 { ac_try='test -s conftest.$ac_objext'
39705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39706 (eval $ac_try) 2>&5
39707 ac_status=$?
39708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39709 (exit $ac_status); }; }; then
39710 gnulib_cv_have_boot_time=yes
39711 else
39712 echo "$as_me: failed program was:" >&5
39713 sed 's/^/| /' conftest.$ac_ext >&5
39715 gnulib_cv_have_boot_time=no
39717 rm -f conftest.$ac_objext conftest.$ac_ext
39720 echo "$as_me:$LINENO: result: $gnulib_cv_have_boot_time" >&5
39721 echo "${ECHO_T}$gnulib_cv_have_boot_time" >&6
39722 if test $gnulib_cv_have_boot_time = yes; then
39723 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS uptime" MAN="$MAN uptime.1"
39728 echo "$as_me:$LINENO: checking POSIX termios" >&5
39729 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6
39730 if test "${ac_cv_sys_posix_termios+set}" = set; then
39731 echo $ECHO_N "(cached) $ECHO_C" >&6
39732 else
39733 cat >conftest.$ac_ext <<_ACEOF
39734 #line $LINENO "configure"
39735 /* confdefs.h. */
39736 _ACEOF
39737 cat confdefs.h >>conftest.$ac_ext
39738 cat >>conftest.$ac_ext <<_ACEOF
39739 /* end confdefs.h. */
39740 #include <sys/types.h>
39741 #include <unistd.h>
39742 #include <termios.h>
39745 main ()
39747 /* SunOS 4.0.3 has termios.h but not the library calls. */
39748 tcgetattr(0, 0);
39750 return 0;
39752 _ACEOF
39753 rm -f conftest.$ac_objext conftest$ac_exeext
39754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39755 (eval $ac_link) 2>&5
39756 ac_status=$?
39757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39758 (exit $ac_status); } &&
39759 { ac_try='test -s conftest$ac_exeext'
39760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39761 (eval $ac_try) 2>&5
39762 ac_status=$?
39763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39764 (exit $ac_status); }; }; then
39765 ac_cv_sys_posix_termios=yes
39766 else
39767 echo "$as_me: failed program was:" >&5
39768 sed 's/^/| /' conftest.$ac_ext >&5
39770 ac_cv_sys_posix_termios=no
39772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39774 echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
39775 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6
39778 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
39779 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
39780 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
39781 echo $ECHO_N "(cached) $ECHO_C" >&6
39782 else
39783 jm_cv_sys_tiocgwinsz_needs_termios_h=no
39785 if test $ac_cv_sys_posix_termios = yes; then
39786 cat >conftest.$ac_ext <<_ACEOF
39787 #line $LINENO "configure"
39788 /* confdefs.h. */
39789 _ACEOF
39790 cat confdefs.h >>conftest.$ac_ext
39791 cat >>conftest.$ac_ext <<_ACEOF
39792 /* end confdefs.h. */
39793 #include <sys/types.h>
39794 # include <termios.h>
39795 # ifdef TIOCGWINSZ
39797 # endif
39799 _ACEOF
39800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39801 $EGREP "yes" >/dev/null 2>&1; then
39802 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
39804 rm -f conftest*
39809 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
39810 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
39813 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
39814 echo $ECHO_N "checking whether use of TIOCGWINSZ requires sys/ioctl.h... $ECHO_C" >&6
39815 if test "${jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}" = set; then
39816 echo $ECHO_N "(cached) $ECHO_C" >&6
39817 else
39818 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
39820 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then
39821 cat >conftest.$ac_ext <<_ACEOF
39822 #line $LINENO "configure"
39823 /* confdefs.h. */
39824 _ACEOF
39825 cat confdefs.h >>conftest.$ac_ext
39826 cat >>conftest.$ac_ext <<_ACEOF
39827 /* end confdefs.h. */
39828 #include <sys/types.h>
39829 # include <sys/ioctl.h>
39830 # ifdef TIOCGWINSZ
39832 # endif
39834 _ACEOF
39835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39836 $EGREP "yes" >/dev/null 2>&1; then
39837 jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
39839 rm -f conftest*
39844 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&5
39845 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h" >&6
39846 if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
39848 cat >>confdefs.h <<\_ACEOF
39849 #define GWINSZ_IN_SYS_IOCTL 1
39850 _ACEOF
39855 if test $ac_cv_sys_posix_termios = yes; then
39856 OPTIONAL_BIN_PROGS="$OPTIONAL_BIN_PROGS stty" MAN="$MAN stty.1"
39858 echo "$as_me:$LINENO: checking whether termios.h needs _XOPEN_SOURCE" >&5
39859 echo $ECHO_N "checking whether termios.h needs _XOPEN_SOURCE... $ECHO_C" >&6
39860 if test "${su_cv_sys_termios_needs_xopen_source+set}" = set; then
39861 echo $ECHO_N "(cached) $ECHO_C" >&6
39862 else
39863 cat >conftest.$ac_ext <<_ACEOF
39864 #line $LINENO "configure"
39865 /* confdefs.h. */
39866 _ACEOF
39867 cat confdefs.h >>conftest.$ac_ext
39868 cat >>conftest.$ac_ext <<_ACEOF
39869 /* end confdefs.h. */
39870 #include <termios.h>
39871 #ifdef IUCLC
39873 #endif
39874 _ACEOF
39875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39876 $EGREP "yes" >/dev/null 2>&1; then
39877 su_cv_sys_termios_needs_xopen_source=no
39878 else
39879 cat >conftest.$ac_ext <<_ACEOF
39880 #line $LINENO "configure"
39881 /* confdefs.h. */
39882 _ACEOF
39883 cat confdefs.h >>conftest.$ac_ext
39884 cat >>conftest.$ac_ext <<_ACEOF
39885 /* end confdefs.h. */
39886 #define _XOPEN_SOURCE
39887 #include <termios.h>
39888 #ifdef IUCLC
39890 #endif
39891 _ACEOF
39892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39893 $EGREP "yes" >/dev/null 2>&1; then
39894 su_cv_sys_termios_needs_xopen_source=yes
39895 else
39896 su_cv_sys_termios_needs_xopen_source=no
39898 rm -f conftest*
39901 rm -f conftest*
39905 echo "$as_me:$LINENO: result: $su_cv_sys_termios_needs_xopen_source" >&5
39906 echo "${ECHO_T}$su_cv_sys_termios_needs_xopen_source" >&6
39907 test $su_cv_sys_termios_needs_xopen_source = yes &&
39909 cat >>confdefs.h <<\_ACEOF
39910 #define TERMIOS_NEEDS_XOPEN_SOURCE 1
39911 _ACEOF
39914 echo "$as_me:$LINENO: checking c_line in struct termios" >&5
39915 echo $ECHO_N "checking c_line in struct termios... $ECHO_C" >&6
39916 if test "${su_cv_sys_c_line_in_termios+set}" = set; then
39917 echo $ECHO_N "(cached) $ECHO_C" >&6
39918 else
39919 cat >conftest.$ac_ext <<_ACEOF
39920 #line $LINENO "configure"
39921 /* confdefs.h. */
39922 _ACEOF
39923 cat confdefs.h >>conftest.$ac_ext
39924 cat >>conftest.$ac_ext <<_ACEOF
39925 /* end confdefs.h. */
39926 #if TERMIOS_NEEDS_XOPEN_SOURCE
39927 #define _XOPEN_SOURCE
39928 #endif
39929 #include <sys/types.h>
39930 #include <termios.h>
39932 main ()
39934 struct termios t; t.c_line;
39936 return 0;
39938 _ACEOF
39939 rm -f conftest.$ac_objext conftest$ac_exeext
39940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39941 (eval $ac_link) 2>&5
39942 ac_status=$?
39943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39944 (exit $ac_status); } &&
39945 { ac_try='test -s conftest$ac_exeext'
39946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39947 (eval $ac_try) 2>&5
39948 ac_status=$?
39949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39950 (exit $ac_status); }; }; then
39951 su_cv_sys_c_line_in_termios=yes
39952 else
39953 echo "$as_me: failed program was:" >&5
39954 sed 's/^/| /' conftest.$ac_ext >&5
39956 su_cv_sys_c_line_in_termios=no
39958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39961 echo "$as_me:$LINENO: result: $su_cv_sys_c_line_in_termios" >&5
39962 echo "${ECHO_T}$su_cv_sys_c_line_in_termios" >&6
39963 test $su_cv_sys_c_line_in_termios = yes \
39965 cat >>confdefs.h <<\_ACEOF
39966 #define HAVE_C_LINE 1
39967 _ACEOF
39971 # FIXME: note that this macro appears above, too.
39972 # I'm leaving it here for now. This whole thing needs to be modernized...
39974 echo "$as_me:$LINENO: checking whether use of struct winsize requires sys/ptem.h" >&5
39975 echo $ECHO_N "checking whether use of struct winsize requires sys/ptem.h... $ECHO_C" >&6
39976 if test "${jm_cv_sys_struct_winsize_needs_sys_ptem_h+set}" = set; then
39977 echo $ECHO_N "(cached) $ECHO_C" >&6
39978 else
39979 jm_cv_sys_struct_winsize_needs_sys_ptem_h=yes
39980 if test $ac_cv_sys_posix_termios = yes; then
39981 cat >conftest.$ac_ext <<_ACEOF
39982 #line $LINENO "configure"
39983 /* confdefs.h. */
39984 _ACEOF
39985 cat confdefs.h >>conftest.$ac_ext
39986 cat >>conftest.$ac_ext <<_ACEOF
39987 /* end confdefs.h. */
39988 #include <termios.h>
39989 struct winsize x;
39991 main ()
39993 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
39995 return 0;
39997 _ACEOF
39998 rm -f conftest.$ac_objext
39999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40000 (eval $ac_compile) 2>&5
40001 ac_status=$?
40002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40003 (exit $ac_status); } &&
40004 { ac_try='test -s conftest.$ac_objext'
40005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40006 (eval $ac_try) 2>&5
40007 ac_status=$?
40008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40009 (exit $ac_status); }; }; then
40011 else
40012 echo "$as_me: failed program was:" >&5
40013 sed 's/^/| /' conftest.$ac_ext >&5
40016 rm -f conftest.$ac_objext conftest.$ac_ext
40018 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
40019 cat >conftest.$ac_ext <<_ACEOF
40020 #line $LINENO "configure"
40021 /* confdefs.h. */
40022 _ACEOF
40023 cat confdefs.h >>conftest.$ac_ext
40024 cat >>conftest.$ac_ext <<_ACEOF
40025 /* end confdefs.h. */
40026 #include <sys/ptem.h>
40028 main ()
40030 struct winsize x;
40032 return 0;
40034 _ACEOF
40035 rm -f conftest.$ac_objext
40036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40037 (eval $ac_compile) 2>&5
40038 ac_status=$?
40039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40040 (exit $ac_status); } &&
40041 { ac_try='test -s conftest.$ac_objext'
40042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40043 (eval $ac_try) 2>&5
40044 ac_status=$?
40045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40046 (exit $ac_status); }; }; then
40048 else
40049 echo "$as_me: failed program was:" >&5
40050 sed 's/^/| /' conftest.$ac_ext >&5
40052 jm_cv_sys_struct_winsize_needs_sys_ptem_h=no
40054 rm -f conftest.$ac_objext conftest.$ac_ext
40057 echo "$as_me:$LINENO: result: $jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&5
40058 echo "${ECHO_T}$jm_cv_sys_struct_winsize_needs_sys_ptem_h" >&6
40059 if test $jm_cv_sys_struct_winsize_needs_sys_ptem_h = yes; then
40061 cat >>confdefs.h <<\_ACEOF
40062 #define WINSIZE_IN_PTEM 1
40063 _ACEOF
40068 echo "$as_me:$LINENO: checking whether use of TIOCGWINSZ requires termios.h" >&5
40069 echo $ECHO_N "checking whether use of TIOCGWINSZ requires termios.h... $ECHO_C" >&6
40070 if test "${jm_cv_sys_tiocgwinsz_needs_termios_h+set}" = set; then
40071 echo $ECHO_N "(cached) $ECHO_C" >&6
40072 else
40073 jm_cv_sys_tiocgwinsz_needs_termios_h=no
40075 if test $ac_cv_sys_posix_termios = yes; then
40076 cat >conftest.$ac_ext <<_ACEOF
40077 #line $LINENO "configure"
40078 /* confdefs.h. */
40079 _ACEOF
40080 cat confdefs.h >>conftest.$ac_ext
40081 cat >>conftest.$ac_ext <<_ACEOF
40082 /* end confdefs.h. */
40083 #include <sys/types.h>
40084 # include <termios.h>
40085 # ifdef TIOCGWINSZ
40087 # endif
40089 _ACEOF
40090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40091 $EGREP "yes" >/dev/null 2>&1; then
40092 jm_cv_sys_tiocgwinsz_needs_termios_h=yes
40094 rm -f conftest*
40099 echo "$as_me:$LINENO: result: $jm_cv_sys_tiocgwinsz_needs_termios_h" >&5
40100 echo "${ECHO_T}$jm_cv_sys_tiocgwinsz_needs_termios_h" >&6
40103 if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no && \
40104 test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = no; then
40105 echo "$as_me:$LINENO: checking TIOCGWINSZ in sys/pty.h" >&5
40106 echo $ECHO_N "checking TIOCGWINSZ in sys/pty.h... $ECHO_C" >&6
40107 if test "${su_cv_sys_tiocgwinsz_in_sys_pty_h+set}" = set; then
40108 echo $ECHO_N "(cached) $ECHO_C" >&6
40109 else
40110 cat >conftest.$ac_ext <<_ACEOF
40111 #line $LINENO "configure"
40112 /* confdefs.h. */
40113 _ACEOF
40114 cat confdefs.h >>conftest.$ac_ext
40115 cat >>conftest.$ac_ext <<_ACEOF
40116 /* end confdefs.h. */
40117 #include <sys/types.h>
40118 #ifdef WINSIZE_IN_PTEM
40119 # include <sys/stream.h>
40120 # include <sys/ptem.h>
40121 #endif
40122 #include <sys/ioctl.h>
40123 #include <sys/tty.h>
40124 #include <sys/pty.h>
40126 main ()
40128 int x = TIOCGWINSZ;
40130 return 0;
40132 _ACEOF
40133 rm -f conftest.$ac_objext conftest$ac_exeext
40134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40135 (eval $ac_link) 2>&5
40136 ac_status=$?
40137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40138 (exit $ac_status); } &&
40139 { ac_try='test -s conftest$ac_exeext'
40140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40141 (eval $ac_try) 2>&5
40142 ac_status=$?
40143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40144 (exit $ac_status); }; }; then
40145 su_cv_sys_tiocgwinsz_in_sys_pty_h=yes
40146 else
40147 echo "$as_me: failed program was:" >&5
40148 sed 's/^/| /' conftest.$ac_ext >&5
40150 su_cv_sys_tiocgwinsz_in_sys_pty_h=no
40152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40155 echo "$as_me:$LINENO: result: $su_cv_sys_tiocgwinsz_in_sys_pty_h" >&5
40156 echo "${ECHO_T}$su_cv_sys_tiocgwinsz_in_sys_pty_h" >&6
40158 test $su_cv_sys_tiocgwinsz_in_sys_pty_h = yes \
40160 cat >>confdefs.h <<\_ACEOF
40161 #define GWINSZ_IN_SYS_PTY 1
40162 _ACEOF
40166 # For src/kill.c.
40167 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
40168 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
40169 if test "${ac_cv_have_decl_strsignal+set}" = set; then
40170 echo $ECHO_N "(cached) $ECHO_C" >&6
40171 else
40172 cat >conftest.$ac_ext <<_ACEOF
40173 #line $LINENO "configure"
40174 /* confdefs.h. */
40175 _ACEOF
40176 cat confdefs.h >>conftest.$ac_ext
40177 cat >>conftest.$ac_ext <<_ACEOF
40178 /* end confdefs.h. */
40179 $ac_includes_default
40181 main ()
40183 #ifndef strsignal
40184 char *p = (char *) strsignal;
40185 #endif
40188 return 0;
40190 _ACEOF
40191 rm -f conftest.$ac_objext
40192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40193 (eval $ac_compile) 2>&5
40194 ac_status=$?
40195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40196 (exit $ac_status); } &&
40197 { ac_try='test -s conftest.$ac_objext'
40198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40199 (eval $ac_try) 2>&5
40200 ac_status=$?
40201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40202 (exit $ac_status); }; }; then
40203 ac_cv_have_decl_strsignal=yes
40204 else
40205 echo "$as_me: failed program was:" >&5
40206 sed 's/^/| /' conftest.$ac_ext >&5
40208 ac_cv_have_decl_strsignal=no
40210 rm -f conftest.$ac_objext conftest.$ac_ext
40212 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
40213 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
40214 if test $ac_cv_have_decl_strsignal = yes; then
40216 cat >>confdefs.h <<_ACEOF
40217 #define HAVE_DECL_STRSIGNAL 1
40218 _ACEOF
40221 else
40222 cat >>confdefs.h <<_ACEOF
40223 #define HAVE_DECL_STRSIGNAL 0
40224 _ACEOF
40228 echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
40229 echo $ECHO_N "checking whether strtoimax is declared... $ECHO_C" >&6
40230 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
40231 echo $ECHO_N "(cached) $ECHO_C" >&6
40232 else
40233 cat >conftest.$ac_ext <<_ACEOF
40234 #line $LINENO "configure"
40235 /* confdefs.h. */
40236 _ACEOF
40237 cat confdefs.h >>conftest.$ac_ext
40238 cat >>conftest.$ac_ext <<_ACEOF
40239 /* end confdefs.h. */
40240 $ac_includes_default
40242 main ()
40244 #ifndef strtoimax
40245 char *p = (char *) strtoimax;
40246 #endif
40249 return 0;
40251 _ACEOF
40252 rm -f conftest.$ac_objext
40253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40254 (eval $ac_compile) 2>&5
40255 ac_status=$?
40256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40257 (exit $ac_status); } &&
40258 { ac_try='test -s conftest.$ac_objext'
40259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40260 (eval $ac_try) 2>&5
40261 ac_status=$?
40262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40263 (exit $ac_status); }; }; then
40264 ac_cv_have_decl_strtoimax=yes
40265 else
40266 echo "$as_me: failed program was:" >&5
40267 sed 's/^/| /' conftest.$ac_ext >&5
40269 ac_cv_have_decl_strtoimax=no
40271 rm -f conftest.$ac_objext conftest.$ac_ext
40273 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
40274 echo "${ECHO_T}$ac_cv_have_decl_strtoimax" >&6
40275 if test $ac_cv_have_decl_strtoimax = yes; then
40277 cat >>confdefs.h <<_ACEOF
40278 #define HAVE_DECL_STRTOIMAX 1
40279 _ACEOF
40282 else
40283 cat >>confdefs.h <<_ACEOF
40284 #define HAVE_DECL_STRTOIMAX 0
40285 _ACEOF
40289 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
40290 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
40291 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
40292 echo $ECHO_N "(cached) $ECHO_C" >&6
40293 else
40294 cat >conftest.$ac_ext <<_ACEOF
40295 #line $LINENO "configure"
40296 /* confdefs.h. */
40297 _ACEOF
40298 cat confdefs.h >>conftest.$ac_ext
40299 cat >>conftest.$ac_ext <<_ACEOF
40300 /* end confdefs.h. */
40301 $ac_includes_default
40303 main ()
40305 #ifndef sys_siglist
40306 char *p = (char *) sys_siglist;
40307 #endif
40310 return 0;
40312 _ACEOF
40313 rm -f conftest.$ac_objext
40314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40315 (eval $ac_compile) 2>&5
40316 ac_status=$?
40317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40318 (exit $ac_status); } &&
40319 { ac_try='test -s conftest.$ac_objext'
40320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40321 (eval $ac_try) 2>&5
40322 ac_status=$?
40323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40324 (exit $ac_status); }; }; then
40325 ac_cv_have_decl_sys_siglist=yes
40326 else
40327 echo "$as_me: failed program was:" >&5
40328 sed 's/^/| /' conftest.$ac_ext >&5
40330 ac_cv_have_decl_sys_siglist=no
40332 rm -f conftest.$ac_objext conftest.$ac_ext
40334 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
40335 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
40336 if test $ac_cv_have_decl_sys_siglist = yes; then
40338 cat >>confdefs.h <<_ACEOF
40339 #define HAVE_DECL_SYS_SIGLIST 1
40340 _ACEOF
40343 else
40344 cat >>confdefs.h <<_ACEOF
40345 #define HAVE_DECL_SYS_SIGLIST 0
40346 _ACEOF
40350 echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5
40351 echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6
40352 if test "${ac_cv_have_decl__sys_siglist+set}" = set; then
40353 echo $ECHO_N "(cached) $ECHO_C" >&6
40354 else
40355 cat >conftest.$ac_ext <<_ACEOF
40356 #line $LINENO "configure"
40357 /* confdefs.h. */
40358 _ACEOF
40359 cat confdefs.h >>conftest.$ac_ext
40360 cat >>conftest.$ac_ext <<_ACEOF
40361 /* end confdefs.h. */
40362 $ac_includes_default
40364 main ()
40366 #ifndef _sys_siglist
40367 char *p = (char *) _sys_siglist;
40368 #endif
40371 return 0;
40373 _ACEOF
40374 rm -f conftest.$ac_objext
40375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40376 (eval $ac_compile) 2>&5
40377 ac_status=$?
40378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40379 (exit $ac_status); } &&
40380 { ac_try='test -s conftest.$ac_objext'
40381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40382 (eval $ac_try) 2>&5
40383 ac_status=$?
40384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40385 (exit $ac_status); }; }; then
40386 ac_cv_have_decl__sys_siglist=yes
40387 else
40388 echo "$as_me: failed program was:" >&5
40389 sed 's/^/| /' conftest.$ac_ext >&5
40391 ac_cv_have_decl__sys_siglist=no
40393 rm -f conftest.$ac_objext conftest.$ac_ext
40395 echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5
40396 echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6
40397 if test $ac_cv_have_decl__sys_siglist = yes; then
40399 cat >>confdefs.h <<_ACEOF
40400 #define HAVE_DECL__SYS_SIGLIST 1
40401 _ACEOF
40404 else
40405 cat >>confdefs.h <<_ACEOF
40406 #define HAVE_DECL__SYS_SIGLIST 0
40407 _ACEOF
40416 # Check for libypsec.a on Dolphin M88K machines.
40418 echo "$as_me:$LINENO: checking for main in -lypsec" >&5
40419 echo $ECHO_N "checking for main in -lypsec... $ECHO_C" >&6
40420 if test "${ac_cv_lib_ypsec_main+set}" = set; then
40421 echo $ECHO_N "(cached) $ECHO_C" >&6
40422 else
40423 ac_check_lib_save_LIBS=$LIBS
40424 LIBS="-lypsec $LIBS"
40425 cat >conftest.$ac_ext <<_ACEOF
40426 #line $LINENO "configure"
40427 /* confdefs.h. */
40428 _ACEOF
40429 cat confdefs.h >>conftest.$ac_ext
40430 cat >>conftest.$ac_ext <<_ACEOF
40431 /* end confdefs.h. */
40435 main ()
40437 main ();
40439 return 0;
40441 _ACEOF
40442 rm -f conftest.$ac_objext conftest$ac_exeext
40443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40444 (eval $ac_link) 2>&5
40445 ac_status=$?
40446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40447 (exit $ac_status); } &&
40448 { ac_try='test -s conftest$ac_exeext'
40449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40450 (eval $ac_try) 2>&5
40451 ac_status=$?
40452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40453 (exit $ac_status); }; }; then
40454 ac_cv_lib_ypsec_main=yes
40455 else
40456 echo "$as_me: failed program was:" >&5
40457 sed 's/^/| /' conftest.$ac_ext >&5
40459 ac_cv_lib_ypsec_main=no
40461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40462 LIBS=$ac_check_lib_save_LIBS
40464 echo "$as_me:$LINENO: result: $ac_cv_lib_ypsec_main" >&5
40465 echo "${ECHO_T}$ac_cv_lib_ypsec_main" >&6
40466 if test $ac_cv_lib_ypsec_main = yes; then
40467 cat >>confdefs.h <<_ACEOF
40468 #define HAVE_LIBYPSEC 1
40469 _ACEOF
40471 LIBS="-lypsec $LIBS"
40476 # m88k running dgux 5.4 needs this
40478 echo "$as_me:$LINENO: checking for main in -lldgc" >&5
40479 echo $ECHO_N "checking for main in -lldgc... $ECHO_C" >&6
40480 if test "${ac_cv_lib_ldgc_main+set}" = set; then
40481 echo $ECHO_N "(cached) $ECHO_C" >&6
40482 else
40483 ac_check_lib_save_LIBS=$LIBS
40484 LIBS="-lldgc $LIBS"
40485 cat >conftest.$ac_ext <<_ACEOF
40486 #line $LINENO "configure"
40487 /* confdefs.h. */
40488 _ACEOF
40489 cat confdefs.h >>conftest.$ac_ext
40490 cat >>conftest.$ac_ext <<_ACEOF
40491 /* end confdefs.h. */
40495 main ()
40497 main ();
40499 return 0;
40501 _ACEOF
40502 rm -f conftest.$ac_objext conftest$ac_exeext
40503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40504 (eval $ac_link) 2>&5
40505 ac_status=$?
40506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40507 (exit $ac_status); } &&
40508 { ac_try='test -s conftest$ac_exeext'
40509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40510 (eval $ac_try) 2>&5
40511 ac_status=$?
40512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40513 (exit $ac_status); }; }; then
40514 ac_cv_lib_ldgc_main=yes
40515 else
40516 echo "$as_me: failed program was:" >&5
40517 sed 's/^/| /' conftest.$ac_ext >&5
40519 ac_cv_lib_ldgc_main=no
40521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40522 LIBS=$ac_check_lib_save_LIBS
40524 echo "$as_me:$LINENO: result: $ac_cv_lib_ldgc_main" >&5
40525 echo "${ECHO_T}$ac_cv_lib_ldgc_main" >&6
40526 if test $ac_cv_lib_ldgc_main = yes; then
40527 cat >>confdefs.h <<_ACEOF
40528 #define HAVE_LIBLDGC 1
40529 _ACEOF
40531 LIBS="-lldgc $LIBS"
40536 # Some programs need to link with -lm. printf does if it uses
40537 # lib/strtod.c which uses pow. And seq uses the math functions,
40538 # floor, modf, rint. And factor uses sqrt. And sleep uses fesetround.
40540 # Save a copy of $LIBS and add $FLOOR_LIBM before these tests
40541 # Check for these math functions used by seq.
40542 ac_su_saved_lib="$LIBS"
40543 LIBS="$LIBS -lm"
40547 for ac_func in floor modf rint
40549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40550 echo "$as_me:$LINENO: checking for $ac_func" >&5
40551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40552 if eval "test \"\${$as_ac_var+set}\" = set"; then
40553 echo $ECHO_N "(cached) $ECHO_C" >&6
40554 else
40555 cat >conftest.$ac_ext <<_ACEOF
40556 #line $LINENO "configure"
40557 /* confdefs.h. */
40558 _ACEOF
40559 cat confdefs.h >>conftest.$ac_ext
40560 cat >>conftest.$ac_ext <<_ACEOF
40561 /* end confdefs.h. */
40562 /* System header to define __stub macros and hopefully few prototypes,
40563 which can conflict with char $ac_func (); below.
40564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40565 <limits.h> exists even on freestanding compilers. */
40566 #ifdef __STDC__
40567 # include <limits.h>
40568 #else
40569 # include <assert.h>
40570 #endif
40571 /* Override any gcc2 internal prototype to avoid an error. */
40572 #ifdef __cplusplus
40573 extern "C"
40575 #endif
40576 /* We use char because int might match the return type of a gcc2
40577 builtin and then its argument prototype would still apply. */
40578 char $ac_func ();
40579 /* The GNU C library defines this for functions which it implements
40580 to always fail with ENOSYS. Some functions are actually named
40581 something starting with __ and the normal name is an alias. */
40582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40583 choke me
40584 #else
40585 char (*f) () = $ac_func;
40586 #endif
40587 #ifdef __cplusplus
40589 #endif
40592 main ()
40594 return f != $ac_func;
40596 return 0;
40598 _ACEOF
40599 rm -f conftest.$ac_objext conftest$ac_exeext
40600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40601 (eval $ac_link) 2>&5
40602 ac_status=$?
40603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40604 (exit $ac_status); } &&
40605 { ac_try='test -s conftest$ac_exeext'
40606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40607 (eval $ac_try) 2>&5
40608 ac_status=$?
40609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40610 (exit $ac_status); }; }; then
40611 eval "$as_ac_var=yes"
40612 else
40613 echo "$as_me: failed program was:" >&5
40614 sed 's/^/| /' conftest.$ac_ext >&5
40616 eval "$as_ac_var=no"
40618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40622 if test `eval echo '${'$as_ac_var'}'` = yes; then
40623 cat >>confdefs.h <<_ACEOF
40624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40625 _ACEOF
40628 done
40630 LIBS="$ac_su_saved_lib"
40634 for ac_func in sqrt
40636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40637 echo "$as_me:$LINENO: checking for $ac_func" >&5
40638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40639 if eval "test \"\${$as_ac_var+set}\" = set"; then
40640 echo $ECHO_N "(cached) $ECHO_C" >&6
40641 else
40642 cat >conftest.$ac_ext <<_ACEOF
40643 #line $LINENO "configure"
40644 /* confdefs.h. */
40645 _ACEOF
40646 cat confdefs.h >>conftest.$ac_ext
40647 cat >>conftest.$ac_ext <<_ACEOF
40648 /* end confdefs.h. */
40649 /* System header to define __stub macros and hopefully few prototypes,
40650 which can conflict with char $ac_func (); below.
40651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40652 <limits.h> exists even on freestanding compilers. */
40653 #ifdef __STDC__
40654 # include <limits.h>
40655 #else
40656 # include <assert.h>
40657 #endif
40658 /* Override any gcc2 internal prototype to avoid an error. */
40659 #ifdef __cplusplus
40660 extern "C"
40662 #endif
40663 /* We use char because int might match the return type of a gcc2
40664 builtin and then its argument prototype would still apply. */
40665 char $ac_func ();
40666 /* The GNU C library defines this for functions which it implements
40667 to always fail with ENOSYS. Some functions are actually named
40668 something starting with __ and the normal name is an alias. */
40669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40670 choke me
40671 #else
40672 char (*f) () = $ac_func;
40673 #endif
40674 #ifdef __cplusplus
40676 #endif
40679 main ()
40681 return f != $ac_func;
40683 return 0;
40685 _ACEOF
40686 rm -f conftest.$ac_objext conftest$ac_exeext
40687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40688 (eval $ac_link) 2>&5
40689 ac_status=$?
40690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40691 (exit $ac_status); } &&
40692 { ac_try='test -s conftest$ac_exeext'
40693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40694 (eval $ac_try) 2>&5
40695 ac_status=$?
40696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40697 (exit $ac_status); }; }; then
40698 eval "$as_ac_var=yes"
40699 else
40700 echo "$as_me: failed program was:" >&5
40701 sed 's/^/| /' conftest.$ac_ext >&5
40703 eval "$as_ac_var=no"
40705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40709 if test `eval echo '${'$as_ac_var'}'` = yes; then
40710 cat >>confdefs.h <<_ACEOF
40711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40712 _ACEOF
40715 done
40717 if test $ac_cv_func_sqrt = no; then
40718 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
40719 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
40720 if test "${ac_cv_lib_m_sqrt+set}" = set; then
40721 echo $ECHO_N "(cached) $ECHO_C" >&6
40722 else
40723 ac_check_lib_save_LIBS=$LIBS
40724 LIBS="-lm $LIBS"
40725 cat >conftest.$ac_ext <<_ACEOF
40726 #line $LINENO "configure"
40727 /* confdefs.h. */
40728 _ACEOF
40729 cat confdefs.h >>conftest.$ac_ext
40730 cat >>conftest.$ac_ext <<_ACEOF
40731 /* end confdefs.h. */
40733 /* Override any gcc2 internal prototype to avoid an error. */
40734 #ifdef __cplusplus
40735 extern "C"
40736 #endif
40737 /* We use char because int might match the return type of a gcc2
40738 builtin and then its argument prototype would still apply. */
40739 char sqrt ();
40741 main ()
40743 sqrt ();
40745 return 0;
40747 _ACEOF
40748 rm -f conftest.$ac_objext conftest$ac_exeext
40749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40750 (eval $ac_link) 2>&5
40751 ac_status=$?
40752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40753 (exit $ac_status); } &&
40754 { ac_try='test -s conftest$ac_exeext'
40755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40756 (eval $ac_try) 2>&5
40757 ac_status=$?
40758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40759 (exit $ac_status); }; }; then
40760 ac_cv_lib_m_sqrt=yes
40761 else
40762 echo "$as_me: failed program was:" >&5
40763 sed 's/^/| /' conftest.$ac_ext >&5
40765 ac_cv_lib_m_sqrt=no
40767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40768 LIBS=$ac_check_lib_save_LIBS
40770 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
40771 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
40772 if test $ac_cv_lib_m_sqrt = yes; then
40773 SQRT_LIBM=-lm
40780 for ac_func in fesetround
40782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40783 echo "$as_me:$LINENO: checking for $ac_func" >&5
40784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40785 if eval "test \"\${$as_ac_var+set}\" = set"; then
40786 echo $ECHO_N "(cached) $ECHO_C" >&6
40787 else
40788 cat >conftest.$ac_ext <<_ACEOF
40789 #line $LINENO "configure"
40790 /* confdefs.h. */
40791 _ACEOF
40792 cat confdefs.h >>conftest.$ac_ext
40793 cat >>conftest.$ac_ext <<_ACEOF
40794 /* end confdefs.h. */
40795 /* System header to define __stub macros and hopefully few prototypes,
40796 which can conflict with char $ac_func (); below.
40797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40798 <limits.h> exists even on freestanding compilers. */
40799 #ifdef __STDC__
40800 # include <limits.h>
40801 #else
40802 # include <assert.h>
40803 #endif
40804 /* Override any gcc2 internal prototype to avoid an error. */
40805 #ifdef __cplusplus
40806 extern "C"
40808 #endif
40809 /* We use char because int might match the return type of a gcc2
40810 builtin and then its argument prototype would still apply. */
40811 char $ac_func ();
40812 /* The GNU C library defines this for functions which it implements
40813 to always fail with ENOSYS. Some functions are actually named
40814 something starting with __ and the normal name is an alias. */
40815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40816 choke me
40817 #else
40818 char (*f) () = $ac_func;
40819 #endif
40820 #ifdef __cplusplus
40822 #endif
40825 main ()
40827 return f != $ac_func;
40829 return 0;
40831 _ACEOF
40832 rm -f conftest.$ac_objext conftest$ac_exeext
40833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40834 (eval $ac_link) 2>&5
40835 ac_status=$?
40836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40837 (exit $ac_status); } &&
40838 { ac_try='test -s conftest$ac_exeext'
40839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40840 (eval $ac_try) 2>&5
40841 ac_status=$?
40842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40843 (exit $ac_status); }; }; then
40844 eval "$as_ac_var=yes"
40845 else
40846 echo "$as_me: failed program was:" >&5
40847 sed 's/^/| /' conftest.$ac_ext >&5
40849 eval "$as_ac_var=no"
40851 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40854 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40855 if test `eval echo '${'$as_ac_var'}'` = yes; then
40856 cat >>confdefs.h <<_ACEOF
40857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40858 _ACEOF
40861 done
40863 if test $ac_cv_func_fesetround = no; then
40864 echo "$as_me:$LINENO: checking for fesetround in -lm" >&5
40865 echo $ECHO_N "checking for fesetround in -lm... $ECHO_C" >&6
40866 if test "${ac_cv_lib_m_fesetround+set}" = set; then
40867 echo $ECHO_N "(cached) $ECHO_C" >&6
40868 else
40869 ac_check_lib_save_LIBS=$LIBS
40870 LIBS="-lm $LIBS"
40871 cat >conftest.$ac_ext <<_ACEOF
40872 #line $LINENO "configure"
40873 /* confdefs.h. */
40874 _ACEOF
40875 cat confdefs.h >>conftest.$ac_ext
40876 cat >>conftest.$ac_ext <<_ACEOF
40877 /* end confdefs.h. */
40879 /* Override any gcc2 internal prototype to avoid an error. */
40880 #ifdef __cplusplus
40881 extern "C"
40882 #endif
40883 /* We use char because int might match the return type of a gcc2
40884 builtin and then its argument prototype would still apply. */
40885 char fesetround ();
40887 main ()
40889 fesetround ();
40891 return 0;
40893 _ACEOF
40894 rm -f conftest.$ac_objext conftest$ac_exeext
40895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40896 (eval $ac_link) 2>&5
40897 ac_status=$?
40898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40899 (exit $ac_status); } &&
40900 { ac_try='test -s conftest$ac_exeext'
40901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40902 (eval $ac_try) 2>&5
40903 ac_status=$?
40904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40905 (exit $ac_status); }; }; then
40906 ac_cv_lib_m_fesetround=yes
40907 else
40908 echo "$as_me: failed program was:" >&5
40909 sed 's/^/| /' conftest.$ac_ext >&5
40911 ac_cv_lib_m_fesetround=no
40913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40914 LIBS=$ac_check_lib_save_LIBS
40916 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fesetround" >&5
40917 echo "${ECHO_T}$ac_cv_lib_m_fesetround" >&6
40918 if test $ac_cv_lib_m_fesetround = yes; then
40919 FESETROUND_LIBM=-lm
40924 # The -lsun library is required for YP support on Irix-4.0.5 systems.
40925 # m88k/svr3 DolphinOS systems using YP need -lypsec for id.
40927 echo "$as_me:$LINENO: checking for library containing yp_match" >&5
40928 echo $ECHO_N "checking for library containing yp_match... $ECHO_C" >&6
40929 if test "${ac_cv_search_yp_match+set}" = set; then
40930 echo $ECHO_N "(cached) $ECHO_C" >&6
40931 else
40933 ac_func_search_save_LIBS=$LIBS
40934 ac_cv_search_yp_match=no
40935 cat >conftest.$ac_ext <<_ACEOF
40936 #line $LINENO "configure"
40937 /* confdefs.h. */
40938 _ACEOF
40939 cat confdefs.h >>conftest.$ac_ext
40940 cat >>conftest.$ac_ext <<_ACEOF
40941 /* end confdefs.h. */
40943 /* Override any gcc2 internal prototype to avoid an error. */
40944 #ifdef __cplusplus
40945 extern "C"
40946 #endif
40947 /* We use char because int might match the return type of a gcc2
40948 builtin and then its argument prototype would still apply. */
40949 char yp_match ();
40951 main ()
40953 yp_match ();
40955 return 0;
40957 _ACEOF
40958 rm -f conftest.$ac_objext conftest$ac_exeext
40959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40960 (eval $ac_link) 2>&5
40961 ac_status=$?
40962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40963 (exit $ac_status); } &&
40964 { ac_try='test -s conftest$ac_exeext'
40965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40966 (eval $ac_try) 2>&5
40967 ac_status=$?
40968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40969 (exit $ac_status); }; }; then
40970 ac_cv_search_yp_match='none required'
40971 else
40972 echo "$as_me: failed program was:" >&5
40973 sed 's/^/| /' conftest.$ac_ext >&5
40976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40977 if test "$ac_cv_search_yp_match" = no; then
40978 for ac_lib in sun ypsec; do
40979 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40980 cat >conftest.$ac_ext <<_ACEOF
40981 #line $LINENO "configure"
40982 /* confdefs.h. */
40983 _ACEOF
40984 cat confdefs.h >>conftest.$ac_ext
40985 cat >>conftest.$ac_ext <<_ACEOF
40986 /* end confdefs.h. */
40988 /* Override any gcc2 internal prototype to avoid an error. */
40989 #ifdef __cplusplus
40990 extern "C"
40991 #endif
40992 /* We use char because int might match the return type of a gcc2
40993 builtin and then its argument prototype would still apply. */
40994 char yp_match ();
40996 main ()
40998 yp_match ();
41000 return 0;
41002 _ACEOF
41003 rm -f conftest.$ac_objext conftest$ac_exeext
41004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41005 (eval $ac_link) 2>&5
41006 ac_status=$?
41007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41008 (exit $ac_status); } &&
41009 { ac_try='test -s conftest$ac_exeext'
41010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41011 (eval $ac_try) 2>&5
41012 ac_status=$?
41013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41014 (exit $ac_status); }; }; then
41015 ac_cv_search_yp_match="-l$ac_lib"; break
41016 else
41017 echo "$as_me: failed program was:" >&5
41018 sed 's/^/| /' conftest.$ac_ext >&5
41021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41022 done
41024 LIBS=$ac_func_search_save_LIBS
41027 echo "$as_me:$LINENO: result: $ac_cv_search_yp_match" >&5
41028 echo "${ECHO_T}$ac_cv_search_yp_match" >&6
41030 if test "$ac_cv_search_yp_match" = no; then :
41032 else
41033 if test "$ac_cv_search_yp_match" = 'none required'; then :
41035 else
41036 LIBS="$ac_cv_search_yp_match $LIBS"
41042 # SysV needs -lsec, older versions of Linux need -lshadow for
41043 # shadow passwords. UnixWare 7 needs -lgen.
41045 echo "$as_me:$LINENO: checking for library containing getspnam" >&5
41046 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6
41047 if test "${ac_cv_search_getspnam+set}" = set; then
41048 echo $ECHO_N "(cached) $ECHO_C" >&6
41049 else
41051 ac_func_search_save_LIBS=$LIBS
41052 ac_cv_search_getspnam=no
41053 cat >conftest.$ac_ext <<_ACEOF
41054 #line $LINENO "configure"
41055 /* confdefs.h. */
41056 _ACEOF
41057 cat confdefs.h >>conftest.$ac_ext
41058 cat >>conftest.$ac_ext <<_ACEOF
41059 /* end confdefs.h. */
41061 /* Override any gcc2 internal prototype to avoid an error. */
41062 #ifdef __cplusplus
41063 extern "C"
41064 #endif
41065 /* We use char because int might match the return type of a gcc2
41066 builtin and then its argument prototype would still apply. */
41067 char getspnam ();
41069 main ()
41071 getspnam ();
41073 return 0;
41075 _ACEOF
41076 rm -f conftest.$ac_objext conftest$ac_exeext
41077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41078 (eval $ac_link) 2>&5
41079 ac_status=$?
41080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41081 (exit $ac_status); } &&
41082 { ac_try='test -s conftest$ac_exeext'
41083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41084 (eval $ac_try) 2>&5
41085 ac_status=$?
41086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41087 (exit $ac_status); }; }; then
41088 ac_cv_search_getspnam='none required'
41089 else
41090 echo "$as_me: failed program was:" >&5
41091 sed 's/^/| /' conftest.$ac_ext >&5
41094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41095 if test "$ac_cv_search_getspnam" = no; then
41096 for ac_lib in shadow sec gen; do
41097 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
41098 cat >conftest.$ac_ext <<_ACEOF
41099 #line $LINENO "configure"
41100 /* confdefs.h. */
41101 _ACEOF
41102 cat confdefs.h >>conftest.$ac_ext
41103 cat >>conftest.$ac_ext <<_ACEOF
41104 /* end confdefs.h. */
41106 /* Override any gcc2 internal prototype to avoid an error. */
41107 #ifdef __cplusplus
41108 extern "C"
41109 #endif
41110 /* We use char because int might match the return type of a gcc2
41111 builtin and then its argument prototype would still apply. */
41112 char getspnam ();
41114 main ()
41116 getspnam ();
41118 return 0;
41120 _ACEOF
41121 rm -f conftest.$ac_objext conftest$ac_exeext
41122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41123 (eval $ac_link) 2>&5
41124 ac_status=$?
41125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41126 (exit $ac_status); } &&
41127 { ac_try='test -s conftest$ac_exeext'
41128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41129 (eval $ac_try) 2>&5
41130 ac_status=$?
41131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41132 (exit $ac_status); }; }; then
41133 ac_cv_search_getspnam="-l$ac_lib"; break
41134 else
41135 echo "$as_me: failed program was:" >&5
41136 sed 's/^/| /' conftest.$ac_ext >&5
41139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41140 done
41142 LIBS=$ac_func_search_save_LIBS
41145 echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
41146 echo "${ECHO_T}$ac_cv_search_getspnam" >&6
41148 if test "$ac_cv_search_getspnam" = no; then :
41150 else
41151 if test "$ac_cv_search_getspnam" = 'none required'; then :
41153 else
41154 LIBS="$ac_cv_search_getspnam $LIBS"
41161 for ac_header in shadow.h
41163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41165 echo "$as_me:$LINENO: checking for $ac_header" >&5
41166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41168 echo $ECHO_N "(cached) $ECHO_C" >&6
41170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41172 else
41173 # Is the header compilable?
41174 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41176 cat >conftest.$ac_ext <<_ACEOF
41177 #line $LINENO "configure"
41178 /* confdefs.h. */
41179 _ACEOF
41180 cat confdefs.h >>conftest.$ac_ext
41181 cat >>conftest.$ac_ext <<_ACEOF
41182 /* end confdefs.h. */
41183 $ac_includes_default
41184 #include <$ac_header>
41185 _ACEOF
41186 rm -f conftest.$ac_objext
41187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41188 (eval $ac_compile) 2>&5
41189 ac_status=$?
41190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41191 (exit $ac_status); } &&
41192 { ac_try='test -s conftest.$ac_objext'
41193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41194 (eval $ac_try) 2>&5
41195 ac_status=$?
41196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41197 (exit $ac_status); }; }; then
41198 ac_header_compiler=yes
41199 else
41200 echo "$as_me: failed program was:" >&5
41201 sed 's/^/| /' conftest.$ac_ext >&5
41203 ac_header_compiler=no
41205 rm -f conftest.$ac_objext conftest.$ac_ext
41206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41207 echo "${ECHO_T}$ac_header_compiler" >&6
41209 # Is the header present?
41210 echo "$as_me:$LINENO: checking $ac_header presence" >&5
41211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41212 cat >conftest.$ac_ext <<_ACEOF
41213 #line $LINENO "configure"
41214 /* confdefs.h. */
41215 _ACEOF
41216 cat confdefs.h >>conftest.$ac_ext
41217 cat >>conftest.$ac_ext <<_ACEOF
41218 /* end confdefs.h. */
41219 #include <$ac_header>
41220 _ACEOF
41221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41223 ac_status=$?
41224 grep -v '^ *+' conftest.er1 >conftest.err
41225 rm -f conftest.er1
41226 cat conftest.err >&5
41227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41228 (exit $ac_status); } >/dev/null; then
41229 if test -s conftest.err; then
41230 ac_cpp_err=$ac_c_preproc_warn_flag
41231 else
41232 ac_cpp_err=
41234 else
41235 ac_cpp_err=yes
41237 if test -z "$ac_cpp_err"; then
41238 ac_header_preproc=yes
41239 else
41240 echo "$as_me: failed program was:" >&5
41241 sed 's/^/| /' conftest.$ac_ext >&5
41243 ac_header_preproc=no
41245 rm -f conftest.err conftest.$ac_ext
41246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41247 echo "${ECHO_T}$ac_header_preproc" >&6
41249 # So? What about this header?
41250 case $ac_header_compiler:$ac_header_preproc in
41251 yes:no )
41252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41257 cat <<\_ASBOX
41258 ## ------------------------------------ ##
41259 ## Report this to bug-autoconf@gnu.org. ##
41260 ## ------------------------------------ ##
41261 _ASBOX
41263 sed "s/^/$as_me: WARNING: /" >&2
41265 no:yes )
41266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41273 cat <<\_ASBOX
41274 ## ------------------------------------ ##
41275 ## Report this to bug-autoconf@gnu.org. ##
41276 ## ------------------------------------ ##
41277 _ASBOX
41279 sed "s/^/$as_me: WARNING: /" >&2
41281 esac
41282 echo "$as_me:$LINENO: checking for $ac_header" >&5
41283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41285 echo $ECHO_N "(cached) $ECHO_C" >&6
41286 else
41287 eval "$as_ac_Header=$ac_header_preproc"
41289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41294 cat >>confdefs.h <<_ACEOF
41295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41296 _ACEOF
41300 done
41303 # Requirements for su.c.
41304 shadow_includes="\
41305 $ac_includes_default
41306 #if HAVE_SHADOW_H
41307 # include <shadow.h>
41308 #endif
41310 echo "$as_me:$LINENO: checking for struct spwd.sp_pwdp" >&5
41311 echo $ECHO_N "checking for struct spwd.sp_pwdp... $ECHO_C" >&6
41312 if test "${ac_cv_member_struct_spwd_sp_pwdp+set}" = set; then
41313 echo $ECHO_N "(cached) $ECHO_C" >&6
41314 else
41315 cat >conftest.$ac_ext <<_ACEOF
41316 #line $LINENO "configure"
41317 /* confdefs.h. */
41318 _ACEOF
41319 cat confdefs.h >>conftest.$ac_ext
41320 cat >>conftest.$ac_ext <<_ACEOF
41321 /* end confdefs.h. */
41322 $shadow_includes
41325 main ()
41327 static struct spwd ac_aggr;
41328 if (ac_aggr.sp_pwdp)
41329 return 0;
41331 return 0;
41333 _ACEOF
41334 rm -f conftest.$ac_objext
41335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41336 (eval $ac_compile) 2>&5
41337 ac_status=$?
41338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41339 (exit $ac_status); } &&
41340 { ac_try='test -s conftest.$ac_objext'
41341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41342 (eval $ac_try) 2>&5
41343 ac_status=$?
41344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41345 (exit $ac_status); }; }; then
41346 ac_cv_member_struct_spwd_sp_pwdp=yes
41347 else
41348 echo "$as_me: failed program was:" >&5
41349 sed 's/^/| /' conftest.$ac_ext >&5
41351 cat >conftest.$ac_ext <<_ACEOF
41352 #line $LINENO "configure"
41353 /* confdefs.h. */
41354 _ACEOF
41355 cat confdefs.h >>conftest.$ac_ext
41356 cat >>conftest.$ac_ext <<_ACEOF
41357 /* end confdefs.h. */
41358 $shadow_includes
41361 main ()
41363 static struct spwd ac_aggr;
41364 if (sizeof ac_aggr.sp_pwdp)
41365 return 0;
41367 return 0;
41369 _ACEOF
41370 rm -f conftest.$ac_objext
41371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41372 (eval $ac_compile) 2>&5
41373 ac_status=$?
41374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41375 (exit $ac_status); } &&
41376 { ac_try='test -s conftest.$ac_objext'
41377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41378 (eval $ac_try) 2>&5
41379 ac_status=$?
41380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41381 (exit $ac_status); }; }; then
41382 ac_cv_member_struct_spwd_sp_pwdp=yes
41383 else
41384 echo "$as_me: failed program was:" >&5
41385 sed 's/^/| /' conftest.$ac_ext >&5
41387 ac_cv_member_struct_spwd_sp_pwdp=no
41389 rm -f conftest.$ac_objext conftest.$ac_ext
41391 rm -f conftest.$ac_objext conftest.$ac_ext
41393 echo "$as_me:$LINENO: result: $ac_cv_member_struct_spwd_sp_pwdp" >&5
41394 echo "${ECHO_T}$ac_cv_member_struct_spwd_sp_pwdp" >&6
41395 if test $ac_cv_member_struct_spwd_sp_pwdp = yes; then
41397 cat >>confdefs.h <<_ACEOF
41398 #define HAVE_STRUCT_SPWD_SP_PWDP 1
41399 _ACEOF
41405 for ac_func in getspnam
41407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41408 echo "$as_me:$LINENO: checking for $ac_func" >&5
41409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41410 if eval "test \"\${$as_ac_var+set}\" = set"; then
41411 echo $ECHO_N "(cached) $ECHO_C" >&6
41412 else
41413 cat >conftest.$ac_ext <<_ACEOF
41414 #line $LINENO "configure"
41415 /* confdefs.h. */
41416 _ACEOF
41417 cat confdefs.h >>conftest.$ac_ext
41418 cat >>conftest.$ac_ext <<_ACEOF
41419 /* end confdefs.h. */
41420 /* System header to define __stub macros and hopefully few prototypes,
41421 which can conflict with char $ac_func (); below.
41422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41423 <limits.h> exists even on freestanding compilers. */
41424 #ifdef __STDC__
41425 # include <limits.h>
41426 #else
41427 # include <assert.h>
41428 #endif
41429 /* Override any gcc2 internal prototype to avoid an error. */
41430 #ifdef __cplusplus
41431 extern "C"
41433 #endif
41434 /* We use char because int might match the return type of a gcc2
41435 builtin and then its argument prototype would still apply. */
41436 char $ac_func ();
41437 /* The GNU C library defines this for functions which it implements
41438 to always fail with ENOSYS. Some functions are actually named
41439 something starting with __ and the normal name is an alias. */
41440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41441 choke me
41442 #else
41443 char (*f) () = $ac_func;
41444 #endif
41445 #ifdef __cplusplus
41447 #endif
41450 main ()
41452 return f != $ac_func;
41454 return 0;
41456 _ACEOF
41457 rm -f conftest.$ac_objext conftest$ac_exeext
41458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41459 (eval $ac_link) 2>&5
41460 ac_status=$?
41461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41462 (exit $ac_status); } &&
41463 { ac_try='test -s conftest$ac_exeext'
41464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41465 (eval $ac_try) 2>&5
41466 ac_status=$?
41467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41468 (exit $ac_status); }; }; then
41469 eval "$as_ac_var=yes"
41470 else
41471 echo "$as_me: failed program was:" >&5
41472 sed 's/^/| /' conftest.$ac_ext >&5
41474 eval "$as_ac_var=no"
41476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41479 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41480 if test `eval echo '${'$as_ac_var'}'` = yes; then
41481 cat >>confdefs.h <<_ACEOF
41482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41483 _ACEOF
41486 done
41489 # SCO-ODT-3.0 is reported to need -lufc for crypt.
41490 # NetBSD needs -lcrypt for crypt.
41491 ac_su_saved_lib="$LIBS"
41493 echo "$as_me:$LINENO: checking for library containing crypt" >&5
41494 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
41495 if test "${ac_cv_search_crypt+set}" = set; then
41496 echo $ECHO_N "(cached) $ECHO_C" >&6
41497 else
41499 ac_func_search_save_LIBS=$LIBS
41500 ac_cv_search_crypt=no
41501 cat >conftest.$ac_ext <<_ACEOF
41502 #line $LINENO "configure"
41503 /* confdefs.h. */
41504 _ACEOF
41505 cat confdefs.h >>conftest.$ac_ext
41506 cat >>conftest.$ac_ext <<_ACEOF
41507 /* end confdefs.h. */
41509 /* Override any gcc2 internal prototype to avoid an error. */
41510 #ifdef __cplusplus
41511 extern "C"
41512 #endif
41513 /* We use char because int might match the return type of a gcc2
41514 builtin and then its argument prototype would still apply. */
41515 char crypt ();
41517 main ()
41519 crypt ();
41521 return 0;
41523 _ACEOF
41524 rm -f conftest.$ac_objext conftest$ac_exeext
41525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41526 (eval $ac_link) 2>&5
41527 ac_status=$?
41528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41529 (exit $ac_status); } &&
41530 { ac_try='test -s conftest$ac_exeext'
41531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41532 (eval $ac_try) 2>&5
41533 ac_status=$?
41534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41535 (exit $ac_status); }; }; then
41536 ac_cv_search_crypt='none required'
41537 else
41538 echo "$as_me: failed program was:" >&5
41539 sed 's/^/| /' conftest.$ac_ext >&5
41542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41543 if test "$ac_cv_search_crypt" = no; then
41544 for ac_lib in ufc crypt; do
41545 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
41546 cat >conftest.$ac_ext <<_ACEOF
41547 #line $LINENO "configure"
41548 /* confdefs.h. */
41549 _ACEOF
41550 cat confdefs.h >>conftest.$ac_ext
41551 cat >>conftest.$ac_ext <<_ACEOF
41552 /* end confdefs.h. */
41554 /* Override any gcc2 internal prototype to avoid an error. */
41555 #ifdef __cplusplus
41556 extern "C"
41557 #endif
41558 /* We use char because int might match the return type of a gcc2
41559 builtin and then its argument prototype would still apply. */
41560 char crypt ();
41562 main ()
41564 crypt ();
41566 return 0;
41568 _ACEOF
41569 rm -f conftest.$ac_objext conftest$ac_exeext
41570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41571 (eval $ac_link) 2>&5
41572 ac_status=$?
41573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41574 (exit $ac_status); } &&
41575 { ac_try='test -s conftest$ac_exeext'
41576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41577 (eval $ac_try) 2>&5
41578 ac_status=$?
41579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41580 (exit $ac_status); }; }; then
41581 ac_cv_search_crypt="-l$ac_lib"; break
41582 else
41583 echo "$as_me: failed program was:" >&5
41584 sed 's/^/| /' conftest.$ac_ext >&5
41587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41588 done
41590 LIBS=$ac_func_search_save_LIBS
41593 echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
41594 echo "${ECHO_T}$ac_cv_search_crypt" >&6
41596 if test "$ac_cv_search_crypt" = no; then :
41598 else
41599 if test "$ac_cv_search_crypt" = 'none required'; then :
41601 else
41602 LIBS="$ac_cv_search_crypt $LIBS"
41603 LIB_CRYPT="$ac_cv_search_crypt"
41607 LIBS="$ac_su_saved_lib"
41612 MKINSTALLDIRS=
41613 if test -n "$ac_aux_dir"; then
41614 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
41616 if test -z "$MKINSTALLDIRS"; then
41617 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
41624 # Extract the first word of "msgfmt", so it can be a program name with args.
41625 set dummy msgfmt; ac_word=$2
41626 echo "$as_me:$LINENO: checking for $ac_word" >&5
41627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41628 if test "${ac_cv_path_MSGFMT+set}" = set; then
41629 echo $ECHO_N "(cached) $ECHO_C" >&6
41630 else
41631 case "$MSGFMT" in
41633 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
41636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
41637 for ac_dir in $PATH; do
41638 test -z "$ac_dir" && ac_dir=.
41639 if test -f $ac_dir/$ac_word; then
41640 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
41641 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
41642 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
41643 break
41646 done
41647 IFS="$ac_save_ifs"
41648 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
41650 esac
41652 MSGFMT="$ac_cv_path_MSGFMT"
41653 if test "$MSGFMT" != ":"; then
41654 echo "$as_me:$LINENO: result: $MSGFMT" >&5
41655 echo "${ECHO_T}$MSGFMT" >&6
41656 else
41657 echo "$as_me:$LINENO: result: no" >&5
41658 echo "${ECHO_T}no" >&6
41661 # Extract the first word of "gmsgfmt", so it can be a program name with args.
41662 set dummy gmsgfmt; ac_word=$2
41663 echo "$as_me:$LINENO: checking for $ac_word" >&5
41664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41665 if test "${ac_cv_path_GMSGFMT+set}" = set; then
41666 echo $ECHO_N "(cached) $ECHO_C" >&6
41667 else
41668 case $GMSGFMT in
41669 [\\/]* | ?:[\\/]*)
41670 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
41673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41674 for as_dir in $PATH
41676 IFS=$as_save_IFS
41677 test -z "$as_dir" && as_dir=.
41678 for ac_exec_ext in '' $ac_executable_extensions; do
41679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41680 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
41681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41682 break 2
41684 done
41685 done
41687 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
41689 esac
41691 GMSGFMT=$ac_cv_path_GMSGFMT
41693 if test -n "$GMSGFMT"; then
41694 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
41695 echo "${ECHO_T}$GMSGFMT" >&6
41696 else
41697 echo "$as_me:$LINENO: result: no" >&5
41698 echo "${ECHO_T}no" >&6
41702 # Extract the first word of "xgettext", so it can be a program name with args.
41703 set dummy xgettext; ac_word=$2
41704 echo "$as_me:$LINENO: checking for $ac_word" >&5
41705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41706 if test "${ac_cv_path_XGETTEXT+set}" = set; then
41707 echo $ECHO_N "(cached) $ECHO_C" >&6
41708 else
41709 case "$XGETTEXT" in
41711 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
41714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
41715 for ac_dir in $PATH; do
41716 test -z "$ac_dir" && ac_dir=.
41717 if test -f $ac_dir/$ac_word; then
41718 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
41719 (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
41720 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
41721 break
41724 done
41725 IFS="$ac_save_ifs"
41726 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
41728 esac
41730 XGETTEXT="$ac_cv_path_XGETTEXT"
41731 if test "$XGETTEXT" != ":"; then
41732 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
41733 echo "${ECHO_T}$XGETTEXT" >&6
41734 else
41735 echo "$as_me:$LINENO: result: no" >&5
41736 echo "${ECHO_T}no" >&6
41739 rm -f messages.po
41741 # Extract the first word of "msgmerge", so it can be a program name with args.
41742 set dummy msgmerge; ac_word=$2
41743 echo "$as_me:$LINENO: checking for $ac_word" >&5
41744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41745 if test "${ac_cv_path_MSGMERGE+set}" = set; then
41746 echo $ECHO_N "(cached) $ECHO_C" >&6
41747 else
41748 case "$MSGMERGE" in
41750 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
41753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
41754 for ac_dir in $PATH; do
41755 test -z "$ac_dir" && ac_dir=.
41756 if test -f $ac_dir/$ac_word; then
41757 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
41758 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
41759 break
41762 done
41763 IFS="$ac_save_ifs"
41764 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
41766 esac
41768 MSGMERGE="$ac_cv_path_MSGMERGE"
41769 if test "$MSGMERGE" != ":"; then
41770 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
41771 echo "${ECHO_T}$MSGMERGE" >&6
41772 else
41773 echo "$as_me:$LINENO: result: no" >&5
41774 echo "${ECHO_T}no" >&6
41778 if test "$GMSGFMT" != ":"; then
41779 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
41780 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
41782 else
41783 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
41784 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
41785 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
41786 GMSGFMT=":"
41790 if test "$XGETTEXT" != ":"; then
41791 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
41792 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
41794 else
41795 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
41796 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
41797 XGETTEXT=":"
41799 rm -f messages.po
41802 ac_config_commands="$ac_config_commands default-1"
41820 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
41821 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
41822 # Check whether --enable-nls or --disable-nls was given.
41823 if test "${enable_nls+set}" = set; then
41824 enableval="$enable_nls"
41825 USE_NLS=$enableval
41826 else
41827 USE_NLS=yes
41829 echo "$as_me:$LINENO: result: $USE_NLS" >&5
41830 echo "${ECHO_T}$USE_NLS" >&6
41834 LIBINTL=
41835 LTLIBINTL=
41836 POSUB=
41838 if test "$USE_NLS" = "yes"; then
41839 gt_use_preinstalled_gnugettext=no
41846 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
41847 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
41848 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
41849 echo $ECHO_N "(cached) $ECHO_C" >&6
41850 else
41851 cat >conftest.$ac_ext <<_ACEOF
41852 #line $LINENO "configure"
41853 /* confdefs.h. */
41854 _ACEOF
41855 cat confdefs.h >>conftest.$ac_ext
41856 cat >>conftest.$ac_ext <<_ACEOF
41857 /* end confdefs.h. */
41858 #include <libintl.h>
41859 extern int _nl_msg_cat_cntr;
41860 extern int *_nl_domain_bindings;
41862 main ()
41864 bindtextdomain ("", "");
41865 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
41867 return 0;
41869 _ACEOF
41870 rm -f conftest.$ac_objext conftest$ac_exeext
41871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41872 (eval $ac_link) 2>&5
41873 ac_status=$?
41874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41875 (exit $ac_status); } &&
41876 { ac_try='test -s conftest$ac_exeext'
41877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41878 (eval $ac_try) 2>&5
41879 ac_status=$?
41880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41881 (exit $ac_status); }; }; then
41882 gt_cv_func_gnugettext2_libc=yes
41883 else
41884 echo "$as_me: failed program was:" >&5
41885 sed 's/^/| /' conftest.$ac_ext >&5
41887 gt_cv_func_gnugettext2_libc=no
41889 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41891 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
41892 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
41894 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
41900 am_save_CPPFLAGS="$CPPFLAGS"
41902 for element in $INCICONV; do
41903 haveit=
41904 for x in $CPPFLAGS; do
41906 acl_save_prefix="$prefix"
41907 prefix="$acl_final_prefix"
41908 acl_save_exec_prefix="$exec_prefix"
41909 exec_prefix="$acl_final_exec_prefix"
41910 eval x=\"$x\"
41911 exec_prefix="$acl_save_exec_prefix"
41912 prefix="$acl_save_prefix"
41914 if test "X$x" = "X$element"; then
41915 haveit=yes
41916 break
41918 done
41919 if test -z "$haveit"; then
41920 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
41922 done
41925 echo "$as_me:$LINENO: checking for iconv" >&5
41926 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
41927 if test "${am_cv_func_iconv+set}" = set; then
41928 echo $ECHO_N "(cached) $ECHO_C" >&6
41929 else
41931 am_cv_func_iconv="no, consider installing GNU libiconv"
41932 am_cv_lib_iconv=no
41933 cat >conftest.$ac_ext <<_ACEOF
41934 #line $LINENO "configure"
41935 /* confdefs.h. */
41936 _ACEOF
41937 cat confdefs.h >>conftest.$ac_ext
41938 cat >>conftest.$ac_ext <<_ACEOF
41939 /* end confdefs.h. */
41940 #include <stdlib.h>
41941 #include <iconv.h>
41943 main ()
41945 iconv_t cd = iconv_open("","");
41946 iconv(cd,NULL,NULL,NULL,NULL);
41947 iconv_close(cd);
41949 return 0;
41951 _ACEOF
41952 rm -f conftest.$ac_objext conftest$ac_exeext
41953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41954 (eval $ac_link) 2>&5
41955 ac_status=$?
41956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41957 (exit $ac_status); } &&
41958 { ac_try='test -s conftest$ac_exeext'
41959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41960 (eval $ac_try) 2>&5
41961 ac_status=$?
41962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41963 (exit $ac_status); }; }; then
41964 am_cv_func_iconv=yes
41965 else
41966 echo "$as_me: failed program was:" >&5
41967 sed 's/^/| /' conftest.$ac_ext >&5
41970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41971 if test "$am_cv_func_iconv" != yes; then
41972 am_save_LIBS="$LIBS"
41973 LIBS="$LIBS $LIBICONV"
41974 cat >conftest.$ac_ext <<_ACEOF
41975 #line $LINENO "configure"
41976 /* confdefs.h. */
41977 _ACEOF
41978 cat confdefs.h >>conftest.$ac_ext
41979 cat >>conftest.$ac_ext <<_ACEOF
41980 /* end confdefs.h. */
41981 #include <stdlib.h>
41982 #include <iconv.h>
41984 main ()
41986 iconv_t cd = iconv_open("","");
41987 iconv(cd,NULL,NULL,NULL,NULL);
41988 iconv_close(cd);
41990 return 0;
41992 _ACEOF
41993 rm -f conftest.$ac_objext conftest$ac_exeext
41994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41995 (eval $ac_link) 2>&5
41996 ac_status=$?
41997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41998 (exit $ac_status); } &&
41999 { ac_try='test -s conftest$ac_exeext'
42000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42001 (eval $ac_try) 2>&5
42002 ac_status=$?
42003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42004 (exit $ac_status); }; }; then
42005 am_cv_lib_iconv=yes
42006 am_cv_func_iconv=yes
42007 else
42008 echo "$as_me: failed program was:" >&5
42009 sed 's/^/| /' conftest.$ac_ext >&5
42012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42013 LIBS="$am_save_LIBS"
42017 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
42018 echo "${ECHO_T}$am_cv_func_iconv" >&6
42019 if test "$am_cv_func_iconv" = yes; then
42021 cat >>confdefs.h <<\_ACEOF
42022 #define HAVE_ICONV 1
42023 _ACEOF
42026 if test "$am_cv_lib_iconv" = yes; then
42027 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
42028 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
42029 echo "$as_me:$LINENO: result: $LIBICONV" >&5
42030 echo "${ECHO_T}$LIBICONV" >&6
42031 else
42032 CPPFLAGS="$am_save_CPPFLAGS"
42033 LIBICONV=
42034 LTLIBICONV=
42042 use_additional=yes
42044 acl_save_prefix="$prefix"
42045 prefix="$acl_final_prefix"
42046 acl_save_exec_prefix="$exec_prefix"
42047 exec_prefix="$acl_final_exec_prefix"
42049 eval additional_includedir=\"$includedir\"
42050 eval additional_libdir=\"$libdir\"
42052 exec_prefix="$acl_save_exec_prefix"
42053 prefix="$acl_save_prefix"
42056 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
42057 if test "${with_libintl_prefix+set}" = set; then
42058 withval="$with_libintl_prefix"
42060 if test "X$withval" = "Xno"; then
42061 use_additional=no
42062 else
42063 if test "X$withval" = "X"; then
42065 acl_save_prefix="$prefix"
42066 prefix="$acl_final_prefix"
42067 acl_save_exec_prefix="$exec_prefix"
42068 exec_prefix="$acl_final_exec_prefix"
42070 eval additional_includedir=\"$includedir\"
42071 eval additional_libdir=\"$libdir\"
42073 exec_prefix="$acl_save_exec_prefix"
42074 prefix="$acl_save_prefix"
42076 else
42077 additional_includedir="$withval/include"
42078 additional_libdir="$withval/lib"
42083 LIBINTL=
42084 LTLIBINTL=
42085 INCINTL=
42086 rpathdirs=
42087 ltrpathdirs=
42088 names_already_handled=
42089 names_next_round='intl '
42090 while test -n "$names_next_round"; do
42091 names_this_round="$names_next_round"
42092 names_next_round=
42093 for name in $names_this_round; do
42094 already_handled=
42095 for n in $names_already_handled; do
42096 if test "$n" = "$name"; then
42097 already_handled=yes
42098 break
42100 done
42101 if test -z "$already_handled"; then
42102 names_already_handled="$names_already_handled $name"
42103 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
42104 eval value=\"\$HAVE_LIB$uppername\"
42105 if test -n "$value"; then
42106 if test "$value" = yes; then
42107 eval value=\"\$LIB$uppername\"
42108 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
42109 eval value=\"\$LTLIB$uppername\"
42110 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
42111 else
42114 else
42115 found_dir=
42116 found_la=
42117 found_so=
42118 found_a=
42119 if test $use_additional = yes; then
42120 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
42121 found_dir="$additional_libdir"
42122 found_so="$additional_libdir/lib$name.$shlibext"
42123 if test -f "$additional_libdir/lib$name.la"; then
42124 found_la="$additional_libdir/lib$name.la"
42126 else
42127 if test -f "$additional_libdir/lib$name.$libext"; then
42128 found_dir="$additional_libdir"
42129 found_a="$additional_libdir/lib$name.$libext"
42130 if test -f "$additional_libdir/lib$name.la"; then
42131 found_la="$additional_libdir/lib$name.la"
42136 if test "X$found_dir" = "X"; then
42137 for x in $LDFLAGS $LTLIBINTL; do
42139 acl_save_prefix="$prefix"
42140 prefix="$acl_final_prefix"
42141 acl_save_exec_prefix="$exec_prefix"
42142 exec_prefix="$acl_final_exec_prefix"
42143 eval x=\"$x\"
42144 exec_prefix="$acl_save_exec_prefix"
42145 prefix="$acl_save_prefix"
42147 case "$x" in
42148 -L*)
42149 dir=`echo "X$x" | sed -e 's/^X-L//'`
42150 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
42151 found_dir="$dir"
42152 found_so="$dir/lib$name.$shlibext"
42153 if test -f "$dir/lib$name.la"; then
42154 found_la="$dir/lib$name.la"
42156 else
42157 if test -f "$dir/lib$name.$libext"; then
42158 found_dir="$dir"
42159 found_a="$dir/lib$name.$libext"
42160 if test -f "$dir/lib$name.la"; then
42161 found_la="$dir/lib$name.la"
42166 esac
42167 if test "X$found_dir" != "X"; then
42168 break
42170 done
42172 if test "X$found_dir" != "X"; then
42173 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
42174 if test "X$found_so" != "X"; then
42175 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
42176 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
42177 else
42178 haveit=
42179 for x in $ltrpathdirs; do
42180 if test "X$x" = "X$found_dir"; then
42181 haveit=yes
42182 break
42184 done
42185 if test -z "$haveit"; then
42186 ltrpathdirs="$ltrpathdirs $found_dir"
42188 if test "$hardcode_direct" = yes; then
42189 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
42190 else
42191 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
42192 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
42193 haveit=
42194 for x in $rpathdirs; do
42195 if test "X$x" = "X$found_dir"; then
42196 haveit=yes
42197 break
42199 done
42200 if test -z "$haveit"; then
42201 rpathdirs="$rpathdirs $found_dir"
42203 else
42204 haveit=
42205 for x in $LDFLAGS $LIBINTL; do
42207 acl_save_prefix="$prefix"
42208 prefix="$acl_final_prefix"
42209 acl_save_exec_prefix="$exec_prefix"
42210 exec_prefix="$acl_final_exec_prefix"
42211 eval x=\"$x\"
42212 exec_prefix="$acl_save_exec_prefix"
42213 prefix="$acl_save_prefix"
42215 if test "X$x" = "X-L$found_dir"; then
42216 haveit=yes
42217 break
42219 done
42220 if test -z "$haveit"; then
42221 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
42223 if test "$hardcode_minus_L" != no; then
42224 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
42225 else
42226 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
42231 else
42232 if test "X$found_a" != "X"; then
42233 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
42234 else
42235 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
42238 additional_includedir=
42239 case "$found_dir" in
42240 */lib | */lib/)
42241 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
42242 additional_includedir="$basedir/include"
42244 esac
42245 if test "X$additional_includedir" != "X"; then
42246 if test "X$additional_includedir" != "X/usr/include"; then
42247 haveit=
42248 if test "X$additional_includedir" = "X/usr/local/include"; then
42249 if test -n "$GCC"; then
42250 case $host_os in
42251 linux*) haveit=yes;;
42252 esac
42255 if test -z "$haveit"; then
42256 for x in $CPPFLAGS $INCINTL; do
42258 acl_save_prefix="$prefix"
42259 prefix="$acl_final_prefix"
42260 acl_save_exec_prefix="$exec_prefix"
42261 exec_prefix="$acl_final_exec_prefix"
42262 eval x=\"$x\"
42263 exec_prefix="$acl_save_exec_prefix"
42264 prefix="$acl_save_prefix"
42266 if test "X$x" = "X-I$additional_includedir"; then
42267 haveit=yes
42268 break
42270 done
42271 if test -z "$haveit"; then
42272 if test -d "$additional_includedir"; then
42273 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
42279 if test -n "$found_la"; then
42280 save_libdir="$libdir"
42281 case "$found_la" in
42282 */* | *\\*) . "$found_la" ;;
42283 *) . "./$found_la" ;;
42284 esac
42285 libdir="$save_libdir"
42286 for dep in $dependency_libs; do
42287 case "$dep" in
42288 -L*)
42289 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
42290 if test "X$additional_libdir" != "X/usr/lib"; then
42291 haveit=
42292 if test "X$additional_libdir" = "X/usr/local/lib"; then
42293 if test -n "$GCC"; then
42294 case $host_os in
42295 linux*) haveit=yes;;
42296 esac
42299 if test -z "$haveit"; then
42300 haveit=
42301 for x in $LDFLAGS $LIBINTL; do
42303 acl_save_prefix="$prefix"
42304 prefix="$acl_final_prefix"
42305 acl_save_exec_prefix="$exec_prefix"
42306 exec_prefix="$acl_final_exec_prefix"
42307 eval x=\"$x\"
42308 exec_prefix="$acl_save_exec_prefix"
42309 prefix="$acl_save_prefix"
42311 if test "X$x" = "X-L$additional_libdir"; then
42312 haveit=yes
42313 break
42315 done
42316 if test -z "$haveit"; then
42317 if test -d "$additional_libdir"; then
42318 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
42321 haveit=
42322 for x in $LDFLAGS $LTLIBINTL; do
42324 acl_save_prefix="$prefix"
42325 prefix="$acl_final_prefix"
42326 acl_save_exec_prefix="$exec_prefix"
42327 exec_prefix="$acl_final_exec_prefix"
42328 eval x=\"$x\"
42329 exec_prefix="$acl_save_exec_prefix"
42330 prefix="$acl_save_prefix"
42332 if test "X$x" = "X-L$additional_libdir"; then
42333 haveit=yes
42334 break
42336 done
42337 if test -z "$haveit"; then
42338 if test -d "$additional_libdir"; then
42339 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
42345 -R*)
42346 dir=`echo "X$dep" | sed -e 's/^X-R//'`
42347 if test "$enable_rpath" != no; then
42348 haveit=
42349 for x in $rpathdirs; do
42350 if test "X$x" = "X$dir"; then
42351 haveit=yes
42352 break
42354 done
42355 if test -z "$haveit"; then
42356 rpathdirs="$rpathdirs $dir"
42358 haveit=
42359 for x in $ltrpathdirs; do
42360 if test "X$x" = "X$dir"; then
42361 haveit=yes
42362 break
42364 done
42365 if test -z "$haveit"; then
42366 ltrpathdirs="$ltrpathdirs $dir"
42370 -l*)
42371 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
42373 *.la)
42374 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
42377 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
42378 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
42380 esac
42381 done
42383 else
42384 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
42385 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
42389 done
42390 done
42391 if test "X$rpathdirs" != "X"; then
42392 if test -n "$hardcode_libdir_separator"; then
42393 alldirs=
42394 for found_dir in $rpathdirs; do
42395 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
42396 done
42397 acl_save_libdir="$libdir"
42398 libdir="$alldirs"
42399 eval flag=\"$hardcode_libdir_flag_spec\"
42400 libdir="$acl_save_libdir"
42401 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
42402 else
42403 for found_dir in $rpathdirs; do
42404 acl_save_libdir="$libdir"
42405 libdir="$found_dir"
42406 eval flag=\"$hardcode_libdir_flag_spec\"
42407 libdir="$acl_save_libdir"
42408 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
42409 done
42412 if test "X$ltrpathdirs" != "X"; then
42413 for found_dir in $ltrpathdirs; do
42414 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
42415 done
42418 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
42419 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
42420 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
42421 echo $ECHO_N "(cached) $ECHO_C" >&6
42422 else
42423 gt_save_CPPFLAGS="$CPPFLAGS"
42424 CPPFLAGS="$CPPFLAGS $INCINTL"
42425 gt_save_LIBS="$LIBS"
42426 LIBS="$LIBS $LIBINTL"
42427 cat >conftest.$ac_ext <<_ACEOF
42428 #line $LINENO "configure"
42429 /* confdefs.h. */
42430 _ACEOF
42431 cat confdefs.h >>conftest.$ac_ext
42432 cat >>conftest.$ac_ext <<_ACEOF
42433 /* end confdefs.h. */
42434 #include <libintl.h>
42435 extern int _nl_msg_cat_cntr;
42436 extern
42437 #ifdef __cplusplus
42439 #endif
42440 const char *_nl_expand_alias ();
42442 main ()
42444 bindtextdomain ("", "");
42445 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
42447 return 0;
42449 _ACEOF
42450 rm -f conftest.$ac_objext conftest$ac_exeext
42451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42452 (eval $ac_link) 2>&5
42453 ac_status=$?
42454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42455 (exit $ac_status); } &&
42456 { ac_try='test -s conftest$ac_exeext'
42457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42458 (eval $ac_try) 2>&5
42459 ac_status=$?
42460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42461 (exit $ac_status); }; }; then
42462 gt_cv_func_gnugettext2_libintl=yes
42463 else
42464 echo "$as_me: failed program was:" >&5
42465 sed 's/^/| /' conftest.$ac_ext >&5
42467 gt_cv_func_gnugettext2_libintl=no
42469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42470 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
42471 LIBS="$LIBS $LIBICONV"
42472 cat >conftest.$ac_ext <<_ACEOF
42473 #line $LINENO "configure"
42474 /* confdefs.h. */
42475 _ACEOF
42476 cat confdefs.h >>conftest.$ac_ext
42477 cat >>conftest.$ac_ext <<_ACEOF
42478 /* end confdefs.h. */
42479 #include <libintl.h>
42480 extern int _nl_msg_cat_cntr;
42481 extern
42482 #ifdef __cplusplus
42484 #endif
42485 const char *_nl_expand_alias ();
42487 main ()
42489 bindtextdomain ("", "");
42490 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
42492 return 0;
42494 _ACEOF
42495 rm -f conftest.$ac_objext conftest$ac_exeext
42496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42497 (eval $ac_link) 2>&5
42498 ac_status=$?
42499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42500 (exit $ac_status); } &&
42501 { ac_try='test -s conftest$ac_exeext'
42502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42503 (eval $ac_try) 2>&5
42504 ac_status=$?
42505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42506 (exit $ac_status); }; }; then
42507 LIBINTL="$LIBINTL $LIBICONV"
42508 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
42509 gt_cv_func_gnugettext2_libintl=yes
42511 else
42512 echo "$as_me: failed program was:" >&5
42513 sed 's/^/| /' conftest.$ac_ext >&5
42516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42518 CPPFLAGS="$gt_save_CPPFLAGS"
42519 LIBS="$gt_save_LIBS"
42521 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
42522 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
42525 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
42526 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
42527 && test "$PACKAGE" != gettext; }; then
42528 gt_use_preinstalled_gnugettext=yes
42529 else
42530 LIBINTL=
42531 LTLIBINTL=
42532 INCINTL=
42537 if test "$gt_use_preinstalled_gnugettext" = "yes" \
42538 || test "$nls_cv_use_gnu_gettext" = "yes"; then
42540 cat >>confdefs.h <<\_ACEOF
42541 #define ENABLE_NLS 1
42542 _ACEOF
42544 else
42545 USE_NLS=no
42549 if test "$USE_NLS" = "yes"; then
42551 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
42552 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
42553 echo "$as_me:$LINENO: checking how to link with libintl" >&5
42554 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
42555 echo "$as_me:$LINENO: result: $LIBINTL" >&5
42556 echo "${ECHO_T}$LIBINTL" >&6
42558 for element in $INCINTL; do
42559 haveit=
42560 for x in $CPPFLAGS; do
42562 acl_save_prefix="$prefix"
42563 prefix="$acl_final_prefix"
42564 acl_save_exec_prefix="$exec_prefix"
42565 exec_prefix="$acl_final_exec_prefix"
42566 eval x=\"$x\"
42567 exec_prefix="$acl_save_exec_prefix"
42568 prefix="$acl_save_prefix"
42570 if test "X$x" = "X$element"; then
42571 haveit=yes
42572 break
42574 done
42575 if test -z "$haveit"; then
42576 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
42578 done
42583 cat >>confdefs.h <<\_ACEOF
42584 #define HAVE_GETTEXT 1
42585 _ACEOF
42588 cat >>confdefs.h <<\_ACEOF
42589 #define HAVE_DCGETTEXT 1
42590 _ACEOF
42594 POSUB=po
42599 INTLLIBS="$LIBINTL"
42608 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"
42610 cat >confcache <<\_ACEOF
42611 # This file is a shell script that caches the results of configure
42612 # tests run on this system so they can be shared between configure
42613 # scripts and configure runs, see configure's option --config-cache.
42614 # It is not useful on other systems. If it contains results you don't
42615 # want to keep, you may remove or edit it.
42617 # config.status only pays attention to the cache file if you give it
42618 # the --recheck option to rerun configure.
42620 # `ac_cv_env_foo' variables (set or unset) will be overridden when
42621 # loading this file, other *unset* `ac_cv_foo' will be assigned the
42622 # following values.
42624 _ACEOF
42626 # The following way of writing the cache mishandles newlines in values,
42627 # but we know of no workaround that is simple, portable, and efficient.
42628 # So, don't put newlines in cache variables' values.
42629 # Ultrix sh set writes to stderr and can't be redirected directly,
42630 # and sets the high bit in the cache file unless we assign to the vars.
42632 (set) 2>&1 |
42633 case `(ac_space=' '; set | grep ac_space) 2>&1` in
42634 *ac_space=\ *)
42635 # `set' does not quote correctly, so add quotes (double-quote
42636 # substitution turns \\\\ into \\, and sed turns \\ into \).
42637 sed -n \
42638 "s/'/'\\\\''/g;
42639 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42642 # `set' quotes correctly as required by POSIX, so do not add quotes.
42643 sed -n \
42644 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
42646 esac;
42648 sed '
42649 t clear
42650 : clear
42651 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42652 t end
42653 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42654 : end' >>confcache
42655 if diff $cache_file confcache >/dev/null 2>&1; then :; else
42656 if test -w $cache_file; then
42657 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
42658 cat confcache >$cache_file
42659 else
42660 echo "not updating unwritable cache $cache_file"
42663 rm -f confcache
42665 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42666 # Let make expand exec_prefix.
42667 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42669 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42670 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42671 # trailing colons and then remove the whole line if VPATH becomes empty
42672 # (actually we leave an empty line to preserve line numbers).
42673 if test "x$srcdir" = x.; then
42674 ac_vpsub='/^[ ]*VPATH[ ]*=/{
42675 s/:*\$(srcdir):*/:/;
42676 s/:*\${srcdir}:*/:/;
42677 s/:*@srcdir@:*/:/;
42678 s/^\([^=]*=[ ]*\):*/\1/;
42679 s/:*$//;
42680 s/^[^=]*=[ ]*$//;
42684 DEFS=-DHAVE_CONFIG_H
42686 ac_libobjs=
42687 ac_ltlibobjs=
42688 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42689 # 1. Remove the extension, and $U if already installed.
42690 ac_i=`echo "$ac_i" |
42691 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
42692 # 2. Add them.
42693 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
42694 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
42695 done
42696 LIBOBJS=$ac_libobjs
42698 LTLIBOBJS=$ac_ltlibobjs
42701 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
42702 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
42703 Usually this means the macro was only invoked conditionally." >&5
42704 echo "$as_me: error: conditional \"AMDEP\" was never defined.
42705 Usually this means the macro was only invoked conditionally." >&2;}
42706 { (exit 1); exit 1; }; }
42708 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42709 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42710 Usually this means the macro was only invoked conditionally." >&5
42711 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42712 Usually this means the macro was only invoked conditionally." >&2;}
42713 { (exit 1); exit 1; }; }
42716 : ${CONFIG_STATUS=./config.status}
42717 ac_clean_files_save=$ac_clean_files
42718 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42719 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42720 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42721 cat >$CONFIG_STATUS <<_ACEOF
42722 #! $SHELL
42723 # Generated by $as_me.
42724 # Run this file to recreate the current configuration.
42725 # Compiler output produced by configure, useful for debugging
42726 # configure, is in config.log if it exists.
42728 debug=false
42729 ac_cs_recheck=false
42730 ac_cs_silent=false
42731 SHELL=\${CONFIG_SHELL-$SHELL}
42732 _ACEOF
42734 cat >>$CONFIG_STATUS <<\_ACEOF
42735 ## --------------------- ##
42736 ## M4sh Initialization. ##
42737 ## --------------------- ##
42739 # Be Bourne compatible
42740 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42741 emulate sh
42742 NULLCMD=:
42743 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42744 # is contrary to our usage. Disable this feature.
42745 alias -g '${1+"$@"}'='"$@"'
42746 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42747 set -o posix
42750 # Support unset when possible.
42751 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
42752 as_unset=unset
42753 else
42754 as_unset=false
42758 # Work around bugs in pre-3.0 UWIN ksh.
42759 $as_unset ENV MAIL MAILPATH
42760 PS1='$ '
42761 PS2='> '
42762 PS4='+ '
42764 # NLS nuisances.
42765 for as_var in \
42766 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42767 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42768 LC_TELEPHONE LC_TIME
42770 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
42771 eval $as_var=C; export $as_var
42772 else
42773 $as_unset $as_var
42775 done
42777 # Required to use basename.
42778 if expr a : '\(a\)' >/dev/null 2>&1; then
42779 as_expr=expr
42780 else
42781 as_expr=false
42784 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42785 as_basename=basename
42786 else
42787 as_basename=false
42791 # Name of the executable.
42792 as_me=`$as_basename "$0" ||
42793 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42794 X"$0" : 'X\(//\)$' \| \
42795 X"$0" : 'X\(/\)$' \| \
42796 . : '\(.\)' 2>/dev/null ||
42797 echo X/"$0" |
42798 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42799 /^X\/\(\/\/\)$/{ s//\1/; q; }
42800 /^X\/\(\/\).*/{ s//\1/; q; }
42801 s/.*/./; q'`
42804 # PATH needs CR, and LINENO needs CR and PATH.
42805 # Avoid depending upon Character Ranges.
42806 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42807 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42808 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42809 as_cr_digits='0123456789'
42810 as_cr_alnum=$as_cr_Letters$as_cr_digits
42812 # The user is always right.
42813 if test "${PATH_SEPARATOR+set}" != set; then
42814 echo "#! /bin/sh" >conf$$.sh
42815 echo "exit 0" >>conf$$.sh
42816 chmod +x conf$$.sh
42817 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42818 PATH_SEPARATOR=';'
42819 else
42820 PATH_SEPARATOR=:
42822 rm -f conf$$.sh
42826 as_lineno_1=$LINENO
42827 as_lineno_2=$LINENO
42828 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42829 test "x$as_lineno_1" != "x$as_lineno_2" &&
42830 test "x$as_lineno_3" = "x$as_lineno_2" || {
42831 # Find who we are. Look in the path if we contain no path at all
42832 # relative or not.
42833 case $0 in
42834 *[\\/]* ) as_myself=$0 ;;
42835 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42836 for as_dir in $PATH
42838 IFS=$as_save_IFS
42839 test -z "$as_dir" && as_dir=.
42840 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42841 done
42844 esac
42845 # We did not find ourselves, most probably we were run as `sh COMMAND'
42846 # in which case we are not to be found in the path.
42847 if test "x$as_myself" = x; then
42848 as_myself=$0
42850 if test ! -f "$as_myself"; then
42851 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
42852 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
42853 { (exit 1); exit 1; }; }
42855 case $CONFIG_SHELL in
42857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42858 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42860 IFS=$as_save_IFS
42861 test -z "$as_dir" && as_dir=.
42862 for as_base in sh bash ksh sh5; do
42863 case $as_dir in
42865 if ("$as_dir/$as_base" -c '
42866 as_lineno_1=$LINENO
42867 as_lineno_2=$LINENO
42868 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42869 test "x$as_lineno_1" != "x$as_lineno_2" &&
42870 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
42871 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
42872 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
42873 CONFIG_SHELL=$as_dir/$as_base
42874 export CONFIG_SHELL
42875 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
42876 fi;;
42877 esac
42878 done
42879 done
42881 esac
42883 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42884 # uniformly replaced by the line number. The first 'sed' inserts a
42885 # line-number line before each line; the second 'sed' does the real
42886 # work. The second script uses 'N' to pair each line-number line
42887 # with the numbered line, and appends trailing '-' during
42888 # substitution so that $LINENO is not a special case at line end.
42889 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42890 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
42891 sed '=' <$as_myself |
42892 sed '
42894 s,$,-,
42895 : loop
42896 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
42897 t loop
42898 s,-$,,
42899 s,^['$as_cr_digits']*\n,,
42900 ' >$as_me.lineno &&
42901 chmod +x $as_me.lineno ||
42902 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
42903 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
42904 { (exit 1); exit 1; }; }
42906 # Don't try to exec as it changes $[0], causing all sort of problems
42907 # (the dirname of $[0] is not the place where we might find the
42908 # original and so on. Autoconf is especially sensible to this).
42909 . ./$as_me.lineno
42910 # Exit status is that of the last command.
42911 exit
42915 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
42916 *c*,-n*) ECHO_N= ECHO_C='
42917 ' ECHO_T=' ' ;;
42918 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
42919 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
42920 esac
42922 if expr a : '\(a\)' >/dev/null 2>&1; then
42923 as_expr=expr
42924 else
42925 as_expr=false
42928 rm -f conf$$ conf$$.exe conf$$.file
42929 echo >conf$$.file
42930 if ln -s conf$$.file conf$$ 2>/dev/null; then
42931 # We could just check for DJGPP; but this test a) works b) is more generic
42932 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
42933 if test -f conf$$.exe; then
42934 # Don't use ln at all; we don't have any links
42935 as_ln_s='cp -p'
42936 else
42937 as_ln_s='ln -s'
42939 elif ln conf$$.file conf$$ 2>/dev/null; then
42940 as_ln_s=ln
42941 else
42942 as_ln_s='cp -p'
42944 rm -f conf$$ conf$$.exe conf$$.file
42946 if mkdir -p . 2>/dev/null; then
42947 as_mkdir_p=:
42948 else
42949 as_mkdir_p=false
42952 as_executable_p="test -f"
42954 # Sed expression to map a string onto a valid CPP name.
42955 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
42957 # Sed expression to map a string onto a valid variable name.
42958 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
42961 # IFS
42962 # We need space, tab and new line, in precisely that order.
42963 as_nl='
42965 IFS=" $as_nl"
42967 # CDPATH.
42968 $as_unset CDPATH
42970 exec 6>&1
42972 # Open the log real soon, to keep \$[0] and so on meaningful, and to
42973 # report actual input values of CONFIG_FILES etc. instead of their
42974 # values after options handling. Logging --version etc. is OK.
42975 exec 5>>config.log
42977 echo
42978 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42979 ## Running $as_me. ##
42980 _ASBOX
42981 } >&5
42982 cat >&5 <<_CSEOF
42984 This file was extended by GNU coreutils $as_me 4.5.9, which was
42985 generated by GNU Autoconf 2.57. Invocation command line was
42987 CONFIG_FILES = $CONFIG_FILES
42988 CONFIG_HEADERS = $CONFIG_HEADERS
42989 CONFIG_LINKS = $CONFIG_LINKS
42990 CONFIG_COMMANDS = $CONFIG_COMMANDS
42991 $ $0 $@
42993 _CSEOF
42994 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
42995 echo >&5
42996 _ACEOF
42998 # Files that config.status was made for.
42999 if test -n "$ac_config_files"; then
43000 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
43003 if test -n "$ac_config_headers"; then
43004 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
43007 if test -n "$ac_config_links"; then
43008 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
43011 if test -n "$ac_config_commands"; then
43012 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
43015 cat >>$CONFIG_STATUS <<\_ACEOF
43017 ac_cs_usage="\
43018 \`$as_me' instantiates files from templates according to the
43019 current configuration.
43021 Usage: $0 [OPTIONS] [FILE]...
43023 -h, --help print this help, then exit
43024 -V, --version print version number, then exit
43025 -q, --quiet do not print progress messages
43026 -d, --debug don't remove temporary files
43027 --recheck update $as_me by reconfiguring in the same conditions
43028 --file=FILE[:TEMPLATE]
43029 instantiate the configuration file FILE
43030 --header=FILE[:TEMPLATE]
43031 instantiate the configuration header FILE
43033 Configuration files:
43034 $config_files
43036 Configuration headers:
43037 $config_headers
43039 Configuration links:
43040 $config_links
43042 Configuration commands:
43043 $config_commands
43045 Report bugs to <bug-autoconf@gnu.org>."
43046 _ACEOF
43048 cat >>$CONFIG_STATUS <<_ACEOF
43049 ac_cs_version="\\
43050 GNU coreutils config.status 4.5.9
43051 configured by $0, generated by GNU Autoconf 2.57,
43052 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
43054 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
43055 Free Software Foundation, Inc.
43056 This config.status script is free software; the Free Software Foundation
43057 gives unlimited permission to copy, distribute and modify it."
43058 srcdir=$srcdir
43059 INSTALL="$INSTALL"
43060 _ACEOF
43062 cat >>$CONFIG_STATUS <<\_ACEOF
43063 # If no file are specified by the user, then we need to provide default
43064 # value. By we need to know if files were specified by the user.
43065 ac_need_defaults=:
43066 while test $# != 0
43068 case $1 in
43069 --*=*)
43070 ac_option=`expr "x$1" : 'x\([^=]*\)='`
43071 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
43072 ac_shift=:
43075 ac_option=$1
43076 ac_optarg=$2
43077 ac_shift=shift
43079 *) # This is not an option, so the user has probably given explicit
43080 # arguments.
43081 ac_option=$1
43082 ac_need_defaults=false;;
43083 esac
43085 case $ac_option in
43086 # Handling of the options.
43087 _ACEOF
43088 cat >>$CONFIG_STATUS <<\_ACEOF
43089 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43090 ac_cs_recheck=: ;;
43091 --version | --vers* | -V )
43092 echo "$ac_cs_version"; exit 0 ;;
43093 --he | --h)
43094 # Conflict between --help and --header
43095 { { echo "$as_me:$LINENO: error: ambiguous option: $1
43096 Try \`$0 --help' for more information." >&5
43097 echo "$as_me: error: ambiguous option: $1
43098 Try \`$0 --help' for more information." >&2;}
43099 { (exit 1); exit 1; }; };;
43100 --help | --hel | -h )
43101 echo "$ac_cs_usage"; exit 0 ;;
43102 --debug | --d* | -d )
43103 debug=: ;;
43104 --file | --fil | --fi | --f )
43105 $ac_shift
43106 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43107 ac_need_defaults=false;;
43108 --header | --heade | --head | --hea )
43109 $ac_shift
43110 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43111 ac_need_defaults=false;;
43112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43113 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43114 ac_cs_silent=: ;;
43116 # This is an error.
43117 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
43118 Try \`$0 --help' for more information." >&5
43119 echo "$as_me: error: unrecognized option: $1
43120 Try \`$0 --help' for more information." >&2;}
43121 { (exit 1); exit 1; }; } ;;
43123 *) ac_config_targets="$ac_config_targets $1" ;;
43125 esac
43126 shift
43127 done
43129 ac_configure_extra_args=
43131 if $ac_cs_silent; then
43132 exec 6>/dev/null
43133 ac_configure_extra_args="$ac_configure_extra_args --silent"
43136 _ACEOF
43137 cat >>$CONFIG_STATUS <<_ACEOF
43138 if \$ac_cs_recheck; then
43139 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43140 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43143 _ACEOF
43145 cat >>$CONFIG_STATUS <<_ACEOF
43147 # INIT-COMMANDS section.
43150 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
43151 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
43152 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
43153 # from automake.
43154 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
43155 # Capture the value of LINGUAS because we need it to compute CATALOGS.
43156 LINGUAS="${LINGUAS-%UNSET%}"
43159 _ACEOF
43163 cat >>$CONFIG_STATUS <<\_ACEOF
43164 for ac_config_target in $ac_config_targets
43166 case "$ac_config_target" in
43167 # Handling of arguments.
43168 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
43169 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
43170 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
43171 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
43172 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
43173 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
43174 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
43175 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
43176 "tests/basename/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/basename/Makefile" ;;
43177 "tests/chgrp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chgrp/Makefile" ;;
43178 "tests/chmod/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chmod/Makefile" ;;
43179 "tests/chown/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/chown/Makefile" ;;
43180 "tests/cp/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cp/Makefile" ;;
43181 "tests/cut/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cut/Makefile" ;;
43182 "tests/date/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/date/Makefile" ;;
43183 "tests/dd/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dd/Makefile" ;;
43184 "tests/dircolors/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/dircolors/Makefile" ;;
43185 "tests/du/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/du/Makefile" ;;
43186 "tests/expr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/expr/Makefile" ;;
43187 "tests/factor/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/factor/Makefile" ;;
43188 "tests/fmt/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/fmt/Makefile" ;;
43189 "tests/head/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/head/Makefile" ;;
43190 "tests/install/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/install/Makefile" ;;
43191 "tests/join/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/join/Makefile" ;;
43192 "tests/ln/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ln/Makefile" ;;
43193 "tests/ls-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls-2/Makefile" ;;
43194 "tests/ls/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/ls/Makefile" ;;
43195 "tests/md5sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/md5sum/Makefile" ;;
43196 "tests/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
43197 "tests/mkdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mkdir/Makefile" ;;
43198 "tests/mv/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mv/Makefile" ;;
43199 "tests/od/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/od/Makefile" ;;
43200 "tests/pr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/pr/Makefile" ;;
43201 "tests/rm/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rm/Makefile" ;;
43202 "tests/rmdir/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rmdir/Makefile" ;;
43203 "tests/seq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/seq/Makefile" ;;
43204 "tests/sha1sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sha1sum/Makefile" ;;
43205 "tests/shred/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/shred/Makefile" ;;
43206 "tests/sort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sort/Makefile" ;;
43207 "tests/stty/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/stty/Makefile" ;;
43208 "tests/sum/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/sum/Makefile" ;;
43209 "tests/tac/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tac/Makefile" ;;
43210 "tests/tail-2/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail-2/Makefile" ;;
43211 "tests/tail/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tail/Makefile" ;;
43212 "tests/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test/Makefile" ;;
43213 "tests/touch/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/touch/Makefile" ;;
43214 "tests/tr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tr/Makefile" ;;
43215 "tests/tsort/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/tsort/Makefile" ;;
43216 "tests/unexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/unexpand/Makefile" ;;
43217 "tests/uniq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/uniq/Makefile" ;;
43218 "tests/wc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/wc/Makefile" ;;
43219 "$ac_config_libobj_dir/fnmatch.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/fnmatch.h:$ac_config_libobj_dir/fnmatch_.h" ;;
43220 "$ac_config_libobj_dir/ftw.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/ftw.h:$ac_config_libobj_dir/ftw_.h" ;;
43221 "$ac_config_libobj_dir/search.h" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_libobj_dir/search.h:$ac_config_libobj_dir/search_.h" ;;
43222 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
43223 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
43224 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
43225 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43226 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43227 { (exit 1); exit 1; }; };;
43228 esac
43229 done
43231 # If the user did not use the arguments to specify the items to instantiate,
43232 # then the envvar interface is used. Set only those that are not.
43233 # We use the long form for the default assignment because of an extremely
43234 # bizarre bug on SunOS 4.1.3.
43235 if $ac_need_defaults; then
43236 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43237 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43238 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
43239 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43242 # Have a temporary directory for convenience. Make it in the build tree
43243 # simply because there is no reason to put it here, and in addition,
43244 # creating and moving files from /tmp can sometimes cause problems.
43245 # Create a temporary directory, and hook for its removal unless debugging.
43246 $debug ||
43248 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
43249 trap '{ (exit 1); exit 1; }' 1 2 13 15
43252 # Create a (secure) tmp directory for tmp files.
43255 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
43256 test -n "$tmp" && test -d "$tmp"
43257 } ||
43259 tmp=./confstat$$-$RANDOM
43260 (umask 077 && mkdir $tmp)
43261 } ||
43263 echo "$me: cannot create a temporary directory in ." >&2
43264 { (exit 1); exit 1; }
43267 _ACEOF
43269 cat >>$CONFIG_STATUS <<_ACEOF
43272 # CONFIG_FILES section.
43275 # No need to generate the scripts if there are no CONFIG_FILES.
43276 # This happens for instance when ./config.status config.h
43277 if test -n "\$CONFIG_FILES"; then
43278 # Protect against being on the right side of a sed subst in config.status.
43279 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
43280 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
43281 s,@SHELL@,$SHELL,;t t
43282 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
43283 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
43284 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
43285 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
43286 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
43287 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
43288 s,@exec_prefix@,$exec_prefix,;t t
43289 s,@prefix@,$prefix,;t t
43290 s,@program_transform_name@,$program_transform_name,;t t
43291 s,@bindir@,$bindir,;t t
43292 s,@sbindir@,$sbindir,;t t
43293 s,@libexecdir@,$libexecdir,;t t
43294 s,@datadir@,$datadir,;t t
43295 s,@sysconfdir@,$sysconfdir,;t t
43296 s,@sharedstatedir@,$sharedstatedir,;t t
43297 s,@localstatedir@,$localstatedir,;t t
43298 s,@libdir@,$libdir,;t t
43299 s,@includedir@,$includedir,;t t
43300 s,@oldincludedir@,$oldincludedir,;t t
43301 s,@infodir@,$infodir,;t t
43302 s,@mandir@,$mandir,;t t
43303 s,@build_alias@,$build_alias,;t t
43304 s,@host_alias@,$host_alias,;t t
43305 s,@target_alias@,$target_alias,;t t
43306 s,@DEFS@,$DEFS,;t t
43307 s,@ECHO_C@,$ECHO_C,;t t
43308 s,@ECHO_N@,$ECHO_N,;t t
43309 s,@ECHO_T@,$ECHO_T,;t t
43310 s,@LIBS@,$LIBS,;t t
43311 s,@build@,$build,;t t
43312 s,@build_cpu@,$build_cpu,;t t
43313 s,@build_vendor@,$build_vendor,;t t
43314 s,@build_os@,$build_os,;t t
43315 s,@host@,$host,;t t
43316 s,@host_cpu@,$host_cpu,;t t
43317 s,@host_vendor@,$host_vendor,;t t
43318 s,@host_os@,$host_os,;t t
43319 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
43320 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
43321 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
43322 s,@CYGPATH_W@,$CYGPATH_W,;t t
43323 s,@PACKAGE@,$PACKAGE,;t t
43324 s,@VERSION@,$VERSION,;t t
43325 s,@ACLOCAL@,$ACLOCAL,;t t
43326 s,@AUTOCONF@,$AUTOCONF,;t t
43327 s,@AUTOMAKE@,$AUTOMAKE,;t t
43328 s,@AUTOHEADER@,$AUTOHEADER,;t t
43329 s,@MAKEINFO@,$MAKEINFO,;t t
43330 s,@AMTAR@,$AMTAR,;t t
43331 s,@install_sh@,$install_sh,;t t
43332 s,@STRIP@,$STRIP,;t t
43333 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
43334 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
43335 s,@AWK@,$AWK,;t t
43336 s,@SET_MAKE@,$SET_MAKE,;t t
43337 s,@am__leading_dot@,$am__leading_dot,;t t
43338 s,@PERL@,$PERL,;t t
43339 s,@CC@,$CC,;t t
43340 s,@CFLAGS@,$CFLAGS,;t t
43341 s,@LDFLAGS@,$LDFLAGS,;t t
43342 s,@CPPFLAGS@,$CPPFLAGS,;t t
43343 s,@ac_ct_CC@,$ac_ct_CC,;t t
43344 s,@EXEEXT@,$EXEEXT,;t t
43345 s,@OBJEXT@,$OBJEXT,;t t
43346 s,@DEPDIR@,$DEPDIR,;t t
43347 s,@am__include@,$am__include,;t t
43348 s,@am__quote@,$am__quote,;t t
43349 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
43350 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
43351 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
43352 s,@CCDEPMODE@,$CCDEPMODE,;t t
43353 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
43354 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
43355 s,@CPP@,$CPP,;t t
43356 s,@EGREP@,$EGREP,;t t
43357 s,@RANLIB@,$RANLIB,;t t
43358 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
43359 s,@GNU_PACKAGE@,$GNU_PACKAGE,;t t
43360 s,@HELP2MAN@,$HELP2MAN,;t t
43361 s,@OPTIONAL_BIN_PROGS@,$OPTIONAL_BIN_PROGS,;t t
43362 s,@OPTIONAL_BIN_ZCRIPTS@,$OPTIONAL_BIN_ZCRIPTS,;t t
43363 s,@MAN@,$MAN,;t t
43364 s,@DF_PROG@,$DF_PROG,;t t
43365 s,@U@,$U,;t t
43366 s,@ANSI2KNR@,$ANSI2KNR,;t t
43367 s,@LIBOBJS@,$LIBOBJS,;t t
43368 s,@ALLOCA@,$ALLOCA,;t t
43369 s,@YACC@,$YACC,;t t
43370 s,@LIB_NANOSLEEP@,$LIB_NANOSLEEP,;t t
43371 s,@NEED_SETGID@,$NEED_SETGID,;t t
43372 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
43373 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
43374 s,@LIB_CLOCK_GETTIME@,$LIB_CLOCK_GETTIME,;t t
43375 s,@POW_LIB@,$POW_LIB,;t t
43376 s,@SEQ_LIBM@,$SEQ_LIBM,;t t
43377 s,@GLIBC21@,$GLIBC21,;t t
43378 s,@LIBICONV@,$LIBICONV,;t t
43379 s,@LTLIBICONV@,$LTLIBICONV,;t t
43380 s,@SQRT_LIBM@,$SQRT_LIBM,;t t
43381 s,@FESETROUND_LIBM@,$FESETROUND_LIBM,;t t
43382 s,@LIB_CRYPT@,$LIB_CRYPT,;t t
43383 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
43384 s,@MSGFMT@,$MSGFMT,;t t
43385 s,@GMSGFMT@,$GMSGFMT,;t t
43386 s,@XGETTEXT@,$XGETTEXT,;t t
43387 s,@MSGMERGE@,$MSGMERGE,;t t
43388 s,@USE_NLS@,$USE_NLS,;t t
43389 s,@INTLLIBS@,$INTLLIBS,;t t
43390 s,@LIBINTL@,$LIBINTL,;t t
43391 s,@LTLIBINTL@,$LTLIBINTL,;t t
43392 s,@POSUB@,$POSUB,;t t
43393 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
43394 CEOF
43396 _ACEOF
43398 cat >>$CONFIG_STATUS <<\_ACEOF
43399 # Split the substitutions into bite-sized pieces for seds with
43400 # small command number limits, like on Digital OSF/1 and HP-UX.
43401 ac_max_sed_lines=48
43402 ac_sed_frag=1 # Number of current file.
43403 ac_beg=1 # First line for current file.
43404 ac_end=$ac_max_sed_lines # Line after last line for current file.
43405 ac_more_lines=:
43406 ac_sed_cmds=
43407 while $ac_more_lines; do
43408 if test $ac_beg -gt 1; then
43409 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43410 else
43411 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43413 if test ! -s $tmp/subs.frag; then
43414 ac_more_lines=false
43415 else
43416 # The purpose of the label and of the branching condition is to
43417 # speed up the sed processing (if there are no `@' at all, there
43418 # is no need to browse any of the substitutions).
43419 # These are the two extra sed commands mentioned above.
43420 (echo ':t
43421 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
43422 if test -z "$ac_sed_cmds"; then
43423 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
43424 else
43425 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
43427 ac_sed_frag=`expr $ac_sed_frag + 1`
43428 ac_beg=$ac_end
43429 ac_end=`expr $ac_end + $ac_max_sed_lines`
43431 done
43432 if test -z "$ac_sed_cmds"; then
43433 ac_sed_cmds=cat
43435 fi # test -n "$CONFIG_FILES"
43437 _ACEOF
43438 cat >>$CONFIG_STATUS <<\_ACEOF
43439 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
43440 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43441 case $ac_file in
43442 - | *:- | *:-:* ) # input from stdin
43443 cat >$tmp/stdin
43444 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43445 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43446 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43447 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43448 * ) ac_file_in=$ac_file.in ;;
43449 esac
43451 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
43452 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43453 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43454 X"$ac_file" : 'X\(//\)[^/]' \| \
43455 X"$ac_file" : 'X\(//\)$' \| \
43456 X"$ac_file" : 'X\(/\)' \| \
43457 . : '\(.\)' 2>/dev/null ||
43458 echo X"$ac_file" |
43459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43460 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43461 /^X\(\/\/\)$/{ s//\1/; q; }
43462 /^X\(\/\).*/{ s//\1/; q; }
43463 s/.*/./; q'`
43464 { if $as_mkdir_p; then
43465 mkdir -p "$ac_dir"
43466 else
43467 as_dir="$ac_dir"
43468 as_dirs=
43469 while test ! -d "$as_dir"; do
43470 as_dirs="$as_dir $as_dirs"
43471 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43472 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43473 X"$as_dir" : 'X\(//\)[^/]' \| \
43474 X"$as_dir" : 'X\(//\)$' \| \
43475 X"$as_dir" : 'X\(/\)' \| \
43476 . : '\(.\)' 2>/dev/null ||
43477 echo X"$as_dir" |
43478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43479 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43480 /^X\(\/\/\)$/{ s//\1/; q; }
43481 /^X\(\/\).*/{ s//\1/; q; }
43482 s/.*/./; q'`
43483 done
43484 test ! -n "$as_dirs" || mkdir $as_dirs
43485 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43486 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43487 { (exit 1); exit 1; }; }; }
43489 ac_builddir=.
43491 if test "$ac_dir" != .; then
43492 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43493 # A "../" for each directory in $ac_dir_suffix.
43494 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43495 else
43496 ac_dir_suffix= ac_top_builddir=
43499 case $srcdir in
43500 .) # No --srcdir option. We are building in place.
43501 ac_srcdir=.
43502 if test -z "$ac_top_builddir"; then
43503 ac_top_srcdir=.
43504 else
43505 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43506 fi ;;
43507 [\\/]* | ?:[\\/]* ) # Absolute path.
43508 ac_srcdir=$srcdir$ac_dir_suffix;
43509 ac_top_srcdir=$srcdir ;;
43510 *) # Relative path.
43511 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43512 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43513 esac
43514 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
43515 # absolute.
43516 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
43517 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
43518 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
43519 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
43522 case $INSTALL in
43523 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43524 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
43525 esac
43527 if test x"$ac_file" != x-; then
43528 { echo "$as_me:$LINENO: creating $ac_file" >&5
43529 echo "$as_me: creating $ac_file" >&6;}
43530 rm -f "$ac_file"
43532 # Let's still pretend it is `configure' which instantiates (i.e., don't
43533 # use $as_me), people would be surprised to read:
43534 # /* config.h. Generated by config.status. */
43535 if test x"$ac_file" = x-; then
43536 configure_input=
43537 else
43538 configure_input="$ac_file. "
43540 configure_input=$configure_input"Generated from `echo $ac_file_in |
43541 sed 's,.*/,,'` by configure."
43543 # First look for the input files in the build tree, otherwise in the
43544 # src tree.
43545 ac_file_inputs=`IFS=:
43546 for f in $ac_file_in; do
43547 case $f in
43548 -) echo $tmp/stdin ;;
43549 [\\/$]*)
43550 # Absolute (can't be DOS-style, as IFS=:)
43551 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43552 echo "$as_me: error: cannot find input file: $f" >&2;}
43553 { (exit 1); exit 1; }; }
43554 echo $f;;
43555 *) # Relative
43556 if test -f "$f"; then
43557 # Build tree
43558 echo $f
43559 elif test -f "$srcdir/$f"; then
43560 # Source tree
43561 echo $srcdir/$f
43562 else
43563 # /dev/null tree
43564 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43565 echo "$as_me: error: cannot find input file: $f" >&2;}
43566 { (exit 1); exit 1; }; }
43567 fi;;
43568 esac
43569 done` || { (exit 1); exit 1; }
43570 _ACEOF
43571 cat >>$CONFIG_STATUS <<_ACEOF
43572 sed "$ac_vpsub
43573 $extrasub
43574 _ACEOF
43575 cat >>$CONFIG_STATUS <<\_ACEOF
43577 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43578 s,@configure_input@,$configure_input,;t t
43579 s,@srcdir@,$ac_srcdir,;t t
43580 s,@abs_srcdir@,$ac_abs_srcdir,;t t
43581 s,@top_srcdir@,$ac_top_srcdir,;t t
43582 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43583 s,@builddir@,$ac_builddir,;t t
43584 s,@abs_builddir@,$ac_abs_builddir,;t t
43585 s,@top_builddir@,$ac_top_builddir,;t t
43586 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43587 s,@INSTALL@,$ac_INSTALL,;t t
43588 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43589 rm -f $tmp/stdin
43590 if test x"$ac_file" != x-; then
43591 mv $tmp/out $ac_file
43592 else
43593 cat $tmp/out
43594 rm -f $tmp/out
43597 done
43598 _ACEOF
43599 cat >>$CONFIG_STATUS <<\_ACEOF
43602 # CONFIG_HEADER section.
43605 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43606 # NAME is the cpp macro being defined and VALUE is the value it is being given.
43608 # ac_d sets the value in "#define NAME VALUE" lines.
43609 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
43610 ac_dB='[ ].*$,\1#\2'
43611 ac_dC=' '
43612 ac_dD=',;t'
43613 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
43614 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
43615 ac_uB='$,\1#\2define\3'
43616 ac_uC=' '
43617 ac_uD=',;t'
43619 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43620 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43621 case $ac_file in
43622 - | *:- | *:-:* ) # input from stdin
43623 cat >$tmp/stdin
43624 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43625 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43626 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43627 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43628 * ) ac_file_in=$ac_file.in ;;
43629 esac
43631 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43632 echo "$as_me: creating $ac_file" >&6;}
43634 # First look for the input files in the build tree, otherwise in the
43635 # src tree.
43636 ac_file_inputs=`IFS=:
43637 for f in $ac_file_in; do
43638 case $f in
43639 -) echo $tmp/stdin ;;
43640 [\\/$]*)
43641 # Absolute (can't be DOS-style, as IFS=:)
43642 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43643 echo "$as_me: error: cannot find input file: $f" >&2;}
43644 { (exit 1); exit 1; }; }
43645 echo $f;;
43646 *) # Relative
43647 if test -f "$f"; then
43648 # Build tree
43649 echo $f
43650 elif test -f "$srcdir/$f"; then
43651 # Source tree
43652 echo $srcdir/$f
43653 else
43654 # /dev/null tree
43655 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43656 echo "$as_me: error: cannot find input file: $f" >&2;}
43657 { (exit 1); exit 1; }; }
43658 fi;;
43659 esac
43660 done` || { (exit 1); exit 1; }
43661 # Remove the trailing spaces.
43662 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
43664 _ACEOF
43666 # Transform confdefs.h into two sed scripts, `conftest.defines' and
43667 # `conftest.undefs', that substitutes the proper values into
43668 # config.h.in to produce config.h. The first handles `#define'
43669 # templates, and the second `#undef' templates.
43670 # And first: Protect against being on the right side of a sed subst in
43671 # config.status. Protect against being in an unquoted here document
43672 # in config.status.
43673 rm -f conftest.defines conftest.undefs
43674 # Using a here document instead of a string reduces the quoting nightmare.
43675 # Putting comments in sed scripts is not portable.
43677 # `end' is used to avoid that the second main sed command (meant for
43678 # 0-ary CPP macros) applies to n-ary macro definitions.
43679 # See the Autoconf documentation for `clear'.
43680 cat >confdef2sed.sed <<\_ACEOF
43681 s/[\\&,]/\\&/g
43682 s,[\\$`],\\&,g
43683 t clear
43684 : clear
43685 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
43686 t end
43687 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
43688 : end
43689 _ACEOF
43690 # If some macros were called several times there might be several times
43691 # the same #defines, which is useless. Nevertheless, we may not want to
43692 # sort them, since we want the *last* AC-DEFINE to be honored.
43693 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43694 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43695 rm -f confdef2sed.sed
43697 # This sed command replaces #undef with comments. This is necessary, for
43698 # example, in the case of _POSIX_SOURCE, which is predefined and required
43699 # on some systems where configure will not decide to define it.
43700 cat >>conftest.undefs <<\_ACEOF
43701 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
43702 _ACEOF
43704 # Break up conftest.defines because some shells have a limit on the size
43705 # of here documents, and old seds have small limits too (100 cmds).
43706 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
43707 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
43708 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43709 echo ' :' >>$CONFIG_STATUS
43710 rm -f conftest.tail
43711 while grep . conftest.defines >/dev/null
43713 # Write a limited-size here document to $tmp/defines.sed.
43714 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43715 # Speed up: don't consider the non `#define' lines.
43716 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
43717 # Work around the forget-to-reset-the-flag bug.
43718 echo 't clr' >>$CONFIG_STATUS
43719 echo ': clr' >>$CONFIG_STATUS
43720 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43721 echo 'CEOF
43722 sed -f $tmp/defines.sed $tmp/in >$tmp/out
43723 rm -f $tmp/in
43724 mv $tmp/out $tmp/in
43725 ' >>$CONFIG_STATUS
43726 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43727 rm -f conftest.defines
43728 mv conftest.tail conftest.defines
43729 done
43730 rm -f conftest.defines
43731 echo ' fi # grep' >>$CONFIG_STATUS
43732 echo >>$CONFIG_STATUS
43734 # Break up conftest.undefs because some shells have a limit on the size
43735 # of here documents, and old seds have small limits too (100 cmds).
43736 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
43737 rm -f conftest.tail
43738 while grep . conftest.undefs >/dev/null
43740 # Write a limited-size here document to $tmp/undefs.sed.
43741 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43742 # Speed up: don't consider the non `#undef'
43743 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
43744 # Work around the forget-to-reset-the-flag bug.
43745 echo 't clr' >>$CONFIG_STATUS
43746 echo ': clr' >>$CONFIG_STATUS
43747 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43748 echo 'CEOF
43749 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43750 rm -f $tmp/in
43751 mv $tmp/out $tmp/in
43752 ' >>$CONFIG_STATUS
43753 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43754 rm -f conftest.undefs
43755 mv conftest.tail conftest.undefs
43756 done
43757 rm -f conftest.undefs
43759 cat >>$CONFIG_STATUS <<\_ACEOF
43760 # Let's still pretend it is `configure' which instantiates (i.e., don't
43761 # use $as_me), people would be surprised to read:
43762 # /* config.h. Generated by config.status. */
43763 if test x"$ac_file" = x-; then
43764 echo "/* Generated by configure. */" >$tmp/config.h
43765 else
43766 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
43768 cat $tmp/in >>$tmp/config.h
43769 rm -f $tmp/in
43770 if test x"$ac_file" != x-; then
43771 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43772 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43773 echo "$as_me: $ac_file is unchanged" >&6;}
43774 else
43775 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43776 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43777 X"$ac_file" : 'X\(//\)[^/]' \| \
43778 X"$ac_file" : 'X\(//\)$' \| \
43779 X"$ac_file" : 'X\(/\)' \| \
43780 . : '\(.\)' 2>/dev/null ||
43781 echo X"$ac_file" |
43782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43783 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43784 /^X\(\/\/\)$/{ s//\1/; q; }
43785 /^X\(\/\).*/{ s//\1/; q; }
43786 s/.*/./; q'`
43787 { if $as_mkdir_p; then
43788 mkdir -p "$ac_dir"
43789 else
43790 as_dir="$ac_dir"
43791 as_dirs=
43792 while test ! -d "$as_dir"; do
43793 as_dirs="$as_dir $as_dirs"
43794 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43795 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43796 X"$as_dir" : 'X\(//\)[^/]' \| \
43797 X"$as_dir" : 'X\(//\)$' \| \
43798 X"$as_dir" : 'X\(/\)' \| \
43799 . : '\(.\)' 2>/dev/null ||
43800 echo X"$as_dir" |
43801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43803 /^X\(\/\/\)$/{ s//\1/; q; }
43804 /^X\(\/\).*/{ s//\1/; q; }
43805 s/.*/./; q'`
43806 done
43807 test ! -n "$as_dirs" || mkdir $as_dirs
43808 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43809 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43810 { (exit 1); exit 1; }; }; }
43812 rm -f $ac_file
43813 mv $tmp/config.h $ac_file
43815 else
43816 cat $tmp/config.h
43817 rm -f $tmp/config.h
43819 # Compute $ac_file's index in $config_headers.
43820 _am_stamp_count=1
43821 for _am_header in $config_headers :; do
43822 case $_am_header in
43823 $ac_file | $ac_file:* )
43824 break ;;
43826 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
43827 esac
43828 done
43829 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
43830 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43831 X$ac_file : 'X\(//\)[^/]' \| \
43832 X$ac_file : 'X\(//\)$' \| \
43833 X$ac_file : 'X\(/\)' \| \
43834 . : '\(.\)' 2>/dev/null ||
43835 echo X$ac_file |
43836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43837 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43838 /^X\(\/\/\)$/{ s//\1/; q; }
43839 /^X\(\/\).*/{ s//\1/; q; }
43840 s/.*/./; q'`/stamp-h$_am_stamp_count
43841 done
43842 _ACEOF
43843 cat >>$CONFIG_STATUS <<\_ACEOF
43846 # CONFIG_LINKS section.
43849 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
43850 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
43851 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
43853 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
43854 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
43856 if test ! -r $srcdir/$ac_source; then
43857 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
43858 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
43859 { (exit 1); exit 1; }; }
43861 rm -f $ac_dest
43863 # Make relative symlinks.
43864 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
43865 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43866 X"$ac_dest" : 'X\(//\)[^/]' \| \
43867 X"$ac_dest" : 'X\(//\)$' \| \
43868 X"$ac_dest" : 'X\(/\)' \| \
43869 . : '\(.\)' 2>/dev/null ||
43870 echo X"$ac_dest" |
43871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43873 /^X\(\/\/\)$/{ s//\1/; q; }
43874 /^X\(\/\).*/{ s//\1/; q; }
43875 s/.*/./; q'`
43876 { if $as_mkdir_p; then
43877 mkdir -p "$ac_dest_dir"
43878 else
43879 as_dir="$ac_dest_dir"
43880 as_dirs=
43881 while test ! -d "$as_dir"; do
43882 as_dirs="$as_dir $as_dirs"
43883 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43884 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43885 X"$as_dir" : 'X\(//\)[^/]' \| \
43886 X"$as_dir" : 'X\(//\)$' \| \
43887 X"$as_dir" : 'X\(/\)' \| \
43888 . : '\(.\)' 2>/dev/null ||
43889 echo X"$as_dir" |
43890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43891 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43892 /^X\(\/\/\)$/{ s//\1/; q; }
43893 /^X\(\/\).*/{ s//\1/; q; }
43894 s/.*/./; q'`
43895 done
43896 test ! -n "$as_dirs" || mkdir $as_dirs
43897 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
43898 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
43899 { (exit 1); exit 1; }; }; }
43901 ac_builddir=.
43903 if test "$ac_dest_dir" != .; then
43904 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
43905 # A "../" for each directory in $ac_dir_suffix.
43906 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43907 else
43908 ac_dir_suffix= ac_top_builddir=
43911 case $srcdir in
43912 .) # No --srcdir option. We are building in place.
43913 ac_srcdir=.
43914 if test -z "$ac_top_builddir"; then
43915 ac_top_srcdir=.
43916 else
43917 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43918 fi ;;
43919 [\\/]* | ?:[\\/]* ) # Absolute path.
43920 ac_srcdir=$srcdir$ac_dir_suffix;
43921 ac_top_srcdir=$srcdir ;;
43922 *) # Relative path.
43923 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43924 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43925 esac
43926 # Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
43927 # absolute.
43928 ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
43929 ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
43930 ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
43931 ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
43934 case $srcdir in
43935 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
43936 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
43937 esac
43939 # Try a symlink, then a hard link, then a copy.
43940 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
43941 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
43942 cp -p $srcdir/$ac_source $ac_dest ||
43943 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
43944 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
43945 { (exit 1); exit 1; }; }
43946 done
43947 _ACEOF
43948 cat >>$CONFIG_STATUS <<\_ACEOF
43951 # CONFIG_COMMANDS section.
43953 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
43954 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
43955 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
43956 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
43957 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43958 X"$ac_dest" : 'X\(//\)[^/]' \| \
43959 X"$ac_dest" : 'X\(//\)$' \| \
43960 X"$ac_dest" : 'X\(/\)' \| \
43961 . : '\(.\)' 2>/dev/null ||
43962 echo X"$ac_dest" |
43963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43964 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43965 /^X\(\/\/\)$/{ s//\1/; q; }
43966 /^X\(\/\).*/{ s//\1/; q; }
43967 s/.*/./; q'`
43968 ac_builddir=.
43970 if test "$ac_dir" != .; then
43971 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43972 # A "../" for each directory in $ac_dir_suffix.
43973 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43974 else
43975 ac_dir_suffix= ac_top_builddir=
43978 case $srcdir in
43979 .) # No --srcdir option. We are building in place.
43980 ac_srcdir=.
43981 if test -z "$ac_top_builddir"; then
43982 ac_top_srcdir=.
43983 else
43984 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43985 fi ;;
43986 [\\/]* | ?:[\\/]* ) # Absolute path.
43987 ac_srcdir=$srcdir$ac_dir_suffix;
43988 ac_top_srcdir=$srcdir ;;
43989 *) # Relative path.
43990 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43991 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43992 esac
43993 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
43994 # absolute.
43995 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
43996 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
43997 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
43998 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
44001 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
44002 echo "$as_me: executing $ac_dest commands" >&6;}
44003 case $ac_dest in
44004 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
44005 # Strip MF so we end up with the name of the file.
44006 mf=`echo "$mf" | sed -e 's/:.*$//'`
44007 # Check whether this is an Automake generated Makefile or not.
44008 # We used to match only the files named `Makefile.in', but
44009 # some people rename them; so instead we look at the file content.
44010 # Grep'ing the first line is not enough: some people post-process
44011 # each Makefile.in and add a new line on top of each file to say so.
44012 # So let's grep whole file.
44013 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
44014 dirpart=`(dirname "$mf") 2>/dev/null ||
44015 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44016 X"$mf" : 'X\(//\)[^/]' \| \
44017 X"$mf" : 'X\(//\)$' \| \
44018 X"$mf" : 'X\(/\)' \| \
44019 . : '\(.\)' 2>/dev/null ||
44020 echo X"$mf" |
44021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44023 /^X\(\/\/\)$/{ s//\1/; q; }
44024 /^X\(\/\).*/{ s//\1/; q; }
44025 s/.*/./; q'`
44026 else
44027 continue
44029 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
44030 # Extract the definition of DEP_FILES from the Makefile without
44031 # running `make'.
44032 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
44033 test -z "$DEPDIR" && continue
44034 # When using ansi2knr, U may be empty or an underscore; expand it
44035 U=`sed -n -e '/^U = / s///p' < "$mf"`
44036 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
44037 # We invoke sed twice because it is the simplest approach to
44038 # changing $(DEPDIR) to its actual value in the expansion.
44039 for file in `sed -n -e '
44040 /^DEP_FILES = .*\\\\$/ {
44041 s/^DEP_FILES = //
44042 :loop
44043 s/\\\\$//
44046 /\\\\$/ b loop
44049 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
44050 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
44051 # Make sure the directory exists.
44052 test -f "$dirpart/$file" && continue
44053 fdir=`(dirname "$file") 2>/dev/null ||
44054 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44055 X"$file" : 'X\(//\)[^/]' \| \
44056 X"$file" : 'X\(//\)$' \| \
44057 X"$file" : 'X\(/\)' \| \
44058 . : '\(.\)' 2>/dev/null ||
44059 echo X"$file" |
44060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44062 /^X\(\/\/\)$/{ s//\1/; q; }
44063 /^X\(\/\).*/{ s//\1/; q; }
44064 s/.*/./; q'`
44065 { if $as_mkdir_p; then
44066 mkdir -p $dirpart/$fdir
44067 else
44068 as_dir=$dirpart/$fdir
44069 as_dirs=
44070 while test ! -d "$as_dir"; do
44071 as_dirs="$as_dir $as_dirs"
44072 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44074 X"$as_dir" : 'X\(//\)[^/]' \| \
44075 X"$as_dir" : 'X\(//\)$' \| \
44076 X"$as_dir" : 'X\(/\)' \| \
44077 . : '\(.\)' 2>/dev/null ||
44078 echo X"$as_dir" |
44079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44080 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44081 /^X\(\/\/\)$/{ s//\1/; q; }
44082 /^X\(\/\).*/{ s//\1/; q; }
44083 s/.*/./; q'`
44084 done
44085 test ! -n "$as_dirs" || mkdir $as_dirs
44086 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
44087 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
44088 { (exit 1); exit 1; }; }; }
44090 # echo "creating $dirpart/$file"
44091 echo '# dummy' > "$dirpart/$file"
44092 done
44093 done
44095 default-1 )
44096 for ac_file in $CONFIG_FILES; do
44097 # Support "outfile[:infile[:infile...]]"
44098 case "$ac_file" in
44099 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
44100 esac
44101 # PO directories have a Makefile.in generated from Makefile.in.in.
44102 case "$ac_file" in */Makefile.in)
44103 # Adjust a relative srcdir.
44104 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
44105 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
44106 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
44107 # In autoconf-2.13 it is called $ac_given_srcdir.
44108 # In autoconf-2.50 it is called $srcdir.
44109 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
44110 case "$ac_given_srcdir" in
44111 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
44112 /*) top_srcdir="$ac_given_srcdir" ;;
44113 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
44114 esac
44115 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
44116 rm -f "$ac_dir/POTFILES"
44117 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
44118 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
44119 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
44120 # on $ac_dir but don't depend on user-specified configuration
44121 # parameters.
44122 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
44123 # The LINGUAS file contains the set of available languages.
44124 if test -n "$ALL_LINGUAS"; then
44125 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
44127 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
44128 # Hide the ALL_LINGUAS assigment from automake.
44129 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
44131 case "$ac_given_srcdir" in
44132 .) srcdirpre= ;;
44133 *) srcdirpre='$(srcdir)/' ;;
44134 esac
44135 POFILES=
44136 GMOFILES=
44137 UPDATEPOFILES=
44138 DUMMYPOFILES=
44139 for lang in $ALL_LINGUAS; do
44140 POFILES="$POFILES $srcdirpre$lang.po"
44141 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
44142 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
44143 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
44144 done
44145 # CATALOGS depends on both $ac_dir and the user's LINGUAS
44146 # environment variable.
44147 INST_LINGUAS=
44148 if test -n "$ALL_LINGUAS"; then
44149 for presentlang in $ALL_LINGUAS; do
44150 useit=no
44151 if test "%UNSET%" != "$LINGUAS"; then
44152 desiredlanguages="$LINGUAS"
44153 else
44154 desiredlanguages="$ALL_LINGUAS"
44156 for desiredlang in $desiredlanguages; do
44157 # Use the presentlang catalog if desiredlang is
44158 # a. equal to presentlang, or
44159 # b. a variant of presentlang (because in this case,
44160 # presentlang can be used as a fallback for messages
44161 # which are not translated in the desiredlang catalog).
44162 case "$desiredlang" in
44163 "$presentlang"*) useit=yes;;
44164 esac
44165 done
44166 if test $useit = yes; then
44167 INST_LINGUAS="$INST_LINGUAS $presentlang"
44169 done
44171 CATALOGS=
44172 if test -n "$INST_LINGUAS"; then
44173 for lang in $INST_LINGUAS; do
44174 CATALOGS="$CATALOGS $lang.gmo"
44175 done
44177 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
44178 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"
44179 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
44180 if test -f "$f"; then
44181 case "$f" in
44182 *.orig | *.bak | *~) ;;
44183 *) cat "$f" >> "$ac_dir/Makefile" ;;
44184 esac
44186 done
44189 esac
44190 done ;;
44191 esac
44192 done
44193 _ACEOF
44195 cat >>$CONFIG_STATUS <<\_ACEOF
44197 { (exit 0); exit 0; }
44198 _ACEOF
44199 chmod +x $CONFIG_STATUS
44200 ac_clean_files=$ac_clean_files_save
44203 # configure is writing to config.log, and then calls config.status.
44204 # config.status does its own redirection, appending to config.log.
44205 # Unfortunately, on DOS this fails, as config.log is still kept open
44206 # by configure, so config.status won't be able to write to it; its
44207 # output is simply discarded. So we exec the FD to /dev/null,
44208 # effectively closing config.log, so it can be properly (re)opened and
44209 # appended to by config.status. When coming back to configure, we
44210 # need to make the FD available again.
44211 if test "$no_create" != yes; then
44212 ac_cs_success=:
44213 ac_config_status_args=
44214 test "$silent" = yes &&
44215 ac_config_status_args="$ac_config_status_args --quiet"
44216 exec 5>/dev/null
44217 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44218 exec 5>>config.log
44219 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44220 # would make configure fail if this is the last instruction.
44221 $ac_cs_success || { (exit 1); exit 1; }