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 if eval "$MISSING --run :"; then
849 am_missing_run
="$MISSING --run "
853 echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2
856 for ac_prog
in mawk gawk nawk
awk
858 # Extract the first word of "$ac_prog", so it can be a program name with args.
859 set dummy
$ac_prog; ac_word
=$2
860 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
861 echo "configure:760: checking for $ac_word" 1>&5
862 if test "${ac_cv_prog_AWK+set}" = set; then
863 echo $ECHO_N "(cached) $ECHO_C" 1>&6
865 if test -n "$AWK"; then
866 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
868 for ac_path
in `ac_save_ifs=$IFS; IFS=':'
870 for ac_dir in $ac_dummy; do
871 test -z "$ac_dir" && ac_dir=.
872 if test -f $ac_dir/$ac_word; then
873 echo "$ac_dir/$ac_word"
878 ac_cv_prog_AWK
="$ac_prog"
883 AWK
="$ac_cv_prog_AWK"
884 if test -n "$AWK"; then
885 echo "$ECHO_T""$AWK" 1>&6
887 echo "$ECHO_T""no" 1>&6
890 test -n "$AWK" && break
893 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" 1>&6
894 echo "configure:791: checking whether ${MAKE-make} sets \${MAKE}" 1>&5
895 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
896 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
897 echo $ECHO_N "(cached) $ECHO_C" 1>&6
899 cat >conftestmake
<<\EOF
901 @
echo 'ac_maketemp="${MAKE}"'
903 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
904 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
905 if test -n "$ac_maketemp"; then
906 eval ac_cv_prog_make_
${ac_make}_set
=yes
908 eval ac_cv_prog_make_
${ac_make}_set
=no
912 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
913 echo "$ECHO_T""yes" 1>&6
916 echo "$ECHO_T""no" 1>&6
917 SET_MAKE
="MAKE=${MAKE-make}"
920 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
921 if test "${enable_dependency_tracking+set}" = set; then
922 enableval
="$enable_dependency_tracking"
925 if test "x$enable_dependency_tracking" = xno
; then
928 am_depcomp
="$ac_aux_dir/depcomp"
929 if test ! -f "$am_depcomp"; then
936 if test -z "$AMDEP"; then
942 if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
952 if test "`CDPATH=: && cd $srcdir && pwd`" != "`pwd`" &&
953 test -f $srcdir/config.status; then
954 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
958 cat >>confdefs.h <<EOF
959 #define PACKAGE "$PACKAGE"
964 cat >>confdefs.h <<EOF
965 #define VERSION "$VERSION"
968 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
970 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
972 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
974 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
976 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
978 AMTAR=${AMTAR-"${am_missing_run}tar"}
980 if test -z "$install_sh"; then
981 install_sh="$ac_aux_dir/install-sh"
982 test -f "$install_sh" || install_sh="$ac_aux_dir/install.sh"
983 test -f "$install_sh" || install_sh="${am_missing_run}${ac_auxdir}/install-sh"
984 install_sh="`echo $install_sh | sed -e 's
/\
${SHELL}//'`"
987 # Check whether --enable-id-cache or --disable-id-cache was given.
988 if test "${enable_id_cache+set}" = set; then
989 enableval="$enable_id_cache"
992 cat >>confdefs.h <<\EOF
998 case "${CFLAGS+set} $ac_configure_args" in
1000 "set "*) ac_configure_args="CFLAGS='$CFLAGS' $ac_configure_args";;
1003 # Extract the first word of "gcc", so it can be a program name with args.
1004 set dummy gcc; ac_word=$2
1005 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
1006 echo "configure:881: checking for $ac_word" 1>&5
1007 if test "${ac_cv_prog_CC+set}" = set; then
1008 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1010 if test -n "$CC"; then
1011 ac_cv_prog_CC="$CC" # Let the user override the test.
1013 for ac_path in `ac_save_ifs=$IFS; IFS=':'
1015 for ac_dir in $ac_dummy; do
1016 test -z "$ac_dir" && ac_dir=.
1017 if test -f $ac_dir/$ac_word; then
1018 echo "$ac_dir/$ac_word"
1029 if test -n "$CC"; then
1030 echo "$ECHO_T""$CC" 1>&6
1032 echo "$ECHO_T""no" 1>&6
1035 if test -z "$CC"; then
1036 # Extract the first word of "cc", so it can be a program name with args.
1037 set dummy cc; ac_word=$2
1038 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
1039 echo "configure:913: checking for $ac_word" 1>&5
1040 if test "${ac_cv_prog_CC+set}" = set; then
1041 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1043 if test -n "$CC"; then
1044 ac_cv_prog_CC="$CC" # Let the user override the test.
1047 for ac_path in `ac_save_ifs=$IFS; IFS=':'
1049 for ac_dir in $ac_dummy; do
1050 test -z "$ac_dir" && ac_dir=.
1051 if test -f $ac_dir/$ac_word; then
1052 echo "$ac_dir/$ac_word"
1057 if test "$ac_path" = "/usr/ucb/cc"; then
1058 ac_prog_rejected=yes
1064 if test $ac_prog_rejected = yes; then
1065 # We found a bogon in the path, so make sure we never use it.
1066 set dummy $ac_cv_prog_CC
1068 if test $# -gt 0; then
1069 # We chose a different compiler from the bogus one.
1070 # However, it has the same basename, so the bogon will be chosen
1071 # first if we set CC to just the basename; use the full file name.
1073 set dummy "$ac_path" "$@"
1081 if test -n "$CC"; then
1082 echo "$ECHO_T""$CC" 1>&6
1084 echo "$ECHO_T""no" 1>&6
1087 if test -z "$CC"; then
1090 # Extract the first word of "$ac_prog", so it can be a program name with args.
1091 set dummy $ac_prog; ac_word=$2
1092 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
1093 echo "configure:966: checking for $ac_word" 1>&5
1094 if test "${ac_cv_prog_CC+set}" = set; then
1095 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1097 if test -n "$CC"; then
1098 ac_cv_prog_CC="$CC" # Let the user override the test.
1100 for ac_path in `ac_save_ifs=$IFS; IFS=':'
1102 for ac_dir in $ac_dummy; do
1103 test -z "$ac_dir" && ac_dir=.
1104 if test -f $ac_dir/$ac_word; then
1105 echo "$ac_dir/$ac_word"
1110 ac_cv_prog_CC="$ac_prog"
1116 if test -n "$CC"; then
1117 echo "$ECHO_T""$CC" 1>&6
1119 echo "$ECHO_T""no" 1>&6
1122 test -n "$CC" && break
1128 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1130 echo $ECHO_N "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works... $ECHO_C" 1>&6
1131 echo "configure:1000: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" 1>&5
1133 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1134 ac_cpp='$CPP $CPPFLAGS'
1135 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.
$ac_ext 1>&5'
1136 ac_link='${CC-cc} -o conftest
${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS 1>&5'
1137 cross_compiling=$ac_cv_prog_cc_cross
1139 cat >conftest.$ac_ext <<EOF
1140 #line 1008 "configure"
1141 #include "confdefs.h"
1142 int main(){return(0);}
1144 if { (eval echo configure:1012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1145 ac_cv_prog_cc_works=yes
1146 # If we can't run a trivial program
, we are probably using a cross compiler.
1147 if (.
/conftest
; exit) 2>/dev
/null
; then
1148 ac_cv_prog_cc_cross
=no
1150 ac_cv_prog_cc_cross
=yes
1153 echo "configure: failed program was:" >&5
1154 cat conftest.
$ac_ext >&5
1155 ac_cv_prog_cc_works
=no
1159 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1160 ac_cpp
='$CPP $CPPFLAGS'
1161 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1162 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1163 cross_compiling
=$ac_cv_prog_cc_cross
1164 echo "$ECHO_T""$ac_cv_prog_cc_works" 1>&6
1165 if test $ac_cv_prog_cc_works = no
; then
1166 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 77; }
1168 echo $ECHO_N "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler... $ECHO_C" 1>&6
1169 echo "configure:1037: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" 1>&5
1170 echo "$ECHO_T""$ac_cv_prog_cc_cross" 1>&6
1171 cross_compiling
=$ac_cv_prog_cc_cross
1173 echo $ECHO_N "checking whether we are using GNU C... $ECHO_C" 1>&6
1174 echo "configure:1041: checking whether we are using GNU C" 1>&5
1175 if test "${ac_cv_prog_gcc+set}" = set; then
1176 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1178 cat >conftest.c
<<EOF
1183 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1189 echo "$ECHO_T""$ac_cv_prog_gcc" 1>&6
1191 if test $ac_cv_prog_gcc = yes; then
1197 ac_test_CFLAGS
="${CFLAGS+set}"
1198 ac_save_CFLAGS
="$CFLAGS"
1200 echo $ECHO_N "checking whether ${CC-cc} accepts -g... $ECHO_C" 1>&6
1201 echo "configure:1066: checking whether ${CC-cc} accepts -g" 1>&5
1202 if test "${ac_cv_prog_cc_g+set}" = set; then
1203 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1205 echo 'void f(){}' >conftest.c
1206 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1214 echo "$ECHO_T""$ac_cv_prog_cc_g" 1>&6
1215 if test "$ac_test_CFLAGS" = set; then
1216 CFLAGS
="$ac_save_CFLAGS"
1217 elif test $ac_cv_prog_cc_g = yes; then
1218 if test "$GCC" = yes; then
1224 if test "$GCC" = yes; then
1231 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" 1>&6
1232 echo "configure:1095: checking how to run the C preprocessor" 1>&5
1233 # On Suns, sometimes $CPP names a directory.
1234 if test -n "$CPP" && test -d "$CPP"; then
1237 if test -z "$CPP"; then
1238 if test "${ac_cv_prog_CPP+set}" = set; then
1239 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1241 # This must be in double quotes, not single quotes, because CPP may get
1242 # substituted into the Makefile and "${CC-cc}" will confuse make.
1244 # On the NeXT, cc -E runs the code through the compiler's parser,
1245 # not just through cpp.
1247 cat >conftest.
$ac_ext <<EOF
1248 #line 1110 "configure"
1249 #include "confdefs.h"
1253 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1254 { (eval echo configure
:1116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1255 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1256 if test -z "$ac_err"; then
1260 echo "configure: failed program was:" >&5
1261 cat conftest.
$ac_ext >&5
1262 CPP
="${CC-cc} -E -traditional-cpp"
1264 cat >conftest.
$ac_ext <<EOF
1265 #line 1126 "configure"
1266 #include "confdefs.h"
1270 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1271 { (eval echo configure
:1132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1272 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1273 if test -z "$ac_err"; then
1277 echo "configure: failed program was:" >&5
1278 cat conftest.
$ac_ext >&5
1279 CPP
="${CC-cc} -nologo -E"
1281 cat >conftest.
$ac_ext <<EOF
1282 #line 1142 "configure"
1283 #include "confdefs.h"
1287 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1288 { (eval echo configure
:1148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1289 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1290 if test -z "$ac_err"; then
1294 echo "configure: failed program was:" >&5
1295 cat conftest.
$ac_ext >&5
1303 ac_cv_prog_CPP
="$CPP"
1305 CPP
="$ac_cv_prog_CPP"
1307 ac_cv_prog_CPP
="$CPP"
1309 echo "$ECHO_T""$CPP" 1>&6
1313 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" 1>&6
1314 echo "configure:1173: checking dependency style of $depcc" 1>&5
1315 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1316 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1319 if test -z "$AMDEP"; then
1320 echo '#include "conftest.h"' > conftest.c
1321 echo 'int i;' > conftest.h
1323 am_cv_CC_dependencies_compiler_type
=none
1324 for depmode
in `sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < "$am_depcomp"`; do
1327 # after this tag, mechanisms are not by side-effect, so they'll
1328 # only be used when explicitly requested
1329 if test "x$enable_dependency_tracking" = xyes
; then
1337 if depmode
="$depmode" \
1338 source=conftest.c object
=conftest.o \
1339 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
1340 $SHELL $am_depcomp $depcc -c conftest.c
2>/dev
/null
&&
1341 grep conftest.h conftest.Po
> /dev
/null
2>&1; then
1342 am_cv_CC_dependencies_compiler_type
="$depmode"
1349 am_cv_CC_dependencies_compiler_type
=none
1354 echo "$ECHO_T""$am_cv_CC_dependencies_compiler_type" 1>&6
1355 CCDEPMODE
="depmode=$am_cv_CC_dependencies_compiler_type"
1357 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" 1>&6
1358 echo "configure:1211: checking how to run the C preprocessor" 1>&5
1359 # On Suns, sometimes $CPP names a directory.
1360 if test -n "$CPP" && test -d "$CPP"; then
1363 if test -z "$CPP"; then
1364 if test "${ac_cv_prog_CPP+set}" = set; then
1365 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1367 # This must be in double quotes, not single quotes, because CPP may get
1368 # substituted into the Makefile and "${CC-cc}" will confuse make.
1370 # On the NeXT, cc -E runs the code through the compiler's parser,
1371 # not just through cpp.
1373 cat >conftest.
$ac_ext <<EOF
1374 #line 1226 "configure"
1375 #include "confdefs.h"
1379 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1380 { (eval echo configure
:1232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1381 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1382 if test -z "$ac_err"; then
1386 echo "configure: failed program was:" >&5
1387 cat conftest.
$ac_ext >&5
1388 CPP
="${CC-cc} -E -traditional-cpp"
1390 cat >conftest.
$ac_ext <<EOF
1391 #line 1242 "configure"
1392 #include "confdefs.h"
1396 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1397 { (eval echo configure
:1248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1398 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1399 if test -z "$ac_err"; then
1403 echo "configure: failed program was:" >&5
1404 cat conftest.
$ac_ext >&5
1405 CPP
="${CC-cc} -nologo -E"
1407 cat >conftest.
$ac_ext <<EOF
1408 #line 1258 "configure"
1409 #include "confdefs.h"
1413 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1414 { (eval echo configure
:1264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1415 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1416 if test -z "$ac_err"; then
1420 echo "configure: failed program was:" >&5
1421 cat conftest.
$ac_ext >&5
1429 ac_cv_prog_CPP
="$CPP"
1431 CPP
="$ac_cv_prog_CPP"
1433 ac_cv_prog_CPP
="$CPP"
1435 echo "$ECHO_T""$CPP" 1>&6
1439 echo $ECHO_N "checking for AIX... $ECHO_C" 1>&6
1440 echo "configure:1288: checking for AIX" 1>&5
1442 cat >conftest.
$ac_ext <<EOF
1443 #line 1290 "configure"
1444 #include "confdefs.h"
1450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1451 egrep "yes" >/dev
/null
2>&1; then
1452 echo "$ECHO_T""yes" 1>&6
1453 cat >>confdefs.h
<<\EOF
1454 #define _ALL_SOURCE 1
1458 echo "$ECHO_T""no" 1>&6
1462 echo $ECHO_N "checking for minix/config.h... $ECHO_C" 1>&6
1463 echo "configure:1307: checking for minix/config.h" 1>&5
1464 if test "${ac_cv_header_minix_config_h+set}" = set; then
1465 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1468 cat >conftest.
$ac_ext <<EOF
1469 #line 1312 "configure"
1470 #include "confdefs.h"
1471 #include <minix/config.h>
1474 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1475 { (eval echo configure
:1317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1476 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1477 if test -z "$ac_err"; then
1478 ac_cv_header_minix_config_h
=yes
1481 echo "configure: failed program was:" >&5
1482 cat conftest.
$ac_ext >&5
1483 ac_cv_header_minix_config_h
=no
1487 echo "$ECHO_T""$ac_cv_header_minix_config_h" 1>&6
1488 if test $ac_cv_header_minix_config_h = yes; then
1494 if test "$MINIX" = yes; then
1497 cat >>confdefs.h
<<\EOF
1498 #define _POSIX_SOURCE 1
1503 cat >>confdefs.h
<<\EOF
1504 #define _POSIX_1_SOURCE 2
1509 cat >>confdefs.h
<<\EOF
1517 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" 1>&6
1518 echo "configure:1351: checking for strerror in -lcposix" 1>&5
1519 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1522 ac_save_LIBS
="$LIBS"
1523 LIBS
="-lcposix $LIBS"
1524 cat >conftest.
$ac_ext <<EOF
1525 #line 1358 "configure"
1526 #include "confdefs.h"
1528 /* Override any gcc2 internal prototype to avoid an error. */
1532 /* We use char because int might match the return type of a gcc2
1533 builtin and then its argument prototype would still apply. */
1543 if { (eval echo configure
:1375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1544 ac_cv_lib_cposix_strerror
=yes
1546 echo "configure: failed program was:" >&5
1547 cat conftest.
$ac_ext >&5
1548 ac_cv_lib_cposix_strerror
=no
1551 LIBS
="$ac_save_LIBS"
1553 echo "$ECHO_T""$ac_cv_lib_cposix_strerror" 1>&6
1554 if test $ac_cv_lib_cposix_strerror = yes; then
1555 LIBS
="$LIBS -lcposix"
1558 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" 1>&6
1559 echo "configure:1390: checking for ${CC-cc} option to accept ANSI C" 1>&5
1560 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1563 ac_cv_prog_cc_stdc
=no
1565 # Don't try gcc -ansi; that turns off useful extensions and
1566 # breaks some systems' header files.
1567 # AIX -qlanglvl=ansi
1568 # Ultrix and OSF/1 -std1
1569 # HP-UX 10.20 and later -Ae
1570 # HP-UX older versions -Aa -D_HPUX_SOURCE
1571 # SVR4 -Xc -D__EXTENSIONS__
1572 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1574 CC
="$ac_save_CC $ac_arg"
1575 cat >conftest.
$ac_ext <<EOF
1576 #line 1407 "configure"
1577 #include "confdefs.h"
1580 #include <sys/types.h>
1581 #include <sys/stat.h>
1582 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1583 struct buf { int x; };
1584 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1585 static char *e (p, i)
1591 static char *f (char * (*g) (char **, int), char **p, ...)
1596 s = g (p, va_arg (v,int));
1600 int test (int i, double x);
1601 struct s1 {int (*f) (int a);};
1602 struct s2 {int (*f) (double a);};
1603 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1609 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1614 if { (eval echo configure
:1445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1615 ac_cv_prog_cc_stdc
="$ac_arg"; break
1617 echo "configure: failed program was:" >&5
1618 cat conftest.
$ac_ext >&5
1626 case "x$ac_cv_prog_cc_stdc" in
1628 echo "$ECHO_T""none needed" 1>&6 ;;
1630 echo "$ECHO_T""$ac_cv_prog_cc_stdc" 1>&6
1631 CC
="$CC $ac_cv_prog_cc_stdc" ;;
1634 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" 1>&6
1635 echo "configure:1463: checking for ${CC-cc} option to accept ANSI C" 1>&5
1636 if test "${am_cv_prog_cc_stdc+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1639 am_cv_prog_cc_stdc
=no
1641 # Don't try gcc -ansi; that turns off useful extensions and
1642 # breaks some systems' header files.
1643 # AIX -qlanglvl=ansi
1644 # Ultrix and OSF/1 -std1
1645 # HP-UX 10.20 and later -Ae
1646 # HP-UX older versions -Aa -D_HPUX_SOURCE
1647 # SVR4 -Xc -D__EXTENSIONS__
1648 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1650 CC
="$ac_save_CC $ac_arg"
1651 cat >conftest.
$ac_ext <<EOF
1652 #line 1480 "configure"
1653 #include "confdefs.h"
1656 #include <sys/types.h>
1657 #include <sys/stat.h>
1658 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1659 struct buf { int x; };
1660 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1661 static char *e (p, i)
1667 static char *f (char * (*g) (char **, int), char **p, ...)
1672 s = g (p, va_arg (v,int));
1676 int test (int i, double x);
1677 struct s1 {int (*f) (int a);};
1678 struct s2 {int (*f) (double a);};
1679 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1687 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1693 if { (eval echo configure
:1518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1694 am_cv_prog_cc_stdc
="$ac_arg"; break
1696 echo "configure: failed program was:" >&5
1697 cat conftest.
$ac_ext >&5
1705 if test -z "$am_cv_prog_cc_stdc"; then
1706 echo "$ECHO_T""none needed" 1>&6
1708 echo "$ECHO_T""$am_cv_prog_cc_stdc" 1>&6
1710 case "x$am_cv_prog_cc_stdc" in
1712 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1715 echo $ECHO_N "checking for function prototypes... $ECHO_C" 1>&6
1716 echo "configure:1538: checking for function prototypes" 1>&5
1717 if test "$am_cv_prog_cc_stdc" != no
; then
1718 echo "$ECHO_T""yes" 1>&6
1721 cat >>confdefs.h
<<\EOF
1722 #define PROTOTYPES 1
1727 echo "$ECHO_T""no" 1>&6
1728 U
=_ ANSI2KNR
=.
/ansi2knr
1729 # Ensure some checks needed by ansi2knr itself.
1731 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
1732 echo "configure:1551: checking for ANSI C header files" 1>&5
1733 if test "${ac_cv_header_stdc+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1737 cat >conftest.
$ac_ext <<EOF
1738 #line 1556 "configure"
1739 #include "confdefs.h"
1746 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1747 { (eval echo configure
:1564: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1748 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1749 if test -z "$ac_err"; then
1750 ac_cv_header_stdc
=yes
1753 echo "configure: failed program was:" >&5
1754 cat conftest.
$ac_ext >&5
1755 ac_cv_header_stdc
=no
1759 if test $ac_cv_header_stdc = yes; then
1760 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1762 cat >conftest.
$ac_ext <<EOF
1763 #line 1578 "configure"
1764 #include "confdefs.h"
1768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1769 egrep "memchr" >/dev
/null
2>&1; then
1772 ac_cv_header_stdc
=no
1778 if test $ac_cv_header_stdc = yes; then
1779 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1781 cat >conftest.
$ac_ext <<EOF
1782 #line 1593 "configure"
1783 #include "confdefs.h"
1787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1788 egrep "free" >/dev
/null
2>&1; then
1791 ac_cv_header_stdc
=no
1797 if test $ac_cv_header_stdc = yes; then
1798 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1799 if test "$cross_compiling" = yes; then
1802 cat >conftest.
$ac_ext <<EOF
1803 #line 1611 "configure"
1804 #include "confdefs.h"
1806 #if ((' ' & 0x0FF) == 0x020)
1807 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1808 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1810 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
1811 || ('j' <= (c) && (c) <= 'r') \
1812 || ('s' <= (c) && (c) <= 'z'))
1813 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1816 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1821 for (i = 0; i < 256; i++)
1822 if (XOR (islower (i), ISLOWER (i))
1823 || toupper (i) != TOUPPER (i))
1828 if { (eval echo configure
:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
1829 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
1832 echo "configure: failed program was:" >&5
1833 cat conftest.
$ac_ext >&5
1834 ac_cv_header_stdc
=no
1841 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
1842 if test $ac_cv_header_stdc = yes; then
1845 cat >>confdefs.h
<<\EOF
1846 #define STDC_HEADERS 1
1853 for ac_header
in string.h
1855 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
1856 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
1857 echo "configure:1659: checking for $ac_header" 1>&5
1858 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
1859 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1862 cat >conftest.
$ac_ext <<EOF
1863 #line 1664 "configure"
1864 #include "confdefs.h"
1865 #include <$ac_header>
1868 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1869 { (eval echo configure
:1669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1870 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1871 if test -z "$ac_err"; then
1872 eval "$ac_ac_Header=yes"
1875 echo "configure: failed program was:" >&5
1876 cat conftest.
$ac_ext >&5
1877 eval "$ac_ac_Header=no"
1881 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
1882 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
1883 cat >>confdefs.h
<<EOF
1884 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
1892 # Find a good install program. We prefer a C program (faster),
1893 # so one script is as good as another. But avoid the broken or
1894 # incompatible versions:
1895 # SysV /etc/install, /usr/sbin/install
1896 # SunOS /usr/etc/install
1897 # IRIX /sbin/install
1899 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1900 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1901 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1902 # ./install, which can be erroneously created by make from ./install.sh.
1903 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" 1>&6
1904 echo "configure:1701: checking for a BSD compatible install" 1>&5
1905 if test -z "$INSTALL"; then
1906 if test "${ac_cv_path_install+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1909 ac_save_IFS
=$IFS; IFS
=':'
1910 for ac_dir
in $PATH; do
1911 # Account for people who put trailing slashes in PATH elements.
1913 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1915 # OSF1 and SCO ODT 3.0 have their own names for install.
1916 # Don't use installbsd from OSF since it installs stuff as root
1918 for ac_prog
in ginstall scoinst
install; do
1919 if test -f $ac_dir/$ac_prog; then
1920 if test $ac_prog = install &&
1921 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1922 # AIX install. It has an incompatible calling convention.
1924 elif test $ac_prog = install &&
1925 grep pwplus
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1926 # program-specific install script used by HP pwplus--don't use.
1929 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1940 if test "${ac_cv_path_install+set}" = set; then
1941 INSTALL
="$ac_cv_path_install"
1943 # As a last resort, use the slow shell script. We don't cache a
1944 # path for INSTALL within a source directory, because that will
1945 # break other packages using the cache if that directory is
1946 # removed, or if the path is relative.
1947 INSTALL
="$ac_install_sh"
1950 echo "$ECHO_T""$INSTALL" 1>&6
1952 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1953 # It thinks the first close brace ends the variable substitution.
1954 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1956 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1958 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1960 # Extract the first word of "ranlib", so it can be a program name with args.
1961 set dummy ranlib
; ac_word
=$2
1962 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
1963 echo "configure:1755: checking for $ac_word" 1>&5
1964 if test "${ac_cv_prog_RANLIB+set}" = set; then
1965 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1967 if test -n "$RANLIB"; then
1968 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1970 for ac_path
in `ac_save_ifs=$IFS; IFS=':'
1972 for ac_dir in $ac_dummy; do
1973 test -z "$ac_dir" && ac_dir=.
1974 if test -f $ac_dir/$ac_word; then
1975 echo "$ac_dir/$ac_word"
1980 ac_cv_prog_RANLIB
="ranlib"
1983 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1986 RANLIB
="$ac_cv_prog_RANLIB"
1987 if test -n "$RANLIB"; then
1988 echo "$ECHO_T""$RANLIB" 1>&6
1990 echo "$ECHO_T""no" 1>&6
1993 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" 1>&6
1994 echo "configure:1785: checking whether ${MAKE-make} sets \${MAKE}" 1>&5
1995 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1996 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1997 echo $ECHO_N "(cached) $ECHO_C" 1>&6
1999 cat >conftestmake
<<\EOF
2001 @
echo 'ac_maketemp="${MAKE}"'
2003 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2004 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2005 if test -n "$ac_maketemp"; then
2006 eval ac_cv_prog_make_
${ac_make}_set
=yes
2008 eval ac_cv_prog_make_
${ac_make}_set
=no
2012 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2013 echo "$ECHO_T""yes" 1>&6
2016 echo "$ECHO_T""no" 1>&6
2017 SET_MAKE
="MAKE=${MAKE-make}"
2020 echo $ECHO_N "checking build system type... $ECHO_C" 1>&6
2021 echo "configure:1811: checking build system type" 1>&5
2022 if test "x$ac_cv_build" = "x" ||
(test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
2024 # Make sure we can run config.sub.
2025 if $ac_config_sub sun4
>/dev
/null
2>&1; then :; else
2026 { echo "configure: error: cannot run $ac_config_sub" 1>&2; exit 1; }
2029 ac_cv_build_alias
=$build
2030 case "$ac_cv_build_alias" in
2034 ac_cv_build_alias
=$host_alias ;;
2035 *) ac_cv_build_alias
=$nonopt ;;
2039 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
exit 1
2040 ac_cv_build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2041 ac_cv_build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2042 ac_cv_build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2044 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2047 echo "$ECHO_T""$ac_cv_build" 1>&6
2050 build_alias
=$ac_cv_build_alias
2051 build_cpu
=$ac_cv_build_cpu
2052 build_vendor
=$ac_cv_build_vendor
2053 build_os
=$ac_cv_build_os
2055 if test $host != $build; then
2056 ac_tool_prefix
=${host_alias}-
2061 # Check whether --enable-largefile or --disable-largefile was given.
2062 if test "${enable_largefile+set}" = set; then
2063 enableval
="$enable_largefile"
2066 if test "$enable_largefile" != no
; then
2068 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
2069 set dummy
${ac_tool_prefix}getconf
; ac_word
=$2
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
2071 echo "configure:1852: checking for $ac_word" 1>&5
2072 if test "${ac_cv_prog_GETCONF+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2075 if test -n "$GETCONF"; then
2076 ac_cv_prog_GETCONF
="$GETCONF" # Let the user override the test.
2078 for ac_path
in `ac_save_ifs=$IFS; IFS=':'
2080 for ac_dir in $ac_dummy; do
2081 test -z "$ac_dir" && ac_dir=.
2082 if test -f $ac_dir/$ac_word; then
2083 echo "$ac_dir/$ac_word"
2088 ac_cv_prog_GETCONF
="${ac_tool_prefix}getconf"
2091 test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF
="getconf"
2094 GETCONF
="$ac_cv_prog_GETCONF"
2095 if test -n "$GETCONF"; then
2096 echo "$ECHO_T""$GETCONF" 1>&6
2098 echo "$ECHO_T""no" 1>&6
2101 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" 1>&6
2102 echo "configure:1882: checking for CFLAGS value to request large file support" 1>&5
2103 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2106 if ($GETCONF LFS_CFLAGS
) >conftest
.1 2>conftest
.2 && test ! -s conftest
.2
2108 ac_cv_sys_largefile_CFLAGS
=`cat conftest.1`
2110 ac_cv_sys_largefile_CFLAGS
=no
2112 # HP-UX 10.20 requires -D__STDC_EXT__ with gcc 2.95.1.
2113 hpux10.
[2-9][0-9]* | hpux1
[1-9]* | hpux
[2-9][0-9]*)
2114 if test "$GCC" = yes; then
2115 ac_cv_sys_largefile_CFLAGS
=-D__STDC_EXT__
2118 # IRIX 6.2 and later require cc -n32.
2119 irix6.
[2-9]* | irix6.1
[0-9]* | irix
[7-9].
* | irix
[1-9][0-9]*)
2120 if test "$GCC" != yes; then
2121 ac_cv_sys_largefile_CFLAGS
=-n32
2124 if test "$ac_cv_sys_largefile_CFLAGS" != no
; then
2126 CC
="$CC $ac_cv_sys_largefile_CFLAGS"
2127 cat >conftest.
$ac_ext <<EOF
2128 #line 1908 "configure"
2129 #include "confdefs.h"
2139 if { (eval echo configure
:1917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2142 echo "configure: failed program was:" >&5
2143 cat conftest.
$ac_ext >&5
2144 ac_cv_sys_largefile_CFLAGS
=no
2152 echo "$ECHO_T""$ac_cv_sys_largefile_CFLAGS" 1>&6
2153 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" 1>&6
2154 echo "configure:1932: checking for LDFLAGS value to request large file support" 1>&5
2155 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2158 if ($GETCONF LFS_LDFLAGS
) >conftest
.1 2>conftest
.2 && test ! -s conftest
.2
2160 ac_cv_sys_largefile_LDFLAGS
=`cat conftest.1`
2162 ac_cv_sys_largefile_LDFLAGS
=no
2167 echo "$ECHO_T""$ac_cv_sys_largefile_LDFLAGS" 1>&6
2168 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" 1>&6
2169 echo "configure:1947: checking for LIBS value to request large file support" 1>&5
2170 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2173 if ($GETCONF LFS_LIBS
) >conftest
.1 2>conftest
.2 && test ! -s conftest
.2
2175 ac_cv_sys_largefile_LIBS
=`cat conftest.1`
2177 ac_cv_sys_largefile_LIBS
=no
2182 echo "$ECHO_T""$ac_cv_sys_largefile_LIBS" 1>&6
2184 for ac_flag
in $ac_cv_sys_largefile_CFLAGS no
; do
2187 -D_FILE_OFFSET_BITS=*) ;;
2188 -D_LARGEFILE_SOURCE |
-D_LARGEFILE_SOURCE=*) ;;
2189 -D_LARGE_FILES |
-D_LARGE_FILES=*) ;;
2195 '') CPPFLAGS
="$ac_flag" ;;
2196 *) CPPFLAGS
=$CPPFLAGS' '"$ac_flag" ;;
2204 '') CFLAGS
="$ac_flag" ;;
2205 *) CFLAGS
=$CFLAGS' '"$ac_flag" ;;
2210 case "$ac_cv_sys_largefile_LDFLAGS" in
2214 '') LDFLAGS
="$ac_cv_sys_largefile_LDFLAGS" ;;
2215 *) LDFLAGS
=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
2218 case "$ac_cv_sys_largefile_LIBS" in
2222 '') LIBS
="$ac_cv_sys_largefile_LIBS" ;;
2223 *) LIBS
=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
2226 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" 1>&6
2227 echo "configure:2004: checking for _FILE_OFFSET_BITS" 1>&5
2228 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2231 ac_cv_sys_file_offset_bits
=no
2233 # HP-UX 10.20 and later
2234 hpux10.
[2-9][0-9]* | hpux1
[1-9]* | hpux
[2-9][0-9]*)
2235 ac_cv_sys_file_offset_bits
=64 ;;
2237 for ac_flag
in $ac_cv_sys_largefile_CFLAGS no
; do
2239 -D_FILE_OFFSET_BITS)
2240 ac_cv_sys_file_offset_bits
=1 ;;
2241 -D_FILE_OFFSET_BITS=*)
2242 ac_cv_sys_file_offset_bits
=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
2247 echo "$ECHO_T""$ac_cv_sys_file_offset_bits" 1>&6
2248 if test "$ac_cv_sys_file_offset_bits" != no
; then
2251 cat >>confdefs.h
<<EOF
2252 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2256 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" 1>&6
2257 echo "configure:2031: checking for _LARGEFILE_SOURCE" 1>&5
2258 if test "${ac_cv_sys_largefile_source+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2261 ac_cv_sys_largefile_source
=no
2263 # HP-UX 10.20 and later
2264 hpux10.
[2-9][0-9]* | hpux1
[1-9]* | hpux
[2-9][0-9]*)
2265 ac_cv_sys_largefile_source
=1 ;;
2267 for ac_flag
in $ac_cv_sys_largefile_CFLAGS no
; do
2269 -D_LARGEFILE_SOURCE)
2270 ac_cv_sys_largefile_source
=1 ;;
2271 -D_LARGEFILE_SOURCE=*)
2272 ac_cv_sys_largefile_source
=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
2277 echo "$ECHO_T""$ac_cv_sys_largefile_source" 1>&6
2278 if test "$ac_cv_sys_largefile_source" != no
; then
2281 cat >>confdefs.h
<<EOF
2282 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
2286 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" 1>&6
2287 echo "configure:2058: checking for _LARGE_FILES" 1>&5
2288 if test "${ac_cv_sys_large_files+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2291 ac_cv_sys_large_files
=no
2294 aix4.
[2-9]* | aix4.1
[0-9]* | aix
[5-9].
* | aix
[1-9][0-9]*)
2295 ac_cv_sys_large_files
=1 ;;
2297 for ac_flag
in $ac_cv_sys_largefile_CFLAGS no
; do
2300 ac_cv_sys_large_files
=1 ;;
2302 ac_cv_sys_large_files
=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
2307 echo "$ECHO_T""$ac_cv_sys_large_files" 1>&6
2308 if test "$ac_cv_sys_large_files" != no
; then
2311 cat >>confdefs.h
<<EOF
2312 #define _LARGE_FILES $ac_cv_sys_large_files
2318 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" 1>&6
2319 echo "configure:2086: checking whether time.h and sys/time.h may both be included" 1>&5
2320 if test "${ac_cv_header_time+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2323 cat >conftest.
$ac_ext <<EOF
2324 #line 2091 "configure"
2325 #include "confdefs.h"
2326 #include <sys/types.h>
2327 #include <sys/time.h>
2338 if { (eval echo configure
:2104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2339 ac_cv_header_time
=yes
2341 echo "configure: failed program was:" >&5
2342 cat conftest.
$ac_ext >&5
2343 ac_cv_header_time
=no
2347 echo "$ECHO_T""$ac_cv_header_time" 1>&6
2348 if test $ac_cv_header_time = yes; then
2351 cat >>confdefs.h
<<\EOF
2352 #define TIME_WITH_SYS_TIME 1
2357 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" 1>&6
2358 echo "configure:2121: checking for uid_t in sys/types.h" 1>&5
2359 if test "${ac_cv_type_uid_t+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2363 cat >conftest.
$ac_ext <<EOF
2364 #line 2126 "configure"
2365 #include "confdefs.h"
2366 #include <sys/types.h>
2369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2370 egrep "uid_t" >/dev
/null
2>&1; then
2371 ac_cv_type_uid_t
=yes
2378 echo "$ECHO_T""$ac_cv_type_uid_t" 1>&6
2379 if test $ac_cv_type_uid_t = no
; then
2382 cat >>confdefs.h
<<\EOF
2388 cat >>confdefs.h
<<\EOF
2394 echo $ECHO_N "checking for inttypes.h... $ECHO_C" 1>&6
2395 echo "configure:2150: checking for inttypes.h" 1>&5
2396 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2399 cat >conftest.
$ac_ext <<EOF
2400 #line 2155 "configure"
2401 #include "confdefs.h"
2402 #include <sys/types.h>
2403 #include <inttypes.h>
2407 uintmax_t i = (uintmax_t) -1;
2412 if { (eval echo configure
:2167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2413 jm_ac_cv_header_inttypes_h
=yes
2415 echo "configure: failed program was:" >&5
2416 cat conftest.
$ac_ext >&5
2417 jm_ac_cv_header_inttypes_h
=no
2421 echo "$ECHO_T""$jm_ac_cv_header_inttypes_h" 1>&6
2422 if test $jm_ac_cv_header_inttypes_h = yes; then
2425 cat >>confdefs.h
<<EOF
2426 #define HAVE_INTTYPES_H 1
2431 echo $ECHO_N "checking for unsigned long long... $ECHO_C" 1>&6
2432 echo "configure:2184: checking for unsigned long long" 1>&5
2433 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2436 cat >conftest.
$ac_ext <<EOF
2437 #line 2189 "configure"
2438 #include "confdefs.h"
2439 unsigned long long ull = 1; int i = 63;
2443 unsigned long long ullmax = (unsigned long long) -1;
2444 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
2449 if { (eval echo configure
:2201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2450 ac_cv_type_unsigned_long_long
=yes
2452 echo "configure: failed program was:" >&5
2453 cat conftest.
$ac_ext >&5
2454 ac_cv_type_unsigned_long_long
=no
2458 echo "$ECHO_T""$ac_cv_type_unsigned_long_long" 1>&6
2459 if test $ac_cv_type_unsigned_long_long = yes; then
2462 cat >>confdefs.h
<<\EOF
2463 #define HAVE_UNSIGNED_LONG_LONG 1
2468 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" 1>&6
2469 echo "configure:2218: checking whether byte ordering is bigendian" 1>&5
2470 if test "${ac_cv_c_bigendian+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2473 ac_cv_c_bigendian
=unknown
2474 # See if sys/param.h defines the BYTE_ORDER macro.
2475 cat >conftest.
$ac_ext <<EOF
2476 #line 2225 "configure"
2477 #include "confdefs.h"
2478 #include <sys/types.h>
2479 #include <sys/param.h>
2484 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2492 if { (eval echo configure
:2239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2493 # It does; now see whether it defined to BIG_ENDIAN or not.
2494 cat >conftest.
$ac_ext <<EOF
2495 #line 2242 "configure"
2496 #include "confdefs.h"
2497 #include <sys/types.h>
2498 #include <sys/param.h>
2503 #if BYTE_ORDER != BIG_ENDIAN
2511 if { (eval echo configure
:2256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2512 ac_cv_c_bigendian
=yes
2514 echo "configure: failed program was:" >&5
2515 cat conftest.
$ac_ext >&5
2516 ac_cv_c_bigendian
=no
2520 echo "configure: failed program was:" >&5
2521 cat conftest.
$ac_ext >&5
2524 if test $ac_cv_c_bigendian = unknown
; then
2525 if test "$cross_compiling" = yes; then
2526 { echo "configure: error: cannot run test program while cross compiling" 1>&2; exit 1; }
2528 cat >conftest.
$ac_ext <<EOF
2529 #line 2274 "configure"
2530 #include "confdefs.h"
2534 /* Are we little or big endian? From Harbison&Steele. */
2538 char c[sizeof (long)];
2541 exit (u.c[sizeof (long) - 1] == 1);
2544 if { (eval echo configure
:2289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
2545 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
2546 ac_cv_c_bigendian
=no
2548 echo "configure: failed program was:" >&5
2549 cat conftest.
$ac_ext >&5
2550 ac_cv_c_bigendian
=yes
2557 echo "$ECHO_T""$ac_cv_c_bigendian" 1>&6
2558 if test $ac_cv_c_bigendian = yes; then
2561 cat >>confdefs.h
<<\EOF
2562 #define WORDS_BIGENDIAN 1
2567 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" 1>&6
2568 echo "configure:2309: checking for an ANSI C-conforming const" 1>&5
2569 if test "${ac_cv_c_const+set}" = set; then
2570 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2572 cat >conftest.
$ac_ext <<EOF
2573 #line 2314 "configure"
2574 #include "confdefs.h"
2579 /* FIXME: Include the comments suggested by Paul. */
2581 /* Ultrix mips cc rejects this. */
2582 typedef int charset[2];
2584 /* SunOS 4.1.1 cc rejects this. */
2585 char const *const *ccp;
2587 /* NEC SVR4.0.2 mips cc rejects this. */
2588 struct point {int x, y;};
2589 static struct point const zero = {0,0};
2590 /* AIX XL C 1.02.0.0 rejects this.
2591 It does not let you subtract one const X* pointer from another in
2592 an arm of an if-expression whose if-part is not a constant
2594 const char *g = "string";
2595 ccp = &g + (g ? g-g : 0);
2596 /* HPUX 7.0 cc rejects these. */
2599 ccp = (char const *const *) p;
2600 { /* SCO 3.2v4 cc rejects this. */
2602 char const *s = 0 ? (char *) 0 : (char const *) 0;
2606 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2608 const int *foo = &x[0];
2611 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2612 typedef const int *iptr;
2616 { /* AIX XL C 1.02.0.0 rejects this saying
2617 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2618 struct s { int j; const int *ap[3]; };
2619 struct s *b; b->j = 5;
2621 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2630 if { (eval echo configure
:2368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2633 echo "configure: failed program was:" >&5
2634 cat conftest.
$ac_ext >&5
2639 echo "$ECHO_T""$ac_cv_c_const" 1>&6
2640 if test $ac_cv_c_const = no
; then
2643 cat >>confdefs.h
<<\EOF
2649 echo $ECHO_N "checking for working volatile... $ECHO_C" 1>&6
2650 echo "configure:2385: checking for working volatile" 1>&5
2651 if test "${ac_cv_c_volatile+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2654 cat >conftest.
$ac_ext <<EOF
2655 #line 2390 "configure"
2656 #include "confdefs.h"
2668 if { (eval echo configure
:2401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2669 ac_cv_c_volatile
=yes
2671 echo "configure: failed program was:" >&5
2672 cat conftest.
$ac_ext >&5
2677 echo "$ECHO_T""$ac_cv_c_volatile" 1>&6
2678 if test $ac_cv_c_volatile = no
; then
2681 cat >>confdefs.h
<<\EOF
2687 echo $ECHO_N "checking for inline... $ECHO_C" 1>&6
2688 echo "configure:2418: checking for inline" 1>&5
2689 if test "${ac_cv_c_inline+set}" = set; then
2690 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2693 for ac_kw
in inline __inline__ __inline
; do
2694 cat >conftest.
$ac_ext <<EOF
2695 #line 2425 "configure"
2696 #include "confdefs.h"
2702 } $ac_kw int foo() {
2709 if { (eval echo configure
:2437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2710 ac_cv_c_inline
=$ac_kw; break
2712 echo "configure: failed program was:" >&5
2713 cat conftest.
$ac_ext >&5
2719 echo "$ECHO_T""$ac_cv_c_inline" 1>&6
2720 case "$ac_cv_c_inline" in
2724 cat >>confdefs.h
<<\EOF
2728 *) cat >>confdefs.h
<<EOF
2729 #define inline $ac_cv_c_inline
2734 echo $ECHO_N "checking for long double... $ECHO_C" 1>&6
2735 echo "configure:2460: checking for long double" 1>&5
2736 if test "${ac_cv_c_long_double+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2739 if test "$GCC" = yes; then
2740 ac_cv_c_long_double
=yes
2742 if test "$cross_compiling" = yes; then
2743 { echo "configure: error: cannot run test program while cross compiling" 1>&2; exit 1; }
2745 cat >conftest.
$ac_ext <<EOF
2746 #line 2471 "configure"
2747 #include "confdefs.h"
2751 /* The Stardent Vistra knows sizeof(long double), but does not
2753 long double foo = 0.0;
2754 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
2755 exit (sizeof (long double) < sizeof (double));
2758 if { (eval echo configure
:2483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
2759 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
2760 ac_cv_c_long_double
=yes
2762 echo "configure: failed program was:" >&5
2763 cat conftest.
$ac_ext >&5
2764 ac_cv_c_long_double
=no
2771 echo "$ECHO_T""$ac_cv_c_long_double" 1>&6
2772 if test $ac_cv_c_long_double = yes; then
2775 cat >>confdefs.h
<<\EOF
2776 #define HAVE_LONG_DOUBLE 1
2790 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2792 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2793 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" 1>&6
2794 echo "configure:2511: checking for $ac_hdr that defines DIR" 1>&5
2795 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
2796 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2798 cat >conftest.
$ac_ext <<EOF
2799 #line 2516 "configure"
2800 #include "confdefs.h"
2801 #include <sys/types.h>
2812 if { (eval echo configure
:2528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2813 eval "ac_cv_header_dirent_$ac_safe=yes"
2815 echo "configure: failed program was:" >&5
2816 cat conftest.
$ac_ext >&5
2817 eval "ac_cv_header_dirent_$ac_safe=no"
2821 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2822 echo "$ECHO_T""yes" 1>&6
2823 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2824 cat >>confdefs.h
<<EOF
2825 #define $ac_tr_hdr 1
2827 ac_header_dirent
=$ac_hdr; break
2829 echo "$ECHO_T""no" 1>&6
2832 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2833 if test $ac_header_dirent = dirent.h
; then
2836 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" 1>&6
2837 echo "configure:2552: checking for opendir in -ldir" 1>&5
2838 if test "${ac_cv_lib_dir_opendir+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2841 ac_save_LIBS
="$LIBS"
2843 cat >conftest.
$ac_ext <<EOF
2844 #line 2559 "configure"
2845 #include "confdefs.h"
2847 /* Override any gcc2 internal prototype to avoid an error. */
2851 /* We use char because int might match the return type of a gcc2
2852 builtin and then its argument prototype would still apply. */
2862 if { (eval echo configure
:2576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2863 ac_cv_lib_dir_opendir
=yes
2865 echo "configure: failed program was:" >&5
2866 cat conftest.
$ac_ext >&5
2867 ac_cv_lib_dir_opendir
=no
2870 LIBS
="$ac_save_LIBS"
2872 echo "$ECHO_T""$ac_cv_lib_dir_opendir" 1>&6
2873 if test $ac_cv_lib_dir_opendir = yes; then
2880 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" 1>&6
2881 echo "configure:2593: checking for opendir in -lx" 1>&5
2882 if test "${ac_cv_lib_x_opendir+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2885 ac_save_LIBS
="$LIBS"
2887 cat >conftest.
$ac_ext <<EOF
2888 #line 2600 "configure"
2889 #include "confdefs.h"
2891 /* Override any gcc2 internal prototype to avoid an error. */
2895 /* We use char because int might match the return type of a gcc2
2896 builtin and then its argument prototype would still apply. */
2906 if { (eval echo configure
:2617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2907 ac_cv_lib_x_opendir
=yes
2909 echo "configure: failed program was:" >&5
2910 cat conftest.
$ac_ext >&5
2911 ac_cv_lib_x_opendir
=no
2914 LIBS
="$ac_save_LIBS"
2916 echo "$ECHO_T""$ac_cv_lib_x_opendir" 1>&6
2917 if test $ac_cv_lib_x_opendir = yes; then
2923 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" 1>&6
2924 echo "configure:2633: checking for struct stat.st_blocks" 1>&5
2925 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2928 cat >conftest.
$ac_ext <<EOF
2929 #line 2638 "configure"
2930 #include "confdefs.h"
2931 #include <sys/types.h>
2932 #include <sys/stat.h>
2943 if { (eval echo configure
:2651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2944 ac_cv_member_struct_stat_st_blocks
=yes
2946 echo "configure: failed program was:" >&5
2947 cat conftest.
$ac_ext >&5
2948 ac_cv_member_struct_stat_st_blocks
=no
2952 echo "$ECHO_T""$ac_cv_member_struct_stat_st_blocks" 1>&6
2953 if test $ac_cv_member_struct_stat_st_blocks = yes; then
2956 cat >>confdefs.h
<<EOF
2957 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
2962 cat >>confdefs.h
<<\EOF
2963 #define HAVE_ST_BLOCKS 1
2967 LIBOBJS
="$LIBOBJS fileblocks.${ac_objext}"
2971 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" 1>&6
2972 echo "configure:2674: checking whether struct tm is in sys/time.h or time.h" 1>&5
2973 if test "${ac_cv_struct_tm+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" 1>&6
2976 cat >conftest.
$ac_ext <<EOF
2977 #line 2679 "configure"
2978 #include "confdefs.h"
2979 #include <sys/types.h>
2985 struct tm *tp; tp->tm_sec;
2990 if { (eval echo configure
:2691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2991 ac_cv_struct_tm
=time.h
2993 echo "configure: failed program was:" >&5
2994 cat conftest.
$ac_ext >&5
2995 ac_cv_struct_tm
=sys
/time.h
2999 echo "$ECHO_T""$ac_cv_struct_tm" 1>&6
3000 if test $ac_cv_struct_tm = sys
/time.h
; then
3003 cat >>confdefs.h
<<\EOF
3004 #define TM_IN_SYS_TIME 1
3009 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" 1>&6
3010 echo "configure:2708: checking for struct tm.tm_zone" 1>&5
3011 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3014 cat >conftest.
$ac_ext <<EOF
3015 #line 2713 "configure"
3016 #include "confdefs.h"
3017 #include <sys/types.h>
3018 #include <$ac_cv_struct_tm>
3029 if { (eval echo configure
:2726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3030 ac_cv_member_struct_tm_tm_zone
=yes
3032 echo "configure: failed program was:" >&5
3033 cat conftest.
$ac_ext >&5
3034 ac_cv_member_struct_tm_tm_zone
=no
3038 echo "$ECHO_T""$ac_cv_member_struct_tm_tm_zone" 1>&6
3039 if test $ac_cv_member_struct_tm_tm_zone = yes; then
3042 cat >>confdefs.h
<<EOF
3043 #define HAVE_STRUCT_TM_TM_ZONE 1
3048 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
3051 cat >>confdefs.h
<<\EOF
3052 #define HAVE_TM_ZONE 1
3056 echo $ECHO_N "checking for tzname... $ECHO_C" 1>&6
3057 echo "configure:2749: checking for tzname" 1>&5
3058 if test "${ac_cv_var_tzname+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3061 cat >conftest.
$ac_ext <<EOF
3062 #line 2754 "configure"
3063 #include "confdefs.h"
3065 #ifndef tzname /* For SGI. */
3066 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3077 if { (eval echo configure
:2768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3078 ac_cv_var_tzname
=yes
3080 echo "configure: failed program was:" >&5
3081 cat conftest.
$ac_ext >&5
3086 echo "$ECHO_T""$ac_cv_var_tzname" 1>&6
3087 if test $ac_cv_var_tzname = yes; then
3090 cat >>confdefs.h
<<\EOF
3091 #define HAVE_TZNAME 1
3097 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" 1>&6
3098 echo "configure:2786: checking whether stat file-mode macros are broken" 1>&5
3099 if test "${ac_cv_header_stat_broken+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3103 cat >conftest.
$ac_ext <<EOF
3104 #line 2791 "configure"
3105 #include "confdefs.h"
3106 #include <sys/types.h>
3107 #include <sys/stat.h>
3109 #if defined(S_ISBLK) && defined(S_IFDIR)
3110 # if S_ISBLK (S_IFDIR)
3115 #if defined(S_ISBLK) && defined(S_IFCHR)
3116 # if S_ISBLK (S_IFCHR)
3121 #if defined(S_ISLNK) && defined(S_IFREG)
3122 # if S_ISLNK (S_IFREG)
3127 #if defined(S_ISSOCK) && defined(S_IFREG)
3128 # if S_ISSOCK (S_IFREG)
3134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3135 egrep "You lose" >/dev
/null
2>&1; then
3136 ac_cv_header_stat_broken
=yes
3138 ac_cv_header_stat_broken
=no
3143 echo "$ECHO_T""$ac_cv_header_stat_broken" 1>&6
3144 if test $ac_cv_header_stat_broken = yes; then
3147 cat >>confdefs.h
<<\EOF
3148 #define STAT_MACROS_BROKEN 1
3153 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" 1>&6
3154 echo "configure:2832: checking for nanoseconds member of struct stat.st_mtim" 1>&5
3155 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3158 ac_save_CPPFLAGS
="$CPPFLAGS"
3159 ac_cv_struct_st_mtim_nsec
=no
3160 # tv_nsec -- the usual case
3161 # _tv_nsec -- Solaris 2.6, if
3162 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
3163 # && !defined __EXTENSIONS__)
3164 # st__tim.tv_nsec -- UnixWare 2.1.2
3165 for ac_val
in tv_nsec _tv_nsec st__tim.tv_nsec
; do
3166 CPPFLAGS
="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
3167 cat >conftest.
$ac_ext <<EOF
3168 #line 2846 "configure"
3169 #include "confdefs.h"
3170 #include <sys/types.h>
3171 #include <sys/stat.h>
3175 struct stat s; s.st_mtim.ST_MTIM_NSEC;
3180 if { (eval echo configure
:2858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3181 ac_cv_struct_st_mtim_nsec
=$ac_val; break
3183 echo "configure: failed program was:" >&5
3184 cat conftest.
$ac_ext >&5
3188 CPPFLAGS
="$ac_save_CPPFLAGS"
3190 echo "$ECHO_T""$ac_cv_struct_st_mtim_nsec" 1>&6
3192 if test $ac_cv_struct_st_mtim_nsec != no
; then
3195 cat >>confdefs.h
<<EOF
3196 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
3201 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" 1>&6
3202 echo "configure:2876: checking for st_dm_mode in struct stat" 1>&5
3203 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3206 cat >conftest.
$ac_ext <<EOF
3207 #line 2881 "configure"
3208 #include "confdefs.h"
3209 #include <sys/types.h>
3210 #include <sys/stat.h>
3214 struct stat s; s.st_dm_mode;
3219 if { (eval echo configure
:2893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3220 ac_cv_struct_st_dm_mode
=yes
3222 echo "configure: failed program was:" >&5
3223 cat conftest.
$ac_ext >&5
3224 ac_cv_struct_st_dm_mode
=no
3228 echo "$ECHO_T""$ac_cv_struct_st_dm_mode" 1>&6
3230 if test $ac_cv_struct_st_dm_mode = yes; then
3233 cat >>confdefs.h
<<EOF
3234 #define HAVE_ST_DM_MODE 1
3239 echo $ECHO_N "checking for struct timespec... $ECHO_C" 1>&6
3240 echo "configure:2910: checking for struct timespec" 1>&5
3241 if test "${fu_cv_sys_struct_timespec+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3244 cat >conftest.
$ac_ext <<EOF
3245 #line 2915 "configure"
3246 #include "confdefs.h"
3248 # if TIME_WITH_SYS_TIME
3249 # include <sys/time.h>
3252 # if HAVE_SYS_TIME_H
3253 # include <sys/time.h>
3262 static struct timespec x; x.tv_sec = x.tv_nsec;
3267 if { (eval echo configure
:2935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3268 fu_cv_sys_struct_timespec
=yes
3270 echo "configure: failed program was:" >&5
3271 cat conftest.
$ac_ext >&5
3272 fu_cv_sys_struct_timespec
=no
3277 echo "$ECHO_T""$fu_cv_sys_struct_timespec" 1>&6
3279 if test $fu_cv_sys_struct_timespec = yes; then
3282 cat >>confdefs.h
<<EOF
3283 #define HAVE_STRUCT_TIMESPEC 1
3288 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" 1>&6
3289 echo "configure:2952: checking type of array argument to getgroups" 1>&5
3290 if test "${ac_cv_type_getgroups+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3293 if test "$cross_compiling" = yes; then
3294 ac_cv_type_getgroups
=cross
3296 cat >conftest.
$ac_ext <<EOF
3297 #line 2960 "configure"
3298 #include "confdefs.h"
3299 /* Thanks to Mike Rendell for this test. */
3300 #include <sys/types.h>
3303 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3309 union { gid_t gval; long lval; } val;
3312 for (i = 0; i < NGID; i++)
3313 gidset[i] = val.gval;
3314 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3316 /* Exit non-zero if getgroups seems to require an array of ints. This
3317 happens when gid_t is short but getgroups modifies an array of ints. */
3318 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3321 if { (eval echo configure
:2983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
3322 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
3323 ac_cv_type_getgroups
=gid_t
3325 echo "configure: failed program was:" >&5
3326 cat conftest.
$ac_ext >&5
3327 ac_cv_type_getgroups
=int
3332 if test $ac_cv_type_getgroups = cross
; then
3334 cat >conftest.
$ac_ext <<EOF
3335 #line 2995 "configure"
3336 #include "confdefs.h"
3340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3341 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3342 ac_cv_type_getgroups
=gid_t
3344 ac_cv_type_getgroups
=int
3350 echo "$ECHO_T""$ac_cv_type_getgroups" 1>&6
3353 cat >>confdefs.h
<<EOF
3354 #define GETGROUPS_T $ac_cv_type_getgroups
3357 echo $ECHO_N "checking for mode_t... $ECHO_C" 1>&6
3358 echo "configure:3014: checking for mode_t" 1>&5
3359 if test "${ac_cv_type_mode_t+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3362 cat >conftest.
$ac_ext <<EOF
3363 #line 3019 "configure"
3364 #include "confdefs.h"
3365 $ac_includes_default
3371 if (sizeof (mode_t))
3377 if { (eval echo configure
:3033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3378 ac_cv_type_mode_t
=yes
3380 echo "configure: failed program was:" >&5
3381 cat conftest.
$ac_ext >&5
3382 ac_cv_type_mode_t
=no
3386 echo "$ECHO_T""$ac_cv_type_mode_t" 1>&6
3387 if test $ac_cv_type_mode_t = yes; then
3392 cat >>confdefs.h
<<EOF
3398 echo $ECHO_N "checking for off_t... $ECHO_C" 1>&6
3399 echo "configure:3052: checking for off_t" 1>&5
3400 if test "${ac_cv_type_off_t+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3403 cat >conftest.
$ac_ext <<EOF
3404 #line 3057 "configure"
3405 #include "confdefs.h"
3406 $ac_includes_default
3418 if { (eval echo configure
:3071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3419 ac_cv_type_off_t
=yes
3421 echo "configure: failed program was:" >&5
3422 cat conftest.
$ac_ext >&5
3427 echo "$ECHO_T""$ac_cv_type_off_t" 1>&6
3428 if test $ac_cv_type_off_t = yes; then
3433 cat >>confdefs.h
<<EOF
3439 echo $ECHO_N "checking for pid_t... $ECHO_C" 1>&6
3440 echo "configure:3090: checking for pid_t" 1>&5
3441 if test "${ac_cv_type_pid_t+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3444 cat >conftest.
$ac_ext <<EOF
3445 #line 3095 "configure"
3446 #include "confdefs.h"
3447 $ac_includes_default
3459 if { (eval echo configure
:3109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3460 ac_cv_type_pid_t
=yes
3462 echo "configure: failed program was:" >&5
3463 cat conftest.
$ac_ext >&5
3468 echo "$ECHO_T""$ac_cv_type_pid_t" 1>&6
3469 if test $ac_cv_type_pid_t = yes; then
3474 cat >>confdefs.h
<<EOF
3480 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" 1>&6
3481 echo "configure:3128: checking return type of signal handlers" 1>&5
3482 if test "${ac_cv_type_signal+set}" = set; then
3483 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3485 cat >conftest.
$ac_ext <<EOF
3486 #line 3133 "configure"
3487 #include "confdefs.h"
3488 #include <sys/types.h>
3494 extern "C" void (*signal (int, void (*)(int)))(int);
3496 void (*signal ()) ();
3507 if { (eval echo configure
:3153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3508 ac_cv_type_signal
=void
3510 echo "configure: failed program was:" >&5
3511 cat conftest.
$ac_ext >&5
3512 ac_cv_type_signal
=int
3516 echo "$ECHO_T""$ac_cv_type_signal" 1>&6
3519 cat >>confdefs.h
<<EOF
3520 #define RETSIGTYPE $ac_cv_type_signal
3523 echo $ECHO_N "checking for size_t... $ECHO_C" 1>&6
3524 echo "configure:3168: checking for size_t" 1>&5
3525 if test "${ac_cv_type_size_t+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3528 cat >conftest.
$ac_ext <<EOF
3529 #line 3173 "configure"
3530 #include "confdefs.h"
3531 $ac_includes_default
3537 if (sizeof (size_t))
3543 if { (eval echo configure
:3187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3544 ac_cv_type_size_t
=yes
3546 echo "configure: failed program was:" >&5
3547 cat conftest.
$ac_ext >&5
3548 ac_cv_type_size_t
=no
3552 echo "$ECHO_T""$ac_cv_type_size_t" 1>&6
3553 if test $ac_cv_type_size_t = yes; then
3558 cat >>confdefs.h
<<EOF
3559 #define size_t unsigned
3564 if test $jm_ac_cv_header_inttypes_h = no
; then
3566 test $ac_cv_type_unsigned_long_long = yes \
3567 && ac_type
='unsigned long long' \
3568 || ac_type
='unsigned long'
3571 cat >>confdefs.h
<<EOF
3572 #define uintmax_t $ac_type
3577 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" 1>&6
3578 echo "configure:3215: checking whether sys/types.h defines makedev" 1>&5
3579 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3582 cat >conftest.
$ac_ext <<EOF
3583 #line 3220 "configure"
3584 #include "confdefs.h"
3585 #include <sys/types.h>
3590 return makedev(0, 0);
3595 if { (eval echo configure
:3231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3596 ac_cv_header_sys_types_h_makedev
=yes
3598 echo "configure: failed program was:" >&5
3599 cat conftest.
$ac_ext >&5
3600 ac_cv_header_sys_types_h_makedev
=no
3605 echo "$ECHO_T""$ac_cv_header_sys_types_h_makedev" 1>&6
3607 if test $ac_cv_header_sys_types_h_makedev = no
; then
3608 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" 1>&6
3609 echo "configure:3243: checking for sys/mkdev.h" 1>&5
3610 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3614 cat >conftest.
$ac_ext <<EOF
3615 #line 3248 "configure"
3616 #include "confdefs.h"
3617 #include <sys/mkdev.h>
3620 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3621 { (eval echo configure
:3253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3622 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3623 if test -z "$ac_err"; then
3624 ac_cv_header_sys_mkdev_h
=yes
3627 echo "configure: failed program was:" >&5
3628 cat conftest.
$ac_ext >&5
3629 ac_cv_header_sys_mkdev_h
=no
3633 echo "$ECHO_T""$ac_cv_header_sys_mkdev_h" 1>&6
3634 if test $ac_cv_header_sys_mkdev_h = yes; then
3637 cat >>confdefs.h
<<\EOF
3638 #define MAJOR_IN_MKDEV 1
3643 if test $ac_cv_header_sys_mkdev_h = no
; then
3644 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" 1>&6
3645 echo "configure:3274: checking for sys/sysmacros.h" 1>&5
3646 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3650 cat >conftest.
$ac_ext <<EOF
3651 #line 3279 "configure"
3652 #include "confdefs.h"
3653 #include <sys/sysmacros.h>
3656 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3657 { (eval echo configure
:3284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3658 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3659 if test -z "$ac_err"; then
3660 ac_cv_header_sys_sysmacros_h
=yes
3663 echo "configure: failed program was:" >&5
3664 cat conftest.
$ac_ext >&5
3665 ac_cv_header_sys_sysmacros_h
=no
3669 echo "$ECHO_T""$ac_cv_header_sys_sysmacros_h" 1>&6
3670 if test $ac_cv_header_sys_sysmacros_h = yes; then
3673 cat >>confdefs.h
<<\EOF
3674 #define MAJOR_IN_SYSMACROS 1
3682 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" 1>&6
3683 echo "configure:3306: checking for struct stat.st_blksize" 1>&5
3684 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3687 cat >conftest.
$ac_ext <<EOF
3688 #line 3311 "configure"
3689 #include "confdefs.h"
3690 $ac_includes_default
3691 #include <sys/stat.h>
3702 if { (eval echo configure
:3324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3703 ac_cv_member_struct_stat_st_blksize
=yes
3705 echo "configure: failed program was:" >&5
3706 cat conftest.
$ac_ext >&5
3707 ac_cv_member_struct_stat_st_blksize
=no
3711 echo "$ECHO_T""$ac_cv_member_struct_stat_st_blksize" 1>&6
3712 if test $ac_cv_member_struct_stat_st_blksize = yes; then
3715 cat >>confdefs.h
<<EOF
3716 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
3721 echo $ECHO_N "checking for ino_t... $ECHO_C" 1>&6
3722 echo "configure:3341: checking for ino_t" 1>&5
3723 if test "${ac_cv_type_ino_t+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3726 cat >conftest.
$ac_ext <<EOF
3727 #line 3346 "configure"
3728 #include "confdefs.h"
3729 $ac_includes_default
3741 if { (eval echo configure
:3360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3742 ac_cv_type_ino_t
=yes
3744 echo "configure: failed program was:" >&5
3745 cat conftest.
$ac_ext >&5
3750 echo "$ECHO_T""$ac_cv_type_ino_t" 1>&6
3751 if test $ac_cv_type_ino_t = yes; then
3756 cat >>confdefs.h
<<EOF
3757 #define ino_t unsigned long
3762 echo $ECHO_N "checking for ssize_t... $ECHO_C" 1>&6
3763 echo "configure:3379: checking for ssize_t" 1>&5
3764 if test "${ac_cv_type_ssize_t+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3767 cat >conftest.
$ac_ext <<EOF
3768 #line 3384 "configure"
3769 #include "confdefs.h"
3770 $ac_includes_default
3776 if (sizeof (ssize_t))
3782 if { (eval echo configure
:3398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3783 ac_cv_type_ssize_t
=yes
3785 echo "configure: failed program was:" >&5
3786 cat conftest.
$ac_ext >&5
3787 ac_cv_type_ssize_t
=no
3791 echo "$ECHO_T""$ac_cv_type_ssize_t" 1>&6
3792 if test $ac_cv_type_ssize_t = yes; then
3797 cat >>confdefs.h
<<EOF
3805 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" 1>&6
3806 echo "configure:3418: checking for getpwnam in -lsun" 1>&5
3807 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3810 ac_save_LIBS
="$LIBS"
3812 cat >conftest.
$ac_ext <<EOF
3813 #line 3425 "configure"
3814 #include "confdefs.h"
3816 /* Override any gcc2 internal prototype to avoid an error. */
3820 /* We use char because int might match the return type of a gcc2
3821 builtin and then its argument prototype would still apply. */
3831 if { (eval echo configure
:3442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3832 ac_cv_lib_sun_getpwnam
=yes
3834 echo "configure: failed program was:" >&5
3835 cat conftest.
$ac_ext >&5
3836 ac_cv_lib_sun_getpwnam
=no
3839 LIBS
="$ac_save_LIBS"
3841 echo "$ECHO_T""$ac_cv_lib_sun_getpwnam" 1>&6
3842 if test $ac_cv_lib_sun_getpwnam = yes; then
3843 cat >>confdefs.h
<<EOF
3844 #define HAVE_LIBSUN 1
3861 for ac_header
in fcntl.h string.h limits.h unistd.h errno.h
3863 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
3864 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
3865 echo "configure:3468: checking for $ac_header" 1>&5
3866 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
3867 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3870 cat >conftest.
$ac_ext <<EOF
3871 #line 3473 "configure"
3872 #include "confdefs.h"
3873 #include <$ac_header>
3876 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3877 { (eval echo configure
:3478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3878 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3879 if test -z "$ac_err"; then
3880 eval "$ac_ac_Header=yes"
3883 echo "configure: failed program was:" >&5
3884 cat conftest.
$ac_ext >&5
3885 eval "$ac_ac_Header=no"
3889 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
3890 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3891 cat >>confdefs.h
<<EOF
3892 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
3898 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
3899 echo "configure:3498: checking for ANSI C header files" 1>&5
3900 if test "${ac_cv_header_stdc+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" 1>&6
3904 cat >conftest.
$ac_ext <<EOF
3905 #line 3503 "configure"
3906 #include "confdefs.h"
3913 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3914 { (eval echo configure
:3511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3915 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3916 if test -z "$ac_err"; then
3917 ac_cv_header_stdc
=yes
3920 echo "configure: failed program was:" >&5
3921 cat conftest.
$ac_ext >&5
3922 ac_cv_header_stdc
=no
3926 if test $ac_cv_header_stdc = yes; then
3927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3929 cat >conftest.
$ac_ext <<EOF
3930 #line 3525 "configure"
3931 #include "confdefs.h"
3935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3936 egrep "memchr" >/dev
/null
2>&1; then
3939 ac_cv_header_stdc
=no
3945 if test $ac_cv_header_stdc = yes; then
3946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3948 cat >conftest.
$ac_ext <<EOF
3949 #line 3540 "configure"
3950 #include "confdefs.h"
3954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3955 egrep "free" >/dev
/null
2>&1; then
3958 ac_cv_header_stdc
=no
3964 if test $ac_cv_header_stdc = yes; then
3965 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3966 if test "$cross_compiling" = yes; then
3969 cat >conftest.
$ac_ext <<EOF
3970 #line 3558 "configure"
3971 #include "confdefs.h"
3973 #if ((' ' & 0x0FF) == 0x020)
3974 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3975 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3977 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3978 || ('j' <= (c) && (c) <= 'r') \
3979 || ('s' <= (c) && (c) <= 'z'))
3980 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3983 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3988 for (i = 0; i < 256; i++)
3989 if (XOR (islower (i), ISLOWER (i))
3990 || toupper (i) != TOUPPER (i))
3995 if { (eval echo configure
:3582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
3996 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
3999 echo "configure: failed program was:" >&5
4000 cat conftest.
$ac_ext >&5
4001 ac_cv_header_stdc
=no
4008 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
4009 if test $ac_cv_header_stdc = yes; then
4012 cat >>confdefs.h
<<\EOF
4013 #define STDC_HEADERS 1
4018 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" 1>&6
4019 echo "configure:3602: checking whether sys/types.h defines makedev" 1>&5
4020 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4023 cat >conftest.
$ac_ext <<EOF
4024 #line 3607 "configure"
4025 #include "confdefs.h"
4026 #include <sys/types.h>
4031 return makedev(0, 0);
4036 if { (eval echo configure
:3618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4037 ac_cv_header_sys_types_h_makedev
=yes
4039 echo "configure: failed program was:" >&5
4040 cat conftest.
$ac_ext >&5
4041 ac_cv_header_sys_types_h_makedev
=no
4046 echo "$ECHO_T""$ac_cv_header_sys_types_h_makedev" 1>&6
4048 if test $ac_cv_header_sys_types_h_makedev = no
; then
4049 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" 1>&6
4050 echo "configure:3630: checking for sys/mkdev.h" 1>&5
4051 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4055 cat >conftest.
$ac_ext <<EOF
4056 #line 3635 "configure"
4057 #include "confdefs.h"
4058 #include <sys/mkdev.h>
4061 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4062 { (eval echo configure
:3640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4063 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4064 if test -z "$ac_err"; then
4065 ac_cv_header_sys_mkdev_h
=yes
4068 echo "configure: failed program was:" >&5
4069 cat conftest.
$ac_ext >&5
4070 ac_cv_header_sys_mkdev_h
=no
4074 echo "$ECHO_T""$ac_cv_header_sys_mkdev_h" 1>&6
4075 if test $ac_cv_header_sys_mkdev_h = yes; then
4078 cat >>confdefs.h
<<\EOF
4079 #define MAJOR_IN_MKDEV 1
4084 if test $ac_cv_header_sys_mkdev_h = no
; then
4085 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" 1>&6
4086 echo "configure:3661: checking for sys/sysmacros.h" 1>&5
4087 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4091 cat >conftest.
$ac_ext <<EOF
4092 #line 3666 "configure"
4093 #include "confdefs.h"
4094 #include <sys/sysmacros.h>
4097 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4098 { (eval echo configure
:3671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4099 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4100 if test -z "$ac_err"; then
4101 ac_cv_header_sys_sysmacros_h
=yes
4104 echo "configure: failed program was:" >&5
4105 cat conftest.
$ac_ext >&5
4106 ac_cv_header_sys_sysmacros_h
=no
4110 echo "$ECHO_T""$ac_cv_header_sys_sysmacros_h" 1>&6
4111 if test $ac_cv_header_sys_sysmacros_h = yes; then
4114 cat >>confdefs.h
<<\EOF
4115 #define MAJOR_IN_SYSMACROS 1
4132 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4134 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4135 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" 1>&6
4136 echo "configure:3701: checking for $ac_hdr that defines DIR" 1>&5
4137 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4138 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4140 cat >conftest.
$ac_ext <<EOF
4141 #line 3706 "configure"
4142 #include "confdefs.h"
4143 #include <sys/types.h>
4154 if { (eval echo configure
:3718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4155 eval "ac_cv_header_dirent_$ac_safe=yes"
4157 echo "configure: failed program was:" >&5
4158 cat conftest.
$ac_ext >&5
4159 eval "ac_cv_header_dirent_$ac_safe=no"
4163 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4164 echo "$ECHO_T""yes" 1>&6
4165 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4166 cat >>confdefs.h
<<EOF
4167 #define $ac_tr_hdr 1
4169 ac_header_dirent
=$ac_hdr; break
4171 echo "$ECHO_T""no" 1>&6
4174 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4175 if test $ac_header_dirent = dirent.h
; then
4178 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" 1>&6
4179 echo "configure:3742: checking for opendir in -ldir" 1>&5
4180 if test "${ac_cv_lib_dir_opendir+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4183 ac_save_LIBS
="$LIBS"
4185 cat >conftest.
$ac_ext <<EOF
4186 #line 3749 "configure"
4187 #include "confdefs.h"
4189 /* Override any gcc2 internal prototype to avoid an error. */
4193 /* We use char because int might match the return type of a gcc2
4194 builtin and then its argument prototype would still apply. */
4204 if { (eval echo configure
:3766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4205 ac_cv_lib_dir_opendir
=yes
4207 echo "configure: failed program was:" >&5
4208 cat conftest.
$ac_ext >&5
4209 ac_cv_lib_dir_opendir
=no
4212 LIBS
="$ac_save_LIBS"
4214 echo "$ECHO_T""$ac_cv_lib_dir_opendir" 1>&6
4215 if test $ac_cv_lib_dir_opendir = yes; then
4222 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" 1>&6
4223 echo "configure:3783: checking for opendir in -lx" 1>&5
4224 if test "${ac_cv_lib_x_opendir+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4227 ac_save_LIBS
="$LIBS"
4229 cat >conftest.
$ac_ext <<EOF
4230 #line 3790 "configure"
4231 #include "confdefs.h"
4233 /* Override any gcc2 internal prototype to avoid an error. */
4237 /* We use char because int might match the return type of a gcc2
4238 builtin and then its argument prototype would still apply. */
4248 if { (eval echo configure
:3807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4249 ac_cv_lib_x_opendir
=yes
4251 echo "configure: failed program was:" >&5
4252 cat conftest.
$ac_ext >&5
4253 ac_cv_lib_x_opendir
=no
4256 LIBS
="$ac_save_LIBS"
4258 echo "$ECHO_T""$ac_cv_lib_x_opendir" 1>&6
4259 if test $ac_cv_lib_x_opendir = yes; then
4265 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" 1>&6
4266 echo "configure:3823: checking whether stat file-mode macros are broken" 1>&5
4267 if test "${ac_cv_header_stat_broken+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4271 cat >conftest.
$ac_ext <<EOF
4272 #line 3828 "configure"
4273 #include "confdefs.h"
4274 #include <sys/types.h>
4275 #include <sys/stat.h>
4277 #if defined(S_ISBLK) && defined(S_IFDIR)
4278 # if S_ISBLK (S_IFDIR)
4283 #if defined(S_ISBLK) && defined(S_IFCHR)
4284 # if S_ISBLK (S_IFCHR)
4289 #if defined(S_ISLNK) && defined(S_IFREG)
4290 # if S_ISLNK (S_IFREG)
4295 #if defined(S_ISSOCK) && defined(S_IFREG)
4296 # if S_ISSOCK (S_IFREG)
4302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4303 egrep "You lose" >/dev
/null
2>&1; then
4304 ac_cv_header_stat_broken
=yes
4306 ac_cv_header_stat_broken
=no
4311 echo "$ECHO_T""$ac_cv_header_stat_broken" 1>&6
4312 if test $ac_cv_header_stat_broken = yes; then
4315 cat >>confdefs.h
<<\EOF
4316 #define STAT_MACROS_BROKEN 1
4321 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" 1>&6
4322 echo "configure:3869: checking for sys/wait.h that is POSIX.1 compatible" 1>&5
4323 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4326 cat >conftest.
$ac_ext <<EOF
4327 #line 3874 "configure"
4328 #include "confdefs.h"
4329 #include <sys/types.h>
4330 #include <sys/wait.h>
4332 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4335 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4342 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4347 if { (eval echo configure
:3894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4348 ac_cv_header_sys_wait_h
=yes
4350 echo "configure: failed program was:" >&5
4351 cat conftest.
$ac_ext >&5
4352 ac_cv_header_sys_wait_h
=no
4356 echo "$ECHO_T""$ac_cv_header_sys_wait_h" 1>&6
4357 if test $ac_cv_header_sys_wait_h = yes; then
4360 cat >>confdefs.h
<<\EOF
4361 #define HAVE_SYS_WAIT_H 1
4366 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" 1>&6
4367 echo "configure:3911: checking how to get filesystem type" 1>&5
4369 # The order of these tests is important.
4371 cat >conftest.
$ac_ext <<EOF
4372 #line 3915 "configure"
4373 #include "confdefs.h"
4374 #include <sys/statvfs.h>
4375 #include <sys/fstyp.h>
4377 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4378 { (eval echo configure
:3921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4379 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4380 if test -z "$ac_err"; then
4383 cat >>confdefs.h
<<\EOF
4384 #define FSTYPE_STATVFS 1
4389 echo "configure: failed program was:" >&5
4390 cat conftest.
$ac_ext >&5
4394 if test $fstype = no
; then
4396 cat >conftest.
$ac_ext <<EOF
4397 #line 3937 "configure"
4398 #include "confdefs.h"
4399 #include <sys/statfs.h>
4400 #include <sys/fstyp.h>
4402 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4403 { (eval echo configure
:3943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4404 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4405 if test -z "$ac_err"; then
4408 cat >>confdefs.h
<<\EOF
4409 #define FSTYPE_USG_STATFS 1
4414 echo "configure: failed program was:" >&5
4415 cat conftest.
$ac_ext >&5
4420 if test $fstype = no
; then
4422 cat >conftest.
$ac_ext <<EOF
4423 #line 3960 "configure"
4424 #include "confdefs.h"
4425 #include <sys/statfs.h>
4426 #include <sys/vmount.h>
4428 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4429 { (eval echo configure
:3966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4430 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4431 if test -z "$ac_err"; then
4434 cat >>confdefs.h
<<\EOF
4435 #define FSTYPE_AIX_STATFS 1
4440 echo "configure: failed program was:" >&5
4441 cat conftest.
$ac_ext >&5
4446 if test $fstype = no
; then
4448 cat >conftest.
$ac_ext <<EOF
4449 #line 3983 "configure"
4450 #include "confdefs.h"
4453 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4454 { (eval echo configure
:3988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4455 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4456 if test -z "$ac_err"; then
4459 cat >>confdefs.h
<<\EOF
4460 #define FSTYPE_MNTENT 1
4465 echo "configure: failed program was:" >&5
4466 cat conftest.
$ac_ext >&5
4471 if test $fstype = no
; then
4473 cat >conftest.
$ac_ext <<EOF
4474 #line 4005 "configure"
4475 #include "confdefs.h"
4476 #include <sys/mount.h>
4479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4480 egrep "f_type;" >/dev
/null
2>&1; then
4483 cat >>confdefs.h
<<\EOF
4484 #define FSTYPE_STATFS 1
4491 if test $fstype = no
; then
4493 cat >conftest.
$ac_ext <<EOF
4494 #line 4021 "configure"
4495 #include "confdefs.h"
4496 #include <sys/mount.h>
4497 #include <sys/fs_types.h>
4499 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4500 { (eval echo configure
:4027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4501 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4502 if test -z "$ac_err"; then
4505 cat >>confdefs.h
<<\EOF
4506 #define FSTYPE_GETMNT 1
4511 echo "configure: failed program was:" >&5
4512 cat conftest.
$ac_ext >&5
4517 echo "$ECHO_T""$fstype" 1>&6
4519 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" 1>&6
4520 echo "configure:4044: checking for uid_t in sys/types.h" 1>&5
4521 if test "${ac_cv_type_uid_t+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4525 cat >conftest.
$ac_ext <<EOF
4526 #line 4049 "configure"
4527 #include "confdefs.h"
4528 #include <sys/types.h>
4531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4532 egrep "uid_t" >/dev
/null
2>&1; then
4533 ac_cv_type_uid_t
=yes
4540 echo "$ECHO_T""$ac_cv_type_uid_t" 1>&6
4541 if test $ac_cv_type_uid_t = no
; then
4544 cat >>confdefs.h
<<\EOF
4550 cat >>confdefs.h
<<\EOF
4556 echo $ECHO_N "checking for size_t... $ECHO_C" 1>&6
4557 echo "configure:4073: checking for size_t" 1>&5
4558 if test "${ac_cv_type_size_t+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4561 cat >conftest.
$ac_ext <<EOF
4562 #line 4078 "configure"
4563 #include "confdefs.h"
4564 $ac_includes_default
4570 if (sizeof (size_t))
4576 if { (eval echo configure
:4092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4577 ac_cv_type_size_t
=yes
4579 echo "configure: failed program was:" >&5
4580 cat conftest.
$ac_ext >&5
4581 ac_cv_type_size_t
=no
4585 echo "$ECHO_T""$ac_cv_type_size_t" 1>&6
4586 if test $ac_cv_type_size_t = yes; then
4591 cat >>confdefs.h
<<EOF
4592 #define size_t unsigned
4597 echo $ECHO_N "checking for ssize_t... $ECHO_C" 1>&6
4598 echo "configure:4111: checking for ssize_t" 1>&5
4599 if test "${ac_cv_type_ssize_t+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4602 cat >conftest.
$ac_ext <<EOF
4603 #line 4116 "configure"
4604 #include "confdefs.h"
4605 $ac_includes_default
4611 if (sizeof (ssize_t))
4617 if { (eval echo configure
:4130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4618 ac_cv_type_ssize_t
=yes
4620 echo "configure: failed program was:" >&5
4621 cat conftest.
$ac_ext >&5
4622 ac_cv_type_ssize_t
=no
4626 echo "$ECHO_T""$ac_cv_type_ssize_t" 1>&6
4627 if test $ac_cv_type_ssize_t = yes; then
4632 cat >>confdefs.h
<<EOF
4638 echo $ECHO_N "checking for pid_t... $ECHO_C" 1>&6
4639 echo "configure:4149: checking for pid_t" 1>&5
4640 if test "${ac_cv_type_pid_t+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4643 cat >conftest.
$ac_ext <<EOF
4644 #line 4154 "configure"
4645 #include "confdefs.h"
4646 $ac_includes_default
4658 if { (eval echo configure
:4168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4659 ac_cv_type_pid_t
=yes
4661 echo "configure: failed program was:" >&5
4662 cat conftest.
$ac_ext >&5
4667 echo "$ECHO_T""$ac_cv_type_pid_t" 1>&6
4668 if test $ac_cv_type_pid_t = yes; then
4673 cat >>confdefs.h
<<EOF
4679 echo $ECHO_N "checking for ino_t... $ECHO_C" 1>&6
4680 echo "configure:4187: checking for ino_t" 1>&5
4681 if test "${ac_cv_type_ino_t+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4684 cat >conftest.
$ac_ext <<EOF
4685 #line 4192 "configure"
4686 #include "confdefs.h"
4687 $ac_includes_default
4699 if { (eval echo configure
:4206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4700 ac_cv_type_ino_t
=yes
4702 echo "configure: failed program was:" >&5
4703 cat conftest.
$ac_ext >&5
4708 echo "$ECHO_T""$ac_cv_type_ino_t" 1>&6
4709 if test $ac_cv_type_ino_t = yes; then
4714 cat >>confdefs.h
<<EOF
4715 #define ino_t unsigned long
4720 echo $ECHO_N "checking for dev_t... $ECHO_C" 1>&6
4721 echo "configure:4225: checking for dev_t" 1>&5
4722 if test "${ac_cv_type_dev_t+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4725 cat >conftest.
$ac_ext <<EOF
4726 #line 4230 "configure"
4727 #include "confdefs.h"
4728 $ac_includes_default
4740 if { (eval echo configure
:4244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4741 ac_cv_type_dev_t
=yes
4743 echo "configure: failed program was:" >&5
4744 cat conftest.
$ac_ext >&5
4749 echo "$ECHO_T""$ac_cv_type_dev_t" 1>&6
4750 if test $ac_cv_type_dev_t = yes; then
4755 cat >>confdefs.h
<<EOF
4756 #define dev_t unsigned long
4761 echo $ECHO_N "checking for mode_t... $ECHO_C" 1>&6
4762 echo "configure:4263: checking for mode_t" 1>&5
4763 if test "${ac_cv_type_mode_t+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4766 cat >conftest.
$ac_ext <<EOF
4767 #line 4268 "configure"
4768 #include "confdefs.h"
4769 $ac_includes_default
4775 if (sizeof (mode_t))
4781 if { (eval echo configure
:4282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4782 ac_cv_type_mode_t
=yes
4784 echo "configure: failed program was:" >&5
4785 cat conftest.
$ac_ext >&5
4786 ac_cv_type_mode_t
=no
4790 echo "$ECHO_T""$ac_cv_type_mode_t" 1>&6
4791 if test $ac_cv_type_mode_t = yes; then
4796 cat >>confdefs.h
<<EOF
4802 if test $jm_ac_cv_header_inttypes_h = no
; then
4804 test $ac_cv_type_unsigned_long_long = yes \
4805 && ac_type
='unsigned long long' \
4806 || ac_type
='unsigned long'
4809 cat >>confdefs.h
<<EOF
4810 #define uintmax_t $ac_type
4815 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" 1>&6
4816 echo "configure:4310: checking for struct stat.st_blocks" 1>&5
4817 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
4818 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4820 cat >conftest.
$ac_ext <<EOF
4821 #line 4315 "configure"
4822 #include "confdefs.h"
4823 #include <sys/types.h>
4824 #include <sys/stat.h>
4835 if { (eval echo configure
:4328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4836 ac_cv_member_struct_stat_st_blocks
=yes
4838 echo "configure: failed program was:" >&5
4839 cat conftest.
$ac_ext >&5
4840 ac_cv_member_struct_stat_st_blocks
=no
4844 echo "$ECHO_T""$ac_cv_member_struct_stat_st_blocks" 1>&6
4845 if test $ac_cv_member_struct_stat_st_blocks = yes; then
4848 cat >>confdefs.h
<<EOF
4849 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
4854 cat >>confdefs.h
<<\EOF
4855 #define HAVE_ST_BLOCKS 1
4859 LIBOBJS
="$LIBOBJS fileblocks.${ac_objext}"
4863 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" 1>&6
4864 echo "configure:4351: checking for struct stat.st_rdev" 1>&5
4865 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4868 cat >conftest.
$ac_ext <<EOF
4869 #line 4356 "configure"
4870 #include "confdefs.h"
4871 $ac_includes_default
4881 if { (eval echo configure
:4368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4882 ac_cv_member_struct_stat_st_rdev
=yes
4884 echo "configure: failed program was:" >&5
4885 cat conftest.
$ac_ext >&5
4886 ac_cv_member_struct_stat_st_rdev
=no
4890 echo "$ECHO_T""$ac_cv_member_struct_stat_st_rdev" 1>&6
4891 if test $ac_cv_member_struct_stat_st_rdev = yes; then
4894 cat >>confdefs.h
<<EOF
4895 #define HAVE_STRUCT_STAT_ST_RDEV 1
4900 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" 1>&6
4901 echo "configure:4385: checking whether struct tm is in sys/time.h or time.h" 1>&5
4902 if test "${ac_cv_struct_tm+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4905 cat >conftest.
$ac_ext <<EOF
4906 #line 4390 "configure"
4907 #include "confdefs.h"
4908 #include <sys/types.h>
4914 struct tm *tp; tp->tm_sec;
4919 if { (eval echo configure
:4402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4920 ac_cv_struct_tm
=time.h
4922 echo "configure: failed program was:" >&5
4923 cat conftest.
$ac_ext >&5
4924 ac_cv_struct_tm
=sys
/time.h
4928 echo "$ECHO_T""$ac_cv_struct_tm" 1>&6
4929 if test $ac_cv_struct_tm = sys
/time.h
; then
4932 cat >>confdefs.h
<<\EOF
4933 #define TM_IN_SYS_TIME 1
4938 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" 1>&6
4939 echo "configure:4419: checking for struct tm.tm_zone" 1>&5
4940 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4943 cat >conftest.
$ac_ext <<EOF
4944 #line 4424 "configure"
4945 #include "confdefs.h"
4946 #include <sys/types.h>
4947 #include <$ac_cv_struct_tm>
4958 if { (eval echo configure
:4437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4959 ac_cv_member_struct_tm_tm_zone
=yes
4961 echo "configure: failed program was:" >&5
4962 cat conftest.
$ac_ext >&5
4963 ac_cv_member_struct_tm_tm_zone
=no
4967 echo "$ECHO_T""$ac_cv_member_struct_tm_tm_zone" 1>&6
4968 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4971 cat >>confdefs.h
<<EOF
4972 #define HAVE_STRUCT_TM_TM_ZONE 1
4977 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4980 cat >>confdefs.h
<<\EOF
4981 #define HAVE_TM_ZONE 1
4985 echo $ECHO_N "checking for tzname... $ECHO_C" 1>&6
4986 echo "configure:4460: checking for tzname" 1>&5
4987 if test "${ac_cv_var_tzname+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" 1>&6
4990 cat >conftest.
$ac_ext <<EOF
4991 #line 4465 "configure"
4992 #include "confdefs.h"
4994 #ifndef tzname /* For SGI. */
4995 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5006 if { (eval echo configure
:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5007 ac_cv_var_tzname
=yes
5009 echo "configure: failed program was:" >&5
5010 cat conftest.
$ac_ext >&5
5015 echo "$ECHO_T""$ac_cv_var_tzname" 1>&6
5016 if test $ac_cv_var_tzname = yes; then
5019 cat >>confdefs.h
<<\EOF
5020 #define HAVE_TZNAME 1
5026 echo $ECHO_N "checking for strftime... $ECHO_C" 1>&6
5027 echo "configure:4497: checking for strftime" 1>&5
5028 if test "${ac_cv_func_strftime+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5031 cat >conftest.
$ac_ext <<EOF
5032 #line 4502 "configure"
5033 #include "confdefs.h"
5034 /* System header to define __stub macros and hopefully few prototypes,
5035 which can conflict with char strftime(); below. */
5037 /* Override any gcc2 internal prototype to avoid an error. */
5041 /* We use char because int might match the return type of a gcc2
5042 builtin and then its argument prototype would still apply. */
5050 /* The GNU C library defines this for functions which it implements
5051 to always fail with ENOSYS. Some functions are actually named
5052 something starting with __ and the normal name is an alias. */
5053 #if defined (__stub_strftime) || defined (__stub___strftime)
5063 if { (eval echo configure
:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5064 ac_cv_func_strftime
=yes
5066 echo "configure: failed program was:" >&5
5067 cat conftest.
$ac_ext >&5
5068 ac_cv_func_strftime
=no
5072 echo "$ECHO_T""$ac_cv_func_strftime" 1>&6
5073 if test $ac_cv_func_strftime = yes; then
5076 cat >>confdefs.h
<<\EOF
5077 #define HAVE_STRFTIME 1
5081 # strftime is in -lintl on SCO UNIX.
5084 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" 1>&6
5085 echo "configure:4549: checking for strftime in -lintl" 1>&5
5086 if test "${ac_cv_lib_intl_strftime+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5089 ac_save_LIBS
="$LIBS"
5091 cat >conftest.
$ac_ext <<EOF
5092 #line 4556 "configure"
5093 #include "confdefs.h"
5095 /* Override any gcc2 internal prototype to avoid an error. */
5099 /* We use char because int might match the return type of a gcc2
5100 builtin and then its argument prototype would still apply. */
5110 if { (eval echo configure
:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5111 ac_cv_lib_intl_strftime
=yes
5113 echo "configure: failed program was:" >&5
5114 cat conftest.
$ac_ext >&5
5115 ac_cv_lib_intl_strftime
=no
5118 LIBS
="$ac_save_LIBS"
5120 echo "$ECHO_T""$ac_cv_lib_intl_strftime" 1>&6
5121 if test $ac_cv_lib_intl_strftime = yes; then
5124 cat >>confdefs.h
<<\EOF
5125 #define HAVE_STRFTIME 1
5153 for ac_func
in memcmp memset stpcpy strdup strftime strspn strstr \
5154 strtol strtoul waitpid
5156 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5157 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
5158 echo "configure:4607: checking for $ac_func" 1>&5
5159 if eval "test \"\${$ac_ac_var+set}\" = set"; then
5160 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5162 cat >conftest.
$ac_ext <<EOF
5163 #line 4612 "configure"
5164 #include "confdefs.h"
5165 /* System header to define __stub macros and hopefully few prototypes,
5166 which can conflict with char $ac_func(); below. */
5168 /* Override any gcc2 internal prototype to avoid an error. */
5172 /* We use char because int might match the return type of a gcc2
5173 builtin and then its argument prototype would still apply. */
5181 /* The GNU C library defines this for functions which it implements
5182 to always fail with ENOSYS. Some functions are actually named
5183 something starting with __ and the normal name is an alias. */
5184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5194 if { (eval echo configure
:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5195 eval "$ac_ac_var=yes"
5197 echo "configure: failed program was:" >&5
5198 cat conftest.
$ac_ext >&5
5199 eval "$ac_ac_var=no"
5203 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
5204 if test `eval echo '${'$ac_ac_var'}'` = yes; then
5205 cat >>confdefs.h
<<EOF
5206 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
5210 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
5226 for ac_header
in memory.h string.h
strings.h stdlib.h unistd.h sys
/time.h
5228 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5229 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
5230 echo "configure:4668: checking for $ac_header" 1>&5
5231 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5232 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5235 cat >conftest.
$ac_ext <<EOF
5236 #line 4673 "configure"
5237 #include "confdefs.h"
5238 #include <$ac_header>
5241 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5242 { (eval echo configure
:4678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5243 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5244 if test -z "$ac_err"; then
5245 eval "$ac_ac_Header=yes"
5248 echo "configure: failed program was:" >&5
5249 cat conftest.
$ac_ext >&5
5250 eval "$ac_ac_Header=no"
5254 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
5255 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5256 cat >>confdefs.h
<<EOF
5257 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5267 for ac_header
in sys
/time.h unistd.h
5269 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5270 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
5271 echo "configure:4703: checking for $ac_header" 1>&5
5272 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5273 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5276 cat >conftest.
$ac_ext <<EOF
5277 #line 4708 "configure"
5278 #include "confdefs.h"
5279 #include <$ac_header>
5282 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5283 { (eval echo configure
:4713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5284 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5285 if test -z "$ac_err"; then
5286 eval "$ac_ac_Header=yes"
5289 echo "configure: failed program was:" >&5
5290 cat conftest.
$ac_ext >&5
5291 eval "$ac_ac_Header=no"
5295 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
5296 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5297 cat >>confdefs.h
<<EOF
5298 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5306 for ac_func
in alarm
5308 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5309 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
5310 echo "configure:4737: checking for $ac_func" 1>&5
5311 if eval "test \"\${$ac_ac_var+set}\" = set"; then
5312 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5314 cat >conftest.
$ac_ext <<EOF
5315 #line 4742 "configure"
5316 #include "confdefs.h"
5317 /* System header to define __stub macros and hopefully few prototypes,
5318 which can conflict with char $ac_func(); below. */
5320 /* Override any gcc2 internal prototype to avoid an error. */
5324 /* We use char because int might match the return type of a gcc2
5325 builtin and then its argument prototype would still apply. */
5333 /* The GNU C library defines this for functions which it implements
5334 to always fail with ENOSYS. Some functions are actually named
5335 something starting with __ and the normal name is an alias. */
5336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5346 if { (eval echo configure
:4770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5347 eval "$ac_ac_var=yes"
5349 echo "configure: failed program was:" >&5
5350 cat conftest.
$ac_ext >&5
5351 eval "$ac_ac_var=no"
5355 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
5356 if test `eval echo '${'$ac_ac_var'}'` = yes; then
5357 cat >>confdefs.h
<<EOF
5358 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
5364 echo $ECHO_N "checking for working mktime... $ECHO_C" 1>&6
5365 echo "configure:4787: checking for working mktime" 1>&5
5366 if test "${ac_cv_func_working_mktime+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5369 if test "$cross_compiling" = yes; then
5370 ac_cv_func_working_mktime
=no
5372 cat >conftest.
$ac_ext <<EOF
5373 #line 4795 "configure"
5374 #include "confdefs.h"
5375 /* Test program from Paul Eggert and Tony Leneis. */
5376 #if TIME_WITH_SYS_TIME
5377 # include <sys/time.h>
5380 # if HAVE_SYS_TIME_H
5381 # include <sys/time.h>
5388 # include <unistd.h>
5392 # define alarm(X) /* empty */
5395 /* Work around redefinition to rpl_putenv by other config tests. */
5398 static time_t time_t_max;
5400 /* Values we'll use to set the TZ environment variable. */
5401 static const char *const tz_strings[] = {
5402 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
5403 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
5405 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
5407 /* Fail if mktime fails to convert a date in the spring-forward gap.
5408 Based on a problem report from Andreas Jaeger. */
5410 spring_forward_gap ()
5412 /* glibc (up to about 1998-10-07) failed this test) */
5415 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
5416 instead of "TZ=America/Vancouver" in order to detect the bug even
5417 on systems that don't support the Olson extension, or don't have the
5418 full zoneinfo tables installed. */
5419 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
5428 if (mktime (&tm) == (time_t)-1)
5437 if ((lt = localtime (&now)) && mktime (lt) != now)
5439 now = time_t_max - now;
5440 if ((lt = localtime (&now)) && mktime (lt) != now)
5447 /* Based on code from Ariel Faigon. */
5457 if (tm.tm_mon != 2 || tm.tm_mday != 31)
5467 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
5469 if (now != (time_t) -1)
5471 struct tm *lt = localtime (&now);
5473 && lt->tm_year == tm.tm_year
5474 && lt->tm_mon == tm.tm_mon
5475 && lt->tm_mday == tm.tm_mday
5476 && lt->tm_hour == tm.tm_hour
5477 && lt->tm_min == tm.tm_min
5478 && lt->tm_sec == tm.tm_sec
5479 && lt->tm_yday == tm.tm_yday
5480 && lt->tm_wday == tm.tm_wday
5481 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
5482 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
5493 /* This test makes some buggy mktime implementations loop.
5494 Give up after 60 seconds; a mktime slower than that
5495 isn't worth using anyway. */
5498 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
5501 delta = time_t_max / 997; /* a suitable prime number */
5502 for (i = 0; i < N_STRINGS; i++)
5505 putenv (tz_strings[i]);
5507 for (t = 0; t <= time_t_max - delta; t += delta)
5509 mktime_test ((time_t) 60 * 60);
5510 mktime_test ((time_t) 60 * 60 * 24);
5512 for (j = 1; 0 < j; j *= 2)
5514 bigtime_test (j - 1);
5517 spring_forward_gap ();
5521 if { (eval echo configure
:4927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
5522 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
5523 ac_cv_func_working_mktime
=yes
5525 echo "configure: failed program was:" >&5
5526 cat conftest.
$ac_ext >&5
5527 ac_cv_func_working_mktime
=no
5533 echo "$ECHO_T""$ac_cv_func_working_mktime" 1>&6
5534 if test $ac_cv_func_working_mktime = no
; then
5535 LIBOBJS
="$LIBOBJS mktime.${ac_objext}"
5538 echo $ECHO_N "checking for working memcmp... $ECHO_C" 1>&6
5539 echo "configure:4943: checking for working memcmp" 1>&5
5540 if test "${jm_cv_func_memcmp_working+set}" = set; then
5541 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5543 if test "$cross_compiling" = yes; then
5544 jm_cv_func_memcmp_working
=no
5546 cat >conftest.
$ac_ext <<EOF
5547 #line 4951 "configure"
5548 #include "confdefs.h"
5552 /* Some versions of memcmp are not 8-bit clean. */
5553 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5554 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5557 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5558 or more and with at least one buffer not starting on a 4-byte boundary.
5559 William Lewis provided this test program. */
5564 for (i = 0; i < 4; i++)
5568 strcpy (a, "--------01111111");
5569 strcpy (b, "--------10000000");
5570 if (memcmp (a, b, 16) >= 0)
5577 if { (eval echo configure
:4980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
5578 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
5579 jm_cv_func_memcmp_working
=yes
5581 echo "configure: failed program was:" >&5
5582 cat conftest.
$ac_ext >&5
5583 jm_cv_func_memcmp_working
=no
5589 echo "$ECHO_T""$jm_cv_func_memcmp_working" 1>&6
5590 test $jm_cv_func_memcmp_working = no \
5591 && LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
5593 echo $ECHO_N "checking whether we are using the GNU C Library... $ECHO_C" 1>&6
5594 echo "configure:4995: checking whether we are using the GNU C Library" 1>&5
5595 if test "${ac_cv_gnu_library+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5599 cat >conftest.
$ac_ext <<EOF
5600 #line 5000 "configure"
5601 #include "confdefs.h"
5603 #include <features.h>
5604 #ifdef __GNU_LIBRARY__
5605 Thanks for using GNU
5609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5610 egrep "Thanks for using GNU" >/dev
/null
2>&1; then
5611 ac_cv_gnu_library
=yes
5613 ac_cv_gnu_library
=no
5618 echo "$ECHO_T""$ac_cv_gnu_library" 1>&6
5619 echo $ECHO_N "checking for version 2 of the GNU C Library... $ECHO_C" 1>&6
5620 echo "configure:5018: checking for version 2 of the GNU C Library" 1>&5
5621 if test "${ac_cv_glibc+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5625 cat >conftest.
$ac_ext <<EOF
5626 #line 5023 "configure"
5627 #include "confdefs.h"
5629 #include <features.h>
5631 Thanks for using GNU too
5635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5636 egrep "Thanks for using GNU too" >/dev
/null
2>&1; then
5644 echo "$ECHO_T""$ac_cv_glibc" 1>&6
5646 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" 1>&6
5647 echo "configure:5041: checking whether to enable assertions" 1>&5
5648 # Check whether --enable-assert or --disable-assert was given.
5649 if test "${enable_assert+set}" = set; then
5650 enableval
="$enable_assert"
5651 echo "$ECHO_T""no" 1>&6
5654 cat >>confdefs.h
<<\EOF
5659 echo "$ECHO_T""yes" 1>&6
5663 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" 1>&6
5664 echo "configure:5054: checking for d_type member in directory struct" 1>&5
5665 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5668 cat >conftest.
$ac_ext <<EOF
5669 #line 5059 "configure"
5670 #include "confdefs.h"
5672 #include <sys/types.h>
5673 #ifdef HAVE_DIRENT_H
5674 # include <dirent.h>
5675 #else /* not HAVE_DIRENT_H */
5676 # define dirent direct
5677 # ifdef HAVE_SYS_NDIR_H
5678 # include <sys/ndir.h>
5679 # endif /* HAVE_SYS_NDIR_H */
5680 # ifdef HAVE_SYS_DIR_H
5681 # include <sys/dir.h>
5682 # endif /* HAVE_SYS_DIR_H */
5685 # endif /* HAVE_NDIR_H */
5686 #endif /* HAVE_DIRENT_H */
5691 struct dirent dp; dp.d_type = 0;
5696 if { (eval echo configure
:5084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5697 jm_cv_struct_dirent_d_type
=yes
5699 echo "configure: failed program was:" >&5
5700 cat conftest.
$ac_ext >&5
5701 jm_cv_struct_dirent_d_type
=no
5706 echo "$ECHO_T""$jm_cv_struct_dirent_d_type" 1>&6
5707 if test $jm_cv_struct_dirent_d_type = yes; then
5710 cat >>confdefs.h
<<\EOF
5711 #define D_TYPE_IN_DIRENT 1
5716 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" 1>&6
5717 echo "configure:5101: checking for d_ino member in directory struct" 1>&5
5718 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5721 cat >conftest.
$ac_ext <<EOF
5722 #line 5106 "configure"
5723 #include "confdefs.h"
5725 #include <sys/types.h>
5726 #ifdef HAVE_DIRENT_H
5727 # include <dirent.h>
5728 #else /* not HAVE_DIRENT_H */
5729 # define dirent direct
5730 # ifdef HAVE_SYS_NDIR_H
5731 # include <sys/ndir.h>
5732 # endif /* HAVE_SYS_NDIR_H */
5733 # ifdef HAVE_SYS_DIR_H
5734 # include <sys/dir.h>
5735 # endif /* HAVE_SYS_DIR_H */
5738 # endif /* HAVE_NDIR_H */
5739 #endif /* HAVE_DIRENT_H */
5744 struct dirent dp; dp.d_ino = 0;
5749 if { (eval echo configure
:5131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5750 jm_cv_struct_dirent_d_ino
=yes
5752 echo "configure: failed program was:" >&5
5753 cat conftest.
$ac_ext >&5
5754 jm_cv_struct_dirent_d_ino
=no
5759 echo "$ECHO_T""$jm_cv_struct_dirent_d_ino" 1>&6
5760 if test $jm_cv_struct_dirent_d_ino = yes; then
5763 cat >>confdefs.h
<<\EOF
5764 #define D_INO_IN_DIRENT 1
5772 # if !STDC_HEADERS && HAVE_MEMORY_H
5773 # include <memory.h>
5775 # include <string.h>
5778 # include <strings.h>
5782 # include <stdlib.h>
5785 # include <unistd.h>
5788 #include <sys/types.h>
5789 #if TIME_WITH_SYS_TIME
5790 # include <sys/time.h>
5793 # if HAVE_SYS_TIME_H
5794 # include <sys/time.h>
5801 echo $ECHO_N "checking whether free is declared... $ECHO_C" 1>&6
5802 echo "configure:5178: checking whether free is declared" 1>&5
5803 if test "${ac_cv_have_decl_free+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5806 cat >conftest.
$ac_ext <<EOF
5807 #line 5183 "configure"
5808 #include "confdefs.h"
5815 char *p = (char *) free;
5822 if { (eval echo configure
:5196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5823 ac_cv_have_decl_free
=yes
5825 echo "configure: failed program was:" >&5
5826 cat conftest.
$ac_ext >&5
5827 ac_cv_have_decl_free
=no
5831 echo "$ECHO_T""$ac_cv_have_decl_free" 1>&6
5832 if test $ac_cv_have_decl_free = yes; then
5835 cat >>confdefs.h
<<EOF
5836 #define HAVE_DECL_FREE 1
5840 cat >>confdefs.h
<<EOF
5841 #define HAVE_DECL_FREE 0
5845 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" 1>&6
5846 echo "configure:5217: checking whether getenv is declared" 1>&5
5847 if test "${ac_cv_have_decl_getenv+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5850 cat >conftest.
$ac_ext <<EOF
5851 #line 5222 "configure"
5852 #include "confdefs.h"
5859 char *p = (char *) getenv;
5866 if { (eval echo configure
:5235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5867 ac_cv_have_decl_getenv
=yes
5869 echo "configure: failed program was:" >&5
5870 cat conftest.
$ac_ext >&5
5871 ac_cv_have_decl_getenv
=no
5875 echo "$ECHO_T""$ac_cv_have_decl_getenv" 1>&6
5876 if test $ac_cv_have_decl_getenv = yes; then
5879 cat >>confdefs.h
<<EOF
5880 #define HAVE_DECL_GETENV 1
5884 cat >>confdefs.h
<<EOF
5885 #define HAVE_DECL_GETENV 0
5889 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" 1>&6
5890 echo "configure:5256: checking whether geteuid is declared" 1>&5
5891 if test "${ac_cv_have_decl_geteuid+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5894 cat >conftest.
$ac_ext <<EOF
5895 #line 5261 "configure"
5896 #include "confdefs.h"
5903 char *p = (char *) geteuid;
5910 if { (eval echo configure
:5274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5911 ac_cv_have_decl_geteuid
=yes
5913 echo "configure: failed program was:" >&5
5914 cat conftest.
$ac_ext >&5
5915 ac_cv_have_decl_geteuid
=no
5919 echo "$ECHO_T""$ac_cv_have_decl_geteuid" 1>&6
5920 if test $ac_cv_have_decl_geteuid = yes; then
5923 cat >>confdefs.h
<<EOF
5924 #define HAVE_DECL_GETEUID 1
5928 cat >>confdefs.h
<<EOF
5929 #define HAVE_DECL_GETEUID 0
5933 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" 1>&6
5934 echo "configure:5295: checking whether getlogin is declared" 1>&5
5935 if test "${ac_cv_have_decl_getlogin+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5938 cat >conftest.
$ac_ext <<EOF
5939 #line 5300 "configure"
5940 #include "confdefs.h"
5947 char *p = (char *) getlogin;
5954 if { (eval echo configure
:5313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5955 ac_cv_have_decl_getlogin
=yes
5957 echo "configure: failed program was:" >&5
5958 cat conftest.
$ac_ext >&5
5959 ac_cv_have_decl_getlogin
=no
5963 echo "$ECHO_T""$ac_cv_have_decl_getlogin" 1>&6
5964 if test $ac_cv_have_decl_getlogin = yes; then
5967 cat >>confdefs.h
<<EOF
5968 #define HAVE_DECL_GETLOGIN 1
5972 cat >>confdefs.h
<<EOF
5973 #define HAVE_DECL_GETLOGIN 0
5977 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" 1>&6
5978 echo "configure:5334: checking whether lseek is declared" 1>&5
5979 if test "${ac_cv_have_decl_lseek+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" 1>&6
5982 cat >conftest.
$ac_ext <<EOF
5983 #line 5339 "configure"
5984 #include "confdefs.h"
5991 char *p = (char *) lseek;
5998 if { (eval echo configure
:5352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5999 ac_cv_have_decl_lseek
=yes
6001 echo "configure: failed program was:" >&5
6002 cat conftest.
$ac_ext >&5
6003 ac_cv_have_decl_lseek
=no
6007 echo "$ECHO_T""$ac_cv_have_decl_lseek" 1>&6
6008 if test $ac_cv_have_decl_lseek = yes; then
6011 cat >>confdefs.h
<<EOF
6012 #define HAVE_DECL_LSEEK 1
6016 cat >>confdefs.h
<<EOF
6017 #define HAVE_DECL_LSEEK 0
6021 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" 1>&6
6022 echo "configure:5373: checking whether malloc is declared" 1>&5
6023 if test "${ac_cv_have_decl_malloc+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6026 cat >conftest.
$ac_ext <<EOF
6027 #line 5378 "configure"
6028 #include "confdefs.h"
6035 char *p = (char *) malloc;
6042 if { (eval echo configure
:5391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6043 ac_cv_have_decl_malloc
=yes
6045 echo "configure: failed program was:" >&5
6046 cat conftest.
$ac_ext >&5
6047 ac_cv_have_decl_malloc
=no
6051 echo "$ECHO_T""$ac_cv_have_decl_malloc" 1>&6
6052 if test $ac_cv_have_decl_malloc = yes; then
6055 cat >>confdefs.h
<<EOF
6056 #define HAVE_DECL_MALLOC 1
6060 cat >>confdefs.h
<<EOF
6061 #define HAVE_DECL_MALLOC 0
6065 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" 1>&6
6066 echo "configure:5412: checking whether realloc is declared" 1>&5
6067 if test "${ac_cv_have_decl_realloc+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6070 cat >conftest.
$ac_ext <<EOF
6071 #line 5417 "configure"
6072 #include "confdefs.h"
6079 char *p = (char *) realloc;
6086 if { (eval echo configure
:5430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6087 ac_cv_have_decl_realloc
=yes
6089 echo "configure: failed program was:" >&5
6090 cat conftest.
$ac_ext >&5
6091 ac_cv_have_decl_realloc
=no
6095 echo "$ECHO_T""$ac_cv_have_decl_realloc" 1>&6
6096 if test $ac_cv_have_decl_realloc = yes; then
6099 cat >>confdefs.h
<<EOF
6100 #define HAVE_DECL_REALLOC 1
6104 cat >>confdefs.h
<<EOF
6105 #define HAVE_DECL_REALLOC 0
6109 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" 1>&6
6110 echo "configure:5451: checking whether stpcpy is declared" 1>&5
6111 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6114 cat >conftest.
$ac_ext <<EOF
6115 #line 5456 "configure"
6116 #include "confdefs.h"
6123 char *p = (char *) stpcpy;
6130 if { (eval echo configure
:5469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6131 ac_cv_have_decl_stpcpy
=yes
6133 echo "configure: failed program was:" >&5
6134 cat conftest.
$ac_ext >&5
6135 ac_cv_have_decl_stpcpy
=no
6139 echo "$ECHO_T""$ac_cv_have_decl_stpcpy" 1>&6
6140 if test $ac_cv_have_decl_stpcpy = yes; then
6143 cat >>confdefs.h
<<EOF
6144 #define HAVE_DECL_STPCPY 1
6148 cat >>confdefs.h
<<EOF
6149 #define HAVE_DECL_STPCPY 0
6153 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" 1>&6
6154 echo "configure:5490: checking whether strstr is declared" 1>&5
6155 if test "${ac_cv_have_decl_strstr+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6158 cat >conftest.
$ac_ext <<EOF
6159 #line 5495 "configure"
6160 #include "confdefs.h"
6167 char *p = (char *) strstr;
6174 if { (eval echo configure
:5508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6175 ac_cv_have_decl_strstr
=yes
6177 echo "configure: failed program was:" >&5
6178 cat conftest.
$ac_ext >&5
6179 ac_cv_have_decl_strstr
=no
6183 echo "$ECHO_T""$ac_cv_have_decl_strstr" 1>&6
6184 if test $ac_cv_have_decl_strstr = yes; then
6187 cat >>confdefs.h
<<EOF
6188 #define HAVE_DECL_STRSTR 1
6192 cat >>confdefs.h
<<EOF
6193 #define HAVE_DECL_STRSTR 0
6197 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" 1>&6
6198 echo "configure:5529: checking whether strtoul is declared" 1>&5
6199 if test "${ac_cv_have_decl_strtoul+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6202 cat >conftest.
$ac_ext <<EOF
6203 #line 5534 "configure"
6204 #include "confdefs.h"
6211 char *p = (char *) strtoul;
6218 if { (eval echo configure
:5547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6219 ac_cv_have_decl_strtoul
=yes
6221 echo "configure: failed program was:" >&5
6222 cat conftest.
$ac_ext >&5
6223 ac_cv_have_decl_strtoul
=no
6227 echo "$ECHO_T""$ac_cv_have_decl_strtoul" 1>&6
6228 if test $ac_cv_have_decl_strtoul = yes; then
6231 cat >>confdefs.h
<<EOF
6232 #define HAVE_DECL_STRTOUL 1
6236 cat >>confdefs.h
<<EOF
6237 #define HAVE_DECL_STRTOUL 0
6241 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" 1>&6
6242 echo "configure:5568: checking whether strtoull is declared" 1>&5
6243 if test "${ac_cv_have_decl_strtoull+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6246 cat >conftest.
$ac_ext <<EOF
6247 #line 5573 "configure"
6248 #include "confdefs.h"
6255 char *p = (char *) strtoull;
6262 if { (eval echo configure
:5586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6263 ac_cv_have_decl_strtoull
=yes
6265 echo "configure: failed program was:" >&5
6266 cat conftest.
$ac_ext >&5
6267 ac_cv_have_decl_strtoull
=no
6271 echo "$ECHO_T""$ac_cv_have_decl_strtoull" 1>&6
6272 if test $ac_cv_have_decl_strtoull = yes; then
6275 cat >>confdefs.h
<<EOF
6276 #define HAVE_DECL_STRTOULL 1
6280 cat >>confdefs.h
<<EOF
6281 #define HAVE_DECL_STRTOULL 0
6285 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" 1>&6
6286 echo "configure:5607: checking whether ttyname is declared" 1>&5
6287 if test "${ac_cv_have_decl_ttyname+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6290 cat >conftest.
$ac_ext <<EOF
6291 #line 5612 "configure"
6292 #include "confdefs.h"
6299 char *p = (char *) ttyname;
6306 if { (eval echo configure
:5625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6307 ac_cv_have_decl_ttyname
=yes
6309 echo "configure: failed program was:" >&5
6310 cat conftest.
$ac_ext >&5
6311 ac_cv_have_decl_ttyname
=no
6315 echo "$ECHO_T""$ac_cv_have_decl_ttyname" 1>&6
6316 if test $ac_cv_have_decl_ttyname = yes; then
6319 cat >>confdefs.h
<<EOF
6320 #define HAVE_DECL_TTYNAME 1
6324 cat >>confdefs.h
<<EOF
6325 #define HAVE_DECL_TTYNAME 0
6330 echo $ECHO_N "checking for long file names... $ECHO_C" 1>&6
6331 echo "configure:5646: checking for long file names" 1>&5
6332 if test "${ac_cv_sys_long_file_names+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6335 ac_cv_sys_long_file_names
=yes
6336 # Test for long file names in all the places we know might matter:
6337 # . the current directory, where building will happen
6338 # $prefix/lib where we will be installing things
6339 # $exec_prefix/lib likewise
6340 # eval it to expand exec_prefix.
6341 # $TMPDIR if set, where it might want to write temporary files
6342 # if $TMPDIR is not set:
6343 # /tmp where it might want to write temporary files
6346 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
6349 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
6351 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
6352 test -d $ac_dir ||
continue
6353 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
6354 ac_xdir
=$ac_dir/cf$$
6355 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
6356 ac_tf1
=$ac_xdir/conftest9012345
6357 ac_tf2
=$ac_xdir/conftest9012346
6358 (echo 1 >$ac_tf1) 2>/dev
/null
6359 (echo 2 >$ac_tf2) 2>/dev
/null
6360 ac_val
=`cat $ac_tf1 2>/dev/null`
6361 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
6362 ac_cv_sys_long_file_names
=no
6363 rm -rf $ac_xdir 2>/dev
/null
6366 rm -rf $ac_xdir 2>/dev
/null
6369 echo "$ECHO_T""$ac_cv_sys_long_file_names" 1>&6
6370 if test $ac_cv_sys_long_file_names = yes; then
6373 cat >>confdefs.h
<<\EOF
6374 #define HAVE_LONG_FILE_NAMES 1
6381 for ac_func
in pathconf
6383 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6384 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
6385 echo "configure:5696: checking for $ac_func" 1>&5
6386 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6387 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6389 cat >conftest.
$ac_ext <<EOF
6390 #line 5701 "configure"
6391 #include "confdefs.h"
6392 /* System header to define __stub macros and hopefully few prototypes,
6393 which can conflict with char $ac_func(); below. */
6395 /* Override any gcc2 internal prototype to avoid an error. */
6399 /* We use char because int might match the return type of a gcc2
6400 builtin and then its argument prototype would still apply. */
6408 /* The GNU C library defines this for functions which it implements
6409 to always fail with ENOSYS. Some functions are actually named
6410 something starting with __ and the normal name is an alias. */
6411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6421 if { (eval echo configure
:5729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6422 eval "$ac_ac_var=yes"
6424 echo "configure: failed program was:" >&5
6425 cat conftest.
$ac_ext >&5
6426 eval "$ac_ac_var=no"
6430 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
6431 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6432 cat >>confdefs.h
<<EOF
6433 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6445 for ac_header
in limits.h string.h unistd.h
6447 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
6448 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
6449 echo "configure:5752: checking for $ac_header" 1>&5
6450 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
6451 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6454 cat >conftest.
$ac_ext <<EOF
6455 #line 5757 "configure"
6456 #include "confdefs.h"
6457 #include <$ac_header>
6460 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6461 { (eval echo configure
:5762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6462 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6463 if test -z "$ac_err"; then
6464 eval "$ac_ac_Header=yes"
6467 echo "configure: failed program was:" >&5
6468 cat conftest.
$ac_ext >&5
6469 eval "$ac_ac_Header=no"
6473 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
6474 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
6475 cat >>confdefs.h
<<EOF
6476 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
6482 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" 1>&6
6483 echo "configure:5782: checking for library containing gethostbyname" 1>&5
6484 if test "${ac_cv_search_gethostbyname+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6487 ac_func_search_save_LIBS
="$LIBS"
6488 ac_cv_search_gethostbyname
="no"
6489 cat >conftest.
$ac_ext <<EOF
6490 #line 5789 "configure"
6491 #include "confdefs.h"
6493 /* Override any gcc2 internal prototype to avoid an error. */
6497 /* We use char because int might match the return type of a gcc2
6498 builtin and then its argument prototype would still apply. */
6499 char gethostbyname ();
6508 if { (eval echo configure
:5806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6509 ac_cv_search_gethostbyname
="none required"
6511 echo "configure: failed program was:" >&5
6512 cat conftest.
$ac_ext >&5
6515 test "$ac_cv_search_gethostbyname" = "no" && for ac_lib
in inet nsl
; do
6516 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6517 cat >conftest.
$ac_ext <<EOF
6518 #line 5816 "configure"
6519 #include "confdefs.h"
6521 /* Override any gcc2 internal prototype to avoid an error. */
6525 /* We use char because int might match the return type of a gcc2
6526 builtin and then its argument prototype would still apply. */
6527 char gethostbyname ();
6536 if { (eval echo configure
:5833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6537 ac_cv_search_gethostbyname
="-l$ac_lib"
6540 echo "configure: failed program was:" >&5
6541 cat conftest.
$ac_ext >&5
6545 LIBS
="$ac_func_search_save_LIBS"
6547 echo "$ECHO_T""$ac_cv_search_gethostbyname" 1>&6
6548 if test "$ac_cv_search_gethostbyname" != "no"; then
6549 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
6559 for ac_func
in gethostbyname gethostbyaddr inet_ntoa
6561 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6562 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
6563 echo "configure:5855: checking for $ac_func" 1>&5
6564 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6565 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6567 cat >conftest.
$ac_ext <<EOF
6568 #line 5860 "configure"
6569 #include "confdefs.h"
6570 /* System header to define __stub macros and hopefully few prototypes,
6571 which can conflict with char $ac_func(); below. */
6573 /* Override any gcc2 internal prototype to avoid an error. */
6577 /* We use char because int might match the return type of a gcc2
6578 builtin and then its argument prototype would still apply. */
6586 /* The GNU C library defines this for functions which it implements
6587 to always fail with ENOSYS. Some functions are actually named
6588 something starting with __ and the normal name is an alias. */
6589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6599 if { (eval echo configure
:5888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6600 eval "$ac_ac_var=yes"
6602 echo "configure: failed program was:" >&5
6603 cat conftest.
$ac_ext >&5
6604 eval "$ac_ac_var=no"
6608 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
6609 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6610 cat >>confdefs.h
<<EOF
6611 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6623 for ac_func
in gethostbyname gethostbyaddr inet_ntoa
6625 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6626 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
6627 echo "configure:5911: checking for $ac_func" 1>&5
6628 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6629 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6631 cat >conftest.
$ac_ext <<EOF
6632 #line 5916 "configure"
6633 #include "confdefs.h"
6634 /* System header to define __stub macros and hopefully few prototypes,
6635 which can conflict with char $ac_func(); below. */
6637 /* Override any gcc2 internal prototype to avoid an error. */
6641 /* We use char because int might match the return type of a gcc2
6642 builtin and then its argument prototype would still apply. */
6650 /* The GNU C library defines this for functions which it implements
6651 to always fail with ENOSYS. Some functions are actually named
6652 something starting with __ and the normal name is an alias. */
6653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6663 if { (eval echo configure
:5944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6664 eval "$ac_ac_var=yes"
6666 echo "configure: failed program was:" >&5
6667 cat conftest.
$ac_ext >&5
6668 eval "$ac_ac_var=no"
6672 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
6673 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6674 cat >>confdefs.h
<<EOF
6675 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6693 for ac_header
in unistd.h string.h netdb.h sys
/socket.h \
6694 netinet
/in.h arpa
/inet.h
6696 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
6697 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
6698 echo "configure:5971: checking for $ac_header" 1>&5
6699 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
6700 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6703 cat >conftest.
$ac_ext <<EOF
6704 #line 5976 "configure"
6705 #include "confdefs.h"
6706 #include <$ac_header>
6709 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6710 { (eval echo configure
:5981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6711 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6712 if test -z "$ac_err"; then
6713 eval "$ac_ac_Header=yes"
6716 echo "configure: failed program was:" >&5
6717 cat conftest.
$ac_ext >&5
6718 eval "$ac_ac_Header=no"
6722 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
6723 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
6724 cat >>confdefs.h
<<EOF
6725 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
6739 for ac_func
in strerror strerror_r vprintf doprnt
6741 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6742 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
6743 echo "configure:6008: checking for $ac_func" 1>&5
6744 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6745 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6747 cat >conftest.
$ac_ext <<EOF
6748 #line 6013 "configure"
6749 #include "confdefs.h"
6750 /* System header to define __stub macros and hopefully few prototypes,
6751 which can conflict with char $ac_func(); below. */
6753 /* Override any gcc2 internal prototype to avoid an error. */
6757 /* We use char because int might match the return type of a gcc2
6758 builtin and then its argument prototype would still apply. */
6766 /* The GNU C library defines this for functions which it implements
6767 to always fail with ENOSYS. Some functions are actually named
6768 something starting with __ and the normal name is an alias. */
6769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6779 if { (eval echo configure
:6041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6780 eval "$ac_ac_var=yes"
6782 echo "configure: failed program was:" >&5
6783 cat conftest.
$ac_ext >&5
6784 eval "$ac_ac_var=no"
6788 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
6789 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6790 cat >>confdefs.h
<<EOF
6791 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6797 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
6798 echo "configure:6058: checking for ANSI C header files" 1>&5
6799 if test "${ac_cv_header_stdc+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6803 cat >conftest.
$ac_ext <<EOF
6804 #line 6063 "configure"
6805 #include "confdefs.h"
6812 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6813 { (eval echo configure
:6071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6814 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6815 if test -z "$ac_err"; then
6816 ac_cv_header_stdc
=yes
6819 echo "configure: failed program was:" >&5
6820 cat conftest.
$ac_ext >&5
6821 ac_cv_header_stdc
=no
6825 if test $ac_cv_header_stdc = yes; then
6826 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6828 cat >conftest.
$ac_ext <<EOF
6829 #line 6085 "configure"
6830 #include "confdefs.h"
6834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6835 egrep "memchr" >/dev
/null
2>&1; then
6838 ac_cv_header_stdc
=no
6844 if test $ac_cv_header_stdc = yes; then
6845 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6847 cat >conftest.
$ac_ext <<EOF
6848 #line 6100 "configure"
6849 #include "confdefs.h"
6853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6854 egrep "free" >/dev
/null
2>&1; then
6857 ac_cv_header_stdc
=no
6863 if test $ac_cv_header_stdc = yes; then
6864 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6865 if test "$cross_compiling" = yes; then
6868 cat >conftest.
$ac_ext <<EOF
6869 #line 6118 "configure"
6870 #include "confdefs.h"
6872 #if ((' ' & 0x0FF) == 0x020)
6873 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6874 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6876 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6877 || ('j' <= (c) && (c) <= 'r') \
6878 || ('s' <= (c) && (c) <= 'z'))
6879 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6882 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6887 for (i = 0; i < 256; i++)
6888 if (XOR (islower (i), ISLOWER (i))
6889 || toupper (i) != TOUPPER (i))
6894 if { (eval echo configure
:6142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
6895 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
6898 echo "configure: failed program was:" >&5
6899 cat conftest.
$ac_ext >&5
6900 ac_cv_header_stdc
=no
6907 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
6908 if test $ac_cv_header_stdc = yes; then
6911 cat >>confdefs.h
<<\EOF
6912 #define STDC_HEADERS 1
6921 for ac_func
in isascii mbrtowc
6923 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6924 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
6925 echo "configure:6167: checking for $ac_func" 1>&5
6926 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6927 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6929 cat >conftest.
$ac_ext <<EOF
6930 #line 6172 "configure"
6931 #include "confdefs.h"
6932 /* System header to define __stub macros and hopefully few prototypes,
6933 which can conflict with char $ac_func(); below. */
6935 /* Override any gcc2 internal prototype to avoid an error. */
6939 /* We use char because int might match the return type of a gcc2
6940 builtin and then its argument prototype would still apply. */
6948 /* The GNU C library defines this for functions which it implements
6949 to always fail with ENOSYS. Some functions are actually named
6950 something starting with __ and the normal name is an alias. */
6951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6961 if { (eval echo configure
:6200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6962 eval "$ac_ac_var=yes"
6964 echo "configure: failed program was:" >&5
6965 cat conftest.
$ac_ext >&5
6966 eval "$ac_ac_var=no"
6970 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
6971 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6972 cat >>confdefs.h
<<EOF
6973 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6989 for ac_header
in limits.h stdlib.h string.h wchar.h wctype.h
6991 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
6992 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
6993 echo "configure:6225: checking for $ac_header" 1>&5
6994 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
6995 echo $ECHO_N "(cached) $ECHO_C" 1>&6
6998 cat >conftest.
$ac_ext <<EOF
6999 #line 6230 "configure"
7000 #include "confdefs.h"
7001 #include <$ac_header>
7004 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7005 { (eval echo configure
:6235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7006 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7007 if test -z "$ac_err"; then
7008 eval "$ac_ac_Header=yes"
7011 echo "configure: failed program was:" >&5
7012 cat conftest.
$ac_ext >&5
7013 eval "$ac_ac_Header=no"
7017 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
7018 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
7019 cat >>confdefs.h
<<EOF
7020 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
7026 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
7027 echo "configure:6255: checking for ANSI C header files" 1>&5
7028 if test "${ac_cv_header_stdc+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7032 cat >conftest.
$ac_ext <<EOF
7033 #line 6260 "configure"
7034 #include "confdefs.h"
7041 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7042 { (eval echo configure
:6268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7043 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7044 if test -z "$ac_err"; then
7045 ac_cv_header_stdc
=yes
7048 echo "configure: failed program was:" >&5
7049 cat conftest.
$ac_ext >&5
7050 ac_cv_header_stdc
=no
7054 if test $ac_cv_header_stdc = yes; then
7055 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7057 cat >conftest.
$ac_ext <<EOF
7058 #line 6282 "configure"
7059 #include "confdefs.h"
7063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7064 egrep "memchr" >/dev
/null
2>&1; then
7067 ac_cv_header_stdc
=no
7073 if test $ac_cv_header_stdc = yes; then
7074 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7076 cat >conftest.
$ac_ext <<EOF
7077 #line 6297 "configure"
7078 #include "confdefs.h"
7082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083 egrep "free" >/dev
/null
2>&1; then
7086 ac_cv_header_stdc
=no
7092 if test $ac_cv_header_stdc = yes; then
7093 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7094 if test "$cross_compiling" = yes; then
7097 cat >conftest.
$ac_ext <<EOF
7098 #line 6315 "configure"
7099 #include "confdefs.h"
7101 #if ((' ' & 0x0FF) == 0x020)
7102 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7103 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7105 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7106 || ('j' <= (c) && (c) <= 'r') \
7107 || ('s' <= (c) && (c) <= 'z'))
7108 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7111 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7116 for (i = 0; i < 256; i++)
7117 if (XOR (islower (i), ISLOWER (i))
7118 || toupper (i) != TOUPPER (i))
7123 if { (eval echo configure
:6339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
7124 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
7127 echo "configure: failed program was:" >&5
7128 cat conftest.
$ac_ext >&5
7129 ac_cv_header_stdc
=no
7136 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
7137 if test $ac_cv_header_stdc = yes; then
7140 cat >>confdefs.h
<<\EOF
7141 #define STDC_HEADERS 1
7146 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" 1>&6
7147 echo "configure:6359: checking whether backslash-a works in strings" 1>&5
7148 if test "${ac_cv_c_backslash_a+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7151 cat >conftest.
$ac_ext <<EOF
7152 #line 6364 "configure"
7153 #include "confdefs.h"
7162 char buf['\a' == 'a' ? -1 : 1];
7164 return buf[0] != "\a"[0];
7170 if { (eval echo configure
:6379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7171 ac_cv_c_backslash_a
=yes
7173 echo "configure: failed program was:" >&5
7174 cat conftest.
$ac_ext >&5
7175 ac_cv_c_backslash_a
=no
7179 echo "$ECHO_T""$ac_cv_c_backslash_a" 1>&6
7180 if test $ac_cv_c_backslash_a = yes; then
7183 cat >>confdefs.h
<<\EOF
7184 #define HAVE_C_BACKSLASH_A 1
7189 echo $ECHO_N "checking for function prototypes... $ECHO_C" 1>&6
7190 echo "configure:6396: checking for function prototypes" 1>&5
7191 if test "$am_cv_prog_cc_stdc" != no
; then
7192 echo "$ECHO_T""yes" 1>&6
7195 cat >>confdefs.h
<<\EOF
7196 #define PROTOTYPES 1
7201 echo "$ECHO_T""no" 1>&6
7202 U
=_ ANSI2KNR
=.
/ansi2knr
7203 # Ensure some checks needed by ansi2knr itself.
7205 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
7206 echo "configure:6409: checking for ANSI C header files" 1>&5
7207 if test "${ac_cv_header_stdc+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7211 cat >conftest.
$ac_ext <<EOF
7212 #line 6414 "configure"
7213 #include "confdefs.h"
7220 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7221 { (eval echo configure
:6422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7222 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7223 if test -z "$ac_err"; then
7224 ac_cv_header_stdc
=yes
7227 echo "configure: failed program was:" >&5
7228 cat conftest.
$ac_ext >&5
7229 ac_cv_header_stdc
=no
7233 if test $ac_cv_header_stdc = yes; then
7234 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7236 cat >conftest.
$ac_ext <<EOF
7237 #line 6436 "configure"
7238 #include "confdefs.h"
7242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7243 egrep "memchr" >/dev
/null
2>&1; then
7246 ac_cv_header_stdc
=no
7252 if test $ac_cv_header_stdc = yes; then
7253 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7255 cat >conftest.
$ac_ext <<EOF
7256 #line 6451 "configure"
7257 #include "confdefs.h"
7261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7262 egrep "free" >/dev
/null
2>&1; then
7265 ac_cv_header_stdc
=no
7271 if test $ac_cv_header_stdc = yes; then
7272 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7273 if test "$cross_compiling" = yes; then
7276 cat >conftest.
$ac_ext <<EOF
7277 #line 6469 "configure"
7278 #include "confdefs.h"
7280 #if ((' ' & 0x0FF) == 0x020)
7281 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7282 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7284 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7285 || ('j' <= (c) && (c) <= 'r') \
7286 || ('s' <= (c) && (c) <= 'z'))
7287 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7290 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7295 for (i = 0; i < 256; i++)
7296 if (XOR (islower (i), ISLOWER (i))
7297 || toupper (i) != TOUPPER (i))
7302 if { (eval echo configure
:6493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
7303 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
7306 echo "configure: failed program was:" >&5
7307 cat conftest.
$ac_ext >&5
7308 ac_cv_header_stdc
=no
7315 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
7316 if test $ac_cv_header_stdc = yes; then
7319 cat >>confdefs.h
<<\EOF
7320 #define STDC_HEADERS 1
7327 for ac_header
in string.h
7329 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
7330 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
7331 echo "configure:6517: checking for $ac_header" 1>&5
7332 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
7333 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7336 cat >conftest.
$ac_ext <<EOF
7337 #line 6522 "configure"
7338 #include "confdefs.h"
7339 #include <$ac_header>
7342 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7343 { (eval echo configure
:6527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7344 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7345 if test -z "$ac_err"; then
7346 eval "$ac_ac_Header=yes"
7349 echo "configure: failed program was:" >&5
7350 cat conftest.
$ac_ext >&5
7351 eval "$ac_ac_Header=no"
7355 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
7356 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
7357 cat >>confdefs.h
<<EOF
7358 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
7366 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
7367 echo "configure:6548: checking for ANSI C header files" 1>&5
7368 if test "${ac_cv_header_stdc+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7372 cat >conftest.
$ac_ext <<EOF
7373 #line 6553 "configure"
7374 #include "confdefs.h"
7381 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7382 { (eval echo configure
:6561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7383 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7384 if test -z "$ac_err"; then
7385 ac_cv_header_stdc
=yes
7388 echo "configure: failed program was:" >&5
7389 cat conftest.
$ac_ext >&5
7390 ac_cv_header_stdc
=no
7394 if test $ac_cv_header_stdc = yes; then
7395 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7397 cat >conftest.
$ac_ext <<EOF
7398 #line 6575 "configure"
7399 #include "confdefs.h"
7403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7404 egrep "memchr" >/dev
/null
2>&1; then
7407 ac_cv_header_stdc
=no
7413 if test $ac_cv_header_stdc = yes; then
7414 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7416 cat >conftest.
$ac_ext <<EOF
7417 #line 6590 "configure"
7418 #include "confdefs.h"
7422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7423 egrep "free" >/dev
/null
2>&1; then
7426 ac_cv_header_stdc
=no
7432 if test $ac_cv_header_stdc = yes; then
7433 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7434 if test "$cross_compiling" = yes; then
7437 cat >conftest.
$ac_ext <<EOF
7438 #line 6608 "configure"
7439 #include "confdefs.h"
7441 #if ((' ' & 0x0FF) == 0x020)
7442 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7443 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7445 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7446 || ('j' <= (c) && (c) <= 'r') \
7447 || ('s' <= (c) && (c) <= 'z'))
7448 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7451 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7456 for (i = 0; i < 256; i++)
7457 if (XOR (islower (i), ISLOWER (i))
7458 || toupper (i) != TOUPPER (i))
7463 if { (eval echo configure
:6632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
7464 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
7467 echo "configure: failed program was:" >&5
7468 cat conftest.
$ac_ext >&5
7469 ac_cv_header_stdc
=no
7476 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
7477 if test $ac_cv_header_stdc = yes; then
7480 cat >>confdefs.h
<<\EOF
7481 #define STDC_HEADERS 1
7492 for ac_header
in string.h utmpx.h sys
/param.h
7494 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
7495 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
7496 echo "configure:6658: checking for $ac_header" 1>&5
7497 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
7498 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7501 cat >conftest.
$ac_ext <<EOF
7502 #line 6663 "configure"
7503 #include "confdefs.h"
7504 #include <$ac_header>
7507 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7508 { (eval echo configure
:6668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7509 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7510 if test -z "$ac_err"; then
7511 eval "$ac_ac_Header=yes"
7514 echo "configure: failed program was:" >&5
7515 cat conftest.
$ac_ext >&5
7516 eval "$ac_ac_Header=no"
7520 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
7521 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
7522 cat >>confdefs.h
<<EOF
7523 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
7531 for ac_func
in utmpname
7533 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
7534 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
7535 echo "configure:6692: checking for $ac_func" 1>&5
7536 if eval "test \"\${$ac_ac_var+set}\" = set"; then
7537 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7539 cat >conftest.
$ac_ext <<EOF
7540 #line 6697 "configure"
7541 #include "confdefs.h"
7542 /* System header to define __stub macros and hopefully few prototypes,
7543 which can conflict with char $ac_func(); below. */
7545 /* Override any gcc2 internal prototype to avoid an error. */
7549 /* We use char because int might match the return type of a gcc2
7550 builtin and then its argument prototype would still apply. */
7558 /* The GNU C library defines this for functions which it implements
7559 to always fail with ENOSYS. Some functions are actually named
7560 something starting with __ and the normal name is an alias. */
7561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7571 if { (eval echo configure
:6725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7572 eval "$ac_ac_var=yes"
7574 echo "configure: failed program was:" >&5
7575 cat conftest.
$ac_ext >&5
7576 eval "$ac_ac_var=no"
7580 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
7581 if test `eval echo '${'$ac_ac_var'}'` = yes; then
7582 cat >>confdefs.h
<<EOF
7583 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
7591 for ac_func
in utmpxname
7593 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
7594 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
7595 echo "configure:6746: checking for $ac_func" 1>&5
7596 if eval "test \"\${$ac_ac_var+set}\" = set"; then
7597 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7599 cat >conftest.
$ac_ext <<EOF
7600 #line 6751 "configure"
7601 #include "confdefs.h"
7602 /* System header to define __stub macros and hopefully few prototypes,
7603 which can conflict with char $ac_func(); below. */
7605 /* Override any gcc2 internal prototype to avoid an error. */
7609 /* We use char because int might match the return type of a gcc2
7610 builtin and then its argument prototype would still apply. */
7618 /* The GNU C library defines this for functions which it implements
7619 to always fail with ENOSYS. Some functions are actually named
7620 something starting with __ and the normal name is an alias. */
7621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7631 if { (eval echo configure
:6779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7632 eval "$ac_ac_var=yes"
7634 echo "configure: failed program was:" >&5
7635 cat conftest.
$ac_ext >&5
7636 eval "$ac_ac_var=no"
7640 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
7641 if test `eval echo '${'$ac_ac_var'}'` = yes; then
7642 cat >>confdefs.h
<<EOF
7643 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
7649 echo $ECHO_N "checking for function prototypes... $ECHO_C" 1>&6
7650 echo "configure:6796: checking for function prototypes" 1>&5
7651 if test "$am_cv_prog_cc_stdc" != no
; then
7652 echo "$ECHO_T""yes" 1>&6
7655 cat >>confdefs.h
<<\EOF
7656 #define PROTOTYPES 1
7661 echo "$ECHO_T""no" 1>&6
7662 U
=_ ANSI2KNR
=.
/ansi2knr
7663 # Ensure some checks needed by ansi2knr itself.
7665 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
7666 echo "configure:6809: checking for ANSI C header files" 1>&5
7667 if test "${ac_cv_header_stdc+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7671 cat >conftest.
$ac_ext <<EOF
7672 #line 6814 "configure"
7673 #include "confdefs.h"
7680 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7681 { (eval echo configure
:6822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7682 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7683 if test -z "$ac_err"; then
7684 ac_cv_header_stdc
=yes
7687 echo "configure: failed program was:" >&5
7688 cat conftest.
$ac_ext >&5
7689 ac_cv_header_stdc
=no
7693 if test $ac_cv_header_stdc = yes; then
7694 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7696 cat >conftest.
$ac_ext <<EOF
7697 #line 6836 "configure"
7698 #include "confdefs.h"
7702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7703 egrep "memchr" >/dev
/null
2>&1; then
7706 ac_cv_header_stdc
=no
7712 if test $ac_cv_header_stdc = yes; then
7713 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7715 cat >conftest.
$ac_ext <<EOF
7716 #line 6851 "configure"
7717 #include "confdefs.h"
7721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7722 egrep "free" >/dev
/null
2>&1; then
7725 ac_cv_header_stdc
=no
7731 if test $ac_cv_header_stdc = yes; then
7732 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7733 if test "$cross_compiling" = yes; then
7736 cat >conftest.
$ac_ext <<EOF
7737 #line 6869 "configure"
7738 #include "confdefs.h"
7740 #if ((' ' & 0x0FF) == 0x020)
7741 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7742 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7744 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7745 || ('j' <= (c) && (c) <= 'r') \
7746 || ('s' <= (c) && (c) <= 'z'))
7747 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7750 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7755 for (i = 0; i < 256; i++)
7756 if (XOR (islower (i), ISLOWER (i))
7757 || toupper (i) != TOUPPER (i))
7762 if { (eval echo configure
:6893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
7763 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
7766 echo "configure: failed program was:" >&5
7767 cat conftest.
$ac_ext >&5
7768 ac_cv_header_stdc
=no
7775 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
7776 if test $ac_cv_header_stdc = yes; then
7779 cat >>confdefs.h
<<\EOF
7780 #define STDC_HEADERS 1
7787 for ac_header
in string.h
7789 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
7790 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
7791 echo "configure:6917: checking for $ac_header" 1>&5
7792 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
7793 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7796 cat >conftest.
$ac_ext <<EOF
7797 #line 6922 "configure"
7798 #include "confdefs.h"
7799 #include <$ac_header>
7802 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7803 { (eval echo configure
:6927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7804 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7805 if test -z "$ac_err"; then
7806 eval "$ac_ac_Header=yes"
7809 echo "configure: failed program was:" >&5
7810 cat conftest.
$ac_ext >&5
7811 eval "$ac_ac_Header=no"
7815 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
7816 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
7817 cat >>confdefs.h
<<EOF
7818 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
7827 $ac_includes_default
7835 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" 1>&6
7836 echo "configure:6956: checking for struct utmpx.ut_user" 1>&5
7837 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7840 cat >conftest.
$ac_ext <<EOF
7841 #line 6961 "configure"
7842 #include "confdefs.h"
7854 if { (eval echo configure
:6973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7855 ac_cv_member_struct_utmpx_ut_user
=yes
7857 echo "configure: failed program was:" >&5
7858 cat conftest.
$ac_ext >&5
7859 ac_cv_member_struct_utmpx_ut_user
=no
7863 echo "$ECHO_T""$ac_cv_member_struct_utmpx_ut_user" 1>&6
7864 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
7867 cat >>confdefs.h
<<EOF
7868 #define HAVE_STRUCT_UTMPX_UT_USER 1
7873 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" 1>&6
7874 echo "configure:6990: checking for struct utmp.ut_user" 1>&5
7875 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7878 cat >conftest.
$ac_ext <<EOF
7879 #line 6995 "configure"
7880 #include "confdefs.h"
7892 if { (eval echo configure
:7007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7893 ac_cv_member_struct_utmp_ut_user
=yes
7895 echo "configure: failed program was:" >&5
7896 cat conftest.
$ac_ext >&5
7897 ac_cv_member_struct_utmp_ut_user
=no
7901 echo "$ECHO_T""$ac_cv_member_struct_utmp_ut_user" 1>&6
7902 if test $ac_cv_member_struct_utmp_ut_user = yes; then
7905 cat >>confdefs.h
<<EOF
7906 #define HAVE_STRUCT_UTMP_UT_USER 1
7911 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" 1>&6
7912 echo "configure:7024: checking for struct utmpx.ut_name" 1>&5
7913 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7916 cat >conftest.
$ac_ext <<EOF
7917 #line 7029 "configure"
7918 #include "confdefs.h"
7930 if { (eval echo configure
:7041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7931 ac_cv_member_struct_utmpx_ut_name
=yes
7933 echo "configure: failed program was:" >&5
7934 cat conftest.
$ac_ext >&5
7935 ac_cv_member_struct_utmpx_ut_name
=no
7939 echo "$ECHO_T""$ac_cv_member_struct_utmpx_ut_name" 1>&6
7940 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
7943 cat >>confdefs.h
<<EOF
7944 #define HAVE_STRUCT_UTMPX_UT_NAME 1
7949 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" 1>&6
7950 echo "configure:7058: checking for struct utmp.ut_name" 1>&5
7951 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" 1>&6
7954 cat >conftest.
$ac_ext <<EOF
7955 #line 7063 "configure"
7956 #include "confdefs.h"
7968 if { (eval echo configure
:7075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7969 ac_cv_member_struct_utmp_ut_name
=yes
7971 echo "configure: failed program was:" >&5
7972 cat conftest.
$ac_ext >&5
7973 ac_cv_member_struct_utmp_ut_name
=no
7977 echo "$ECHO_T""$ac_cv_member_struct_utmp_ut_name" 1>&6
7978 if test $ac_cv_member_struct_utmp_ut_name = yes; then
7981 cat >>confdefs.h
<<EOF
7982 #define HAVE_STRUCT_UTMP_UT_NAME 1
7995 for ac_func
in bzero bcopy isascii btowc
7997 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
7998 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
7999 echo "configure:7099: checking for $ac_func" 1>&5
8000 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8001 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8003 cat >conftest.
$ac_ext <<EOF
8004 #line 7104 "configure"
8005 #include "confdefs.h"
8006 /* System header to define __stub macros and hopefully few prototypes,
8007 which can conflict with char $ac_func(); below. */
8009 /* Override any gcc2 internal prototype to avoid an error. */
8013 /* We use char because int might match the return type of a gcc2
8014 builtin and then its argument prototype would still apply. */
8022 /* The GNU C library defines this for functions which it implements
8023 to always fail with ENOSYS. Some functions are actually named
8024 something starting with __ and the normal name is an alias. */
8025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8035 if { (eval echo configure
:7132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8036 eval "$ac_ac_var=yes"
8038 echo "configure: failed program was:" >&5
8039 cat conftest.
$ac_ext >&5
8040 eval "$ac_ac_var=no"
8044 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
8045 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8046 cat >>confdefs.h
<<EOF
8047 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8061 for ac_header
in alloca.h libintl.h wctype.h wchar.h
8063 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
8064 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
8065 echo "configure:7156: checking for $ac_header" 1>&5
8066 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
8067 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8070 cat >conftest.
$ac_ext <<EOF
8071 #line 7161 "configure"
8072 #include "confdefs.h"
8073 #include <$ac_header>
8076 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8077 { (eval echo configure
:7166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8078 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8079 if test -z "$ac_err"; then
8080 eval "$ac_ac_Header=yes"
8083 echo "configure: failed program was:" >&5
8084 cat conftest.
$ac_ext >&5
8085 eval "$ac_ac_Header=no"
8089 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
8090 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
8091 cat >>confdefs.h
<<EOF
8092 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
8098 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" 1>&6
8099 echo "configure:7186: checking for ANSI C header files" 1>&5
8100 if test "${ac_cv_header_stdc+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8104 cat >conftest.
$ac_ext <<EOF
8105 #line 7191 "configure"
8106 #include "confdefs.h"
8113 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8114 { (eval echo configure
:7199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8115 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8116 if test -z "$ac_err"; then
8117 ac_cv_header_stdc
=yes
8120 echo "configure: failed program was:" >&5
8121 cat conftest.
$ac_ext >&5
8122 ac_cv_header_stdc
=no
8126 if test $ac_cv_header_stdc = yes; then
8127 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8129 cat >conftest.
$ac_ext <<EOF
8130 #line 7213 "configure"
8131 #include "confdefs.h"
8135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8136 egrep "memchr" >/dev
/null
2>&1; then
8139 ac_cv_header_stdc
=no
8145 if test $ac_cv_header_stdc = yes; then
8146 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8148 cat >conftest.
$ac_ext <<EOF
8149 #line 7228 "configure"
8150 #include "confdefs.h"
8154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8155 egrep "free" >/dev
/null
2>&1; then
8158 ac_cv_header_stdc
=no
8164 if test $ac_cv_header_stdc = yes; then
8165 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8166 if test "$cross_compiling" = yes; then
8169 cat >conftest.
$ac_ext <<EOF
8170 #line 7246 "configure"
8171 #include "confdefs.h"
8173 #if ((' ' & 0x0FF) == 0x020)
8174 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8175 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8177 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8178 || ('j' <= (c) && (c) <= 'r') \
8179 || ('s' <= (c) && (c) <= 'z'))
8180 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8183 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8188 for (i = 0; i < 256; i++)
8189 if (XOR (islower (i), ISLOWER (i))
8190 || toupper (i) != TOUPPER (i))
8195 if { (eval echo configure
:7270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8196 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
8199 echo "configure: failed program was:" >&5
8200 cat conftest.
$ac_ext >&5
8201 ac_cv_header_stdc
=no
8208 echo "$ECHO_T""$ac_cv_header_stdc" 1>&6
8209 if test $ac_cv_header_stdc = yes; then
8212 cat >>confdefs.h
<<\EOF
8213 #define STDC_HEADERS 1
8220 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8221 # for constant arguments. Useless!
8222 echo $ECHO_N "checking for working alloca.h... $ECHO_C" 1>&6
8223 echo "configure:7293: checking for working alloca.h" 1>&5
8224 if test "${ac_cv_working_alloca_h+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8227 cat >conftest.
$ac_ext <<EOF
8228 #line 7298 "configure"
8229 #include "confdefs.h"
8234 char *p = (char *) alloca (2 * sizeof (int));
8239 if { (eval echo configure
:7309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8240 ac_cv_working_alloca_h
=yes
8242 echo "configure: failed program was:" >&5
8243 cat conftest.
$ac_ext >&5
8244 ac_cv_working_alloca_h
=no
8248 echo "$ECHO_T""$ac_cv_working_alloca_h" 1>&6
8249 if test $ac_cv_working_alloca_h = yes; then
8252 cat >>confdefs.h
<<\EOF
8253 #define HAVE_ALLOCA_H 1
8258 echo $ECHO_N "checking for alloca... $ECHO_C" 1>&6
8259 echo "configure:7326: checking for alloca" 1>&5
8260 if test "${ac_cv_func_alloca_works+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8263 cat >conftest.
$ac_ext <<EOF
8264 #line 7331 "configure"
8265 #include "confdefs.h"
8267 # define alloca __builtin_alloca
8270 # include <malloc.h>
8271 # define alloca _alloca
8274 # include <alloca.h>
8279 # ifndef alloca /* predefined by HP cc +Olibcalls */
8290 char *p = (char *) alloca(1);
8295 if { (eval echo configure
:7361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8296 ac_cv_func_alloca_works
=yes
8298 echo "configure: failed program was:" >&5
8299 cat conftest.
$ac_ext >&5
8300 ac_cv_func_alloca_works
=no
8304 echo "$ECHO_T""$ac_cv_func_alloca_works" 1>&6
8305 if test $ac_cv_func_alloca_works = yes; then
8308 cat >>confdefs.h
<<\EOF
8309 #define HAVE_ALLOCA 1
8314 if test $ac_cv_func_alloca_works = no
; then
8315 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8316 # that cause trouble. Some versions do not even contain alloca or
8317 # contain a buggy version. If you still want to use their alloca,
8318 # use ar to extract alloca.o from them instead of compiling alloca.c.
8319 ALLOCA
=alloca.
${ac_objext}
8322 cat >>confdefs.h
<<\EOF
8326 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" 1>&6
8327 echo "configure:7388: checking whether alloca needs Cray hooks" 1>&5
8328 if test "${ac_cv_os_cray+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8332 cat >conftest.
$ac_ext <<EOF
8333 #line 7393 "configure"
8334 #include "confdefs.h"
8335 #if defined(CRAY) && ! defined(CRAY2)
8342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8343 egrep "webecray" >/dev
/null
2>&1; then
8351 echo "$ECHO_T""$ac_cv_os_cray" 1>&6
8352 if test $ac_cv_os_cray = yes; then
8353 for ac_func
in _getb67 GETB67 getb67
; do
8354 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8355 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
8356 echo "configure:7414: checking for $ac_func" 1>&5
8357 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8358 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8360 cat >conftest.
$ac_ext <<EOF
8361 #line 7419 "configure"
8362 #include "confdefs.h"
8363 /* System header to define __stub macros and hopefully few prototypes,
8364 which can conflict with char $ac_func(); below. */
8366 /* Override any gcc2 internal prototype to avoid an error. */
8370 /* We use char because int might match the return type of a gcc2
8371 builtin and then its argument prototype would still apply. */
8379 /* The GNU C library defines this for functions which it implements
8380 to always fail with ENOSYS. Some functions are actually named
8381 something starting with __ and the normal name is an alias. */
8382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8392 if { (eval echo configure
:7447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8393 eval "$ac_ac_var=yes"
8395 echo "configure: failed program was:" >&5
8396 cat conftest.
$ac_ext >&5
8397 eval "$ac_ac_var=no"
8401 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
8402 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8405 cat >>confdefs.h
<<EOF
8406 #define CRAY_STACKSEG_END $ac_func
8415 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" 1>&6
8416 echo "configure:7467: checking stack direction for C alloca" 1>&5
8417 if test "${ac_cv_c_stack_direction+set}" = set; then
8418 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8420 if test "$cross_compiling" = yes; then
8421 ac_cv_c_stack_direction
=0
8423 cat >conftest.
$ac_ext <<EOF
8424 #line 7475 "configure"
8425 #include "confdefs.h"
8426 find_stack_direction ()
8428 static char *addr = 0;
8433 return find_stack_direction ();
8436 return (&dummy > addr) ? 1 : -1;
8442 exit (find_stack_direction () < 0);
8445 if { (eval echo configure
:7495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8446 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
8447 ac_cv_c_stack_direction
=1
8449 echo "configure: failed program was:" >&5
8450 cat conftest.
$ac_ext >&5
8451 ac_cv_c_stack_direction
=-1
8457 echo "$ECHO_T""$ac_cv_c_stack_direction" 1>&6
8458 cat >>confdefs.h
<<EOF
8459 #define STACK_DIRECTION $ac_cv_c_stack_direction
8466 for ac_func
in localtime_r
8468 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8469 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
8470 echo "configure:7516: checking for $ac_func" 1>&5
8471 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8472 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8474 cat >conftest.
$ac_ext <<EOF
8475 #line 7521 "configure"
8476 #include "confdefs.h"
8477 /* System header to define __stub macros and hopefully few prototypes,
8478 which can conflict with char $ac_func(); below. */
8480 /* Override any gcc2 internal prototype to avoid an error. */
8484 /* We use char because int might match the return type of a gcc2
8485 builtin and then its argument prototype would still apply. */
8493 /* The GNU C library defines this for functions which it implements
8494 to always fail with ENOSYS. Some functions are actually named
8495 something starting with __ and the normal name is an alias. */
8496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8506 if { (eval echo configure
:7549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8507 eval "$ac_ac_var=yes"
8509 echo "configure: failed program was:" >&5
8510 cat conftest.
$ac_ext >&5
8511 eval "$ac_ac_var=no"
8515 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
8516 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8517 cat >>confdefs.h
<<EOF
8518 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8524 if test $ac_cv_func_working_mktime = no
; then
8527 cat >>confdefs.h
<<EOF
8528 #define mktime rpl_mktime
8533 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" 1>&6
8534 echo "configure:7572: checking whether lstat accepts an empty string" 1>&5
8535 if test "${jm_cv_func_lstat_empty_string_bug+set}" = set; then
8536 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8538 if test "$cross_compiling" = yes; then
8539 jm_cv_func_lstat_empty_string_bug
=yes
8541 cat >conftest.
$ac_ext <<EOF
8542 #line 7580 "configure"
8543 #include "confdefs.h"
8545 # include <sys/types.h>
8546 # include <sys/stat.h>
8552 exit (lstat ("", &sbuf) ? 1 : 0);
8556 if { (eval echo configure
:7592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8557 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
8558 jm_cv_func_lstat_empty_string_bug
=yes
8560 echo "configure: failed program was:" >&5
8561 cat conftest.
$ac_ext >&5
8562 jm_cv_func_lstat_empty_string_bug
=no
8568 echo "$ECHO_T""$jm_cv_func_lstat_empty_string_bug" 1>&6
8569 if test $jm_cv_func_lstat_empty_string_bug = yes; then
8571 LIBOBJS
="$LIBOBJS lstat.$ac_objext"
8574 cat >>confdefs.h
<<EOF
8575 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
8580 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" 1>&6
8581 echo "configure:7612: checking whether lstat dereferences a symlink specified with a trailing slash" 1>&5
8582 if test "${jm_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8586 rm -f conftest.sym conftest.
file
8588 if ln -s conftest.
file conftest.sym
; then
8589 if test "$cross_compiling" = yes; then
8590 jm_cv_func_lstat_dereferences_slashed_symlink
=no
8593 cat >conftest.
$ac_ext <<EOF
8594 #line 7623 "configure"
8595 #include "confdefs.h"
8597 # include <sys/types.h>
8598 # include <sys/stat.h>
8604 /* Linux will dereference the symlink and fail.
8605 That is better in the sense that it means we will not
8606 have to compile and use the lstat wrapper. */
8607 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
8611 if { (eval echo configure
:7637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8612 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
8613 jm_cv_func_lstat_dereferences_slashed_symlink
=yes
8615 echo "configure: failed program was:" >&5
8616 cat conftest.
$ac_ext >&5
8617 jm_cv_func_lstat_dereferences_slashed_symlink
=no
8623 # If the `ln -s' command failed, then we probably don't even
8624 # have an lstat function.
8625 jm_cv_func_lstat_dereferences_slashed_symlink
=no
8629 echo "$ECHO_T""$jm_cv_func_lstat_dereferences_slashed_symlink" 1>&6
8631 test $jm_cv_func_lstat_dereferences_slashed_symlink = yes \
8636 cat >>confdefs.h
<<EOF
8637 #define LSTAT_FOLLOWS_SLASHED_SYMLINK $zero_one
8640 if test $jm_cv_func_lstat_dereferences_slashed_symlink = no
; then
8642 # Append lstat.o if it's not already in $LIBOBJS.
8644 *lstat.
$ac_objext*) ;;
8645 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
8649 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" 1>&6
8650 echo "configure:7669: checking whether stat accepts an empty string" 1>&5
8651 if test "${jm_cv_func_stat_empty_string_bug+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8654 if test "$cross_compiling" = yes; then
8655 jm_cv_func_stat_empty_string_bug
=yes
8657 cat >conftest.
$ac_ext <<EOF
8658 #line 7677 "configure"
8659 #include "confdefs.h"
8661 # include <sys/types.h>
8662 # include <sys/stat.h>
8668 exit (stat ("", &sbuf) ? 1 : 0);
8672 if { (eval echo configure
:7689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8673 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
8674 jm_cv_func_stat_empty_string_bug
=yes
8676 echo "configure: failed program was:" >&5
8677 cat conftest.
$ac_ext >&5
8678 jm_cv_func_stat_empty_string_bug
=no
8684 echo "$ECHO_T""$jm_cv_func_stat_empty_string_bug" 1>&6
8685 if test $jm_cv_func_stat_empty_string_bug = yes; then
8687 LIBOBJS
="$LIBOBJS stat.$ac_objext"
8690 cat >>confdefs.h
<<EOF
8691 #define HAVE_STAT_EMPTY_STRING_BUG 1
8698 cat >>confdefs.h
<<EOF
8699 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
8702 echo $ECHO_N "checking for working realloc... $ECHO_C" 1>&6
8703 echo "configure:7713: checking for working realloc" 1>&5
8704 if test "${jm_cv_func_working_realloc+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8707 if test "$cross_compiling" = yes; then
8708 jm_cv_func_working_realloc
=no
8710 cat >conftest.
$ac_ext <<EOF
8711 #line 7721 "configure"
8712 #include "confdefs.h"
8718 exit (realloc (0, 0) ? 0 : 1);
8722 if { (eval echo configure
:7731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8723 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
8724 jm_cv_func_working_realloc
=yes
8726 echo "configure: failed program was:" >&5
8727 cat conftest.
$ac_ext >&5
8728 jm_cv_func_working_realloc
=no
8734 echo "$ECHO_T""$jm_cv_func_working_realloc" 1>&6
8735 if test $jm_cv_func_working_realloc = no
; then
8737 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
8740 cat >>confdefs.h
<<EOF
8741 #define realloc rpl_realloc
8748 cat >>confdefs.h
<<EOF
8749 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
8752 echo $ECHO_N "checking for working malloc... $ECHO_C" 1>&6
8753 echo "configure:7755: checking for working malloc" 1>&5
8754 if test "${jm_cv_func_working_malloc+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8757 if test "$cross_compiling" = yes; then
8758 jm_cv_func_working_malloc
=no
8760 cat >conftest.
$ac_ext <<EOF
8761 #line 7763 "configure"
8762 #include "confdefs.h"
8768 exit (malloc (0) ? 0 : 1);
8772 if { (eval echo configure
:7773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
8773 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
8774 jm_cv_func_working_malloc
=yes
8776 echo "configure: failed program was:" >&5
8777 cat conftest.
$ac_ext >&5
8778 jm_cv_func_working_malloc
=no
8784 echo "$ECHO_T""$jm_cv_func_working_malloc" 1>&6
8785 if test $jm_cv_func_working_malloc = no
; then
8787 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
8790 cat >>confdefs.h
<<EOF
8791 #define malloc rpl_malloc
8799 for ac_func
in strerror_r
8801 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8802 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
8803 echo "configure:7798: checking for $ac_func" 1>&5
8804 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8805 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8807 cat >conftest.
$ac_ext <<EOF
8808 #line 7803 "configure"
8809 #include "confdefs.h"
8810 /* System header to define __stub macros and hopefully few prototypes,
8811 which can conflict with char $ac_func(); below. */
8813 /* Override any gcc2 internal prototype to avoid an error. */
8817 /* We use char because int might match the return type of a gcc2
8818 builtin and then its argument prototype would still apply. */
8826 /* The GNU C library defines this for functions which it implements
8827 to always fail with ENOSYS. Some functions are actually named
8828 something starting with __ and the normal name is an alias. */
8829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8839 if { (eval echo configure
:7831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8840 eval "$ac_ac_var=yes"
8842 echo "configure: failed program was:" >&5
8843 cat conftest.
$ac_ext >&5
8844 eval "$ac_ac_var=no"
8848 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
8849 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8850 cat >>confdefs.h
<<EOF
8851 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8857 if test $ac_cv_func_strerror_r = yes; then
8860 for ac_header
in string.h
8862 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
8863 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
8864 echo "configure:7853: checking for $ac_header" 1>&5
8865 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
8866 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8869 cat >conftest.
$ac_ext <<EOF
8870 #line 7858 "configure"
8871 #include "confdefs.h"
8872 #include <$ac_header>
8875 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8876 { (eval echo configure
:7863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8877 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8878 if test -z "$ac_err"; then
8879 eval "$ac_ac_Header=yes"
8882 echo "configure: failed program was:" >&5
8883 cat conftest.
$ac_ext >&5
8884 eval "$ac_ac_Header=no"
8888 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
8889 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
8890 cat >>confdefs.h
<<EOF
8891 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
8897 echo $ECHO_N "checking for working strerror_r... $ECHO_C" 1>&6
8898 echo "configure:7883: checking for working strerror_r" 1>&5
8899 if test "${jm_cv_func_working_strerror_r+set}" = set; then
8900 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8903 cat >conftest.
$ac_ext <<EOF
8904 #line 7888 "configure"
8905 #include "confdefs.h"
8909 # include <string.h>
8916 int buf; /* avoiding square brackets makes this easier */
8917 char x = *strerror_r (0, buf, sizeof buf);
8923 if { (eval echo configure
:7903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8924 jm_cv_func_working_strerror_r
=yes
8926 echo "configure: failed program was:" >&5
8927 cat conftest.
$ac_ext >&5
8928 jm_cv_func_working_strerror_r
=no
8932 if test $jm_cv_func_working_strerror_r = yes; then
8935 cat >>confdefs.h
<<EOF
8936 #define HAVE_WORKING_STRERROR_R 1
8942 echo "$ECHO_T""$jm_cv_func_working_strerror_r" 1>&6
8947 for ac_header
in string.h
8949 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
8950 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
8951 echo "configure:7925: checking for $ac_header" 1>&5
8952 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
8953 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8956 cat >conftest.
$ac_ext <<EOF
8957 #line 7930 "configure"
8958 #include "confdefs.h"
8959 #include <$ac_header>
8962 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8963 { (eval echo configure
:7935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8964 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8965 if test -z "$ac_err"; then
8966 eval "$ac_ac_Header=yes"
8969 echo "configure: failed program was:" >&5
8970 cat conftest.
$ac_ext >&5
8971 eval "$ac_ac_Header=no"
8975 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
8976 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
8977 cat >>confdefs.h
<<EOF
8978 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
8984 echo $ECHO_N "checking for working readdir... $ECHO_C" 1>&6
8985 echo "configure:7955: checking for working readdir" 1>&5
8986 if test "${jm_cv_func_working_readdir+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" 1>&6
8989 # Arrange for deletion of the temporary directory this test creates, in
8990 # case the test itself fails to delete everything -- as happens on Sunos.
8991 ac_clean_files
="$ac_clean_files conf-dir"
8993 if test "$cross_compiling" = yes; then
8994 jm_cv_func_working_readdir
=no
8996 cat >conftest.
$ac_ext <<EOF
8997 #line 7966 "configure"
8998 #include "confdefs.h"
9000 # include <sys/types.h>
9002 # include <string.h>
9005 # ifdef HAVE_DIRENT_H
9006 # include <dirent.h>
9007 # define NLENGTH(direct) (strlen((direct)->d_name))
9008 # else /* not HAVE_DIRENT_H */
9009 # define dirent direct
9010 # define NLENGTH(direct) ((direct)->d_namlen)
9011 # ifdef HAVE_SYS_NDIR_H
9012 # include <sys/ndir.h>
9013 # endif /* HAVE_SYS_NDIR_H */
9014 # ifdef HAVE_SYS_DIR_H
9015 # include <sys/dir.h>
9016 # endif /* HAVE_SYS_DIR_H */
9019 # endif /* HAVE_NDIR_H */
9020 # endif /* HAVE_DIRENT_H */
9022 # define DOT_OR_DOTDOT(Basename) \
9023 (Basename[0] == '.' && (Basename[1] == '\0' \
9024 || (Basename[1] == '.' && Basename[2] == '\0')))
9027 create_300_file_dir (const char *dir)
9031 if (mkdir (dir, 0700))
9036 for (i = 0; i < 300; i++)
9041 sprintf (file_name, "%03d", i);
9042 out = fopen (file_name, "w");
9045 if (fclose (out) == EOF)
9054 remove_dir
(const char
*dir
)
9061 dirp
= opendir
(".");
9067 struct dirent
*dp
= readdir
(dirp
);
9071 if (DOT_OR_DOTDOT
(dp-
>d_name
))
9074 if (unlink
(dp-
>d_name
))
9089 const char
*dir
= "conf-dir";
9090 create_300_file_dir
(dir
);
9095 if { (eval echo configure
:8048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
9096 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
9097 jm_cv_func_working_readdir
=yes
9099 echo "configure: failed program was:" >&5
9100 cat conftest.
$ac_ext >&5
9101 jm_cv_func_working_readdir
=no
9107 echo "$ECHO_T""$jm_cv_func_working_readdir" 1>&6
9109 if test $jm_cv_func_working_readdir = yes; then
9112 cat >>confdefs.h
<<EOF
9113 #define HAVE_WORKING_READDIR 1
9118 if test $jm_cv_func_memcmp_working = no
; then
9121 cat >>confdefs.h
<<EOF
9122 #define memcmp rpl_memcmp
9127 io_functions
='clearerr_unlocked feof_unlocked ferror_unlocked
9128 fflush_unlocked fputc_unlocked fread_unlocked fwrite_unlocked
9129 getc_unlocked getchar_unlocked putc_unlocked putchar_unlocked'
9130 for jm_io_func
in $io_functions; do
9131 # Check for the existence of each function only if its declared.
9132 # Otherwise, we'd get the Solaris5.5.1 functions that are not
9133 # declared, and that have been removed from Solaris5.6. The resulting
9134 # 5.5.1 binaries would not run on 5.6 due to shared library differences.
9135 ac_ac_Symbol
=`echo "ac_cv_have_decl_$jm_io_func" | $ac_tr_sh`
9136 echo $ECHO_N "checking whether $jm_io_func is declared... $ECHO_C" 1>&6
9137 echo "configure:8082: checking whether $jm_io_func is declared" 1>&5
9138 if eval "test \"\${$ac_ac_Symbol+set}\" = set"; then
9139 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9141 cat >conftest.
$ac_ext <<EOF
9142 #line 8087 "configure"
9143 #include "confdefs.h"
9150 char *p = (char *) $jm_io_func;
9157 if { (eval echo configure
:8100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9158 eval "$ac_ac_Symbol=yes"
9160 echo "configure: failed program was:" >&5
9161 cat conftest.
$ac_ext >&5
9162 eval "$ac_ac_Symbol=no"
9166 echo "$ECHO_T""`eval echo '${'$ac_ac_Symbol'}'`" 1>&6
9167 if test `eval echo '${'$ac_ac_Symbol'}'` = yes; then
9168 cat >>confdefs.h
<<EOF
9169 #define `echo "HAVE_DECL_$jm_io_func" | $ac_tr_cpp` 1
9174 cat >>confdefs.h
<<EOF
9175 #define `echo "HAVE_DECL_$jm_io_func" | $ac_tr_cpp` 0
9181 if test $jm_declared = yes; then
9182 for ac_func
in $jm_io_func
9184 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9185 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
9186 echo "configure:8126: checking for $ac_func" 1>&5
9187 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9188 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9190 cat >conftest.
$ac_ext <<EOF
9191 #line 8131 "configure"
9192 #include "confdefs.h"
9193 /* System header to define __stub macros and hopefully few prototypes,
9194 which can conflict with char $ac_func(); below. */
9196 /* Override any gcc2 internal prototype to avoid an error. */
9200 /* We use char because int might match the return type of a gcc2
9201 builtin and then its argument prototype would still apply. */
9209 /* The GNU C library defines this for functions which it implements
9210 to always fail with ENOSYS. Some functions are actually named
9211 something starting with __ and the normal name is an alias. */
9212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9222 if { (eval echo configure
:8159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9223 eval "$ac_ac_var=yes"
9225 echo "configure: failed program was:" >&5
9226 cat conftest.
$ac_ext >&5
9227 eval "$ac_ac_var=no"
9231 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
9232 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9233 cat >>confdefs.h
<<EOF
9234 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9245 for ac_header
in fnmatch.h
9247 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9248 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
9249 echo "configure:8182: checking for $ac_header" 1>&5
9250 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9251 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9254 cat >conftest.
$ac_ext <<EOF
9255 #line 8187 "configure"
9256 #include "confdefs.h"
9257 #include <$ac_header>
9260 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9261 { (eval echo configure
:8192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9262 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9263 if test -z "$ac_err"; then
9264 eval "$ac_ac_Header=yes"
9267 echo "configure: failed program was:" >&5
9268 cat conftest.
$ac_ext >&5
9269 eval "$ac_ac_Header=no"
9273 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
9274 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9275 cat >>confdefs.h
<<EOF
9276 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9282 echo $ECHO_N "checking for working fnmatch... $ECHO_C" 1>&6
9283 echo "configure:8212: checking for working fnmatch" 1>&5
9284 if test "${ac_cv_func_fnmatch_works+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9287 # Some versions of Solaris or SCO have a broken fnmatch function.
9288 # So we run a test program. If we are cross-compiling, take no chance.
9289 # Thanks to John Oleynick and Franc,ois Pinard for this test.
9290 if test "$cross_compiling" = yes; then
9291 ac_cv_func_fnmatch_works
=no
9293 cat >conftest.
$ac_ext <<EOF
9294 #line 8223 "configure"
9295 #include "confdefs.h"
9297 # include <fnmatch.h>
9303 exit (fnmatch ("a*", "abc", 0) != 0);
9306 if { (eval echo configure
:8234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
9307 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
9308 ac_cv_func_fnmatch_works
=yes
9310 echo "configure: failed program was:" >&5
9311 cat conftest.
$ac_ext >&5
9312 ac_cv_func_fnmatch_works
=no
9318 echo "$ECHO_T""$ac_cv_func_fnmatch_works" 1>&6
9319 if test $ac_cv_func_fnmatch_works = yes; then
9322 cat >>confdefs.h
<<\EOF
9323 #define HAVE_FNMATCH 1
9328 if test $ac_cv_func_fnmatch_works = no \
9329 && test $ac_cv_gnu_library = no
; then
9331 LIBOBJS
="$LIBOBJS fnmatch.$ac_objext"
9334 cat >>confdefs.h
<<EOF
9335 #define fnmatch rpl_fnmatch
9340 echo "checking for AFS" 1>&6
9341 echo "configure:8261: checking for AFS" 1>&5
9345 cat >>confdefs.h
<<\EOF
9351 for ac_header
in stdlib.h
9353 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9354 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
9355 echo "configure:8272: checking for $ac_header" 1>&5
9356 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9357 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9360 cat >conftest.
$ac_ext <<EOF
9361 #line 8277 "configure"
9362 #include "confdefs.h"
9363 #include <$ac_header>
9366 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9367 { (eval echo configure
:8282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9368 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9369 if test -z "$ac_err"; then
9370 eval "$ac_ac_Header=yes"
9373 echo "configure: failed program was:" >&5
9374 cat conftest.
$ac_ext >&5
9375 eval "$ac_ac_Header=no"
9379 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
9380 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9381 cat >>confdefs.h
<<EOF
9382 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9388 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" 1>&6
9389 echo "configure:8302: checking whether <inttypes.h> defines strtoumax as a macro" 1>&5
9390 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9394 cat >conftest.
$ac_ext <<EOF
9395 #line 8307 "configure"
9396 #include "confdefs.h"
9397 #include <inttypes.h>
9399 inttypes_h_defines_strtoumax
9402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9403 egrep "inttypes_h_defines_strtoumax" >/dev
/null
2>&1; then
9404 jm_cv_func_strtoumax_macro
=yes
9406 jm_cv_func_strtoumax_macro
=no
9411 echo "$ECHO_T""$jm_cv_func_strtoumax_macro" 1>&6
9413 if test "$jm_cv_func_strtoumax_macro" != yes; then
9416 for ac_func
in strtoumax
9418 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9419 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
9420 echo "configure:8329: checking for $ac_func" 1>&5
9421 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9422 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9424 cat >conftest.
$ac_ext <<EOF
9425 #line 8334 "configure"
9426 #include "confdefs.h"
9427 /* System header to define __stub macros and hopefully few prototypes,
9428 which can conflict with char $ac_func(); below. */
9430 /* Override any gcc2 internal prototype to avoid an error. */
9434 /* We use char because int might match the return type of a gcc2
9435 builtin and then its argument prototype would still apply. */
9443 /* The GNU C library defines this for functions which it implements
9444 to always fail with ENOSYS. Some functions are actually named
9445 something starting with __ and the normal name is an alias. */
9446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9456 if { (eval echo configure
:8362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9457 eval "$ac_ac_var=yes"
9459 echo "configure: failed program was:" >&5
9460 cat conftest.
$ac_ext >&5
9461 eval "$ac_ac_var=no"
9465 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
9466 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9467 cat >>confdefs.h
<<EOF
9468 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9472 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
9478 case "$ac_cv_type_unsigned_long_long,$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in
9482 for ac_func
in strtoull
9484 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9485 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
9486 echo "configure:8388: checking for $ac_func" 1>&5
9487 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9488 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9490 cat >conftest.
$ac_ext <<EOF
9491 #line 8393 "configure"
9492 #include "confdefs.h"
9493 /* System header to define __stub macros and hopefully few prototypes,
9494 which can conflict with char $ac_func(); below. */
9496 /* Override any gcc2 internal prototype to avoid an error. */
9500 /* We use char because int might match the return type of a gcc2
9501 builtin and then its argument prototype would still apply. */
9509 /* The GNU C library defines this for functions which it implements
9510 to always fail with ENOSYS. Some functions are actually named
9511 something starting with __ and the normal name is an alias. */
9512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9522 if { (eval echo configure
:8421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9523 eval "$ac_ac_var=yes"
9525 echo "configure: failed program was:" >&5
9526 cat conftest.
$ac_ext >&5
9527 eval "$ac_ac_var=no"
9531 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
9532 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9533 cat >>confdefs.h
<<EOF
9534 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9538 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
9545 echo $ECHO_N "checking whether link(2) follows symlinks... $ECHO_C" 1>&6
9546 echo "configure:8442: checking whether link(2) follows symlinks" 1>&5
9547 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
9548 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9551 test -z "$ac_cv_header_unistd_h" \
9554 for ac_header
in unistd.h
9556 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9557 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
9558 echo "configure:8452: checking for $ac_header" 1>&5
9559 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9560 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9563 cat >conftest.
$ac_ext <<EOF
9564 #line 8457 "configure"
9565 #include "confdefs.h"
9566 #include <$ac_header>
9569 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9570 { (eval echo configure
:8462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9571 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9572 if test -z "$ac_err"; then
9573 eval "$ac_ac_Header=yes"
9576 echo "configure: failed program was:" >&5
9577 cat conftest.
$ac_ext >&5
9578 eval "$ac_ac_Header=no"
9582 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
9583 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9584 cat >>confdefs.h
<<EOF
9585 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9591 # Create a regular file.
9592 echo > conftest.
file
9593 if test "$cross_compiling" = yes; then
9594 jm_ac_cv_func_link_follows_symlink
=yes
9596 cat >conftest.
$ac_ext <<EOF
9597 #line 8487 "configure"
9598 #include "confdefs.h"
9600 # include <sys/types.h>
9601 # include <sys/stat.h>
9602 # ifdef HAVE_UNISTD_H
9603 # include <unistd.h>
9606 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
9607 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
9608 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
9613 const char *file = "conftest.file";
9614 const char *sym = "conftest.sym";
9615 const char *hard = "conftest.hard";
9616 struct stat sb_file, sb_hard;
9618 /* Create a symlink to the regular file. */
9619 if (symlink (file, sym))
9622 /* Create a hard link to that symlink. */
9623 if (link (sym, hard))
9626 if (lstat (hard, &sb_hard))
9628 if (lstat (file, &sb_file))
9631 /* If the dev/inode of hard and file are the same, then
9632 the link call followed the symlink. */
9633 return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
9637 if { (eval echo configure
:8519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
9638 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
9639 jm_ac_cv_func_link_follows_symlink
=yes
9641 echo "configure: failed program was:" >&5
9642 cat conftest.
$ac_ext >&5
9643 jm_ac_cv_func_link_follows_symlink
=no
9649 echo "$ECHO_T""$jm_ac_cv_func_link_follows_symlink" 1>&6
9650 if test $jm_ac_cv_func_link_follows_symlink = yes; then
9653 cat >>confdefs.h
<<\EOF
9654 #define LINK_FOLLOWS_SYMLINKS 1
9659 echo $ECHO_N "checking for error_at_line... $ECHO_C" 1>&6
9660 echo "configure:8538: checking for error_at_line" 1>&5
9661 if test "${am_cv_lib_error_at_line+set}" = set; then
9662 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9664 cat >conftest.
$ac_ext <<EOF
9665 #line 8543 "configure"
9666 #include "confdefs.h"
9671 error_at_line(0, 0, "", 0, "");
9676 if { (eval echo configure
:8553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9677 am_cv_lib_error_at_line
=yes
9679 echo "configure: failed program was:" >&5
9680 cat conftest.
$ac_ext >&5
9681 am_cv_lib_error_at_line
=no
9685 echo "$ECHO_T""$am_cv_lib_error_at_line" 1>&6
9686 if test $am_cv_lib_error_at_line = no
; then
9687 LIBOBJS
="$LIBOBJS error.$ac_objext"
9692 for ac_func
in localtime_r
9694 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9695 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
9696 echo "configure:8571: checking for $ac_func" 1>&5
9697 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9698 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9700 cat >conftest.
$ac_ext <<EOF
9701 #line 8576 "configure"
9702 #include "confdefs.h"
9703 /* System header to define __stub macros and hopefully few prototypes,
9704 which can conflict with char $ac_func(); below. */
9706 /* Override any gcc2 internal prototype to avoid an error. */
9710 /* We use char because int might match the return type of a gcc2
9711 builtin and then its argument prototype would still apply. */
9719 /* The GNU C library defines this for functions which it implements
9720 to always fail with ENOSYS. Some functions are actually named
9721 something starting with __ and the normal name is an alias. */
9722 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9732 if { (eval echo configure
:8604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9733 eval "$ac_ac_var=yes"
9735 echo "configure: failed program was:" >&5
9736 cat conftest.
$ac_ext >&5
9737 eval "$ac_ac_var=no"
9741 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
9742 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9743 cat >>confdefs.h
<<EOF
9744 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9752 for ac_header
in limits.h
9754 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9755 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
9756 echo "configure:8625: checking for $ac_header" 1>&5
9757 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9758 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9761 cat >conftest.
$ac_ext <<EOF
9762 #line 8630 "configure"
9763 #include "confdefs.h"
9764 #include <$ac_header>
9767 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9768 { (eval echo configure
:8635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9769 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9770 if test -z "$ac_err"; then
9771 eval "$ac_ac_Header=yes"
9774 echo "configure: failed program was:" >&5
9775 cat conftest.
$ac_ext >&5
9776 eval "$ac_ac_Header=no"
9780 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
9781 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9782 cat >>confdefs.h
<<EOF
9783 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9799 for ac_func
in bcopy tzset mempcpy memcpy memset
9801 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9802 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
9803 echo "configure:8663: checking for $ac_func" 1>&5
9804 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9805 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9807 cat >conftest.
$ac_ext <<EOF
9808 #line 8668 "configure"
9809 #include "confdefs.h"
9810 /* System header to define __stub macros and hopefully few prototypes,
9811 which can conflict with char $ac_func(); below. */
9813 /* Override any gcc2 internal prototype to avoid an error. */
9817 /* We use char because int might match the return type of a gcc2
9818 builtin and then its argument prototype would still apply. */
9826 /* The GNU C library defines this for functions which it implements
9827 to always fail with ENOSYS. Some functions are actually named
9828 something starting with __ and the normal name is an alias. */
9829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9839 if { (eval echo configure
:8696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9840 eval "$ac_ac_var=yes"
9842 echo "configure: failed program was:" >&5
9843 cat conftest.
$ac_ext >&5
9844 eval "$ac_ac_var=no"
9848 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
9849 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9850 cat >>confdefs.h
<<EOF
9851 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9857 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
9859 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" 1>&6
9860 echo "configure:8714: checking for struct tm.tm_zone" 1>&5
9861 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9864 cat >conftest.
$ac_ext <<EOF
9865 #line 8719 "configure"
9866 #include "confdefs.h"
9867 #include <sys/types.h>
9868 #include <$ac_cv_struct_tm>
9879 if { (eval echo configure
:8732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9880 ac_cv_member_struct_tm_tm_zone
=yes
9882 echo "configure: failed program was:" >&5
9883 cat conftest.
$ac_ext >&5
9884 ac_cv_member_struct_tm_tm_zone
=no
9888 echo "$ECHO_T""$ac_cv_member_struct_tm_tm_zone" 1>&6
9889 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9892 cat >>confdefs.h
<<EOF
9893 #define HAVE_STRUCT_TM_TM_ZONE 1
9898 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9901 cat >>confdefs.h
<<\EOF
9902 #define HAVE_TM_ZONE 1
9906 echo $ECHO_N "checking for tzname... $ECHO_C" 1>&6
9907 echo "configure:8755: checking for tzname" 1>&5
9908 if test "${ac_cv_var_tzname+set}" = set; then
9909 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9911 cat >conftest.
$ac_ext <<EOF
9912 #line 8760 "configure"
9913 #include "confdefs.h"
9915 #ifndef tzname /* For SGI. */
9916 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9927 if { (eval echo configure
:8774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9928 ac_cv_var_tzname
=yes
9930 echo "configure: failed program was:" >&5
9931 cat conftest.
$ac_ext >&5
9936 echo "$ECHO_T""$ac_cv_var_tzname" 1>&6
9937 if test $ac_cv_var_tzname = yes; then
9940 cat >>confdefs.h
<<\EOF
9941 #define HAVE_TZNAME 1
9951 for ac_func
in mblen mbrlen
9953 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9954 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
9955 echo "configure:8797: checking for $ac_func" 1>&5
9956 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9957 echo $ECHO_N "(cached) $ECHO_C" 1>&6
9959 cat >conftest.
$ac_ext <<EOF
9960 #line 8802 "configure"
9961 #include "confdefs.h"
9962 /* System header to define __stub macros and hopefully few prototypes,
9963 which can conflict with char $ac_func(); below. */
9965 /* Override any gcc2 internal prototype to avoid an error. */
9969 /* We use char because int might match the return type of a gcc2
9970 builtin and then its argument prototype would still apply. */
9978 /* The GNU C library defines this for functions which it implements
9979 to always fail with ENOSYS. Some functions are actually named
9980 something starting with __ and the normal name is an alias. */
9981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9991 if { (eval echo configure
:8830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9992 eval "$ac_ac_var=yes"
9994 echo "configure: failed program was:" >&5
9995 cat conftest.
$ac_ext >&5
9996 eval "$ac_ac_var=no"
10000 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10001 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10002 cat >>confdefs.h
<<EOF
10003 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10009 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" 1>&6
10010 echo "configure:8847: checking for struct tm.tm_gmtoff" 1>&5
10011 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10014 cat >conftest.
$ac_ext <<EOF
10015 #line 8852 "configure"
10016 #include "confdefs.h"
10028 if { (eval echo configure
:8864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10029 ac_cv_member_struct_tm_tm_gmtoff
=yes
10031 echo "configure: failed program was:" >&5
10032 cat conftest.
$ac_ext >&5
10033 ac_cv_member_struct_tm_tm_gmtoff
=no
10037 echo "$ECHO_T""$ac_cv_member_struct_tm_tm_gmtoff" 1>&6
10038 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
10041 cat >>confdefs.h
<<\EOF
10042 #define HAVE_TM_GMTOFF 1
10049 for ac_header
in sys
/time.h
10051 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
10052 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
10053 echo "configure:8885: checking for $ac_header" 1>&5
10054 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
10055 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10058 cat >conftest.
$ac_ext <<EOF
10059 #line 8890 "configure"
10060 #include "confdefs.h"
10061 #include <$ac_header>
10064 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10065 { (eval echo configure
:8895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10066 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10067 if test -z "$ac_err"; then
10068 eval "$ac_ac_Header=yes"
10071 echo "configure: failed program was:" >&5
10072 cat conftest.
$ac_ext >&5
10073 eval "$ac_ac_Header=no"
10077 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
10078 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
10079 cat >>confdefs.h
<<EOF
10080 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10086 echo $ECHO_N "checking for working GNU strftime... $ECHO_C" 1>&6
10087 echo "configure:8915: checking for working GNU strftime" 1>&5
10088 if test "${jm_cv_func_working_gnu_strftime+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10091 # Set TZ to GMT0 to make strftime give consistent results during the test.
10092 ac_save_TZ
="${TZ-GMT0}"
10095 if test "$cross_compiling" = yes; then
10096 jm_cv_func_working_gnu_strftime
=no
10098 cat >conftest.
$ac_ext <<EOF
10099 #line 8927 "configure"
10100 #include "confdefs.h"
10101 /* Ulrich Drepper provided parts of the test program. */
10103 # include <stdlib.h>
10106 #if TIME_WITH_SYS_TIME
10107 # include <sys/time.h>
10110 # if HAVE_SYS_TIME_H
10111 # include <sys/time.h>
10118 compare (const char *fmt, const struct tm *tm, const char *expected)
10121 strftime (buf, 99, fmt, tm);
10122 if (strcmp (buf, expected))
10124 #ifdef SHOW_FAILURES
10125 printf ("fmt: \"%s\", expected \"%s\", got \"%s\"\n",
10126 fmt, expected, buf);
10138 time_t t = 738367; /* Fri Jan 9 13:06:07 1970 */
10142 #define CMP(Fmt, Expected) n_fail += compare ((Fmt), tm, (Expected))
10144 CMP ("%-m", "1"); /* GNU */
10145 CMP ("%A", "Friday");
10146 CMP ("%^A", "FRIDAY"); /* The ^ is a GNU extension. */
10147 CMP ("%B", "January");
10148 CMP ("%^B", "JANUARY");
10149 CMP ("%C", "19"); /* POSIX.2 */
10150 CMP ("%D", "01/09/70"); /* POSIX.2 */
10151 CMP ("%F", "1970-01-09");
10152 CMP ("%G", "1970"); /* GNU */
10157 CMP ("%R", "13:06"); /* POSIX.2 */
10159 CMP ("%T", "13:06:07"); /* POSIX.2 */
10163 CMP ("%X", "13:06:07");
10164 CMP ("%Y", "1970");
10166 CMP ("%_m", " 1"); /* GNU */
10168 CMP ("%^a", "FRI");
10170 CMP ("%^b", "JAN");
10171 CMP ("%c", "Fri Jan 9 13:06:07 1970");
10172 CMP ("%^c", "FRI JAN 9 13:06:07 1970");
10174 CMP ("%e", " 9"); /* POSIX.2 */
10175 CMP ("%g", "70"); /* GNU */
10176 CMP ("%h", "Jan"); /* POSIX.2 */
10177 CMP ("%^h", "JAN");
10179 CMP ("%k", "13"); /* GNU */
10180 CMP ("%l", " 1"); /* GNU */
10182 CMP ("%n", "\n"); /* POSIX.2 */
10184 CMP ("%r", "01:06:07 PM"); /* POSIX.2 */
10185 CMP ("%s", "738367"); /* GNU */
10186 CMP ("%t", "\t"); /* POSIX.2 */
10187 CMP ("%u", "5"); /* POSIX.2 */
10189 CMP ("%x", "01/09/70");
10191 CMP ("%z", "+0000"); /* GNU */
10193 exit (n_fail ? 1 : 0);
10196 if { (eval echo configure
:9018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
10197 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
10198 jm_cv_func_working_gnu_strftime
=yes
10200 echo "configure: failed program was:" >&5
10201 cat conftest.
$ac_ext >&5
10202 jm_cv_func_working_gnu_strftime
=no
10210 echo "$ECHO_T""$jm_cv_func_working_gnu_strftime" 1>&6
10211 if test $jm_cv_func_working_gnu_strftime = no
; then
10213 LIBOBJS
="$LIBOBJS strftime.$ac_objext"
10216 cat >>confdefs.h
<<EOF
10217 #define strftime gnu_strftime
10222 echo $ECHO_N "checking for vprintf... $ECHO_C" 1>&6
10223 echo "configure:9039: checking for vprintf" 1>&5
10224 if test "${ac_cv_func_vprintf+set}" = set; then
10225 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10227 cat >conftest.
$ac_ext <<EOF
10228 #line 9044 "configure"
10229 #include "confdefs.h"
10230 /* System header to define __stub macros and hopefully few prototypes,
10231 which can conflict with char vprintf(); below. */
10232 #include <assert.h>
10233 /* Override any gcc2 internal prototype to avoid an error. */
10237 /* We use char because int might match the return type of a gcc2
10238 builtin and then its argument prototype would still apply. */
10246 /* The GNU C library defines this for functions which it implements
10247 to always fail with ENOSYS. Some functions are actually named
10248 something starting with __ and the normal name is an alias. */
10249 #if defined (__stub_vprintf) || defined (__stub___vprintf)
10259 if { (eval echo configure
:9072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10260 ac_cv_func_vprintf
=yes
10262 echo "configure: failed program was:" >&5
10263 cat conftest.
$ac_ext >&5
10264 ac_cv_func_vprintf
=no
10268 echo "$ECHO_T""$ac_cv_func_vprintf" 1>&6
10269 if test $ac_cv_func_vprintf = yes; then
10272 cat >>confdefs.h
<<\EOF
10273 #define HAVE_VPRINTF 1
10278 if test "$ac_cv_func_vprintf" != yes; then
10279 echo $ECHO_N "checking for _doprnt... $ECHO_C" 1>&6
10280 echo "configure:9090: checking for _doprnt" 1>&5
10281 if test "${ac_cv_func__doprnt+set}" = set; then
10282 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10284 cat >conftest.
$ac_ext <<EOF
10285 #line 9095 "configure"
10286 #include "confdefs.h"
10287 /* System header to define __stub macros and hopefully few prototypes,
10288 which can conflict with char _doprnt(); below. */
10289 #include <assert.h>
10290 /* Override any gcc2 internal prototype to avoid an error. */
10294 /* We use char because int might match the return type of a gcc2
10295 builtin and then its argument prototype would still apply. */
10303 /* The GNU C library defines this for functions which it implements
10304 to always fail with ENOSYS. Some functions are actually named
10305 something starting with __ and the normal name is an alias. */
10306 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10316 if { (eval echo configure
:9123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10317 ac_cv_func__doprnt
=yes
10319 echo "configure: failed program was:" >&5
10320 cat conftest.
$ac_ext >&5
10321 ac_cv_func__doprnt
=no
10325 echo "$ECHO_T""$ac_cv_func__doprnt" 1>&6
10326 if test $ac_cv_func__doprnt = yes; then
10329 cat >>confdefs.h
<<\EOF
10330 #define HAVE_DOPRNT 1
10337 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" 1>&6
10338 echo "configure:9141: checking whether closedir returns void" 1>&5
10339 if test "${ac_cv_func_closedir_void+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10342 if test "$cross_compiling" = yes; then
10343 ac_cv_func_closedir_void
=yes
10345 cat >conftest.
$ac_ext <<EOF
10346 #line 9149 "configure"
10347 #include "confdefs.h"
10348 #include <sys/types.h>
10349 #include <$ac_header_dirent>
10355 exit (closedir (opendir (".")) != 0);
10358 if { (eval echo configure
:9160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
10359 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
10360 ac_cv_func_closedir_void
=no
10362 echo "configure: failed program was:" >&5
10363 cat conftest.
$ac_ext >&5
10364 ac_cv_func_closedir_void
=yes
10370 echo "$ECHO_T""$ac_cv_func_closedir_void" 1>&6
10371 if test $ac_cv_func_closedir_void = yes; then
10374 cat >>confdefs.h
<<\EOF
10375 #define CLOSEDIR_VOID 1
10380 GNU_PACKAGE
="GNU $PACKAGE"
10383 cat >>confdefs.h
<<EOF
10384 #define GNU_PACKAGE "$GNU_PACKAGE"
10492 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
10493 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
10494 echo "configure:9255: checking for $ac_header" 1>&5
10495 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
10496 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10499 cat >conftest.
$ac_ext <<EOF
10500 #line 9260 "configure"
10501 #include "confdefs.h"
10502 #include <$ac_header>
10505 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10506 { (eval echo configure
:9265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10507 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10508 if test -z "$ac_err"; then
10509 eval "$ac_ac_Header=yes"
10512 echo "configure: failed program was:" >&5
10513 cat conftest.
$ac_ext >&5
10514 eval "$ac_ac_Header=no"
10518 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
10519 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
10520 cat >>confdefs.h
<<EOF
10521 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10527 # Assume we'll default to using the included regex.c.
10528 ac_use_included_regex
=yes
10530 # However, if the system regex support is good enough that it passes the
10531 # the following run test, then default to *not* using the included regex.c.
10532 # If cross compiling, assume the test would fail and use the included
10533 # regex.c. The first failing regular expression is from `Spencer ere
10534 # test #75' in grep-2.3.
10535 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" 1>&6
10536 echo "configure:9292: checking for working re_compile_pattern" 1>&5
10537 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10540 if test "$cross_compiling" = yes; then
10541 jm_cv_func_working_re_compile_pattern
=no
10543 cat >conftest.
$ac_ext <<EOF
10544 #line 9300 "configure"
10545 #include "confdefs.h"
10551 static struct re_pattern_buffer regex;
10553 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
10554 /* Add this third left square bracket, , to balance the
10555 three right ones below. Otherwise autoconf-2.14 chokes. */
10556 s = re_compile_pattern ("a[[:]:]b\n", 9, ®ex);
10557 /* This should fail with _Invalid character class name_ error. */
10561 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
10562 s = re_compile_pattern ("{1", 2, ®ex);
10568 if { (eval echo configure
:9322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
10569 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
10570 jm_cv_func_working_re_compile_pattern
=yes
10572 echo "configure: failed program was:" >&5
10573 cat conftest.
$ac_ext >&5
10574 jm_cv_func_working_re_compile_pattern
=no
10580 echo "$ECHO_T""$jm_cv_func_working_re_compile_pattern" 1>&6
10581 if test $jm_cv_func_working_re_compile_pattern = yes; then
10582 ac_use_included_regex
=no
10585 test -n "lib/regex.c" ||
{ echo "configure: error: missing argument" 1>&2; exit 1; }
10587 # Check whether --with-included-regex or --without-included-regex was given.
10588 if test "${with_included_regex+set}" = set; then
10589 withval
="$with_included_regex"
10590 jm_with_regex
=$withval
10592 jm_with_regex
=$ac_use_included_regex
10594 if test "$jm_with_regex" = yes; then
10596 LIBOBJS
="$LIBOBJS regex.$ac_objext"
10601 for ac_func
in strncasecmp
10603 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10604 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10605 echo "configure:9354: checking for $ac_func" 1>&5
10606 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10607 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10609 cat >conftest.
$ac_ext <<EOF
10610 #line 9359 "configure"
10611 #include "confdefs.h"
10612 /* System header to define __stub macros and hopefully few prototypes,
10613 which can conflict with char $ac_func(); below. */
10614 #include <assert.h>
10615 /* Override any gcc2 internal prototype to avoid an error. */
10619 /* We use char because int might match the return type of a gcc2
10620 builtin and then its argument prototype would still apply. */
10628 /* The GNU C library defines this for functions which it implements
10629 to always fail with ENOSYS. Some functions are actually named
10630 something starting with __ and the normal name is an alias. */
10631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10641 if { (eval echo configure
:9387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10642 eval "$ac_ac_var=yes"
10644 echo "configure: failed program was:" >&5
10645 cat conftest.
$ac_ext >&5
10646 eval "$ac_ac_var=no"
10650 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10651 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10652 cat >>confdefs.h
<<EOF
10653 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10657 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
10669 for ac_func
in stpcpy strstr strtol strtoul
10671 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10672 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10673 echo "configure:9413: checking for $ac_func" 1>&5
10674 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10675 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10677 cat >conftest.
$ac_ext <<EOF
10678 #line 9418 "configure"
10679 #include "confdefs.h"
10680 /* System header to define __stub macros and hopefully few prototypes,
10681 which can conflict with char $ac_func(); below. */
10682 #include <assert.h>
10683 /* Override any gcc2 internal prototype to avoid an error. */
10687 /* We use char because int might match the return type of a gcc2
10688 builtin and then its argument prototype would still apply. */
10696 /* The GNU C library defines this for functions which it implements
10697 to always fail with ENOSYS. Some functions are actually named
10698 something starting with __ and the normal name is an alias. */
10699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10709 if { (eval echo configure
:9446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10710 eval "$ac_ac_var=yes"
10712 echo "configure: failed program was:" >&5
10713 cat conftest.
$ac_ext >&5
10714 eval "$ac_ac_var=no"
10718 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10719 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10720 cat >>confdefs.h
<<EOF
10721 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10725 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
10731 for ac_func
in memcmp
10733 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10734 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10735 echo "configure:9469: checking for $ac_func" 1>&5
10736 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10737 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10739 cat >conftest.
$ac_ext <<EOF
10740 #line 9474 "configure"
10741 #include "confdefs.h"
10742 /* System header to define __stub macros and hopefully few prototypes,
10743 which can conflict with char $ac_func(); below. */
10744 #include <assert.h>
10745 /* Override any gcc2 internal prototype to avoid an error. */
10749 /* We use char because int might match the return type of a gcc2
10750 builtin and then its argument prototype would still apply. */
10758 /* The GNU C library defines this for functions which it implements
10759 to always fail with ENOSYS. Some functions are actually named
10760 something starting with __ and the normal name is an alias. */
10761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10771 if { (eval echo configure
:9502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10772 eval "$ac_ac_var=yes"
10774 echo "configure: failed program was:" >&5
10775 cat conftest.
$ac_ext >&5
10776 eval "$ac_ac_var=no"
10780 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10781 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10782 cat >>confdefs.h
<<EOF
10783 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10787 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
10793 for ac_func
in strdup
10795 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10796 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10797 echo "configure:9525: checking for $ac_func" 1>&5
10798 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10799 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10801 cat >conftest.
$ac_ext <<EOF
10802 #line 9530 "configure"
10803 #include "confdefs.h"
10804 /* System header to define __stub macros and hopefully few prototypes,
10805 which can conflict with char $ac_func(); below. */
10806 #include <assert.h>
10807 /* Override any gcc2 internal prototype to avoid an error. */
10811 /* We use char because int might match the return type of a gcc2
10812 builtin and then its argument prototype would still apply. */
10820 /* The GNU C library defines this for functions which it implements
10821 to always fail with ENOSYS. Some functions are actually named
10822 something starting with __ and the normal name is an alias. */
10823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10833 if { (eval echo configure
:9558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10834 eval "$ac_ac_var=yes"
10836 echo "configure: failed program was:" >&5
10837 cat conftest.
$ac_ext >&5
10838 eval "$ac_ac_var=no"
10842 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10843 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10844 cat >>confdefs.h
<<EOF
10845 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10849 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
10857 for ac_func
in memcpy memset
10859 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10860 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10861 echo "configure:9582: checking for $ac_func" 1>&5
10862 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10863 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10865 cat >conftest.
$ac_ext <<EOF
10866 #line 9587 "configure"
10867 #include "confdefs.h"
10868 /* System header to define __stub macros and hopefully few prototypes,
10869 which can conflict with char $ac_func(); below. */
10870 #include <assert.h>
10871 /* Override any gcc2 internal prototype to avoid an error. */
10875 /* We use char because int might match the return type of a gcc2
10876 builtin and then its argument prototype would still apply. */
10884 /* The GNU C library defines this for functions which it implements
10885 to always fail with ENOSYS. Some functions are actually named
10886 something starting with __ and the normal name is an alias. */
10887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10897 if { (eval echo configure
:9615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10898 eval "$ac_ac_var=yes"
10900 echo "configure: failed program was:" >&5
10901 cat conftest.
$ac_ext >&5
10902 eval "$ac_ac_var=no"
10906 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10907 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10908 cat >>confdefs.h
<<EOF
10909 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10913 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
10919 for ac_func
in getpagesize
10921 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10922 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
10923 echo "configure:9638: checking for $ac_func" 1>&5
10924 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10925 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10927 cat >conftest.
$ac_ext <<EOF
10928 #line 9643 "configure"
10929 #include "confdefs.h"
10930 /* System header to define __stub macros and hopefully few prototypes,
10931 which can conflict with char $ac_func(); below. */
10932 #include <assert.h>
10933 /* Override any gcc2 internal prototype to avoid an error. */
10937 /* We use char because int might match the return type of a gcc2
10938 builtin and then its argument prototype would still apply. */
10946 /* The GNU C library defines this for functions which it implements
10947 to always fail with ENOSYS. Some functions are actually named
10948 something starting with __ and the normal name is an alias. */
10949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10959 if { (eval echo configure
:9671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10960 eval "$ac_ac_var=yes"
10962 echo "configure: failed program was:" >&5
10963 cat conftest.
$ac_ext >&5
10964 eval "$ac_ac_var=no"
10968 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
10969 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10970 cat >>confdefs.h
<<EOF
10971 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10977 # By default, argmatch should fail calling usage (1).
10980 cat >>confdefs.h
<<\EOF
10981 #define ARGMATCH_DIE usage (1)
10986 cat >>confdefs.h
<<\EOF
10987 #define ARGMATCH_DIE_DECL extern void usage ()
10990 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" 1>&6
10991 echo "configure:9697: checking whether setvbuf arguments are reversed" 1>&5
10992 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
10993 echo $ECHO_N "(cached) $ECHO_C" 1>&6
10995 if test "$cross_compiling" = yes; then
10996 { echo "configure: error: cannot run test program while cross compiling" 1>&2; exit 1; }
10998 cat >conftest.
$ac_ext <<EOF
10999 #line 9705 "configure"
11000 #include "confdefs.h"
11002 /* If setvbuf has the reversed format, exit 0. */
11006 /* This call has the arguments reversed.
11007 A reversed system may check and see that the address of main
11008 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
11009 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
11011 putc('\r', stdout);
11012 exit(0); /* Non-reversed systems segv here. */
11015 if { (eval echo configure
:9721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
11016 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
11017 ac_cv_func_setvbuf_reversed
=yes
11019 echo "configure: failed program was:" >&5
11020 cat conftest.
$ac_ext >&5
11021 ac_cv_func_setvbuf_reversed
=no
11026 rm -f core core.
* *.core
11028 echo "$ECHO_T""$ac_cv_func_setvbuf_reversed" 1>&6
11029 if test $ac_cv_func_setvbuf_reversed = yes; then
11032 cat >>confdefs.h
<<\EOF
11033 #define SETVBUF_REVERSED 1
11038 # used by sleep and shred
11039 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
11040 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
11041 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" 1>&6
11042 echo "configure:9744: checking for library containing clock_gettime" 1>&5
11043 if test "${ac_cv_search_clock_gettime+set}" = set; then
11044 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11046 ac_func_search_save_LIBS
="$LIBS"
11047 ac_cv_search_clock_gettime
="no"
11048 cat >conftest.
$ac_ext <<EOF
11049 #line 9751 "configure"
11050 #include "confdefs.h"
11052 /* Override any gcc2 internal prototype to avoid an error. */
11056 /* We use char because int might match the return type of a gcc2
11057 builtin and then its argument prototype would still apply. */
11058 char clock_gettime ();
11067 if { (eval echo configure
:9768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11068 ac_cv_search_clock_gettime
="none required"
11070 echo "configure: failed program was:" >&5
11071 cat conftest.
$ac_ext >&5
11074 test "$ac_cv_search_clock_gettime" = "no" && for ac_lib
in rt posix4
; do
11075 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11076 cat >conftest.
$ac_ext <<EOF
11077 #line 9778 "configure"
11078 #include "confdefs.h"
11080 /* Override any gcc2 internal prototype to avoid an error. */
11084 /* We use char because int might match the return type of a gcc2
11085 builtin and then its argument prototype would still apply. */
11086 char clock_gettime ();
11095 if { (eval echo configure
:9795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11096 ac_cv_search_clock_gettime
="-l$ac_lib"
11099 echo "configure: failed program was:" >&5
11100 cat conftest.
$ac_ext >&5
11104 LIBS
="$ac_func_search_save_LIBS"
11106 echo "$ECHO_T""$ac_cv_search_clock_gettime" 1>&6
11107 if test "$ac_cv_search_clock_gettime" != "no"; then
11108 test "$ac_cv_search_clock_gettime" = "none required" || LIBS
="$ac_cv_search_clock_gettime $LIBS"
11114 for ac_func
in clock_gettime
11116 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11117 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11118 echo "configure:9815: checking for $ac_func" 1>&5
11119 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11120 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11122 cat >conftest.
$ac_ext <<EOF
11123 #line 9820 "configure"
11124 #include "confdefs.h"
11125 /* System header to define __stub macros and hopefully few prototypes,
11126 which can conflict with char $ac_func(); below. */
11127 #include <assert.h>
11128 /* Override any gcc2 internal prototype to avoid an error. */
11132 /* We use char because int might match the return type of a gcc2
11133 builtin and then its argument prototype would still apply. */
11141 /* The GNU C library defines this for functions which it implements
11142 to always fail with ENOSYS. Some functions are actually named
11143 something starting with __ and the normal name is an alias. */
11144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11154 if { (eval echo configure
:9848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11155 eval "$ac_ac_var=yes"
11157 echo "configure: failed program was:" >&5
11158 cat conftest.
$ac_ext >&5
11159 eval "$ac_ac_var=no"
11163 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11164 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11165 cat >>confdefs.h
<<EOF
11166 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11174 for ac_func
in gettimeofday
11176 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11177 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11178 echo "configure:9869: checking for $ac_func" 1>&5
11179 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11180 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11182 cat >conftest.
$ac_ext <<EOF
11183 #line 9874 "configure"
11184 #include "confdefs.h"
11185 /* System header to define __stub macros and hopefully few prototypes,
11186 which can conflict with char $ac_func(); below. */
11187 #include <assert.h>
11188 /* Override any gcc2 internal prototype to avoid an error. */
11192 /* We use char because int might match the return type of a gcc2
11193 builtin and then its argument prototype would still apply. */
11201 /* The GNU C library defines this for functions which it implements
11202 to always fail with ENOSYS. Some functions are actually named
11203 something starting with __ and the normal name is an alias. */
11204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11214 if { (eval echo configure
:9902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11215 eval "$ac_ac_var=yes"
11217 echo "configure: failed program was:" >&5
11218 cat conftest.
$ac_ext >&5
11219 eval "$ac_ac_var=no"
11223 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11224 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11225 cat >>confdefs.h
<<EOF
11226 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11234 for ac_func
in getdelim
11236 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11237 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11238 echo "configure:9923: checking for $ac_func" 1>&5
11239 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11240 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11242 cat >conftest.
$ac_ext <<EOF
11243 #line 9928 "configure"
11244 #include "confdefs.h"
11245 /* System header to define __stub macros and hopefully few prototypes,
11246 which can conflict with char $ac_func(); below. */
11247 #include <assert.h>
11248 /* Override any gcc2 internal prototype to avoid an error. */
11252 /* We use char because int might match the return type of a gcc2
11253 builtin and then its argument prototype would still apply. */
11261 /* The GNU C library defines this for functions which it implements
11262 to always fail with ENOSYS. Some functions are actually named
11263 something starting with __ and the normal name is an alias. */
11264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11274 if { (eval echo configure
:9956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11275 eval "$ac_ac_var=yes"
11277 echo "configure: failed program was:" >&5
11278 cat conftest.
$ac_ext >&5
11279 eval "$ac_ac_var=no"
11283 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11284 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11285 cat >>confdefs.h
<<EOF
11286 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11376 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11377 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11378 echo "configure:10030: checking for $ac_func" 1>&5
11379 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11380 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11382 cat >conftest.
$ac_ext <<EOF
11383 #line 10035 "configure"
11384 #include "confdefs.h"
11385 /* System header to define __stub macros and hopefully few prototypes,
11386 which can conflict with char $ac_func(); below. */
11387 #include <assert.h>
11388 /* Override any gcc2 internal prototype to avoid an error. */
11392 /* We use char because int might match the return type of a gcc2
11393 builtin and then its argument prototype would still apply. */
11401 /* The GNU C library defines this for functions which it implements
11402 to always fail with ENOSYS. Some functions are actually named
11403 something starting with __ and the normal name is an alias. */
11404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11414 if { (eval echo configure
:10063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11415 eval "$ac_ac_var=yes"
11417 echo "configure: failed program was:" >&5
11418 cat conftest.
$ac_ext >&5
11419 eval "$ac_ac_var=no"
11423 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11424 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11425 cat >>confdefs.h
<<EOF
11426 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11432 am_getline_needs_run_time_check
=no
11433 echo $ECHO_N "checking for getline... $ECHO_C" 1>&6
11434 echo "configure:10081: checking for getline" 1>&5
11435 if test "${ac_cv_func_getline+set}" = set; then
11436 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11438 cat >conftest.
$ac_ext <<EOF
11439 #line 10086 "configure"
11440 #include "confdefs.h"
11441 /* System header to define __stub macros and hopefully few prototypes,
11442 which can conflict with char getline(); below. */
11443 #include <assert.h>
11444 /* Override any gcc2 internal prototype to avoid an error. */
11448 /* We use char because int might match the return type of a gcc2
11449 builtin and then its argument prototype would still apply. */
11457 /* The GNU C library defines this for functions which it implements
11458 to always fail with ENOSYS. Some functions are actually named
11459 something starting with __ and the normal name is an alias. */
11460 #if defined (__stub_getline) || defined (__stub___getline)
11470 if { (eval echo configure
:10114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11471 ac_cv_func_getline
=yes
11473 echo "configure: failed program was:" >&5
11474 cat conftest.
$ac_ext >&5
11475 ac_cv_func_getline
=no
11479 echo "$ECHO_T""$ac_cv_func_getline" 1>&6
11480 if test $ac_cv_func_getline = yes; then
11481 am_getline_needs_run_time_check
=yes
11483 am_cv_func_working_getline
=no
11486 if test $am_getline_needs_run_time_check = yes; then
11489 for ac_header
in string.h
11491 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
11492 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
11493 echo "configure:10135: checking for $ac_header" 1>&5
11494 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
11495 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11498 cat >conftest.
$ac_ext <<EOF
11499 #line 10140 "configure"
11500 #include "confdefs.h"
11501 #include <$ac_header>
11504 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11505 { (eval echo configure
:10145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11506 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11507 if test -z "$ac_err"; then
11508 eval "$ac_ac_Header=yes"
11511 echo "configure: failed program was:" >&5
11512 cat conftest.
$ac_ext >&5
11513 eval "$ac_ac_Header=no"
11517 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
11518 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
11519 cat >>confdefs.h
<<EOF
11520 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
11526 echo $ECHO_N "checking for working getline function... $ECHO_C" 1>&6
11527 echo "configure:10165: checking for working getline function" 1>&5
11528 if test "${am_cv_func_working_getline+set}" = set; then
11529 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11531 echo fooN |
tr -d '\012'|
tr N
'\012' > conftest.data
11532 if test "$cross_compiling" = yes; then
11533 am_cv_func_working_getline
=no
11535 cat >conftest.
$ac_ext <<EOF
11536 #line 10174 "configure"
11537 #include "confdefs.h"
11539 # include <stdio.h>
11540 # include <sys/types.h>
11542 # include <string.h>
11545 { /* Based on a test program from Karl Heuer. */
11549 FILE *in = fopen ("./conftest.data", "r");
11552 len = getline (&line, &siz, in);
11553 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
11557 if { (eval echo configure
:10193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
11558 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
11559 am_cv_func_working_getline
=yes
11561 echo "configure: failed program was:" >&5
11562 cat conftest.
$ac_ext >&5
11563 am_cv_func_working_getline
=no
11569 echo "$ECHO_T""$am_cv_func_working_getline" 1>&6
11572 if test $am_cv_func_working_getline = yes; then
11575 cat >>confdefs.h
<<\EOF
11576 #define HAVE_GETLINE 1
11580 if test $am_cv_func_working_getline != yes; then
11583 for ac_func
in getdelim
11585 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11586 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11587 echo "configure:10218: checking for $ac_func" 1>&5
11588 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11589 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11591 cat >conftest.
$ac_ext <<EOF
11592 #line 10223 "configure"
11593 #include "confdefs.h"
11594 /* System header to define __stub macros and hopefully few prototypes,
11595 which can conflict with char $ac_func(); below. */
11596 #include <assert.h>
11597 /* Override any gcc2 internal prototype to avoid an error. */
11601 /* We use char because int might match the return type of a gcc2
11602 builtin and then its argument prototype would still apply. */
11610 /* The GNU C library defines this for functions which it implements
11611 to always fail with ENOSYS. Some functions are actually named
11612 something starting with __ and the normal name is an alias. */
11613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11623 if { (eval echo configure
:10251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11624 eval "$ac_ac_var=yes"
11626 echo "configure: failed program was:" >&5
11627 cat conftest.
$ac_ext >&5
11628 eval "$ac_ac_var=no"
11632 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11633 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11634 cat >>confdefs.h
<<EOF
11635 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11653 for ac_func
in fchdir getcwd strerror endgrent endpwent
11655 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11656 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11657 echo "configure:10277: checking for $ac_func" 1>&5
11658 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11659 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11661 cat >conftest.
$ac_ext <<EOF
11662 #line 10282 "configure"
11663 #include "confdefs.h"
11664 /* System header to define __stub macros and hopefully few prototypes,
11665 which can conflict with char $ac_func(); below. */
11666 #include <assert.h>
11667 /* Override any gcc2 internal prototype to avoid an error. */
11671 /* We use char because int might match the return type of a gcc2
11672 builtin and then its argument prototype would still apply. */
11680 /* The GNU C library defines this for functions which it implements
11681 to always fail with ENOSYS. Some functions are actually named
11682 something starting with __ and the normal name is an alias. */
11683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11693 if { (eval echo configure
:10310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11694 eval "$ac_ac_var=yes"
11696 echo "configure: failed program was:" >&5
11697 cat conftest.
$ac_ext >&5
11698 eval "$ac_ac_var=no"
11702 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
11703 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11704 cat >>confdefs.h
<<EOF
11705 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11711 echo $ECHO_N "checking for vprintf... $ECHO_C" 1>&6
11712 echo "configure:10327: checking for vprintf" 1>&5
11713 if test "${ac_cv_func_vprintf+set}" = set; then
11714 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11716 cat >conftest.
$ac_ext <<EOF
11717 #line 10332 "configure"
11718 #include "confdefs.h"
11719 /* System header to define __stub macros and hopefully few prototypes,
11720 which can conflict with char vprintf(); below. */
11721 #include <assert.h>
11722 /* Override any gcc2 internal prototype to avoid an error. */
11726 /* We use char because int might match the return type of a gcc2
11727 builtin and then its argument prototype would still apply. */
11735 /* The GNU C library defines this for functions which it implements
11736 to always fail with ENOSYS. Some functions are actually named
11737 something starting with __ and the normal name is an alias. */
11738 #if defined (__stub_vprintf) || defined (__stub___vprintf)
11748 if { (eval echo configure
:10360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11749 ac_cv_func_vprintf
=yes
11751 echo "configure: failed program was:" >&5
11752 cat conftest.
$ac_ext >&5
11753 ac_cv_func_vprintf
=no
11757 echo "$ECHO_T""$ac_cv_func_vprintf" 1>&6
11758 if test $ac_cv_func_vprintf = yes; then
11761 cat >>confdefs.h
<<\EOF
11762 #define HAVE_VPRINTF 1
11767 if test "$ac_cv_func_vprintf" != yes; then
11768 echo $ECHO_N "checking for _doprnt... $ECHO_C" 1>&6
11769 echo "configure:10378: checking for _doprnt" 1>&5
11770 if test "${ac_cv_func__doprnt+set}" = set; then
11771 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11773 cat >conftest.
$ac_ext <<EOF
11774 #line 10383 "configure"
11775 #include "confdefs.h"
11776 /* System header to define __stub macros and hopefully few prototypes,
11777 which can conflict with char _doprnt(); below. */
11778 #include <assert.h>
11779 /* Override any gcc2 internal prototype to avoid an error. */
11783 /* We use char because int might match the return type of a gcc2
11784 builtin and then its argument prototype would still apply. */
11792 /* The GNU C library defines this for functions which it implements
11793 to always fail with ENOSYS. Some functions are actually named
11794 something starting with __ and the normal name is an alias. */
11795 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11805 if { (eval echo configure
:10411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11806 ac_cv_func__doprnt
=yes
11808 echo "configure: failed program was:" >&5
11809 cat conftest.
$ac_ext >&5
11810 ac_cv_func__doprnt
=no
11814 echo "$ECHO_T""$ac_cv_func__doprnt" 1>&6
11815 if test $ac_cv_func__doprnt = yes; then
11818 cat >>confdefs.h
<<\EOF
11819 #define HAVE_DOPRNT 1
11828 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11829 # for constant arguments. Useless!
11830 echo $ECHO_N "checking for working alloca.h... $ECHO_C" 1>&6
11831 echo "configure:10432: checking for working alloca.h" 1>&5
11832 if test "${ac_cv_working_alloca_h+set}" = set; then
11833 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11835 cat >conftest.
$ac_ext <<EOF
11836 #line 10437 "configure"
11837 #include "confdefs.h"
11838 #include <alloca.h>
11842 char *p = (char *) alloca (2 * sizeof (int));
11847 if { (eval echo configure
:10448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11848 ac_cv_working_alloca_h
=yes
11850 echo "configure: failed program was:" >&5
11851 cat conftest.
$ac_ext >&5
11852 ac_cv_working_alloca_h
=no
11856 echo "$ECHO_T""$ac_cv_working_alloca_h" 1>&6
11857 if test $ac_cv_working_alloca_h = yes; then
11860 cat >>confdefs.h
<<\EOF
11861 #define HAVE_ALLOCA_H 1
11866 echo $ECHO_N "checking for alloca... $ECHO_C" 1>&6
11867 echo "configure:10465: checking for alloca" 1>&5
11868 if test "${ac_cv_func_alloca_works+set}" = set; then
11869 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11871 cat >conftest.
$ac_ext <<EOF
11872 #line 10470 "configure"
11873 #include "confdefs.h"
11875 # define alloca __builtin_alloca
11878 # include <malloc.h>
11879 # define alloca _alloca
11882 # include <alloca.h>
11887 # ifndef alloca /* predefined by HP cc +Olibcalls */
11898 char *p = (char *) alloca(1);
11903 if { (eval echo configure
:10500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11904 ac_cv_func_alloca_works
=yes
11906 echo "configure: failed program was:" >&5
11907 cat conftest.
$ac_ext >&5
11908 ac_cv_func_alloca_works
=no
11912 echo "$ECHO_T""$ac_cv_func_alloca_works" 1>&6
11913 if test $ac_cv_func_alloca_works = yes; then
11916 cat >>confdefs.h
<<\EOF
11917 #define HAVE_ALLOCA 1
11922 if test $ac_cv_func_alloca_works = no
; then
11923 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11924 # that cause trouble. Some versions do not even contain alloca or
11925 # contain a buggy version. If you still want to use their alloca,
11926 # use ar to extract alloca.o from them instead of compiling alloca.c.
11927 ALLOCA
=alloca.
${ac_objext}
11930 cat >>confdefs.h
<<\EOF
11934 echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" 1>&6
11935 echo "configure:10527: checking whether alloca needs Cray hooks" 1>&5
11936 if test "${ac_cv_os_cray+set}" = set; then
11937 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11940 cat >conftest.
$ac_ext <<EOF
11941 #line 10532 "configure"
11942 #include "confdefs.h"
11943 #if defined(CRAY) && ! defined(CRAY2)
11950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11951 egrep "webecray" >/dev
/null
2>&1; then
11959 echo "$ECHO_T""$ac_cv_os_cray" 1>&6
11960 if test $ac_cv_os_cray = yes; then
11961 for ac_func
in _getb67 GETB67 getb67
; do
11962 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11963 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
11964 echo "configure:10553: checking for $ac_func" 1>&5
11965 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11966 echo $ECHO_N "(cached) $ECHO_C" 1>&6
11968 cat >conftest.
$ac_ext <<EOF
11969 #line 10558 "configure"
11970 #include "confdefs.h"
11971 /* System header to define __stub macros and hopefully few prototypes,
11972 which can conflict with char $ac_func(); below. */
11973 #include <assert.h>
11974 /* Override any gcc2 internal prototype to avoid an error. */
11978 /* We use char because int might match the return type of a gcc2
11979 builtin and then its argument prototype would still apply. */
11987 /* The GNU C library defines this for functions which it implements
11988 to always fail with ENOSYS. Some functions are actually named
11989 something starting with __ and the normal name is an alias. */
11990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12000 if { (eval echo configure
:10586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12001 eval "$ac_ac_var=yes"
12003 echo "configure: failed program was:" >&5
12004 cat conftest.
$ac_ext >&5
12005 eval "$ac_ac_var=no"
12009 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
12010 if test `eval echo '${'$ac_ac_var'}'` = yes; then
12013 cat >>confdefs.h
<<EOF
12014 #define CRAY_STACKSEG_END $ac_func
12023 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" 1>&6
12024 echo "configure:10606: checking stack direction for C alloca" 1>&5
12025 if test "${ac_cv_c_stack_direction+set}" = set; then
12026 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12028 if test "$cross_compiling" = yes; then
12029 ac_cv_c_stack_direction
=0
12031 cat >conftest.
$ac_ext <<EOF
12032 #line 10614 "configure"
12033 #include "confdefs.h"
12034 find_stack_direction ()
12036 static char *addr = 0;
12041 return find_stack_direction ();
12044 return (&dummy > addr) ? 1 : -1;
12050 exit (find_stack_direction () < 0);
12053 if { (eval echo configure
:10634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
12054 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
12055 ac_cv_c_stack_direction
=1
12057 echo "configure: failed program was:" >&5
12058 cat conftest.
$ac_ext >&5
12059 ac_cv_c_stack_direction
=-1
12065 echo "$ECHO_T""$ac_cv_c_stack_direction" 1>&6
12066 cat >>confdefs.h
<<EOF
12067 #define STACK_DIRECTION $ac_cv_c_stack_direction
12072 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
12075 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" 1>&6
12076 echo "configure:10653: checking for getmntent in -lsun" 1>&5
12077 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
12078 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12080 ac_save_LIBS
="$LIBS"
12082 cat >conftest.
$ac_ext <<EOF
12083 #line 10660 "configure"
12084 #include "confdefs.h"
12086 /* Override any gcc2 internal prototype to avoid an error. */
12090 /* We use char because int might match the return type of a gcc2
12091 builtin and then its argument prototype would still apply. */
12101 if { (eval echo configure
:10677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12102 ac_cv_lib_sun_getmntent
=yes
12104 echo "configure: failed program was:" >&5
12105 cat conftest.
$ac_ext >&5
12106 ac_cv_lib_sun_getmntent
=no
12109 LIBS
="$ac_save_LIBS"
12111 echo "$ECHO_T""$ac_cv_lib_sun_getmntent" 1>&6
12112 if test $ac_cv_lib_sun_getmntent = yes; then
12117 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" 1>&6
12118 echo "configure:10693: checking for getmntent in -lseq" 1>&5
12119 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
12120 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12122 ac_save_LIBS
="$LIBS"
12124 cat >conftest.
$ac_ext <<EOF
12125 #line 10700 "configure"
12126 #include "confdefs.h"
12128 /* Override any gcc2 internal prototype to avoid an error. */
12132 /* We use char because int might match the return type of a gcc2
12133 builtin and then its argument prototype would still apply. */
12143 if { (eval echo configure
:10717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12144 ac_cv_lib_seq_getmntent
=yes
12146 echo "configure: failed program was:" >&5
12147 cat conftest.
$ac_ext >&5
12148 ac_cv_lib_seq_getmntent
=no
12151 LIBS
="$ac_save_LIBS"
12153 echo "$ECHO_T""$ac_cv_lib_seq_getmntent" 1>&6
12154 if test $ac_cv_lib_seq_getmntent = yes; then
12159 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" 1>&6
12160 echo "configure:10733: checking for getmntent in -lgen" 1>&5
12161 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
12162 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12164 ac_save_LIBS
="$LIBS"
12166 cat >conftest.
$ac_ext <<EOF
12167 #line 10740 "configure"
12168 #include "confdefs.h"
12170 /* Override any gcc2 internal prototype to avoid an error. */
12174 /* We use char because int might match the return type of a gcc2
12175 builtin and then its argument prototype would still apply. */
12185 if { (eval echo configure
:10757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12186 ac_cv_lib_gen_getmntent
=yes
12188 echo "configure: failed program was:" >&5
12189 cat conftest.
$ac_ext >&5
12190 ac_cv_lib_gen_getmntent
=no
12193 LIBS
="$ac_save_LIBS"
12195 echo "$ECHO_T""$ac_cv_lib_gen_getmntent" 1>&6
12196 if test $ac_cv_lib_gen_getmntent = yes; then
12204 echo $ECHO_N "checking for getmntent... $ECHO_C" 1>&6
12205 echo "configure:10774: checking for getmntent" 1>&5
12206 if test "${ac_cv_func_getmntent+set}" = set; then
12207 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12209 cat >conftest.
$ac_ext <<EOF
12210 #line 10779 "configure"
12211 #include "confdefs.h"
12212 /* System header to define __stub macros and hopefully few prototypes,
12213 which can conflict with char getmntent(); below. */
12214 #include <assert.h>
12215 /* Override any gcc2 internal prototype to avoid an error. */
12219 /* We use char because int might match the return type of a gcc2
12220 builtin and then its argument prototype would still apply. */
12228 /* The GNU C library defines this for functions which it implements
12229 to always fail with ENOSYS. Some functions are actually named
12230 something starting with __ and the normal name is an alias. */
12231 #if defined (__stub_getmntent) || defined (__stub___getmntent)
12241 if { (eval echo configure
:10807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12242 ac_cv_func_getmntent
=yes
12244 echo "configure: failed program was:" >&5
12245 cat conftest.
$ac_ext >&5
12246 ac_cv_func_getmntent
=no
12250 echo "$ECHO_T""$ac_cv_func_getmntent" 1>&6
12251 if test $ac_cv_func_getmntent = yes; then
12254 cat >>confdefs.h
<<\EOF
12255 #define HAVE_GETMNTENT 1
12260 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" 1>&6
12261 echo "configure:10824: checking whether closedir returns void" 1>&5
12262 if test "${ac_cv_func_closedir_void+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12265 if test "$cross_compiling" = yes; then
12266 ac_cv_func_closedir_void
=yes
12268 cat >conftest.
$ac_ext <<EOF
12269 #line 10832 "configure"
12270 #include "confdefs.h"
12271 #include <sys/types.h>
12272 #include <$ac_header_dirent>
12278 exit (closedir (opendir (".")) != 0);
12281 if { (eval echo configure
:10843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
12282 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
12283 ac_cv_func_closedir_void
=no
12285 echo "configure: failed program was:" >&5
12286 cat conftest.
$ac_ext >&5
12287 ac_cv_func_closedir_void
=yes
12293 echo "$ECHO_T""$ac_cv_func_closedir_void" 1>&6
12294 if test $ac_cv_func_closedir_void = yes; then
12297 cat >>confdefs.h
<<\EOF
12298 #define CLOSEDIR_VOID 1
12309 for ac_header
in stdlib.h unistd.h sys
/stat.h
12311 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
12312 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
12313 echo "configure:10868: checking for $ac_header" 1>&5
12314 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
12315 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12318 cat >conftest.
$ac_ext <<EOF
12319 #line 10873 "configure"
12320 #include "confdefs.h"
12321 #include <$ac_header>
12324 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12325 { (eval echo configure
:10878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12326 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12327 if test -z "$ac_err"; then
12328 eval "$ac_ac_Header=yes"
12331 echo "configure: failed program was:" >&5
12332 cat conftest.
$ac_ext >&5
12333 eval "$ac_ac_Header=no"
12337 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
12338 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
12339 cat >>confdefs.h
<<EOF
12340 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
12348 for ac_func
in getpagesize
12350 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12351 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
12352 echo "configure:10902: checking for $ac_func" 1>&5
12353 if eval "test \"\${$ac_ac_var+set}\" = set"; then
12354 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12356 cat >conftest.
$ac_ext <<EOF
12357 #line 10907 "configure"
12358 #include "confdefs.h"
12359 /* System header to define __stub macros and hopefully few prototypes,
12360 which can conflict with char $ac_func(); below. */
12361 #include <assert.h>
12362 /* Override any gcc2 internal prototype to avoid an error. */
12366 /* We use char because int might match the return type of a gcc2
12367 builtin and then its argument prototype would still apply. */
12375 /* The GNU C library defines this for functions which it implements
12376 to always fail with ENOSYS. Some functions are actually named
12377 something starting with __ and the normal name is an alias. */
12378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12388 if { (eval echo configure
:10935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12389 eval "$ac_ac_var=yes"
12391 echo "configure: failed program was:" >&5
12392 cat conftest.
$ac_ext >&5
12393 eval "$ac_ac_var=no"
12397 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
12398 if test `eval echo '${'$ac_ac_var'}'` = yes; then
12399 cat >>confdefs.h
<<EOF
12400 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
12406 echo $ECHO_N "checking for working mmap... $ECHO_C" 1>&6
12407 echo "configure:10952: checking for working mmap" 1>&5
12408 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12409 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12411 if test "$cross_compiling" = yes; then
12412 ac_cv_func_mmap_fixed_mapped
=no
12414 cat >conftest.
$ac_ext <<EOF
12415 #line 10960 "configure"
12416 #include "confdefs.h"
12417 /* Thanks to Mike Haertel and Jim Avera for this test.
12418 Here is a matrix of mmap possibilities:
12419 mmap private not fixed
12420 mmap private fixed at somewhere currently unmapped
12421 mmap private fixed at somewhere already mapped
12422 mmap shared not fixed
12423 mmap shared fixed at somewhere currently unmapped
12424 mmap shared fixed at somewhere already mapped
12425 For private mappings, we should verify that changes cannot be read()
12426 back from the file, nor mmap's back from the file at a different
12427 address. (There have been systems where private was not correctly
12428 implemented like the infamous i386 svr4.0, and systems where the
12429 VM page cache was not coherent with the file system buffer cache
12430 like early versions of FreeBSD and possibly contemporary NetBSD.)
12431 For shared mappings, we should conversely verify that changes get
12432 propogated back to all the places they're supposed to be.
12434 Grep wants private fixed already mapped.
12435 The main things grep needs to know about mmap are:
12436 * does it exist and is it safe to write into the mmap'd area
12437 * how to use it (BSD variants) */
12438 #include <sys/types.h>
12440 #include <sys/mman.h>
12443 # include <stdlib.h>
12448 # include <unistd.h>
12450 #if HAVE_SYS_STAT_H
12451 # include <sys/stat.h>
12454 /* This mess was copied from the GNU getpagesize.h. */
12455 #if !HAVE_GETPAGESIZE
12456 /* Assume that all systems that can run configure have sys/param.h. */
12457 # if !HAVE_SYS_PARAM_H
12458 # define HAVE_SYS_PARAM_H 1
12461 # ifdef _SC_PAGESIZE
12462 # define getpagesize() sysconf(_SC_PAGESIZE)
12463 # else /* no _SC_PAGESIZE */
12464 # if HAVE_SYS_PARAM_H
12465 # include <sys/param.h>
12466 # ifdef EXEC_PAGESIZE
12467 # define getpagesize() EXEC_PAGESIZE
12468 # else /* no EXEC_PAGESIZE */
12470 # define getpagesize() NBPG * CLSIZE
12473 # endif /* no CLSIZE */
12474 # else /* no NBPG */
12476 # define getpagesize() NBPC
12477 # else /* no NBPC */
12479 # define getpagesize() PAGESIZE
12480 # endif /* PAGESIZE */
12481 # endif /* no NBPC */
12482 # endif /* no NBPG */
12483 # endif /* no EXEC_PAGESIZE */
12484 # else /* no HAVE_SYS_PARAM_H */
12485 # define getpagesize() 8192 /* punt totally */
12486 # endif /* no HAVE_SYS_PARAM_H */
12487 # endif /* no _SC_PAGESIZE */
12489 #endif /* no HAVE_GETPAGESIZE */
12494 char *data, *data2, *data3;
12498 pagesize = getpagesize ();
12500 /* First, make a file with some known garbage in it. */
12501 data = (char *) malloc (pagesize);
12504 for (i = 0; i < pagesize; ++i)
12505 *(data + i) = rand ();
12507 fd = creat ("conftestmmap", 0600);
12510 if (write (fd, data, pagesize) != pagesize)
12514 /* Next, try to mmap the file at a fixed address which already has
12515 something else allocated at it. If we can, also make sure that
12516 we see the same garbage. */
12517 fd = open ("conftestmmap", O_RDWR);
12520 data2 = (char *) malloc (2 * pagesize);
12523 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
12524 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12525 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12527 for (i = 0; i < pagesize; ++i)
12528 if (*(data + i) != *(data2 + i))
12531 /* Finally, make sure that changes to the mapped area do not
12532 percolate back to the file as seen by read(). (This is a bug on
12533 some variants of i386 svr4.0.) */
12534 for (i = 0; i < pagesize; ++i)
12535 *(data2 + i) = *(data2 + i) + 1;
12536 data3 = (char *) malloc (pagesize);
12539 if (read (fd, data3, pagesize) != pagesize)
12541 for (i = 0; i < pagesize; ++i)
12542 if (*(data + i) != *(data3 + i))
12545 unlink ("conftestmmap");
12549 if { (eval echo configure
:11084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } &&
12550 test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
; then
12551 ac_cv_func_mmap_fixed_mapped
=yes
12553 echo "configure: failed program was:" >&5
12554 cat conftest.
$ac_ext >&5
12555 ac_cv_func_mmap_fixed_mapped
=no
12561 echo "$ECHO_T""$ac_cv_func_mmap_fixed_mapped" 1>&6
12562 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12565 cat >>confdefs.h
<<\EOF
12566 #define HAVE_MMAP 1
12587 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
12588 unistd.h sys
/param.h
12590 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
12591 echo $ECHO_N "checking for $ac_header... $ECHO_C" 1>&6
12592 echo "configure:11115: checking for $ac_header" 1>&5
12593 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
12594 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12597 cat >conftest.
$ac_ext <<EOF
12598 #line 11120 "configure"
12599 #include "confdefs.h"
12600 #include <$ac_header>
12603 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12604 { (eval echo configure
:11125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12605 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12606 if test -z "$ac_err"; then
12607 eval "$ac_ac_Header=yes"
12610 echo "configure: failed program was:" >&5
12611 cat conftest.
$ac_ext >&5
12612 eval "$ac_ac_Header=no"
12616 echo "$ECHO_T""`eval echo '${'$ac_ac_Header'}'`" 1>&6
12617 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
12618 cat >>confdefs.h
<<EOF
12619 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
12647 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
12648 strdup __argz_count __argz_stringify __argz_next
12650 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12651 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
12652 echo "configure:11160: checking for $ac_func" 1>&5
12653 if eval "test \"\${$ac_ac_var+set}\" = set"; then
12654 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12656 cat >conftest.
$ac_ext <<EOF
12657 #line 11165 "configure"
12658 #include "confdefs.h"
12659 /* System header to define __stub macros and hopefully few prototypes,
12660 which can conflict with char $ac_func(); below. */
12661 #include <assert.h>
12662 /* Override any gcc2 internal prototype to avoid an error. */
12666 /* We use char because int might match the return type of a gcc2
12667 builtin and then its argument prototype would still apply. */
12675 /* The GNU C library defines this for functions which it implements
12676 to always fail with ENOSYS. Some functions are actually named
12677 something starting with __ and the normal name is an alias. */
12678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12688 if { (eval echo configure
:11193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12689 eval "$ac_ac_var=yes"
12691 echo "configure: failed program was:" >&5
12692 cat conftest.
$ac_ext >&5
12693 eval "$ac_ac_var=no"
12697 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
12698 if test `eval echo '${'$ac_ac_var'}'` = yes; then
12699 cat >>confdefs.h
<<EOF
12700 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
12706 if test "${ac_cv_func_stpcpy+set}" != "set"; then
12709 for ac_func
in stpcpy
12711 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12712 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
12713 echo "configure:11215: checking for $ac_func" 1>&5
12714 if eval "test \"\${$ac_ac_var+set}\" = set"; then
12715 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12717 cat >conftest.
$ac_ext <<EOF
12718 #line 11220 "configure"
12719 #include "confdefs.h"
12720 /* System header to define __stub macros and hopefully few prototypes,
12721 which can conflict with char $ac_func(); below. */
12722 #include <assert.h>
12723 /* Override any gcc2 internal prototype to avoid an error. */
12727 /* We use char because int might match the return type of a gcc2
12728 builtin and then its argument prototype would still apply. */
12736 /* The GNU C library defines this for functions which it implements
12737 to always fail with ENOSYS. Some functions are actually named
12738 something starting with __ and the normal name is an alias. */
12739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12749 if { (eval echo configure
:11248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12750 eval "$ac_ac_var=yes"
12752 echo "configure: failed program was:" >&5
12753 cat conftest.
$ac_ext >&5
12754 eval "$ac_ac_var=no"
12758 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
12759 if test `eval echo '${'$ac_ac_var'}'` = yes; then
12760 cat >>confdefs.h
<<EOF
12761 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
12768 if test "${ac_cv_func_stpcpy}" = "yes"; then
12771 cat >>confdefs.h
<<\EOF
12772 #define HAVE_STPCPY 1
12777 if test $ac_cv_header_locale_h = yes; then
12778 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" 1>&6
12779 echo "configure:11273: checking for LC_MESSAGES" 1>&5
12780 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12781 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12783 cat >conftest.
$ac_ext <<EOF
12784 #line 11278 "configure"
12785 #include "confdefs.h"
12786 #include <locale.h>
12795 if { (eval echo configure
:11289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12796 am_cv_val_LC_MESSAGES
=yes
12798 echo "configure: failed program was:" >&5
12799 cat conftest.
$ac_ext >&5
12800 am_cv_val_LC_MESSAGES
=no
12804 echo "$ECHO_T""$am_cv_val_LC_MESSAGES" 1>&6
12805 if test $am_cv_val_LC_MESSAGES = yes; then
12808 cat >>confdefs.h
<<\EOF
12809 #define HAVE_LC_MESSAGES 1
12814 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" 1>&6
12815 echo "configure:11307: checking whether NLS is requested" 1>&5
12816 # Check whether --enable-nls or --disable-nls was given.
12817 if test "${enable_nls+set}" = set; then
12818 enableval
="$enable_nls"
12823 echo "$ECHO_T""$USE_NLS" 1>&6
12825 USE_INCLUDED_LIBINTL
=no
12827 if test "$USE_NLS" = "yes"; then
12830 cat >>confdefs.h
<<\EOF
12831 #define ENABLE_NLS 1
12834 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" 1>&6
12835 echo "configure:11323: checking whether included gettext is requested" 1>&5
12836 # Check whether --with-included-gettext or --without-included-gettext was given.
12837 if test "${with_included_gettext+set}" = set; then
12838 withval
="$with_included_gettext"
12839 nls_cv_force_use_gnu_gettext
=$withval
12841 nls_cv_force_use_gnu_gettext
=no
12843 echo "$ECHO_T""$nls_cv_force_use_gnu_gettext" 1>&6
12845 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
12846 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12847 nls_cv_header_intl
=
12848 nls_cv_header_libgt
=
12851 echo $ECHO_N "checking for libintl.h... $ECHO_C" 1>&6
12852 echo "configure:11338: checking for libintl.h" 1>&5
12853 if test "${ac_cv_header_libintl_h+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12857 cat >conftest.
$ac_ext <<EOF
12858 #line 11343 "configure"
12859 #include "confdefs.h"
12860 #include <libintl.h>
12863 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12864 { (eval echo configure
:11348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12865 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12866 if test -z "$ac_err"; then
12867 ac_cv_header_libintl_h
=yes
12870 echo "configure: failed program was:" >&5
12871 cat conftest.
$ac_ext >&5
12872 ac_cv_header_libintl_h
=no
12876 echo "$ECHO_T""$ac_cv_header_libintl_h" 1>&6
12877 if test $ac_cv_header_libintl_h = yes; then
12878 echo $ECHO_N "checking for gettext in libc... $ECHO_C" 1>&6
12879 echo "configure:11363: checking for gettext in libc" 1>&5
12880 if test "${gt_cv_func_gettext_libc+set}" = set; then
12881 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12883 cat >conftest.
$ac_ext <<EOF
12884 #line 11368 "configure"
12885 #include "confdefs.h"
12886 #include <libintl.h>
12890 return (int) gettext ("")
12895 if { (eval echo configure
:11379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12896 gt_cv_func_gettext_libc
=yes
12898 echo "configure: failed program was:" >&5
12899 cat conftest.
$ac_ext >&5
12900 gt_cv_func_gettext_libc
=no
12904 echo "$ECHO_T""$gt_cv_func_gettext_libc" 1>&6
12906 if test "$gt_cv_func_gettext_libc" != "yes"; then
12909 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" 1>&6
12910 echo "configure:11392: checking for bindtextdomain in -lintl" 1>&5
12911 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
12912 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12914 ac_save_LIBS
="$LIBS"
12915 LIBS
="-lintl $LIBS"
12916 cat >conftest.
$ac_ext <<EOF
12917 #line 11399 "configure"
12918 #include "confdefs.h"
12920 /* Override any gcc2 internal prototype to avoid an error. */
12924 /* We use char because int might match the return type of a gcc2
12925 builtin and then its argument prototype would still apply. */
12926 char bindtextdomain ();
12935 if { (eval echo configure
:11416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12936 ac_cv_lib_intl_bindtextdomain
=yes
12938 echo "configure: failed program was:" >&5
12939 cat conftest.
$ac_ext >&5
12940 ac_cv_lib_intl_bindtextdomain
=no
12943 LIBS
="$ac_save_LIBS"
12945 echo "$ECHO_T""$ac_cv_lib_intl_bindtextdomain" 1>&6
12946 if test $ac_cv_lib_intl_bindtextdomain = yes; then
12949 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" 1>&6
12950 echo "configure:11430: checking for gettext in -lintl" 1>&5
12951 if test "${ac_cv_lib_intl_gettext+set}" = set; then
12952 echo $ECHO_N "(cached) $ECHO_C" 1>&6
12954 ac_save_LIBS
="$LIBS"
12955 LIBS
="-lintl $LIBS"
12956 cat >conftest.
$ac_ext <<EOF
12957 #line 11437 "configure"
12958 #include "confdefs.h"
12960 /* Override any gcc2 internal prototype to avoid an error. */
12964 /* We use char because int might match the return type of a gcc2
12965 builtin and then its argument prototype would still apply. */
12975 if { (eval echo configure
:11454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12976 ac_cv_lib_intl_gettext
=yes
12978 echo "configure: failed program was:" >&5
12979 cat conftest.
$ac_ext >&5
12980 ac_cv_lib_intl_gettext
=no
12983 LIBS
="$ac_save_LIBS"
12985 echo "$ECHO_T""$ac_cv_lib_intl_gettext" 1>&6
12986 if test $ac_cv_lib_intl_gettext = yes; then
12987 cat >>confdefs.h
<<EOF
12988 #define HAVE_LIBINTL 1
12991 LIBS
="-lintl $LIBS"
12999 if test "$gt_cv_func_gettext_libc" = "yes" \
13000 ||
test "$ac_cv_lib_intl_gettext" = "yes"; then
13003 cat >>confdefs.h
<<\EOF
13004 #define HAVE_GETTEXT 1
13007 # Extract the first word of "msgfmt", so it can be a program name with args.
13008 set dummy msgfmt
; ac_word
=$2
13009 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13010 echo "configure:11482: checking for $ac_word" 1>&5
13011 if test "${ac_cv_path_MSGFMT+set}" = set; then
13012 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13016 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
13019 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
13020 for ac_dir
in $PATH; do
13021 test -z "$ac_dir" && ac_dir
=.
13022 if test -f $ac_dir/$ac_word; then
13023 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
13024 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
13030 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
13034 MSGFMT
="$ac_cv_path_MSGFMT"
13035 if test -n "$MSGFMT"; then
13036 echo "$ECHO_T""$MSGFMT" 1>&6
13038 echo "$ECHO_T""no" 1>&6
13040 if test "$MSGFMT" != "no"; then
13043 for ac_func
in dcgettext
13045 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13046 echo $ECHO_N "checking for $ac_func... $ECHO_C" 1>&6
13047 echo "configure:11518: checking for $ac_func" 1>&5
13048 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13049 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13051 cat >conftest.
$ac_ext <<EOF
13052 #line 11523 "configure"
13053 #include "confdefs.h"
13054 /* System header to define __stub macros and hopefully few prototypes,
13055 which can conflict with char $ac_func(); below. */
13056 #include <assert.h>
13057 /* Override any gcc2 internal prototype to avoid an error. */
13061 /* We use char because int might match the return type of a gcc2
13062 builtin and then its argument prototype would still apply. */
13070 /* The GNU C library defines this for functions which it implements
13071 to always fail with ENOSYS. Some functions are actually named
13072 something starting with __ and the normal name is an alias. */
13073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13083 if { (eval echo configure
:11551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13084 eval "$ac_ac_var=yes"
13086 echo "configure: failed program was:" >&5
13087 cat conftest.
$ac_ext >&5
13088 eval "$ac_ac_var=no"
13092 echo "$ECHO_T""`eval echo '${'$ac_ac_var'}'`" 1>&6
13093 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13094 cat >>confdefs.h
<<EOF
13095 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13101 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13102 set dummy gmsgfmt
; ac_word
=$2
13103 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13104 echo "configure:11570: checking for $ac_word" 1>&5
13105 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13106 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13110 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
13113 ac_save_ifs
=$IFS; IFS
=':'
13115 for ac_dir
in $ac_dummy; do
13116 test -z "$ac_dir" && ac_dir
=.
13117 if test -f "$ac_dir/$ac_word"; then
13118 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
13123 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
13127 GMSGFMT
="$ac_cv_path_GMSGFMT"
13128 if test -n "$GMSGFMT"; then
13129 echo "$ECHO_T""$GMSGFMT" 1>&6
13131 echo "$ECHO_T""no" 1>&6
13134 # Extract the first word of "xgettext", so it can be a program name with args.
13135 set dummy xgettext
; ac_word
=$2
13136 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13137 echo "configure:11602: checking for $ac_word" 1>&5
13138 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13139 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13141 case "$XGETTEXT" in
13143 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
13146 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
13147 for ac_dir
in $PATH; do
13148 test -z "$ac_dir" && ac_dir
=.
13149 if test -f $ac_dir/$ac_word; then
13150 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
13151 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
13157 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
13161 XGETTEXT
="$ac_cv_path_XGETTEXT"
13162 if test -n "$XGETTEXT"; then
13163 echo "$ECHO_T""$XGETTEXT" 1>&6
13165 echo "$ECHO_T""no" 1>&6
13168 cat >conftest.
$ac_ext <<EOF
13169 #line 11633 "configure"
13170 #include "confdefs.h"
13175 extern int _nl_msg_cat_cntr;
13176 return _nl_msg_cat_cntr
13181 if { (eval echo configure
:11644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13185 echo "configure: failed program was:" >&5
13186 cat conftest.
$ac_ext >&5
13197 if test "$CATOBJEXT" = "NONE"; then
13198 echo $ECHO_N "checking whether catgets can be used... $ECHO_C" 1>&6
13199 echo "configure:11661: checking whether catgets can be used" 1>&5
13200 # Check whether --with-catgets or --without-catgets was given.
13201 if test "${with_catgets+set}" = set; then
13202 withval
="$with_catgets"
13203 nls_cv_use_catgets
=$withval
13205 nls_cv_use_catgets
=no
13207 echo "$ECHO_T""$nls_cv_use_catgets" 1>&6
13209 if test "$nls_cv_use_catgets" = "yes"; then
13212 echo $ECHO_N "checking for main in -li... $ECHO_C" 1>&6
13213 echo "configure:11673: checking for main in -li" 1>&5
13214 if test "${ac_cv_lib_i_main+set}" = set; then
13215 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13217 ac_save_LIBS
="$LIBS"
13219 cat >conftest.
$ac_ext <<EOF
13220 #line 11680 "configure"
13221 #include "confdefs.h"
13231 if { (eval echo configure
:11690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13232 ac_cv_lib_i_main
=yes
13234 echo "configure: failed program was:" >&5
13235 cat conftest.
$ac_ext >&5
13236 ac_cv_lib_i_main
=no
13239 LIBS
="$ac_save_LIBS"
13241 echo "$ECHO_T""$ac_cv_lib_i_main" 1>&6
13242 if test $ac_cv_lib_i_main = yes; then
13243 cat >>confdefs.h
<<EOF
13244 #define HAVE_LIBI 1
13251 echo $ECHO_N "checking for catgets... $ECHO_C" 1>&6
13252 echo "configure:11708: checking for catgets" 1>&5
13253 if test "${ac_cv_func_catgets+set}" = set; then
13254 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13256 cat >conftest.
$ac_ext <<EOF
13257 #line 11713 "configure"
13258 #include "confdefs.h"
13259 /* System header to define __stub macros and hopefully few prototypes,
13260 which can conflict with char catgets(); below. */
13261 #include <assert.h>
13262 /* Override any gcc2 internal prototype to avoid an error. */
13266 /* We use char because int might match the return type of a gcc2
13267 builtin and then its argument prototype would still apply. */
13275 /* The GNU C library defines this for functions which it implements
13276 to always fail with ENOSYS. Some functions are actually named
13277 something starting with __ and the normal name is an alias. */
13278 #if defined (__stub_catgets) || defined (__stub___catgets)
13288 if { (eval echo configure
:11741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13289 ac_cv_func_catgets
=yes
13291 echo "configure: failed program was:" >&5
13292 cat conftest.
$ac_ext >&5
13293 ac_cv_func_catgets
=no
13297 echo "$ECHO_T""$ac_cv_func_catgets" 1>&6
13298 if test $ac_cv_func_catgets = yes; then
13301 cat >>confdefs.h
<<\EOF
13302 #define HAVE_CATGETS 1
13305 INTLOBJS
="\$(CATOBJS)"
13306 # Extract the first word of "gencat", so it can be a program name with args.
13307 set dummy gencat
; ac_word
=$2
13308 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13309 echo "configure:11760: checking for $ac_word" 1>&5
13310 if test "${ac_cv_path_GENCAT+set}" = set; then
13311 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13315 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
13318 ac_save_ifs
=$IFS; IFS
=':'
13320 for ac_dir
in $ac_dummy; do
13321 test -z "$ac_dir" && ac_dir
=.
13322 if test -f "$ac_dir/$ac_word"; then
13323 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
13328 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
13332 GENCAT
="$ac_cv_path_GENCAT"
13333 if test -n "$GENCAT"; then
13334 echo "$ECHO_T""$GENCAT" 1>&6
13336 echo "$ECHO_T""no" 1>&6
13338 if test "$GENCAT" != "no"; then
13339 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13340 set dummy gmsgfmt
; ac_word
=$2
13341 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13342 echo "configure:11793: checking for $ac_word" 1>&5
13343 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13344 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13348 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
13351 ac_save_ifs
=$IFS; IFS
=':'
13353 for ac_dir
in $ac_dummy; do
13354 test -z "$ac_dir" && ac_dir
=.
13355 if test -f "$ac_dir/$ac_word"; then
13356 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
13361 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
13365 GMSGFMT
="$ac_cv_path_GMSGFMT"
13366 if test -n "$GMSGFMT"; then
13367 echo "$ECHO_T""$GMSGFMT" 1>&6
13369 echo "$ECHO_T""no" 1>&6
13372 if test "$GMSGFMT" = "no"; then
13373 # Extract the first word of "msgfmt", so it can be a program name with args.
13374 set dummy msgfmt
; ac_word
=$2
13375 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13376 echo "configure:11826: checking for $ac_word" 1>&5
13377 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13378 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13382 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
13385 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
13386 for ac_dir
in $PATH; do
13387 test -z "$ac_dir" && ac_dir
=.
13388 if test -f $ac_dir/$ac_word; then
13389 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
13390 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
13396 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
13400 GMSGFMT
="$ac_cv_path_GMSGFMT"
13401 if test -n "$GMSGFMT"; then
13402 echo "$ECHO_T""$GMSGFMT" 1>&6
13404 echo "$ECHO_T""no" 1>&6
13408 # Extract the first word of "xgettext", so it can be a program name with args.
13409 set dummy xgettext
; ac_word
=$2
13410 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13411 echo "configure:11860: checking for $ac_word" 1>&5
13412 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13413 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13415 case "$XGETTEXT" in
13417 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
13420 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
13421 for ac_dir
in $PATH; do
13422 test -z "$ac_dir" && ac_dir
=.
13423 if test -f $ac_dir/$ac_word; then
13424 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
13425 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
13431 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
13435 XGETTEXT
="$ac_cv_path_XGETTEXT"
13436 if test -n "$XGETTEXT"; then
13437 echo "$ECHO_T""$XGETTEXT" 1>&6
13439 echo "$ECHO_T""no" 1>&6
13442 USE_INCLUDED_LIBINTL
=yes
13446 INTLDEPS
='$(top_builddir)/intl/libintl.a'
13448 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
13449 nls_cv_header_intl
=intl
/libintl.h
13450 nls_cv_header_libgt
=intl
/libgettext.h
13457 if test "$CATOBJEXT" = "NONE"; then
13458 nls_cv_use_gnu_gettext
=yes
13462 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13463 INTLOBJS
="\$(GETTOBJS)"
13464 # Extract the first word of "msgfmt", so it can be a program name with args.
13465 set dummy msgfmt
; ac_word
=$2
13466 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13467 echo "configure:11912: checking for $ac_word" 1>&5
13468 if test "${ac_cv_path_MSGFMT+set}" = set; then
13469 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13473 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
13476 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
13477 for ac_dir
in $PATH; do
13478 test -z "$ac_dir" && ac_dir
=.
13479 if test -f $ac_dir/$ac_word; then
13480 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
13481 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
13487 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
13491 MSGFMT
="$ac_cv_path_MSGFMT"
13492 if test -n "$MSGFMT"; then
13493 echo "$ECHO_T""$MSGFMT" 1>&6
13495 echo "$ECHO_T""no" 1>&6
13498 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13499 set dummy gmsgfmt
; ac_word
=$2
13500 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13501 echo "configure:11945: checking for $ac_word" 1>&5
13502 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13503 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13507 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
13510 ac_save_ifs
=$IFS; IFS
=':'
13512 for ac_dir
in $ac_dummy; do
13513 test -z "$ac_dir" && ac_dir
=.
13514 if test -f "$ac_dir/$ac_word"; then
13515 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
13520 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
13524 GMSGFMT
="$ac_cv_path_GMSGFMT"
13525 if test -n "$GMSGFMT"; then
13526 echo "$ECHO_T""$GMSGFMT" 1>&6
13528 echo "$ECHO_T""no" 1>&6
13531 # Extract the first word of "xgettext", so it can be a program name with args.
13532 set dummy xgettext
; ac_word
=$2
13533 echo $ECHO_N "checking for $ac_word... $ECHO_C" 1>&6
13534 echo "configure:11977: checking for $ac_word" 1>&5
13535 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13538 case "$XGETTEXT" in
13540 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
13543 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
13544 for ac_dir
in $PATH; do
13545 test -z "$ac_dir" && ac_dir
=.
13546 if test -f $ac_dir/$ac_word; then
13547 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
13548 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
13554 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
13558 XGETTEXT
="$ac_cv_path_XGETTEXT"
13559 if test -n "$XGETTEXT"; then
13560 echo "$ECHO_T""$XGETTEXT" 1>&6
13562 echo "$ECHO_T""no" 1>&6
13565 USE_INCLUDED_LIBINTL
=yes
13569 INTLDEPS
='$(top_builddir)/intl/libintl.a'
13571 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
13572 nls_cv_header_intl
=intl
/libintl.h
13573 nls_cv_header_libgt
=intl
/libgettext.h
13576 if test "$XGETTEXT" != ":"; then
13577 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
13580 echo "$ECHO_T""found xgettext program is not GNU xgettext; ignore it" 1>&6
13585 # We need to process the po/ directory.
13589 nls_cv_header_intl
=intl
/libintl.h
13590 nls_cv_header_libgt
=intl
/libgettext.h
13592 if test -z "$nls_cv_header_intl"; then
13593 # Clean out junk possibly left behind by a previous configuration.
13594 rm -f intl
/libintl.h
13597 # If this is used in GNU gettext we have to set USE_NLS to `yes'
13598 # because some of the sources are only built for this goal.
13599 if test "$PACKAGE" = gettext; then
13601 USE_INCLUDED_LIBINTL
=yes
13604 for lang
in $ALL_LINGUAS; do
13605 GMOFILES
="$GMOFILES $lang.gmo"
13606 POFILES
="$POFILES $lang.po"
13609 if test "x$CATOBJEXT" != "x"; then
13610 if test "x$ALL_LINGUAS" = "x"; then
13613 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" 1>&6
13614 echo "configure:12051: checking for catalogs to be installed" 1>&5
13616 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
13617 case "$ALL_LINGUAS" in
13618 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
13621 LINGUAS
=$NEW_LINGUAS
13622 echo "$ECHO_T""$LINGUAS" 1>&6
13625 if test -n "$LINGUAS"; then
13626 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
13630 if test $ac_cv_header_locale_h = yes; then
13631 INCLUDE_LOCALE_H
="#include <locale.h>"
13633 INCLUDE_LOCALE_H
="\
13634 /* The system does not provide the header <locale.h>. Take care yourself. */"
13637 test -d intl || mkdir intl
13638 if test "$CATOBJEXT" = ".cat"; then
13639 echo $ECHO_N "checking for linux/version.h... $ECHO_C" 1>&6
13640 echo "configure:12074: checking for linux/version.h" 1>&5
13641 if test "${ac_cv_header_linux_version_h+set}" = set; then
13642 echo $ECHO_N "(cached) $ECHO_C" 1>&6
13645 cat >conftest.
$ac_ext <<EOF
13646 #line 12079 "configure"
13647 #include "confdefs.h"
13648 #include <linux/version.h>
13651 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13652 { (eval echo configure
:12084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13653 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13654 if test -z "$ac_err"; then
13655 ac_cv_header_linux_version_h
=yes
13658 echo "configure: failed program was:" >&5
13659 cat conftest.
$ac_ext >&5
13660 ac_cv_header_linux_version_h
=no
13664 echo "$ECHO_T""$ac_cv_header_linux_version_h" 1>&6
13665 if test $ac_cv_header_linux_version_h = yes; then
13671 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
13673 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
13674 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
13676 if test "$PACKAGE" = "gettext"; then
13685 if test -n "$ac_aux_dir"; then
13686 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
13688 if test -z "$MKINSTALLDIRS"; then
13689 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
13694 test -d po || mkdir po
13697 posrcprefix
="../" ;;
13699 posrcprefix
="$srcdir/" ;;
13701 posrcprefix
="../$srcdir/" ;;
13704 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
13705 < $srcdir/po
/POTFILES.
in > po
/POTFILES
13707 # These no-op lines work around a bug in automake 1.4:
13708 # it doesn't recognize the assignments to LIBOBJS in m4/*.m4.
13709 : LIBOBJS
="$LIBOBJS fnmatch.o lstat.o"
13710 : LIBOBJS
="$LIBOBJS malloc.o memcmp.o mktime.o"
13711 : LIBOBJS
="$LIBOBJS realloc.o regex.o stat.o strftime.o"
13713 # This is necessary so that .o files in LIBOBJS are also built via
13714 # the ANSI2KNR-filtering rules.
13715 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
13717 cat >confcache
<<\EOF
13718 # This file is a shell script that caches the results of configure
13719 # tests run on this system so they can be shared between configure
13720 # scripts and configure runs. It is not useful on other systems.
13721 # If it contains results you don't want to keep, you may remove or edit it.
13723 # By default, configure uses ./config.cache as the cache file,
13724 # creating it if it does not exist already. You can give configure
13725 # the --cache-file=FILE option to use a different cache file; that is
13726 # what configure does when it calls configure scripts in
13727 # subdirectories, so they share the cache.
13728 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13729 # config.status only pays attention to the cache file if you give it the
13730 # --recheck option to rerun configure.
13733 # The following way of writing the cache mishandles newlines in values,
13734 # but we know of no workaround that is simple, portable, and efficient.
13735 # So, don't put newlines in cache variables' values.
13736 # Ultrix sh set writes to stderr and can't be redirected directly,
13737 # and sets the high bit in the cache file unless we assign to the vars.
13739 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13741 # `set' does not quote correctly, so add quotes (double-quote substitution
13742 # turns \\\\ into \\, and sed turns \\ into \).
13744 -e "s/'/'\\\\''/g" \
13745 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13748 # `set' quotes correctly as required by POSIX, so do not add quotes.
13749 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13752 if cmp -s $cache_file confcache
; then :; else
13753 if test -w $cache_file; then
13754 echo "updating cache $cache_file"
13755 cat confcache
>$cache_file
13757 echo "not updating unwritable cache $cache_file"
13762 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
13764 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13765 # Let make expand exec_prefix.
13766 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13768 # Any assignment to VPATH causes Sun make to only execute
13769 # the first set of double-colon rules, so remove it if not needed.
13770 # If there is a colon in the path, we need to keep it.
13771 if test "x$srcdir" = x.
; then
13772 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
13775 DEFS
=-DHAVE_CONFIG_H
13777 : ${CONFIG_STATUS=./config.status}
13778 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
13779 echo creating
$CONFIG_STATUS
13780 cat >$CONFIG_STATUS <<EOF
13782 # Generated automatically by configure.
13783 # Run this file to recreate the current configuration.
13784 # This directory was configured as follows,
13785 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13787 # $0 $ac_configure_args
13789 # Compiler output produced by configure, useful for debugging
13790 # configure, is in ./config.log if it exists.
13792 # Files that config.status was made for.
13794 Makefile lib/Makefile lib/posix/Makefile find/Makefile
13795 find/testsuite/Makefile xargs/Makefile xargs/testsuite/Makefile
13796 locate/Makefile intl/Makefile po/Makefile.in doc/Makefile m4/Makefile"
13800 $nls_cv_header_intl:$nls_cv_header_libgt"
13801 config_commands="\\
13802 default-1 default-2 default-3"
13805 \\\`$CONFIG_STATUS' instantiates files from templates according to the
13806 current configuration.
13808 Usage: $CONFIG_STATUS [OPTIONS] FILE...
13810 --recheck Update $CONFIG_STATUS by reconfiguring in the same conditions
13811 --version Print the version of Autoconf and exit
13812 --help Display this help and exit
13813 --file=FILE[:TEMPLATE]
13814 Instantiate the configuration file FILE
13815 --header=FILE[:TEMPLATE]
13816 Instantiate the configuration header FILE
13818 Configuration files:
13821 Configuration headers:
13824 Configuration links:
13827 Configuration commands:
13830 Report bugs to <bug-autoconf@gnu.org>."
13833 $CONFIG_STATUS generated by autoconf version 2.14a.
13834 Configured on host `(hostname || uname -n) 2>/dev/null | sed 1q` by
13835 `echo "$0 $ac_configure_args" | sed 's/[\\"\`\$]/\\\\&/g'`"
13837 # Root of the tmp file names. Use pid to allow concurrent executions.
13839 ac_given_srcdir=$srcdir
13840 ac_given_INSTALL="$INSTALL"
13842 # If no file are specified by the user, then we need to provide default
13843 # value. By we need to know if files were specified by the user.
13845 while test \$# != 0
13849 ac_option=\`echo "\$1" | sed -e 's/=.*//'\`
13850 ac_optarg=\`echo "\$1" | sed -e 's/[^=]*=//'\`
13852 set dummy "\$ac_option" "\$ac_optarg" \${1+"\$@"}
13856 *) # This is not an option, so the user has probably given explicit
13858 ac_need_defaults=false;;
13863 # Handling of the options.
13864 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13865 echo "running \${CONFIG_SHELL-/bin/sh} $0 `echo "$ac_configure_args" | sed 's/[\\"\`\$]/\\\\&/g'` --no-create --no-recursion"
13866 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
13867 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
13868 echo "\$ac_cs_version"; exit 0 ;;
13870 # Conflict between --help and --header
13871 echo "$CONFIG_STATUS: ambiguous option: \$ac_option
13872 Try \\\`$CONFIG_STATUS --help' for more information."; exit 1 ;;
13873 -help | --help | --hel )
13874 echo "\$ac_cs_usage"; exit 0 ;;
13875 --file | --fil | --fi | --f )
13877 CONFIG_FILES="\$CONFIG_FILES \$1"
13878 ac_need_defaults=false;;
13879 --header | --heade | --head | --hea )
13881 CONFIG_HEADERS="\$CONFIG_HEADERS \$1"
13882 ac_need_defaults=false;;
13884 # Handling of arguments.
13885 'Makefile' ) CONFIG_FILES="\$CONFIG_FILES Makefile" ;;
13886 'lib/Makefile' ) CONFIG_FILES="\$CONFIG_FILES lib/Makefile" ;;
13887 'lib/posix/Makefile' ) CONFIG_FILES="\$CONFIG_FILES lib/posix/Makefile" ;;
13888 'find/Makefile' ) CONFIG_FILES="\$CONFIG_FILES find/Makefile" ;;
13889 'find/testsuite/Makefile' ) CONFIG_FILES="\$CONFIG_FILES find/testsuite/Makefile" ;;
13890 'xargs/Makefile' ) CONFIG_FILES="\$CONFIG_FILES xargs/Makefile" ;;
13891 'xargs/testsuite/Makefile' ) CONFIG_FILES="\$CONFIG_FILES xargs/testsuite/Makefile" ;;
13892 'locate/Makefile' ) CONFIG_FILES="\$CONFIG_FILES locate/Makefile" ;;
13893 'intl/Makefile' ) CONFIG_FILES="\$CONFIG_FILES intl/Makefile" ;;
13894 'po/Makefile.in' ) CONFIG_FILES="\$CONFIG_FILES po/Makefile.in" ;;
13895 'doc/Makefile' ) CONFIG_FILES="\$CONFIG_FILES doc/Makefile" ;;
13896 'm4/Makefile' ) CONFIG_FILES="\$CONFIG_FILES m4/Makefile" ;;
13897 '$nls_cv_header_intl' ) CONFIG_LINKS="\$CONFIG_LINKS $nls_cv_header_intl:$nls_cv_header_libgt" ;;
13898 'default-1' ) CONFIG_COMMANDS="\$CONFIG_COMMANDS default-1" ;;
13899 'default-2' ) CONFIG_COMMANDS="\$CONFIG_COMMANDS default-2" ;;
13900 'default-3' ) CONFIG_COMMANDS="\$CONFIG_COMMANDS default-3" ;;
13901 'config.h' ) CONFIG_HEADERS="\$CONFIG_HEADERS config.h" ;;
13903 # This is an error.
13904 -*) echo "$CONFIG_STATUS: unrecognized option: \$1
13905 Try \\\`$CONFIG_STATUS --help' for more information."; exit 1 ;;
13906 *) echo "$CONFIG_STATUS: invalid argument: \$1"; exit 1 ;;
13913 cat >>$CONFIG_STATUS <<\EOF
13914 # If the user did not use the arguments to specify the items to instantiate,
13915 # then the envvar interface is used. Set only those that are not.
13916 if $ac_need_defaults; then
13917 : ${CONFIG_FILES=$config_files}
13918 : ${CONFIG_HEADERS=$config_headers}
13919 : ${CONFIG_LINKS=$config_links}
13920 : ${CONFIG_COMMANDS=$config_commands}
13923 # Trap to remove the temp files.
13924 trap 'rm -fr $ac_cs_root*; exit 1' 1 2 15
13928 cat >>$CONFIG_STATUS <<EOF
13930 # INIT-COMMANDS section.
13934 ac_aux_dir="$ac_aux_dir"
13938 cat >>$CONFIG_STATUS <<EOF
13941 # CONFIG_FILES section.
13944 # No need to generate the scripts if there are no CONFIG_FILES.
13945 # This happens for instance when ./config.status config.h
13946 if test -n "\$CONFIG_FILES"; then
13947 # Protect against being on the right side of a sed subst in config.status.
13948 sed 's/%@/@@/; s/@%/@@/; s/%;t t\$/@;t t/; /@;t t\$/s/[\\\\&%]/\\\\&/g;
13949 s/@@/%@/; s/@@/@%/; s/@;t t\$/%;t t/' >\$ac_cs_root.subs <<\\CEOF
13950 s%@SHELL@%$SHELL%;t t
13951 s%@exec_prefix@%$exec_prefix%;t t
13952 s%@prefix@%$prefix%;t t
13953 s%@program_transform_name@%$program_transform_name%;t t
13954 s%@bindir@%$bindir%;t t
13955 s%@sbindir@%$sbindir%;t t
13956 s%@libexecdir@%$libexecdir%;t t
13957 s%@datadir@%$datadir%;t t
13958 s%@sysconfdir@%$sysconfdir%;t t
13959 s%@sharedstatedir@%$sharedstatedir%;t t
13960 s%@localstatedir@%$localstatedir%;t t
13961 s%@libdir@%$libdir%;t t
13962 s%@includedir@%$includedir%;t t
13963 s%@oldincludedir@%$oldincludedir%;t t
13964 s%@infodir@%$infodir%;t t
13965 s%@mandir@%$mandir%;t t
13966 s%@ECHO_C@%$ECHO_C%;t t
13967 s%@ECHO_N@%$ECHO_N%;t t
13968 s%@ECHO_T@%$ECHO_T%;t t
13969 s%@CFLAGS@%$CFLAGS%;t t
13970 s%@CPPFLAGS@%$CPPFLAGS%;t t
13971 s%@CXXFLAGS@%$CXXFLAGS%;t t
13972 s%@FFLAGS@%$FFLAGS%;t t
13973 s%@DEFS@%$DEFS%;t t
13974 s%@LDFLAGS@%$LDFLAGS%;t t
13975 s%@LIBS@%$LIBS%;t t
13976 s%@host@%$host%;t t
13977 s%@host_alias@%$host_alias%;t t
13978 s%@host_cpu@%$host_cpu%;t t
13979 s%@host_vendor@%$host_vendor%;t t
13980 s%@host_os@%$host_os%;t t
13981 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%;t t
13982 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%;t t
13983 s%@INSTALL_DATA@%$INSTALL_DATA%;t t
13984 s%@PACKAGE@%$PACKAGE%;t t
13985 s%@VERSION@%$VERSION%;t t
13986 s%@ACLOCAL@%$ACLOCAL%;t t
13987 s%@AUTOCONF@%$AUTOCONF%;t t
13988 s%@AUTOMAKE@%$AUTOMAKE%;t t
13989 s%@AUTOHEADER@%$AUTOHEADER%;t t
13990 s%@MAKEINFO@%$MAKEINFO%;t t
13991 s%@AMTAR@%$AMTAR%;t t
13992 s%@install_sh@%$install_sh%;t t
13994 s%@SET_MAKE@%$SET_MAKE%;t t
13995 s%@AMDEP@%$AMDEP%;t t
13996 s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%;t t
13997 s%@DEPDIR@%$DEPDIR%;t t
13998 s%@INCLUDES@%$INCLUDES%;t t
14001 s%@CCDEPMODE@%$CCDEPMODE%;t t
14003 s%@ANSI2KNR@%$ANSI2KNR%;t t
14004 s%@RANLIB@%$RANLIB%;t t
14005 s%@build@%$build%;t t
14006 s%@build_alias@%$build_alias%;t t
14007 s%@build_cpu@%$build_cpu%;t t
14008 s%@build_vendor@%$build_vendor%;t t
14009 s%@build_os@%$build_os%;t t
14010 s%@GETCONF@%$GETCONF%;t t
14011 s%@LIBOBJS@%$LIBOBJS%;t t
14012 s%@GNU_PACKAGE@%$GNU_PACKAGE%;t t
14013 s%@OPTIONAL_BIN_PROGS@%$OPTIONAL_BIN_PROGS%;t t
14014 s%@OPTIONAL_BIN_ZCRIPTS@%$OPTIONAL_BIN_ZCRIPTS%;t t
14016 s%@DF_PROG@%$DF_PROG%;t t
14017 s%@ALLOCA@%$ALLOCA%;t t
14018 s%@USE_NLS@%$USE_NLS%;t t
14019 s%@MSGFMT@%$MSGFMT%;t t
14020 s%@GMSGFMT@%$GMSGFMT%;t t
14021 s%@XGETTEXT@%$XGETTEXT%;t t
14022 s%@GENCAT@%$GENCAT%;t t
14023 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%;t t
14024 s%@CATALOGS@%$CATALOGS%;t t
14025 s%@CATOBJEXT@%$CATOBJEXT%;t t
14026 s%@DATADIRNAME@%$DATADIRNAME%;t t
14027 s%@GMOFILES@%$GMOFILES%;t t
14028 s%@INSTOBJEXT@%$INSTOBJEXT%;t t
14029 s%@INTLDEPS@%$INTLDEPS%;t t
14030 s%@INTLLIBS@%$INTLLIBS%;t t
14031 s%@INTLOBJS@%$INTLOBJS%;t t
14032 s%@POFILES@%$POFILES%;t t
14033 s%@POSUB@%$POSUB%;t t
14034 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%;t t
14035 s%@GT_NO@%$GT_NO%;t t
14036 s%@GT_YES@%$GT_YES%;t t
14037 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%;t t
14043 cat >>$CONFIG_STATUS <<\EOF
14044 # Split the substitutions into bite-sized pieces for seds with
14045 # small command number limits, like on Digital OSF/1 and HP-UX.
14046 ac_max_sed_lines
=48
14047 ac_sed_frag
=1 # Number of current file.
14048 ac_beg
=1 # First line for current file.
14049 ac_end
=$ac_max_sed_lines # Line after last line for current file.
14052 while $ac_more_lines; do
14053 if test $ac_beg -gt 1; then
14054 sed "1,${ac_beg}d; ${ac_end}q" $ac_cs_root.subs
>$ac_cs_root.sfrag
14056 sed "${ac_end}q" $ac_cs_root.subs
>$ac_cs_root.sfrag
14058 if test ! -s $ac_cs_root.sfrag
; then
14059 ac_more_lines
=false
14060 rm -f $ac_cs_root.sfrag
14062 # The purpose of the label and of the branching condition is to
14063 # speed up the sed processing (if there are no `@' at all, there
14064 # is no need to browse any of the substitutions).
14065 # These are the two extra sed commands mentioned above.
14067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $ac_cs_root.sfrag
) >$ac_cs_root.s
$ac_sed_frag
14068 if test -z "$ac_sed_cmds"; then
14069 ac_sed_cmds
="sed -f $ac_cs_root.s$ac_sed_frag"
14071 ac_sed_cmds
="$ac_sed_cmds | sed -f $ac_cs_root.s$ac_sed_frag"
14073 ac_sed_frag
=`expr $ac_sed_frag + 1`
14075 ac_end
=`expr $ac_end + $ac_max_sed_lines`
14078 if test -z "$ac_sed_cmds"; then
14081 fi # test -n "$CONFIG_FILES"
14084 cat >>$CONFIG_STATUS <<\EOF
14085 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
14086 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14088 *:*) ac_file_in
=`echo "$ac_file" | sed 's%[^:]*:%%'`
14089 ac_file
=`echo "$ac_file" | sed 's%:.*%%'` ;;
14090 *) ac_file_in
="${ac_file}.in" ;;
14093 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
14095 # Remove last slash and all that follows it. Not all systems have dirname.
14096 ac_dir
=`echo "$ac_file" | sed 's%/[^/][^/]*$%%'`
14097 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
14098 # The file is in a subdirectory.
14099 test ! -d "$ac_dir" && mkdir
"$ac_dir"
14100 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
14101 # A "../" for each directory in $ac_dir_suffix.
14102 ac_dots
=`echo "$ac_dir_suffix" | sed 's%/[^/]*%../%g'`
14104 ac_dir_suffix
= ac_dots
=
14107 case "$ac_given_srcdir" in
14109 if test -z "$ac_dots"; then top_srcdir
=.
14110 else top_srcdir
=`echo $ac_dots | sed 's%/$%%'`; fi ;;
14111 [\\/]* | ?
:[\\/]* )
14112 srcdir
="$ac_given_srcdir$ac_dir_suffix";
14113 top_srcdir
=$ac_given_srcdir ;;
14114 *) # Relative path.
14115 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
14116 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
14119 case "$ac_given_INSTALL" in
14120 [\\/$
]* | ?
:[\\/]* ) INSTALL
="$ac_given_INSTALL" ;;
14121 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
14124 echo creating
"$ac_file"
14126 configure_input
="Generated automatically from `echo $ac_file_in |
14127 sed 's%.*/%%'` by configure."
14129 *[Mm
]akefile
*) ac_comsub
="1i\\
14130 # $configure_input" ;;
14134 # Don't redirect the output to AC_FILE directly: use `mv' so that updating
14135 # is atomic, and doesn't need trapping.
14136 ac_file_inputs
=`echo "$ac_file_in" |
14137 sed -e "s%^%$ac_given_srcdir/%;s%:% $ac_given_srcdir/%g"`
14138 for ac_file_input
in $ac_file_inputs;
14140 test -f "$ac_file_input" ||
14141 { echo "configure: error: cannot find input file \`$ac_file_input'" 1>&2; exit 1; }
14144 cat >>$CONFIG_STATUS <<EOF
14149 cat >>$CONFIG_STATUS <<\EOF
14151 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14152 s
%@configure_input@
%$configure_input%;t t
14153 s
%@srcdir@
%$srcdir%;t t
14154 s
%@top_srcdir@
%$top_srcdir%;t t
14155 s
%@INSTALL@
%$INSTALL%;t t
14156 " $ac_file_inputs | (eval "$ac_sed_cmds") >$ac_cs_root.out
14157 mv $ac_cs_root.out $ac_file
14160 rm -f $ac_cs_root.s*
14162 cat >>$CONFIG_STATUS <<\EOF
14165 # CONFIG_HEADER section.
14168 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
14169 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14171 # ac_d sets the value in "#define NAME VALUE" lines.
14172 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14173 ac_dB
='[ ].*$%\1#\2'
14176 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14177 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14178 ac_uB
='$%\1#\2define\3'
14182 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
14183 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14185 *:*) ac_file_in
=`echo "$ac_file" | sed 's%[^:]*:%%'`
14186 ac_file
=`echo "$ac_file" | sed 's%:.*%%'` ;;
14187 *) ac_file_in
="${ac_file}.in" ;;
14190 echo creating
$ac_file
14192 rm -f $ac_cs_root.frag
$ac_cs_root.
in $ac_cs_root.out
14193 ac_file_inputs
=`echo "$ac_file_in" |
14194 sed -e "s%^%$ac_given_srcdir/%;s%:% $ac_given_srcdir/%g"`
14195 for ac_file_input
in $ac_file_inputs;
14197 test -f "$ac_file_input" ||
14198 { echo "configure: error: cannot find input file \`$ac_file_input'" 1>&2; exit 1; }
14200 # Remove the trailing spaces.
14201 sed -e 's/[ ]*$//' $ac_file_inputs >$ac_cs_root.
in
14205 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14206 # `conftest.undefs', that substitutes the proper values into
14207 # config.h.in to produce config.h. The first handles `#define'
14208 # templates, and the second `#undef' templates.
14209 # And first: Protect against being on the right side of a sed subst in
14210 # config.status. Protect against being in an unquoted here document
14211 # in config.status.
14212 rm -f conftest.defines conftest.undefs
14213 cat >$ac_cs_root.hdr
<<\EOF
14218 s%^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$%${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD}%gp
14220 s%^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
14223 # If some macros were called several times there might be several times
14224 # the same #defines, which is useless. Nevertheless, we may not want to
14225 # sort them, since we want the *last* AC_DEFINE to be honored.
14226 uniq confdefs.h | sed -n -f $ac_cs_root.hdr >conftest.defines
14227 sed -e 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14228 rm -f $ac_cs_root.hdr
14230 # This sed command replaces #undef with comments. This is necessary, for
14231 # example, in the case of _POSIX_SOURCE, which is predefined and required
14232 # on some systems where configure will not decide to define it.
14233 cat >>conftest.undefs <<\EOF
14234 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
14237 # Break up conftest.defines because some shells have a limit on the size
14238 # of here documents, and old seds have small limits too (100 cmds).
14239 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14240 echo ' if egrep "^[ ]*#[ ]*define" $ac_cs_root.in >/dev/null; then' >>$CONFIG_STATUS
14241 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14242 echo ' :' >>$CONFIG_STATUS
14243 rm -f conftest.tail
14244 while grep . conftest.defines >/dev/null
14246 # Write a limited-size here document to $ac_cs_root.frag.
14247 echo ' cat >$ac_cs_root.frag <<CEOF' >>$CONFIG_STATUS
14248 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14249 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14251 sed -f $ac_cs_root.frag $ac_cs_root.in >$ac_cs_root.out
14252 rm -f $ac_cs_root.in
14253 mv $ac_cs_root.out $ac_cs_root.in
14255 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14256 rm -f conftest.defines
14257 mv conftest.tail conftest.defines
14259 rm -f conftest.defines
14260 echo ' fi # egrep' >>$CONFIG_STATUS
14261 echo >>$CONFIG_STATUS
14263 # Break up conftest.undefs because some shells have a limit on the size
14264 # of here documents, and old seds have small limits too (100 cmds).
14265 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14266 rm -f conftest.tail
14267 while grep . conftest.undefs >/dev/null
14269 # Write a limited-size here document to $ac_cs_root.frag.
14270 echo ' cat >$ac_cs_root.frag <<CEOF' >>$CONFIG_STATUS
14271 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14272 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14274 sed -f $ac_cs_root.frag $ac_cs_root.in >$ac_cs_root.out
14275 rm -f $ac_cs_root.in
14276 mv $ac_cs_root.out $ac_cs_root.in
14278 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14279 rm -f conftest.undefs
14280 mv conftest.tail conftest.undefs
14282 rm -f conftest.undefs
14284 cat >>$CONFIG_STATUS <<\EOF
14285 rm -f $ac_cs_root.frag $ac_cs_root.h
14286 echo "/* $ac_file. Generated automatically by configure. */" >$ac_cs_root.h
14287 cat $ac_cs_root.in >>$ac_cs_root.h
14288 rm -f $ac_cs_root.in
14289 if cmp -s $ac_file $ac_cs_root.h 2>/dev/null; then
14290 echo "$ac_file is unchanged"
14291 rm -f $ac_cs_root.h
14293 # Remove last slash and all that follows it. Not all systems have dirname.
14294 ac_dir=`echo "$ac_file" |
sed 's%/[^/][^/]*$%%'`
14295 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14296 # The file is in a subdirectory.
14297 test ! -d "$ac_dir" && mkdir "$ac_dir"
14300 mv $ac_cs_root.h $ac_file
14304 cat >>$CONFIG_STATUS <<\EOF
14307 # CONFIG_LINKS section.
14309 srcdir=$ac_given_srcdir
14311 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
14312 ac_dest=`echo "$ac_file" |
sed 's%:.*%%'`
14313 ac_source=`echo "$ac_file" |
sed 's%[^:]*:%%'`
14315 echo "linking $srcdir/$ac_source to $ac_dest"
14317 if test ! -r $srcdir/$ac_source; then
14318 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
14322 # Make relative symlinks.
14323 # Remove last slash and all that follows it. Not all systems have dirname.
14324 ac_dest_dir=`echo $ac_dest |
sed 's%/[^/][^/]*$%%'`
14325 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
14326 # The dest file is in a subdirectory.
14327 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
14328 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
14329 # A "../" for each directory in $ac_dest_dir_suffix.
14330 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
14332 ac_dest_dir_suffix= ac_dots=
14336 [\\/$]* | ?:[\\/]* ) ac_rel_source="$srcdir/$ac_source" ;;
14337 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
14340 # Make a symlink if possible; otherwise try a hard link.
14341 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
14342 ln $srcdir/$ac_source $ac_dest; then :
14344 { echo "configure: error: cannot link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
14348 cat >>$CONFIG_STATUS <<\EOF
14351 # CONFIG_COMMANDS section.
14353 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14354 ac_dest=`echo "$ac_file" |
sed 's%:.*%%'`
14355 ac_source=`echo "$ac_file" |
sed 's%[^:]*:%%'`
14358 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
14360 test x"$AMDEP" != x"" ||
14361 for mf in $CONFIG_FILES; do
14363 Makefile) dirpart=.;;
14364 */Makefile) dirpart=`echo "$mf" |
sed -e 's|/[^/]*$||'`;;
14367 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
14368 # Extract the definition of DEP_FILES from the Makefile without
14370 DEPDIR=`sed -n -e '/^DEPDIR
= / s
///p
' < "$mf"`
14371 test -z "$DEPDIR" && continue
14372 # When using ansi2knr, U may be empty or an underscore; expand it
14373 U=`sed -n -e '/^U
= / s
///p
' < "$mf"`
14374 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
14375 # We invoke sed twice because it is the simplest approach to
14376 # changing $(DEPDIR) to its actual value in the expansion.
14377 for file in `sed -n -e '
14378 /^DEP_FILES
= .
*\\\\$
/ {
14387 /^DEP_FILES
= / s
/^DEP_FILES
= //p
' < "$mf" | \
14388 sed -e 's
/\$
(DEPDIR
)/'"$DEPDIR"'/g
' -e 's
/\
$U/'"$U"'/g
'`; do
14389 # Make sure the directory exists.
14390 test -f "$dirpart/$file" && continue
14391 fdir=`echo "$file" | sed -e 's|
/[^
/]*$||
'`
14392 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
14393 # echo "creating $dirpart/$file"
14394 echo '# dummy' > "$dirpart/$file"
14398 default-3
) case "$CONFIG_FILES" in *po
/Makefile.
in*)
14399 sed -e "/POTFILES =/r po/POTFILES" po
/Makefile.
in > po
/Makefile
14405 cat >>$CONFIG_STATUS <<\EOF
14409 chmod +x
$CONFIG_STATUS
14410 rm -fr confdefs
* $ac_clean_files
14411 trap 'exit 1' 1 2 15
14413 test "$no_create" = yes ||
$SHELL $CONFIG_STATUS ||
exit 1