2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.14a.
5 # Copyright (C) 1992, 93, 94, 95, 96, 98, 99, 2000
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
13 ac_default_prefix
=/usr
/local
16 SHELL
=${CONFIG_SHELL-/bin/sh}
17 # Maximum number of lines to put in a shell here document.
18 : ${ac_max_here_lines=48}
19 # Sed expression to map a string onto a valid sh and CPP variable names.
20 ac_tr_sh
='sed -e y%*+%pp%;s%[^a-zA-Z0-9_]%_%g'
21 ac_tr_cpp
='sed -e y%*abcdefghijklmnopqrstuvwxyz%PABCDEFGHIJKLMNOPQRSTUVWXYZ%;s%[^A-Z0-9_]%_%g'
23 # By default always use an empty string as the executable extension.
24 # Only change it if the script calls AC_EXEEXT.
26 # By default assume that objects files use an extension of .o. Only
27 # change it if the script calls AC_OBJEXT.
29 # Factoring default headers for most tests.
30 ac_includes_default
="\
32 #include <sys/types.h>
42 # if !STDC_HEADERS && HAVE_MEMORY_H
52 # include <inttypes.h>
57 ac_unique_file
="find/pred.c"
59 # Initialize some variables set by options.
62 # The variables have the same names as the options, with
63 # dashes changed to underlines.
65 cache_file
=.
/config.cache
74 program_transform_name
=s
,x
,x
,
82 bindir
='${exec_prefix}/bin'
83 sbindir
='${exec_prefix}/sbin'
84 libexecdir
='${exec_prefix}/libexec'
85 datadir
='${prefix}/share'
86 sysconfdir
='${prefix}/etc'
87 sharedstatedir
='${prefix}/com'
88 localstatedir
='${prefix}/var'
89 libdir
='${exec_prefix}/lib'
90 includedir
='${prefix}/include'
91 oldincludedir
='/usr/include'
92 infodir
='${prefix}/info'
93 mandir
='${prefix}/man'
98 # If the previous option needs an argument, assign it.
99 if test -n "$ac_prev"; then
100 eval "$ac_prev=\$ac_option"
105 ac_optarg
=`echo "$ac_option" | sed -n 's/^[^=]*=//p'`
107 # Accept the important Cygnus configure options, so we can diagnose typos.
111 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
113 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
114 bindir
="$ac_optarg" ;;
116 -build |
--build |
--buil |
--bui |
--bu)
118 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
119 build
="$ac_optarg" ;;
121 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
122 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
123 ac_prev
=cache_file
;;
124 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
125 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
126 cache_file
="$ac_optarg" ;;
128 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
130 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
132 datadir
="$ac_optarg" ;;
134 -disable-* |
--disable-*)
135 ac_feature
=`echo "$ac_option"|sed -e 's/-*disable-//'`
136 # Reject names that are not valid shell variable names.
137 if echo "$ac_feature" |
grep '[^-a-zA-Z0-9_]' >/dev
/null
2>&1; then
138 { echo "configure: error: invalid feature: $ac_feature" 1>&2; exit 1; }
140 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
141 eval "enable_${ac_feature}=no" ;;
143 -enable-* |
--enable-*)
144 ac_feature
=`echo "$ac_option"|sed -e 's/-*enable-//' -e 's/=.*//'`
145 # Reject names that are not valid shell variable names.
146 if echo "$ac_feature" |
grep '[^-a-zA-Z0-9_]' >/dev
/null
2>&1; then
147 { echo "configure: error: invalid feature: $ac_feature" 1>&2; exit 1; }
149 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
151 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
154 eval "enable_${ac_feature}='$ac_optarg'" ;;
156 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
157 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
158 |
--exec |
--exe |
--ex)
159 ac_prev
=exec_prefix
;;
160 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
161 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
162 |
--exec=* |
--exe=* |
--ex=*)
163 exec_prefix
="$ac_optarg" ;;
165 -gas |
--gas |
--ga |
--g)
166 # Obsolete; use --with-gas.
169 -help |
--help |
--hel |
--he |
-h)
171 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
172 ac_init_help
=recursive
;;
173 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
174 ac_init_help
=short
;;
176 -host |
--host |
--hos |
--ho)
178 -host=* |
--host=* |
--hos=* |
--ho=*)
181 -includedir |
--includedir |
--includedi |
--included |
--include \
182 |
--includ |
--inclu |
--incl |
--inc)
183 ac_prev
=includedir
;;
184 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
185 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
186 includedir
="$ac_optarg" ;;
188 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
190 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
191 infodir
="$ac_optarg" ;;
193 -libdir |
--libdir |
--libdi |
--libd)
195 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
196 libdir
="$ac_optarg" ;;
198 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
199 |
--libexe |
--libex |
--libe)
200 ac_prev
=libexecdir
;;
201 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
202 |
--libexe=* |
--libex=* |
--libe=*)
203 libexecdir
="$ac_optarg" ;;
205 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
206 |
--localstate |
--localstat |
--localsta |
--localst \
207 |
--locals |
--local |
--loca |
--loc |
--lo)
208 ac_prev
=localstatedir
;;
209 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
210 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
211 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
212 localstatedir
="$ac_optarg" ;;
214 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
216 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
217 mandir
="$ac_optarg" ;;
220 # Obsolete; use --without-fp.
223 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
227 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
228 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
231 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
232 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
233 |
--oldin |
--oldi |
--old |
--ol |
--o)
234 ac_prev
=oldincludedir
;;
235 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
236 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
237 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
238 oldincludedir
="$ac_optarg" ;;
240 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
242 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
243 prefix
="$ac_optarg" ;;
245 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
246 |
--program-pre |
--program-pr |
--program-p)
247 ac_prev
=program_prefix
;;
248 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
249 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
250 program_prefix
="$ac_optarg" ;;
252 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
253 |
--program-suf |
--program-su |
--program-s)
254 ac_prev
=program_suffix
;;
255 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
256 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
257 program_suffix
="$ac_optarg" ;;
259 -program-transform-name |
--program-transform-name \
260 |
--program-transform-nam |
--program-transform-na \
261 |
--program-transform-n |
--program-transform- \
262 |
--program-transform |
--program-transfor \
263 |
--program-transfo |
--program-transf \
264 |
--program-trans |
--program-tran \
265 |
--progr-tra |
--program-tr |
--program-t)
266 ac_prev
=program_transform_name
;;
267 -program-transform-name=* |
--program-transform-name=* \
268 |
--program-transform-nam=* |
--program-transform-na=* \
269 |
--program-transform-n=* |
--program-transform-=* \
270 |
--program-transform=* |
--program-transfor=* \
271 |
--program-transfo=* |
--program-transf=* \
272 |
--program-trans=* |
--program-tran=* \
273 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
274 program_transform_name
="$ac_optarg" ;;
276 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
277 |
-silent |
--silent |
--silen |
--sile |
--sil)
280 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
282 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
284 sbindir
="$ac_optarg" ;;
286 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
287 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
288 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
290 ac_prev
=sharedstatedir
;;
291 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
292 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
293 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
295 sharedstatedir
="$ac_optarg" ;;
297 -site |
--site |
--sit)
299 -site=* |
--site=* |
--sit=*)
302 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
304 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
305 srcdir
="$ac_optarg" ;;
307 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
308 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
309 ac_prev
=sysconfdir
;;
310 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
311 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
312 sysconfdir
="$ac_optarg" ;;
314 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
316 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
317 target
="$ac_optarg" ;;
319 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
322 -version |
--version |
--versio |
--versi |
--vers |
-V)
326 ac_package
=`echo "$ac_option"|sed -e 's/-*with-//' -e 's/=.*//'`
327 # Reject names that are not valid shell variable names.
328 if echo "$ac_package" |
grep '[^-a-zA-Z0-9_]' >/dev
/null
2>&1; then
329 { echo "configure: error: invalid package: $ac_package" 1>&2; exit 1; }
331 ac_package
=`echo $ac_package| sed 's/-/_/g'`
333 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
336 eval "with_${ac_package}='$ac_optarg'" ;;
338 -without-* |
--without-*)
339 ac_package
=`echo "$ac_option"|sed -e 's/-*without-//'`
340 # Reject names that are not valid shell variable names.
341 if echo "$ac_package" |
grep '[^-a-zA-Z0-9_]' >/dev
/null
2>&1; then
342 { echo "configure: error: invalid package: $ac_package" 1>&2; exit 1; }
344 ac_package
=`echo $ac_package| sed 's/-/_/g'`
345 eval "with_${ac_package}=no" ;;
348 # Obsolete; use --with-x.
351 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
352 |
--x-incl |
--x-inc |
--x-in |
--x-i)
353 ac_prev
=x_includes
;;
354 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
355 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
356 x_includes
="$ac_optarg" ;;
358 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
359 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
360 ac_prev
=x_libraries
;;
361 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
362 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
363 x_libraries
="$ac_optarg" ;;
365 -*) { echo "configure: error: unrecognized option: $ac_option
366 Try \`configure --help' for more information." 1>&2; exit 1; }
370 ac_envvar
=`echo "$ac_option" | sed -e 's/=.*//'`
371 # Reject names that are not valid shell variable names.
372 if echo "$ac_envvar" |
grep '[^a-zA-Z0-9_]' >/dev
/null
2>&1; then
373 { echo "configure: error: invalid variable name: $ac_envvar" 1>&2; exit 1; }
375 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
376 eval "$ac_envvar='$ac_optarg'"
380 if echo "$ac_option" |
grep '[^-a-zA-Z0-9.]' >/dev
/null
2>&1; then
381 echo "configure: warning: invalid host type: $ac_option" 1>&2
383 if test "x$nonopt" != xNONE
; then
384 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
392 if test -n "$ac_prev"; then
393 { echo "configure: error: missing argument to --\`echo $ac_prev | sed 's/_/-/g'\`" 1>&2; exit 1; }
396 # Find the source files, if location was not specified.
397 if test -z "$srcdir"; then
398 ac_srcdir_defaulted
=yes
399 # Try the directory containing this script, then its parent.
401 ac_confdir
=`echo "$ac_prog" | sed 's%/[^/][^/]*$%%'`
402 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
404 if test ! -r $srcdir/$ac_unique_file; then
408 ac_srcdir_defaulted
=no
410 if test ! -r $srcdir/$ac_unique_file; then
411 if test "$ac_srcdir_defaulted" = yes; then
412 { echo "configure: error: cannot find sources in $ac_confdir or .." 1>&2; exit 1; }
414 { echo "configure: error: cannot find sources in $srcdir" 1>&2; exit 1; }
417 srcdir
=`echo "$srcdir" | sed 's%\([^/]\)/*$%\1%'`
420 # Report the --help message.
422 if test "$ac_init_help" = "long"; then
423 # Omit some internal or obsolete options to make the list less imposing.
424 # This message is too long to be a string in the A/UX 3.1 sh.
426 `configure' configures this package to adapt to many kinds
428 Usage: configure [OPTION]... [VAR=VALUE]... [HOST]
430 To safely assign special values to environment variables (e.g., CC,
431 CFLAGS...), give to `configure
' the definition as VAR=VALUE.
433 Defaults for the options are specified in brackets.
436 -h, --help print this message
437 -V, --version print the version of autoconf that created configure
438 -q, --quiet, --silent do not print `checking...' messages
439 --cache-file=FILE cache
test results
in FILE
440 -n, --no-create do not create output files
446 --prefix=PREFIX install architecture-independent files in PREFIX
448 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
450 --bindir=DIR user executables in DIR [EPREFIX/bin]
451 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
452 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
453 --datadir=DIR read-only architecture-independent data in DIR
455 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
456 --sharedstatedir=DIR modifiable architecture-independent data in DIR
458 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
459 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
460 --includedir=DIR C header files in DIR [PREFIX/include]
461 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
462 --infodir=DIR info documentation in DIR [PREFIX/info]
463 --mandir=DIR man documentation in DIR [PREFIX/man]
464 --srcdir=DIR find the sources in DIR [configure dir or ..]
470 --build=BUILD configure
for building on BUILD
[BUILD
=HOST
]
471 --host=HOST configure
for HOST
[guessed
]
472 --target=TARGET configure
for TARGET
[TARGET
=HOST
]
477 --program-prefix=PREFIX prepend PREFIX to installed program names
478 --program-suffix=SUFFIX append SUFFIX to installed program names
479 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
483 if test -n "$ac_init_help"; then
488 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
489 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
490 --disable-dependency-tracking Speeds up one-time builds
491 --enable-dependency-tracking Do not reject slow dependency extractors
492 --enable-id-cache cache all UIDs
& GIDs
; avoid
if using NIS or Hesiod
493 --disable-largefile omit support
for large files
494 --disable-assert turn off assertions
495 --disable-nls do not use Native Language Support
498 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
499 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
500 --without-included-regex don
't compile regex; this is the default on
501 systems with version 2 of the GNU C library
502 (use with caution on other system)
503 --with-included-gettext use the GNU gettext library included here
504 --with-catgets use catgets functions if available
506 Some influent environment variables:
507 CFLAGS Extra flags for the C compiler
511 if test "$ac_init_help" = "recursive"; then
512 # If there are subdirs, report their specific --help.
514 for ac_subdir in : $subdirs; do test "x$ac_subdir" = x: && continue
516 # A "../" for each directory in /$ac_subdir.
517 ac_dots=`echo $ac_subdir |
518 sed -e 's
%^\.
/%%;s
%[^
/]$
%&/%;s
%[^
/]*/%..
/%g
'`
521 .) # No --srcdir option. We are building in place.
522 ac_sub_srcdir=$srcdir ;;
523 [\\/]* | ?:[\\/]* ) # Absolute path.
524 ac_sub_srcdir=$srcdir/$ac_subdir ;;
526 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
529 # Check for guested configure; otherwise get Cygnus style configure.
530 if test -f $ac_sub_srcdir/configure; then
532 $SHELL $ac_sub_srcdir/configure --help=recursive
533 elif test -f $ac_sub_srcdir/configure.in; then
537 echo "configure: warning: no configuration information is in $ac_subdir" 1>&2
543 test -n "$ac_init_help" && exit 0
544 if $ac_init_version; then
547 Copyright (C) 1992, 93, 94, 95, 96, 98, 99, 2000
548 Free Software Foundation, Inc.
549 This configure script is free software; the Free Software Foundation
550 gives unlimited permission to copy, distribute and modify it.
555 # Only set these to C if already set. These must not be set unconditionally
556 # because not all systems understand e.g. LANG=C (notably SCO).
557 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
558 # Non-C LC_CTYPE values break the ctype check.
559 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
560 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
561 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
562 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
565 # We need space, tab and new line, in precisely that order.
570 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
572 # Keep a trace of the command line.
573 # Strip out --no-create and --no-recursion so they do not pile up.
574 # Also quote any args containing shell meta-characters.
579 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
580 |
--no-cr |
--no-c) ;;
581 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
582 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
583 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
584 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
585 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
586 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
590 # File descriptor usage:
593 # 2 errors and warnings
594 # 3 some systems may open it to /dev/tty
595 # 4 used on the Kubota Titan
596 # 6 checking for... messages and results
597 # 5 compiler messages saved in config.log
598 if test "$silent" = yes; then
606 This file contains any messages produced by compilers while
607 running configure, to aid debugging if configure makes a mistake.
609 It was created by configure version 2.14a, executed with
610 > $0 $ac_configure_args
613 # confdefs.h avoids OS command line length limits that DEFS can exceed.
614 rm -rf conftest
* confdefs.h
615 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
618 # Prefer explicitly selected file to automatically selected ones.
619 if test -z "$CONFIG_SITE"; then
620 if test "x$prefix" != xNONE
; then
621 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
623 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
626 for ac_site_file
in $CONFIG_SITE; do
627 if test -r "$ac_site_file"; then
628 echo "loading site script $ac_site_file"
633 if test -r "$cache_file"; then
634 echo "loading cache $cache_file"
635 test -f "$cache_file" && .
$cache_file
637 echo "creating cache $cache_file"
642 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
643 ac_cpp
='$CPP $CPPFLAGS'
644 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
645 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
646 cross_compiling
=$ac_cv_prog_cc_cross
648 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
649 # Stardent Vistra SVR4 grep lacks -e, says Kaveh R. Ghazi.
650 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
654 ECHO_N
=-n ECHO_C
= ECHO_T
=
657 ECHO_N
= ECHO_C
='\c' ECHO_T
=
661 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
662 if test -f $ac_dir/install-sh
; then
664 ac_install_sh
="$ac_aux_dir/install-sh -c"
666 elif test -f $ac_dir/install.sh
; then
668 ac_install_sh
="$ac_aux_dir/install.sh -c"
670 elif test -f $ac_dir/shtool
; then
672 ac_install_sh
="$ac_aux_dir/shtool install -c"
676 if test -z "$ac_aux_dir"; then
677 { echo "configure: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
679 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
680 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
681 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
683 echo $ECHO_N "checking host system type... $ECHO_C" 1>&6
684 echo "configure:600: checking host system type" 1>&5
685 if test "x$ac_cv_host" = "x" ||
(test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
687 # Make sure we can run config.sub.
688 if $ac_config_sub sun4
>/dev
/null
2>&1; then :; else
689 { echo "configure: error: cannot run $ac_config_sub" 1>&2; exit 1; }
692 ac_cv_host_alias
=$host
693 case "$ac_cv_host_alias" in
697 if ac_cv_host_alias
=`$ac_config_guess`; then :
698 else { echo "configure: error: cannot guess host type; you must specify one" 1>&2; exit 1; }
699 fi ;; *) ac_cv_host_alias
=$nonopt ;;
703 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
exit 1
704 ac_cv_host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
705 ac_cv_host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
706 ac_cv_host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
708 echo $ECHO_N "(cached) $ECHO_C" 1>&6
711 echo "$ECHO_T""$ac_cv_host" 1>&6
714 host_alias
=$ac_cv_host_alias
715 host_cpu
=$ac_cv_host_cpu
716 host_vendor
=$ac_cv_host_vendor
717 host_os
=$ac_cv_host_os
719 ALL_LINGUAS
=" de es fr it ko nl pl pt_BR ru sv gl et"
721 # Find a good install program. We prefer a C program (faster),
722 # so one script is as good as another. But avoid the broken or
723 # incompatible versions:
724 # SysV /etc/install, /usr/sbin/install
725 # SunOS /usr/etc/install
728 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
729 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
730 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
731 # ./install, which can be erroneously created by make from ./install.sh.
732 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" 1>&6
733 echo "configure:642: checking for a BSD compatible install" 1>&5
734 if test -z "$INSTALL"; then
735 if test "${ac_cv_path_install+set}" = set; then
736 echo $ECHO_N "(cached) $ECHO_C" 1>&6
738 ac_save_IFS
=$IFS; IFS
=':'
739 for ac_dir
in $PATH; do
740 # Account for people who put trailing slashes in PATH elements.
742 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
744 # OSF1 and SCO ODT 3.0 have their own names for install.
745 # Don't use installbsd from OSF since it installs stuff as root
747 for ac_prog
in ginstall scoinst
install; do
748 if test -f $ac_dir/$ac_prog; then
749 if test $ac_prog = install &&
750 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
751 # AIX install. It has an incompatible calling convention.
753 elif test $ac_prog = install &&
754 grep pwplus
$ac_dir/$ac_prog >/dev
/null
2>&1; then
755 # program-specific install script used by HP pwplus--don't use.
758 ac_cv_path_install
="$ac_dir/$ac_prog -c"
769 if test "${ac_cv_path_install+set}" = set; then
770 INSTALL
="$ac_cv_path_install"
772 # As a last resort, use the slow shell script. We don't cache a
773 # path for INSTALL within a source directory, because that will
774 # break other packages using the cache if that directory is
775 # removed, or if the path is relative.
776 INSTALL
="$ac_install_sh"
779 echo "$ECHO_T""$INSTALL" 1>&6
781 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
782 # It thinks the first close brace ends the variable substitution.
783 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
785 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
787 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
789 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" 1>&6
790 echo "configure:694: checking whether build environment is sane" 1>&5
793 echo timestamp
> conftestfile
794 # Do `set' in a subshell so we don't clobber the current shell's
795 # arguments. Must try -L first in case configure is actually a
796 # symlink; some systems play weird games with the mod time of symlinks
797 # (eg FreeBSD returns the mod time of the symlink's containing
800 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
801 if test "$*" = "X"; then
803 set X
`ls -t $srcdir/configure conftestfile`
805 if test "$*" != "X $srcdir/configure conftestfile" \
806 && test "$*" != "X conftestfile $srcdir/configure"; then
808 # If neither matched, then we have a broken ls. This can happen
809 # if, for instance, CONFIG_SHELL is bash and it inherits a
810 # broken ls alias from the environment. This has actually
811 # happened. Such a system could not be considered "sane".
812 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
813 alias in your environment" 1>&2; exit 1; }
816 test "$2" = conftestfile
822 { echo "configure: error: newly created file is older than distributed files!
823 Check your system clock" 1>&2; exit 1; }
826 echo "$ECHO_T""yes" 1>&6
827 if test "$program_transform_name" = s
,x
,x
,; then
828 program_transform_name
=
830 # Double any \ or $. echo might interpret backslashes.
831 cat <<\EOF
>conftestsed
832 s
,\\,\\\\,g
; s
,\$
,$$
,g
834 program_transform_name
=`echo $program_transform_name | sed -f conftestsed`
837 test "$program_prefix" != NONE
&&
838 program_transform_name
="s,^,${program_prefix},;$program_transform_name"
839 # Use a double $ so make ignores it.
840 test "$program_suffix" != NONE
&&
841 program_transform_name
="s,\$\$,${program_suffix},;$program_transform_name"
843 # sed with no file args requires a program.
844 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
846 test x
"${MISSING+set}" = xset || \
847 MISSING
="\${SHELL} `CDPATH=: && cd $ac_aux_dir && pwd`/missing"
848 # Use eval to expand $SHELL
849 if eval "$MISSING --run :"; then
850 am_missing_run
="$MISSING --run "
854 echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2
857 for ac_prog
in mawk gawk nawk
awk
859 # Extract the first word of "$ac_prog", so it can be a program name with args.
860 set dummy
$ac_prog; ac_word
=$2
861 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
862 echo "configure:761: checking for $ac_word" 1>&5
863 if test "${ac_cv_prog_AWK+set}" = set; then
864 echo $ECHO_N "(cached) $ECHO_C" 1>&6
866 if test -n "$AWK"; then
867 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
869 for ac_path
in `ac_save_ifs=$IFS; IFS=':'
871 for ac_dir in $ac_dummy; do
872 test -z "$ac_dir" && ac_dir=.
873 if test -f $ac_dir/$ac_word; then
874 echo "$ac_dir/$ac_word"
879 ac_cv_prog_AWK
="$ac_prog"
884 AWK
="$ac_cv_prog_AWK"
885 if test -n "$AWK"; then
886 echo "$ECHO_T""$AWK" 1>&6
888 echo "$ECHO_T""no" 1>&6
891 test -n "$AWK" && break
894 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" 1>&6
895 echo "configure:792: checking whether ${MAKE-make} sets \${MAKE}" 1>&5
896 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
897 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
898 echo $ECHO_N "(cached) $ECHO_C" 1>&6
900 cat >conftestmake
<<\EOF
902 @
echo 'ac_maketemp="${MAKE}"'
904 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
905 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
906 if test -n "$ac_maketemp"; then
907 eval ac_cv_prog_make_
${ac_make}_set
=yes
909 eval ac_cv_prog_make_
${ac_make}_set
=no
913 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
914 echo "$ECHO_T""yes" 1>&6
917 echo "$ECHO_T""no" 1>&6
918 SET_MAKE
="MAKE=${MAKE-make}"
921 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
922 if test "${enable_dependency_tracking+set}" = set; then
923 enableval
="$enable_dependency_tracking"
926 if test "x$enable_dependency_tracking" = xno
; then
929 am_depcomp
="$ac_aux_dir/depcomp"
930 if test ! -f "$am_depcomp"; then
937 if test -z "$AMDEP"; then
943 if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
949 # test to see if srcdir already configured
950 if test "`CDPATH=: && cd $srcdir && pwd`" != "`pwd`" &&
951 test -f $srcdir/config.status; then
952 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
955 # Define the identity of the package.
960 cat >>confdefs.h <<EOF
961 #define PACKAGE "$PACKAGE"
966 cat >>confdefs.h <<EOF
967 #define VERSION "$VERSION"
970 # Some tools Automake needs.
972 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
974 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
976 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
978 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
980 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
982 AMTAR=${AMTAR-"${am_missing_run}tar"}
984 if test -z "$install_sh"; then
985 install_sh="$ac_aux_dir/install-sh"
986 test -f "$install_sh" || install_sh="$ac_aux_dir/install.sh"
987 test -f "$install_sh" || install_sh="${am_missing_run}${ac_auxdir}/install-sh"
988 install_sh="`echo $install_sh | sed -e 's
/\
${SHELL}//'`"
991 # We need awk for the "check" target. The system "awk" is bad on
994 # Check whether --enable-id-cache or --disable-id-cache was given.
995 if test "${enable_id_cache+set}" = set; then
996 enableval="$enable_id_cache"
999 cat >>confdefs.h <<\EOF
1005 case "${CFLAGS+set} $ac_configure_args" in
1007 "set "*) ac_configure_args="CFLAGS='$CFLAGS' $ac_configure_args";;
1010 # Extract the first word of "gcc", so it can be a program name with args.
1011 set dummy gcc; ac_word=$2
1012 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
1013 echo "configure:887: checking for $ac_word" 1>&5
1014 if test "${ac_cv_prog_CC+set}" = set; then
1015 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1017 if test -n "$CC"; then
1018 ac_cv_prog_CC="$CC" # Let the user override the test.
1020 for ac_path in `ac_save_ifs=$IFS; IFS=':'
1022 for ac_dir in $ac_dummy; do
1023 test -z "$ac_dir" && ac_dir=.
1024 if test -f $ac_dir/$ac_word; then
1025 echo "$ac_dir/$ac_word"
1036 if test -n "$CC"; then
1037 echo "$ECHO_T""$CC" 1>&6
1039 echo "$ECHO_T""no" 1>&6
1042 if test -z "$CC"; then
1043 # Extract the first word of "cc", so it can be a program name with args.
1044 set dummy cc; ac_word=$2
1045 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
1046 echo "configure:919: checking for $ac_word" 1>&5
1047 if test "${ac_cv_prog_CC+set}" = set; then
1048 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1050 if test -n "$CC"; then
1051 ac_cv_prog_CC="$CC" # Let the user override the test.
1054 for ac_path in `ac_save_ifs=$IFS; IFS=':'
1056 for ac_dir in $ac_dummy; do
1057 test -z "$ac_dir" && ac_dir=.
1058 if test -f $ac_dir/$ac_word; then
1059 echo "$ac_dir/$ac_word"
1064 if test "$ac_path" = "/usr/ucb/cc"; then
1065 ac_prog_rejected=yes
1071 if test $ac_prog_rejected = yes; then
1072 # We found a bogon in the path, so make sure we never use it.
1073 set dummy $ac_cv_prog_CC
1075 if test $# -gt 0; then
1076 # We chose a different compiler from the bogus one.
1077 # However, it has the same basename, so the bogon will be chosen
1078 # first if we set CC to just the basename; use the full file name.
1080 set dummy "$ac_path" "$@"
1088 if test -n "$CC"; then
1089 echo "$ECHO_T""$CC" 1>&6
1091 echo "$ECHO_T""no" 1>&6
1094 if test -z "$CC"; then
1097 # Extract the first word of "$ac_prog", so it can be a program name with args.
1098 set dummy $ac_prog; ac_word=$2
1099 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
1100 echo "configure:972: checking for $ac_word" 1>&5
1101 if test "${ac_cv_prog_CC+set}" = set; then
1102 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1104 if test -n "$CC"; then
1105 ac_cv_prog_CC="$CC" # Let the user override the test.
1107 for ac_path in `ac_save_ifs=$IFS; IFS=':'
1109 for ac_dir in $ac_dummy; do
1110 test -z "$ac_dir" && ac_dir=.
1111 if test -f $ac_dir/$ac_word; then
1112 echo "$ac_dir/$ac_word"
1117 ac_cv_prog_CC="$ac_prog"
1123 if test -n "$CC"; then
1124 echo "$ECHO_T""$CC" 1>&6
1126 echo "$ECHO_T""no" 1>&6
1129 test -n "$CC" && break
1135 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1137 echo $ECHO_N "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works... $ECHO_C" 1>&6
1138 echo "configure:1006: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" 1>&5
1140 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1141 ac_cpp='$CPP $CPPFLAGS'
1142 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.
$ac_ext 1>&5'
1143 ac_link='${CC-cc} -o conftest
${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS 1>&5'
1144 cross_compiling=$ac_cv_prog_cc_cross
1146 cat >conftest.$ac_ext <<EOF
1147 #line 1014 "configure"
1148 #include "confdefs.h"
1149 int main(){return(0);}
1151 if { (eval echo configure:1018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1152 ac_cv_prog_cc_works=yes
1153 # If we can't run a trivial program
, we are probably using a cross compiler.
1154 if (.
/conftest
; exit) 2>/dev
/null
; then
1155 ac_cv_prog_cc_cross
=no
1157 ac_cv_prog_cc_cross
=yes
1160 echo "configure: failed program was:" >&5
1161 cat conftest.
$ac_ext >&5
1162 ac_cv_prog_cc_works
=no
1166 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1167 ac_cpp
='$CPP $CPPFLAGS'
1168 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1169 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1170 cross_compiling
=$ac_cv_prog_cc_cross
1171 echo "$ECHO_T""$ac_cv_prog_cc_works" 1>&6
1172 if test $ac_cv_prog_cc_works = no
; then
1173 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 77; }
1175 echo $ECHO_N "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler... $ECHO_C" 1>&6
1176 echo "configure:1043: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" 1>&5
1177 echo "$ECHO_T""$ac_cv_prog_cc_cross" 1>&6
1178 cross_compiling
=$ac_cv_prog_cc_cross
1180 echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" 1>&6
1181 echo "configure:1047: checking whether we are using GNU C" 1>&5
1182 if test "${ac_cv_prog_gcc+set}" = set; then
1183 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1185 cat >conftest.c
<<EOF
1190 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1196 echo "$ECHO_T""$ac_cv_prog_gcc" 1>&6
1198 if test $ac_cv_prog_gcc = yes; then
1204 ac_test_CFLAGS
="${CFLAGS+set}"
1205 ac_save_CFLAGS
="$CFLAGS"
1207 echo $ECHO_N "checking whether ${CC-cc} accepts -g... $ECHO_C" 1>&6
1208 echo "configure:1072: checking whether ${CC-cc} accepts -g" 1>&5
1209 if test "${ac_cv_prog_cc_g+set}" = set; then
1210 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1212 echo 'void f(){}' >conftest.c
1213 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1221 echo "$ECHO_T""$ac_cv_prog_cc_g" 1>&6
1222 if test "$ac_test_CFLAGS" = set; then
1223 CFLAGS
="$ac_save_CFLAGS"
1224 elif test $ac_cv_prog_cc_g = yes; then
1225 if test "$GCC" = yes; then
1231 if test "$GCC" = yes; then
1238 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" 1>&6
1239 echo "configure:1101: checking how to run the C preprocessor" 1>&5
1240 # On Suns, sometimes $CPP names a directory.
1241 if test -n "$CPP" && test -d "$CPP"; then
1244 if test -z "$CPP"; then
1245 if test "${ac_cv_prog_CPP+set}" = set; then
1246 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1248 # This must be in double quotes, not single quotes, because CPP may get
1249 # substituted into the Makefile and "${CC-cc}" will confuse make.
1251 # On the NeXT, cc -E runs the code through the compiler's parser,
1252 # not just through cpp.
1254 cat >conftest.
$ac_ext <<EOF
1255 #line 1116 "configure"
1256 #include "confdefs.h"
1260 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1261 { (eval echo configure
:1122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1262 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1263 if test -z "$ac_err"; then
1267 echo "configure: failed program was:" >&5
1268 cat conftest.
$ac_ext >&5
1269 CPP
="${CC-cc} -E -traditional-cpp"
1271 cat >conftest.
$ac_ext <<EOF
1272 #line 1132 "configure"
1273 #include "confdefs.h"
1277 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1278 { (eval echo configure
:1138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1279 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1280 if test -z "$ac_err"; then
1284 echo "configure: failed program was:" >&5
1285 cat conftest.
$ac_ext >&5
1286 CPP
="${CC-cc} -nologo -E"
1288 cat >conftest.
$ac_ext <<EOF
1289 #line 1148 "configure"
1290 #include "confdefs.h"
1294 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1295 { (eval echo configure
:1154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1296 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1297 if test -z "$ac_err"; then
1301 echo "configure: failed program was:" >&5
1302 cat conftest.
$ac_ext >&5
1310 ac_cv_prog_CPP
="$CPP"
1312 CPP
="$ac_cv_prog_CPP"
1314 ac_cv_prog_CPP
="$CPP"
1316 echo "$ECHO_T""$CPP" 1>&6
1320 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" 1>&6
1321 echo "configure:1179: checking dependency style of $depcc" 1>&5
1322 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1323 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1326 if test -z "$AMDEP"; then
1327 echo '#include "conftest.h"' > conftest.c
1328 echo 'int i;' > conftest.h
1330 am_cv_CC_dependencies_compiler_type
=none
1331 for depmode
in `sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < "$am_depcomp"`; do
1334 # after this tag, mechanisms are not by side-effect, so they'll
1335 # only be used when explicitly requested
1336 if test "x$enable_dependency_tracking" = xyes
; then
1344 # We check with `-c' and `-o' for the sake of the "dashmstdout"
1345 # mode. It turns out that the SunPro C++ compiler does not properly
1346 # handle `-M -o', and we need to detect this.
1347 if depmode
="$depmode" \
1348 source=conftest.c object
=conftest.o \
1349 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
1350 $SHELL $am_depcomp $depcc -c conftest.c
-o conftest.o
2>/dev
/null
&&
1351 grep conftest.h conftest.Po
> /dev
/null
2>&1; then
1352 am_cv_CC_dependencies_compiler_type
="$depmode"
1359 am_cv_CC_dependencies_compiler_type
=none
1364 echo "$ECHO_T""$am_cv_CC_dependencies_compiler_type" 1>&6
1365 CCDEPMODE
="depmode=$am_cv_CC_dependencies_compiler_type"
1367 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" 1>&6
1368 echo "configure:1220: checking how to run the C preprocessor" 1>&5
1369 # On Suns, sometimes $CPP names a directory.
1370 if test -n "$CPP" && test -d "$CPP"; then
1373 if test -z "$CPP"; then
1374 if test "${ac_cv_prog_CPP+set}" = set; then
1375 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1377 # This must be in double quotes, not single quotes, because CPP may get
1378 # substituted into the Makefile and "${CC-cc}" will confuse make.
1380 # On the NeXT, cc -E runs the code through the compiler's parser,
1381 # not just through cpp.
1383 cat >conftest.
$ac_ext <<EOF
1384 #line 1235 "configure"
1385 #include "confdefs.h"
1389 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1390 { (eval echo configure
:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1391 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1392 if test -z "$ac_err"; then
1396 echo "configure: failed program was:" >&5
1397 cat conftest.
$ac_ext >&5
1398 CPP
="${CC-cc} -E -traditional-cpp"
1400 cat >conftest.
$ac_ext <<EOF
1401 #line 1251 "configure"
1402 #include "confdefs.h"
1406 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1407 { (eval echo configure
:1257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1408 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1409 if test -z "$ac_err"; then
1413 echo "configure: failed program was:" >&5
1414 cat conftest.
$ac_ext >&5
1415 CPP
="${CC-cc} -nologo -E"
1417 cat >conftest.
$ac_ext <<EOF
1418 #line 1267 "configure"
1419 #include "confdefs.h"
1423 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1424 { (eval echo configure
:1273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1425 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1426 if test -z "$ac_err"; then
1430 echo "configure: failed program was:" >&5
1431 cat conftest.
$ac_ext >&5
1439 ac_cv_prog_CPP
="$CPP"
1441 CPP
="$ac_cv_prog_CPP"
1443 ac_cv_prog_CPP
="$CPP"
1445 echo "$ECHO_T""$CPP" 1>&6
1449 echo $ECHO_N "checking for AIX... $ECHO_C" 1>&6
1450 echo "configure:1297: checking for AIX" 1>&5
1452 cat >conftest.
$ac_ext <<EOF
1453 #line 1299 "configure"
1454 #include "confdefs.h"
1460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1461 egrep "yes" >/dev
/null
2>&1; then
1462 echo "$ECHO_T""yes" 1>&6
1463 cat >>confdefs.h
<<\EOF
1464 #define _ALL_SOURCE 1
1468 echo "$ECHO_T""no" 1>&6
1472 echo $ECHO_N "checking for minix/config.h... $ECHO_C" 1>&6
1473 echo "configure:1316: checking for minix/config.h" 1>&5
1474 if test "${ac_cv_header_minix_config_h+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1478 cat >conftest.
$ac_ext <<EOF
1479 #line 1321 "configure"
1480 #include "confdefs.h"
1481 #include <minix/config.h>
1484 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1485 { (eval echo configure
:1326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1486 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1487 if test -z "$ac_err"; then
1488 ac_cv_header_minix_config_h
=yes
1491 echo "configure: failed program was:" >&5
1492 cat conftest.
$ac_ext >&5
1493 ac_cv_header_minix_config_h
=no
1497 echo "$ECHO_T""$ac_cv_header_minix_config_h" 1>&6
1498 if test $ac_cv_header_minix_config_h = yes; then
1504 if test "$MINIX" = yes; then
1507 cat >>confdefs.h
<<\EOF
1508 #define _POSIX_SOURCE 1
1513 cat >>confdefs.h
<<\EOF
1514 #define _POSIX_1_SOURCE 2
1519 cat >>confdefs.h
<<\EOF
1527 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" 1>&6
1528 echo "configure:1360: checking for strerror in -lcposix" 1>&5
1529 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1532 ac_save_LIBS
="$LIBS"
1533 LIBS
="-lcposix $LIBS"
1534 cat >conftest.
$ac_ext <<EOF
1535 #line 1367 "configure"
1536 #include "confdefs.h"
1538 /* Override any gcc2 internal prototype to avoid an error. */
1542 /* We use char because int might match the return type of a gcc2
1543 builtin and then its argument prototype would still apply. */
1553 if { (eval echo configure
:1384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1554 ac_cv_lib_cposix_strerror
=yes
1556 echo "configure: failed program was:" >&5
1557 cat conftest.
$ac_ext >&5
1558 ac_cv_lib_cposix_strerror
=no
1561 LIBS
="$ac_save_LIBS"
1563 echo "$ECHO_T""$ac_cv_lib_cposix_strerror" 1>&6
1564 if test $ac_cv_lib_cposix_strerror = yes; then
1565 LIBS
="$LIBS -lcposix"
1568 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" 1>&6
1569 echo "configure:1399: checking for ${CC-cc} option to accept ANSI C" 1>&5
1570 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1573 ac_cv_prog_cc_stdc
=no
1575 # Don't try gcc -ansi; that turns off useful extensions and
1576 # breaks some systems' header files.
1577 # AIX -qlanglvl=ansi
1578 # Ultrix and OSF/1 -std1
1579 # HP-UX 10.20 and later -Ae
1580 # HP-UX older versions -Aa -D_HPUX_SOURCE
1581 # SVR4 -Xc -D__EXTENSIONS__
1582 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1584 CC
="$ac_save_CC $ac_arg"
1585 cat >conftest.
$ac_ext <<EOF
1586 #line 1416 "configure"
1587 #include "confdefs.h"
1590 #include <sys/types.h>
1591 #include <sys/stat.h>
1592 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1593 struct buf { int x; };
1594 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1595 static char *e (p, i)
1601 static char *f (char * (*g) (char **, int), char **p, ...)
1606 s = g (p, va_arg (v,int));
1610 int test (int i, double x);
1611 struct s1 {int (*f) (int a);};
1612 struct s2 {int (*f) (double a);};
1613 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1619 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1624 if { (eval echo configure
:1454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1625 ac_cv_prog_cc_stdc
="$ac_arg"; break
1627 echo "configure: failed program was:" >&5
1628 cat conftest.
$ac_ext >&5
1636 case "x$ac_cv_prog_cc_stdc" in
1638 echo "$ECHO_T""none needed" 1>&6 ;;
1640 echo "$ECHO_T""$ac_cv_prog_cc_stdc" 1>&6
1641 CC
="$CC $ac_cv_prog_cc_stdc" ;;
1644 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" 1>&6
1645 echo "configure:1472: checking for ${CC-cc} option to accept ANSI C" 1>&5
1646 if test "${am_cv_prog_cc_stdc+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1649 am_cv_prog_cc_stdc
=no
1651 # Don't try gcc -ansi; that turns off useful extensions and
1652 # breaks some systems' header files.
1653 # AIX -qlanglvl=ansi
1654 # Ultrix and OSF/1 -std1
1655 # HP-UX 10.20 and later -Ae
1656 # HP-UX older versions -Aa -D_HPUX_SOURCE
1657 # SVR4 -Xc -D__EXTENSIONS__
1658 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1660 CC
="$ac_save_CC $ac_arg"
1661 cat >conftest.
$ac_ext <<EOF
1662 #line 1489 "configure"
1663 #include "confdefs.h"
1666 #include <sys/types.h>
1667 #include <sys/stat.h>
1668 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1669 struct buf { int x; };
1670 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1671 static char *e (p, i)
1677 static char *f (char * (*g) (char **, int), char **p, ...)
1682 s = g (p, va_arg (v,int));
1686 int test (int i, double x);
1687 struct s1 {int (*f) (int a);};
1688 struct s2 {int (*f) (double a);};
1689 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1697 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1703 if { (eval echo configure
:1527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1704 am_cv_prog_cc_stdc
="$ac_arg"; break
1706 echo "configure: failed program was:" >&5
1707 cat conftest.
$ac_ext >&5
1715 if test -z "$am_cv_prog_cc_stdc"; then
1716 echo "$ECHO_T""none needed" 1>&6
1718 echo "$ECHO_T""$am_cv_prog_cc_stdc" 1>&6
1720 case "x$am_cv_prog_cc_stdc" in
1722 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1725 echo $ECHO_N "checking for function prototypes... $ECHO_C" 1>&6
1726 echo "configure:1547: checking for function prototypes" 1>&5
1727 if test "$am_cv_prog_cc_stdc" != no
; then
1728 echo "$ECHO_T""yes" 1>&6
1731 cat >>confdefs.h
<<\EOF
1732 #define PROTOTYPES 1
1737 echo "$ECHO_T""no" 1>&6
1738 U
=_ ANSI2KNR
=.
/ansi2knr
1739 # Ensure some checks needed by ansi2knr itself.
1741 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
1742 echo "configure:1560: checking for ANSI C header files" 1>&5
1743 if test "${ac_cv_header_stdc+set}" = set; then
1744 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1747 cat >conftest.
$ac_ext <<EOF
1748 #line 1565 "configure"
1749 #include "confdefs.h"
1756 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1757 { (eval echo configure
:1573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1758 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1759 if test -z "$ac_err"; then
1760 ac_cv_header_stdc
=yes
1763 echo "configure: failed program was:" >&5
1764 cat conftest.
$ac_ext >&5
1765 ac_cv_header_stdc
=no
1769 if test $ac_cv_header_stdc = yes; then
1770 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1772 cat >conftest.
$ac_ext <<EOF
1773 #line 1587 "configure"
1774 #include "confdefs.h"
1778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1779 egrep "memchr" >/dev
/null
2>&1; then
1782 ac_cv_header_stdc
=no
1788 if test $ac_cv_header_stdc = yes; then
1789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1791 cat >conftest.
$ac_ext <<EOF
1792 #line 1602 "configure"
1793 #include "confdefs.h"
1797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1798 egrep "free" >/dev
/null
2>&1; then
1801 ac_cv_header_stdc
=no
1807 if test $ac_cv_header_stdc = yes; then
1808 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1809 if test "$cross_compiling" = yes; then
1812 cat >conftest.
$ac_ext <<EOF
1813 #line 1620 "configure"
1814 #include "confdefs.h"
1816 #if ((' ' & 0x0FF) == 0x020)
1817 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1818 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1820 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
1821 || ('j' <= (c) && (c) <= 'r') \
1822 || ('s' <= (c) && (c) <= 'z'))
1823 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1826 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1831 for (i = 0; i < 256; i++)
1832 if (XOR (islower (i), ISLOWER (i))
1833 || toupper (i) != TOUPPER (i))
1838 if { (eval echo configure
:1644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
1839 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
1842 echo "configure: failed program was:" >&5
1843 cat conftest.
$ac_ext >&5
1844 ac_cv_header_stdc
=no
1851 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
1852 if test $ac_cv_header_stdc = yes; then
1855 cat >>confdefs.h
<<\EOF
1856 #define STDC_HEADERS 1
1863 for ac_header
in string.h
1865 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
1866 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
1867 echo "configure:1668: checking for $ac_header" 1>&5
1868 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
1869 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1872 cat >conftest.
$ac_ext <<EOF
1873 #line 1673 "configure"
1874 #include "confdefs.h"
1875 #include <$ac_header>
1878 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1879 { (eval echo configure
:1678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1880 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1881 if test -z "$ac_err"; then
1882 eval "$ac_ac_Header=yes"
1885 echo "configure: failed program was:" >&5
1886 cat conftest.
$ac_ext >&5
1887 eval "$ac_ac_Header=no"
1891 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
1892 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
1893 cat >>confdefs.h
<<EOF
1894 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
1902 # Find a good install program. We prefer a C program (faster),
1903 # so one script is as good as another. But avoid the broken or
1904 # incompatible versions:
1905 # SysV /etc/install, /usr/sbin/install
1906 # SunOS /usr/etc/install
1907 # IRIX /sbin/install
1909 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1910 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1911 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1912 # ./install, which can be erroneously created by make from ./install.sh.
1913 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" 1>&6
1914 echo "configure:1710: checking for a BSD compatible install" 1>&5
1915 if test -z "$INSTALL"; then
1916 if test "${ac_cv_path_install+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1919 ac_save_IFS
=$IFS; IFS
=':'
1920 for ac_dir
in $PATH; do
1921 # Account for people who put trailing slashes in PATH elements.
1923 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1925 # OSF1 and SCO ODT 3.0 have their own names for install.
1926 # Don't use installbsd from OSF since it installs stuff as root
1928 for ac_prog
in ginstall scoinst
install; do
1929 if test -f $ac_dir/$ac_prog; then
1930 if test $ac_prog = install &&
1931 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1932 # AIX install. It has an incompatible calling convention.
1934 elif test $ac_prog = install &&
1935 grep pwplus
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1936 # program-specific install script used by HP pwplus--don't use.
1939 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1950 if test "${ac_cv_path_install+set}" = set; then
1951 INSTALL
="$ac_cv_path_install"
1953 # As a last resort, use the slow shell script. We don't cache a
1954 # path for INSTALL within a source directory, because that will
1955 # break other packages using the cache if that directory is
1956 # removed, or if the path is relative.
1957 INSTALL
="$ac_install_sh"
1960 echo "$ECHO_T""$INSTALL" 1>&6
1962 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1963 # It thinks the first close brace ends the variable substitution.
1964 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1966 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1968 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1970 # Extract the first word of "ranlib", so it can be a program name with args.
1971 set dummy ranlib
; ac_word
=$2
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
1973 echo "configure:1764: checking for $ac_word" 1>&5
1974 if test "${ac_cv_prog_RANLIB+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1977 if test -n "$RANLIB"; then
1978 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1980 for ac_path
in `ac_save_ifs=$IFS; IFS=':'
1982 for ac_dir in $ac_dummy; do
1983 test -z "$ac_dir" && ac_dir=.
1984 if test -f $ac_dir/$ac_word; then
1985 echo "$ac_dir/$ac_word"
1990 ac_cv_prog_RANLIB
="ranlib"
1993 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1996 RANLIB
="$ac_cv_prog_RANLIB"
1997 if test -n "$RANLIB"; then
1998 echo "$ECHO_T""$RANLIB" 1>&6
2000 echo "$ECHO_T""no" 1>&6
2003 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" 1>&6
2004 echo "configure:1794: checking whether ${MAKE-make} sets \${MAKE}" 1>&5
2005 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
2006 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2007 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2009 cat >conftestmake
<<\EOF
2011 @
echo 'ac_maketemp="${MAKE}"'
2013 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2014 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2015 if test -n "$ac_maketemp"; then
2016 eval ac_cv_prog_make_
${ac_make}_set
=yes
2018 eval ac_cv_prog_make_
${ac_make}_set
=no
2022 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2023 echo "$ECHO_T""yes" 1>&6
2026 echo "$ECHO_T""no" 1>&6
2027 SET_MAKE
="MAKE=${MAKE-make}"
2030 echo $ECHO_N "checking build system type... $ECHO_C" 1>&6
2031 echo "configure:1820: checking build system type" 1>&5
2032 if test "x$ac_cv_build" = "x" ||
(test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
2034 # Make sure we can run config.sub.
2035 if $ac_config_sub sun4
>/dev
/null
2>&1; then :; else
2036 { echo "configure: error: cannot run $ac_config_sub" 1>&2; exit 1; }
2039 ac_cv_build_alias
=$build
2040 case "$ac_cv_build_alias" in
2044 ac_cv_build_alias
=$host_alias ;;
2045 *) ac_cv_build_alias
=$nonopt ;;
2049 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
exit 1
2050 ac_cv_build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2051 ac_cv_build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2052 ac_cv_build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2054 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2057 echo "$ECHO_T""$ac_cv_build" 1>&6
2060 build_alias
=$ac_cv_build_alias
2061 build_cpu
=$ac_cv_build_cpu
2062 build_vendor
=$ac_cv_build_vendor
2063 build_os
=$ac_cv_build_os
2065 if test $host != $build; then
2066 ac_tool_prefix
=${host_alias}-
2071 # Check whether --enable-largefile or --disable-largefile was given.
2072 if test "${enable_largefile+set}" = set; then
2073 enableval
="$enable_largefile"
2076 if test "$enable_largefile" != no
; then
2078 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
2079 set dummy
${ac_tool_prefix}getconf
; ac_word
=$2
2080 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
2081 echo "configure:1861: checking for $ac_word" 1>&5
2082 if test "${ac_cv_prog_GETCONF+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2085 if test -n "$GETCONF"; then
2086 ac_cv_prog_GETCONF
="$GETCONF" # Let the user override the test.
2088 for ac_path
in `ac_save_ifs=$IFS; IFS=':'
2090 for ac_dir in $ac_dummy; do
2091 test -z "$ac_dir" && ac_dir=.
2092 if test -f $ac_dir/$ac_word; then
2093 echo "$ac_dir/$ac_word"
2098 ac_cv_prog_GETCONF
="${ac_tool_prefix}getconf"
2101 test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF
="getconf"
2104 GETCONF
="$ac_cv_prog_GETCONF"
2105 if test -n "$GETCONF"; then
2106 echo "$ECHO_T""$GETCONF" 1>&6
2108 echo "$ECHO_T""no" 1>&6
2111 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" 1>&6
2112 echo "configure:1891: checking for CFLAGS value to request large file support" 1>&5
2113 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2116 if ($GETCONF LFS_CFLAGS
) >conftest
.1 2>conftest
.2 && test ! -s conftest
.2
2118 ac_cv_sys_largefile_CFLAGS
=`cat conftest.1`
2120 ac_cv_sys_largefile_CFLAGS
=no
2122 # HP-UX 10.20 requires -D__STDC_EXT__ with gcc 2.95.1.
2123 hpux10.
[2-9][0-9]* | hpux1
[1-9]* | hpux
[2-9][0-9]*)
2124 if test "$GCC" = yes; then
2125 ac_cv_sys_largefile_CFLAGS
=-D__STDC_EXT__
2128 # IRIX 6.2 and later require cc -n32.
2129 irix6.
[2-9]* | irix6.1
[0-9]* | irix
[7-9].
* | irix
[1-9][0-9]*)
2130 if test "$GCC" != yes; then
2131 ac_cv_sys_largefile_CFLAGS
=-n32
2134 if test "$ac_cv_sys_largefile_CFLAGS" != no
; then
2136 CC
="$CC $ac_cv_sys_largefile_CFLAGS"
2137 cat >conftest.
$ac_ext <<EOF
2138 #line 1917 "configure"
2139 #include "confdefs.h"
2149 if { (eval echo configure
:1926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2152 echo "configure: failed program was:" >&5
2153 cat conftest.
$ac_ext >&5
2154 ac_cv_sys_largefile_CFLAGS
=no
2162 echo "$ECHO_T""$ac_cv_sys_largefile_CFLAGS" 1>&6
2163 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" 1>&6
2164 echo "configure:1941: checking for LDFLAGS value to request large file support" 1>&5
2165 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2168 if ($GETCONF LFS_LDFLAGS
) >conftest
.1 2>conftest
.2 && test ! -s conftest
.2
2170 ac_cv_sys_largefile_LDFLAGS
=`cat conftest.1`
2172 ac_cv_sys_largefile_LDFLAGS
=no
2177 echo "$ECHO_T""$ac_cv_sys_largefile_LDFLAGS" 1>&6
2178 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" 1>&6
2179 echo "configure:1956: checking for LIBS value to request large file support" 1>&5
2180 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2183 if ($GETCONF LFS_LIBS
) >conftest
.1 2>conftest
.2 && test ! -s conftest
.2
2185 ac_cv_sys_largefile_LIBS
=`cat conftest.1`
2187 ac_cv_sys_largefile_LIBS
=no
2192 echo "$ECHO_T""$ac_cv_sys_largefile_LIBS" 1>&6
2194 for ac_flag
in $ac_cv_sys_largefile_CFLAGS no
; do
2197 -D_FILE_OFFSET_BITS=*) ;;
2198 -D_LARGEFILE_SOURCE |
-D_LARGEFILE_SOURCE=*) ;;
2199 -D_LARGE_FILES |
-D_LARGE_FILES=*) ;;
2205 '') CPPFLAGS
="$ac_flag" ;;
2206 *) CPPFLAGS
=$CPPFLAGS' '"$ac_flag" ;;
2214 '') CFLAGS
="$ac_flag" ;;
2215 *) CFLAGS
=$CFLAGS' '"$ac_flag" ;;
2220 case "$ac_cv_sys_largefile_LDFLAGS" in
2224 '') LDFLAGS
="$ac_cv_sys_largefile_LDFLAGS" ;;
2225 *) LDFLAGS
=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
2228 case "$ac_cv_sys_largefile_LIBS" in
2232 '') LIBS
="$ac_cv_sys_largefile_LIBS" ;;
2233 *) LIBS
=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
2236 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" 1>&6
2237 echo "configure:2013: checking for _FILE_OFFSET_BITS" 1>&5
2238 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2241 ac_cv_sys_file_offset_bits
=no
2243 # HP-UX 10.20 and later
2244 hpux10.
[2-9][0-9]* | hpux1
[1-9]* | hpux
[2-9][0-9]*)
2245 ac_cv_sys_file_offset_bits
=64 ;;
2247 for ac_flag
in $ac_cv_sys_largefile_CFLAGS no
; do
2249 -D_FILE_OFFSET_BITS)
2250 ac_cv_sys_file_offset_bits
=1 ;;
2251 -D_FILE_OFFSET_BITS=*)
2252 ac_cv_sys_file_offset_bits
=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
2257 echo "$ECHO_T""$ac_cv_sys_file_offset_bits" 1>&6
2258 if test "$ac_cv_sys_file_offset_bits" != no
; then
2261 cat >>confdefs.h
<<EOF
2262 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2266 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" 1>&6
2267 echo "configure:2040: checking for _LARGEFILE_SOURCE" 1>&5
2268 if test "${ac_cv_sys_largefile_source+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2271 ac_cv_sys_largefile_source
=no
2273 # HP-UX 10.20 and later
2274 hpux10.
[2-9][0-9]* | hpux1
[1-9]* | hpux
[2-9][0-9]*)
2275 ac_cv_sys_largefile_source
=1 ;;
2277 for ac_flag
in $ac_cv_sys_largefile_CFLAGS no
; do
2279 -D_LARGEFILE_SOURCE)
2280 ac_cv_sys_largefile_source
=1 ;;
2281 -D_LARGEFILE_SOURCE=*)
2282 ac_cv_sys_largefile_source
=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
2287 echo "$ECHO_T""$ac_cv_sys_largefile_source" 1>&6
2288 if test "$ac_cv_sys_largefile_source" != no
; then
2291 cat >>confdefs.h
<<EOF
2292 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
2296 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" 1>&6
2297 echo "configure:2067: checking for _LARGE_FILES" 1>&5
2298 if test "${ac_cv_sys_large_files+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2301 ac_cv_sys_large_files
=no
2304 aix4.
[2-9]* | aix4.1
[0-9]* | aix
[5-9].
* | aix
[1-9][0-9]*)
2305 ac_cv_sys_large_files
=1 ;;
2307 for ac_flag
in $ac_cv_sys_largefile_CFLAGS no
; do
2310 ac_cv_sys_large_files
=1 ;;
2312 ac_cv_sys_large_files
=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
2317 echo "$ECHO_T""$ac_cv_sys_large_files" 1>&6
2318 if test "$ac_cv_sys_large_files" != no
; then
2321 cat >>confdefs.h
<<EOF
2322 #define _LARGE_FILES $ac_cv_sys_large_files
2328 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" 1>&6
2329 echo "configure:2095: checking whether time.h and sys/time.h may both be included" 1>&5
2330 if test "${ac_cv_header_time+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2333 cat >conftest.
$ac_ext <<EOF
2334 #line 2100 "configure"
2335 #include "confdefs.h"
2336 #include <sys/types.h>
2337 #include <sys/time.h>
2348 if { (eval echo configure
:2113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2349 ac_cv_header_time
=yes
2351 echo "configure: failed program was:" >&5
2352 cat conftest.
$ac_ext >&5
2353 ac_cv_header_time
=no
2357 echo "$ECHO_T""$ac_cv_header_time" 1>&6
2358 if test $ac_cv_header_time = yes; then
2361 cat >>confdefs.h
<<\EOF
2362 #define TIME_WITH_SYS_TIME 1
2367 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" 1>&6
2368 echo "configure:2130: checking for uid_t in sys/types.h" 1>&5
2369 if test "${ac_cv_type_uid_t+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2373 cat >conftest.
$ac_ext <<EOF
2374 #line 2135 "configure"
2375 #include "confdefs.h"
2376 #include <sys/types.h>
2379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2380 egrep "uid_t" >/dev
/null
2>&1; then
2381 ac_cv_type_uid_t
=yes
2388 echo "$ECHO_T""$ac_cv_type_uid_t" 1>&6
2389 if test $ac_cv_type_uid_t = no
; then
2392 cat >>confdefs.h
<<\EOF
2398 cat >>confdefs.h
<<\EOF
2404 echo $ECHO_N "checking for inttypes.h... $ECHO_C" 1>&6
2405 echo "configure:2159: checking for inttypes.h" 1>&5
2406 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2409 cat >conftest.
$ac_ext <<EOF
2410 #line 2164 "configure"
2411 #include "confdefs.h"
2412 #include <sys/types.h>
2413 #include <inttypes.h>
2417 uintmax_t i = (uintmax_t) -1;
2422 if { (eval echo configure
:2176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2423 jm_ac_cv_header_inttypes_h
=yes
2425 echo "configure: failed program was:" >&5
2426 cat conftest.
$ac_ext >&5
2427 jm_ac_cv_header_inttypes_h
=no
2431 echo "$ECHO_T""$jm_ac_cv_header_inttypes_h" 1>&6
2432 if test $jm_ac_cv_header_inttypes_h = yes; then
2435 cat >>confdefs.h
<<EOF
2436 #define HAVE_INTTYPES_H 1
2441 echo $ECHO_N "checking for unsigned long long... $ECHO_C" 1>&6
2442 echo "configure:2193: checking for unsigned long long" 1>&5
2443 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2446 cat >conftest.
$ac_ext <<EOF
2447 #line 2198 "configure"
2448 #include "confdefs.h"
2449 unsigned long long ull = 1; int i = 63;
2453 unsigned long long ullmax = (unsigned long long) -1;
2454 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
2459 if { (eval echo configure
:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2460 ac_cv_type_unsigned_long_long
=yes
2462 echo "configure: failed program was:" >&5
2463 cat conftest.
$ac_ext >&5
2464 ac_cv_type_unsigned_long_long
=no
2468 echo "$ECHO_T""$ac_cv_type_unsigned_long_long" 1>&6
2469 if test $ac_cv_type_unsigned_long_long = yes; then
2472 cat >>confdefs.h
<<\EOF
2473 #define HAVE_UNSIGNED_LONG_LONG 1
2478 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" 1>&6
2479 echo "configure:2227: checking whether byte ordering is bigendian" 1>&5
2480 if test "${ac_cv_c_bigendian+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2483 ac_cv_c_bigendian
=unknown
2484 # See if sys/param.h defines the BYTE_ORDER macro.
2485 cat >conftest.
$ac_ext <<EOF
2486 #line 2234 "configure"
2487 #include "confdefs.h"
2488 #include <sys/types.h>
2489 #include <sys/param.h>
2494 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2502 if { (eval echo configure
:2248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2503 # It does; now see whether it defined to BIG_ENDIAN or not.
2504 cat >conftest.
$ac_ext <<EOF
2505 #line 2251 "configure"
2506 #include "confdefs.h"
2507 #include <sys/types.h>
2508 #include <sys/param.h>
2513 #if BYTE_ORDER != BIG_ENDIAN
2521 if { (eval echo configure
:2265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2522 ac_cv_c_bigendian
=yes
2524 echo "configure: failed program was:" >&5
2525 cat conftest.
$ac_ext >&5
2526 ac_cv_c_bigendian
=no
2530 echo "configure: failed program was:" >&5
2531 cat conftest.
$ac_ext >&5
2534 if test $ac_cv_c_bigendian = unknown
; then
2535 if test "$cross_compiling" = yes; then
2536 { echo "configure: error: cannot run test program while cross compiling" 1>&2; exit 1; }
2538 cat >conftest.
$ac_ext <<EOF
2539 #line 2283 "configure"
2540 #include "confdefs.h"
2544 /* Are we little or big endian? From Harbison&Steele. */
2548 char c[sizeof (long)];
2551 exit (u.c[sizeof (long) - 1] == 1);
2554 if { (eval echo configure
:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
2555 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
2556 ac_cv_c_bigendian
=no
2558 echo "configure: failed program was:" >&5
2559 cat conftest.
$ac_ext >&5
2560 ac_cv_c_bigendian
=yes
2567 echo "$ECHO_T""$ac_cv_c_bigendian" 1>&6
2568 if test $ac_cv_c_bigendian = yes; then
2571 cat >>confdefs.h
<<\EOF
2572 #define WORDS_BIGENDIAN 1
2577 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" 1>&6
2578 echo "configure:2318: checking for an ANSI C-conforming const" 1>&5
2579 if test "${ac_cv_c_const+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2582 cat >conftest.
$ac_ext <<EOF
2583 #line 2323 "configure"
2584 #include "confdefs.h"
2589 /* FIXME: Include the comments suggested by Paul. */
2591 /* Ultrix mips cc rejects this. */
2592 typedef int charset[2];
2594 /* SunOS 4.1.1 cc rejects this. */
2595 char const *const *ccp;
2597 /* NEC SVR4.0.2 mips cc rejects this. */
2598 struct point {int x, y;};
2599 static struct point const zero = {0,0};
2600 /* AIX XL C 1.02.0.0 rejects this.
2601 It does not let you subtract one const X* pointer from another in
2602 an arm of an if-expression whose if-part is not a constant
2604 const char *g = "string";
2605 ccp = &g + (g ? g-g : 0);
2606 /* HPUX 7.0 cc rejects these. */
2609 ccp = (char const *const *) p;
2610 { /* SCO 3.2v4 cc rejects this. */
2612 char const *s = 0 ? (char *) 0 : (char const *) 0;
2616 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2618 const int *foo = &x[0];
2621 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2622 typedef const int *iptr;
2626 { /* AIX XL C 1.02.0.0 rejects this saying
2627 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2628 struct s { int j; const int *ap[3]; };
2629 struct s *b; b->j = 5;
2631 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2640 if { (eval echo configure
:2377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2643 echo "configure: failed program was:" >&5
2644 cat conftest.
$ac_ext >&5
2649 echo "$ECHO_T""$ac_cv_c_const" 1>&6
2650 if test $ac_cv_c_const = no
; then
2653 cat >>confdefs.h
<<\EOF
2659 echo $ECHO_N "checking for working volatile... $ECHO_C" 1>&6
2660 echo "configure:2394: checking for working volatile" 1>&5
2661 if test "${ac_cv_c_volatile+set}" = set; then
2662 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2664 cat >conftest.
$ac_ext <<EOF
2665 #line 2399 "configure"
2666 #include "confdefs.h"
2678 if { (eval echo configure
:2410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2679 ac_cv_c_volatile
=yes
2681 echo "configure: failed program was:" >&5
2682 cat conftest.
$ac_ext >&5
2687 echo "$ECHO_T""$ac_cv_c_volatile" 1>&6
2688 if test $ac_cv_c_volatile = no
; then
2691 cat >>confdefs.h
<<\EOF
2697 echo $ECHO_N "checking for inline... $ECHO_C" 1>&6
2698 echo "configure:2427: checking for inline" 1>&5
2699 if test "${ac_cv_c_inline+set}" = set; then
2700 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2703 for ac_kw
in inline __inline__ __inline
; do
2704 cat >conftest.
$ac_ext <<EOF
2705 #line 2434 "configure"
2706 #include "confdefs.h"
2712 } $ac_kw int foo() {
2719 if { (eval echo configure
:2446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2720 ac_cv_c_inline
=$ac_kw; break
2722 echo "configure: failed program was:" >&5
2723 cat conftest.
$ac_ext >&5
2729 echo "$ECHO_T""$ac_cv_c_inline" 1>&6
2730 case "$ac_cv_c_inline" in
2734 cat >>confdefs.h
<<\EOF
2738 *) cat >>confdefs.h
<<EOF
2739 #define inline $ac_cv_c_inline
2744 echo $ECHO_N "checking for long double... $ECHO_C" 1>&6
2745 echo "configure:2469: checking for long double" 1>&5
2746 if test "${ac_cv_c_long_double+set}" = set; then
2747 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2749 if test "$GCC" = yes; then
2750 ac_cv_c_long_double
=yes
2752 if test "$cross_compiling" = yes; then
2753 { echo "configure: error: cannot run test program while cross compiling" 1>&2; exit 1; }
2755 cat >conftest.
$ac_ext <<EOF
2756 #line 2480 "configure"
2757 #include "confdefs.h"
2761 /* The Stardent Vistra knows sizeof(long double), but does not
2763 long double foo = 0.0;
2764 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
2765 exit (sizeof (long double) < sizeof (double));
2768 if { (eval echo configure
:2492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
2769 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
2770 ac_cv_c_long_double
=yes
2772 echo "configure: failed program was:" >&5
2773 cat conftest.
$ac_ext >&5
2774 ac_cv_c_long_double
=no
2781 echo "$ECHO_T""$ac_cv_c_long_double" 1>&6
2782 if test $ac_cv_c_long_double = yes; then
2785 cat >>confdefs.h
<<\EOF
2786 #define HAVE_LONG_DOUBLE 1
2800 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2802 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2803 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" 1>&6
2804 echo "configure:2520: checking for $ac_hdr that defines DIR" 1>&5
2805 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
2806 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2808 cat >conftest.
$ac_ext <<EOF
2809 #line 2525 "configure"
2810 #include "confdefs.h"
2811 #include <sys/types.h>
2822 if { (eval echo configure
:2537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2823 eval "ac_cv_header_dirent_$ac_safe=yes"
2825 echo "configure: failed program was:" >&5
2826 cat conftest.
$ac_ext >&5
2827 eval "ac_cv_header_dirent_$ac_safe=no"
2831 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2832 echo "$ECHO_T""yes" 1>&6
2833 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2834 cat >>confdefs.h
<<EOF
2835 #define $ac_tr_hdr 1
2837 ac_header_dirent
=$ac_hdr; break
2839 echo "$ECHO_T""no" 1>&6
2842 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2843 if test $ac_header_dirent = dirent.h
; then
2846 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" 1>&6
2847 echo "configure:2561: checking for opendir in -ldir" 1>&5
2848 if test "${ac_cv_lib_dir_opendir+set}" = set; then
2849 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2851 ac_save_LIBS
="$LIBS"
2853 cat >conftest.
$ac_ext <<EOF
2854 #line 2568 "configure"
2855 #include "confdefs.h"
2857 /* Override any gcc2 internal prototype to avoid an error. */
2861 /* We use char because int might match the return type of a gcc2
2862 builtin and then its argument prototype would still apply. */
2872 if { (eval echo configure
:2585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2873 ac_cv_lib_dir_opendir
=yes
2875 echo "configure: failed program was:" >&5
2876 cat conftest.
$ac_ext >&5
2877 ac_cv_lib_dir_opendir
=no
2880 LIBS
="$ac_save_LIBS"
2882 echo "$ECHO_T""$ac_cv_lib_dir_opendir" 1>&6
2883 if test $ac_cv_lib_dir_opendir = yes; then
2890 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" 1>&6
2891 echo "configure:2602: checking for opendir in -lx" 1>&5
2892 if test "${ac_cv_lib_x_opendir+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2895 ac_save_LIBS
="$LIBS"
2897 cat >conftest.
$ac_ext <<EOF
2898 #line 2609 "configure"
2899 #include "confdefs.h"
2901 /* Override any gcc2 internal prototype to avoid an error. */
2905 /* We use char because int might match the return type of a gcc2
2906 builtin and then its argument prototype would still apply. */
2916 if { (eval echo configure
:2626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2917 ac_cv_lib_x_opendir
=yes
2919 echo "configure: failed program was:" >&5
2920 cat conftest.
$ac_ext >&5
2921 ac_cv_lib_x_opendir
=no
2924 LIBS
="$ac_save_LIBS"
2926 echo "$ECHO_T""$ac_cv_lib_x_opendir" 1>&6
2927 if test $ac_cv_lib_x_opendir = yes; then
2933 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" 1>&6
2934 echo "configure:2642: checking for struct stat.st_blocks" 1>&5
2935 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2938 cat >conftest.
$ac_ext <<EOF
2939 #line 2647 "configure"
2940 #include "confdefs.h"
2941 #include <sys/types.h>
2942 #include <sys/stat.h>
2953 if { (eval echo configure
:2660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2954 ac_cv_member_struct_stat_st_blocks
=yes
2956 echo "configure: failed program was:" >&5
2957 cat conftest.
$ac_ext >&5
2958 ac_cv_member_struct_stat_st_blocks
=no
2962 echo "$ECHO_T""$ac_cv_member_struct_stat_st_blocks" 1>&6
2963 if test $ac_cv_member_struct_stat_st_blocks = yes; then
2966 cat >>confdefs.h
<<EOF
2967 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
2972 cat >>confdefs.h
<<\EOF
2973 #define HAVE_ST_BLOCKS 1
2977 LIBOBJS
="$LIBOBJS fileblocks.${ac_objext}"
2981 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" 1>&6
2982 echo "configure:2683: checking whether struct tm is in sys/time.h or time.h" 1>&5
2983 if test "${ac_cv_struct_tm+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2986 cat >conftest.
$ac_ext <<EOF
2987 #line 2688 "configure"
2988 #include "confdefs.h"
2989 #include <sys/types.h>
2995 struct tm *tp; tp->tm_sec;
3000 if { (eval echo configure
:2700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3001 ac_cv_struct_tm
=time.h
3003 echo "configure: failed program was:" >&5
3004 cat conftest.
$ac_ext >&5
3005 ac_cv_struct_tm
=sys
/time.h
3009 echo "$ECHO_T""$ac_cv_struct_tm" 1>&6
3010 if test $ac_cv_struct_tm = sys
/time.h
; then
3013 cat >>confdefs.h
<<\EOF
3014 #define TM_IN_SYS_TIME 1
3019 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" 1>&6
3020 echo "configure:2717: checking for struct tm.tm_zone" 1>&5
3021 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3024 cat >conftest.
$ac_ext <<EOF
3025 #line 2722 "configure"
3026 #include "confdefs.h"
3027 #include <sys/types.h>
3028 #include <$ac_cv_struct_tm>
3039 if { (eval echo configure
:2735: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3040 ac_cv_member_struct_tm_tm_zone
=yes
3042 echo "configure: failed program was:" >&5
3043 cat conftest.
$ac_ext >&5
3044 ac_cv_member_struct_tm_tm_zone
=no
3048 echo "$ECHO_T""$ac_cv_member_struct_tm_tm_zone" 1>&6
3049 if test $ac_cv_member_struct_tm_tm_zone = yes; then
3052 cat >>confdefs.h
<<EOF
3053 #define HAVE_STRUCT_TM_TM_ZONE 1
3058 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
3061 cat >>confdefs.h
<<\EOF
3062 #define HAVE_TM_ZONE 1
3066 echo $ECHO_N "checking for tzname... $ECHO_C" 1>&6
3067 echo "configure:2758: checking for tzname" 1>&5
3068 if test "${ac_cv_var_tzname+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3071 cat >conftest.
$ac_ext <<EOF
3072 #line 2763 "configure"
3073 #include "confdefs.h"
3075 #ifndef tzname /* For SGI. */
3076 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3087 if { (eval echo configure
:2777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3088 ac_cv_var_tzname
=yes
3090 echo "configure: failed program was:" >&5
3091 cat conftest.
$ac_ext >&5
3096 echo "$ECHO_T""$ac_cv_var_tzname" 1>&6
3097 if test $ac_cv_var_tzname = yes; then
3100 cat >>confdefs.h
<<\EOF
3101 #define HAVE_TZNAME 1
3107 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" 1>&6
3108 echo "configure:2795: checking whether stat file-mode macros are broken" 1>&5
3109 if test "${ac_cv_header_stat_broken+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3113 cat >conftest.
$ac_ext <<EOF
3114 #line 2800 "configure"
3115 #include "confdefs.h"
3116 #include <sys/types.h>
3117 #include <sys/stat.h>
3119 #if defined(S_ISBLK) && defined(S_IFDIR)
3120 # if S_ISBLK (S_IFDIR)
3125 #if defined(S_ISBLK) && defined(S_IFCHR)
3126 # if S_ISBLK (S_IFCHR)
3131 #if defined(S_ISLNK) && defined(S_IFREG)
3132 # if S_ISLNK (S_IFREG)
3137 #if defined(S_ISSOCK) && defined(S_IFREG)
3138 # if S_ISSOCK (S_IFREG)
3144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3145 egrep "You lose" >/dev
/null
2>&1; then
3146 ac_cv_header_stat_broken
=yes
3148 ac_cv_header_stat_broken
=no
3153 echo "$ECHO_T""$ac_cv_header_stat_broken" 1>&6
3154 if test $ac_cv_header_stat_broken = yes; then
3157 cat >>confdefs.h
<<\EOF
3158 #define STAT_MACROS_BROKEN 1
3163 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" 1>&6
3164 echo "configure:2841: checking for nanoseconds member of struct stat.st_mtim" 1>&5
3165 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3168 ac_save_CPPFLAGS
="$CPPFLAGS"
3169 ac_cv_struct_st_mtim_nsec
=no
3170 # tv_nsec -- the usual case
3171 # _tv_nsec -- Solaris 2.6, if
3172 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
3173 # && !defined __EXTENSIONS__)
3174 # st__tim.tv_nsec -- UnixWare 2.1.2
3175 for ac_val
in tv_nsec _tv_nsec st__tim.tv_nsec
; do
3176 CPPFLAGS
="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
3177 cat >conftest.
$ac_ext <<EOF
3178 #line 2855 "configure"
3179 #include "confdefs.h"
3180 #include <sys/types.h>
3181 #include <sys/stat.h>
3185 struct stat s; s.st_mtim.ST_MTIM_NSEC;
3190 if { (eval echo configure
:2867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3191 ac_cv_struct_st_mtim_nsec
=$ac_val; break
3193 echo "configure: failed program was:" >&5
3194 cat conftest.
$ac_ext >&5
3198 CPPFLAGS
="$ac_save_CPPFLAGS"
3200 echo "$ECHO_T""$ac_cv_struct_st_mtim_nsec" 1>&6
3202 if test $ac_cv_struct_st_mtim_nsec != no
; then
3205 cat >>confdefs.h
<<EOF
3206 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
3211 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" 1>&6
3212 echo "configure:2885: checking for st_dm_mode in struct stat" 1>&5
3213 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3216 cat >conftest.
$ac_ext <<EOF
3217 #line 2890 "configure"
3218 #include "confdefs.h"
3219 #include <sys/types.h>
3220 #include <sys/stat.h>
3224 struct stat s; s.st_dm_mode;
3229 if { (eval echo configure
:2902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3230 ac_cv_struct_st_dm_mode
=yes
3232 echo "configure: failed program was:" >&5
3233 cat conftest.
$ac_ext >&5
3234 ac_cv_struct_st_dm_mode
=no
3238 echo "$ECHO_T""$ac_cv_struct_st_dm_mode" 1>&6
3240 if test $ac_cv_struct_st_dm_mode = yes; then
3243 cat >>confdefs.h
<<EOF
3244 #define HAVE_ST_DM_MODE 1
3249 echo $ECHO_N "checking for struct timespec... $ECHO_C" 1>&6
3250 echo "configure:2919: checking for struct timespec" 1>&5
3251 if test "${fu_cv_sys_struct_timespec+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3254 cat >conftest.
$ac_ext <<EOF
3255 #line 2924 "configure"
3256 #include "confdefs.h"
3258 # if TIME_WITH_SYS_TIME
3259 # include <sys/time.h>
3262 # if HAVE_SYS_TIME_H
3263 # include <sys/time.h>
3272 static struct timespec x; x.tv_sec = x.tv_nsec;
3277 if { (eval echo configure
:2944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3278 fu_cv_sys_struct_timespec
=yes
3280 echo "configure: failed program was:" >&5
3281 cat conftest.
$ac_ext >&5
3282 fu_cv_sys_struct_timespec
=no
3287 echo "$ECHO_T""$fu_cv_sys_struct_timespec" 1>&6
3289 if test $fu_cv_sys_struct_timespec = yes; then
3292 cat >>confdefs.h
<<EOF
3293 #define HAVE_STRUCT_TIMESPEC 1
3298 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" 1>&6
3299 echo "configure:2961: checking type of array argument to getgroups" 1>&5
3300 if test "${ac_cv_type_getgroups+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3303 if test "$cross_compiling" = yes; then
3304 ac_cv_type_getgroups
=cross
3306 cat >conftest.
$ac_ext <<EOF
3307 #line 2969 "configure"
3308 #include "confdefs.h"
3309 /* Thanks to Mike Rendell for this test. */
3310 #include <sys/types.h>
3313 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3319 union { gid_t gval; long lval; } val;
3322 for (i = 0; i < NGID; i++)
3323 gidset[i] = val.gval;
3324 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3326 /* Exit non-zero if getgroups seems to require an array of ints. This
3327 happens when gid_t is short but getgroups modifies an array of ints. */
3328 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3331 if { (eval echo configure
:2992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
3332 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
3333 ac_cv_type_getgroups
=gid_t
3335 echo "configure: failed program was:" >&5
3336 cat conftest.
$ac_ext >&5
3337 ac_cv_type_getgroups
=int
3342 if test $ac_cv_type_getgroups = cross
; then
3344 cat >conftest.
$ac_ext <<EOF
3345 #line 3004 "configure"
3346 #include "confdefs.h"
3350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3351 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3352 ac_cv_type_getgroups
=gid_t
3354 ac_cv_type_getgroups
=int
3360 echo "$ECHO_T""$ac_cv_type_getgroups" 1>&6
3363 cat >>confdefs.h
<<EOF
3364 #define GETGROUPS_T $ac_cv_type_getgroups
3367 echo $ECHO_N "checking for mode_t... $ECHO_C" 1>&6
3368 echo "configure:3023: checking for mode_t" 1>&5
3369 if test "${ac_cv_type_mode_t+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3372 cat >conftest.
$ac_ext <<EOF
3373 #line 3028 "configure"
3374 #include "confdefs.h"
3375 $ac_includes_default
3381 if (sizeof (mode_t))
3387 if { (eval echo configure
:3042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3388 ac_cv_type_mode_t
=yes
3390 echo "configure: failed program was:" >&5
3391 cat conftest.
$ac_ext >&5
3392 ac_cv_type_mode_t
=no
3396 echo "$ECHO_T""$ac_cv_type_mode_t" 1>&6
3397 if test $ac_cv_type_mode_t = yes; then
3402 cat >>confdefs.h
<<EOF
3408 echo $ECHO_N "checking for off_t... $ECHO_C" 1>&6
3409 echo "configure:3061: checking for off_t" 1>&5
3410 if test "${ac_cv_type_off_t+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3413 cat >conftest.
$ac_ext <<EOF
3414 #line 3066 "configure"
3415 #include "confdefs.h"
3416 $ac_includes_default
3428 if { (eval echo configure
:3080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3429 ac_cv_type_off_t
=yes
3431 echo "configure: failed program was:" >&5
3432 cat conftest.
$ac_ext >&5
3437 echo "$ECHO_T""$ac_cv_type_off_t" 1>&6
3438 if test $ac_cv_type_off_t = yes; then
3443 cat >>confdefs.h
<<EOF
3449 echo $ECHO_N "checking for pid_t... $ECHO_C" 1>&6
3450 echo "configure:3099: checking for pid_t" 1>&5
3451 if test "${ac_cv_type_pid_t+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3454 cat >conftest.
$ac_ext <<EOF
3455 #line 3104 "configure"
3456 #include "confdefs.h"
3457 $ac_includes_default
3469 if { (eval echo configure
:3118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3470 ac_cv_type_pid_t
=yes
3472 echo "configure: failed program was:" >&5
3473 cat conftest.
$ac_ext >&5
3478 echo "$ECHO_T""$ac_cv_type_pid_t" 1>&6
3479 if test $ac_cv_type_pid_t = yes; then
3484 cat >>confdefs.h
<<EOF
3490 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" 1>&6
3491 echo "configure:3137: checking return type of signal handlers" 1>&5
3492 if test "${ac_cv_type_signal+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3495 cat >conftest.
$ac_ext <<EOF
3496 #line 3142 "configure"
3497 #include "confdefs.h"
3498 #include <sys/types.h>
3504 extern "C" void (*signal (int, void (*)(int)))(int);
3506 void (*signal ()) ();
3517 if { (eval echo configure
:3162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3518 ac_cv_type_signal
=void
3520 echo "configure: failed program was:" >&5
3521 cat conftest.
$ac_ext >&5
3522 ac_cv_type_signal
=int
3526 echo "$ECHO_T""$ac_cv_type_signal" 1>&6
3529 cat >>confdefs.h
<<EOF
3530 #define RETSIGTYPE $ac_cv_type_signal
3533 echo $ECHO_N "checking for size_t... $ECHO_C" 1>&6
3534 echo "configure:3177: checking for size_t" 1>&5
3535 if test "${ac_cv_type_size_t+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3538 cat >conftest.
$ac_ext <<EOF
3539 #line 3182 "configure"
3540 #include "confdefs.h"
3541 $ac_includes_default
3547 if (sizeof (size_t))
3553 if { (eval echo configure
:3196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3554 ac_cv_type_size_t
=yes
3556 echo "configure: failed program was:" >&5
3557 cat conftest.
$ac_ext >&5
3558 ac_cv_type_size_t
=no
3562 echo "$ECHO_T""$ac_cv_type_size_t" 1>&6
3563 if test $ac_cv_type_size_t = yes; then
3568 cat >>confdefs.h
<<EOF
3569 #define size_t unsigned
3574 if test $jm_ac_cv_header_inttypes_h = no
; then
3576 test $ac_cv_type_unsigned_long_long = yes \
3577 && ac_type
='unsigned long long' \
3578 || ac_type
='unsigned long'
3581 cat >>confdefs.h
<<EOF
3582 #define uintmax_t $ac_type
3587 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" 1>&6
3588 echo "configure:3224: checking whether sys/types.h defines makedev" 1>&5
3589 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3592 cat >conftest.
$ac_ext <<EOF
3593 #line 3229 "configure"
3594 #include "confdefs.h"
3595 #include <sys/types.h>
3600 return makedev(0, 0);
3605 if { (eval echo configure
:3240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3606 ac_cv_header_sys_types_h_makedev
=yes
3608 echo "configure: failed program was:" >&5
3609 cat conftest.
$ac_ext >&5
3610 ac_cv_header_sys_types_h_makedev
=no
3615 echo "$ECHO_T""$ac_cv_header_sys_types_h_makedev" 1>&6
3617 if test $ac_cv_header_sys_types_h_makedev = no
; then
3618 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" 1>&6
3619 echo "configure:3252: checking for sys/mkdev.h" 1>&5
3620 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3624 cat >conftest.
$ac_ext <<EOF
3625 #line 3257 "configure"
3626 #include "confdefs.h"
3627 #include <sys/mkdev.h>
3630 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3631 { (eval echo configure
:3262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3632 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3633 if test -z "$ac_err"; then
3634 ac_cv_header_sys_mkdev_h
=yes
3637 echo "configure: failed program was:" >&5
3638 cat conftest.
$ac_ext >&5
3639 ac_cv_header_sys_mkdev_h
=no
3643 echo "$ECHO_T""$ac_cv_header_sys_mkdev_h" 1>&6
3644 if test $ac_cv_header_sys_mkdev_h = yes; then
3647 cat >>confdefs.h
<<\EOF
3648 #define MAJOR_IN_MKDEV 1
3653 if test $ac_cv_header_sys_mkdev_h = no
; then
3654 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" 1>&6
3655 echo "configure:3283: checking for sys/sysmacros.h" 1>&5
3656 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3660 cat >conftest.
$ac_ext <<EOF
3661 #line 3288 "configure"
3662 #include "confdefs.h"
3663 #include <sys/sysmacros.h>
3666 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3667 { (eval echo configure
:3293: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3668 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3669 if test -z "$ac_err"; then
3670 ac_cv_header_sys_sysmacros_h
=yes
3673 echo "configure: failed program was:" >&5
3674 cat conftest.
$ac_ext >&5
3675 ac_cv_header_sys_sysmacros_h
=no
3679 echo "$ECHO_T""$ac_cv_header_sys_sysmacros_h" 1>&6
3680 if test $ac_cv_header_sys_sysmacros_h = yes; then
3683 cat >>confdefs.h
<<\EOF
3684 #define MAJOR_IN_SYSMACROS 1
3692 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" 1>&6
3693 echo "configure:3315: checking for struct stat.st_blksize" 1>&5
3694 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3697 cat >conftest.
$ac_ext <<EOF
3698 #line 3320 "configure"
3699 #include "confdefs.h"
3700 $ac_includes_default
3701 #include <sys/stat.h>
3712 if { (eval echo configure
:3333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3713 ac_cv_member_struct_stat_st_blksize
=yes
3715 echo "configure: failed program was:" >&5
3716 cat conftest.
$ac_ext >&5
3717 ac_cv_member_struct_stat_st_blksize
=no
3721 echo "$ECHO_T""$ac_cv_member_struct_stat_st_blksize" 1>&6
3722 if test $ac_cv_member_struct_stat_st_blksize = yes; then
3725 cat >>confdefs.h
<<EOF
3726 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
3731 echo $ECHO_N "checking for ino_t... $ECHO_C" 1>&6
3732 echo "configure:3350: checking for ino_t" 1>&5
3733 if test "${ac_cv_type_ino_t+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3736 cat >conftest.
$ac_ext <<EOF
3737 #line 3355 "configure"
3738 #include "confdefs.h"
3739 $ac_includes_default
3751 if { (eval echo configure
:3369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3752 ac_cv_type_ino_t
=yes
3754 echo "configure: failed program was:" >&5
3755 cat conftest.
$ac_ext >&5
3760 echo "$ECHO_T""$ac_cv_type_ino_t" 1>&6
3761 if test $ac_cv_type_ino_t = yes; then
3766 cat >>confdefs.h
<<EOF
3767 #define ino_t unsigned long
3772 echo $ECHO_N "checking for ssize_t... $ECHO_C" 1>&6
3773 echo "configure:3388: checking for ssize_t" 1>&5
3774 if test "${ac_cv_type_ssize_t+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3777 cat >conftest.
$ac_ext <<EOF
3778 #line 3393 "configure"
3779 #include "confdefs.h"
3780 $ac_includes_default
3786 if (sizeof (ssize_t))
3792 if { (eval echo configure
:3407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3793 ac_cv_type_ssize_t
=yes
3795 echo "configure: failed program was:" >&5
3796 cat conftest.
$ac_ext >&5
3797 ac_cv_type_ssize_t
=no
3801 echo "$ECHO_T""$ac_cv_type_ssize_t" 1>&6
3802 if test $ac_cv_type_ssize_t = yes; then
3807 cat >>confdefs.h
<<EOF
3815 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" 1>&6
3816 echo "configure:3427: checking for getpwnam in -lsun" 1>&5
3817 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3820 ac_save_LIBS
="$LIBS"
3822 cat >conftest.
$ac_ext <<EOF
3823 #line 3434 "configure"
3824 #include "confdefs.h"
3826 /* Override any gcc2 internal prototype to avoid an error. */
3830 /* We use char because int might match the return type of a gcc2
3831 builtin and then its argument prototype would still apply. */
3841 if { (eval echo configure
:3451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3842 ac_cv_lib_sun_getpwnam
=yes
3844 echo "configure: failed program was:" >&5
3845 cat conftest.
$ac_ext >&5
3846 ac_cv_lib_sun_getpwnam
=no
3849 LIBS
="$ac_save_LIBS"
3851 echo "$ECHO_T""$ac_cv_lib_sun_getpwnam" 1>&6
3852 if test $ac_cv_lib_sun_getpwnam = yes; then
3853 cat >>confdefs.h
<<EOF
3854 #define HAVE_LIBSUN 1
3871 for ac_header
in fcntl.h string.h limits.h unistd.h errno.h
3873 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
3874 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
3875 echo "configure:3477: checking for $ac_header" 1>&5
3876 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
3877 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3880 cat >conftest.
$ac_ext <<EOF
3881 #line 3482 "configure"
3882 #include "confdefs.h"
3883 #include <$ac_header>
3886 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3887 { (eval echo configure
:3487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3888 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3889 if test -z "$ac_err"; then
3890 eval "$ac_ac_Header=yes"
3893 echo "configure: failed program was:" >&5
3894 cat conftest.
$ac_ext >&5
3895 eval "$ac_ac_Header=no"
3899 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
3900 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3901 cat >>confdefs.h
<<EOF
3902 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
3908 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
3909 echo "configure:3507: checking for ANSI C header files" 1>&5
3910 if test "${ac_cv_header_stdc+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3914 cat >conftest.
$ac_ext <<EOF
3915 #line 3512 "configure"
3916 #include "confdefs.h"
3923 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3924 { (eval echo configure
:3520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3925 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3926 if test -z "$ac_err"; then
3927 ac_cv_header_stdc
=yes
3930 echo "configure: failed program was:" >&5
3931 cat conftest.
$ac_ext >&5
3932 ac_cv_header_stdc
=no
3936 if test $ac_cv_header_stdc = yes; then
3937 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3939 cat >conftest.
$ac_ext <<EOF
3940 #line 3534 "configure"
3941 #include "confdefs.h"
3945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3946 egrep "memchr" >/dev
/null
2>&1; then
3949 ac_cv_header_stdc
=no
3955 if test $ac_cv_header_stdc = yes; then
3956 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3958 cat >conftest.
$ac_ext <<EOF
3959 #line 3549 "configure"
3960 #include "confdefs.h"
3964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3965 egrep "free" >/dev
/null
2>&1; then
3968 ac_cv_header_stdc
=no
3974 if test $ac_cv_header_stdc = yes; then
3975 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3976 if test "$cross_compiling" = yes; then
3979 cat >conftest.
$ac_ext <<EOF
3980 #line 3567 "configure"
3981 #include "confdefs.h"
3983 #if ((' ' & 0x0FF) == 0x020)
3984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3987 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3988 || ('j' <= (c) && (c) <= 'r') \
3989 || ('s' <= (c) && (c) <= 'z'))
3990 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3993 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3998 for (i = 0; i < 256; i++)
3999 if (XOR (islower (i), ISLOWER (i))
4000 || toupper (i) != TOUPPER (i))
4005 if { (eval echo configure
:3591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
4006 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
4009 echo "configure: failed program was:" >&5
4010 cat conftest.
$ac_ext >&5
4011 ac_cv_header_stdc
=no
4018 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
4019 if test $ac_cv_header_stdc = yes; then
4022 cat >>confdefs.h
<<\EOF
4023 #define STDC_HEADERS 1
4028 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" 1>&6
4029 echo "configure:3611: checking whether sys/types.h defines makedev" 1>&5
4030 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4033 cat >conftest.
$ac_ext <<EOF
4034 #line 3616 "configure"
4035 #include "confdefs.h"
4036 #include <sys/types.h>
4041 return makedev(0, 0);
4046 if { (eval echo configure
:3627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4047 ac_cv_header_sys_types_h_makedev
=yes
4049 echo "configure: failed program was:" >&5
4050 cat conftest.
$ac_ext >&5
4051 ac_cv_header_sys_types_h_makedev
=no
4056 echo "$ECHO_T""$ac_cv_header_sys_types_h_makedev" 1>&6
4058 if test $ac_cv_header_sys_types_h_makedev = no
; then
4059 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" 1>&6
4060 echo "configure:3639: checking for sys/mkdev.h" 1>&5
4061 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4065 cat >conftest.
$ac_ext <<EOF
4066 #line 3644 "configure"
4067 #include "confdefs.h"
4068 #include <sys/mkdev.h>
4071 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4072 { (eval echo configure
:3649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4073 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4074 if test -z "$ac_err"; then
4075 ac_cv_header_sys_mkdev_h
=yes
4078 echo "configure: failed program was:" >&5
4079 cat conftest.
$ac_ext >&5
4080 ac_cv_header_sys_mkdev_h
=no
4084 echo "$ECHO_T""$ac_cv_header_sys_mkdev_h" 1>&6
4085 if test $ac_cv_header_sys_mkdev_h = yes; then
4088 cat >>confdefs.h
<<\EOF
4089 #define MAJOR_IN_MKDEV 1
4094 if test $ac_cv_header_sys_mkdev_h = no
; then
4095 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" 1>&6
4096 echo "configure:3670: checking for sys/sysmacros.h" 1>&5
4097 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4101 cat >conftest.
$ac_ext <<EOF
4102 #line 3675 "configure"
4103 #include "confdefs.h"
4104 #include <sys/sysmacros.h>
4107 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4108 { (eval echo configure
:3680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4109 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4110 if test -z "$ac_err"; then
4111 ac_cv_header_sys_sysmacros_h
=yes
4114 echo "configure: failed program was:" >&5
4115 cat conftest.
$ac_ext >&5
4116 ac_cv_header_sys_sysmacros_h
=no
4120 echo "$ECHO_T""$ac_cv_header_sys_sysmacros_h" 1>&6
4121 if test $ac_cv_header_sys_sysmacros_h = yes; then
4124 cat >>confdefs.h
<<\EOF
4125 #define MAJOR_IN_SYSMACROS 1
4142 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4144 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4145 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" 1>&6
4146 echo "configure:3710: checking for $ac_hdr that defines DIR" 1>&5
4147 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4148 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4150 cat >conftest.
$ac_ext <<EOF
4151 #line 3715 "configure"
4152 #include "confdefs.h"
4153 #include <sys/types.h>
4164 if { (eval echo configure
:3727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4165 eval "ac_cv_header_dirent_$ac_safe=yes"
4167 echo "configure: failed program was:" >&5
4168 cat conftest.
$ac_ext >&5
4169 eval "ac_cv_header_dirent_$ac_safe=no"
4173 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4174 echo "$ECHO_T""yes" 1>&6
4175 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4176 cat >>confdefs.h
<<EOF
4177 #define $ac_tr_hdr 1
4179 ac_header_dirent
=$ac_hdr; break
4181 echo "$ECHO_T""no" 1>&6
4184 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4185 if test $ac_header_dirent = dirent.h
; then
4188 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" 1>&6
4189 echo "configure:3751: checking for opendir in -ldir" 1>&5
4190 if test "${ac_cv_lib_dir_opendir+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4193 ac_save_LIBS
="$LIBS"
4195 cat >conftest.
$ac_ext <<EOF
4196 #line 3758 "configure"
4197 #include "confdefs.h"
4199 /* Override any gcc2 internal prototype to avoid an error. */
4203 /* We use char because int might match the return type of a gcc2
4204 builtin and then its argument prototype would still apply. */
4214 if { (eval echo configure
:3775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4215 ac_cv_lib_dir_opendir
=yes
4217 echo "configure: failed program was:" >&5
4218 cat conftest.
$ac_ext >&5
4219 ac_cv_lib_dir_opendir
=no
4222 LIBS
="$ac_save_LIBS"
4224 echo "$ECHO_T""$ac_cv_lib_dir_opendir" 1>&6
4225 if test $ac_cv_lib_dir_opendir = yes; then
4232 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" 1>&6
4233 echo "configure:3792: checking for opendir in -lx" 1>&5
4234 if test "${ac_cv_lib_x_opendir+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4237 ac_save_LIBS
="$LIBS"
4239 cat >conftest.
$ac_ext <<EOF
4240 #line 3799 "configure"
4241 #include "confdefs.h"
4243 /* Override any gcc2 internal prototype to avoid an error. */
4247 /* We use char because int might match the return type of a gcc2
4248 builtin and then its argument prototype would still apply. */
4258 if { (eval echo configure
:3816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4259 ac_cv_lib_x_opendir
=yes
4261 echo "configure: failed program was:" >&5
4262 cat conftest.
$ac_ext >&5
4263 ac_cv_lib_x_opendir
=no
4266 LIBS
="$ac_save_LIBS"
4268 echo "$ECHO_T""$ac_cv_lib_x_opendir" 1>&6
4269 if test $ac_cv_lib_x_opendir = yes; then
4275 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" 1>&6
4276 echo "configure:3832: checking whether stat file-mode macros are broken" 1>&5
4277 if test "${ac_cv_header_stat_broken+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4281 cat >conftest.
$ac_ext <<EOF
4282 #line 3837 "configure"
4283 #include "confdefs.h"
4284 #include <sys/types.h>
4285 #include <sys/stat.h>
4287 #if defined(S_ISBLK) && defined(S_IFDIR)
4288 # if S_ISBLK (S_IFDIR)
4293 #if defined(S_ISBLK) && defined(S_IFCHR)
4294 # if S_ISBLK (S_IFCHR)
4299 #if defined(S_ISLNK) && defined(S_IFREG)
4300 # if S_ISLNK (S_IFREG)
4305 #if defined(S_ISSOCK) && defined(S_IFREG)
4306 # if S_ISSOCK (S_IFREG)
4312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4313 egrep "You lose" >/dev
/null
2>&1; then
4314 ac_cv_header_stat_broken
=yes
4316 ac_cv_header_stat_broken
=no
4321 echo "$ECHO_T""$ac_cv_header_stat_broken" 1>&6
4322 if test $ac_cv_header_stat_broken = yes; then
4325 cat >>confdefs.h
<<\EOF
4326 #define STAT_MACROS_BROKEN 1
4331 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" 1>&6
4332 echo "configure:3878: checking for sys/wait.h that is POSIX.1 compatible" 1>&5
4333 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4336 cat >conftest.
$ac_ext <<EOF
4337 #line 3883 "configure"
4338 #include "confdefs.h"
4339 #include <sys/types.h>
4340 #include <sys/wait.h>
4342 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4345 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4352 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4357 if { (eval echo configure
:3903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4358 ac_cv_header_sys_wait_h
=yes
4360 echo "configure: failed program was:" >&5
4361 cat conftest.
$ac_ext >&5
4362 ac_cv_header_sys_wait_h
=no
4366 echo "$ECHO_T""$ac_cv_header_sys_wait_h" 1>&6
4367 if test $ac_cv_header_sys_wait_h = yes; then
4370 cat >>confdefs.h
<<\EOF
4371 #define HAVE_SYS_WAIT_H 1
4376 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" 1>&6
4377 echo "configure:3920: checking how to get filesystem type" 1>&5
4379 # The order of these tests is important.
4381 cat >conftest.
$ac_ext <<EOF
4382 #line 3924 "configure"
4383 #include "confdefs.h"
4384 #include <sys/statvfs.h>
4385 #include <sys/fstyp.h>
4387 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4388 { (eval echo configure
:3930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4389 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4390 if test -z "$ac_err"; then
4393 cat >>confdefs.h
<<\EOF
4394 #define FSTYPE_STATVFS 1
4399 echo "configure: failed program was:" >&5
4400 cat conftest.
$ac_ext >&5
4404 if test $fstype = no
; then
4406 cat >conftest.
$ac_ext <<EOF
4407 #line 3946 "configure"
4408 #include "confdefs.h"
4409 #include <sys/statfs.h>
4410 #include <sys/fstyp.h>
4412 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4413 { (eval echo configure
:3952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4414 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4415 if test -z "$ac_err"; then
4418 cat >>confdefs.h
<<\EOF
4419 #define FSTYPE_USG_STATFS 1
4424 echo "configure: failed program was:" >&5
4425 cat conftest.
$ac_ext >&5
4430 if test $fstype = no
; then
4432 cat >conftest.
$ac_ext <<EOF
4433 #line 3969 "configure"
4434 #include "confdefs.h"
4435 #include <sys/statfs.h>
4436 #include <sys/vmount.h>
4438 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4439 { (eval echo configure
:3975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4440 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4441 if test -z "$ac_err"; then
4444 cat >>confdefs.h
<<\EOF
4445 #define FSTYPE_AIX_STATFS 1
4450 echo "configure: failed program was:" >&5
4451 cat conftest.
$ac_ext >&5
4456 if test $fstype = no
; then
4458 cat >conftest.
$ac_ext <<EOF
4459 #line 3992 "configure"
4460 #include "confdefs.h"
4463 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4464 { (eval echo configure
:3997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4465 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4466 if test -z "$ac_err"; then
4469 cat >>confdefs.h
<<\EOF
4470 #define FSTYPE_MNTENT 1
4475 echo "configure: failed program was:" >&5
4476 cat conftest.
$ac_ext >&5
4481 if test $fstype = no
; then
4483 cat >conftest.
$ac_ext <<EOF
4484 #line 4014 "configure"
4485 #include "confdefs.h"
4486 #include <sys/mount.h>
4489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4490 egrep "f_type;" >/dev
/null
2>&1; then
4493 cat >>confdefs.h
<<\EOF
4494 #define FSTYPE_STATFS 1
4501 if test $fstype = no
; then
4503 cat >conftest.
$ac_ext <<EOF
4504 #line 4030 "configure"
4505 #include "confdefs.h"
4506 #include <sys/mount.h>
4507 #include <sys/fs_types.h>
4509 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4510 { (eval echo configure
:4036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4511 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4512 if test -z "$ac_err"; then
4515 cat >>confdefs.h
<<\EOF
4516 #define FSTYPE_GETMNT 1
4521 echo "configure: failed program was:" >&5
4522 cat conftest.
$ac_ext >&5
4527 echo "$ECHO_T""$fstype" 1>&6
4529 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" 1>&6
4530 echo "configure:4053: checking for uid_t in sys/types.h" 1>&5
4531 if test "${ac_cv_type_uid_t+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4535 cat >conftest.
$ac_ext <<EOF
4536 #line 4058 "configure"
4537 #include "confdefs.h"
4538 #include <sys/types.h>
4541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4542 egrep "uid_t" >/dev
/null
2>&1; then
4543 ac_cv_type_uid_t
=yes
4550 echo "$ECHO_T""$ac_cv_type_uid_t" 1>&6
4551 if test $ac_cv_type_uid_t = no
; then
4554 cat >>confdefs.h
<<\EOF
4560 cat >>confdefs.h
<<\EOF
4566 echo $ECHO_N "checking for size_t... $ECHO_C" 1>&6
4567 echo "configure:4082: checking for size_t" 1>&5
4568 if test "${ac_cv_type_size_t+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4571 cat >conftest.
$ac_ext <<EOF
4572 #line 4087 "configure"
4573 #include "confdefs.h"
4574 $ac_includes_default
4580 if (sizeof (size_t))
4586 if { (eval echo configure
:4101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4587 ac_cv_type_size_t
=yes
4589 echo "configure: failed program was:" >&5
4590 cat conftest.
$ac_ext >&5
4591 ac_cv_type_size_t
=no
4595 echo "$ECHO_T""$ac_cv_type_size_t" 1>&6
4596 if test $ac_cv_type_size_t = yes; then
4601 cat >>confdefs.h
<<EOF
4602 #define size_t unsigned
4607 echo $ECHO_N "checking for ssize_t... $ECHO_C" 1>&6
4608 echo "configure:4120: checking for ssize_t" 1>&5
4609 if test "${ac_cv_type_ssize_t+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4612 cat >conftest.
$ac_ext <<EOF
4613 #line 4125 "configure"
4614 #include "confdefs.h"
4615 $ac_includes_default
4621 if (sizeof (ssize_t))
4627 if { (eval echo configure
:4139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4628 ac_cv_type_ssize_t
=yes
4630 echo "configure: failed program was:" >&5
4631 cat conftest.
$ac_ext >&5
4632 ac_cv_type_ssize_t
=no
4636 echo "$ECHO_T""$ac_cv_type_ssize_t" 1>&6
4637 if test $ac_cv_type_ssize_t = yes; then
4642 cat >>confdefs.h
<<EOF
4648 echo $ECHO_N "checking for pid_t... $ECHO_C" 1>&6
4649 echo "configure:4158: checking for pid_t" 1>&5
4650 if test "${ac_cv_type_pid_t+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4653 cat >conftest.
$ac_ext <<EOF
4654 #line 4163 "configure"
4655 #include "confdefs.h"
4656 $ac_includes_default
4668 if { (eval echo configure
:4177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4669 ac_cv_type_pid_t
=yes
4671 echo "configure: failed program was:" >&5
4672 cat conftest.
$ac_ext >&5
4677 echo "$ECHO_T""$ac_cv_type_pid_t" 1>&6
4678 if test $ac_cv_type_pid_t = yes; then
4683 cat >>confdefs.h
<<EOF
4689 echo $ECHO_N "checking for ino_t... $ECHO_C" 1>&6
4690 echo "configure:4196: checking for ino_t" 1>&5
4691 if test "${ac_cv_type_ino_t+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4694 cat >conftest.
$ac_ext <<EOF
4695 #line 4201 "configure"
4696 #include "confdefs.h"
4697 $ac_includes_default
4709 if { (eval echo configure
:4215: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4710 ac_cv_type_ino_t
=yes
4712 echo "configure: failed program was:" >&5
4713 cat conftest.
$ac_ext >&5
4718 echo "$ECHO_T""$ac_cv_type_ino_t" 1>&6
4719 if test $ac_cv_type_ino_t = yes; then
4724 cat >>confdefs.h
<<EOF
4725 #define ino_t unsigned long
4730 echo $ECHO_N "checking for dev_t... $ECHO_C" 1>&6
4731 echo "configure:4234: checking for dev_t" 1>&5
4732 if test "${ac_cv_type_dev_t+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4735 cat >conftest.
$ac_ext <<EOF
4736 #line 4239 "configure"
4737 #include "confdefs.h"
4738 $ac_includes_default
4750 if { (eval echo configure
:4253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4751 ac_cv_type_dev_t
=yes
4753 echo "configure: failed program was:" >&5
4754 cat conftest.
$ac_ext >&5
4759 echo "$ECHO_T""$ac_cv_type_dev_t" 1>&6
4760 if test $ac_cv_type_dev_t = yes; then
4765 cat >>confdefs.h
<<EOF
4766 #define dev_t unsigned long
4771 echo $ECHO_N "checking for mode_t... $ECHO_C" 1>&6
4772 echo "configure:4272: checking for mode_t" 1>&5
4773 if test "${ac_cv_type_mode_t+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4776 cat >conftest.
$ac_ext <<EOF
4777 #line 4277 "configure"
4778 #include "confdefs.h"
4779 $ac_includes_default
4785 if (sizeof (mode_t))
4791 if { (eval echo configure
:4291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4792 ac_cv_type_mode_t
=yes
4794 echo "configure: failed program was:" >&5
4795 cat conftest.
$ac_ext >&5
4796 ac_cv_type_mode_t
=no
4800 echo "$ECHO_T""$ac_cv_type_mode_t" 1>&6
4801 if test $ac_cv_type_mode_t = yes; then
4806 cat >>confdefs.h
<<EOF
4812 if test $jm_ac_cv_header_inttypes_h = no
; then
4814 test $ac_cv_type_unsigned_long_long = yes \
4815 && ac_type
='unsigned long long' \
4816 || ac_type
='unsigned long'
4819 cat >>confdefs.h
<<EOF
4820 #define uintmax_t $ac_type
4825 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" 1>&6
4826 echo "configure:4319: checking for struct stat.st_blocks" 1>&5
4827 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4830 cat >conftest.
$ac_ext <<EOF
4831 #line 4324 "configure"
4832 #include "confdefs.h"
4833 #include <sys/types.h>
4834 #include <sys/stat.h>
4845 if { (eval echo configure
:4337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4846 ac_cv_member_struct_stat_st_blocks
=yes
4848 echo "configure: failed program was:" >&5
4849 cat conftest.
$ac_ext >&5
4850 ac_cv_member_struct_stat_st_blocks
=no
4854 echo "$ECHO_T""$ac_cv_member_struct_stat_st_blocks" 1>&6
4855 if test $ac_cv_member_struct_stat_st_blocks = yes; then
4858 cat >>confdefs.h
<<EOF
4859 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
4864 cat >>confdefs.h
<<\EOF
4865 #define HAVE_ST_BLOCKS 1
4869 LIBOBJS
="$LIBOBJS fileblocks.${ac_objext}"
4873 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" 1>&6
4874 echo "configure:4360: checking for struct stat.st_rdev" 1>&5
4875 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4878 cat >conftest.
$ac_ext <<EOF
4879 #line 4365 "configure"
4880 #include "confdefs.h"
4881 $ac_includes_default
4891 if { (eval echo configure
:4377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4892 ac_cv_member_struct_stat_st_rdev
=yes
4894 echo "configure: failed program was:" >&5
4895 cat conftest.
$ac_ext >&5
4896 ac_cv_member_struct_stat_st_rdev
=no
4900 echo "$ECHO_T""$ac_cv_member_struct_stat_st_rdev" 1>&6
4901 if test $ac_cv_member_struct_stat_st_rdev = yes; then
4904 cat >>confdefs.h
<<EOF
4905 #define HAVE_STRUCT_STAT_ST_RDEV 1
4910 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" 1>&6
4911 echo "configure:4394: checking whether struct tm is in sys/time.h or time.h" 1>&5
4912 if test "${ac_cv_struct_tm+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4915 cat >conftest.
$ac_ext <<EOF
4916 #line 4399 "configure"
4917 #include "confdefs.h"
4918 #include <sys/types.h>
4924 struct tm *tp; tp->tm_sec;
4929 if { (eval echo configure
:4411: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4930 ac_cv_struct_tm
=time.h
4932 echo "configure: failed program was:" >&5
4933 cat conftest.
$ac_ext >&5
4934 ac_cv_struct_tm
=sys
/time.h
4938 echo "$ECHO_T""$ac_cv_struct_tm" 1>&6
4939 if test $ac_cv_struct_tm = sys
/time.h
; then
4942 cat >>confdefs.h
<<\EOF
4943 #define TM_IN_SYS_TIME 1
4948 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" 1>&6
4949 echo "configure:4428: checking for struct tm.tm_zone" 1>&5
4950 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4953 cat >conftest.
$ac_ext <<EOF
4954 #line 4433 "configure"
4955 #include "confdefs.h"
4956 #include <sys/types.h>
4957 #include <$ac_cv_struct_tm>
4968 if { (eval echo configure
:4446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4969 ac_cv_member_struct_tm_tm_zone
=yes
4971 echo "configure: failed program was:" >&5
4972 cat conftest.
$ac_ext >&5
4973 ac_cv_member_struct_tm_tm_zone
=no
4977 echo "$ECHO_T""$ac_cv_member_struct_tm_tm_zone" 1>&6
4978 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4981 cat >>confdefs.h
<<EOF
4982 #define HAVE_STRUCT_TM_TM_ZONE 1
4987 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4990 cat >>confdefs.h
<<\EOF
4991 #define HAVE_TM_ZONE 1
4995 echo $ECHO_N "checking for tzname... $ECHO_C" 1>&6
4996 echo "configure:4469: checking for tzname" 1>&5
4997 if test "${ac_cv_var_tzname+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5000 cat >conftest.
$ac_ext <<EOF
5001 #line 4474 "configure"
5002 #include "confdefs.h"
5004 #ifndef tzname /* For SGI. */
5005 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5016 if { (eval echo configure
:4488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5017 ac_cv_var_tzname
=yes
5019 echo "configure: failed program was:" >&5
5020 cat conftest.
$ac_ext >&5
5025 echo "$ECHO_T""$ac_cv_var_tzname" 1>&6
5026 if test $ac_cv_var_tzname = yes; then
5029 cat >>confdefs.h
<<\EOF
5030 #define HAVE_TZNAME 1
5036 echo $ECHO_N "checking for strftime... $ECHO_C" 1>&6
5037 echo "configure:4506: checking for strftime" 1>&5
5038 if test "${ac_cv_func_strftime+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5041 cat >conftest.
$ac_ext <<EOF
5042 #line 4511 "configure"
5043 #include "confdefs.h"
5044 /* System header to define __stub macros and hopefully few prototypes,
5045 which can conflict with char strftime(); below. */
5047 /* Override any gcc2 internal prototype to avoid an error. */
5051 /* We use char because int might match the return type of a gcc2
5052 builtin and then its argument prototype would still apply. */
5060 /* The GNU C library defines this for functions which it implements
5061 to always fail with ENOSYS. Some functions are actually named
5062 something starting with __ and the normal name is an alias. */
5063 #if defined (__stub_strftime) || defined (__stub___strftime)
5073 if { (eval echo configure
:4539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5074 ac_cv_func_strftime
=yes
5076 echo "configure: failed program was:" >&5
5077 cat conftest.
$ac_ext >&5
5078 ac_cv_func_strftime
=no
5082 echo "$ECHO_T""$ac_cv_func_strftime" 1>&6
5083 if test $ac_cv_func_strftime = yes; then
5086 cat >>confdefs.h
<<\EOF
5087 #define HAVE_STRFTIME 1
5091 # strftime is in -lintl on SCO UNIX.
5094 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" 1>&6
5095 echo "configure:4558: checking for strftime in -lintl" 1>&5
5096 if test "${ac_cv_lib_intl_strftime+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5099 ac_save_LIBS
="$LIBS"
5101 cat >conftest.
$ac_ext <<EOF
5102 #line 4565 "configure"
5103 #include "confdefs.h"
5105 /* Override any gcc2 internal prototype to avoid an error. */
5109 /* We use char because int might match the return type of a gcc2
5110 builtin and then its argument prototype would still apply. */
5120 if { (eval echo configure
:4582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5121 ac_cv_lib_intl_strftime
=yes
5123 echo "configure: failed program was:" >&5
5124 cat conftest.
$ac_ext >&5
5125 ac_cv_lib_intl_strftime
=no
5128 LIBS
="$ac_save_LIBS"
5130 echo "$ECHO_T""$ac_cv_lib_intl_strftime" 1>&6
5131 if test $ac_cv_lib_intl_strftime = yes; then
5134 cat >>confdefs.h
<<\EOF
5135 #define HAVE_STRFTIME 1
5163 for ac_func
in memcmp memset stpcpy strdup strftime strspn strstr \
5164 strtol strtoul waitpid
5166 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5167 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
5168 echo "configure:4616: checking for $ac_func" 1>&5
5169 if eval "test \"\${$ac_ac_var+set}\" = set"; then
5170 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5172 cat >conftest.
$ac_ext <<EOF
5173 #line 4621 "configure"
5174 #include "confdefs.h"
5175 /* System header to define __stub macros and hopefully few prototypes,
5176 which can conflict with char $ac_func(); below. */
5178 /* Override any gcc2 internal prototype to avoid an error. */
5182 /* We use char because int might match the return type of a gcc2
5183 builtin and then its argument prototype would still apply. */
5191 /* The GNU C library defines this for functions which it implements
5192 to always fail with ENOSYS. Some functions are actually named
5193 something starting with __ and the normal name is an alias. */
5194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5204 if { (eval echo configure
:4649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5205 eval "$ac_ac_var=yes"
5207 echo "configure: failed program was:" >&5
5208 cat conftest.
$ac_ext >&5
5209 eval "$ac_ac_var=no"
5213 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
5214 if test `eval echo '${'$ac_ac_var'}'` = yes; then
5215 cat >>confdefs.h
<<EOF
5216 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
5220 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
5236 for ac_header
in memory.h string.h
strings.h stdlib.h unistd.h sys
/time.h
5238 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5239 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
5240 echo "configure:4677: checking for $ac_header" 1>&5
5241 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5242 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5245 cat >conftest.
$ac_ext <<EOF
5246 #line 4682 "configure"
5247 #include "confdefs.h"
5248 #include <$ac_header>
5251 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5252 { (eval echo configure
:4687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5253 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5254 if test -z "$ac_err"; then
5255 eval "$ac_ac_Header=yes"
5258 echo "configure: failed program was:" >&5
5259 cat conftest.
$ac_ext >&5
5260 eval "$ac_ac_Header=no"
5264 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
5265 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5266 cat >>confdefs.h
<<EOF
5267 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5277 for ac_header
in sys
/time.h unistd.h
5279 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5280 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
5281 echo "configure:4712: checking for $ac_header" 1>&5
5282 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5283 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5286 cat >conftest.
$ac_ext <<EOF
5287 #line 4717 "configure"
5288 #include "confdefs.h"
5289 #include <$ac_header>
5292 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5293 { (eval echo configure
:4722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5294 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5295 if test -z "$ac_err"; then
5296 eval "$ac_ac_Header=yes"
5299 echo "configure: failed program was:" >&5
5300 cat conftest.
$ac_ext >&5
5301 eval "$ac_ac_Header=no"
5305 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
5306 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5307 cat >>confdefs.h
<<EOF
5308 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5316 for ac_func
in alarm
5318 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5319 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
5320 echo "configure:4746: checking for $ac_func" 1>&5
5321 if eval "test \"\${$ac_ac_var+set}\" = set"; then
5322 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5324 cat >conftest.
$ac_ext <<EOF
5325 #line 4751 "configure"
5326 #include "confdefs.h"
5327 /* System header to define __stub macros and hopefully few prototypes,
5328 which can conflict with char $ac_func(); below. */
5330 /* Override any gcc2 internal prototype to avoid an error. */
5334 /* We use char because int might match the return type of a gcc2
5335 builtin and then its argument prototype would still apply. */
5343 /* The GNU C library defines this for functions which it implements
5344 to always fail with ENOSYS. Some functions are actually named
5345 something starting with __ and the normal name is an alias. */
5346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5356 if { (eval echo configure
:4779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5357 eval "$ac_ac_var=yes"
5359 echo "configure: failed program was:" >&5
5360 cat conftest.
$ac_ext >&5
5361 eval "$ac_ac_var=no"
5365 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
5366 if test `eval echo '${'$ac_ac_var'}'` = yes; then
5367 cat >>confdefs.h
<<EOF
5368 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
5374 echo $ECHO_N "checking for working mktime... $ECHO_C" 1>&6
5375 echo "configure:4796: checking for working mktime" 1>&5
5376 if test "${ac_cv_func_working_mktime+set}" = set; then
5377 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5379 if test "$cross_compiling" = yes; then
5380 ac_cv_func_working_mktime
=no
5382 cat >conftest.
$ac_ext <<EOF
5383 #line 4804 "configure"
5384 #include "confdefs.h"
5385 /* Test program from Paul Eggert and Tony Leneis. */
5386 #if TIME_WITH_SYS_TIME
5387 # include <sys/time.h>
5390 # if HAVE_SYS_TIME_H
5391 # include <sys/time.h>
5398 # include <unistd.h>
5402 # define alarm(X) /* empty */
5405 /* Work around redefinition to rpl_putenv by other config tests. */
5408 static time_t time_t_max;
5410 /* Values we'll use to set the TZ environment variable. */
5411 static const char *const tz_strings[] = {
5412 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
5413 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
5415 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
5417 /* Fail if mktime fails to convert a date in the spring-forward gap.
5418 Based on a problem report from Andreas Jaeger. */
5420 spring_forward_gap ()
5422 /* glibc (up to about 1998-10-07) failed this test) */
5425 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
5426 instead of "TZ=America/Vancouver" in order to detect the bug even
5427 on systems that don't support the Olson extension, or don't have the
5428 full zoneinfo tables installed. */
5429 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
5438 if (mktime (&tm) == (time_t)-1)
5447 if ((lt = localtime (&now)) && mktime (lt) != now)
5449 now = time_t_max - now;
5450 if ((lt = localtime (&now)) && mktime (lt) != now)
5457 /* Based on code from Ariel Faigon. */
5467 if (tm.tm_mon != 2 || tm.tm_mday != 31)
5477 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
5479 if (now != (time_t) -1)
5481 struct tm *lt = localtime (&now);
5483 && lt->tm_year == tm.tm_year
5484 && lt->tm_mon == tm.tm_mon
5485 && lt->tm_mday == tm.tm_mday
5486 && lt->tm_hour == tm.tm_hour
5487 && lt->tm_min == tm.tm_min
5488 && lt->tm_sec == tm.tm_sec
5489 && lt->tm_yday == tm.tm_yday
5490 && lt->tm_wday == tm.tm_wday
5491 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
5492 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
5503 /* This test makes some buggy mktime implementations loop.
5504 Give up after 60 seconds; a mktime slower than that
5505 isn't worth using anyway. */
5508 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
5511 delta = time_t_max / 997; /* a suitable prime number */
5512 for (i = 0; i < N_STRINGS; i++)
5515 putenv (tz_strings[i]);
5517 for (t = 0; t <= time_t_max - delta; t += delta)
5519 mktime_test ((time_t) 60 * 60);
5520 mktime_test ((time_t) 60 * 60 * 24);
5522 for (j = 1; 0 < j; j *= 2)
5524 bigtime_test (j - 1);
5527 spring_forward_gap ();
5531 if { (eval echo configure
:4936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
5532 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
5533 ac_cv_func_working_mktime
=yes
5535 echo "configure: failed program was:" >&5
5536 cat conftest.
$ac_ext >&5
5537 ac_cv_func_working_mktime
=no
5543 echo "$ECHO_T""$ac_cv_func_working_mktime" 1>&6
5544 if test $ac_cv_func_working_mktime = no
; then
5545 LIBOBJS
="$LIBOBJS mktime.${ac_objext}"
5548 echo $ECHO_N "checking for working memcmp... $ECHO_C" 1>&6
5549 echo "configure:4952: checking for working memcmp" 1>&5
5550 if test "${jm_cv_func_memcmp_working+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5553 if test "$cross_compiling" = yes; then
5554 jm_cv_func_memcmp_working
=no
5556 cat >conftest.
$ac_ext <<EOF
5557 #line 4960 "configure"
5558 #include "confdefs.h"
5562 /* Some versions of memcmp are not 8-bit clean. */
5563 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5564 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5567 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5568 or more and with at least one buffer not starting on a 4-byte boundary.
5569 William Lewis provided this test program. */
5574 for (i = 0; i < 4; i++)
5578 strcpy (a, "--------01111111");
5579 strcpy (b, "--------10000000");
5580 if (memcmp (a, b, 16) >= 0)
5587 if { (eval echo configure
:4989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
5588 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
5589 jm_cv_func_memcmp_working
=yes
5591 echo "configure: failed program was:" >&5
5592 cat conftest.
$ac_ext >&5
5593 jm_cv_func_memcmp_working
=no
5599 echo "$ECHO_T""$jm_cv_func_memcmp_working" 1>&6
5600 test $jm_cv_func_memcmp_working = no \
5601 && LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
5603 echo $ECHO_N "checking whether we are using the GNU C Library... $ECHO_C" 1>&6
5604 echo "configure:5004: checking whether we are using the GNU C Library" 1>&5
5605 if test "${ac_cv_gnu_library+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5609 cat >conftest.
$ac_ext <<EOF
5610 #line 5009 "configure"
5611 #include "confdefs.h"
5613 #include <features.h>
5614 #ifdef __GNU_LIBRARY__
5615 Thanks for using GNU
5619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5620 egrep "Thanks for using GNU" >/dev
/null
2>&1; then
5621 ac_cv_gnu_library
=yes
5623 ac_cv_gnu_library
=no
5628 echo "$ECHO_T""$ac_cv_gnu_library" 1>&6
5629 echo $ECHO_N "checking for version 2 of the GNU C Library... $ECHO_C" 1>&6
5630 echo "configure:5027: checking for version 2 of the GNU C Library" 1>&5
5631 if test "${ac_cv_glibc+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5635 cat >conftest.
$ac_ext <<EOF
5636 #line 5032 "configure"
5637 #include "confdefs.h"
5639 #include <features.h>
5641 Thanks for using GNU too
5645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5646 egrep "Thanks for using GNU too" >/dev
/null
2>&1; then
5654 echo "$ECHO_T""$ac_cv_glibc" 1>&6
5656 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" 1>&6
5657 echo "configure:5050: checking whether to enable assertions" 1>&5
5658 # Check whether --enable-assert or --disable-assert was given.
5659 if test "${enable_assert+set}" = set; then
5660 enableval
="$enable_assert"
5661 echo "$ECHO_T""no" 1>&6
5664 cat >>confdefs.h
<<\EOF
5669 echo "$ECHO_T""yes" 1>&6
5673 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" 1>&6
5674 echo "configure:5063: checking for d_type member in directory struct" 1>&5
5675 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5678 cat >conftest.
$ac_ext <<EOF
5679 #line 5068 "configure"
5680 #include "confdefs.h"
5682 #include <sys/types.h>
5683 #ifdef HAVE_DIRENT_H
5684 # include <dirent.h>
5685 #else /* not HAVE_DIRENT_H */
5686 # define dirent direct
5687 # ifdef HAVE_SYS_NDIR_H
5688 # include <sys/ndir.h>
5689 # endif /* HAVE_SYS_NDIR_H */
5690 # ifdef HAVE_SYS_DIR_H
5691 # include <sys/dir.h>
5692 # endif /* HAVE_SYS_DIR_H */
5695 # endif /* HAVE_NDIR_H */
5696 #endif /* HAVE_DIRENT_H */
5701 struct dirent dp; dp.d_type = 0;
5706 if { (eval echo configure
:5093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5707 jm_cv_struct_dirent_d_type
=yes
5709 echo "configure: failed program was:" >&5
5710 cat conftest.
$ac_ext >&5
5711 jm_cv_struct_dirent_d_type
=no
5716 echo "$ECHO_T""$jm_cv_struct_dirent_d_type" 1>&6
5717 if test $jm_cv_struct_dirent_d_type = yes; then
5720 cat >>confdefs.h
<<\EOF
5721 #define D_TYPE_IN_DIRENT 1
5726 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" 1>&6
5727 echo "configure:5110: checking for d_ino member in directory struct" 1>&5
5728 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5731 cat >conftest.
$ac_ext <<EOF
5732 #line 5115 "configure"
5733 #include "confdefs.h"
5735 #include <sys/types.h>
5736 #ifdef HAVE_DIRENT_H
5737 # include <dirent.h>
5738 #else /* not HAVE_DIRENT_H */
5739 # define dirent direct
5740 # ifdef HAVE_SYS_NDIR_H
5741 # include <sys/ndir.h>
5742 # endif /* HAVE_SYS_NDIR_H */
5743 # ifdef HAVE_SYS_DIR_H
5744 # include <sys/dir.h>
5745 # endif /* HAVE_SYS_DIR_H */
5748 # endif /* HAVE_NDIR_H */
5749 #endif /* HAVE_DIRENT_H */
5754 struct dirent dp; dp.d_ino = 0;
5759 if { (eval echo configure
:5140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5760 jm_cv_struct_dirent_d_ino
=yes
5762 echo "configure: failed program was:" >&5
5763 cat conftest.
$ac_ext >&5
5764 jm_cv_struct_dirent_d_ino
=no
5769 echo "$ECHO_T""$jm_cv_struct_dirent_d_ino" 1>&6
5770 if test $jm_cv_struct_dirent_d_ino = yes; then
5773 cat >>confdefs.h
<<\EOF
5774 #define D_INO_IN_DIRENT 1
5782 # if !STDC_HEADERS && HAVE_MEMORY_H
5783 # include <memory.h>
5785 # include <string.h>
5788 # include <strings.h>
5792 # include <stdlib.h>
5795 # include <unistd.h>
5798 #include <sys/types.h>
5799 #if TIME_WITH_SYS_TIME
5800 # include <sys/time.h>
5803 # if HAVE_SYS_TIME_H
5804 # include <sys/time.h>
5811 echo $ECHO_N "checking whether free is declared... $ECHO_C" 1>&6
5812 echo "configure:5187: checking whether free is declared" 1>&5
5813 if test "${ac_cv_have_decl_free+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5816 cat >conftest.
$ac_ext <<EOF
5817 #line 5192 "configure"
5818 #include "confdefs.h"
5825 char *p = (char *) free;
5832 if { (eval echo configure
:5205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5833 ac_cv_have_decl_free
=yes
5835 echo "configure: failed program was:" >&5
5836 cat conftest.
$ac_ext >&5
5837 ac_cv_have_decl_free
=no
5841 echo "$ECHO_T""$ac_cv_have_decl_free" 1>&6
5842 if test $ac_cv_have_decl_free = yes; then
5845 cat >>confdefs.h
<<EOF
5846 #define HAVE_DECL_FREE 1
5850 cat >>confdefs.h
<<EOF
5851 #define HAVE_DECL_FREE 0
5855 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" 1>&6
5856 echo "configure:5226: checking whether getenv is declared" 1>&5
5857 if test "${ac_cv_have_decl_getenv+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5860 cat >conftest.
$ac_ext <<EOF
5861 #line 5231 "configure"
5862 #include "confdefs.h"
5869 char *p = (char *) getenv;
5876 if { (eval echo configure
:5244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5877 ac_cv_have_decl_getenv
=yes
5879 echo "configure: failed program was:" >&5
5880 cat conftest.
$ac_ext >&5
5881 ac_cv_have_decl_getenv
=no
5885 echo "$ECHO_T""$ac_cv_have_decl_getenv" 1>&6
5886 if test $ac_cv_have_decl_getenv = yes; then
5889 cat >>confdefs.h
<<EOF
5890 #define HAVE_DECL_GETENV 1
5894 cat >>confdefs.h
<<EOF
5895 #define HAVE_DECL_GETENV 0
5899 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" 1>&6
5900 echo "configure:5265: checking whether geteuid is declared" 1>&5
5901 if test "${ac_cv_have_decl_geteuid+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5904 cat >conftest.
$ac_ext <<EOF
5905 #line 5270 "configure"
5906 #include "confdefs.h"
5913 char *p = (char *) geteuid;
5920 if { (eval echo configure
:5283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5921 ac_cv_have_decl_geteuid
=yes
5923 echo "configure: failed program was:" >&5
5924 cat conftest.
$ac_ext >&5
5925 ac_cv_have_decl_geteuid
=no
5929 echo "$ECHO_T""$ac_cv_have_decl_geteuid" 1>&6
5930 if test $ac_cv_have_decl_geteuid = yes; then
5933 cat >>confdefs.h
<<EOF
5934 #define HAVE_DECL_GETEUID 1
5938 cat >>confdefs.h
<<EOF
5939 #define HAVE_DECL_GETEUID 0
5943 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" 1>&6
5944 echo "configure:5304: checking whether getlogin is declared" 1>&5
5945 if test "${ac_cv_have_decl_getlogin+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5948 cat >conftest.
$ac_ext <<EOF
5949 #line 5309 "configure"
5950 #include "confdefs.h"
5957 char *p = (char *) getlogin;
5964 if { (eval echo configure
:5322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5965 ac_cv_have_decl_getlogin
=yes
5967 echo "configure: failed program was:" >&5
5968 cat conftest.
$ac_ext >&5
5969 ac_cv_have_decl_getlogin
=no
5973 echo "$ECHO_T""$ac_cv_have_decl_getlogin" 1>&6
5974 if test $ac_cv_have_decl_getlogin = yes; then
5977 cat >>confdefs.h
<<EOF
5978 #define HAVE_DECL_GETLOGIN 1
5982 cat >>confdefs.h
<<EOF
5983 #define HAVE_DECL_GETLOGIN 0
5987 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" 1>&6
5988 echo "configure:5343: checking whether lseek is declared" 1>&5
5989 if test "${ac_cv_have_decl_lseek+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5992 cat >conftest.
$ac_ext <<EOF
5993 #line 5348 "configure"
5994 #include "confdefs.h"
6001 char *p = (char *) lseek;
6008 if { (eval echo configure
:5361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6009 ac_cv_have_decl_lseek
=yes
6011 echo "configure: failed program was:" >&5
6012 cat conftest.
$ac_ext >&5
6013 ac_cv_have_decl_lseek
=no
6017 echo "$ECHO_T""$ac_cv_have_decl_lseek" 1>&6
6018 if test $ac_cv_have_decl_lseek = yes; then
6021 cat >>confdefs.h
<<EOF
6022 #define HAVE_DECL_LSEEK 1
6026 cat >>confdefs.h
<<EOF
6027 #define HAVE_DECL_LSEEK 0
6031 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" 1>&6
6032 echo "configure:5382: checking whether malloc is declared" 1>&5
6033 if test "${ac_cv_have_decl_malloc+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6036 cat >conftest.
$ac_ext <<EOF
6037 #line 5387 "configure"
6038 #include "confdefs.h"
6045 char *p = (char *) malloc;
6052 if { (eval echo configure
:5400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6053 ac_cv_have_decl_malloc
=yes
6055 echo "configure: failed program was:" >&5
6056 cat conftest.
$ac_ext >&5
6057 ac_cv_have_decl_malloc
=no
6061 echo "$ECHO_T""$ac_cv_have_decl_malloc" 1>&6
6062 if test $ac_cv_have_decl_malloc = yes; then
6065 cat >>confdefs.h
<<EOF
6066 #define HAVE_DECL_MALLOC 1
6070 cat >>confdefs.h
<<EOF
6071 #define HAVE_DECL_MALLOC 0
6075 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" 1>&6
6076 echo "configure:5421: checking whether realloc is declared" 1>&5
6077 if test "${ac_cv_have_decl_realloc+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6080 cat >conftest.
$ac_ext <<EOF
6081 #line 5426 "configure"
6082 #include "confdefs.h"
6089 char *p = (char *) realloc;
6096 if { (eval echo configure
:5439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6097 ac_cv_have_decl_realloc
=yes
6099 echo "configure: failed program was:" >&5
6100 cat conftest.
$ac_ext >&5
6101 ac_cv_have_decl_realloc
=no
6105 echo "$ECHO_T""$ac_cv_have_decl_realloc" 1>&6
6106 if test $ac_cv_have_decl_realloc = yes; then
6109 cat >>confdefs.h
<<EOF
6110 #define HAVE_DECL_REALLOC 1
6114 cat >>confdefs.h
<<EOF
6115 #define HAVE_DECL_REALLOC 0
6119 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" 1>&6
6120 echo "configure:5460: checking whether stpcpy is declared" 1>&5
6121 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6124 cat >conftest.
$ac_ext <<EOF
6125 #line 5465 "configure"
6126 #include "confdefs.h"
6133 char *p = (char *) stpcpy;
6140 if { (eval echo configure
:5478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6141 ac_cv_have_decl_stpcpy
=yes
6143 echo "configure: failed program was:" >&5
6144 cat conftest.
$ac_ext >&5
6145 ac_cv_have_decl_stpcpy
=no
6149 echo "$ECHO_T""$ac_cv_have_decl_stpcpy" 1>&6
6150 if test $ac_cv_have_decl_stpcpy = yes; then
6153 cat >>confdefs.h
<<EOF
6154 #define HAVE_DECL_STPCPY 1
6158 cat >>confdefs.h
<<EOF
6159 #define HAVE_DECL_STPCPY 0
6163 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" 1>&6
6164 echo "configure:5499: checking whether strstr is declared" 1>&5
6165 if test "${ac_cv_have_decl_strstr+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6168 cat >conftest.
$ac_ext <<EOF
6169 #line 5504 "configure"
6170 #include "confdefs.h"
6177 char *p = (char *) strstr;
6184 if { (eval echo configure
:5517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6185 ac_cv_have_decl_strstr
=yes
6187 echo "configure: failed program was:" >&5
6188 cat conftest.
$ac_ext >&5
6189 ac_cv_have_decl_strstr
=no
6193 echo "$ECHO_T""$ac_cv_have_decl_strstr" 1>&6
6194 if test $ac_cv_have_decl_strstr = yes; then
6197 cat >>confdefs.h
<<EOF
6198 #define HAVE_DECL_STRSTR 1
6202 cat >>confdefs.h
<<EOF
6203 #define HAVE_DECL_STRSTR 0
6207 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" 1>&6
6208 echo "configure:5538: checking whether strtoul is declared" 1>&5
6209 if test "${ac_cv_have_decl_strtoul+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6212 cat >conftest.
$ac_ext <<EOF
6213 #line 5543 "configure"
6214 #include "confdefs.h"
6221 char *p = (char *) strtoul;
6228 if { (eval echo configure
:5556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6229 ac_cv_have_decl_strtoul
=yes
6231 echo "configure: failed program was:" >&5
6232 cat conftest.
$ac_ext >&5
6233 ac_cv_have_decl_strtoul
=no
6237 echo "$ECHO_T""$ac_cv_have_decl_strtoul" 1>&6
6238 if test $ac_cv_have_decl_strtoul = yes; then
6241 cat >>confdefs.h
<<EOF
6242 #define HAVE_DECL_STRTOUL 1
6246 cat >>confdefs.h
<<EOF
6247 #define HAVE_DECL_STRTOUL 0
6251 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" 1>&6
6252 echo "configure:5577: checking whether strtoull is declared" 1>&5
6253 if test "${ac_cv_have_decl_strtoull+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6256 cat >conftest.
$ac_ext <<EOF
6257 #line 5582 "configure"
6258 #include "confdefs.h"
6265 char *p = (char *) strtoull;
6272 if { (eval echo configure
:5595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6273 ac_cv_have_decl_strtoull
=yes
6275 echo "configure: failed program was:" >&5
6276 cat conftest.
$ac_ext >&5
6277 ac_cv_have_decl_strtoull
=no
6281 echo "$ECHO_T""$ac_cv_have_decl_strtoull" 1>&6
6282 if test $ac_cv_have_decl_strtoull = yes; then
6285 cat >>confdefs.h
<<EOF
6286 #define HAVE_DECL_STRTOULL 1
6290 cat >>confdefs.h
<<EOF
6291 #define HAVE_DECL_STRTOULL 0
6295 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" 1>&6
6296 echo "configure:5616: checking whether ttyname is declared" 1>&5
6297 if test "${ac_cv_have_decl_ttyname+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6300 cat >conftest.
$ac_ext <<EOF
6301 #line 5621 "configure"
6302 #include "confdefs.h"
6309 char *p = (char *) ttyname;
6316 if { (eval echo configure
:5634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6317 ac_cv_have_decl_ttyname
=yes
6319 echo "configure: failed program was:" >&5
6320 cat conftest.
$ac_ext >&5
6321 ac_cv_have_decl_ttyname
=no
6325 echo "$ECHO_T""$ac_cv_have_decl_ttyname" 1>&6
6326 if test $ac_cv_have_decl_ttyname = yes; then
6329 cat >>confdefs.h
<<EOF
6330 #define HAVE_DECL_TTYNAME 1
6334 cat >>confdefs.h
<<EOF
6335 #define HAVE_DECL_TTYNAME 0
6340 echo $ECHO_N "checking for long file names... $ECHO_C" 1>&6
6341 echo "configure:5655: checking for long file names" 1>&5
6342 if test "${ac_cv_sys_long_file_names+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6345 ac_cv_sys_long_file_names
=yes
6346 # Test for long file names in all the places we know might matter:
6347 # . the current directory, where building will happen
6348 # $prefix/lib where we will be installing things
6349 # $exec_prefix/lib likewise
6350 # eval it to expand exec_prefix.
6351 # $TMPDIR if set, where it might want to write temporary files
6352 # if $TMPDIR is not set:
6353 # /tmp where it might want to write temporary files
6356 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6359 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
6361 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6362 test -d $ac_dir ||
continue
6363 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
6364 ac_xdir
=$ac_dir/cf$$
6365 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
6366 ac_tf1
=$ac_xdir/conftest9012345
6367 ac_tf2
=$ac_xdir/conftest9012346
6368 (echo 1 >$ac_tf1) 2>/dev
/null
6369 (echo 2 >$ac_tf2) 2>/dev
/null
6370 ac_val
=`cat $ac_tf1 2>/dev/null`
6371 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
6372 ac_cv_sys_long_file_names
=no
6373 rm -rf $ac_xdir 2>/dev
/null
6376 rm -rf $ac_xdir 2>/dev
/null
6379 echo "$ECHO_T""$ac_cv_sys_long_file_names" 1>&6
6380 if test $ac_cv_sys_long_file_names = yes; then
6383 cat >>confdefs.h
<<\EOF
6384 #define HAVE_LONG_FILE_NAMES 1
6391 for ac_func
in pathconf
6393 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6394 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
6395 echo "configure:5705: checking for $ac_func" 1>&5
6396 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6397 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6399 cat >conftest.
$ac_ext <<EOF
6400 #line 5710 "configure"
6401 #include "confdefs.h"
6402 /* System header to define __stub macros and hopefully few prototypes,
6403 which can conflict with char $ac_func(); below. */
6405 /* Override any gcc2 internal prototype to avoid an error. */
6409 /* We use char because int might match the return type of a gcc2
6410 builtin and then its argument prototype would still apply. */
6418 /* The GNU C library defines this for functions which it implements
6419 to always fail with ENOSYS. Some functions are actually named
6420 something starting with __ and the normal name is an alias. */
6421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6431 if { (eval echo configure
:5738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6432 eval "$ac_ac_var=yes"
6434 echo "configure: failed program was:" >&5
6435 cat conftest.
$ac_ext >&5
6436 eval "$ac_ac_var=no"
6440 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
6441 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6442 cat >>confdefs.h
<<EOF
6443 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6455 for ac_header
in limits.h string.h unistd.h
6457 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
6458 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
6459 echo "configure:5761: checking for $ac_header" 1>&5
6460 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
6461 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6464 cat >conftest.
$ac_ext <<EOF
6465 #line 5766 "configure"
6466 #include "confdefs.h"
6467 #include <$ac_header>
6470 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6471 { (eval echo configure
:5771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6472 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6473 if test -z "$ac_err"; then
6474 eval "$ac_ac_Header=yes"
6477 echo "configure: failed program was:" >&5
6478 cat conftest.
$ac_ext >&5
6479 eval "$ac_ac_Header=no"
6483 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
6484 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
6485 cat >>confdefs.h
<<EOF
6486 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
6492 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" 1>&6
6493 echo "configure:5791: checking for library containing gethostbyname" 1>&5
6494 if test "${ac_cv_search_gethostbyname+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6497 ac_func_search_save_LIBS
="$LIBS"
6498 ac_cv_search_gethostbyname
="no"
6499 cat >conftest.
$ac_ext <<EOF
6500 #line 5798 "configure"
6501 #include "confdefs.h"
6503 /* Override any gcc2 internal prototype to avoid an error. */
6507 /* We use char because int might match the return type of a gcc2
6508 builtin and then its argument prototype would still apply. */
6509 char gethostbyname ();
6518 if { (eval echo configure
:5815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6519 ac_cv_search_gethostbyname
="none required"
6521 echo "configure: failed program was:" >&5
6522 cat conftest.
$ac_ext >&5
6525 test "$ac_cv_search_gethostbyname" = "no" && for ac_lib
in inet nsl
; do
6526 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6527 cat >conftest.
$ac_ext <<EOF
6528 #line 5825 "configure"
6529 #include "confdefs.h"
6531 /* Override any gcc2 internal prototype to avoid an error. */
6535 /* We use char because int might match the return type of a gcc2
6536 builtin and then its argument prototype would still apply. */
6537 char gethostbyname ();
6546 if { (eval echo configure
:5842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6547 ac_cv_search_gethostbyname
="-l$ac_lib"
6550 echo "configure: failed program was:" >&5
6551 cat conftest.
$ac_ext >&5
6555 LIBS
="$ac_func_search_save_LIBS"
6557 echo "$ECHO_T""$ac_cv_search_gethostbyname" 1>&6
6558 if test "$ac_cv_search_gethostbyname" != "no"; then
6559 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
6569 for ac_func
in gethostbyname gethostbyaddr inet_ntoa
6571 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6572 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
6573 echo "configure:5864: checking for $ac_func" 1>&5
6574 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6575 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6577 cat >conftest.
$ac_ext <<EOF
6578 #line 5869 "configure"
6579 #include "confdefs.h"
6580 /* System header to define __stub macros and hopefully few prototypes,
6581 which can conflict with char $ac_func(); below. */
6583 /* Override any gcc2 internal prototype to avoid an error. */
6587 /* We use char because int might match the return type of a gcc2
6588 builtin and then its argument prototype would still apply. */
6596 /* The GNU C library defines this for functions which it implements
6597 to always fail with ENOSYS. Some functions are actually named
6598 something starting with __ and the normal name is an alias. */
6599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6609 if { (eval echo configure
:5897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6610 eval "$ac_ac_var=yes"
6612 echo "configure: failed program was:" >&5
6613 cat conftest.
$ac_ext >&5
6614 eval "$ac_ac_var=no"
6618 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
6619 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6620 cat >>confdefs.h
<<EOF
6621 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6633 for ac_func
in gethostbyname gethostbyaddr inet_ntoa
6635 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6636 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
6637 echo "configure:5920: checking for $ac_func" 1>&5
6638 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6639 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6641 cat >conftest.
$ac_ext <<EOF
6642 #line 5925 "configure"
6643 #include "confdefs.h"
6644 /* System header to define __stub macros and hopefully few prototypes,
6645 which can conflict with char $ac_func(); below. */
6647 /* Override any gcc2 internal prototype to avoid an error. */
6651 /* We use char because int might match the return type of a gcc2
6652 builtin and then its argument prototype would still apply. */
6660 /* The GNU C library defines this for functions which it implements
6661 to always fail with ENOSYS. Some functions are actually named
6662 something starting with __ and the normal name is an alias. */
6663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6673 if { (eval echo configure
:5953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6674 eval "$ac_ac_var=yes"
6676 echo "configure: failed program was:" >&5
6677 cat conftest.
$ac_ext >&5
6678 eval "$ac_ac_var=no"
6682 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
6683 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6684 cat >>confdefs.h
<<EOF
6685 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6703 for ac_header
in unistd.h string.h netdb.h sys
/socket.h \
6704 netinet
/in.h arpa
/inet.h
6706 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
6707 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
6708 echo "configure:5980: checking for $ac_header" 1>&5
6709 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
6710 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6713 cat >conftest.
$ac_ext <<EOF
6714 #line 5985 "configure"
6715 #include "confdefs.h"
6716 #include <$ac_header>
6719 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6720 { (eval echo configure
:5990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6721 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6722 if test -z "$ac_err"; then
6723 eval "$ac_ac_Header=yes"
6726 echo "configure: failed program was:" >&5
6727 cat conftest.
$ac_ext >&5
6728 eval "$ac_ac_Header=no"
6732 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
6733 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
6734 cat >>confdefs.h
<<EOF
6735 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
6749 for ac_func
in strerror strerror_r vprintf doprnt
6751 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6752 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
6753 echo "configure:6017: checking for $ac_func" 1>&5
6754 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6755 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6757 cat >conftest.
$ac_ext <<EOF
6758 #line 6022 "configure"
6759 #include "confdefs.h"
6760 /* System header to define __stub macros and hopefully few prototypes,
6761 which can conflict with char $ac_func(); below. */
6763 /* Override any gcc2 internal prototype to avoid an error. */
6767 /* We use char because int might match the return type of a gcc2
6768 builtin and then its argument prototype would still apply. */
6776 /* The GNU C library defines this for functions which it implements
6777 to always fail with ENOSYS. Some functions are actually named
6778 something starting with __ and the normal name is an alias. */
6779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6789 if { (eval echo configure
:6050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6790 eval "$ac_ac_var=yes"
6792 echo "configure: failed program was:" >&5
6793 cat conftest.
$ac_ext >&5
6794 eval "$ac_ac_var=no"
6798 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
6799 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6800 cat >>confdefs.h
<<EOF
6801 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6807 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
6808 echo "configure:6067: checking for ANSI C header files" 1>&5
6809 if test "${ac_cv_header_stdc+set}" = set; then
6810 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6813 cat >conftest.
$ac_ext <<EOF
6814 #line 6072 "configure"
6815 #include "confdefs.h"
6822 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6823 { (eval echo configure
:6080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6824 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6825 if test -z "$ac_err"; then
6826 ac_cv_header_stdc
=yes
6829 echo "configure: failed program was:" >&5
6830 cat conftest.
$ac_ext >&5
6831 ac_cv_header_stdc
=no
6835 if test $ac_cv_header_stdc = yes; then
6836 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6838 cat >conftest.
$ac_ext <<EOF
6839 #line 6094 "configure"
6840 #include "confdefs.h"
6844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6845 egrep "memchr" >/dev
/null
2>&1; then
6848 ac_cv_header_stdc
=no
6854 if test $ac_cv_header_stdc = yes; then
6855 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6857 cat >conftest.
$ac_ext <<EOF
6858 #line 6109 "configure"
6859 #include "confdefs.h"
6863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6864 egrep "free" >/dev
/null
2>&1; then
6867 ac_cv_header_stdc
=no
6873 if test $ac_cv_header_stdc = yes; then
6874 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6875 if test "$cross_compiling" = yes; then
6878 cat >conftest.
$ac_ext <<EOF
6879 #line 6127 "configure"
6880 #include "confdefs.h"
6882 #if ((' ' & 0x0FF) == 0x020)
6883 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6884 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6886 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6887 || ('j' <= (c) && (c) <= 'r') \
6888 || ('s' <= (c) && (c) <= 'z'))
6889 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6892 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6897 for (i = 0; i < 256; i++)
6898 if (XOR (islower (i), ISLOWER (i))
6899 || toupper (i) != TOUPPER (i))
6904 if { (eval echo configure
:6151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
6905 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
6908 echo "configure: failed program was:" >&5
6909 cat conftest.
$ac_ext >&5
6910 ac_cv_header_stdc
=no
6917 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
6918 if test $ac_cv_header_stdc = yes; then
6921 cat >>confdefs.h
<<\EOF
6922 #define STDC_HEADERS 1
6933 for ac_func
in isascii iswprint mbrtowc
6935 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6936 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
6937 echo "configure:6177: checking for $ac_func" 1>&5
6938 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6939 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6941 cat >conftest.
$ac_ext <<EOF
6942 #line 6182 "configure"
6943 #include "confdefs.h"
6944 /* System header to define __stub macros and hopefully few prototypes,
6945 which can conflict with char $ac_func(); below. */
6947 /* Override any gcc2 internal prototype to avoid an error. */
6951 /* We use char because int might match the return type of a gcc2
6952 builtin and then its argument prototype would still apply. */
6960 /* The GNU C library defines this for functions which it implements
6961 to always fail with ENOSYS. Some functions are actually named
6962 something starting with __ and the normal name is an alias. */
6963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6973 if { (eval echo configure
:6210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6974 eval "$ac_ac_var=yes"
6976 echo "configure: failed program was:" >&5
6977 cat conftest.
$ac_ext >&5
6978 eval "$ac_ac_var=no"
6982 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
6983 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6984 cat >>confdefs.h
<<EOF
6985 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
7001 for ac_header
in limits.h stdlib.h string.h wchar.h wctype.h
7003 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
7004 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
7005 echo "configure:6235: checking for $ac_header" 1>&5
7006 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
7007 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7010 cat >conftest.
$ac_ext <<EOF
7011 #line 6240 "configure"
7012 #include "confdefs.h"
7013 #include <$ac_header>
7016 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7017 { (eval echo configure
:6245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7018 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7019 if test -z "$ac_err"; then
7020 eval "$ac_ac_Header=yes"
7023 echo "configure: failed program was:" >&5
7024 cat conftest.
$ac_ext >&5
7025 eval "$ac_ac_Header=no"
7029 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
7030 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
7031 cat >>confdefs.h
<<EOF
7032 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
7038 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
7039 echo "configure:6265: checking for ANSI C header files" 1>&5
7040 if test "${ac_cv_header_stdc+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7044 cat >conftest.
$ac_ext <<EOF
7045 #line 6270 "configure"
7046 #include "confdefs.h"
7053 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7054 { (eval echo configure
:6278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7055 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7056 if test -z "$ac_err"; then
7057 ac_cv_header_stdc
=yes
7060 echo "configure: failed program was:" >&5
7061 cat conftest.
$ac_ext >&5
7062 ac_cv_header_stdc
=no
7066 if test $ac_cv_header_stdc = yes; then
7067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7069 cat >conftest.
$ac_ext <<EOF
7070 #line 6292 "configure"
7071 #include "confdefs.h"
7075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7076 egrep "memchr" >/dev
/null
2>&1; then
7079 ac_cv_header_stdc
=no
7085 if test $ac_cv_header_stdc = yes; then
7086 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7088 cat >conftest.
$ac_ext <<EOF
7089 #line 6307 "configure"
7090 #include "confdefs.h"
7094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7095 egrep "free" >/dev
/null
2>&1; then
7098 ac_cv_header_stdc
=no
7104 if test $ac_cv_header_stdc = yes; then
7105 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7106 if test "$cross_compiling" = yes; then
7109 cat >conftest.
$ac_ext <<EOF
7110 #line 6325 "configure"
7111 #include "confdefs.h"
7113 #if ((' ' & 0x0FF) == 0x020)
7114 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7115 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7117 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7118 || ('j' <= (c) && (c) <= 'r') \
7119 || ('s' <= (c) && (c) <= 'z'))
7120 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7123 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7128 for (i = 0; i < 256; i++)
7129 if (XOR (islower (i), ISLOWER (i))
7130 || toupper (i) != TOUPPER (i))
7135 if { (eval echo configure
:6349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
7136 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
7139 echo "configure: failed program was:" >&5
7140 cat conftest.
$ac_ext >&5
7141 ac_cv_header_stdc
=no
7148 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
7149 if test $ac_cv_header_stdc = yes; then
7152 cat >>confdefs.h
<<\EOF
7153 #define STDC_HEADERS 1
7158 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" 1>&6
7159 echo "configure:6369: checking whether backslash-a works in strings" 1>&5
7160 if test "${ac_cv_c_backslash_a+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7163 cat >conftest.
$ac_ext <<EOF
7164 #line 6374 "configure"
7165 #include "confdefs.h"
7174 char buf['\a' == 'a' ? -1 : 1];
7176 return buf[0] != "\a"[0];
7182 if { (eval echo configure
:6389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7183 ac_cv_c_backslash_a
=yes
7185 echo "configure: failed program was:" >&5
7186 cat conftest.
$ac_ext >&5
7187 ac_cv_c_backslash_a
=no
7191 echo "$ECHO_T""$ac_cv_c_backslash_a" 1>&6
7192 if test $ac_cv_c_backslash_a = yes; then
7195 cat >>confdefs.h
<<\EOF
7196 #define HAVE_C_BACKSLASH_A 1
7201 echo $ECHO_N "checking for mbstate_t object type... $ECHO_C" 1>&6
7202 echo "configure:6406: checking for mbstate_t object type" 1>&5
7203 if test "${ac_cv_type_mbstate_t_object+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7206 cat >conftest.
$ac_ext <<EOF
7207 #line 6411 "configure"
7208 #include "confdefs.h"
7213 mbstate_t x; return sizeof x;
7218 if { (eval echo configure
:6422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7219 ac_cv_type_mbstate_t_object
=yes
7221 echo "configure: failed program was:" >&5
7222 cat conftest.
$ac_ext >&5
7223 ac_cv_type_mbstate_t_object
=no
7227 echo "$ECHO_T""$ac_cv_type_mbstate_t_object" 1>&6
7228 if test $ac_cv_type_mbstate_t_object = yes; then
7231 cat >>confdefs.h
<<\EOF
7232 #define HAVE_MBSTATE_T_OBJECT 1
7237 echo $ECHO_N "checking for function prototypes... $ECHO_C" 1>&6
7238 echo "configure:6439: checking for function prototypes" 1>&5
7239 if test "$am_cv_prog_cc_stdc" != no
; then
7240 echo "$ECHO_T""yes" 1>&6
7243 cat >>confdefs.h
<<\EOF
7244 #define PROTOTYPES 1
7249 echo "$ECHO_T""no" 1>&6
7250 U
=_ ANSI2KNR
=.
/ansi2knr
7251 # Ensure some checks needed by ansi2knr itself.
7253 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
7254 echo "configure:6452: checking for ANSI C header files" 1>&5
7255 if test "${ac_cv_header_stdc+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7259 cat >conftest.
$ac_ext <<EOF
7260 #line 6457 "configure"
7261 #include "confdefs.h"
7268 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7269 { (eval echo configure
:6465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7270 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7271 if test -z "$ac_err"; then
7272 ac_cv_header_stdc
=yes
7275 echo "configure: failed program was:" >&5
7276 cat conftest.
$ac_ext >&5
7277 ac_cv_header_stdc
=no
7281 if test $ac_cv_header_stdc = yes; then
7282 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7284 cat >conftest.
$ac_ext <<EOF
7285 #line 6479 "configure"
7286 #include "confdefs.h"
7290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7291 egrep "memchr" >/dev
/null
2>&1; then
7294 ac_cv_header_stdc
=no
7300 if test $ac_cv_header_stdc = yes; then
7301 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7303 cat >conftest.
$ac_ext <<EOF
7304 #line 6494 "configure"
7305 #include "confdefs.h"
7309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7310 egrep "free" >/dev
/null
2>&1; then
7313 ac_cv_header_stdc
=no
7319 if test $ac_cv_header_stdc = yes; then
7320 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7321 if test "$cross_compiling" = yes; then
7324 cat >conftest.
$ac_ext <<EOF
7325 #line 6512 "configure"
7326 #include "confdefs.h"
7328 #if ((' ' & 0x0FF) == 0x020)
7329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7332 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7333 || ('j' <= (c) && (c) <= 'r') \
7334 || ('s' <= (c) && (c) <= 'z'))
7335 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7338 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7343 for (i = 0; i < 256; i++)
7344 if (XOR (islower (i), ISLOWER (i))
7345 || toupper (i) != TOUPPER (i))
7350 if { (eval echo configure
:6536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
7351 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
7354 echo "configure: failed program was:" >&5
7355 cat conftest.
$ac_ext >&5
7356 ac_cv_header_stdc
=no
7363 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
7364 if test $ac_cv_header_stdc = yes; then
7367 cat >>confdefs.h
<<\EOF
7368 #define STDC_HEADERS 1
7375 for ac_header
in string.h
7377 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
7378 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
7379 echo "configure:6560: checking for $ac_header" 1>&5
7380 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
7381 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7384 cat >conftest.
$ac_ext <<EOF
7385 #line 6565 "configure"
7386 #include "confdefs.h"
7387 #include <$ac_header>
7390 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7391 { (eval echo configure
:6570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7392 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7393 if test -z "$ac_err"; then
7394 eval "$ac_ac_Header=yes"
7397 echo "configure: failed program was:" >&5
7398 cat conftest.
$ac_ext >&5
7399 eval "$ac_ac_Header=no"
7403 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
7404 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
7405 cat >>confdefs.h
<<EOF
7406 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
7414 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
7415 echo "configure:6591: checking for ANSI C header files" 1>&5
7416 if test "${ac_cv_header_stdc+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7420 cat >conftest.
$ac_ext <<EOF
7421 #line 6596 "configure"
7422 #include "confdefs.h"
7429 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7430 { (eval echo configure
:6604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7431 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7432 if test -z "$ac_err"; then
7433 ac_cv_header_stdc
=yes
7436 echo "configure: failed program was:" >&5
7437 cat conftest.
$ac_ext >&5
7438 ac_cv_header_stdc
=no
7442 if test $ac_cv_header_stdc = yes; then
7443 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7445 cat >conftest.
$ac_ext <<EOF
7446 #line 6618 "configure"
7447 #include "confdefs.h"
7451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7452 egrep "memchr" >/dev
/null
2>&1; then
7455 ac_cv_header_stdc
=no
7461 if test $ac_cv_header_stdc = yes; then
7462 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7464 cat >conftest.
$ac_ext <<EOF
7465 #line 6633 "configure"
7466 #include "confdefs.h"
7470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7471 egrep "free" >/dev
/null
2>&1; then
7474 ac_cv_header_stdc
=no
7480 if test $ac_cv_header_stdc = yes; then
7481 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7482 if test "$cross_compiling" = yes; then
7485 cat >conftest.
$ac_ext <<EOF
7486 #line 6651 "configure"
7487 #include "confdefs.h"
7489 #if ((' ' & 0x0FF) == 0x020)
7490 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7491 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7493 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7494 || ('j' <= (c) && (c) <= 'r') \
7495 || ('s' <= (c) && (c) <= 'z'))
7496 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7499 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7504 for (i = 0; i < 256; i++)
7505 if (XOR (islower (i), ISLOWER (i))
7506 || toupper (i) != TOUPPER (i))
7511 if { (eval echo configure
:6675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
7512 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
7515 echo "configure: failed program was:" >&5
7516 cat conftest.
$ac_ext >&5
7517 ac_cv_header_stdc
=no
7524 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
7525 if test $ac_cv_header_stdc = yes; then
7528 cat >>confdefs.h
<<\EOF
7529 #define STDC_HEADERS 1
7540 for ac_header
in string.h utmpx.h sys
/param.h
7542 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
7543 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
7544 echo "configure:6701: checking for $ac_header" 1>&5
7545 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
7546 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7549 cat >conftest.
$ac_ext <<EOF
7550 #line 6706 "configure"
7551 #include "confdefs.h"
7552 #include <$ac_header>
7555 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7556 { (eval echo configure
:6711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7557 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7558 if test -z "$ac_err"; then
7559 eval "$ac_ac_Header=yes"
7562 echo "configure: failed program was:" >&5
7563 cat conftest.
$ac_ext >&5
7564 eval "$ac_ac_Header=no"
7568 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
7569 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
7570 cat >>confdefs.h
<<EOF
7571 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
7579 for ac_func
in utmpname
7581 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
7582 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
7583 echo "configure:6735: checking for $ac_func" 1>&5
7584 if eval "test \"\${$ac_ac_var+set}\" = set"; then
7585 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7587 cat >conftest.
$ac_ext <<EOF
7588 #line 6740 "configure"
7589 #include "confdefs.h"
7590 /* System header to define __stub macros and hopefully few prototypes,
7591 which can conflict with char $ac_func(); below. */
7593 /* Override any gcc2 internal prototype to avoid an error. */
7597 /* We use char because int might match the return type of a gcc2
7598 builtin and then its argument prototype would still apply. */
7606 /* The GNU C library defines this for functions which it implements
7607 to always fail with ENOSYS. Some functions are actually named
7608 something starting with __ and the normal name is an alias. */
7609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7619 if { (eval echo configure
:6768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7620 eval "$ac_ac_var=yes"
7622 echo "configure: failed program was:" >&5
7623 cat conftest.
$ac_ext >&5
7624 eval "$ac_ac_var=no"
7628 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
7629 if test `eval echo '${'$ac_ac_var'}'` = yes; then
7630 cat >>confdefs.h
<<EOF
7631 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
7639 for ac_func
in utmpxname
7641 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
7642 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
7643 echo "configure:6789: checking for $ac_func" 1>&5
7644 if eval "test \"\${$ac_ac_var+set}\" = set"; then
7645 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7647 cat >conftest.
$ac_ext <<EOF
7648 #line 6794 "configure"
7649 #include "confdefs.h"
7650 /* System header to define __stub macros and hopefully few prototypes,
7651 which can conflict with char $ac_func(); below. */
7653 /* Override any gcc2 internal prototype to avoid an error. */
7657 /* We use char because int might match the return type of a gcc2
7658 builtin and then its argument prototype would still apply. */
7666 /* The GNU C library defines this for functions which it implements
7667 to always fail with ENOSYS. Some functions are actually named
7668 something starting with __ and the normal name is an alias. */
7669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7679 if { (eval echo configure
:6822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7680 eval "$ac_ac_var=yes"
7682 echo "configure: failed program was:" >&5
7683 cat conftest.
$ac_ext >&5
7684 eval "$ac_ac_var=no"
7688 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
7689 if test `eval echo '${'$ac_ac_var'}'` = yes; then
7690 cat >>confdefs.h
<<EOF
7691 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
7697 echo $ECHO_N "checking for function prototypes... $ECHO_C" 1>&6
7698 echo "configure:6839: checking for function prototypes" 1>&5
7699 if test "$am_cv_prog_cc_stdc" != no
; then
7700 echo "$ECHO_T""yes" 1>&6
7703 cat >>confdefs.h
<<\EOF
7704 #define PROTOTYPES 1
7709 echo "$ECHO_T""no" 1>&6
7710 U
=_ ANSI2KNR
=.
/ansi2knr
7711 # Ensure some checks needed by ansi2knr itself.
7713 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
7714 echo "configure:6852: checking for ANSI C header files" 1>&5
7715 if test "${ac_cv_header_stdc+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7719 cat >conftest.
$ac_ext <<EOF
7720 #line 6857 "configure"
7721 #include "confdefs.h"
7728 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7729 { (eval echo configure
:6865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7730 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7731 if test -z "$ac_err"; then
7732 ac_cv_header_stdc
=yes
7735 echo "configure: failed program was:" >&5
7736 cat conftest.
$ac_ext >&5
7737 ac_cv_header_stdc
=no
7741 if test $ac_cv_header_stdc = yes; then
7742 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7744 cat >conftest.
$ac_ext <<EOF
7745 #line 6879 "configure"
7746 #include "confdefs.h"
7750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7751 egrep "memchr" >/dev
/null
2>&1; then
7754 ac_cv_header_stdc
=no
7760 if test $ac_cv_header_stdc = yes; then
7761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7763 cat >conftest.
$ac_ext <<EOF
7764 #line 6894 "configure"
7765 #include "confdefs.h"
7769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7770 egrep "free" >/dev
/null
2>&1; then
7773 ac_cv_header_stdc
=no
7779 if test $ac_cv_header_stdc = yes; then
7780 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7781 if test "$cross_compiling" = yes; then
7784 cat >conftest.
$ac_ext <<EOF
7785 #line 6912 "configure"
7786 #include "confdefs.h"
7788 #if ((' ' & 0x0FF) == 0x020)
7789 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7790 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7792 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7793 || ('j' <= (c) && (c) <= 'r') \
7794 || ('s' <= (c) && (c) <= 'z'))
7795 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7798 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7803 for (i = 0; i < 256; i++)
7804 if (XOR (islower (i), ISLOWER (i))
7805 || toupper (i) != TOUPPER (i))
7810 if { (eval echo configure
:6936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
7811 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
7814 echo "configure: failed program was:" >&5
7815 cat conftest.
$ac_ext >&5
7816 ac_cv_header_stdc
=no
7823 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
7824 if test $ac_cv_header_stdc = yes; then
7827 cat >>confdefs.h
<<\EOF
7828 #define STDC_HEADERS 1
7835 for ac_header
in string.h
7837 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
7838 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
7839 echo "configure:6960: checking for $ac_header" 1>&5
7840 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
7841 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7844 cat >conftest.
$ac_ext <<EOF
7845 #line 6965 "configure"
7846 #include "confdefs.h"
7847 #include <$ac_header>
7850 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7851 { (eval echo configure
:6970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7852 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7853 if test -z "$ac_err"; then
7854 eval "$ac_ac_Header=yes"
7857 echo "configure: failed program was:" >&5
7858 cat conftest.
$ac_ext >&5
7859 eval "$ac_ac_Header=no"
7863 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
7864 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
7865 cat >>confdefs.h
<<EOF
7866 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
7875 $ac_includes_default
7883 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" 1>&6
7884 echo "configure:6999: checking for struct utmpx.ut_user" 1>&5
7885 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7888 cat >conftest.
$ac_ext <<EOF
7889 #line 7004 "configure"
7890 #include "confdefs.h"
7902 if { (eval echo configure
:7016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7903 ac_cv_member_struct_utmpx_ut_user
=yes
7905 echo "configure: failed program was:" >&5
7906 cat conftest.
$ac_ext >&5
7907 ac_cv_member_struct_utmpx_ut_user
=no
7911 echo "$ECHO_T""$ac_cv_member_struct_utmpx_ut_user" 1>&6
7912 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
7915 cat >>confdefs.h
<<EOF
7916 #define HAVE_STRUCT_UTMPX_UT_USER 1
7921 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" 1>&6
7922 echo "configure:7033: checking for struct utmp.ut_user" 1>&5
7923 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7926 cat >conftest.
$ac_ext <<EOF
7927 #line 7038 "configure"
7928 #include "confdefs.h"
7940 if { (eval echo configure
:7050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7941 ac_cv_member_struct_utmp_ut_user
=yes
7943 echo "configure: failed program was:" >&5
7944 cat conftest.
$ac_ext >&5
7945 ac_cv_member_struct_utmp_ut_user
=no
7949 echo "$ECHO_T""$ac_cv_member_struct_utmp_ut_user" 1>&6
7950 if test $ac_cv_member_struct_utmp_ut_user = yes; then
7953 cat >>confdefs.h
<<EOF
7954 #define HAVE_STRUCT_UTMP_UT_USER 1
7959 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" 1>&6
7960 echo "configure:7067: checking for struct utmpx.ut_name" 1>&5
7961 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
7962 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7964 cat >conftest.
$ac_ext <<EOF
7965 #line 7072 "configure"
7966 #include "confdefs.h"
7978 if { (eval echo configure
:7084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7979 ac_cv_member_struct_utmpx_ut_name
=yes
7981 echo "configure: failed program was:" >&5
7982 cat conftest.
$ac_ext >&5
7983 ac_cv_member_struct_utmpx_ut_name
=no
7987 echo "$ECHO_T""$ac_cv_member_struct_utmpx_ut_name" 1>&6
7988 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
7991 cat >>confdefs.h
<<EOF
7992 #define HAVE_STRUCT_UTMPX_UT_NAME 1
7997 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" 1>&6
7998 echo "configure:7101: checking for struct utmp.ut_name" 1>&5
7999 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8002 cat >conftest.
$ac_ext <<EOF
8003 #line 7106 "configure"
8004 #include "confdefs.h"
8016 if { (eval echo configure
:7118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8017 ac_cv_member_struct_utmp_ut_name
=yes
8019 echo "configure: failed program was:" >&5
8020 cat conftest.
$ac_ext >&5
8021 ac_cv_member_struct_utmp_ut_name
=no
8025 echo "$ECHO_T""$ac_cv_member_struct_utmp_ut_name" 1>&6
8026 if test $ac_cv_member_struct_utmp_ut_name = yes; then
8029 cat >>confdefs.h
<<EOF
8030 #define HAVE_STRUCT_UTMP_UT_NAME 1
8043 for ac_func
in bzero bcopy isascii btowc
8045 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8046 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
8047 echo "configure:7142: checking for $ac_func" 1>&5
8048 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8049 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8051 cat >conftest.
$ac_ext <<EOF
8052 #line 7147 "configure"
8053 #include "confdefs.h"
8054 /* System header to define __stub macros and hopefully few prototypes,
8055 which can conflict with char $ac_func(); below. */
8057 /* Override any gcc2 internal prototype to avoid an error. */
8061 /* We use char because int might match the return type of a gcc2
8062 builtin and then its argument prototype would still apply. */
8070 /* The GNU C library defines this for functions which it implements
8071 to always fail with ENOSYS. Some functions are actually named
8072 something starting with __ and the normal name is an alias. */
8073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8083 if { (eval echo configure
:7175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8084 eval "$ac_ac_var=yes"
8086 echo "configure: failed program was:" >&5
8087 cat conftest.
$ac_ext >&5
8088 eval "$ac_ac_var=no"
8092 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
8093 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8094 cat >>confdefs.h
<<EOF
8095 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8109 for ac_header
in alloca.h libintl.h wctype.h wchar.h
8111 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
8112 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
8113 echo "configure:7199: checking for $ac_header" 1>&5
8114 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
8115 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8118 cat >conftest.
$ac_ext <<EOF
8119 #line 7204 "configure"
8120 #include "confdefs.h"
8121 #include <$ac_header>
8124 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8125 { (eval echo configure
:7209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8126 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8127 if test -z "$ac_err"; then
8128 eval "$ac_ac_Header=yes"
8131 echo "configure: failed program was:" >&5
8132 cat conftest.
$ac_ext >&5
8133 eval "$ac_ac_Header=no"
8137 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
8138 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
8139 cat >>confdefs.h
<<EOF
8140 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
8146 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
8147 echo "configure:7229: checking for ANSI C header files" 1>&5
8148 if test "${ac_cv_header_stdc+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8152 cat >conftest.
$ac_ext <<EOF
8153 #line 7234 "configure"
8154 #include "confdefs.h"
8161 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8162 { (eval echo configure
:7242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8163 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8164 if test -z "$ac_err"; then
8165 ac_cv_header_stdc
=yes
8168 echo "configure: failed program was:" >&5
8169 cat conftest.
$ac_ext >&5
8170 ac_cv_header_stdc
=no
8174 if test $ac_cv_header_stdc = yes; then
8175 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8177 cat >conftest.
$ac_ext <<EOF
8178 #line 7256 "configure"
8179 #include "confdefs.h"
8183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8184 egrep "memchr" >/dev
/null
2>&1; then
8187 ac_cv_header_stdc
=no
8193 if test $ac_cv_header_stdc = yes; then
8194 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8196 cat >conftest.
$ac_ext <<EOF
8197 #line 7271 "configure"
8198 #include "confdefs.h"
8202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8203 egrep "free" >/dev
/null
2>&1; then
8206 ac_cv_header_stdc
=no
8212 if test $ac_cv_header_stdc = yes; then
8213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8214 if test "$cross_compiling" = yes; then
8217 cat >conftest.
$ac_ext <<EOF
8218 #line 7289 "configure"
8219 #include "confdefs.h"
8221 #if ((' ' & 0x0FF) == 0x020)
8222 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8223 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8225 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8226 || ('j' <= (c) && (c) <= 'r') \
8227 || ('s' <= (c) && (c) <= 'z'))
8228 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8231 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8236 for (i = 0; i < 256; i++)
8237 if (XOR (islower (i), ISLOWER (i))
8238 || toupper (i) != TOUPPER (i))
8243 if { (eval echo configure
:7313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8244 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
8247 echo "configure: failed program was:" >&5
8248 cat conftest.
$ac_ext >&5
8249 ac_cv_header_stdc
=no
8256 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
8257 if test $ac_cv_header_stdc = yes; then
8260 cat >>confdefs.h
<<\EOF
8261 #define STDC_HEADERS 1
8268 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8269 # for constant arguments. Useless!
8270 echo $ECHO_N "checking for working alloca.h... $ECHO_C" 1>&6
8271 echo "configure:7336: checking for working alloca.h" 1>&5
8272 if test "${ac_cv_working_alloca_h+set}" = set; then
8273 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8275 cat >conftest.
$ac_ext <<EOF
8276 #line 7341 "configure"
8277 #include "confdefs.h"
8282 char *p = (char *) alloca (2 * sizeof (int));
8287 if { (eval echo configure
:7352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8288 ac_cv_working_alloca_h
=yes
8290 echo "configure: failed program was:" >&5
8291 cat conftest.
$ac_ext >&5
8292 ac_cv_working_alloca_h
=no
8296 echo "$ECHO_T""$ac_cv_working_alloca_h" 1>&6
8297 if test $ac_cv_working_alloca_h = yes; then
8300 cat >>confdefs.h
<<\EOF
8301 #define HAVE_ALLOCA_H 1
8306 echo $ECHO_N "checking for alloca... $ECHO_C" 1>&6
8307 echo "configure:7369: checking for alloca" 1>&5
8308 if test "${ac_cv_func_alloca_works+set}" = set; then
8309 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8311 cat >conftest.
$ac_ext <<EOF
8312 #line 7374 "configure"
8313 #include "confdefs.h"
8315 # define alloca __builtin_alloca
8318 # include <malloc.h>
8319 # define alloca _alloca
8322 # include <alloca.h>
8327 # ifndef alloca /* predefined by HP cc +Olibcalls */
8338 char *p = (char *) alloca(1);
8343 if { (eval echo configure
:7404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8344 ac_cv_func_alloca_works
=yes
8346 echo "configure: failed program was:" >&5
8347 cat conftest.
$ac_ext >&5
8348 ac_cv_func_alloca_works
=no
8352 echo "$ECHO_T""$ac_cv_func_alloca_works" 1>&6
8353 if test $ac_cv_func_alloca_works = yes; then
8356 cat >>confdefs.h
<<\EOF
8357 #define HAVE_ALLOCA 1
8362 if test $ac_cv_func_alloca_works = no
; then
8363 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8364 # that cause trouble. Some versions do not even contain alloca or
8365 # contain a buggy version. If you still want to use their alloca,
8366 # use ar to extract alloca.o from them instead of compiling alloca.c.
8367 ALLOCA
=alloca.
${ac_objext}
8370 cat >>confdefs.h
<<\EOF
8374 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" 1>&6
8375 echo "configure:7431: checking whether alloca needs Cray hooks" 1>&5
8376 if test "${ac_cv_os_cray+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8380 cat >conftest.
$ac_ext <<EOF
8381 #line 7436 "configure"
8382 #include "confdefs.h"
8383 #if defined(CRAY) && ! defined(CRAY2)
8390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8391 egrep "webecray" >/dev
/null
2>&1; then
8399 echo "$ECHO_T""$ac_cv_os_cray" 1>&6
8400 if test $ac_cv_os_cray = yes; then
8401 for ac_func
in _getb67 GETB67 getb67
; do
8402 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8403 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
8404 echo "configure:7457: checking for $ac_func" 1>&5
8405 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8406 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8408 cat >conftest.
$ac_ext <<EOF
8409 #line 7462 "configure"
8410 #include "confdefs.h"
8411 /* System header to define __stub macros and hopefully few prototypes,
8412 which can conflict with char $ac_func(); below. */
8414 /* Override any gcc2 internal prototype to avoid an error. */
8418 /* We use char because int might match the return type of a gcc2
8419 builtin and then its argument prototype would still apply. */
8427 /* The GNU C library defines this for functions which it implements
8428 to always fail with ENOSYS. Some functions are actually named
8429 something starting with __ and the normal name is an alias. */
8430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8440 if { (eval echo configure
:7490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8441 eval "$ac_ac_var=yes"
8443 echo "configure: failed program was:" >&5
8444 cat conftest.
$ac_ext >&5
8445 eval "$ac_ac_var=no"
8449 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
8450 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8453 cat >>confdefs.h
<<EOF
8454 #define CRAY_STACKSEG_END $ac_func
8463 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" 1>&6
8464 echo "configure:7510: checking stack direction for C alloca" 1>&5
8465 if test "${ac_cv_c_stack_direction+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8468 if test "$cross_compiling" = yes; then
8469 ac_cv_c_stack_direction
=0
8471 cat >conftest.
$ac_ext <<EOF
8472 #line 7518 "configure"
8473 #include "confdefs.h"
8474 find_stack_direction ()
8476 static char *addr = 0;
8481 return find_stack_direction ();
8484 return (&dummy > addr) ? 1 : -1;
8490 exit (find_stack_direction () < 0);
8493 if { (eval echo configure
:7538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8494 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
8495 ac_cv_c_stack_direction
=1
8497 echo "configure: failed program was:" >&5
8498 cat conftest.
$ac_ext >&5
8499 ac_cv_c_stack_direction
=-1
8505 echo "$ECHO_T""$ac_cv_c_stack_direction" 1>&6
8506 cat >>confdefs.h
<<EOF
8507 #define STACK_DIRECTION $ac_cv_c_stack_direction
8514 for ac_func
in localtime_r
8516 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8517 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
8518 echo "configure:7559: checking for $ac_func" 1>&5
8519 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8520 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8522 cat >conftest.
$ac_ext <<EOF
8523 #line 7564 "configure"
8524 #include "confdefs.h"
8525 /* System header to define __stub macros and hopefully few prototypes,
8526 which can conflict with char $ac_func(); below. */
8528 /* Override any gcc2 internal prototype to avoid an error. */
8532 /* We use char because int might match the return type of a gcc2
8533 builtin and then its argument prototype would still apply. */
8541 /* The GNU C library defines this for functions which it implements
8542 to always fail with ENOSYS. Some functions are actually named
8543 something starting with __ and the normal name is an alias. */
8544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8554 if { (eval echo configure
:7592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8555 eval "$ac_ac_var=yes"
8557 echo "configure: failed program was:" >&5
8558 cat conftest.
$ac_ext >&5
8559 eval "$ac_ac_var=no"
8563 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
8564 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8565 cat >>confdefs.h
<<EOF
8566 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8572 if test $ac_cv_func_working_mktime = no
; then
8575 cat >>confdefs.h
<<EOF
8576 #define mktime rpl_mktime
8581 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" 1>&6
8582 echo "configure:7615: checking whether lstat accepts an empty string" 1>&5
8583 if test "${jm_cv_func_lstat_empty_string_bug+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8586 if test "$cross_compiling" = yes; then
8587 jm_cv_func_lstat_empty_string_bug
=yes
8589 cat >conftest.
$ac_ext <<EOF
8590 #line 7623 "configure"
8591 #include "confdefs.h"
8593 # include <sys/types.h>
8594 # include <sys/stat.h>
8600 exit (lstat ("", &sbuf) ? 1 : 0);
8604 if { (eval echo configure
:7635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8605 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
8606 jm_cv_func_lstat_empty_string_bug
=yes
8608 echo "configure: failed program was:" >&5
8609 cat conftest.
$ac_ext >&5
8610 jm_cv_func_lstat_empty_string_bug
=no
8616 echo "$ECHO_T""$jm_cv_func_lstat_empty_string_bug" 1>&6
8617 if test $jm_cv_func_lstat_empty_string_bug = yes; then
8619 LIBOBJS
="$LIBOBJS lstat.$ac_objext"
8622 cat >>confdefs.h
<<EOF
8623 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
8628 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" 1>&6
8629 echo "configure:7655: checking whether lstat dereferences a symlink specified with a trailing slash" 1>&5
8630 if test "${jm_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8631 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8634 rm -f conftest.sym conftest.
file
8636 if ln -s conftest.
file conftest.sym
; then
8637 if test "$cross_compiling" = yes; then
8638 jm_cv_func_lstat_dereferences_slashed_symlink
=no
8641 cat >conftest.
$ac_ext <<EOF
8642 #line 7666 "configure"
8643 #include "confdefs.h"
8645 # include <sys/types.h>
8646 # include <sys/stat.h>
8652 /* Linux will dereference the symlink and fail.
8653 That is better in the sense that it means we will not
8654 have to compile and use the lstat wrapper. */
8655 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
8659 if { (eval echo configure
:7680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8660 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
8661 jm_cv_func_lstat_dereferences_slashed_symlink
=yes
8663 echo "configure: failed program was:" >&5
8664 cat conftest.
$ac_ext >&5
8665 jm_cv_func_lstat_dereferences_slashed_symlink
=no
8671 # If the `ln -s' command failed, then we probably don't even
8672 # have an lstat function.
8673 jm_cv_func_lstat_dereferences_slashed_symlink
=no
8677 echo "$ECHO_T""$jm_cv_func_lstat_dereferences_slashed_symlink" 1>&6
8679 test $jm_cv_func_lstat_dereferences_slashed_symlink = yes \
8684 cat >>confdefs.h
<<EOF
8685 #define LSTAT_FOLLOWS_SLASHED_SYMLINK $zero_one
8688 if test $jm_cv_func_lstat_dereferences_slashed_symlink = no
; then
8690 # Append lstat.o if it's not already in $LIBOBJS.
8692 *lstat.
$ac_objext*) ;;
8693 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
8697 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" 1>&6
8698 echo "configure:7712: checking whether stat accepts an empty string" 1>&5
8699 if test "${jm_cv_func_stat_empty_string_bug+set}" = set; then
8700 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8702 if test "$cross_compiling" = yes; then
8703 jm_cv_func_stat_empty_string_bug
=yes
8705 cat >conftest.
$ac_ext <<EOF
8706 #line 7720 "configure"
8707 #include "confdefs.h"
8709 # include <sys/types.h>
8710 # include <sys/stat.h>
8716 exit (stat ("", &sbuf) ? 1 : 0);
8720 if { (eval echo configure
:7732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8721 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
8722 jm_cv_func_stat_empty_string_bug
=yes
8724 echo "configure: failed program was:" >&5
8725 cat conftest.
$ac_ext >&5
8726 jm_cv_func_stat_empty_string_bug
=no
8732 echo "$ECHO_T""$jm_cv_func_stat_empty_string_bug" 1>&6
8733 if test $jm_cv_func_stat_empty_string_bug = yes; then
8735 LIBOBJS
="$LIBOBJS stat.$ac_objext"
8738 cat >>confdefs.h
<<EOF
8739 #define HAVE_STAT_EMPTY_STRING_BUG 1
8746 cat >>confdefs.h
<<EOF
8747 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
8750 echo $ECHO_N "checking for working realloc... $ECHO_C" 1>&6
8751 echo "configure:7756: checking for working realloc" 1>&5
8752 if test "${jm_cv_func_working_realloc+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8755 if test "$cross_compiling" = yes; then
8756 jm_cv_func_working_realloc
=no
8758 cat >conftest.
$ac_ext <<EOF
8759 #line 7764 "configure"
8760 #include "confdefs.h"
8766 exit (realloc (0, 0) ? 0 : 1);
8770 if { (eval echo configure
:7774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8771 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
8772 jm_cv_func_working_realloc
=yes
8774 echo "configure: failed program was:" >&5
8775 cat conftest.
$ac_ext >&5
8776 jm_cv_func_working_realloc
=no
8782 echo "$ECHO_T""$jm_cv_func_working_realloc" 1>&6
8783 if test $jm_cv_func_working_realloc = no
; then
8785 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
8788 cat >>confdefs.h
<<EOF
8789 #define realloc rpl_realloc
8796 cat >>confdefs.h
<<EOF
8797 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
8800 echo $ECHO_N "checking for working malloc... $ECHO_C" 1>&6
8801 echo "configure:7798: checking for working malloc" 1>&5
8802 if test "${jm_cv_func_working_malloc+set}" = set; then
8803 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8805 if test "$cross_compiling" = yes; then
8806 jm_cv_func_working_malloc
=no
8808 cat >conftest.
$ac_ext <<EOF
8809 #line 7806 "configure"
8810 #include "confdefs.h"
8816 exit (malloc (0) ? 0 : 1);
8820 if { (eval echo configure
:7816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8821 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
8822 jm_cv_func_working_malloc
=yes
8824 echo "configure: failed program was:" >&5
8825 cat conftest.
$ac_ext >&5
8826 jm_cv_func_working_malloc
=no
8832 echo "$ECHO_T""$jm_cv_func_working_malloc" 1>&6
8833 if test $jm_cv_func_working_malloc = no
; then
8835 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
8838 cat >>confdefs.h
<<EOF
8839 #define malloc rpl_malloc
8847 for ac_func
in strerror_r
8849 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8850 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
8851 echo "configure:7841: checking for $ac_func" 1>&5
8852 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8853 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8855 cat >conftest.
$ac_ext <<EOF
8856 #line 7846 "configure"
8857 #include "confdefs.h"
8858 /* System header to define __stub macros and hopefully few prototypes,
8859 which can conflict with char $ac_func(); below. */
8861 /* Override any gcc2 internal prototype to avoid an error. */
8865 /* We use char because int might match the return type of a gcc2
8866 builtin and then its argument prototype would still apply. */
8874 /* The GNU C library defines this for functions which it implements
8875 to always fail with ENOSYS. Some functions are actually named
8876 something starting with __ and the normal name is an alias. */
8877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8887 if { (eval echo configure
:7874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8888 eval "$ac_ac_var=yes"
8890 echo "configure: failed program was:" >&5
8891 cat conftest.
$ac_ext >&5
8892 eval "$ac_ac_var=no"
8896 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
8897 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8898 cat >>confdefs.h
<<EOF
8899 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8905 if test $ac_cv_func_strerror_r = yes; then
8908 for ac_header
in string.h
8910 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
8911 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
8912 echo "configure:7896: checking for $ac_header" 1>&5
8913 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
8914 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8917 cat >conftest.
$ac_ext <<EOF
8918 #line 7901 "configure"
8919 #include "confdefs.h"
8920 #include <$ac_header>
8923 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8924 { (eval echo configure
:7906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8925 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8926 if test -z "$ac_err"; then
8927 eval "$ac_ac_Header=yes"
8930 echo "configure: failed program was:" >&5
8931 cat conftest.
$ac_ext >&5
8932 eval "$ac_ac_Header=no"
8936 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
8937 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
8938 cat >>confdefs.h
<<EOF
8939 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
8945 echo $ECHO_N "checking for working strerror_r... $ECHO_C" 1>&6
8946 echo "configure:7926: checking for working strerror_r" 1>&5
8947 if test "${jm_cv_func_working_strerror_r+set}" = set; then
8948 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8951 cat >conftest.
$ac_ext <<EOF
8952 #line 7931 "configure"
8953 #include "confdefs.h"
8957 # include <string.h>
8964 int buf; /* avoiding square brackets makes this easier */
8965 char x = *strerror_r (0, buf, sizeof buf);
8971 if { (eval echo configure
:7946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8972 jm_cv_func_working_strerror_r
=yes
8974 echo "configure: failed program was:" >&5
8975 cat conftest.
$ac_ext >&5
8976 jm_cv_func_working_strerror_r
=no
8980 if test $jm_cv_func_working_strerror_r = yes; then
8983 cat >>confdefs.h
<<EOF
8984 #define HAVE_WORKING_STRERROR_R 1
8990 echo "$ECHO_T""$jm_cv_func_working_strerror_r" 1>&6
8995 for ac_header
in string.h
8997 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
8998 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
8999 echo "configure:7968: checking for $ac_header" 1>&5
9000 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9001 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9004 cat >conftest.
$ac_ext <<EOF
9005 #line 7973 "configure"
9006 #include "confdefs.h"
9007 #include <$ac_header>
9010 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9011 { (eval echo configure
:7978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9012 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9013 if test -z "$ac_err"; then
9014 eval "$ac_ac_Header=yes"
9017 echo "configure: failed program was:" >&5
9018 cat conftest.
$ac_ext >&5
9019 eval "$ac_ac_Header=no"
9023 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
9024 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9025 cat >>confdefs.h
<<EOF
9026 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9032 echo $ECHO_N "checking for working readdir... $ECHO_C" 1>&6
9033 echo "configure:7998: checking for working readdir" 1>&5
9034 if test "${jm_cv_func_working_readdir+set}" = set; then
9035 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9037 # Arrange for deletion of the temporary directory this test creates, in
9038 # case the test itself fails to delete everything -- as happens on Sunos.
9039 ac_clean_files
="$ac_clean_files conf-dir"
9041 if test "$cross_compiling" = yes; then
9042 jm_cv_func_working_readdir
=no
9044 cat >conftest.
$ac_ext <<EOF
9045 #line 8009 "configure"
9046 #include "confdefs.h"
9048 # include <sys/types.h>
9050 # include <string.h>
9053 # ifdef HAVE_DIRENT_H
9054 # include <dirent.h>
9055 # define NLENGTH(direct) (strlen((direct)->d_name))
9056 # else /* not HAVE_DIRENT_H */
9057 # define dirent direct
9058 # define NLENGTH(direct) ((direct)->d_namlen)
9059 # ifdef HAVE_SYS_NDIR_H
9060 # include <sys/ndir.h>
9061 # endif /* HAVE_SYS_NDIR_H */
9062 # ifdef HAVE_SYS_DIR_H
9063 # include <sys/dir.h>
9064 # endif /* HAVE_SYS_DIR_H */
9067 # endif /* HAVE_NDIR_H */
9068 # endif /* HAVE_DIRENT_H */
9070 # define DOT_OR_DOTDOT(Basename) \
9071 (Basename[0] == '.' && (Basename[1] == '\0' \
9072 || (Basename[1] == '.' && Basename[2] == '\0')))
9075 create_300_file_dir (const char *dir)
9079 if (mkdir (dir, 0700))
9084 for (i = 0; i < 300; i++)
9089 sprintf (file_name, "%03d", i);
9090 out = fopen (file_name, "w");
9093 if (fclose (out) == EOF)
9102 remove_dir
(const char
*dir
)
9109 dirp
= opendir
(".");
9115 struct dirent
*dp
= readdir
(dirp
);
9119 if (DOT_OR_DOTDOT
(dp-
>d_name
))
9122 if (unlink
(dp-
>d_name
))
9137 const char
*dir
= "conf-dir";
9138 create_300_file_dir
(dir
);
9143 if { (eval echo configure
:8091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
9144 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
9145 jm_cv_func_working_readdir
=yes
9147 echo "configure: failed program was:" >&5
9148 cat conftest.
$ac_ext >&5
9149 jm_cv_func_working_readdir
=no
9155 echo "$ECHO_T""$jm_cv_func_working_readdir" 1>&6
9157 if test $jm_cv_func_working_readdir = yes; then
9160 cat >>confdefs.h
<<EOF
9161 #define HAVE_WORKING_READDIR 1
9166 if test $jm_cv_func_memcmp_working = no
; then
9169 cat >>confdefs.h
<<EOF
9170 #define memcmp rpl_memcmp
9175 io_functions
='clearerr_unlocked feof_unlocked ferror_unlocked
9176 fflush_unlocked fputc_unlocked fread_unlocked fwrite_unlocked
9177 getc_unlocked getchar_unlocked putc_unlocked putchar_unlocked'
9178 for jm_io_func
in $io_functions; do
9179 # Check for the existence of each function only if its declared.
9180 # Otherwise, we'd get the Solaris5.5.1 functions that are not
9181 # declared, and that have been removed from Solaris5.6. The resulting
9182 # 5.5.1 binaries would not run on 5.6 due to shared library differences.
9183 ac_ac_Symbol
=`echo "ac_cv_have_decl_$jm_io_func" | $ac_tr_sh`
9184 echo $ECHO_N "checking whether $jm_io_func is declared... $ECHO_C" 1>&6
9185 echo "configure:8125: checking whether $jm_io_func is declared" 1>&5
9186 if eval "test \"\${$ac_ac_Symbol+set}\" = set"; then
9187 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9189 cat >conftest.
$ac_ext <<EOF
9190 #line 8130 "configure"
9191 #include "confdefs.h"
9198 char *p = (char *) $jm_io_func;
9205 if { (eval echo configure
:8143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9206 eval "$ac_ac_Symbol=yes"
9208 echo "configure: failed program was:" >&5
9209 cat conftest.
$ac_ext >&5
9210 eval "$ac_ac_Symbol=no"
9214 echo "$ECHO_T""`eval echo '${'$ac_ac_Symbol'}'`" 1>&6
9215 if test `eval echo '${'$ac_ac_Symbol'}'` = yes; then
9216 cat >>confdefs.h
<<EOF
9217 #define `echo "HAVE_DECL_$jm_io_func" | $ac_tr_cpp` 1
9222 cat >>confdefs.h
<<EOF
9223 #define `echo "HAVE_DECL_$jm_io_func" | $ac_tr_cpp` 0
9229 if test $jm_declared = yes; then
9230 for ac_func
in $jm_io_func
9232 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9233 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
9234 echo "configure:8169: checking for $ac_func" 1>&5
9235 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9236 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9238 cat >conftest.
$ac_ext <<EOF
9239 #line 8174 "configure"
9240 #include "confdefs.h"
9241 /* System header to define __stub macros and hopefully few prototypes,
9242 which can conflict with char $ac_func(); below. */
9244 /* Override any gcc2 internal prototype to avoid an error. */
9248 /* We use char because int might match the return type of a gcc2
9249 builtin and then its argument prototype would still apply. */
9257 /* The GNU C library defines this for functions which it implements
9258 to always fail with ENOSYS. Some functions are actually named
9259 something starting with __ and the normal name is an alias. */
9260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9270 if { (eval echo configure
:8202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9271 eval "$ac_ac_var=yes"
9273 echo "configure: failed program was:" >&5
9274 cat conftest.
$ac_ext >&5
9275 eval "$ac_ac_var=no"
9279 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
9280 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9281 cat >>confdefs.h
<<EOF
9282 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9293 for ac_header
in fnmatch.h
9295 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9296 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
9297 echo "configure:8225: checking for $ac_header" 1>&5
9298 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9299 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9302 cat >conftest.
$ac_ext <<EOF
9303 #line 8230 "configure"
9304 #include "confdefs.h"
9305 #include <$ac_header>
9308 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9309 { (eval echo configure
:8235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9310 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9311 if test -z "$ac_err"; then
9312 eval "$ac_ac_Header=yes"
9315 echo "configure: failed program was:" >&5
9316 cat conftest.
$ac_ext >&5
9317 eval "$ac_ac_Header=no"
9321 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
9322 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9323 cat >>confdefs.h
<<EOF
9324 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9330 echo $ECHO_N "checking for working fnmatch with case folding... $ECHO_C" 1>&6
9331 echo "configure:8255: checking for working fnmatch with case folding" 1>&5
9332 if test "${ac_cv_func_fnmatch_works+set}" = set; then
9333 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9335 # Some versions of Solaris or SCO have a broken fnmatch function.
9336 # So we run a test program. If we are cross-compiling, take no chance.
9337 # Also want FNM_CASEFOLD
9338 # Thanks to John Oleynick and Franc,ois Pinard for this test.
9339 if test "$cross_compiling" = yes; then
9340 ac_cv_func_fnmatch_works
=no
9342 cat >conftest.
$ac_ext <<EOF
9343 #line 8267 "configure"
9344 #include "confdefs.h"
9348 # include <fnmatch.h>
9354 exit (fnmatch ("A*", "abc", FNM_CASEFOLD) != 0);
9357 if { (eval echo configure
:8280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
9358 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
9359 ac_cv_func_fnmatch_works
=yes
9361 echo "configure: failed program was:" >&5
9362 cat conftest.
$ac_ext >&5
9363 ac_cv_func_fnmatch_works
=no
9369 echo "$ECHO_T""$ac_cv_func_fnmatch_works" 1>&6
9370 if test $ac_cv_func_fnmatch_works = yes; then
9373 cat >>confdefs.h
<<\EOF
9374 #define HAVE_FNMATCH 1
9379 if test $ac_cv_func_fnmatch_works = no \
9380 && test $ac_cv_gnu_library = no
; then
9382 LIBOBJS
="$LIBOBJS fnmatch.$ac_objext"
9385 cat >>confdefs.h
<<EOF
9386 #define fnmatch rpl_fnmatch
9391 echo "checking for AFS" 1>&6
9392 echo "configure:8307: checking for AFS" 1>&5
9396 cat >>confdefs.h
<<\EOF
9402 for ac_header
in stdlib.h
9404 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9405 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
9406 echo "configure:8318: checking for $ac_header" 1>&5
9407 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9408 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9411 cat >conftest.
$ac_ext <<EOF
9412 #line 8323 "configure"
9413 #include "confdefs.h"
9414 #include <$ac_header>
9417 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9418 { (eval echo configure
:8328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9419 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9420 if test -z "$ac_err"; then
9421 eval "$ac_ac_Header=yes"
9424 echo "configure: failed program was:" >&5
9425 cat conftest.
$ac_ext >&5
9426 eval "$ac_ac_Header=no"
9430 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
9431 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9432 cat >>confdefs.h
<<EOF
9433 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9439 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" 1>&6
9440 echo "configure:8348: checking whether <inttypes.h> defines strtoumax as a macro" 1>&5
9441 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9445 cat >conftest.
$ac_ext <<EOF
9446 #line 8353 "configure"
9447 #include "confdefs.h"
9448 #include <inttypes.h>
9450 inttypes_h_defines_strtoumax
9453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9454 egrep "inttypes_h_defines_strtoumax" >/dev
/null
2>&1; then
9455 jm_cv_func_strtoumax_macro
=yes
9457 jm_cv_func_strtoumax_macro
=no
9462 echo "$ECHO_T""$jm_cv_func_strtoumax_macro" 1>&6
9464 if test "$jm_cv_func_strtoumax_macro" != yes; then
9467 for ac_func
in strtoumax
9469 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9470 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
9471 echo "configure:8375: checking for $ac_func" 1>&5
9472 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9473 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9475 cat >conftest.
$ac_ext <<EOF
9476 #line 8380 "configure"
9477 #include "confdefs.h"
9478 /* System header to define __stub macros and hopefully few prototypes,
9479 which can conflict with char $ac_func(); below. */
9481 /* Override any gcc2 internal prototype to avoid an error. */
9485 /* We use char because int might match the return type of a gcc2
9486 builtin and then its argument prototype would still apply. */
9494 /* The GNU C library defines this for functions which it implements
9495 to always fail with ENOSYS. Some functions are actually named
9496 something starting with __ and the normal name is an alias. */
9497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9507 if { (eval echo configure
:8408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9508 eval "$ac_ac_var=yes"
9510 echo "configure: failed program was:" >&5
9511 cat conftest.
$ac_ext >&5
9512 eval "$ac_ac_var=no"
9516 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
9517 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9518 cat >>confdefs.h
<<EOF
9519 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9523 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
9529 case "$ac_cv_type_unsigned_long_long,$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in
9533 for ac_func
in strtoull
9535 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9536 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
9537 echo "configure:8434: checking for $ac_func" 1>&5
9538 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9539 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9541 cat >conftest.
$ac_ext <<EOF
9542 #line 8439 "configure"
9543 #include "confdefs.h"
9544 /* System header to define __stub macros and hopefully few prototypes,
9545 which can conflict with char $ac_func(); below. */
9547 /* Override any gcc2 internal prototype to avoid an error. */
9551 /* We use char because int might match the return type of a gcc2
9552 builtin and then its argument prototype would still apply. */
9560 /* The GNU C library defines this for functions which it implements
9561 to always fail with ENOSYS. Some functions are actually named
9562 something starting with __ and the normal name is an alias. */
9563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9573 if { (eval echo configure
:8467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9574 eval "$ac_ac_var=yes"
9576 echo "configure: failed program was:" >&5
9577 cat conftest.
$ac_ext >&5
9578 eval "$ac_ac_var=no"
9582 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
9583 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9584 cat >>confdefs.h
<<EOF
9585 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9589 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
9596 echo $ECHO_N "checking whether link(2) follows symlinks... $ECHO_C" 1>&6
9597 echo "configure:8488: checking whether link(2) follows symlinks" 1>&5
9598 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
9599 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9602 test -z "$ac_cv_header_unistd_h" \
9605 for ac_header
in unistd.h
9607 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9608 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
9609 echo "configure:8498: checking for $ac_header" 1>&5
9610 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9611 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9614 cat >conftest.
$ac_ext <<EOF
9615 #line 8503 "configure"
9616 #include "confdefs.h"
9617 #include <$ac_header>
9620 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9621 { (eval echo configure
:8508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9622 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9623 if test -z "$ac_err"; then
9624 eval "$ac_ac_Header=yes"
9627 echo "configure: failed program was:" >&5
9628 cat conftest.
$ac_ext >&5
9629 eval "$ac_ac_Header=no"
9633 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
9634 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9635 cat >>confdefs.h
<<EOF
9636 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9642 # Create a regular file.
9643 echo > conftest.
file
9644 if test "$cross_compiling" = yes; then
9645 jm_ac_cv_func_link_follows_symlink
=yes
9647 cat >conftest.
$ac_ext <<EOF
9648 #line 8533 "configure"
9649 #include "confdefs.h"
9651 # include <sys/types.h>
9652 # include <sys/stat.h>
9653 # ifdef HAVE_UNISTD_H
9654 # include <unistd.h>
9657 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
9658 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
9659 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
9664 const char *file = "conftest.file";
9665 const char *sym = "conftest.sym";
9666 const char *hard = "conftest.hard";
9667 struct stat sb_file, sb_hard;
9669 /* Create a symlink to the regular file. */
9670 if (symlink (file, sym))
9673 /* Create a hard link to that symlink. */
9674 if (link (sym, hard))
9677 if (lstat (hard, &sb_hard))
9679 if (lstat (file, &sb_file))
9682 /* If the dev/inode of hard and file are the same, then
9683 the link call followed the symlink. */
9684 return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
9688 if { (eval echo configure
:8565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
9689 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
9690 jm_ac_cv_func_link_follows_symlink
=yes
9692 echo "configure: failed program was:" >&5
9693 cat conftest.
$ac_ext >&5
9694 jm_ac_cv_func_link_follows_symlink
=no
9700 echo "$ECHO_T""$jm_ac_cv_func_link_follows_symlink" 1>&6
9701 if test $jm_ac_cv_func_link_follows_symlink = yes; then
9704 cat >>confdefs.h
<<\EOF
9705 #define LINK_FOLLOWS_SYMLINKS 1
9710 echo $ECHO_N "checking for error_at_line... $ECHO_C" 1>&6
9711 echo "configure:8584: checking for error_at_line" 1>&5
9712 if test "${am_cv_lib_error_at_line+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9715 cat >conftest.
$ac_ext <<EOF
9716 #line 8589 "configure"
9717 #include "confdefs.h"
9722 error_at_line(0, 0, "", 0, "");
9727 if { (eval echo configure
:8599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9728 am_cv_lib_error_at_line
=yes
9730 echo "configure: failed program was:" >&5
9731 cat conftest.
$ac_ext >&5
9732 am_cv_lib_error_at_line
=no
9736 echo "$ECHO_T""$am_cv_lib_error_at_line" 1>&6
9737 if test $am_cv_lib_error_at_line = no
; then
9738 LIBOBJS
="$LIBOBJS error.$ac_objext"
9743 for ac_func
in localtime_r
9745 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9746 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
9747 echo "configure:8617: checking for $ac_func" 1>&5
9748 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9749 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9751 cat >conftest.
$ac_ext <<EOF
9752 #line 8622 "configure"
9753 #include "confdefs.h"
9754 /* System header to define __stub macros and hopefully few prototypes,
9755 which can conflict with char $ac_func(); below. */
9757 /* Override any gcc2 internal prototype to avoid an error. */
9761 /* We use char because int might match the return type of a gcc2
9762 builtin and then its argument prototype would still apply. */
9770 /* The GNU C library defines this for functions which it implements
9771 to always fail with ENOSYS. Some functions are actually named
9772 something starting with __ and the normal name is an alias. */
9773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9783 if { (eval echo configure
:8650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9784 eval "$ac_ac_var=yes"
9786 echo "configure: failed program was:" >&5
9787 cat conftest.
$ac_ext >&5
9788 eval "$ac_ac_var=no"
9792 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
9793 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9794 cat >>confdefs.h
<<EOF
9795 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9803 for ac_header
in limits.h
9805 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9806 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
9807 echo "configure:8671: checking for $ac_header" 1>&5
9808 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9809 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9812 cat >conftest.
$ac_ext <<EOF
9813 #line 8676 "configure"
9814 #include "confdefs.h"
9815 #include <$ac_header>
9818 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9819 { (eval echo configure
:8681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9820 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9821 if test -z "$ac_err"; then
9822 eval "$ac_ac_Header=yes"
9825 echo "configure: failed program was:" >&5
9826 cat conftest.
$ac_ext >&5
9827 eval "$ac_ac_Header=no"
9831 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
9832 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9833 cat >>confdefs.h
<<EOF
9834 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9850 for ac_func
in bcopy tzset mempcpy memcpy memset
9852 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9853 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
9854 echo "configure:8709: checking for $ac_func" 1>&5
9855 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9856 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9858 cat >conftest.
$ac_ext <<EOF
9859 #line 8714 "configure"
9860 #include "confdefs.h"
9861 /* System header to define __stub macros and hopefully few prototypes,
9862 which can conflict with char $ac_func(); below. */
9864 /* Override any gcc2 internal prototype to avoid an error. */
9868 /* We use char because int might match the return type of a gcc2
9869 builtin and then its argument prototype would still apply. */
9877 /* The GNU C library defines this for functions which it implements
9878 to always fail with ENOSYS. Some functions are actually named
9879 something starting with __ and the normal name is an alias. */
9880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9890 if { (eval echo configure
:8742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9891 eval "$ac_ac_var=yes"
9893 echo "configure: failed program was:" >&5
9894 cat conftest.
$ac_ext >&5
9895 eval "$ac_ac_var=no"
9899 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
9900 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9901 cat >>confdefs.h
<<EOF
9902 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9908 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
9910 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" 1>&6
9911 echo "configure:8760: checking for struct tm.tm_zone" 1>&5
9912 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9913 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9915 cat >conftest.
$ac_ext <<EOF
9916 #line 8765 "configure"
9917 #include "confdefs.h"
9918 #include <sys/types.h>
9919 #include <$ac_cv_struct_tm>
9930 if { (eval echo configure
:8778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9931 ac_cv_member_struct_tm_tm_zone
=yes
9933 echo "configure: failed program was:" >&5
9934 cat conftest.
$ac_ext >&5
9935 ac_cv_member_struct_tm_tm_zone
=no
9939 echo "$ECHO_T""$ac_cv_member_struct_tm_tm_zone" 1>&6
9940 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9943 cat >>confdefs.h
<<EOF
9944 #define HAVE_STRUCT_TM_TM_ZONE 1
9949 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9952 cat >>confdefs.h
<<\EOF
9953 #define HAVE_TM_ZONE 1
9957 echo $ECHO_N "checking for tzname... $ECHO_C" 1>&6
9958 echo "configure:8801: checking for tzname" 1>&5
9959 if test "${ac_cv_var_tzname+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9962 cat >conftest.
$ac_ext <<EOF
9963 #line 8806 "configure"
9964 #include "confdefs.h"
9966 #ifndef tzname /* For SGI. */
9967 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9978 if { (eval echo configure
:8820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9979 ac_cv_var_tzname
=yes
9981 echo "configure: failed program was:" >&5
9982 cat conftest.
$ac_ext >&5
9987 echo "$ECHO_T""$ac_cv_var_tzname" 1>&6
9988 if test $ac_cv_var_tzname = yes; then
9991 cat >>confdefs.h
<<\EOF
9992 #define HAVE_TZNAME 1
10002 for ac_func
in mblen mbrlen
10004 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10005 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10006 echo "configure:8843: checking for $ac_func" 1>&5
10007 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10008 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10010 cat >conftest.
$ac_ext <<EOF
10011 #line 8848 "configure"
10012 #include "confdefs.h"
10013 /* System header to define __stub macros and hopefully few prototypes,
10014 which can conflict with char $ac_func(); below. */
10015 #include <assert.h>
10016 /* Override any gcc2 internal prototype to avoid an error. */
10020 /* We use char because int might match the return type of a gcc2
10021 builtin and then its argument prototype would still apply. */
10029 /* The GNU C library defines this for functions which it implements
10030 to always fail with ENOSYS. Some functions are actually named
10031 something starting with __ and the normal name is an alias. */
10032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10042 if { (eval echo configure
:8876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10043 eval "$ac_ac_var=yes"
10045 echo "configure: failed program was:" >&5
10046 cat conftest.
$ac_ext >&5
10047 eval "$ac_ac_var=no"
10051 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10052 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10053 cat >>confdefs.h
<<EOF
10054 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10060 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" 1>&6
10061 echo "configure:8893: checking for struct tm.tm_gmtoff" 1>&5
10062 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
10063 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10065 cat >conftest.
$ac_ext <<EOF
10066 #line 8898 "configure"
10067 #include "confdefs.h"
10079 if { (eval echo configure
:8910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10080 ac_cv_member_struct_tm_tm_gmtoff
=yes
10082 echo "configure: failed program was:" >&5
10083 cat conftest.
$ac_ext >&5
10084 ac_cv_member_struct_tm_tm_gmtoff
=no
10088 echo "$ECHO_T""$ac_cv_member_struct_tm_tm_gmtoff" 1>&6
10089 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
10092 cat >>confdefs.h
<<\EOF
10093 #define HAVE_TM_GMTOFF 1
10100 for ac_header
in sys
/time.h
10102 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
10103 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
10104 echo "configure:8931: checking for $ac_header" 1>&5
10105 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
10106 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10109 cat >conftest.
$ac_ext <<EOF
10110 #line 8936 "configure"
10111 #include "confdefs.h"
10112 #include <$ac_header>
10115 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10116 { (eval echo configure
:8941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10117 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10118 if test -z "$ac_err"; then
10119 eval "$ac_ac_Header=yes"
10122 echo "configure: failed program was:" >&5
10123 cat conftest.
$ac_ext >&5
10124 eval "$ac_ac_Header=no"
10128 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
10129 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
10130 cat >>confdefs.h
<<EOF
10131 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10137 echo $ECHO_N "checking for working GNU strftime... $ECHO_C" 1>&6
10138 echo "configure:8961: checking for working GNU strftime" 1>&5
10139 if test "${jm_cv_func_working_gnu_strftime+set}" = set; then
10140 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10142 # Set TZ to GMT0 to make strftime give consistent results during the test.
10143 ac_save_TZ
="${TZ-GMT0}"
10146 if test "$cross_compiling" = yes; then
10147 jm_cv_func_working_gnu_strftime
=no
10149 cat >conftest.
$ac_ext <<EOF
10150 #line 8973 "configure"
10151 #include "confdefs.h"
10152 /* Ulrich Drepper provided parts of the test program. */
10154 # include <stdlib.h>
10157 #if TIME_WITH_SYS_TIME
10158 # include <sys/time.h>
10161 # if HAVE_SYS_TIME_H
10162 # include <sys/time.h>
10169 compare (const char *fmt, const struct tm *tm, const char *expected)
10172 strftime (buf, 99, fmt, tm);
10173 if (strcmp (buf, expected))
10175 #ifdef SHOW_FAILURES
10176 printf ("fmt: \"%s\", expected \"%s\", got \"%s\"\n",
10177 fmt, expected, buf);
10189 time_t t = 738367; /* Fri Jan 9 13:06:07 1970 */
10193 #define CMP(Fmt, Expected) n_fail += compare ((Fmt), tm, (Expected))
10195 CMP ("%-m", "1"); /* GNU */
10196 CMP ("%A", "Friday");
10197 CMP ("%^A", "FRIDAY"); /* The ^ is a GNU extension. */
10198 CMP ("%B", "January");
10199 CMP ("%^B", "JANUARY");
10200 CMP ("%C", "19"); /* POSIX.2 */
10201 CMP ("%D", "01/09/70"); /* POSIX.2 */
10202 CMP ("%F", "1970-01-09");
10203 CMP ("%G", "1970"); /* GNU */
10208 CMP ("%R", "13:06"); /* POSIX.2 */
10210 CMP ("%T", "13:06:07"); /* POSIX.2 */
10214 CMP ("%X", "13:06:07");
10215 CMP ("%Y", "1970");
10217 CMP ("%_m", " 1"); /* GNU */
10219 CMP ("%^a", "FRI");
10221 CMP ("%^b", "JAN");
10222 CMP ("%c", "Fri Jan 9 13:06:07 1970");
10223 CMP ("%^c", "FRI JAN 9 13:06:07 1970");
10225 CMP ("%e", " 9"); /* POSIX.2 */
10226 CMP ("%g", "70"); /* GNU */
10227 CMP ("%h", "Jan"); /* POSIX.2 */
10228 CMP ("%^h", "JAN");
10230 CMP ("%k", "13"); /* GNU */
10231 CMP ("%l", " 1"); /* GNU */
10233 CMP ("%n", "\n"); /* POSIX.2 */
10235 CMP ("%r", "01:06:07 PM"); /* POSIX.2 */
10236 CMP ("%s", "738367"); /* GNU */
10237 CMP ("%t", "\t"); /* POSIX.2 */
10238 CMP ("%u", "5"); /* POSIX.2 */
10240 CMP ("%x", "01/09/70");
10242 CMP ("%z", "+0000"); /* GNU */
10244 exit (n_fail ? 1 : 0);
10247 if { (eval echo configure
:9064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
10248 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
10249 jm_cv_func_working_gnu_strftime
=yes
10251 echo "configure: failed program was:" >&5
10252 cat conftest.
$ac_ext >&5
10253 jm_cv_func_working_gnu_strftime
=no
10261 echo "$ECHO_T""$jm_cv_func_working_gnu_strftime" 1>&6
10262 if test $jm_cv_func_working_gnu_strftime = no
; then
10264 LIBOBJS
="$LIBOBJS strftime.$ac_objext"
10267 cat >>confdefs.h
<<EOF
10268 #define strftime gnu_strftime
10273 echo $ECHO_N "checking for vprintf... $ECHO_C" 1>&6
10274 echo "configure:9085: checking for vprintf" 1>&5
10275 if test "${ac_cv_func_vprintf+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10278 cat >conftest.
$ac_ext <<EOF
10279 #line 9090 "configure"
10280 #include "confdefs.h"
10281 /* System header to define __stub macros and hopefully few prototypes,
10282 which can conflict with char vprintf(); below. */
10283 #include <assert.h>
10284 /* Override any gcc2 internal prototype to avoid an error. */
10288 /* We use char because int might match the return type of a gcc2
10289 builtin and then its argument prototype would still apply. */
10297 /* The GNU C library defines this for functions which it implements
10298 to always fail with ENOSYS. Some functions are actually named
10299 something starting with __ and the normal name is an alias. */
10300 #if defined (__stub_vprintf) || defined (__stub___vprintf)
10310 if { (eval echo configure
:9118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10311 ac_cv_func_vprintf
=yes
10313 echo "configure: failed program was:" >&5
10314 cat conftest.
$ac_ext >&5
10315 ac_cv_func_vprintf
=no
10319 echo "$ECHO_T""$ac_cv_func_vprintf" 1>&6
10320 if test $ac_cv_func_vprintf = yes; then
10323 cat >>confdefs.h
<<\EOF
10324 #define HAVE_VPRINTF 1
10329 if test "$ac_cv_func_vprintf" != yes; then
10330 echo $ECHO_N "checking for _doprnt... $ECHO_C" 1>&6
10331 echo "configure:9136: checking for _doprnt" 1>&5
10332 if test "${ac_cv_func__doprnt+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10335 cat >conftest.
$ac_ext <<EOF
10336 #line 9141 "configure"
10337 #include "confdefs.h"
10338 /* System header to define __stub macros and hopefully few prototypes,
10339 which can conflict with char _doprnt(); below. */
10340 #include <assert.h>
10341 /* Override any gcc2 internal prototype to avoid an error. */
10345 /* We use char because int might match the return type of a gcc2
10346 builtin and then its argument prototype would still apply. */
10354 /* The GNU C library defines this for functions which it implements
10355 to always fail with ENOSYS. Some functions are actually named
10356 something starting with __ and the normal name is an alias. */
10357 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10367 if { (eval echo configure
:9169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10368 ac_cv_func__doprnt
=yes
10370 echo "configure: failed program was:" >&5
10371 cat conftest.
$ac_ext >&5
10372 ac_cv_func__doprnt
=no
10376 echo "$ECHO_T""$ac_cv_func__doprnt" 1>&6
10377 if test $ac_cv_func__doprnt = yes; then
10380 cat >>confdefs.h
<<\EOF
10381 #define HAVE_DOPRNT 1
10388 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" 1>&6
10389 echo "configure:9187: checking whether closedir returns void" 1>&5
10390 if test "${ac_cv_func_closedir_void+set}" = set; then
10391 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10393 if test "$cross_compiling" = yes; then
10394 ac_cv_func_closedir_void
=yes
10396 cat >conftest.
$ac_ext <<EOF
10397 #line 9195 "configure"
10398 #include "confdefs.h"
10399 #include <sys/types.h>
10400 #include <$ac_header_dirent>
10406 exit (closedir (opendir (".")) != 0);
10409 if { (eval echo configure
:9206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
10410 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
10411 ac_cv_func_closedir_void
=no
10413 echo "configure: failed program was:" >&5
10414 cat conftest.
$ac_ext >&5
10415 ac_cv_func_closedir_void
=yes
10421 echo "$ECHO_T""$ac_cv_func_closedir_void" 1>&6
10422 if test $ac_cv_func_closedir_void = yes; then
10425 cat >>confdefs.h
<<\EOF
10426 #define CLOSEDIR_VOID 1
10431 GNU_PACKAGE
="GNU $PACKAGE"
10434 cat >>confdefs.h
<<EOF
10435 #define GNU_PACKAGE "$GNU_PACKAGE"
10543 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
10544 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
10545 echo "configure:9301: checking for $ac_header" 1>&5
10546 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
10547 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10550 cat >conftest.
$ac_ext <<EOF
10551 #line 9306 "configure"
10552 #include "confdefs.h"
10553 #include <$ac_header>
10556 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10557 { (eval echo configure
:9311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10558 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10559 if test -z "$ac_err"; then
10560 eval "$ac_ac_Header=yes"
10563 echo "configure: failed program was:" >&5
10564 cat conftest.
$ac_ext >&5
10565 eval "$ac_ac_Header=no"
10569 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
10570 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
10571 cat >>confdefs.h
<<EOF
10572 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10578 # Assume we'll default to using the included regex.c.
10579 ac_use_included_regex
=yes
10581 # However, if the system regex support is good enough that it passes the
10582 # the following run test, then default to *not* using the included regex.c.
10583 # If cross compiling, assume the test would fail and use the included
10584 # regex.c. The first failing regular expression is from `Spencer ere
10585 # test #75' in grep-2.3.
10586 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" 1>&6
10587 echo "configure:9338: checking for working re_compile_pattern" 1>&5
10588 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10591 if test "$cross_compiling" = yes; then
10592 jm_cv_func_working_re_compile_pattern
=no
10594 cat >conftest.
$ac_ext <<EOF
10595 #line 9346 "configure"
10596 #include "confdefs.h"
10602 static struct re_pattern_buffer regex;
10604 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
10605 /* Add this third left square bracket, , to balance the
10606 three right ones below. Otherwise autoconf-2.14 chokes. */
10607 s = re_compile_pattern ("a[[:]:]b\n", 9, ®ex);
10608 /* This should fail with _Invalid character class name_ error. */
10612 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
10613 s = re_compile_pattern ("{1", 2, ®ex);
10619 if { (eval echo configure
:9368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
10620 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
10621 jm_cv_func_working_re_compile_pattern
=yes
10623 echo "configure: failed program was:" >&5
10624 cat conftest.
$ac_ext >&5
10625 jm_cv_func_working_re_compile_pattern
=no
10631 echo "$ECHO_T""$jm_cv_func_working_re_compile_pattern" 1>&6
10632 if test $jm_cv_func_working_re_compile_pattern = yes; then
10633 ac_use_included_regex
=no
10636 test -n "lib/regex.c" ||
{ echo "configure: error: missing argument" 1>&2; exit 1; }
10638 # Check whether --with-included-regex or --without-included-regex was given.
10639 if test "${with_included_regex+set}" = set; then
10640 withval
="$with_included_regex"
10641 jm_with_regex
=$withval
10643 jm_with_regex
=$ac_use_included_regex
10645 if test "$jm_with_regex" = yes; then
10647 LIBOBJS
="$LIBOBJS regex.$ac_objext"
10652 for ac_func
in strncasecmp
10654 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10655 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10656 echo "configure:9400: checking for $ac_func" 1>&5
10657 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10658 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10660 cat >conftest.
$ac_ext <<EOF
10661 #line 9405 "configure"
10662 #include "confdefs.h"
10663 /* System header to define __stub macros and hopefully few prototypes,
10664 which can conflict with char $ac_func(); below. */
10665 #include <assert.h>
10666 /* Override any gcc2 internal prototype to avoid an error. */
10670 /* We use char because int might match the return type of a gcc2
10671 builtin and then its argument prototype would still apply. */
10679 /* The GNU C library defines this for functions which it implements
10680 to always fail with ENOSYS. Some functions are actually named
10681 something starting with __ and the normal name is an alias. */
10682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10692 if { (eval echo configure
:9433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10693 eval "$ac_ac_var=yes"
10695 echo "configure: failed program was:" >&5
10696 cat conftest.
$ac_ext >&5
10697 eval "$ac_ac_var=no"
10701 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10702 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10703 cat >>confdefs.h
<<EOF
10704 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10708 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
10720 for ac_func
in stpcpy strstr strtol strtoul
10722 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10723 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10724 echo "configure:9459: checking for $ac_func" 1>&5
10725 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10726 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10728 cat >conftest.
$ac_ext <<EOF
10729 #line 9464 "configure"
10730 #include "confdefs.h"
10731 /* System header to define __stub macros and hopefully few prototypes,
10732 which can conflict with char $ac_func(); below. */
10733 #include <assert.h>
10734 /* Override any gcc2 internal prototype to avoid an error. */
10738 /* We use char because int might match the return type of a gcc2
10739 builtin and then its argument prototype would still apply. */
10747 /* The GNU C library defines this for functions which it implements
10748 to always fail with ENOSYS. Some functions are actually named
10749 something starting with __ and the normal name is an alias. */
10750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10760 if { (eval echo configure
:9492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10761 eval "$ac_ac_var=yes"
10763 echo "configure: failed program was:" >&5
10764 cat conftest.
$ac_ext >&5
10765 eval "$ac_ac_var=no"
10769 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10770 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10771 cat >>confdefs.h
<<EOF
10772 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10776 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
10782 for ac_func
in memcmp
10784 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10785 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10786 echo "configure:9515: checking for $ac_func" 1>&5
10787 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10788 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10790 cat >conftest.
$ac_ext <<EOF
10791 #line 9520 "configure"
10792 #include "confdefs.h"
10793 /* System header to define __stub macros and hopefully few prototypes,
10794 which can conflict with char $ac_func(); below. */
10795 #include <assert.h>
10796 /* Override any gcc2 internal prototype to avoid an error. */
10800 /* We use char because int might match the return type of a gcc2
10801 builtin and then its argument prototype would still apply. */
10809 /* The GNU C library defines this for functions which it implements
10810 to always fail with ENOSYS. Some functions are actually named
10811 something starting with __ and the normal name is an alias. */
10812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10822 if { (eval echo configure
:9548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10823 eval "$ac_ac_var=yes"
10825 echo "configure: failed program was:" >&5
10826 cat conftest.
$ac_ext >&5
10827 eval "$ac_ac_var=no"
10831 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10832 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10833 cat >>confdefs.h
<<EOF
10834 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10838 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
10844 for ac_func
in strdup
10846 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10847 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10848 echo "configure:9571: checking for $ac_func" 1>&5
10849 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10850 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10852 cat >conftest.
$ac_ext <<EOF
10853 #line 9576 "configure"
10854 #include "confdefs.h"
10855 /* System header to define __stub macros and hopefully few prototypes,
10856 which can conflict with char $ac_func(); below. */
10857 #include <assert.h>
10858 /* Override any gcc2 internal prototype to avoid an error. */
10862 /* We use char because int might match the return type of a gcc2
10863 builtin and then its argument prototype would still apply. */
10871 /* The GNU C library defines this for functions which it implements
10872 to always fail with ENOSYS. Some functions are actually named
10873 something starting with __ and the normal name is an alias. */
10874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10884 if { (eval echo configure
:9604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10885 eval "$ac_ac_var=yes"
10887 echo "configure: failed program was:" >&5
10888 cat conftest.
$ac_ext >&5
10889 eval "$ac_ac_var=no"
10893 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10894 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10895 cat >>confdefs.h
<<EOF
10896 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10900 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
10908 for ac_func
in memcpy memset
10910 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10911 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10912 echo "configure:9628: checking for $ac_func" 1>&5
10913 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10914 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10916 cat >conftest.
$ac_ext <<EOF
10917 #line 9633 "configure"
10918 #include "confdefs.h"
10919 /* System header to define __stub macros and hopefully few prototypes,
10920 which can conflict with char $ac_func(); below. */
10921 #include <assert.h>
10922 /* Override any gcc2 internal prototype to avoid an error. */
10926 /* We use char because int might match the return type of a gcc2
10927 builtin and then its argument prototype would still apply. */
10935 /* The GNU C library defines this for functions which it implements
10936 to always fail with ENOSYS. Some functions are actually named
10937 something starting with __ and the normal name is an alias. */
10938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10948 if { (eval echo configure
:9661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10949 eval "$ac_ac_var=yes"
10951 echo "configure: failed program was:" >&5
10952 cat conftest.
$ac_ext >&5
10953 eval "$ac_ac_var=no"
10957 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10958 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10959 cat >>confdefs.h
<<EOF
10960 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10964 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
10970 for ac_func
in getpagesize
10972 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10973 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10974 echo "configure:9684: checking for $ac_func" 1>&5
10975 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10976 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10978 cat >conftest.
$ac_ext <<EOF
10979 #line 9689 "configure"
10980 #include "confdefs.h"
10981 /* System header to define __stub macros and hopefully few prototypes,
10982 which can conflict with char $ac_func(); below. */
10983 #include <assert.h>
10984 /* Override any gcc2 internal prototype to avoid an error. */
10988 /* We use char because int might match the return type of a gcc2
10989 builtin and then its argument prototype would still apply. */
10997 /* The GNU C library defines this for functions which it implements
10998 to always fail with ENOSYS. Some functions are actually named
10999 something starting with __ and the normal name is an alias. */
11000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11010 if { (eval echo configure
:9717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11011 eval "$ac_ac_var=yes"
11013 echo "configure: failed program was:" >&5
11014 cat conftest.
$ac_ext >&5
11015 eval "$ac_ac_var=no"
11019 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11020 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11021 cat >>confdefs.h
<<EOF
11022 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11028 # By default, argmatch should fail calling usage (1).
11031 cat >>confdefs.h
<<\EOF
11032 #define ARGMATCH_DIE usage (1)
11037 cat >>confdefs.h
<<\EOF
11038 #define ARGMATCH_DIE_DECL extern void usage ()
11041 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" 1>&6
11042 echo "configure:9743: checking whether setvbuf arguments are reversed" 1>&5
11043 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11046 if test "$cross_compiling" = yes; then
11047 { echo "configure: error: cannot run test program while cross compiling" 1>&2; exit 1; }
11049 cat >conftest.
$ac_ext <<EOF
11050 #line 9751 "configure"
11051 #include "confdefs.h"
11053 /* If setvbuf has the reversed format, exit 0. */
11057 /* This call has the arguments reversed.
11058 A reversed system may check and see that the address of main
11059 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
11060 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
11062 putc('\r', stdout);
11063 exit(0); /* Non-reversed systems segv here. */
11066 if { (eval echo configure
:9767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
11067 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
11068 ac_cv_func_setvbuf_reversed
=yes
11070 echo "configure: failed program was:" >&5
11071 cat conftest.
$ac_ext >&5
11072 ac_cv_func_setvbuf_reversed
=no
11077 rm -f core core.
* *.core
11079 echo "$ECHO_T""$ac_cv_func_setvbuf_reversed" 1>&6
11080 if test $ac_cv_func_setvbuf_reversed = yes; then
11083 cat >>confdefs.h
<<\EOF
11084 #define SETVBUF_REVERSED 1
11089 # used by sleep and shred
11090 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
11091 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
11092 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" 1>&6
11093 echo "configure:9790: checking for library containing clock_gettime" 1>&5
11094 if test "${ac_cv_search_clock_gettime+set}" = set; then
11095 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11097 ac_func_search_save_LIBS
="$LIBS"
11098 ac_cv_search_clock_gettime
="no"
11099 cat >conftest.
$ac_ext <<EOF
11100 #line 9797 "configure"
11101 #include "confdefs.h"
11103 /* Override any gcc2 internal prototype to avoid an error. */
11107 /* We use char because int might match the return type of a gcc2
11108 builtin and then its argument prototype would still apply. */
11109 char clock_gettime ();
11118 if { (eval echo configure
:9814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11119 ac_cv_search_clock_gettime
="none required"
11121 echo "configure: failed program was:" >&5
11122 cat conftest.
$ac_ext >&5
11125 test "$ac_cv_search_clock_gettime" = "no" && for ac_lib
in rt posix4
; do
11126 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11127 cat >conftest.
$ac_ext <<EOF
11128 #line 9824 "configure"
11129 #include "confdefs.h"
11131 /* Override any gcc2 internal prototype to avoid an error. */
11135 /* We use char because int might match the return type of a gcc2
11136 builtin and then its argument prototype would still apply. */
11137 char clock_gettime ();
11146 if { (eval echo configure
:9841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11147 ac_cv_search_clock_gettime
="-l$ac_lib"
11150 echo "configure: failed program was:" >&5
11151 cat conftest.
$ac_ext >&5
11155 LIBS
="$ac_func_search_save_LIBS"
11157 echo "$ECHO_T""$ac_cv_search_clock_gettime" 1>&6
11158 if test "$ac_cv_search_clock_gettime" != "no"; then
11159 test "$ac_cv_search_clock_gettime" = "none required" || LIBS
="$ac_cv_search_clock_gettime $LIBS"
11165 for ac_func
in clock_gettime
11167 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11168 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11169 echo "configure:9861: checking for $ac_func" 1>&5
11170 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11171 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11173 cat >conftest.
$ac_ext <<EOF
11174 #line 9866 "configure"
11175 #include "confdefs.h"
11176 /* System header to define __stub macros and hopefully few prototypes,
11177 which can conflict with char $ac_func(); below. */
11178 #include <assert.h>
11179 /* Override any gcc2 internal prototype to avoid an error. */
11183 /* We use char because int might match the return type of a gcc2
11184 builtin and then its argument prototype would still apply. */
11192 /* The GNU C library defines this for functions which it implements
11193 to always fail with ENOSYS. Some functions are actually named
11194 something starting with __ and the normal name is an alias. */
11195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11205 if { (eval echo configure
:9894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11206 eval "$ac_ac_var=yes"
11208 echo "configure: failed program was:" >&5
11209 cat conftest.
$ac_ext >&5
11210 eval "$ac_ac_var=no"
11214 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11215 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11216 cat >>confdefs.h
<<EOF
11217 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11225 for ac_func
in gettimeofday
11227 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11228 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11229 echo "configure:9915: checking for $ac_func" 1>&5
11230 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11231 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11233 cat >conftest.
$ac_ext <<EOF
11234 #line 9920 "configure"
11235 #include "confdefs.h"
11236 /* System header to define __stub macros and hopefully few prototypes,
11237 which can conflict with char $ac_func(); below. */
11238 #include <assert.h>
11239 /* Override any gcc2 internal prototype to avoid an error. */
11243 /* We use char because int might match the return type of a gcc2
11244 builtin and then its argument prototype would still apply. */
11252 /* The GNU C library defines this for functions which it implements
11253 to always fail with ENOSYS. Some functions are actually named
11254 something starting with __ and the normal name is an alias. */
11255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11265 if { (eval echo configure
:9948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11266 eval "$ac_ac_var=yes"
11268 echo "configure: failed program was:" >&5
11269 cat conftest.
$ac_ext >&5
11270 eval "$ac_ac_var=no"
11274 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11275 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11276 cat >>confdefs.h
<<EOF
11277 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11285 for ac_func
in getdelim
11287 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11288 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11289 echo "configure:9969: checking for $ac_func" 1>&5
11290 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11291 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11293 cat >conftest.
$ac_ext <<EOF
11294 #line 9974 "configure"
11295 #include "confdefs.h"
11296 /* System header to define __stub macros and hopefully few prototypes,
11297 which can conflict with char $ac_func(); below. */
11298 #include <assert.h>
11299 /* Override any gcc2 internal prototype to avoid an error. */
11303 /* We use char because int might match the return type of a gcc2
11304 builtin and then its argument prototype would still apply. */
11312 /* The GNU C library defines this for functions which it implements
11313 to always fail with ENOSYS. Some functions are actually named
11314 something starting with __ and the normal name is an alias. */
11315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11325 if { (eval echo configure
:10002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11326 eval "$ac_ac_var=yes"
11328 echo "configure: failed program was:" >&5
11329 cat conftest.
$ac_ext >&5
11330 eval "$ac_ac_var=no"
11334 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11335 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11336 cat >>confdefs.h
<<EOF
11337 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11427 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11428 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11429 echo "configure:10076: checking for $ac_func" 1>&5
11430 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11431 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11433 cat >conftest.
$ac_ext <<EOF
11434 #line 10081 "configure"
11435 #include "confdefs.h"
11436 /* System header to define __stub macros and hopefully few prototypes,
11437 which can conflict with char $ac_func(); below. */
11438 #include <assert.h>
11439 /* Override any gcc2 internal prototype to avoid an error. */
11443 /* We use char because int might match the return type of a gcc2
11444 builtin and then its argument prototype would still apply. */
11452 /* The GNU C library defines this for functions which it implements
11453 to always fail with ENOSYS. Some functions are actually named
11454 something starting with __ and the normal name is an alias. */
11455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11465 if { (eval echo configure
:10109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11466 eval "$ac_ac_var=yes"
11468 echo "configure: failed program was:" >&5
11469 cat conftest.
$ac_ext >&5
11470 eval "$ac_ac_var=no"
11474 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11475 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11476 cat >>confdefs.h
<<EOF
11477 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11483 am_getline_needs_run_time_check
=no
11484 echo $ECHO_N "checking for getline... $ECHO_C" 1>&6
11485 echo "configure:10127: checking for getline" 1>&5
11486 if test "${ac_cv_func_getline+set}" = set; then
11487 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11489 cat >conftest.
$ac_ext <<EOF
11490 #line 10132 "configure"
11491 #include "confdefs.h"
11492 /* System header to define __stub macros and hopefully few prototypes,
11493 which can conflict with char getline(); below. */
11494 #include <assert.h>
11495 /* Override any gcc2 internal prototype to avoid an error. */
11499 /* We use char because int might match the return type of a gcc2
11500 builtin and then its argument prototype would still apply. */
11508 /* The GNU C library defines this for functions which it implements
11509 to always fail with ENOSYS. Some functions are actually named
11510 something starting with __ and the normal name is an alias. */
11511 #if defined (__stub_getline) || defined (__stub___getline)
11521 if { (eval echo configure
:10160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11522 ac_cv_func_getline
=yes
11524 echo "configure: failed program was:" >&5
11525 cat conftest.
$ac_ext >&5
11526 ac_cv_func_getline
=no
11530 echo "$ECHO_T""$ac_cv_func_getline" 1>&6
11531 if test $ac_cv_func_getline = yes; then
11532 am_getline_needs_run_time_check
=yes
11534 am_cv_func_working_getline
=no
11537 if test $am_getline_needs_run_time_check = yes; then
11540 for ac_header
in string.h
11542 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
11543 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
11544 echo "configure:10181: checking for $ac_header" 1>&5
11545 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
11546 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11549 cat >conftest.
$ac_ext <<EOF
11550 #line 10186 "configure"
11551 #include "confdefs.h"
11552 #include <$ac_header>
11555 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11556 { (eval echo configure
:10191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11557 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11558 if test -z "$ac_err"; then
11559 eval "$ac_ac_Header=yes"
11562 echo "configure: failed program was:" >&5
11563 cat conftest.
$ac_ext >&5
11564 eval "$ac_ac_Header=no"
11568 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
11569 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
11570 cat >>confdefs.h
<<EOF
11571 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
11577 echo $ECHO_N "checking for working getline function... $ECHO_C" 1>&6
11578 echo "configure:10211: checking for working getline function" 1>&5
11579 if test "${am_cv_func_working_getline+set}" = set; then
11580 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11582 echo fooN |
tr -d '\012'|
tr N
'\012' > conftest.data
11583 if test "$cross_compiling" = yes; then
11584 am_cv_func_working_getline
=no
11586 cat >conftest.
$ac_ext <<EOF
11587 #line 10220 "configure"
11588 #include "confdefs.h"
11590 # include <stdio.h>
11591 # include <sys/types.h>
11593 # include <string.h>
11596 { /* Based on a test program from Karl Heuer. */
11600 FILE *in = fopen ("./conftest.data", "r");
11603 len = getline (&line, &siz, in);
11604 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
11608 if { (eval echo configure
:10239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
11609 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
11610 am_cv_func_working_getline
=yes
11612 echo "configure: failed program was:" >&5
11613 cat conftest.
$ac_ext >&5
11614 am_cv_func_working_getline
=no
11620 echo "$ECHO_T""$am_cv_func_working_getline" 1>&6
11623 if test $am_cv_func_working_getline = yes; then
11626 cat >>confdefs.h
<<\EOF
11627 #define HAVE_GETLINE 1
11631 if test $am_cv_func_working_getline != yes; then
11634 for ac_func
in getdelim
11636 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11637 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11638 echo "configure:10264: checking for $ac_func" 1>&5
11639 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11640 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11642 cat >conftest.
$ac_ext <<EOF
11643 #line 10269 "configure"
11644 #include "confdefs.h"
11645 /* System header to define __stub macros and hopefully few prototypes,
11646 which can conflict with char $ac_func(); below. */
11647 #include <assert.h>
11648 /* Override any gcc2 internal prototype to avoid an error. */
11652 /* We use char because int might match the return type of a gcc2
11653 builtin and then its argument prototype would still apply. */
11661 /* The GNU C library defines this for functions which it implements
11662 to always fail with ENOSYS. Some functions are actually named
11663 something starting with __ and the normal name is an alias. */
11664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11674 if { (eval echo configure
:10297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11675 eval "$ac_ac_var=yes"
11677 echo "configure: failed program was:" >&5
11678 cat conftest.
$ac_ext >&5
11679 eval "$ac_ac_var=no"
11683 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11684 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11685 cat >>confdefs.h
<<EOF
11686 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11704 for ac_func
in fchdir getcwd strerror endgrent endpwent
11706 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11707 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11708 echo "configure:10323: checking for $ac_func" 1>&5
11709 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11710 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11712 cat >conftest.
$ac_ext <<EOF
11713 #line 10328 "configure"
11714 #include "confdefs.h"
11715 /* System header to define __stub macros and hopefully few prototypes,
11716 which can conflict with char $ac_func(); below. */
11717 #include <assert.h>
11718 /* Override any gcc2 internal prototype to avoid an error. */
11722 /* We use char because int might match the return type of a gcc2
11723 builtin and then its argument prototype would still apply. */
11731 /* The GNU C library defines this for functions which it implements
11732 to always fail with ENOSYS. Some functions are actually named
11733 something starting with __ and the normal name is an alias. */
11734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11744 if { (eval echo configure
:10356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11745 eval "$ac_ac_var=yes"
11747 echo "configure: failed program was:" >&5
11748 cat conftest.
$ac_ext >&5
11749 eval "$ac_ac_var=no"
11753 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11754 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11755 cat >>confdefs.h
<<EOF
11756 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11762 echo $ECHO_N "checking for vprintf... $ECHO_C" 1>&6
11763 echo "configure:10373: checking for vprintf" 1>&5
11764 if test "${ac_cv_func_vprintf+set}" = set; then
11765 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11767 cat >conftest.
$ac_ext <<EOF
11768 #line 10378 "configure"
11769 #include "confdefs.h"
11770 /* System header to define __stub macros and hopefully few prototypes,
11771 which can conflict with char vprintf(); below. */
11772 #include <assert.h>
11773 /* Override any gcc2 internal prototype to avoid an error. */
11777 /* We use char because int might match the return type of a gcc2
11778 builtin and then its argument prototype would still apply. */
11786 /* The GNU C library defines this for functions which it implements
11787 to always fail with ENOSYS. Some functions are actually named
11788 something starting with __ and the normal name is an alias. */
11789 #if defined (__stub_vprintf) || defined (__stub___vprintf)
11799 if { (eval echo configure
:10406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11800 ac_cv_func_vprintf
=yes
11802 echo "configure: failed program was:" >&5
11803 cat conftest.
$ac_ext >&5
11804 ac_cv_func_vprintf
=no
11808 echo "$ECHO_T""$ac_cv_func_vprintf" 1>&6
11809 if test $ac_cv_func_vprintf = yes; then
11812 cat >>confdefs.h
<<\EOF
11813 #define HAVE_VPRINTF 1
11818 if test "$ac_cv_func_vprintf" != yes; then
11819 echo $ECHO_N "checking for _doprnt... $ECHO_C" 1>&6
11820 echo "configure:10424: checking for _doprnt" 1>&5
11821 if test "${ac_cv_func__doprnt+set}" = set; then
11822 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11824 cat >conftest.
$ac_ext <<EOF
11825 #line 10429 "configure"
11826 #include "confdefs.h"
11827 /* System header to define __stub macros and hopefully few prototypes,
11828 which can conflict with char _doprnt(); below. */
11829 #include <assert.h>
11830 /* Override any gcc2 internal prototype to avoid an error. */
11834 /* We use char because int might match the return type of a gcc2
11835 builtin and then its argument prototype would still apply. */
11843 /* The GNU C library defines this for functions which it implements
11844 to always fail with ENOSYS. Some functions are actually named
11845 something starting with __ and the normal name is an alias. */
11846 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11856 if { (eval echo configure
:10457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11857 ac_cv_func__doprnt
=yes
11859 echo "configure: failed program was:" >&5
11860 cat conftest.
$ac_ext >&5
11861 ac_cv_func__doprnt
=no
11865 echo "$ECHO_T""$ac_cv_func__doprnt" 1>&6
11866 if test $ac_cv_func__doprnt = yes; then
11869 cat >>confdefs.h
<<\EOF
11870 #define HAVE_DOPRNT 1
11879 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11880 # for constant arguments. Useless!
11881 echo $ECHO_N "checking for working alloca.h... $ECHO_C" 1>&6
11882 echo "configure:10478: checking for working alloca.h" 1>&5
11883 if test "${ac_cv_working_alloca_h+set}" = set; then
11884 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11886 cat >conftest.
$ac_ext <<EOF
11887 #line 10483 "configure"
11888 #include "confdefs.h"
11889 #include <alloca.h>
11893 char *p = (char *) alloca (2 * sizeof (int));
11898 if { (eval echo configure
:10494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11899 ac_cv_working_alloca_h
=yes
11901 echo "configure: failed program was:" >&5
11902 cat conftest.
$ac_ext >&5
11903 ac_cv_working_alloca_h
=no
11907 echo "$ECHO_T""$ac_cv_working_alloca_h" 1>&6
11908 if test $ac_cv_working_alloca_h = yes; then
11911 cat >>confdefs.h
<<\EOF
11912 #define HAVE_ALLOCA_H 1
11917 echo $ECHO_N "checking for alloca... $ECHO_C" 1>&6
11918 echo "configure:10511: checking for alloca" 1>&5
11919 if test "${ac_cv_func_alloca_works+set}" = set; then
11920 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11922 cat >conftest.
$ac_ext <<EOF
11923 #line 10516 "configure"
11924 #include "confdefs.h"
11926 # define alloca __builtin_alloca
11929 # include <malloc.h>
11930 # define alloca _alloca
11933 # include <alloca.h>
11938 # ifndef alloca /* predefined by HP cc +Olibcalls */
11949 char *p = (char *) alloca(1);
11954 if { (eval echo configure
:10546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11955 ac_cv_func_alloca_works
=yes
11957 echo "configure: failed program was:" >&5
11958 cat conftest.
$ac_ext >&5
11959 ac_cv_func_alloca_works
=no
11963 echo "$ECHO_T""$ac_cv_func_alloca_works" 1>&6
11964 if test $ac_cv_func_alloca_works = yes; then
11967 cat >>confdefs.h
<<\EOF
11968 #define HAVE_ALLOCA 1
11973 if test $ac_cv_func_alloca_works = no
; then
11974 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11975 # that cause trouble. Some versions do not even contain alloca or
11976 # contain a buggy version. If you still want to use their alloca,
11977 # use ar to extract alloca.o from them instead of compiling alloca.c.
11978 ALLOCA
=alloca.
${ac_objext}
11981 cat >>confdefs.h
<<\EOF
11985 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" 1>&6
11986 echo "configure:10573: checking whether alloca needs Cray hooks" 1>&5
11987 if test "${ac_cv_os_cray+set}" = set; then
11988 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11991 cat >conftest.
$ac_ext <<EOF
11992 #line 10578 "configure"
11993 #include "confdefs.h"
11994 #if defined(CRAY) && ! defined(CRAY2)
12001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12002 egrep "webecray" >/dev
/null
2>&1; then
12010 echo "$ECHO_T""$ac_cv_os_cray" 1>&6
12011 if test $ac_cv_os_cray = yes; then
12012 for ac_func
in _getb67 GETB67 getb67
; do
12013 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12014 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
12015 echo "configure:10599: checking for $ac_func" 1>&5
12016 if eval "test \"\${$ac_ac_var+set}\" = set"; then
12017 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12019 cat >conftest.
$ac_ext <<EOF
12020 #line 10604 "configure"
12021 #include "confdefs.h"
12022 /* System header to define __stub macros and hopefully few prototypes,
12023 which can conflict with char $ac_func(); below. */
12024 #include <assert.h>
12025 /* Override any gcc2 internal prototype to avoid an error. */
12029 /* We use char because int might match the return type of a gcc2
12030 builtin and then its argument prototype would still apply. */
12038 /* The GNU C library defines this for functions which it implements
12039 to always fail with ENOSYS. Some functions are actually named
12040 something starting with __ and the normal name is an alias. */
12041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12051 if { (eval echo configure
:10632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12052 eval "$ac_ac_var=yes"
12054 echo "configure: failed program was:" >&5
12055 cat conftest.
$ac_ext >&5
12056 eval "$ac_ac_var=no"
12060 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
12061 if test `eval echo '${'$ac_ac_var'}'` = yes; then
12064 cat >>confdefs.h
<<EOF
12065 #define CRAY_STACKSEG_END $ac_func
12074 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" 1>&6
12075 echo "configure:10652: checking stack direction for C alloca" 1>&5
12076 if test "${ac_cv_c_stack_direction+set}" = set; then
12077 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12079 if test "$cross_compiling" = yes; then
12080 ac_cv_c_stack_direction
=0
12082 cat >conftest.
$ac_ext <<EOF
12083 #line 10660 "configure"
12084 #include "confdefs.h"
12085 find_stack_direction ()
12087 static char *addr = 0;
12092 return find_stack_direction ();
12095 return (&dummy > addr) ? 1 : -1;
12101 exit (find_stack_direction () < 0);
12104 if { (eval echo configure
:10680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
12105 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
12106 ac_cv_c_stack_direction
=1
12108 echo "configure: failed program was:" >&5
12109 cat conftest.
$ac_ext >&5
12110 ac_cv_c_stack_direction
=-1
12116 echo "$ECHO_T""$ac_cv_c_stack_direction" 1>&6
12117 cat >>confdefs.h
<<EOF
12118 #define STACK_DIRECTION $ac_cv_c_stack_direction
12123 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
12126 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" 1>&6
12127 echo "configure:10699: checking for getmntent in -lsun" 1>&5
12128 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
12129 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12131 ac_save_LIBS
="$LIBS"
12133 cat >conftest.
$ac_ext <<EOF
12134 #line 10706 "configure"
12135 #include "confdefs.h"
12137 /* Override any gcc2 internal prototype to avoid an error. */
12141 /* We use char because int might match the return type of a gcc2
12142 builtin and then its argument prototype would still apply. */
12152 if { (eval echo configure
:10723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12153 ac_cv_lib_sun_getmntent
=yes
12155 echo "configure: failed program was:" >&5
12156 cat conftest.
$ac_ext >&5
12157 ac_cv_lib_sun_getmntent
=no
12160 LIBS
="$ac_save_LIBS"
12162 echo "$ECHO_T""$ac_cv_lib_sun_getmntent" 1>&6
12163 if test $ac_cv_lib_sun_getmntent = yes; then
12168 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" 1>&6
12169 echo "configure:10739: checking for getmntent in -lseq" 1>&5
12170 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
12171 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12173 ac_save_LIBS
="$LIBS"
12175 cat >conftest.
$ac_ext <<EOF
12176 #line 10746 "configure"
12177 #include "confdefs.h"
12179 /* Override any gcc2 internal prototype to avoid an error. */
12183 /* We use char because int might match the return type of a gcc2
12184 builtin and then its argument prototype would still apply. */
12194 if { (eval echo configure
:10763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12195 ac_cv_lib_seq_getmntent
=yes
12197 echo "configure: failed program was:" >&5
12198 cat conftest.
$ac_ext >&5
12199 ac_cv_lib_seq_getmntent
=no
12202 LIBS
="$ac_save_LIBS"
12204 echo "$ECHO_T""$ac_cv_lib_seq_getmntent" 1>&6
12205 if test $ac_cv_lib_seq_getmntent = yes; then
12210 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" 1>&6
12211 echo "configure:10779: checking for getmntent in -lgen" 1>&5
12212 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12215 ac_save_LIBS
="$LIBS"
12217 cat >conftest.
$ac_ext <<EOF
12218 #line 10786 "configure"
12219 #include "confdefs.h"
12221 /* Override any gcc2 internal prototype to avoid an error. */
12225 /* We use char because int might match the return type of a gcc2
12226 builtin and then its argument prototype would still apply. */
12236 if { (eval echo configure
:10803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12237 ac_cv_lib_gen_getmntent
=yes
12239 echo "configure: failed program was:" >&5
12240 cat conftest.
$ac_ext >&5
12241 ac_cv_lib_gen_getmntent
=no
12244 LIBS
="$ac_save_LIBS"
12246 echo "$ECHO_T""$ac_cv_lib_gen_getmntent" 1>&6
12247 if test $ac_cv_lib_gen_getmntent = yes; then
12255 echo $ECHO_N "checking for getmntent... $ECHO_C" 1>&6
12256 echo "configure:10820: checking for getmntent" 1>&5
12257 if test "${ac_cv_func_getmntent+set}" = set; then
12258 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12260 cat >conftest.
$ac_ext <<EOF
12261 #line 10825 "configure"
12262 #include "confdefs.h"
12263 /* System header to define __stub macros and hopefully few prototypes,
12264 which can conflict with char getmntent(); below. */
12265 #include <assert.h>
12266 /* Override any gcc2 internal prototype to avoid an error. */
12270 /* We use char because int might match the return type of a gcc2
12271 builtin and then its argument prototype would still apply. */
12279 /* The GNU C library defines this for functions which it implements
12280 to always fail with ENOSYS. Some functions are actually named
12281 something starting with __ and the normal name is an alias. */
12282 #if defined (__stub_getmntent) || defined (__stub___getmntent)
12292 if { (eval echo configure
:10853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12293 ac_cv_func_getmntent
=yes
12295 echo "configure: failed program was:" >&5
12296 cat conftest.
$ac_ext >&5
12297 ac_cv_func_getmntent
=no
12301 echo "$ECHO_T""$ac_cv_func_getmntent" 1>&6
12302 if test $ac_cv_func_getmntent = yes; then
12305 cat >>confdefs.h
<<\EOF
12306 #define HAVE_GETMNTENT 1
12311 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" 1>&6
12312 echo "configure:10870: checking whether closedir returns void" 1>&5
12313 if test "${ac_cv_func_closedir_void+set}" = set; then
12314 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12316 if test "$cross_compiling" = yes; then
12317 ac_cv_func_closedir_void
=yes
12319 cat >conftest.
$ac_ext <<EOF
12320 #line 10878 "configure"
12321 #include "confdefs.h"
12322 #include <sys/types.h>
12323 #include <$ac_header_dirent>
12329 exit (closedir (opendir (".")) != 0);
12332 if { (eval echo configure
:10889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
12333 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
12334 ac_cv_func_closedir_void
=no
12336 echo "configure: failed program was:" >&5
12337 cat conftest.
$ac_ext >&5
12338 ac_cv_func_closedir_void
=yes
12344 echo "$ECHO_T""$ac_cv_func_closedir_void" 1>&6
12345 if test $ac_cv_func_closedir_void = yes; then
12348 cat >>confdefs.h
<<\EOF
12349 #define CLOSEDIR_VOID 1
12360 for ac_header
in stdlib.h unistd.h sys
/stat.h
12362 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
12363 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
12364 echo "configure:10914: checking for $ac_header" 1>&5
12365 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
12366 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12369 cat >conftest.
$ac_ext <<EOF
12370 #line 10919 "configure"
12371 #include "confdefs.h"
12372 #include <$ac_header>
12375 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12376 { (eval echo configure
:10924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12377 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12378 if test -z "$ac_err"; then
12379 eval "$ac_ac_Header=yes"
12382 echo "configure: failed program was:" >&5
12383 cat conftest.
$ac_ext >&5
12384 eval "$ac_ac_Header=no"
12388 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
12389 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
12390 cat >>confdefs.h
<<EOF
12391 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
12399 for ac_func
in getpagesize
12401 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12402 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
12403 echo "configure:10948: checking for $ac_func" 1>&5
12404 if eval "test \"\${$ac_ac_var+set}\" = set"; then
12405 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12407 cat >conftest.
$ac_ext <<EOF
12408 #line 10953 "configure"
12409 #include "confdefs.h"
12410 /* System header to define __stub macros and hopefully few prototypes,
12411 which can conflict with char $ac_func(); below. */
12412 #include <assert.h>
12413 /* Override any gcc2 internal prototype to avoid an error. */
12417 /* We use char because int might match the return type of a gcc2
12418 builtin and then its argument prototype would still apply. */
12426 /* The GNU C library defines this for functions which it implements
12427 to always fail with ENOSYS. Some functions are actually named
12428 something starting with __ and the normal name is an alias. */
12429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12439 if { (eval echo configure
:10981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12440 eval "$ac_ac_var=yes"
12442 echo "configure: failed program was:" >&5
12443 cat conftest.
$ac_ext >&5
12444 eval "$ac_ac_var=no"
12448 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
12449 if test `eval echo '${'$ac_ac_var'}'` = yes; then
12450 cat >>confdefs.h
<<EOF
12451 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
12457 echo $ECHO_N "checking for working mmap... $ECHO_C" 1>&6
12458 echo "configure:10998: checking for working mmap" 1>&5
12459 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12460 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12462 if test "$cross_compiling" = yes; then
12463 ac_cv_func_mmap_fixed_mapped
=no
12465 cat >conftest.
$ac_ext <<EOF
12466 #line 11006 "configure"
12467 #include "confdefs.h"
12468 /* Thanks to Mike Haertel and Jim Avera for this test.
12469 Here is a matrix of mmap possibilities:
12470 mmap private not fixed
12471 mmap private fixed at somewhere currently unmapped
12472 mmap private fixed at somewhere already mapped
12473 mmap shared not fixed
12474 mmap shared fixed at somewhere currently unmapped
12475 mmap shared fixed at somewhere already mapped
12476 For private mappings, we should verify that changes cannot be read()
12477 back from the file, nor mmap's back from the file at a different
12478 address. (There have been systems where private was not correctly
12479 implemented like the infamous i386 svr4.0, and systems where the
12480 VM page cache was not coherent with the file system buffer cache
12481 like early versions of FreeBSD and possibly contemporary NetBSD.)
12482 For shared mappings, we should conversely verify that changes get
12483 propogated back to all the places they're supposed to be.
12485 Grep wants private fixed already mapped.
12486 The main things grep needs to know about mmap are:
12487 * does it exist and is it safe to write into the mmap'd area
12488 * how to use it (BSD variants) */
12489 #include <sys/types.h>
12491 #include <sys/mman.h>
12494 # include <stdlib.h>
12499 # include <unistd.h>
12501 #if HAVE_SYS_STAT_H
12502 # include <sys/stat.h>
12505 /* This mess was copied from the GNU getpagesize.h. */
12506 #if !HAVE_GETPAGESIZE
12507 /* Assume that all systems that can run configure have sys/param.h. */
12508 # if !HAVE_SYS_PARAM_H
12509 # define HAVE_SYS_PARAM_H 1
12512 # ifdef _SC_PAGESIZE
12513 # define getpagesize() sysconf(_SC_PAGESIZE)
12514 # else /* no _SC_PAGESIZE */
12515 # if HAVE_SYS_PARAM_H
12516 # include <sys/param.h>
12517 # ifdef EXEC_PAGESIZE
12518 # define getpagesize() EXEC_PAGESIZE
12519 # else /* no EXEC_PAGESIZE */
12521 # define getpagesize() NBPG * CLSIZE
12524 # endif /* no CLSIZE */
12525 # else /* no NBPG */
12527 # define getpagesize() NBPC
12528 # else /* no NBPC */
12530 # define getpagesize() PAGESIZE
12531 # endif /* PAGESIZE */
12532 # endif /* no NBPC */
12533 # endif /* no NBPG */
12534 # endif /* no EXEC_PAGESIZE */
12535 # else /* no HAVE_SYS_PARAM_H */
12536 # define getpagesize() 8192 /* punt totally */
12537 # endif /* no HAVE_SYS_PARAM_H */
12538 # endif /* no _SC_PAGESIZE */
12540 #endif /* no HAVE_GETPAGESIZE */
12545 char *data, *data2, *data3;
12549 pagesize = getpagesize ();
12551 /* First, make a file with some known garbage in it. */
12552 data = (char *) malloc (pagesize);
12555 for (i = 0; i < pagesize; ++i)
12556 *(data + i) = rand ();
12558 fd = creat ("conftestmmap", 0600);
12561 if (write (fd, data, pagesize) != pagesize)
12565 /* Next, try to mmap the file at a fixed address which already has
12566 something else allocated at it. If we can, also make sure that
12567 we see the same garbage. */
12568 fd = open ("conftestmmap", O_RDWR);
12571 data2 = (char *) malloc (2 * pagesize);
12574 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
12575 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12576 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12578 for (i = 0; i < pagesize; ++i)
12579 if (*(data + i) != *(data2 + i))
12582 /* Finally, make sure that changes to the mapped area do not
12583 percolate back to the file as seen by read(). (This is a bug on
12584 some variants of i386 svr4.0.) */
12585 for (i = 0; i < pagesize; ++i)
12586 *(data2 + i) = *(data2 + i) + 1;
12587 data3 = (char *) malloc (pagesize);
12590 if (read (fd, data3, pagesize) != pagesize)
12592 for (i = 0; i < pagesize; ++i)
12593 if (*(data + i) != *(data3 + i))
12596 unlink ("conftestmmap");
12600 if { (eval echo configure
:11130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
12601 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
12602 ac_cv_func_mmap_fixed_mapped
=yes
12604 echo "configure: failed program was:" >&5
12605 cat conftest.
$ac_ext >&5
12606 ac_cv_func_mmap_fixed_mapped
=no
12612 echo "$ECHO_T""$ac_cv_func_mmap_fixed_mapped" 1>&6
12613 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12616 cat >>confdefs.h
<<\EOF
12617 #define HAVE_MMAP 1
12638 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
12639 unistd.h sys
/param.h
12641 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
12642 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
12643 echo "configure:11161: checking for $ac_header" 1>&5
12644 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
12645 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12648 cat >conftest.
$ac_ext <<EOF
12649 #line 11166 "configure"
12650 #include "confdefs.h"
12651 #include <$ac_header>
12654 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12655 { (eval echo configure
:11171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12656 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12657 if test -z "$ac_err"; then
12658 eval "$ac_ac_Header=yes"
12661 echo "configure: failed program was:" >&5
12662 cat conftest.
$ac_ext >&5
12663 eval "$ac_ac_Header=no"
12667 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
12668 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
12669 cat >>confdefs.h
<<EOF
12670 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
12698 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
12699 strdup __argz_count __argz_stringify __argz_next
12701 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12702 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
12703 echo "configure:11206: checking for $ac_func" 1>&5
12704 if eval "test \"\${$ac_ac_var+set}\" = set"; then
12705 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12707 cat >conftest.
$ac_ext <<EOF
12708 #line 11211 "configure"
12709 #include "confdefs.h"
12710 /* System header to define __stub macros and hopefully few prototypes,
12711 which can conflict with char $ac_func(); below. */
12712 #include <assert.h>
12713 /* Override any gcc2 internal prototype to avoid an error. */
12717 /* We use char because int might match the return type of a gcc2
12718 builtin and then its argument prototype would still apply. */
12726 /* The GNU C library defines this for functions which it implements
12727 to always fail with ENOSYS. Some functions are actually named
12728 something starting with __ and the normal name is an alias. */
12729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12739 if { (eval echo configure
:11239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12740 eval "$ac_ac_var=yes"
12742 echo "configure: failed program was:" >&5
12743 cat conftest.
$ac_ext >&5
12744 eval "$ac_ac_var=no"
12748 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
12749 if test `eval echo '${'$ac_ac_var'}'` = yes; then
12750 cat >>confdefs.h
<<EOF
12751 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
12757 if test "${ac_cv_func_stpcpy+set}" != "set"; then
12760 for ac_func
in stpcpy
12762 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12763 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
12764 echo "configure:11261: checking for $ac_func" 1>&5
12765 if eval "test \"\${$ac_ac_var+set}\" = set"; then
12766 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12768 cat >conftest.
$ac_ext <<EOF
12769 #line 11266 "configure"
12770 #include "confdefs.h"
12771 /* System header to define __stub macros and hopefully few prototypes,
12772 which can conflict with char $ac_func(); below. */
12773 #include <assert.h>
12774 /* Override any gcc2 internal prototype to avoid an error. */
12778 /* We use char because int might match the return type of a gcc2
12779 builtin and then its argument prototype would still apply. */
12787 /* The GNU C library defines this for functions which it implements
12788 to always fail with ENOSYS. Some functions are actually named
12789 something starting with __ and the normal name is an alias. */
12790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12800 if { (eval echo configure
:11294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12801 eval "$ac_ac_var=yes"
12803 echo "configure: failed program was:" >&5
12804 cat conftest.
$ac_ext >&5
12805 eval "$ac_ac_var=no"
12809 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
12810 if test `eval echo '${'$ac_ac_var'}'` = yes; then
12811 cat >>confdefs.h
<<EOF
12812 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
12819 if test "${ac_cv_func_stpcpy}" = "yes"; then
12822 cat >>confdefs.h
<<\EOF
12823 #define HAVE_STPCPY 1
12828 if test $ac_cv_header_locale_h = yes; then
12829 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" 1>&6
12830 echo "configure:11319: checking for LC_MESSAGES" 1>&5
12831 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12834 cat >conftest.
$ac_ext <<EOF
12835 #line 11324 "configure"
12836 #include "confdefs.h"
12837 #include <locale.h>
12846 if { (eval echo configure
:11335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12847 am_cv_val_LC_MESSAGES
=yes
12849 echo "configure: failed program was:" >&5
12850 cat conftest.
$ac_ext >&5
12851 am_cv_val_LC_MESSAGES
=no
12855 echo "$ECHO_T""$am_cv_val_LC_MESSAGES" 1>&6
12856 if test $am_cv_val_LC_MESSAGES = yes; then
12859 cat >>confdefs.h
<<\EOF
12860 #define HAVE_LC_MESSAGES 1
12865 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" 1>&6
12866 echo "configure:11353: checking whether NLS is requested" 1>&5
12867 # Check whether --enable-nls or --disable-nls was given.
12868 if test "${enable_nls+set}" = set; then
12869 enableval
="$enable_nls"
12874 echo "$ECHO_T""$USE_NLS" 1>&6
12876 USE_INCLUDED_LIBINTL
=no
12878 if test "$USE_NLS" = "yes"; then
12881 cat >>confdefs.h
<<\EOF
12882 #define ENABLE_NLS 1
12885 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" 1>&6
12886 echo "configure:11369: checking whether included gettext is requested" 1>&5
12887 # Check whether --with-included-gettext or --without-included-gettext was given.
12888 if test "${with_included_gettext+set}" = set; then
12889 withval
="$with_included_gettext"
12890 nls_cv_force_use_gnu_gettext
=$withval
12892 nls_cv_force_use_gnu_gettext
=no
12894 echo "$ECHO_T""$nls_cv_force_use_gnu_gettext" 1>&6
12896 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
12897 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12898 nls_cv_header_intl
=
12899 nls_cv_header_libgt
=
12902 echo $ECHO_N "checking for libintl.h... $ECHO_C" 1>&6
12903 echo "configure:11384: checking for libintl.h" 1>&5
12904 if test "${ac_cv_header_libintl_h+set}" = set; then
12905 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12908 cat >conftest.
$ac_ext <<EOF
12909 #line 11389 "configure"
12910 #include "confdefs.h"
12911 #include <libintl.h>
12914 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12915 { (eval echo configure
:11394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12916 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12917 if test -z "$ac_err"; then
12918 ac_cv_header_libintl_h
=yes
12921 echo "configure: failed program was:" >&5
12922 cat conftest.
$ac_ext >&5
12923 ac_cv_header_libintl_h
=no
12927 echo "$ECHO_T""$ac_cv_header_libintl_h" 1>&6
12928 if test $ac_cv_header_libintl_h = yes; then
12929 echo $ECHO_N "checking for gettext in libc... $ECHO_C" 1>&6
12930 echo "configure:11409: checking for gettext in libc" 1>&5
12931 if test "${gt_cv_func_gettext_libc+set}" = set; then
12932 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12934 cat >conftest.
$ac_ext <<EOF
12935 #line 11414 "configure"
12936 #include "confdefs.h"
12937 #include <libintl.h>
12941 return (int) gettext ("")
12946 if { (eval echo configure
:11425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12947 gt_cv_func_gettext_libc
=yes
12949 echo "configure: failed program was:" >&5
12950 cat conftest.
$ac_ext >&5
12951 gt_cv_func_gettext_libc
=no
12955 echo "$ECHO_T""$gt_cv_func_gettext_libc" 1>&6
12957 if test "$gt_cv_func_gettext_libc" != "yes"; then
12960 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" 1>&6
12961 echo "configure:11438: checking for bindtextdomain in -lintl" 1>&5
12962 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
12963 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12965 ac_save_LIBS
="$LIBS"
12966 LIBS
="-lintl $LIBS"
12967 cat >conftest.
$ac_ext <<EOF
12968 #line 11445 "configure"
12969 #include "confdefs.h"
12971 /* Override any gcc2 internal prototype to avoid an error. */
12975 /* We use char because int might match the return type of a gcc2
12976 builtin and then its argument prototype would still apply. */
12977 char bindtextdomain ();
12986 if { (eval echo configure
:11462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12987 ac_cv_lib_intl_bindtextdomain
=yes
12989 echo "configure: failed program was:" >&5
12990 cat conftest.
$ac_ext >&5
12991 ac_cv_lib_intl_bindtextdomain
=no
12994 LIBS
="$ac_save_LIBS"
12996 echo "$ECHO_T""$ac_cv_lib_intl_bindtextdomain" 1>&6
12997 if test $ac_cv_lib_intl_bindtextdomain = yes; then
13000 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" 1>&6
13001 echo "configure:11476: checking for gettext in -lintl" 1>&5
13002 if test "${ac_cv_lib_intl_gettext+set}" = set; then
13003 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13005 ac_save_LIBS
="$LIBS"
13006 LIBS
="-lintl $LIBS"
13007 cat >conftest.
$ac_ext <<EOF
13008 #line 11483 "configure"
13009 #include "confdefs.h"
13011 /* Override any gcc2 internal prototype to avoid an error. */
13015 /* We use char because int might match the return type of a gcc2
13016 builtin and then its argument prototype would still apply. */
13026 if { (eval echo configure
:11500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13027 ac_cv_lib_intl_gettext
=yes
13029 echo "configure: failed program was:" >&5
13030 cat conftest.
$ac_ext >&5
13031 ac_cv_lib_intl_gettext
=no
13034 LIBS
="$ac_save_LIBS"
13036 echo "$ECHO_T""$ac_cv_lib_intl_gettext" 1>&6
13037 if test $ac_cv_lib_intl_gettext = yes; then
13038 cat >>confdefs.h
<<EOF
13039 #define HAVE_LIBINTL 1
13042 LIBS
="-lintl $LIBS"
13050 if test "$gt_cv_func_gettext_libc" = "yes" \
13051 ||
test "$ac_cv_lib_intl_gettext" = "yes"; then
13054 cat >>confdefs.h
<<\EOF
13055 #define HAVE_GETTEXT 1
13058 # Extract the first word of "msgfmt", so it can be a program name with args.
13059 set dummy msgfmt
; ac_word
=$2
13060 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13061 echo "configure:11528: checking for $ac_word" 1>&5
13062 if test "${ac_cv_path_MSGFMT+set}" = set; then
13063 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13067 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
13070 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
13071 for ac_dir
in $PATH; do
13072 test -z "$ac_dir" && ac_dir
=.
13073 if test -f $ac_dir/$ac_word; then
13074 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
13075 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
13081 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
13085 MSGFMT
="$ac_cv_path_MSGFMT"
13086 if test -n "$MSGFMT"; then
13087 echo "$ECHO_T""$MSGFMT" 1>&6
13089 echo "$ECHO_T""no" 1>&6
13091 if test "$MSGFMT" != "no"; then
13094 for ac_func
in dcgettext
13096 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13097 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
13098 echo "configure:11564: checking for $ac_func" 1>&5
13099 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13100 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13102 cat >conftest.
$ac_ext <<EOF
13103 #line 11569 "configure"
13104 #include "confdefs.h"
13105 /* System header to define __stub macros and hopefully few prototypes,
13106 which can conflict with char $ac_func(); below. */
13107 #include <assert.h>
13108 /* Override any gcc2 internal prototype to avoid an error. */
13112 /* We use char because int might match the return type of a gcc2
13113 builtin and then its argument prototype would still apply. */
13121 /* The GNU C library defines this for functions which it implements
13122 to always fail with ENOSYS. Some functions are actually named
13123 something starting with __ and the normal name is an alias. */
13124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13134 if { (eval echo configure
:11597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13135 eval "$ac_ac_var=yes"
13137 echo "configure: failed program was:" >&5
13138 cat conftest.
$ac_ext >&5
13139 eval "$ac_ac_var=no"
13143 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
13144 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13145 cat >>confdefs.h
<<EOF
13146 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13152 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13153 set dummy gmsgfmt
; ac_word
=$2
13154 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13155 echo "configure:11616: checking for $ac_word" 1>&5
13156 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13157 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13161 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
13164 ac_save_ifs
=$IFS; IFS
=':'
13166 for ac_dir
in $ac_dummy; do
13167 test -z "$ac_dir" && ac_dir
=.
13168 if test -f "$ac_dir/$ac_word"; then
13169 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
13174 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
13178 GMSGFMT
="$ac_cv_path_GMSGFMT"
13179 if test -n "$GMSGFMT"; then
13180 echo "$ECHO_T""$GMSGFMT" 1>&6
13182 echo "$ECHO_T""no" 1>&6
13185 # Extract the first word of "xgettext", so it can be a program name with args.
13186 set dummy xgettext
; ac_word
=$2
13187 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13188 echo "configure:11648: checking for $ac_word" 1>&5
13189 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13192 case "$XGETTEXT" in
13194 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
13197 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
13198 for ac_dir
in $PATH; do
13199 test -z "$ac_dir" && ac_dir
=.
13200 if test -f $ac_dir/$ac_word; then
13201 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
13202 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
13208 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
13212 XGETTEXT
="$ac_cv_path_XGETTEXT"
13213 if test -n "$XGETTEXT"; then
13214 echo "$ECHO_T""$XGETTEXT" 1>&6
13216 echo "$ECHO_T""no" 1>&6
13219 cat >conftest.
$ac_ext <<EOF
13220 #line 11679 "configure"
13221 #include "confdefs.h"
13226 extern int _nl_msg_cat_cntr;
13227 return _nl_msg_cat_cntr
13232 if { (eval echo configure
:11690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13236 echo "configure: failed program was:" >&5
13237 cat conftest.
$ac_ext >&5
13248 if test "$CATOBJEXT" = "NONE"; then
13249 echo $ECHO_N "checking whether catgets can be used... $ECHO_C" 1>&6
13250 echo "configure:11707: checking whether catgets can be used" 1>&5
13251 # Check whether --with-catgets or --without-catgets was given.
13252 if test "${with_catgets+set}" = set; then
13253 withval
="$with_catgets"
13254 nls_cv_use_catgets
=$withval
13256 nls_cv_use_catgets
=no
13258 echo "$ECHO_T""$nls_cv_use_catgets" 1>&6
13260 if test "$nls_cv_use_catgets" = "yes"; then
13263 echo $ECHO_N "checking for main in -li... $ECHO_C" 1>&6
13264 echo "configure:11719: checking for main in -li" 1>&5
13265 if test "${ac_cv_lib_i_main+set}" = set; then
13266 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13268 ac_save_LIBS
="$LIBS"
13270 cat >conftest.
$ac_ext <<EOF
13271 #line 11726 "configure"
13272 #include "confdefs.h"
13282 if { (eval echo configure
:11736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13283 ac_cv_lib_i_main
=yes
13285 echo "configure: failed program was:" >&5
13286 cat conftest.
$ac_ext >&5
13287 ac_cv_lib_i_main
=no
13290 LIBS
="$ac_save_LIBS"
13292 echo "$ECHO_T""$ac_cv_lib_i_main" 1>&6
13293 if test $ac_cv_lib_i_main = yes; then
13294 cat >>confdefs.h
<<EOF
13295 #define HAVE_LIBI 1
13302 echo $ECHO_N "checking for catgets... $ECHO_C" 1>&6
13303 echo "configure:11754: checking for catgets" 1>&5
13304 if test "${ac_cv_func_catgets+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13307 cat >conftest.
$ac_ext <<EOF
13308 #line 11759 "configure"
13309 #include "confdefs.h"
13310 /* System header to define __stub macros and hopefully few prototypes,
13311 which can conflict with char catgets(); below. */
13312 #include <assert.h>
13313 /* Override any gcc2 internal prototype to avoid an error. */
13317 /* We use char because int might match the return type of a gcc2
13318 builtin and then its argument prototype would still apply. */
13326 /* The GNU C library defines this for functions which it implements
13327 to always fail with ENOSYS. Some functions are actually named
13328 something starting with __ and the normal name is an alias. */
13329 #if defined (__stub_catgets) || defined (__stub___catgets)
13339 if { (eval echo configure
:11787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13340 ac_cv_func_catgets
=yes
13342 echo "configure: failed program was:" >&5
13343 cat conftest.
$ac_ext >&5
13344 ac_cv_func_catgets
=no
13348 echo "$ECHO_T""$ac_cv_func_catgets" 1>&6
13349 if test $ac_cv_func_catgets = yes; then
13352 cat >>confdefs.h
<<\EOF
13353 #define HAVE_CATGETS 1
13356 INTLOBJS
="\$(CATOBJS)"
13357 # Extract the first word of "gencat", so it can be a program name with args.
13358 set dummy gencat
; ac_word
=$2
13359 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13360 echo "configure:11806: checking for $ac_word" 1>&5
13361 if test "${ac_cv_path_GENCAT+set}" = set; then
13362 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13366 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
13369 ac_save_ifs
=$IFS; IFS
=':'
13371 for ac_dir
in $ac_dummy; do
13372 test -z "$ac_dir" && ac_dir
=.
13373 if test -f "$ac_dir/$ac_word"; then
13374 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
13379 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
13383 GENCAT
="$ac_cv_path_GENCAT"
13384 if test -n "$GENCAT"; then
13385 echo "$ECHO_T""$GENCAT" 1>&6
13387 echo "$ECHO_T""no" 1>&6
13389 if test "$GENCAT" != "no"; then
13390 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13391 set dummy gmsgfmt
; ac_word
=$2
13392 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13393 echo "configure:11839: checking for $ac_word" 1>&5
13394 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13395 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13399 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
13402 ac_save_ifs
=$IFS; IFS
=':'
13404 for ac_dir
in $ac_dummy; do
13405 test -z "$ac_dir" && ac_dir
=.
13406 if test -f "$ac_dir/$ac_word"; then
13407 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
13412 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
13416 GMSGFMT
="$ac_cv_path_GMSGFMT"
13417 if test -n "$GMSGFMT"; then
13418 echo "$ECHO_T""$GMSGFMT" 1>&6
13420 echo "$ECHO_T""no" 1>&6
13423 if test "$GMSGFMT" = "no"; then
13424 # Extract the first word of "msgfmt", so it can be a program name with args.
13425 set dummy msgfmt
; ac_word
=$2
13426 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13427 echo "configure:11872: checking for $ac_word" 1>&5
13428 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13429 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13433 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
13436 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
13437 for ac_dir
in $PATH; do
13438 test -z "$ac_dir" && ac_dir
=.
13439 if test -f $ac_dir/$ac_word; then
13440 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
13441 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
13447 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
13451 GMSGFMT
="$ac_cv_path_GMSGFMT"
13452 if test -n "$GMSGFMT"; then
13453 echo "$ECHO_T""$GMSGFMT" 1>&6
13455 echo "$ECHO_T""no" 1>&6
13459 # Extract the first word of "xgettext", so it can be a program name with args.
13460 set dummy xgettext
; ac_word
=$2
13461 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13462 echo "configure:11906: checking for $ac_word" 1>&5
13463 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13464 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13466 case "$XGETTEXT" in
13468 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
13471 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
13472 for ac_dir
in $PATH; do
13473 test -z "$ac_dir" && ac_dir
=.
13474 if test -f $ac_dir/$ac_word; then
13475 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
13476 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
13482 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
13486 XGETTEXT
="$ac_cv_path_XGETTEXT"
13487 if test -n "$XGETTEXT"; then
13488 echo "$ECHO_T""$XGETTEXT" 1>&6
13490 echo "$ECHO_T""no" 1>&6
13493 USE_INCLUDED_LIBINTL
=yes
13497 INTLDEPS
='$(top_builddir)/intl/libintl.a'
13499 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
13500 nls_cv_header_intl
=intl
/libintl.h
13501 nls_cv_header_libgt
=intl
/libgettext.h
13508 if test "$CATOBJEXT" = "NONE"; then
13509 nls_cv_use_gnu_gettext
=yes
13513 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13514 INTLOBJS
="\$(GETTOBJS)"
13515 # Extract the first word of "msgfmt", so it can be a program name with args.
13516 set dummy msgfmt
; ac_word
=$2
13517 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13518 echo "configure:11958: checking for $ac_word" 1>&5
13519 if test "${ac_cv_path_MSGFMT+set}" = set; then
13520 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13524 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
13527 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
13528 for ac_dir
in $PATH; do
13529 test -z "$ac_dir" && ac_dir
=.
13530 if test -f $ac_dir/$ac_word; then
13531 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
13532 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
13538 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
13542 MSGFMT
="$ac_cv_path_MSGFMT"
13543 if test -n "$MSGFMT"; then
13544 echo "$ECHO_T""$MSGFMT" 1>&6
13546 echo "$ECHO_T""no" 1>&6
13549 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13550 set dummy gmsgfmt
; ac_word
=$2
13551 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13552 echo "configure:11991: checking for $ac_word" 1>&5
13553 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13554 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13558 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
13561 ac_save_ifs
=$IFS; IFS
=':'
13563 for ac_dir
in $ac_dummy; do
13564 test -z "$ac_dir" && ac_dir
=.
13565 if test -f "$ac_dir/$ac_word"; then
13566 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
13571 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
13575 GMSGFMT
="$ac_cv_path_GMSGFMT"
13576 if test -n "$GMSGFMT"; then
13577 echo "$ECHO_T""$GMSGFMT" 1>&6
13579 echo "$ECHO_T""no" 1>&6
13582 # Extract the first word of "xgettext", so it can be a program name with args.
13583 set dummy xgettext
; ac_word
=$2
13584 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13585 echo "configure:12023: checking for $ac_word" 1>&5
13586 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13589 case "$XGETTEXT" in
13591 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
13594 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
13595 for ac_dir
in $PATH; do
13596 test -z "$ac_dir" && ac_dir
=.
13597 if test -f $ac_dir/$ac_word; then
13598 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
13599 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
13605 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
13609 XGETTEXT
="$ac_cv_path_XGETTEXT"
13610 if test -n "$XGETTEXT"; then
13611 echo "$ECHO_T""$XGETTEXT" 1>&6
13613 echo "$ECHO_T""no" 1>&6
13616 USE_INCLUDED_LIBINTL
=yes
13620 INTLDEPS
='$(top_builddir)/intl/libintl.a'
13622 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
13623 nls_cv_header_intl
=intl
/libintl.h
13624 nls_cv_header_libgt
=intl
/libgettext.h
13627 if test "$XGETTEXT" != ":"; then
13628 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
13631 echo "$ECHO_T""found xgettext program is not GNU xgettext; ignore it" 1>&6
13636 # We need to process the po/ directory.
13640 nls_cv_header_intl
=intl
/libintl.h
13641 nls_cv_header_libgt
=intl
/libgettext.h
13643 if test -z "$nls_cv_header_intl"; then
13644 # Clean out junk possibly left behind by a previous configuration.
13645 rm -f intl
/libintl.h
13648 # If this is used in GNU gettext we have to set USE_NLS to `yes'
13649 # because some of the sources are only built for this goal.
13650 if test "$PACKAGE" = gettext; then
13652 USE_INCLUDED_LIBINTL
=yes
13655 for lang
in $ALL_LINGUAS; do
13656 GMOFILES
="$GMOFILES $lang.gmo"
13657 POFILES
="$POFILES $lang.po"
13660 if test "x$CATOBJEXT" != "x"; then
13661 if test "x$ALL_LINGUAS" = "x"; then
13664 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" 1>&6
13665 echo "configure:12097: checking for catalogs to be installed" 1>&5
13667 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
13668 case "$ALL_LINGUAS" in
13669 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
13672 LINGUAS
=$NEW_LINGUAS
13673 echo "$ECHO_T""$LINGUAS" 1>&6
13676 if test -n "$LINGUAS"; then
13677 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
13681 if test $ac_cv_header_locale_h = yes; then
13682 INCLUDE_LOCALE_H
="#include <locale.h>"
13684 INCLUDE_LOCALE_H
="\
13685 /* The system does not provide the header <locale.h>. Take care yourself. */"
13688 test -d intl || mkdir intl
13689 if test "$CATOBJEXT" = ".cat"; then
13690 echo $ECHO_N "checking for linux/version.h... $ECHO_C" 1>&6
13691 echo "configure:12120: checking for linux/version.h" 1>&5
13692 if test "${ac_cv_header_linux_version_h+set}" = set; then
13693 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13696 cat >conftest.
$ac_ext <<EOF
13697 #line 12125 "configure"
13698 #include "confdefs.h"
13699 #include <linux/version.h>
13702 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13703 { (eval echo configure
:12130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13704 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13705 if test -z "$ac_err"; then
13706 ac_cv_header_linux_version_h
=yes
13709 echo "configure: failed program was:" >&5
13710 cat conftest.
$ac_ext >&5
13711 ac_cv_header_linux_version_h
=no
13715 echo "$ECHO_T""$ac_cv_header_linux_version_h" 1>&6
13716 if test $ac_cv_header_linux_version_h = yes; then
13722 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
13724 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
13725 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
13727 if test "$PACKAGE" = "gettext"; then
13736 if test -n "$ac_aux_dir"; then
13737 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
13739 if test -z "$MKINSTALLDIRS"; then
13740 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
13745 test -d po || mkdir po
13748 posrcprefix
="../" ;;
13750 posrcprefix
="$srcdir/" ;;
13752 posrcprefix
="../$srcdir/" ;;
13755 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
13756 < $srcdir/po
/POTFILES.
in > po
/POTFILES
13758 # These no-op lines work around a bug in automake 1.4:
13759 # it doesn't recognize the assignments to LIBOBJS in m4/*.m4.
13760 : LIBOBJS
="$LIBOBJS fnmatch.o lstat.o"
13761 : LIBOBJS
="$LIBOBJS malloc.o memcmp.o mktime.o"
13762 : LIBOBJS
="$LIBOBJS realloc.o regex.o stat.o strftime.o"
13764 # This is necessary so that .o files in LIBOBJS are also built via
13765 # the ANSI2KNR-filtering rules.
13766 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
13768 cat >confcache
<<\EOF
13769 # This file is a shell script that caches the results of configure
13770 # tests run on this system so they can be shared between configure
13771 # scripts and configure runs. It is not useful on other systems.
13772 # If it contains results you don't want to keep, you may remove or edit it.
13774 # By default, configure uses ./config.cache as the cache file,
13775 # creating it if it does not exist already. You can give configure
13776 # the --cache-file=FILE option to use a different cache file; that is
13777 # what configure does when it calls configure scripts in
13778 # subdirectories, so they share the cache.
13779 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13780 # config.status only pays attention to the cache file if you give it the
13781 # --recheck option to rerun configure.
13784 # The following way of writing the cache mishandles newlines in values,
13785 # but we know of no workaround that is simple, portable, and efficient.
13786 # So, don't put newlines in cache variables' values.
13787 # Ultrix sh set writes to stderr and can't be redirected directly,
13788 # and sets the high bit in the cache file unless we assign to the vars.
13790 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13792 # `set' does not quote correctly, so add quotes (double-quote substitution
13793 # turns \\\\ into \\, and sed turns \\ into \).
13795 -e "s/'/'\\\\''/g" \
13796 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13799 # `set' quotes correctly as required by POSIX, so do not add quotes.
13800 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13803 if cmp -s $cache_file confcache
; then :; else
13804 if test -w $cache_file; then
13805 echo "updating cache $cache_file"
13806 cat confcache
>$cache_file
13808 echo "not updating unwritable cache $cache_file"
13813 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13815 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13816 # Let make expand exec_prefix.
13817 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13819 # Any assignment to VPATH causes Sun make to only execute
13820 # the first set of double-colon rules, so remove it if not needed.
13821 # If there is a colon in the path, we need to keep it.
13822 if test "x$srcdir" = x.
; then
13823 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
13826 DEFS
=-DHAVE_CONFIG_H
13828 : ${CONFIG_STATUS=./config.status}
13829 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13830 echo creating
$CONFIG_STATUS
13831 cat >$CONFIG_STATUS <<EOF
13833 # Generated automatically by configure.
13834 # Run this file to recreate the current configuration.
13835 # This directory was configured as follows,
13836 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13838 # $0 $ac_configure_args
13840 # Compiler output produced by configure, useful for debugging
13841 # configure, is in ./config.log if it exists.
13843 # Files that config.status was made for.
13845 Makefile lib/Makefile lib/posix/Makefile find/Makefile
13846 find/testsuite/Makefile xargs/Makefile xargs/testsuite/Makefile
13847 locate/Makefile locate/testsuite/Makefile intl/Makefile po/Makefile.in
13848 doc/Makefile m4/Makefile"
13852 $nls_cv_header_intl:$nls_cv_header_libgt"
13853 config_commands="\\
13854 default-1 default-2 default-3"
13857 \\\`$CONFIG_STATUS' instantiates files from templates according to the
13858 current configuration.
13860 Usage: $CONFIG_STATUS [OPTIONS] FILE...
13862 --recheck Update $CONFIG_STATUS by reconfiguring in the same conditions
13863 --version Print the version of Autoconf and exit
13864 --help Display this help and exit
13865 --file=FILE[:TEMPLATE]
13866 Instantiate the configuration file FILE
13867 --header=FILE[:TEMPLATE]
13868 Instantiate the configuration header FILE
13870 Configuration files:
13873 Configuration headers:
13876 Configuration links:
13879 Configuration commands:
13882 Report bugs to <bug-autoconf@gnu.org>."
13885 $CONFIG_STATUS generated by autoconf version 2.14a.
13886 Configured on host `(hostname || uname -n) 2>/dev/null | sed 1q` by
13887 `echo "$0 $ac_configure_args" | sed 's/[\\"\`\$]/\\\\&/g'`"
13889 # Root of the tmp file names. Use pid to allow concurrent executions.
13891 ac_given_srcdir=$srcdir
13892 ac_given_INSTALL="$INSTALL"
13894 # If no file are specified by the user, then we need to provide default
13895 # value. By we need to know if files were specified by the user.
13897 while test \$# != 0
13901 ac_option=\`echo "\$1" | sed -e 's/=.*//'\`
13902 ac_optarg=\`echo "\$1" | sed -e 's/[^=]*=//'\`
13904 set dummy "\$ac_option" "\$ac_optarg" \${1+"\$@"}
13908 *) # This is not an option, so the user has probably given explicit
13910 ac_need_defaults=false;;
13915 # Handling of the options.
13916 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13917 echo "running \${CONFIG_SHELL-/bin/sh} $0 `echo "$ac_configure_args" | sed 's/[\\"\`\$]/\\\\&/g'` --no-create --no-recursion"
13918 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13919 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13920 echo "\$ac_cs_version"; exit 0 ;;
13922 # Conflict between --help and --header
13923 echo "$CONFIG_STATUS: ambiguous option: \$ac_option
13924 Try \\\`$CONFIG_STATUS --help' for more information."; exit 1 ;;
13925 -help | --help | --hel )
13926 echo "\$ac_cs_usage"; exit 0 ;;
13927 --file | --fil | --fi | --f )
13929 CONFIG_FILES="\$CONFIG_FILES \$1"
13930 ac_need_defaults=false;;
13931 --header | --heade | --head | --hea )
13933 CONFIG_HEADERS="\$CONFIG_HEADERS \$1"
13934 ac_need_defaults=false;;
13936 # Handling of arguments.
13937 'Makefile' ) CONFIG_FILES="\$CONFIG_FILES Makefile" ;;
13938 'lib/Makefile' ) CONFIG_FILES="\$CONFIG_FILES lib/Makefile" ;;
13939 'lib/posix/Makefile' ) CONFIG_FILES="\$CONFIG_FILES lib/posix/Makefile" ;;
13940 'find/Makefile' ) CONFIG_FILES="\$CONFIG_FILES find/Makefile" ;;
13941 'find/testsuite/Makefile' ) CONFIG_FILES="\$CONFIG_FILES find/testsuite/Makefile" ;;
13942 'xargs/Makefile' ) CONFIG_FILES="\$CONFIG_FILES xargs/Makefile" ;;
13943 'xargs/testsuite/Makefile' ) CONFIG_FILES="\$CONFIG_FILES xargs/testsuite/Makefile" ;;
13944 'locate/Makefile' ) CONFIG_FILES="\$CONFIG_FILES locate/Makefile" ;;
13945 'locate/testsuite/Makefile' ) CONFIG_FILES="\$CONFIG_FILES locate/testsuite/Makefile" ;;
13946 'intl/Makefile' ) CONFIG_FILES="\$CONFIG_FILES intl/Makefile" ;;
13947 'po/Makefile.in' ) CONFIG_FILES="\$CONFIG_FILES po/Makefile.in" ;;
13948 'doc/Makefile' ) CONFIG_FILES="\$CONFIG_FILES doc/Makefile" ;;
13949 'm4/Makefile' ) CONFIG_FILES="\$CONFIG_FILES m4/Makefile" ;;
13950 '$nls_cv_header_intl' ) CONFIG_LINKS="\$CONFIG_LINKS $nls_cv_header_intl:$nls_cv_header_libgt" ;;
13951 'default-1' ) CONFIG_COMMANDS="\$CONFIG_COMMANDS default-1" ;;
13952 'default-2' ) CONFIG_COMMANDS="\$CONFIG_COMMANDS default-2" ;;
13953 'default-3' ) CONFIG_COMMANDS="\$CONFIG_COMMANDS default-3" ;;
13954 'config.h' ) CONFIG_HEADERS="\$CONFIG_HEADERS config.h" ;;
13956 # This is an error.
13957 -*) echo "$CONFIG_STATUS: unrecognized option: \$1
13958 Try \\\`$CONFIG_STATUS --help' for more information."; exit 1 ;;
13959 *) echo "$CONFIG_STATUS: invalid argument: \$1"; exit 1 ;;
13966 cat >>$CONFIG_STATUS <<\EOF
13967 # If the user did not use the arguments to specify the items to instantiate,
13968 # then the envvar interface is used. Set only those that are not.
13969 if $ac_need_defaults; then
13970 : ${CONFIG_FILES=$config_files}
13971 : ${CONFIG_HEADERS=$config_headers}
13972 : ${CONFIG_LINKS=$config_links}
13973 : ${CONFIG_COMMANDS=$config_commands}
13976 # Trap to remove the temp files.
13977 trap 'rm -fr $ac_cs_root*; exit 1' 1 2 15
13981 cat >>$CONFIG_STATUS <<EOF
13983 # INIT-COMMANDS section.
13987 for am_file in config.h; do
13988 case " $CONFIG_HEADERS " in
13990 echo timestamp > `echo $am_file | sed 's%:.*%%;s%[^/]*$%%'`stamp-h$am_indx
13993 am_indx=\`expr \$am_indx + 1\`
13996 ac_aux_dir="$ac_aux_dir"
14000 cat >>$CONFIG_STATUS <<EOF
14003 # CONFIG_FILES section.
14006 # No need to generate the scripts if there are no CONFIG_FILES.
14007 # This happens for instance when ./config.status config.h
14008 if test -n "\$CONFIG_FILES"; then
14009 # Protect against being on the right side of a sed subst in config.status.
14010 sed 's/%@/@@/; s/@%/@@/; s/%;t t\$/@;t t/; /@;t t\$/s/[\\\\&%]/\\\\&/g;
14011 s/@@/%@/; s/@@/@%/; s/@;t t\$/%;t t/' >\$ac_cs_root.subs <<\\CEOF
14012 s%@SHELL@%$SHELL%;t t
14013 s%@exec_prefix@%$exec_prefix%;t t
14014 s%@prefix@%$prefix%;t t
14015 s%@program_transform_name@%$program_transform_name%;t t
14016 s%@bindir@%$bindir%;t t
14017 s%@sbindir@%$sbindir%;t t
14018 s%@libexecdir@%$libexecdir%;t t
14019 s%@datadir@%$datadir%;t t
14020 s%@sysconfdir@%$sysconfdir%;t t
14021 s%@sharedstatedir@%$sharedstatedir%;t t
14022 s%@localstatedir@%$localstatedir%;t t
14023 s%@libdir@%$libdir%;t t
14024 s%@includedir@%$includedir%;t t
14025 s%@oldincludedir@%$oldincludedir%;t t
14026 s%@infodir@%$infodir%;t t
14027 s%@mandir@%$mandir%;t t
14028 s%@ECHO_C@%$ECHO_C%;t t
14029 s%@ECHO_N@%$ECHO_N%;t t
14030 s%@ECHO_T@%$ECHO_T%;t t
14031 s%@CFLAGS@%$CFLAGS%;t t
14032 s%@CPPFLAGS@%$CPPFLAGS%;t t
14033 s%@CXXFLAGS@%$CXXFLAGS%;t t
14034 s%@FFLAGS@%$FFLAGS%;t t
14035 s%@DEFS@%$DEFS%;t t
14036 s%@LDFLAGS@%$LDFLAGS%;t t
14037 s%@LIBS@%$LIBS%;t t
14038 s%@host@%$host%;t t
14039 s%@host_alias@%$host_alias%;t t
14040 s%@host_cpu@%$host_cpu%;t t
14041 s%@host_vendor@%$host_vendor%;t t
14042 s%@host_os@%$host_os%;t t
14043 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%;t t
14044 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%;t t
14045 s%@INSTALL_DATA@%$INSTALL_DATA%;t t
14046 s%@PACKAGE@%$PACKAGE%;t t
14047 s%@VERSION@%$VERSION%;t t
14048 s%@ACLOCAL@%$ACLOCAL%;t t
14049 s%@AUTOCONF@%$AUTOCONF%;t t
14050 s%@AUTOMAKE@%$AUTOMAKE%;t t
14051 s%@AUTOHEADER@%$AUTOHEADER%;t t
14052 s%@MAKEINFO@%$MAKEINFO%;t t
14053 s%@AMTAR@%$AMTAR%;t t
14054 s%@install_sh@%$install_sh%;t t
14056 s%@SET_MAKE@%$SET_MAKE%;t t
14057 s%@AMDEP@%$AMDEP%;t t
14058 s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%;t t
14059 s%@DEPDIR@%$DEPDIR%;t t
14060 s%@INCLUDES@%$INCLUDES%;t t
14063 s%@CCDEPMODE@%$CCDEPMODE%;t t
14065 s%@ANSI2KNR@%$ANSI2KNR%;t t
14066 s%@RANLIB@%$RANLIB%;t t
14067 s%@build@%$build%;t t
14068 s%@build_alias@%$build_alias%;t t
14069 s%@build_cpu@%$build_cpu%;t t
14070 s%@build_vendor@%$build_vendor%;t t
14071 s%@build_os@%$build_os%;t t
14072 s%@GETCONF@%$GETCONF%;t t
14073 s%@LIBOBJS@%$LIBOBJS%;t t
14074 s%@GNU_PACKAGE@%$GNU_PACKAGE%;t t
14075 s%@OPTIONAL_BIN_PROGS@%$OPTIONAL_BIN_PROGS%;t t
14076 s%@OPTIONAL_BIN_ZCRIPTS@%$OPTIONAL_BIN_ZCRIPTS%;t t
14078 s%@DF_PROG@%$DF_PROG%;t t
14079 s%@ALLOCA@%$ALLOCA%;t t
14080 s%@USE_NLS@%$USE_NLS%;t t
14081 s%@MSGFMT@%$MSGFMT%;t t
14082 s%@GMSGFMT@%$GMSGFMT%;t t
14083 s%@XGETTEXT@%$XGETTEXT%;t t
14084 s%@GENCAT@%$GENCAT%;t t
14085 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%;t t
14086 s%@CATALOGS@%$CATALOGS%;t t
14087 s%@CATOBJEXT@%$CATOBJEXT%;t t
14088 s%@DATADIRNAME@%$DATADIRNAME%;t t
14089 s%@GMOFILES@%$GMOFILES%;t t
14090 s%@INSTOBJEXT@%$INSTOBJEXT%;t t
14091 s%@INTLDEPS@%$INTLDEPS%;t t
14092 s%@INTLLIBS@%$INTLLIBS%;t t
14093 s%@INTLOBJS@%$INTLOBJS%;t t
14094 s%@POFILES@%$POFILES%;t t
14095 s%@POSUB@%$POSUB%;t t
14096 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%;t t
14097 s%@GT_NO@%$GT_NO%;t t
14098 s%@GT_YES@%$GT_YES%;t t
14099 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%;t t
14105 cat >>$CONFIG_STATUS <<\EOF
14106 # Split the substitutions into bite-sized pieces for seds with
14107 # small command number limits, like on Digital OSF/1 and HP-UX.
14108 ac_max_sed_lines
=48
14109 ac_sed_frag
=1 # Number of current file.
14110 ac_beg
=1 # First line for current file.
14111 ac_end
=$ac_max_sed_lines # Line after last line for current file.
14114 while $ac_more_lines; do
14115 if test $ac_beg -gt 1; then
14116 sed "1,${ac_beg}d; ${ac_end}q" $ac_cs_root.subs
>$ac_cs_root.sfrag
14118 sed "${ac_end}q" $ac_cs_root.subs
>$ac_cs_root.sfrag
14120 if test ! -s $ac_cs_root.sfrag
; then
14121 ac_more_lines
=false
14122 rm -f $ac_cs_root.sfrag
14124 # The purpose of the label and of the branching condition is to
14125 # speed up the sed processing (if there are no `@' at all, there
14126 # is no need to browse any of the substitutions).
14127 # These are the two extra sed commands mentioned above.
14129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $ac_cs_root.sfrag
) >$ac_cs_root.s
$ac_sed_frag
14130 if test -z "$ac_sed_cmds"; then
14131 ac_sed_cmds
="sed -f $ac_cs_root.s$ac_sed_frag"
14133 ac_sed_cmds
="$ac_sed_cmds | sed -f $ac_cs_root.s$ac_sed_frag"
14135 ac_sed_frag
=`expr $ac_sed_frag + 1`
14137 ac_end
=`expr $ac_end + $ac_max_sed_lines`
14140 if test -z "$ac_sed_cmds"; then
14143 fi # test -n "$CONFIG_FILES"
14146 cat >>$CONFIG_STATUS <<\EOF
14147 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
14148 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14150 *:*) ac_file_in
=`echo "$ac_file" | sed 's%[^:]*:%%'`
14151 ac_file
=`echo "$ac_file" | sed 's%:.*%%'` ;;
14152 *) ac_file_in
="${ac_file}.in" ;;
14155 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14157 # Remove last slash and all that follows it. Not all systems have dirname.
14158 ac_dir
=`echo "$ac_file" | sed 's%/[^/][^/]*$%%'`
14159 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
14160 # The file is in a subdirectory.
14161 test ! -d "$ac_dir" && mkdir
"$ac_dir"
14162 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
14163 # A "../" for each directory in $ac_dir_suffix.
14164 ac_dots
=`echo "$ac_dir_suffix" | sed 's%/[^/]*%../%g'`
14166 ac_dir_suffix
= ac_dots
=
14169 case "$ac_given_srcdir" in
14171 if test -z "$ac_dots"; then top_srcdir
=.
14172 else top_srcdir
=`echo $ac_dots | sed 's%/$%%'`; fi ;;
14173 [\\/]* | ?
:[\\/]* )
14174 srcdir
="$ac_given_srcdir$ac_dir_suffix";
14175 top_srcdir
=$ac_given_srcdir ;;
14176 *) # Relative path.
14177 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14178 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
14181 case "$ac_given_INSTALL" in
14182 [\\/$
]* | ?
:[\\/]* ) INSTALL
="$ac_given_INSTALL" ;;
14183 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
14186 echo creating
"$ac_file"
14188 configure_input
="Generated automatically from `echo $ac_file_in |
14189 sed 's%.*/%%'` by configure."
14191 *[Mm
]akefile
*) ac_comsub
="1i\\
14192 # $configure_input" ;;
14196 # Don't redirect the output to AC_FILE directly: use `mv' so that updating
14197 # is atomic, and doesn't need trapping.
14198 ac_file_inputs
=`echo "$ac_file_in" |
14199 sed -e "s%^%$ac_given_srcdir/%;s%:% $ac_given_srcdir/%g"`
14200 for ac_file_input
in $ac_file_inputs;
14202 test -f "$ac_file_input" ||
14203 { echo "configure: error: cannot find input file \`$ac_file_input'" 1>&2; exit 1; }
14206 cat >>$CONFIG_STATUS <<EOF
14211 cat >>$CONFIG_STATUS <<\EOF
14213 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14214 s
%@configure_input@
%$configure_input%;t t
14215 s
%@srcdir@
%$srcdir%;t t
14216 s
%@top_srcdir@
%$top_srcdir%;t t
14217 s
%@INSTALL@
%$INSTALL%;t t
14218 " $ac_file_inputs | (eval "$ac_sed_cmds") >$ac_cs_root.out
14219 mv $ac_cs_root.out $ac_file
14222 rm -f $ac_cs_root.s*
14224 cat >>$CONFIG_STATUS <<\EOF
14227 # CONFIG_HEADER section.
14230 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
14231 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14233 # ac_d sets the value in "#define NAME VALUE" lines.
14234 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14235 ac_dB
='[ ].*$%\1#\2'
14238 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14239 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14240 ac_uB
='$%\1#\2define\3'
14244 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
14245 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14247 *:*) ac_file_in
=`echo "$ac_file" | sed 's%[^:]*:%%'`
14248 ac_file
=`echo "$ac_file" | sed 's%:.*%%'` ;;
14249 *) ac_file_in
="${ac_file}.in" ;;
14252 echo creating
$ac_file
14254 rm -f $ac_cs_root.frag
$ac_cs_root.
in $ac_cs_root.out
14255 ac_file_inputs
=`echo "$ac_file_in" |
14256 sed -e "s%^%$ac_given_srcdir/%;s%:% $ac_given_srcdir/%g"`
14257 for ac_file_input
in $ac_file_inputs;
14259 test -f "$ac_file_input" ||
14260 { echo "configure: error: cannot find input file \`$ac_file_input'" 1>&2; exit 1; }
14262 # Remove the trailing spaces.
14263 sed -e 's/[ ]*$//' $ac_file_inputs >$ac_cs_root.
in
14267 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14268 # `conftest.undefs', that substitutes the proper values into
14269 # config.h.in to produce config.h. The first handles `#define'
14270 # templates, and the second `#undef' templates.
14271 # And first: Protect against being on the right side of a sed subst in
14272 # config.status. Protect against being in an unquoted here document
14273 # in config.status.
14274 rm -f conftest.defines conftest.undefs
14275 cat >$ac_cs_root.hdr
<<\EOF
14280 s%^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$%${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD}%gp
14282 s%^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14285 # If some macros were called several times there might be several times
14286 # the same #defines, which is useless. Nevertheless, we may not want to
14287 # sort them, since we want the *last* AC_DEFINE to be honored.
14288 uniq confdefs.h | sed -n -f $ac_cs_root.hdr >conftest.defines
14289 sed -e 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14290 rm -f $ac_cs_root.hdr
14292 # This sed command replaces #undef with comments. This is necessary, for
14293 # example, in the case of _POSIX_SOURCE, which is predefined and required
14294 # on some systems where configure will not decide to define it.
14295 cat >>conftest.undefs <<\EOF
14296 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14299 # Break up conftest.defines because some shells have a limit on the size
14300 # of here documents, and old seds have small limits too (100 cmds).
14301 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14302 echo ' if egrep "^[ ]*#[ ]*define" $ac_cs_root.in >/dev/null; then' >>$CONFIG_STATUS
14303 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14304 echo ' :' >>$CONFIG_STATUS
14305 rm -f conftest.tail
14306 while grep . conftest.defines >/dev/null
14308 # Write a limited-size here document to $ac_cs_root.frag.
14309 echo ' cat >$ac_cs_root.frag <<CEOF' >>$CONFIG_STATUS
14310 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14311 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14313 sed -f $ac_cs_root.frag $ac_cs_root.in >$ac_cs_root.out
14314 rm -f $ac_cs_root.in
14315 mv $ac_cs_root.out $ac_cs_root.in
14317 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14318 rm -f conftest.defines
14319 mv conftest.tail conftest.defines
14321 rm -f conftest.defines
14322 echo ' fi # egrep' >>$CONFIG_STATUS
14323 echo >>$CONFIG_STATUS
14325 # Break up conftest.undefs because some shells have a limit on the size
14326 # of here documents, and old seds have small limits too (100 cmds).
14327 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14328 rm -f conftest.tail
14329 while grep . conftest.undefs >/dev/null
14331 # Write a limited-size here document to $ac_cs_root.frag.
14332 echo ' cat >$ac_cs_root.frag <<CEOF' >>$CONFIG_STATUS
14333 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14334 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14336 sed -f $ac_cs_root.frag $ac_cs_root.in >$ac_cs_root.out
14337 rm -f $ac_cs_root.in
14338 mv $ac_cs_root.out $ac_cs_root.in
14340 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14341 rm -f conftest.undefs
14342 mv conftest.tail conftest.undefs
14344 rm -f conftest.undefs
14346 cat >>$CONFIG_STATUS <<\EOF
14347 rm -f $ac_cs_root.frag $ac_cs_root.h
14348 echo "/* $ac_file. Generated automatically by configure. */" >$ac_cs_root.h
14349 cat $ac_cs_root.in >>$ac_cs_root.h
14350 rm -f $ac_cs_root.in
14351 if cmp -s $ac_file $ac_cs_root.h 2>/dev/null; then
14352 echo "$ac_file is unchanged"
14353 rm -f $ac_cs_root.h
14355 # Remove last slash and all that follows it. Not all systems have dirname.
14356 ac_dir=`echo "$ac_file" |
sed 's%/[^/][^/]*$%%'`
14357 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14358 # The file is in a subdirectory.
14359 test ! -d "$ac_dir" && mkdir "$ac_dir"
14362 mv $ac_cs_root.h $ac_file
14366 cat >>$CONFIG_STATUS <<\EOF
14369 # CONFIG_LINKS section.
14371 srcdir=$ac_given_srcdir
14373 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
14374 ac_dest=`echo "$ac_file" |
sed 's%:.*%%'`
14375 ac_source=`echo "$ac_file" |
sed 's%[^:]*:%%'`
14377 echo "linking $srcdir/$ac_source to $ac_dest"
14379 if test ! -r $srcdir/$ac_source; then
14380 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
14384 # Make relative symlinks.
14385 # Remove last slash and all that follows it. Not all systems have dirname.
14386 ac_dest_dir=`echo $ac_dest |
sed 's%/[^/][^/]*$%%'`
14387 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
14388 # The dest file is in a subdirectory.
14389 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
14390 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
14391 # A "../" for each directory in $ac_dest_dir_suffix.
14392 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
14394 ac_dest_dir_suffix= ac_dots=
14398 [\\/$]* | ?:[\\/]* ) ac_rel_source="$srcdir/$ac_source" ;;
14399 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
14402 # Make a symlink if possible; otherwise try a hard link.
14403 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
14404 ln $srcdir/$ac_source $ac_dest; then :
14406 { echo "configure: error: cannot link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
14410 cat >>$CONFIG_STATUS <<\EOF
14413 # CONFIG_COMMANDS section.
14415 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14416 ac_dest=`echo "$ac_file" |
sed 's%:.*%%'`
14417 ac_source=`echo "$ac_file" |
sed 's%[^:]*:%%'`
14420 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
14422 test x"$AMDEP" != x"" ||
14423 for mf in $CONFIG_FILES; do
14425 Makefile) dirpart=.;;
14426 */Makefile) dirpart=`echo "$mf" |
sed -e 's|/[^/]*$||'`;;
14429 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
14430 # Extract the definition of DEP_FILES from the Makefile without
14432 DEPDIR=`sed -n -e '/^DEPDIR
= / s
///p
' < "$mf"`
14433 test -z "$DEPDIR" && continue
14434 # When using ansi2knr, U may be empty or an underscore; expand it
14435 U=`sed -n -e '/^U
= / s
///p
' < "$mf"`
14436 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
14437 # We invoke sed twice because it is the simplest approach to
14438 # changing $(DEPDIR) to its actual value in the expansion.
14439 for file in `sed -n -e '
14440 /^DEP_FILES
= .
*\\\\$
/ {
14449 /^DEP_FILES
= / s
/^DEP_FILES
= //p
' < "$mf" | \
14450 sed -e 's
/\$
(DEPDIR
)/'"$DEPDIR"'/g
' -e 's
/\
$U/'"$U"'/g
'`; do
14451 # Make sure the directory exists.
14452 test -f "$dirpart/$file" && continue
14453 fdir=`echo "$file" | sed -e 's|
/[^
/]*$||
'`
14454 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
14455 # echo "creating $dirpart/$file"
14456 echo '# dummy' > "$dirpart/$file"
14460 default-3
) case "$CONFIG_FILES" in *po
/Makefile.
in*)
14461 sed -e "/POTFILES =/r po/POTFILES" po
/Makefile.
in > po
/Makefile
14467 cat >>$CONFIG_STATUS <<\EOF
14471 chmod +x
$CONFIG_STATUS
14472 rm -fr confdefs
* $ac_clean_files
14473 trap 'exit 1' 1 2 15
14475 test "$no_create" = yes ||
$SHELL $CONFIG_STATUS ||
exit 1