2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.49f.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
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.
10 # Be Bourne compatible
11 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
14 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
18 # Name of the executable.
19 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
21 if expr a
: '\(a\)' >/dev
/null
2>&1; then
27 rm -f conf$$ conf$$.exe conf$$.
file
29 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
30 # We could just check for DJGPP; but this test a) works b) is more generic
31 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
32 if test -f conf$$.exe
; then
33 # Don't use ln at all; we don't have any links
38 elif ln conf$$.
file conf$$
2>/dev
/null
; then
43 rm -f conf$$ conf$$.exe conf$$.
file
45 as_executable_p
="test -f"
47 # Support unset when possible.
48 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
55 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
56 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
57 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
58 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
59 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
60 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
61 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
62 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
65 # We need space, tab and new line, in precisely that order.
71 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
74 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
75 # so uname gets run too.
76 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
83 ac_default_prefix
=/usr
/local
87 SHELL
=${CONFIG_SHELL-/bin/sh}
89 # Maximum number of lines to put in a shell here document.
90 # This variable seems obsolete. It should probably be removed, and
91 # only ac_max_sed_lines should be used.
92 : ${ac_max_here_lines=38}
94 # Avoid depending upon Character Ranges.
95 ac_cr_az
='abcdefghijklmnopqrstuvwxyz'
96 ac_cr_AZ
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
98 ac_cr_alnum
=$ac_cr_az$ac_cr_AZ$ac_cr_09
100 # Sed expression to map a string onto a valid sh and CPP variable names.
101 ac_tr_sh
="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
102 ac_tr_cpp
="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
104 ac_unique_file
="find/pred.c"
105 # Factoring default headers for most tests.
106 ac_includes_default
="\
108 #include <sys/types.h>
109 #include <sys/stat.h>
119 # if !STDC_HEADERS && HAVE_MEMORY_H
125 # include <strings.h>
129 # include <inttypes.h>
135 # Initialize some variables set by options.
137 ac_init_version
=false
138 # The variables have the same names as the options, with
139 # dashes changed to underlines.
147 program_transform_name
=s
,x
,x
,
155 # Installation directory options.
156 # These are left unexpanded so users can "make install exec_prefix=/foo"
157 # and all the variables that are supposed to be based on exec_prefix
158 # by default will actually change.
159 # Use braces instead of parens because sh, perl, etc. also accept them.
160 bindir
='${exec_prefix}/bin'
161 sbindir
='${exec_prefix}/sbin'
162 libexecdir
='${exec_prefix}/libexec'
163 datadir
='${prefix}/share'
164 sysconfdir
='${prefix}/etc'
165 sharedstatedir
='${prefix}/com'
166 localstatedir
='${prefix}/var'
167 libdir
='${exec_prefix}/lib'
168 includedir
='${prefix}/include'
169 oldincludedir
='/usr/include'
170 infodir
='${prefix}/info'
171 mandir
='${prefix}/man'
173 # Identity of this package.
183 # If the previous option needs an argument, assign it.
184 if test -n "$ac_prev"; then
185 eval "$ac_prev=\$ac_option"
190 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
192 # Accept the important Cygnus configure options, so we can diagnose typos.
196 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
198 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
201 -build |
--build |
--buil |
--bui |
--bu)
202 ac_prev
=build_alias
;;
203 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
204 build_alias
=$ac_optarg ;;
206 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
207 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
208 ac_prev
=cache_file
;;
209 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
210 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
211 cache_file
=$ac_optarg ;;
214 cache_file
=config.cache
;;
216 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
218 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
220 datadir
=$ac_optarg ;;
222 -disable-* |
--disable-*)
223 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
224 # Reject names that are not valid shell variable names.
225 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev
/null
&&
226 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
227 { (exit 1); exit 1; }; }
228 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
229 eval "enable_$ac_feature=no" ;;
231 -enable-* |
--enable-*)
232 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
233 # Reject names that are not valid shell variable names.
234 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev
/null
&&
235 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
236 { (exit 1); exit 1; }; }
237 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
239 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
242 eval "enable_$ac_feature='$ac_optarg'" ;;
244 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
245 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
246 |
--exec |
--exe |
--ex)
247 ac_prev
=exec_prefix
;;
248 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
249 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
250 |
--exec=* |
--exe=* |
--ex=*)
251 exec_prefix
=$ac_optarg ;;
253 -gas |
--gas |
--ga |
--g)
254 # Obsolete; use --with-gas.
257 -help |
--help |
--hel |
--he |
-h)
259 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
260 ac_init_help
=recursive
;;
261 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
262 ac_init_help
=short
;;
264 -host |
--host |
--hos |
--ho)
265 ac_prev
=host_alias
;;
266 -host=* |
--host=* |
--hos=* |
--ho=*)
267 host_alias
=$ac_optarg ;;
269 -includedir |
--includedir |
--includedi |
--included |
--include \
270 |
--includ |
--inclu |
--incl |
--inc)
271 ac_prev
=includedir
;;
272 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
273 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
274 includedir
=$ac_optarg ;;
276 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
278 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
279 infodir
=$ac_optarg ;;
281 -libdir |
--libdir |
--libdi |
--libd)
283 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
286 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
287 |
--libexe |
--libex |
--libe)
288 ac_prev
=libexecdir
;;
289 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
290 |
--libexe=* |
--libex=* |
--libe=*)
291 libexecdir
=$ac_optarg ;;
293 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
294 |
--localstate |
--localstat |
--localsta |
--localst \
295 |
--locals |
--local |
--loca |
--loc |
--lo)
296 ac_prev
=localstatedir
;;
297 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
298 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
299 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
300 localstatedir
=$ac_optarg ;;
302 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
304 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
308 # Obsolete; use --without-fp.
311 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
315 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
316 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
319 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
320 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
321 |
--oldin |
--oldi |
--old |
--ol |
--o)
322 ac_prev
=oldincludedir
;;
323 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
324 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
325 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
326 oldincludedir
=$ac_optarg ;;
328 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
330 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
333 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
334 |
--program-pre |
--program-pr |
--program-p)
335 ac_prev
=program_prefix
;;
336 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
337 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
338 program_prefix
=$ac_optarg ;;
340 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
341 |
--program-suf |
--program-su |
--program-s)
342 ac_prev
=program_suffix
;;
343 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
344 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
345 program_suffix
=$ac_optarg ;;
347 -program-transform-name |
--program-transform-name \
348 |
--program-transform-nam |
--program-transform-na \
349 |
--program-transform-n |
--program-transform- \
350 |
--program-transform |
--program-transfor \
351 |
--program-transfo |
--program-transf \
352 |
--program-trans |
--program-tran \
353 |
--progr-tra |
--program-tr |
--program-t)
354 ac_prev
=program_transform_name
;;
355 -program-transform-name=* |
--program-transform-name=* \
356 |
--program-transform-nam=* |
--program-transform-na=* \
357 |
--program-transform-n=* |
--program-transform-=* \
358 |
--program-transform=* |
--program-transfor=* \
359 |
--program-transfo=* |
--program-transf=* \
360 |
--program-trans=* |
--program-tran=* \
361 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
362 program_transform_name
=$ac_optarg ;;
364 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
365 |
-silent |
--silent |
--silen |
--sile |
--sil)
368 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
370 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
372 sbindir
=$ac_optarg ;;
374 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
375 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
376 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
378 ac_prev
=sharedstatedir
;;
379 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
380 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
381 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
383 sharedstatedir
=$ac_optarg ;;
385 -site |
--site |
--sit)
387 -site=* |
--site=* |
--sit=*)
390 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
392 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
395 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
396 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
397 ac_prev
=sysconfdir
;;
398 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
399 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
400 sysconfdir
=$ac_optarg ;;
402 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
403 ac_prev
=target_alias
;;
404 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
405 target_alias
=$ac_optarg ;;
407 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
410 -version |
--version |
--versio |
--versi |
--vers |
-V)
414 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
415 # Reject names that are not valid shell variable names.
416 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev
/null
&&
417 { echo "$as_me: error: invalid package name: $ac_package" >&2
418 { (exit 1); exit 1; }; }
419 ac_package
=`echo $ac_package| sed 's/-/_/g'`
421 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
424 eval "with_$ac_package='$ac_optarg'" ;;
426 -without-* |
--without-*)
427 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
428 # Reject names that are not valid shell variable names.
429 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev
/null
&&
430 { echo "$as_me: error: invalid package name: $ac_package" >&2
431 { (exit 1); exit 1; }; }
432 ac_package
=`echo $ac_package | sed 's/-/_/g'`
433 eval "with_$ac_package=no" ;;
436 # Obsolete; use --with-x.
439 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
440 |
--x-incl |
--x-inc |
--x-in |
--x-i)
441 ac_prev
=x_includes
;;
442 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
443 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
444 x_includes
=$ac_optarg ;;
446 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
447 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
448 ac_prev
=x_libraries
;;
449 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
450 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
451 x_libraries
=$ac_optarg ;;
453 -*) { echo "$as_me: error: unrecognized option: $ac_option
454 Try \`$0 --help' for more information." >&2
455 { (exit 1); exit 1; }; }
459 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
460 # Reject names that are not valid shell variable names.
461 expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev
/null
&&
462 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
463 { (exit 1); exit 1; }; }
464 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
465 eval "$ac_envvar='$ac_optarg'"
469 # FIXME: should be removed in autoconf 3.0.
470 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
471 expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev
/null
&&
472 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
473 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
479 if test -n "$ac_prev"; then
480 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
481 { echo "$as_me: error: missing argument to $ac_option" >&2
482 { (exit 1); exit 1; }; }
485 # Be sure to have absolute paths.
486 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
487 localstatedir libdir includedir oldincludedir infodir mandir \
490 eval ac_val
=$
`echo $ac_var`
492 [\\/$
]* | ?
:[\\/]* ) ;;
494 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
495 { (exit 1); exit 1; }; };;
499 # There might be people who depend on the old broken behavior: `$host'
500 # used to hold the argument of --host etc.
505 # FIXME: should be removed in autoconf 3.0.
506 if test "x$host_alias" != x
; then
507 if test "x$build_alias" = x
; then
508 cross_compiling
=maybe
509 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
510 If a cross compiler is detected then cross compile mode will be used." >&2
511 elif test "x$build_alias" != "x$host_alias"; then
517 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
519 test "$silent" = yes && exec 6>/dev
/null
521 # Find the source files, if location was not specified.
522 if test -z "$srcdir"; then
523 ac_srcdir_defaulted
=yes
524 # Try the directory containing this script, then its parent.
526 ac_confdir
=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
529 if test ! -r $srcdir/$ac_unique_file; then
533 ac_srcdir_defaulted
=no
535 if test ! -r $srcdir/$ac_unique_file; then
536 if test "$ac_srcdir_defaulted" = yes; then
537 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
538 { (exit 1); exit 1; }; }
540 { echo "$as_me: error: cannot find sources in $srcdir" >&2
541 { (exit 1); exit 1; }; }
544 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
545 ac_env_build_alias_set
=${build_alias+set}
546 ac_env_build_alias_value
=$build_alias
547 ac_cv_env_build_alias_set
=${build_alias+set}
548 ac_cv_env_build_alias_value
=$build_alias
549 ac_env_host_alias_set
=${host_alias+set}
550 ac_env_host_alias_value
=$host_alias
551 ac_cv_env_host_alias_set
=${host_alias+set}
552 ac_cv_env_host_alias_value
=$host_alias
553 ac_env_target_alias_set
=${target_alias+set}
554 ac_env_target_alias_value
=$target_alias
555 ac_cv_env_target_alias_set
=${target_alias+set}
556 ac_cv_env_target_alias_value
=$target_alias
557 ac_env_CC_set
=${CC+set}
559 ac_cv_env_CC_set
=${CC+set}
560 ac_cv_env_CC_value
=$CC
561 ac_env_CFLAGS_set
=${CFLAGS+set}
562 ac_env_CFLAGS_value
=$CFLAGS
563 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
564 ac_cv_env_CFLAGS_value
=$CFLAGS
565 ac_env_LDFLAGS_set
=${LDFLAGS+set}
566 ac_env_LDFLAGS_value
=$LDFLAGS
567 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
568 ac_cv_env_LDFLAGS_value
=$LDFLAGS
569 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
570 ac_env_CPPFLAGS_value
=$CPPFLAGS
571 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
572 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
573 ac_env_CPP_set
=${CPP+set}
574 ac_env_CPP_value
=$CPP
575 ac_cv_env_CPP_set
=${CPP+set}
576 ac_cv_env_CPP_value
=$CPP
579 # Report the --help message.
581 if test "$ac_init_help" = "long"; then
582 # Omit some internal or obsolete options to make the list less imposing.
583 # This message is too long to be a string in the A/UX 3.1 sh.
585 \`configure' configures this package to adapt to many kinds of systems.
587 Usage: $0 [OPTION]... [VAR=VALUE]...
589 To assign environment variables (e.g., CC, CFLAGS...), specify them as
590 VAR=VALUE. See below for descriptions of some of the useful variables.
592 Defaults for the options are specified in brackets.
595 -h, --help display this help and exit
596 --help=short display options specific to this package
597 --help=recursive display the short help of all the included packages
598 -V, --version display version information and exit
599 -q, --quiet, --silent do not print \`checking...' messages
600 --cache-file=FILE cache test results in FILE [disabled]
601 -C, --config-cache alias for \`--cache-file=config.cache'
602 -n, --no-create do not create output files
603 --srcdir=DIR find the sources in DIR [configure dir or \`..']
608 Installation directories:
609 --prefix=PREFIX install architecture-independent files in PREFIX
611 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
614 By default, \`make install' will install all the files in
615 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
616 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
617 for instance \`--prefix=\$HOME'.
619 For better control, use the options below.
621 Fine tuning of the installation directories:
622 --bindir=DIR user executables [EPREFIX/bin]
623 --sbindir=DIR system admin executables [EPREFIX/sbin]
624 --libexecdir=DIR program executables [EPREFIX/libexec]
625 --datadir=DIR read-only architecture-independent data [PREFIX/share]
626 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
627 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
628 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
629 --libdir=DIR object code libraries [EPREFIX/lib]
630 --includedir=DIR C header files [PREFIX/include]
631 --oldincludedir=DIR C header files for non-gcc [/usr/include]
632 --infodir=DIR info documentation [PREFIX/info]
633 --mandir=DIR man documentation [PREFIX/man]
639 --program-prefix=PREFIX prepend PREFIX to installed program names
640 --program-suffix=SUFFIX append SUFFIX to installed program names
641 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
644 --build=BUILD configure
for building on BUILD
[guessed
]
645 --host=HOST build programs to run on HOST
[BUILD
]
649 if test -n "$ac_init_help"; then
654 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
655 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
656 --disable-dependency-tracking Speeds up one-time builds
657 --enable-dependency-tracking Do not reject slow dependency extractors
658 --enable-id-cache cache all UIDs
& GIDs
; avoid
if using NIS or Hesiod
659 --disable-largefile omit support
for large files
660 --disable-assert turn off assertions
661 --disable-nls do not use Native Language Support
664 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
665 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
666 --without-included-regex don
't compile regex; this is the default on
667 systems with version 2 of the GNU C library
668 (use with caution on other system)
669 --with-included-gettext use the GNU gettext library included here
670 --with-catgets use catgets functions if available
672 Some influential environment variables:
673 CC C compiler command
674 CFLAGS C compiler flags
675 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
676 nonstandard directory <lib dir>
677 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
678 headers in a nonstandard directory <include dir>
681 Use these variables to override the choices made by `configure' or to
help
682 it to
find libraries and programs with nonstandard names
/locations.
687 if test "$ac_init_help" = "recursive"; then
688 # If there are subdirs, report their specific --help.
690 for ac_subdir
in : $ac_subdirs_all; do test "x$ac_subdir" = x
: && continue
692 # A "../" for each directory in /$ac_subdir.
693 ac_dots
=`echo $ac_subdir |
694 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
697 .
) # No --srcdir option. We are building in place.
698 ac_sub_srcdir
=$srcdir ;;
699 [\\/]* | ?
:[\\/]* ) # Absolute path.
700 ac_sub_srcdir
=$srcdir/$ac_subdir ;;
702 ac_sub_srcdir
=$ac_dots$srcdir/$ac_subdir ;;
705 # Check for guested configure; otherwise get Cygnus style configure.
706 if test -f $ac_sub_srcdir/configure.gnu
; then
708 $SHELL $ac_sub_srcdir/configure.gnu
--help=recursive
709 elif test -f $ac_sub_srcdir/configure
; then
711 $SHELL $ac_sub_srcdir/configure
--help=recursive
712 elif test -f $ac_sub_srcdir/configure.ac ||
713 test -f $ac_sub_srcdir/configure.
in; then
717 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
723 test -n "$ac_init_help" && exit 0
724 if $ac_init_version; then
727 Copyright
1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
728 Free Software Foundation
, Inc.
729 This configure
script is free software
; the Free Software Foundation
730 gives unlimited permission to copy
, distribute and modify it.
736 This file contains any messages produced by compilers while
737 running configure, to aid debugging if configure makes a mistake.
739 It was created by $as_me, which was
740 generated by GNU Autoconf 2.49f. Invocation command line was
751 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
752 uname -m = `(uname -m) 2>/dev/null || echo unknown`
753 uname -r = `(uname -r) 2>/dev/null || echo unknown`
754 uname -s = `(uname -s) 2>/dev/null || echo unknown`
755 uname -v = `(uname -v) 2>/dev/null || echo unknown`
757 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
758 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
760 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
761 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
762 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
763 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
764 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
765 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
766 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
780 # Keep a trace of the command line.
781 # Strip out --no-create and --no-recursion so they do not pile up.
782 # Also quote any args containing shell meta-characters.
788 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
789 |
--no-cr |
--no-c) ;;
790 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
791 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
792 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
793 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
794 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
796 *) ac_configure_args
="$ac_configure_args$ac_sep$ac_arg"
799 # Get rid of the leading space.
802 # When interrupted or exit'd, cleanup temporary files, and complete
803 # config.log. We remove comments because anyway the quotes in there
804 # would cause problems or look ugly.
806 # Save into config.log some information that might help in debugging.
808 echo "## ----------------- ##" >&5
809 echo "## Cache variables. ##" >&5
810 echo "## ----------------- ##" >&5
812 # The following way of writing the cache mishandles newlines in values,
815 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
818 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
819 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
823 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
827 sed "/^$/d" confdefs.h >conftest.log
828 if test -s conftest.log; then
830 echo "## ------------ ##" >&5
831 echo "## confdefs.h. ##" >&5
832 echo "## ------------ ##" >&5
837 test "$ac_signal" != 0 &&
838 echo "$as_me: caught signal $ac_signal" >&5
839 echo "$as_me: exit $exit_status" >&5
840 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
843 for ac_signal
in 1 2 13 15; do
844 trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
848 # confdefs.h avoids OS command line length limits that DEFS can exceed.
849 rm -rf conftest
* confdefs.h
850 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
853 # Let the site file select an alternate cache file if it wants to.
854 # Prefer explicitly selected file to automatically selected ones.
855 if test -z "$CONFIG_SITE"; then
856 if test "x$prefix" != xNONE
; then
857 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
859 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
862 for ac_site_file
in $CONFIG_SITE; do
863 if test -r "$ac_site_file"; then
864 { echo "$as_me:864: loading site script $ac_site_file" >&5
865 echo "$as_me: loading site script $ac_site_file" >&6;}
866 cat "$ac_site_file" >&5
871 if test -r "$cache_file"; then
872 # Some versions of bash will fail to source /dev/null (special
873 # files actually), so we avoid doing that.
874 if test -f "$cache_file"; then
875 { echo "$as_me:875: loading cache $cache_file" >&5
876 echo "$as_me: loading cache $cache_file" >&6;}
878 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
883 { echo "$as_me:883: creating cache $cache_file" >&5
884 echo "$as_me: creating cache $cache_file" >&6;}
888 # Check that the precious variables saved in the cache have kept the same
890 ac_suggest_removing_cache
=false
891 for ac_var
in `(set) 2>&1 |
892 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
893 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
894 eval ac_new_set
=\
$ac_env_${ac_var}_set
895 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
896 eval ac_new_val
="\$ac_env_${ac_var}_value"
897 case $ac_old_set,$ac_new_set in
899 { echo "$as_me:899: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
900 echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
901 ac_suggest_removing_cache
=: ;;
903 { echo "$as_me:903: WARNING: \`$ac_var' was not set in the previous run" >&5
904 echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
905 ac_suggest_removing_cache
=: ;;
908 if test "x$ac_old_val" != "x$ac_new_val"; then
909 { echo "$as_me:909: WARNING: \`$ac_var' has changed since the previous run:" >&5
910 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
911 { echo "$as_me:911: WARNING: former value: $ac_old_val" >&5
912 echo "$as_me: WARNING: former value: $ac_old_val" >&2;}
913 { echo "$as_me:913: WARNING: current value: $ac_new_val" >&5
914 echo "$as_me: WARNING: current value: $ac_new_val" >&2;}
915 ac_suggest_removing_cache
=:
919 if $ac_suggest_removing_cache; then
920 { echo "$as_me:920: WARNING: changes in the environment can compromise the build" >&5
921 echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
922 { echo "$as_me:922: WARNING: consider removing $cache_file and starting over" >&5
923 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
927 ac_cpp
='$CPP $CPPFLAGS'
928 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
929 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
930 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
932 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
933 *c
*,-n*) ECHO_N
= ECHO_C
='
935 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
936 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
938 echo "#! $SHELL" >conftest.sh
939 echo "exit 0" >>conftest.sh
941 if { (echo "$as_me:941: PATH=\".;.\"; conftest.sh") >&5
942 (PATH
=".;."; conftest.sh
) 2>&5
944 echo "$as_me:944: \$? = $ac_status" >&5
945 (exit $ac_status); }; then
946 ac_path_separator
=';'
950 PATH_SEPARATOR
="$ac_path_separator"
953 ac_config_headers
="$ac_config_headers config.h"
955 ac_config_commands
="$ac_config_commands default-1"
958 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
959 if test -f $ac_dir/install-sh
; then
961 ac_install_sh
="$ac_aux_dir/install-sh -c"
963 elif test -f $ac_dir/install.sh
; then
965 ac_install_sh
="$ac_aux_dir/install.sh -c"
967 elif test -f $ac_dir/shtool
; then
969 ac_install_sh
="$ac_aux_dir/shtool install -c"
973 if test -z "$ac_aux_dir"; then
974 { { echo "$as_me:974: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
975 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
976 { (exit 1); exit 1; }; }
978 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
979 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
980 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
982 # Make sure we can run config.sub.
983 $ac_config_sub sun4
>/dev
/null
2>&1 ||
984 { { echo "$as_me:984: error: cannot run $ac_config_sub" >&5
985 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
986 { (exit 1); exit 1; }; }
988 echo "$as_me:988: checking build system type" >&5
989 echo $ECHO_N "checking build system type... $ECHO_C" >&6
990 if test "${ac_cv_build+set}" = set; then
991 echo $ECHO_N "(cached) $ECHO_C" >&6
993 ac_cv_build_alias
=$build_alias
994 test -z "$ac_cv_build_alias" &&
995 ac_cv_build_alias
=`$ac_config_guess`
996 test -z "$ac_cv_build_alias" &&
997 { { echo "$as_me:997: error: cannot guess build type; you must specify one" >&5
998 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
999 { (exit 1); exit 1; }; }
1000 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1001 { { echo "$as_me:1001: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1002 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1003 { (exit 1); exit 1; }; }
1006 echo "$as_me:1006: result: $ac_cv_build" >&5
1007 echo "${ECHO_T}$ac_cv_build" >&6
1009 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1010 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1011 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1013 echo "$as_me:1013: checking host system type" >&5
1014 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1015 if test "${ac_cv_host+set}" = set; then
1016 echo $ECHO_N "(cached) $ECHO_C" >&6
1018 ac_cv_host_alias
=$host_alias
1019 test -z "$ac_cv_host_alias" &&
1020 ac_cv_host_alias
=$ac_cv_build_alias
1021 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1022 { { echo "$as_me:1022: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1023 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1024 { (exit 1); exit 1; }; }
1027 echo "$as_me:1027: result: $ac_cv_host" >&5
1028 echo "${ECHO_T}$ac_cv_host" >&6
1030 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1031 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1032 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1034 ALL_LINGUAS
="da de es et fr gl id it ko nl pl pt_BR ru sv"
1036 # Find a good install program. We prefer a C program (faster),
1037 # so one script is as good as another. But avoid the broken or
1038 # incompatible versions:
1039 # SysV /etc/install, /usr/sbin/install
1040 # SunOS /usr/etc/install
1041 # IRIX /sbin/install
1043 # AmigaOS /C/install, which installs bootblocks on floppy discs
1044 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1045 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1046 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1047 # ./install, which can be erroneously created by make from ./install.sh.
1048 echo "$as_me:1048: checking for a BSD compatible install" >&5
1049 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1050 if test -z "$INSTALL"; then
1051 if test "${ac_cv_path_install+set}" = set; then
1052 echo $ECHO_N "(cached) $ECHO_C" >&6
1054 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1055 for ac_dir
in $PATH; do
1057 # Account for people who put trailing slashes in PATH elements.
1059 / | .
/ | .
// |
/cC
/* \
1060 |
/etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* \
1063 # OSF1 and SCO ODT 3.0 have their own names for install.
1064 # Don't use installbsd from OSF since it installs stuff as root
1066 for ac_prog
in ginstall scoinst
install; do
1067 if $as_executable_p "$ac_dir/$ac_prog"; then
1068 if test $ac_prog = install &&
1069 grep dspmsg
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
1070 # AIX install. It has an incompatible calling convention.
1072 elif test $ac_prog = install &&
1073 grep pwplus
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
1074 # program-specific install script used by HP pwplus--don't use.
1077 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1087 if test "${ac_cv_path_install+set}" = set; then
1088 INSTALL
=$ac_cv_path_install
1090 # As a last resort, use the slow shell script. We don't cache a
1091 # path for INSTALL within a source directory, because that will
1092 # break other packages using the cache if that directory is
1093 # removed, or if the path is relative.
1094 INSTALL
=$ac_install_sh
1097 echo "$as_me:1097: result: $INSTALL" >&5
1098 echo "${ECHO_T}$INSTALL" >&6
1100 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1101 # It thinks the first close brace ends the variable substitution.
1102 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1104 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1106 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1108 echo "$as_me:1108: checking whether build environment is sane" >&5
1109 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1112 echo timestamp
> conftest.
file
1113 # Do `set' in a subshell so we don't clobber the current shell's
1114 # arguments. Must try -L first in case configure is actually a
1115 # symlink; some systems play weird games with the mod time of symlinks
1116 # (eg FreeBSD returns the mod time of the symlink's containing
1119 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1120 if test "$*" = "X"; then
1122 set X
`ls -t $srcdir/configure conftest.file`
1125 if test "$*" != "X $srcdir/configure conftest.file" \
1126 && test "$*" != "X conftest.file $srcdir/configure"; then
1128 # If neither matched, then we have a broken ls. This can happen
1129 # if, for instance, CONFIG_SHELL is bash and it inherits a
1130 # broken ls alias from the environment. This has actually
1131 # happened. Such a system could not be considered "sane".
1132 { { echo "$as_me:1132: error: ls -t appears to fail. Make sure there is not a broken
1133 alias in your environment" >&5
1134 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1135 alias in your environment" >&2;}
1136 { (exit 1); exit 1; }; }
1139 test "$2" = conftest.
file
1145 { { echo "$as_me:1145: error: newly created file is older than distributed files!
1146 Check your system clock" >&5
1147 echo "$as_me: error: newly created file is older than distributed files!
1148 Check your system clock" >&2;}
1149 { (exit 1); exit 1; }; }
1151 echo "$as_me:1151: result: yes" >&5
1152 echo "${ECHO_T}yes" >&6
1153 if test "$program_transform_name" = s
,x
,x
,; then
1154 program_transform_name
=
1156 # Double any \ or $. echo might interpret backslashes.
1157 cat <<\EOF
>conftest.
sed
1158 s
,\\,\\\\,g
; s
,\$
,$$
,g
1160 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1163 test "$program_prefix" != NONE
&&
1164 program_transform_name
="s,^,${program_prefix},;$program_transform_name"
1165 # Use a double $ so make ignores it.
1166 test "$program_suffix" != NONE
&&
1167 program_transform_name
="s,\$\$,${program_suffix},;$program_transform_name"
1169 # sed with no file args requires a program.
1170 test -z "$program_transform_name" && program_transform_name
="s,x,x,"
1172 test x
"${MISSING+set}" = xset ||
1173 MISSING
="\${SHELL} `CDPATH=:; cd $ac_aux_dir && pwd`/missing"
1174 # Use eval to expand $SHELL
1175 if eval "$MISSING --run true"; then
1176 am_missing_run
="$MISSING --run "
1180 { echo "$as_me:1180: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1181 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1184 for ac_prog
in mawk gawk nawk
awk
1186 # Extract the first word of "$ac_prog", so it can be a program name with args.
1187 set dummy
$ac_prog; ac_word
=$2
1188 echo "$as_me:1188: checking for $ac_word" >&5
1189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1190 if test "${ac_cv_prog_AWK+set}" = set; then
1191 echo $ECHO_N "(cached) $ECHO_C" >&6
1193 if test -n "$AWK"; then
1194 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1196 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1198 for ac_dir
in $ac_dummy; do
1200 test -z "$ac_dir" && ac_dir
=.
1201 $as_executable_p "$ac_dir/$ac_word" ||
continue
1202 ac_cv_prog_AWK
="$ac_prog"
1203 echo "$as_me:1203: found $ac_dir/$ac_word" >&5
1210 if test -n "$AWK"; then
1211 echo "$as_me:1211: result: $AWK" >&5
1212 echo "${ECHO_T}$AWK" >&6
1214 echo "$as_me:1214: result: no" >&5
1215 echo "${ECHO_T}no" >&6
1218 test -n "$AWK" && break
1221 echo "$as_me:1221: checking whether ${MAKE-make} sets \${MAKE}" >&5
1222 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1223 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1224 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1225 echo $ECHO_N "(cached) $ECHO_C" >&6
1227 cat >conftest.
make <<\EOF
1229 @
echo 'ac_maketemp="${MAKE}"'
1231 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1232 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1233 if test -n "$ac_maketemp"; then
1234 eval ac_cv_prog_make_
${ac_make}_set
=yes
1236 eval ac_cv_prog_make_
${ac_make}_set
=no
1240 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1241 echo "$as_me:1241: result: yes" >&5
1242 echo "${ECHO_T}yes" >&6
1245 echo "$as_me:1245: result: no" >&5
1246 echo "${ECHO_T}no" >&6
1247 SET_MAKE
="MAKE=${MAKE-make}"
1250 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1251 if test "${enable_dependency_tracking+set}" = set; then
1252 enableval
="$enable_dependency_tracking"
1255 if test "x$enable_dependency_tracking" != xno
; then
1256 am_depcomp
="$ac_aux_dir/depcomp"
1260 if test "x$enable_dependency_tracking" != xno; then
1268 if test -d .deps || mkdir .deps
2> /dev
/null ||
test -d .deps
; then
1270 # We redirect because .deps might already exist and be populated.
1271 # In this situation we don't want to see an error.
1272 rmdir .deps
> /dev
/null
2>&1
1277 # test to see if srcdir already configured
1278 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1279 test -f $srcdir/config.status
; then
1280 { { echo "$as_me:1280: error: source directory already configured; run \"make distclean\" there first" >&5
1281 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1282 { (exit 1); exit 1; }; }
1285 # Define the identity of the package.
1289 cat >>confdefs.h
<<EOF
1290 #define PACKAGE "$PACKAGE"
1293 cat >>confdefs.h
<<EOF
1294 #define VERSION "$VERSION"
1297 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1298 # the ones we care about.
1300 # Some tools Automake needs.
1302 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal"}
1304 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1306 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake"}
1308 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1310 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1312 AMTAR
=${AMTAR-"${am_missing_run}tar"}
1314 if test -z "$install_sh"; then
1315 for install_sh
in "$ac_aux_dir/install-sh" \
1316 "$ac_aux_dir/install.sh" \
1317 "${am_missing_run}${ac_auxdir}/install-sh";
1319 test -f "$install_sh" && break
1321 # FIXME: an evil hack: we remove the SHELL invocation from
1322 # install_sh because automake adds it back in. Sigh.
1323 install_sh
=`echo $install_sh | sed -e 's/\${SHELL}//'`
1326 _am_dirpart
="`echo $install_sh | sed -e 's,//*[^/]*$,,'`"
1327 INSTALL_STRIP_PROGRAM
="\${SHELL} \`CDPATH=: && cd $_am_dirpart && pwd\`/install-sh -c -s"
1329 # We need awk for the "check" target. The system "awk" is bad on
1332 # Check whether --enable-id-cache or --disable-id-cache was given.
1333 if test "${enable_id_cache+set}" = set; then
1334 enableval
="$enable_id_cache"
1336 cat >>confdefs.h
<<\EOF
1343 ac_cpp
='$CPP $CPPFLAGS'
1344 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1345 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1346 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1347 if test -n "$ac_tool_prefix"; then
1348 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1349 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1350 echo "$as_me:1350: checking for $ac_word" >&5
1351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1352 if test "${ac_cv_prog_CC+set}" = set; then
1353 echo $ECHO_N "(cached) $ECHO_C" >&6
1355 if test -n "$CC"; then
1356 ac_cv_prog_CC
="$CC" # Let the user override the test.
1358 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1360 for ac_dir
in $ac_dummy; do
1362 test -z "$ac_dir" && ac_dir
=.
1363 $as_executable_p "$ac_dir/$ac_word" ||
continue
1364 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1365 echo "$as_me:1365: found $ac_dir/$ac_word" >&5
1372 if test -n "$CC"; then
1373 echo "$as_me:1373: result: $CC" >&5
1374 echo "${ECHO_T}$CC" >&6
1376 echo "$as_me:1376: result: no" >&5
1377 echo "${ECHO_T}no" >&6
1381 if test -z "$ac_cv_prog_CC"; then
1383 # Extract the first word of "gcc", so it can be a program name with args.
1384 set dummy gcc
; ac_word
=$2
1385 echo "$as_me:1385: checking for $ac_word" >&5
1386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1387 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1388 echo $ECHO_N "(cached) $ECHO_C" >&6
1390 if test -n "$ac_ct_CC"; then
1391 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1393 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1395 for ac_dir
in $ac_dummy; do
1397 test -z "$ac_dir" && ac_dir
=.
1398 $as_executable_p "$ac_dir/$ac_word" ||
continue
1399 ac_cv_prog_ac_ct_CC
="gcc"
1400 echo "$as_me:1400: found $ac_dir/$ac_word" >&5
1406 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1407 if test -n "$ac_ct_CC"; then
1408 echo "$as_me:1408: result: $ac_ct_CC" >&5
1409 echo "${ECHO_T}$ac_ct_CC" >&6
1411 echo "$as_me:1411: result: no" >&5
1412 echo "${ECHO_T}no" >&6
1420 if test -z "$CC"; then
1421 if test -n "$ac_tool_prefix"; then
1422 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1423 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1424 echo "$as_me:1424: checking for $ac_word" >&5
1425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1426 if test "${ac_cv_prog_CC+set}" = set; then
1427 echo $ECHO_N "(cached) $ECHO_C" >&6
1429 if test -n "$CC"; then
1430 ac_cv_prog_CC
="$CC" # Let the user override the test.
1432 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1434 for ac_dir
in $ac_dummy; do
1436 test -z "$ac_dir" && ac_dir
=.
1437 $as_executable_p "$ac_dir/$ac_word" ||
continue
1438 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1439 echo "$as_me:1439: found $ac_dir/$ac_word" >&5
1446 if test -n "$CC"; then
1447 echo "$as_me:1447: result: $CC" >&5
1448 echo "${ECHO_T}$CC" >&6
1450 echo "$as_me:1450: result: no" >&5
1451 echo "${ECHO_T}no" >&6
1455 if test -z "$ac_cv_prog_CC"; then
1457 # Extract the first word of "cc", so it can be a program name with args.
1458 set dummy cc
; ac_word
=$2
1459 echo "$as_me:1459: checking for $ac_word" >&5
1460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1461 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1462 echo $ECHO_N "(cached) $ECHO_C" >&6
1464 if test -n "$ac_ct_CC"; then
1465 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1467 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1469 for ac_dir
in $ac_dummy; do
1471 test -z "$ac_dir" && ac_dir
=.
1472 $as_executable_p "$ac_dir/$ac_word" ||
continue
1473 ac_cv_prog_ac_ct_CC
="cc"
1474 echo "$as_me:1474: found $ac_dir/$ac_word" >&5
1480 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1481 if test -n "$ac_ct_CC"; then
1482 echo "$as_me:1482: result: $ac_ct_CC" >&5
1483 echo "${ECHO_T}$ac_ct_CC" >&6
1485 echo "$as_me:1485: result: no" >&5
1486 echo "${ECHO_T}no" >&6
1495 if test -z "$CC"; then
1496 # Extract the first word of "cc", so it can be a program name with args.
1497 set dummy cc
; ac_word
=$2
1498 echo "$as_me:1498: checking for $ac_word" >&5
1499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1500 if test "${ac_cv_prog_CC+set}" = set; then
1501 echo $ECHO_N "(cached) $ECHO_C" >&6
1503 if test -n "$CC"; then
1504 ac_cv_prog_CC
="$CC" # Let the user override the test.
1507 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1509 for ac_dir
in $ac_dummy; do
1511 test -z "$ac_dir" && ac_dir
=.
1512 $as_executable_p "$ac_dir/$ac_word" ||
continue
1513 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1514 ac_prog_rejected
=yes
1518 echo "$as_me:1518: found $ac_dir/$ac_word" >&5
1522 if test $ac_prog_rejected = yes; then
1523 # We found a bogon in the path, so make sure we never use it.
1524 set dummy
$ac_cv_prog_CC
1526 if test $# != 0; then
1527 # We chose a different compiler from the bogus one.
1528 # However, it has the same basename, so the bogon will be chosen
1529 # first if we set CC to just the basename; use the full file name.
1531 set dummy
"$ac_dir/$ac_word" ${1+"$@"}
1539 if test -n "$CC"; then
1540 echo "$as_me:1540: result: $CC" >&5
1541 echo "${ECHO_T}$CC" >&6
1543 echo "$as_me:1543: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1548 if test -z "$CC"; then
1549 if test -n "$ac_tool_prefix"; then
1552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1553 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1554 echo "$as_me:1554: checking for $ac_word" >&5
1555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1556 if test "${ac_cv_prog_CC+set}" = set; then
1557 echo $ECHO_N "(cached) $ECHO_C" >&6
1559 if test -n "$CC"; then
1560 ac_cv_prog_CC
="$CC" # Let the user override the test.
1562 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1564 for ac_dir
in $ac_dummy; do
1566 test -z "$ac_dir" && ac_dir
=.
1567 $as_executable_p "$ac_dir/$ac_word" ||
continue
1568 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1569 echo "$as_me:1569: found $ac_dir/$ac_word" >&5
1576 if test -n "$CC"; then
1577 echo "$as_me:1577: result: $CC" >&5
1578 echo "${ECHO_T}$CC" >&6
1580 echo "$as_me:1580: result: no" >&5
1581 echo "${ECHO_T}no" >&6
1584 test -n "$CC" && break
1587 if test -z "$CC"; then
1591 # Extract the first word of "$ac_prog", so it can be a program name with args.
1592 set dummy
$ac_prog; ac_word
=$2
1593 echo "$as_me:1593: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 if test -n "$ac_ct_CC"; then
1599 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1601 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1603 for ac_dir
in $ac_dummy; do
1605 test -z "$ac_dir" && ac_dir
=.
1606 $as_executable_p "$ac_dir/$ac_word" ||
continue
1607 ac_cv_prog_ac_ct_CC
="$ac_prog"
1608 echo "$as_me:1608: found $ac_dir/$ac_word" >&5
1614 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1615 if test -n "$ac_ct_CC"; then
1616 echo "$as_me:1616: result: $ac_ct_CC" >&5
1617 echo "${ECHO_T}$ac_ct_CC" >&6
1619 echo "$as_me:1619: result: no" >&5
1620 echo "${ECHO_T}no" >&6
1623 test -n "$ac_ct_CC" && break
1631 test -z "$CC" && { { echo "$as_me:1631: error: no acceptable cc found in \$PATH" >&5
1632 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1633 { (exit 1); exit 1; }; }
1635 cat >conftest.
$ac_ext <<_ACEOF
1636 #line 1636 "configure"
1637 #include "confdefs.h"
1647 ac_clean_files_save
=$ac_clean_files
1648 ac_clean_files
="$ac_clean_files a.out a.exe"
1649 # Try to create an executable without -o first, disregard a.out.
1650 # It will help us diagnose broken compiler, and finding out an intuition
1652 echo "$as_me:1652: checking for C compiler default output" >&5
1653 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1654 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1655 if { (eval echo "$as_me:1655: \"$ac_link_default\"") >&5
1656 (eval $ac_link_default) 2>&5
1658 echo "$as_me:1658: \$? = $ac_status" >&5
1659 (exit $ac_status); }; then
1660 for ac_file
in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
1662 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1663 a.out
) # We found the default executable, but exeext='' is most
1666 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1673 echo "$as_me: failed program was:" >&5
1674 cat conftest.
$ac_ext >&5
1675 { { echo "$as_me:1675: error: C compiler cannot create executables" >&5
1676 echo "$as_me: error: C compiler cannot create executables" >&2;}
1677 { (exit 77); exit 77; }; }
1680 ac_exeext
=$ac_cv_exeext
1681 echo "$as_me:1681: result: $ac_file" >&5
1682 echo "${ECHO_T}$ac_file" >&6
1684 # Check the compiler produces executables we can run. If not, either
1685 # the compiler is broken, or we cross compile.
1686 echo "$as_me:1686: checking whether the C compiler works" >&5
1687 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1688 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1689 # If not cross compiling, check that we can run a simple program.
1690 if test "$cross_compiling" != yes; then
1691 if { ac_try
='./$ac_file'
1692 { (eval echo "$as_me:1692: \"$ac_try\"") >&5
1695 echo "$as_me:1695: \$? = $ac_status" >&5
1696 (exit $ac_status); }; }; then
1699 if test "$cross_compiling" = maybe
; then
1702 { { echo "$as_me:1702: error: cannot run C compiled programs.
1703 If you meant to cross compile, use \`--host'." >&5
1704 echo "$as_me: error: cannot run C compiled programs.
1705 If you meant to cross compile, use \`--host'." >&2;}
1706 { (exit 1); exit 1; }; }
1710 echo "$as_me:1710: result: yes" >&5
1711 echo "${ECHO_T}yes" >&6
1713 rm -f a.out a.exe conftest
$ac_cv_exeext
1714 ac_clean_files
=$ac_clean_files_save
1715 # Check the compiler produces executables we can run. If not, either
1716 # the compiler is broken, or we cross compile.
1717 echo "$as_me:1717: checking whether we are cross compiling" >&5
1718 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1719 echo "$as_me:1719: result: $cross_compiling" >&5
1720 echo "${ECHO_T}$cross_compiling" >&6
1722 echo "$as_me:1722: checking for executable suffix" >&5
1723 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1724 if { (eval echo "$as_me:1724: \"$ac_link\"") >&5
1725 (eval $ac_link) 2>&5
1727 echo "$as_me:1727: \$? = $ac_status" >&5
1728 (exit $ac_status); }; then
1729 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1730 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1731 # work properly (i.e., refer to `conftest.exe'), while it won't with
1733 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1735 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1736 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1743 { { echo "$as_me:1743: error: cannot compute EXEEXT: cannot compile and link" >&5
1744 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1745 { (exit 1); exit 1; }; }
1748 rm -f conftest
$ac_cv_exeext
1749 echo "$as_me:1749: result: $ac_cv_exeext" >&5
1750 echo "${ECHO_T}$ac_cv_exeext" >&6
1752 rm -f conftest.
$ac_ext
1753 EXEEXT
=$ac_cv_exeext
1755 echo "$as_me:1755: checking for object suffix" >&5
1756 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1757 if test "${ac_cv_objext+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 cat >conftest.
$ac_ext <<_ACEOF
1761 #line 1761 "configure"
1762 #include "confdefs.h"
1772 rm -f conftest.o conftest.obj
1773 if { (eval echo "$as_me:1773: \"$ac_compile\"") >&5
1774 (eval $ac_compile) 2>&5
1776 echo "$as_me:1776: \$? = $ac_status" >&5
1777 (exit $ac_status); }; then
1778 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1780 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1781 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1786 echo "$as_me: failed program was:" >&5
1787 cat conftest.
$ac_ext >&5
1788 { { echo "$as_me:1788: error: cannot compute OBJEXT: cannot compile" >&5
1789 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1790 { (exit 1); exit 1; }; }
1793 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1795 echo "$as_me:1795: result: $ac_cv_objext" >&5
1796 echo "${ECHO_T}$ac_cv_objext" >&6
1797 OBJEXT
=$ac_cv_objext
1799 echo "$as_me:1799: checking whether we are using the GNU C compiler" >&5
1800 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1801 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1802 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 cat >conftest.
$ac_ext <<_ACEOF
1805 #line 1805 "configure"
1806 #include "confdefs.h"
1819 rm -f conftest.
$ac_objext
1820 if { (eval echo "$as_me:1820: \"$ac_compile\"") >&5
1821 (eval $ac_compile) 2>&5
1823 echo "$as_me:1823: \$? = $ac_status" >&5
1824 (exit $ac_status); } &&
1825 { ac_try
='test -s conftest.$ac_objext'
1826 { (eval echo "$as_me:1826: \"$ac_try\"") >&5
1829 echo "$as_me:1829: \$? = $ac_status" >&5
1830 (exit $ac_status); }; }; then
1833 echo "$as_me: failed program was:" >&5
1834 cat conftest.
$ac_ext >&5
1837 rm -f conftest.
$ac_objext conftest.
$ac_ext
1838 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1841 echo "$as_me:1841: result: $ac_cv_c_compiler_gnu" >&5
1842 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1843 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1844 ac_test_CFLAGS
=${CFLAGS+set}
1845 ac_save_CFLAGS
=$CFLAGS
1847 echo "$as_me:1847: checking whether $CC accepts -g" >&5
1848 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1849 if test "${ac_cv_prog_cc_g+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 cat >conftest.
$ac_ext <<_ACEOF
1853 #line 1853 "configure"
1854 #include "confdefs.h"
1864 rm -f conftest.
$ac_objext
1865 if { (eval echo "$as_me:1865: \"$ac_compile\"") >&5
1866 (eval $ac_compile) 2>&5
1868 echo "$as_me:1868: \$? = $ac_status" >&5
1869 (exit $ac_status); } &&
1870 { ac_try
='test -s conftest.$ac_objext'
1871 { (eval echo "$as_me:1871: \"$ac_try\"") >&5
1874 echo "$as_me:1874: \$? = $ac_status" >&5
1875 (exit $ac_status); }; }; then
1878 echo "$as_me: failed program was:" >&5
1879 cat conftest.
$ac_ext >&5
1882 rm -f conftest.
$ac_objext conftest.
$ac_ext
1884 echo "$as_me:1884: result: $ac_cv_prog_cc_g" >&5
1885 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1886 if test "$ac_test_CFLAGS" = set; then
1887 CFLAGS
=$ac_save_CFLAGS
1888 elif test $ac_cv_prog_cc_g = yes; then
1889 if test "$GCC" = yes; then
1895 if test "$GCC" = yes; then
1901 # Some people use a C++ compiler to compile C. Since we use `exit',
1902 # in C++ we need to declare it. In case someone uses the same compiler
1903 # for both compiling C and C++ we need to have the C++ compiler decide
1904 # the declaration of exit, since it's the most demanding environment.
1905 cat >conftest.
$ac_ext <<_ACEOF
1910 rm -f conftest.
$ac_objext
1911 if { (eval echo "$as_me:1911: \"$ac_compile\"") >&5
1912 (eval $ac_compile) 2>&5
1914 echo "$as_me:1914: \$? = $ac_status" >&5
1915 (exit $ac_status); } &&
1916 { ac_try
='test -s conftest.$ac_objext'
1917 { (eval echo "$as_me:1917: \"$ac_try\"") >&5
1920 echo "$as_me:1920: \$? = $ac_status" >&5
1921 (exit $ac_status); }; }; then
1922 for ac_declaration
in \
1924 '#include <stdlib.h>' \
1925 'extern "C" void std::exit (int) throw (); using std::exit;' \
1926 'extern "C" void std::exit (int); using std::exit;' \
1927 'extern "C" void exit (int) throw ();' \
1928 'extern "C" void exit (int);' \
1931 cat >conftest.
$ac_ext <<_ACEOF
1932 #line 1932 "configure"
1933 #include "confdefs.h"
1944 rm -f conftest.
$ac_objext
1945 if { (eval echo "$as_me:1945: \"$ac_compile\"") >&5
1946 (eval $ac_compile) 2>&5
1948 echo "$as_me:1948: \$? = $ac_status" >&5
1949 (exit $ac_status); } &&
1950 { ac_try
='test -s conftest.$ac_objext'
1951 { (eval echo "$as_me:1951: \"$ac_try\"") >&5
1954 echo "$as_me:1954: \$? = $ac_status" >&5
1955 (exit $ac_status); }; }; then
1958 echo "$as_me: failed program was:" >&5
1959 cat conftest.
$ac_ext >&5
1962 rm -f conftest.
$ac_objext conftest.
$ac_ext
1963 cat >conftest.
$ac_ext <<_ACEOF
1964 #line 1964 "configure"
1965 #include "confdefs.h"
1975 rm -f conftest.
$ac_objext
1976 if { (eval echo "$as_me:1976: \"$ac_compile\"") >&5
1977 (eval $ac_compile) 2>&5
1979 echo "$as_me:1979: \$? = $ac_status" >&5
1980 (exit $ac_status); } &&
1981 { ac_try
='test -s conftest.$ac_objext'
1982 { (eval echo "$as_me:1982: \"$ac_try\"") >&5
1985 echo "$as_me:1985: \$? = $ac_status" >&5
1986 (exit $ac_status); }; }; then
1989 echo "$as_me: failed program was:" >&5
1990 cat conftest.
$ac_ext >&5
1992 rm -f conftest.
$ac_objext conftest.
$ac_ext
1994 echo '#ifdef __cplusplus' >>confdefs.h
1995 echo $ac_declaration >>confdefs.h
1996 echo '#endif' >>confdefs.h
1999 echo "$as_me: failed program was:" >&5
2000 cat conftest.
$ac_ext >&5
2002 rm -f conftest.
$ac_objext conftest.
$ac_ext
2004 ac_cpp
='$CPP $CPPFLAGS'
2005 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2009 ac_config_commands
="$ac_config_commands default-2"
2012 ac_cpp
='$CPP $CPPFLAGS'
2013 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2014 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2015 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2016 echo "$as_me:2016: checking how to run the C preprocessor" >&5
2017 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2018 # On Suns, sometimes $CPP names a directory.
2019 if test -n "$CPP" && test -d "$CPP"; then
2022 if test -z "$CPP"; then
2023 if test "${ac_cv_prog_CPP+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 # Double quotes because CPP needs to be expanded
2027 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2029 # We don't know yet if stderr is the criterion (vs exit status).
2030 ac_c_preproc_warn_flag
=maybe
2032 # Use a header file that comes with gcc, so configuring glibc
2033 # with a fresh cross-compiler works.
2034 # On the NeXT, cc -E runs the code through the compiler's parser,
2035 # not just through cpp. "Syntax error" is here to catch this case.
2036 cat >conftest.
$ac_ext <<_ACEOF
2037 #line 2037 "configure"
2038 #include "confdefs.h"
2042 if { (eval echo "$as_me:2042: \"$ac_cpp conftest.$ac_ext\"") >&5
2043 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2045 egrep -v '^ *\+' conftest.er1
>conftest.err
2047 cat conftest.err
>&5
2048 echo "$as_me:2048: \$? = $ac_status" >&5
2049 (exit $ac_status); } >/dev
/null
; then
2050 if test -s conftest.err
; then
2051 ac_cpp_err
=$ac_c_preproc_warn_flag
2058 if test -z "$ac_cpp_err"; then
2059 # OK, works on sane cases. Now check whether non-existent headers can
2060 # be detected and how.
2061 cat >conftest.
$ac_ext <<_ACEOF
2062 #line 2062 "configure"
2063 #include "confdefs.h"
2064 #include <ac_nonexistent.h>
2066 if { (eval echo "$as_me:2066: \"$ac_cpp conftest.$ac_ext\"") >&5
2067 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2069 egrep -v '^ *\+' conftest.er1
>conftest.err
2071 cat conftest.err
>&5
2072 echo "$as_me:2072: \$? = $ac_status" >&5
2073 (exit $ac_status); } >/dev
/null
; then
2074 if test -s conftest.err
; then
2075 ac_cpp_err
=$ac_c_preproc_warn_flag
2082 if test -z "$ac_cpp_err"; then
2083 # Broken: cannot detect missing includes.
2086 echo "$as_me: failed program was:" >&5
2087 cat conftest.
$ac_ext >&5
2088 # OK, detects failures. How?
2089 if test "x$ac_cpp_err" = xmaybe
; then
2090 ac_c_preproc_warn_flag
=yes
2092 ac_c_preproc_warn_flag
=
2096 rm -f conftest.err conftest.
$ac_ext
2098 echo "$as_me: failed program was:" >&5
2099 cat conftest.
$ac_ext >&5
2100 # Broken: fails on valid input.
2103 rm -f conftest.err conftest.
$ac_ext
2112 echo "$as_me:2112: result: $CPP" >&5
2113 echo "${ECHO_T}$CPP" >&6
2114 # We don't know yet if stderr is the criterion (vs exit status).
2115 ac_c_preproc_warn_flag
=maybe
2117 # Use a header file that comes with gcc, so configuring glibc
2118 # with a fresh cross-compiler works.
2119 # On the NeXT, cc -E runs the code through the compiler's parser,
2120 # not just through cpp. "Syntax error" is here to catch this case.
2121 cat >conftest.
$ac_ext <<_ACEOF
2122 #line 2122 "configure"
2123 #include "confdefs.h"
2127 if { (eval echo "$as_me:2127: \"$ac_cpp conftest.$ac_ext\"") >&5
2128 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2130 egrep -v '^ *\+' conftest.er1
>conftest.err
2132 cat conftest.err
>&5
2133 echo "$as_me:2133: \$? = $ac_status" >&5
2134 (exit $ac_status); } >/dev
/null
; then
2135 if test -s conftest.err
; then
2136 ac_cpp_err
=$ac_c_preproc_warn_flag
2143 if test -z "$ac_cpp_err"; then
2144 # OK, works on sane cases. Now check whether non-existent headers can
2145 # be detected and how.
2146 cat >conftest.
$ac_ext <<_ACEOF
2147 #line 2147 "configure"
2148 #include "confdefs.h"
2149 #include <ac_nonexistent.h>
2151 if { (eval echo "$as_me:2151: \"$ac_cpp conftest.$ac_ext\"") >&5
2152 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2154 egrep -v '^ *\+' conftest.er1
>conftest.err
2156 cat conftest.err
>&5
2157 echo "$as_me:2157: \$? = $ac_status" >&5
2158 (exit $ac_status); } >/dev
/null
; then
2159 if test -s conftest.err
; then
2160 ac_cpp_err
=$ac_c_preproc_warn_flag
2167 if test -z "$ac_cpp_err"; then
2168 # Broken: cannot detect missing includes.
2169 { { echo "$as_me:2169: error: C preprocessor \"$CPP\" fails sanity check" >&5
2170 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2171 { (exit 1); exit 1; }; }
2173 echo "$as_me: failed program was:" >&5
2174 cat conftest.
$ac_ext >&5
2175 # OK, detects failures. How?
2176 if test "x$ac_cpp_err" = xmaybe
; then
2177 ac_c_preproc_warn_flag
=yes
2179 ac_c_preproc_warn_flag
=
2183 rm -f conftest.err conftest.
$ac_ext
2185 echo "$as_me: failed program was:" >&5
2186 cat conftest.
$ac_ext >&5
2187 # Broken: fails on valid input.
2188 { { echo "$as_me:2188: error: C preprocessor \"$CPP\" fails sanity check" >&5
2189 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2190 { (exit 1); exit 1; }; }
2192 rm -f conftest.err conftest.
$ac_ext
2194 ac_cpp
='$CPP $CPPFLAGS'
2195 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2196 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2197 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2199 am_make
=${MAKE-make}
2200 cat > confinc
<< 'END'
2204 # If we don't find an include directive, just comment out the code.
2205 echo "$as_me:2205: checking for style of include used by $am_make" >&5
2206 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2210 # First try GNU make style include.
2211 echo "include confinc" > confmf
2212 # We grep out `Entering directory' and `Leaving directory'
2213 # messages which can occur if `w' ends up in MAKEFLAGS.
2214 # In particular we don't look at `^make:' because GNU make might
2215 # be invoked under some other name (usually "gmake"), in which
2216 # case it prints its new name instead of `make'.
2217 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2222 # Now try BSD make style include.
2223 if test "$_am_include" = "#"; then
2224 echo '.include "confinc"' > confmf
2225 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2226 _am_include
=.include
2232 echo "$as_me:2232: result: $_am_result" >&5
2233 echo "${ECHO_T}$_am_result" >&6
2234 rm -f confinc confmf
2241 echo "$as_me:2241: checking dependency style of $depcc" >&5
2242 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2243 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2247 # We make a subdir and do the tests there. Otherwise we can end up
2248 # making bogus files that we don't know about and never remove. For
2249 # instance it was reported that on HP-UX the gcc test will end up
2250 # making a dummy file named `D' -- because `-MD' means `put the output
2253 # Copy depcomp to subdir because otherwise we won't find it if we're
2254 # using a relative directory.
2255 cp "$am_depcomp" confdir
2258 am_cv_CC_dependencies_compiler_type
=none
2259 if test "$am_compiler_list" = ""; then
2260 am_compiler_list
="`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`"
2262 for depmode
in $am_compiler_list; do
2263 # We need to recreate these files for each test, as the compiler may
2264 # overwrite some of them when testing with obscure command lines.
2265 # This happens at least with the AIX C compiler.
2266 echo '#include "conftest.h"' > conftest.c
2267 echo 'int i;' > conftest.h
2271 # after this tag, mechanisms are not by side-effect, so they'll
2272 # only be used when explicitly requested
2273 if test "x$enable_dependency_tracking" = xyes
; then
2281 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2282 # mode. It turns out that the SunPro C++ compiler does not properly
2283 # handle `-M -o', and we need to detect this.
2284 if depmode
="$depmode" \
2285 source=conftest.c object
=conftest.o \
2286 depfile
=conftest.Po tmpdepfile
=conftest.TPo \
2287 $SHELL .
/depcomp
$depcc -c conftest.c
-o conftest.o
>/dev
/null
2>&1 &&
2288 grep conftest.h conftest.Po
> /dev
/null
2>&1; then
2289 am_cv_CC_dependencies_compiler_type
="$depmode"
2297 am_cv_CC_dependencies_compiler_type
=none
2301 echo "$as_me:2301: result: $am_cv_CC_dependencies_compiler_type" >&5
2302 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2303 CCDEPMODE
="depmode=$am_cv_CC_dependencies_compiler_type"
2306 ac_cpp
='$CPP $CPPFLAGS'
2307 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2310 echo "$as_me:2310: checking how to run the C preprocessor" >&5
2311 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2312 # On Suns, sometimes $CPP names a directory.
2313 if test -n "$CPP" && test -d "$CPP"; then
2316 if test -z "$CPP"; then
2317 if test "${ac_cv_prog_CPP+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 # Double quotes because CPP needs to be expanded
2321 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2323 # We don't know yet if stderr is the criterion (vs exit status).
2324 ac_c_preproc_warn_flag
=maybe
2326 # Use a header file that comes with gcc, so configuring glibc
2327 # with a fresh cross-compiler works.
2328 # On the NeXT, cc -E runs the code through the compiler's parser,
2329 # not just through cpp. "Syntax error" is here to catch this case.
2330 cat >conftest.
$ac_ext <<_ACEOF
2331 #line 2331 "configure"
2332 #include "confdefs.h"
2336 if { (eval echo "$as_me:2336: \"$ac_cpp conftest.$ac_ext\"") >&5
2337 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2339 egrep -v '^ *\+' conftest.er1
>conftest.err
2341 cat conftest.err
>&5
2342 echo "$as_me:2342: \$? = $ac_status" >&5
2343 (exit $ac_status); } >/dev
/null
; then
2344 if test -s conftest.err
; then
2345 ac_cpp_err
=$ac_c_preproc_warn_flag
2352 if test -z "$ac_cpp_err"; then
2353 # OK, works on sane cases. Now check whether non-existent headers can
2354 # be detected and how.
2355 cat >conftest.
$ac_ext <<_ACEOF
2356 #line 2356 "configure"
2357 #include "confdefs.h"
2358 #include <ac_nonexistent.h>
2360 if { (eval echo "$as_me:2360: \"$ac_cpp conftest.$ac_ext\"") >&5
2361 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2363 egrep -v '^ *\+' conftest.er1
>conftest.err
2365 cat conftest.err
>&5
2366 echo "$as_me:2366: \$? = $ac_status" >&5
2367 (exit $ac_status); } >/dev
/null
; then
2368 if test -s conftest.err
; then
2369 ac_cpp_err
=$ac_c_preproc_warn_flag
2376 if test -z "$ac_cpp_err"; then
2377 # Broken: cannot detect missing includes.
2380 echo "$as_me: failed program was:" >&5
2381 cat conftest.
$ac_ext >&5
2382 # OK, detects failures. How?
2383 if test "x$ac_cpp_err" = xmaybe
; then
2384 ac_c_preproc_warn_flag
=yes
2386 ac_c_preproc_warn_flag
=
2390 rm -f conftest.err conftest.
$ac_ext
2392 echo "$as_me: failed program was:" >&5
2393 cat conftest.
$ac_ext >&5
2394 # Broken: fails on valid input.
2397 rm -f conftest.err conftest.
$ac_ext
2406 echo "$as_me:2406: result: $CPP" >&5
2407 echo "${ECHO_T}$CPP" >&6
2408 # We don't know yet if stderr is the criterion (vs exit status).
2409 ac_c_preproc_warn_flag
=maybe
2411 # Use a header file that comes with gcc, so configuring glibc
2412 # with a fresh cross-compiler works.
2413 # On the NeXT, cc -E runs the code through the compiler's parser,
2414 # not just through cpp. "Syntax error" is here to catch this case.
2415 cat >conftest.
$ac_ext <<_ACEOF
2416 #line 2416 "configure"
2417 #include "confdefs.h"
2421 if { (eval echo "$as_me:2421: \"$ac_cpp conftest.$ac_ext\"") >&5
2422 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2424 egrep -v '^ *\+' conftest.er1
>conftest.err
2426 cat conftest.err
>&5
2427 echo "$as_me:2427: \$? = $ac_status" >&5
2428 (exit $ac_status); } >/dev
/null
; then
2429 if test -s conftest.err
; then
2430 ac_cpp_err
=$ac_c_preproc_warn_flag
2437 if test -z "$ac_cpp_err"; then
2438 # OK, works on sane cases. Now check whether non-existent headers can
2439 # be detected and how.
2440 cat >conftest.
$ac_ext <<_ACEOF
2441 #line 2441 "configure"
2442 #include "confdefs.h"
2443 #include <ac_nonexistent.h>
2445 if { (eval echo "$as_me:2445: \"$ac_cpp conftest.$ac_ext\"") >&5
2446 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2448 egrep -v '^ *\+' conftest.er1
>conftest.err
2450 cat conftest.err
>&5
2451 echo "$as_me:2451: \$? = $ac_status" >&5
2452 (exit $ac_status); } >/dev
/null
; then
2453 if test -s conftest.err
; then
2454 ac_cpp_err
=$ac_c_preproc_warn_flag
2461 if test -z "$ac_cpp_err"; then
2462 # Broken: cannot detect missing includes.
2463 { { echo "$as_me:2463: error: C preprocessor \"$CPP\" fails sanity check" >&5
2464 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2465 { (exit 1); exit 1; }; }
2467 echo "$as_me: failed program was:" >&5
2468 cat conftest.
$ac_ext >&5
2469 # OK, detects failures. How?
2470 if test "x$ac_cpp_err" = xmaybe
; then
2471 ac_c_preproc_warn_flag
=yes
2473 ac_c_preproc_warn_flag
=
2477 rm -f conftest.err conftest.
$ac_ext
2479 echo "$as_me: failed program was:" >&5
2480 cat conftest.
$ac_ext >&5
2481 # Broken: fails on valid input.
2482 { { echo "$as_me:2482: error: C preprocessor \"$CPP\" fails sanity check" >&5
2483 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2484 { (exit 1); exit 1; }; }
2486 rm -f conftest.err conftest.
$ac_ext
2488 ac_cpp
='$CPP $CPPFLAGS'
2489 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2490 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2491 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2493 echo "$as_me:2493: checking for AIX" >&5
2494 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2495 cat >conftest.
$ac_ext <<_ACEOF
2496 #line 2496 "configure"
2497 #include "confdefs.h"
2503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2504 egrep "yes" >/dev
/null
2>&1; then
2505 echo "$as_me:2505: result: yes" >&5
2506 echo "${ECHO_T}yes" >&6
2507 cat >>confdefs.h
<<\EOF
2508 #define _ALL_SOURCE 1
2512 echo "$as_me:2512: result: no" >&5
2513 echo "${ECHO_T}no" >&6
2517 echo "$as_me:2517: checking for minix/config.h" >&5
2518 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2519 if test "${ac_cv_header_minix_config_h+set}" = set; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 cat >conftest.
$ac_ext <<_ACEOF
2523 #line 2523 "configure"
2524 #include "confdefs.h"
2525 #include <minix/config.h>
2527 if { (eval echo "$as_me:2527: \"$ac_cpp conftest.$ac_ext\"") >&5
2528 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2530 egrep -v '^ *\+' conftest.er1
>conftest.err
2532 cat conftest.err
>&5
2533 echo "$as_me:2533: \$? = $ac_status" >&5
2534 (exit $ac_status); } >/dev
/null
; then
2535 if test -s conftest.err
; then
2536 ac_cpp_err
=$ac_c_preproc_warn_flag
2543 if test -z "$ac_cpp_err"; then
2544 ac_cv_header_minix_config_h
=yes
2546 echo "$as_me: failed program was:" >&5
2547 cat conftest.
$ac_ext >&5
2548 ac_cv_header_minix_config_h
=no
2550 rm -f conftest.err conftest.
$ac_ext
2552 echo "$as_me:2552: result: $ac_cv_header_minix_config_h" >&5
2553 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2554 if test $ac_cv_header_minix_config_h = yes; then
2560 if test "$MINIX" = yes; then
2562 cat >>confdefs.h
<<\EOF
2563 #define _POSIX_SOURCE 1
2566 cat >>confdefs.h
<<\EOF
2567 #define _POSIX_1_SOURCE 2
2570 cat >>confdefs.h
<<\EOF
2576 echo "$as_me:2576: checking for strerror in -lcposix" >&5
2577 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2578 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2581 ac_check_lib_save_LIBS
=$LIBS
2582 LIBS
="-lcposix $LIBS"
2583 cat >conftest.
$ac_ext <<_ACEOF
2584 #line 2584 "configure"
2585 #include "confdefs.h"
2587 /* Override any gcc2 internal prototype to avoid an error. */
2591 /* We use char because int might match the return type of a gcc2
2592 builtin and then its argument prototype would still apply. */
2602 rm -f conftest.
$ac_objext conftest
$ac_exeext
2603 if { (eval echo "$as_me:2603: \"$ac_link\"") >&5
2604 (eval $ac_link) 2>&5
2606 echo "$as_me:2606: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
2608 { ac_try
='test -s conftest$ac_exeext'
2609 { (eval echo "$as_me:2609: \"$ac_try\"") >&5
2612 echo "$as_me:2612: \$? = $ac_status" >&5
2613 (exit $ac_status); }; }; then
2614 ac_cv_lib_cposix_strerror
=yes
2616 echo "$as_me: failed program was:" >&5
2617 cat conftest.
$ac_ext >&5
2618 ac_cv_lib_cposix_strerror
=no
2620 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2621 LIBS
=$ac_check_lib_save_LIBS
2623 echo "$as_me:2623: result: $ac_cv_lib_cposix_strerror" >&5
2624 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2625 if test $ac_cv_lib_cposix_strerror = yes; then
2626 LIBS
="$LIBS -lcposix"
2629 echo "$as_me:2629: checking for $CC option to accept ANSI C" >&5
2630 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2631 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 ac_cv_prog_cc_stdc
=no
2636 cat >conftest.
$ac_ext <<_ACEOF
2637 #line 2637 "configure"
2638 #include "confdefs.h"
2641 #include <sys/types.h>
2642 #include <sys/stat.h>
2643 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2644 struct buf { int x; };
2645 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2646 static char *e (p, i)
2652 static char *f (char * (*g) (char **, int), char **p, ...)
2657 s = g (p, va_arg (v,int));
2661 int test (int i, double x);
2662 struct s1 {int (*f) (int a);};
2663 struct s2 {int (*f) (double a);};
2664 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2670 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2675 # Don't try gcc -ansi; that turns off useful extensions and
2676 # breaks some systems' header files.
2677 # AIX -qlanglvl=ansi
2678 # Ultrix and OSF/1 -std1
2679 # HP-UX 10.20 and later -Ae
2680 # HP-UX older versions -Aa -D_HPUX_SOURCE
2681 # SVR4 -Xc -D__EXTENSIONS__
2682 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2684 CC
="$ac_save_CC $ac_arg"
2685 rm -f conftest.
$ac_objext
2686 if { (eval echo "$as_me:2686: \"$ac_compile\"") >&5
2687 (eval $ac_compile) 2>&5
2689 echo "$as_me:2689: \$? = $ac_status" >&5
2690 (exit $ac_status); } &&
2691 { ac_try
='test -s conftest.$ac_objext'
2692 { (eval echo "$as_me:2692: \"$ac_try\"") >&5
2695 echo "$as_me:2695: \$? = $ac_status" >&5
2696 (exit $ac_status); }; }; then
2697 ac_cv_prog_cc_stdc
=$ac_arg
2700 echo "$as_me: failed program was:" >&5
2701 cat conftest.
$ac_ext >&5
2703 rm -f conftest.
$ac_objext
2705 rm -f conftest.
$ac_ext conftest.
$ac_objext
2710 case "x$ac_cv_prog_cc_stdc" in
2712 echo "$as_me:2712: result: none needed" >&5
2713 echo "${ECHO_T}none needed" >&6 ;;
2715 echo "$as_me:2715: result: $ac_cv_prog_cc_stdc" >&5
2716 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2717 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2720 echo "$as_me:2720: checking for ${CC-cc} option to accept ANSI C" >&5
2721 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2722 if test "${am_cv_prog_cc_stdc+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 am_cv_prog_cc_stdc
=no
2727 # Don't try gcc -ansi; that turns off useful extensions and
2728 # breaks some systems' header files.
2729 # AIX -qlanglvl=ansi
2730 # Ultrix and OSF/1 -std1
2731 # HP-UX 10.20 and later -Ae
2732 # HP-UX older versions -Aa -D_HPUX_SOURCE
2733 # SVR4 -Xc -D__EXTENSIONS__
2734 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2736 CC
="$ac_save_CC $ac_arg"
2737 cat >conftest.
$ac_ext <<_ACEOF
2738 #line 2738 "configure"
2739 #include "confdefs.h"
2742 #include <sys/types.h>
2743 #include <sys/stat.h>
2744 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2745 struct buf { int x; };
2746 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2747 static char *e (p, i)
2753 static char *f (char * (*g) (char **, int), char **p, ...)
2758 s = g (p, va_arg (v,int));
2762 int test (int i, double x);
2763 struct s1 {int (*f) (int a);};
2764 struct s2 {int (*f) (double a);};
2765 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2773 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2779 rm -f conftest.
$ac_objext
2780 if { (eval echo "$as_me:2780: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>&5
2783 echo "$as_me:2783: \$? = $ac_status" >&5
2784 (exit $ac_status); } &&
2785 { ac_try
='test -s conftest.$ac_objext'
2786 { (eval echo "$as_me:2786: \"$ac_try\"") >&5
2789 echo "$as_me:2789: \$? = $ac_status" >&5
2790 (exit $ac_status); }; }; then
2791 am_cv_prog_cc_stdc
="$ac_arg"; break
2793 echo "$as_me: failed program was:" >&5
2794 cat conftest.
$ac_ext >&5
2796 rm -f conftest.
$ac_objext conftest.
$ac_ext
2802 if test -z "$am_cv_prog_cc_stdc"; then
2803 echo "$as_me:2803: result: none needed" >&5
2804 echo "${ECHO_T}none needed" >&6
2806 echo "$as_me:2806: result: $am_cv_prog_cc_stdc" >&5
2807 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2809 case "x$am_cv_prog_cc_stdc" in
2811 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
2814 echo "$as_me:2814: checking for function prototypes" >&5
2815 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
2816 if test "$am_cv_prog_cc_stdc" != no
; then
2817 echo "$as_me:2817: result: yes" >&5
2818 echo "${ECHO_T}yes" >&6
2820 cat >>confdefs.h
<<\EOF
2821 #define PROTOTYPES 1
2826 echo "$as_me:2826: result: no" >&5
2827 echo "${ECHO_T}no" >&6
2828 U
=_ ANSI2KNR
=.
/ansi2knr
2830 # Ensure some checks needed by ansi2knr itself.
2831 echo "$as_me:2831: checking for ANSI C header files" >&5
2832 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2833 if test "${ac_cv_header_stdc+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 cat >conftest.
$ac_ext <<_ACEOF
2837 #line 2837 "configure"
2838 #include "confdefs.h"
2845 if { (eval echo "$as_me:2845: \"$ac_cpp conftest.$ac_ext\"") >&5
2846 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2848 egrep -v '^ *\+' conftest.er1
>conftest.err
2850 cat conftest.err
>&5
2851 echo "$as_me:2851: \$? = $ac_status" >&5
2852 (exit $ac_status); } >/dev
/null
; then
2853 if test -s conftest.err
; then
2854 ac_cpp_err
=$ac_c_preproc_warn_flag
2861 if test -z "$ac_cpp_err"; then
2862 ac_cv_header_stdc
=yes
2864 echo "$as_me: failed program was:" >&5
2865 cat conftest.
$ac_ext >&5
2866 ac_cv_header_stdc
=no
2868 rm -f conftest.err conftest.
$ac_ext
2870 if test $ac_cv_header_stdc = yes; then
2871 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2872 cat >conftest.
$ac_ext <<_ACEOF
2873 #line 2873 "configure"
2874 #include "confdefs.h"
2878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2879 egrep "memchr" >/dev
/null
2>&1; then
2882 ac_cv_header_stdc
=no
2888 if test $ac_cv_header_stdc = yes; then
2889 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2890 cat >conftest.
$ac_ext <<_ACEOF
2891 #line 2891 "configure"
2892 #include "confdefs.h"
2896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2897 egrep "free" >/dev
/null
2>&1; then
2900 ac_cv_header_stdc
=no
2906 if test $ac_cv_header_stdc = yes; then
2907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2908 if test "$cross_compiling" = yes; then
2911 cat >conftest.
$ac_ext <<_ACEOF
2912 #line 2912 "configure"
2913 #include "confdefs.h"
2915 #if ((' ' & 0x0FF) == 0x020)
2916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2919 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2920 || ('j' <= (c) && (c) <= 'r') \
2921 || ('s' <= (c) && (c) <= 'z'))
2922 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2925 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2930 for (i = 0; i < 256; i++)
2931 if (XOR (islower (i), ISLOWER (i))
2932 || toupper (i) != TOUPPER (i))
2937 rm -f conftest
$ac_exeext
2938 if { (eval echo "$as_me:2938: \"$ac_link\"") >&5
2939 (eval $ac_link) 2>&5
2941 echo "$as_me:2941: \$? = $ac_status" >&5
2942 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
2943 { (eval echo "$as_me:2943: \"$ac_try\"") >&5
2946 echo "$as_me:2946: \$? = $ac_status" >&5
2947 (exit $ac_status); }; }; then
2950 echo "$as_me: program exited with status $ac_status" >&5
2951 echo "$as_me: failed program was:" >&5
2952 cat conftest.
$ac_ext >&5
2953 ac_cv_header_stdc
=no
2955 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
2959 echo "$as_me:2959: result: $ac_cv_header_stdc" >&5
2960 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2961 if test $ac_cv_header_stdc = yes; then
2963 cat >>confdefs.h
<<\EOF
2964 #define STDC_HEADERS 1
2969 for ac_header
in string.h
2971 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
2972 echo "$as_me:2972: checking for $ac_header" >&5
2973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2974 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 cat >conftest.
$ac_ext <<_ACEOF
2978 #line 2978 "configure"
2979 #include "confdefs.h"
2980 #include <$ac_header>
2982 if { (eval echo "$as_me:2982: \"$ac_cpp conftest.$ac_ext\"") >&5
2983 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2985 egrep -v '^ *\+' conftest.er1
>conftest.err
2987 cat conftest.err
>&5
2988 echo "$as_me:2988: \$? = $ac_status" >&5
2989 (exit $ac_status); } >/dev
/null
; then
2990 if test -s conftest.err
; then
2991 ac_cpp_err
=$ac_c_preproc_warn_flag
2998 if test -z "$ac_cpp_err"; then
2999 eval "$ac_ac_Header=yes"
3001 echo "$as_me: failed program was:" >&5
3002 cat conftest.
$ac_ext >&5
3003 eval "$ac_ac_Header=no"
3005 rm -f conftest.err conftest.
$ac_ext
3007 echo "$as_me:3007: result: `eval echo '${'$ac_ac_Header'}'`" >&5
3008 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
3009 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3010 cat >>confdefs.h
<<EOF
3011 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
3017 # Find a good install program. We prefer a C program (faster),
3018 # so one script is as good as another. But avoid the broken or
3019 # incompatible versions:
3020 # SysV /etc/install, /usr/sbin/install
3021 # SunOS /usr/etc/install
3022 # IRIX /sbin/install
3024 # AmigaOS /C/install, which installs bootblocks on floppy discs
3025 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3026 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3027 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3028 # ./install, which can be erroneously created by make from ./install.sh.
3029 echo "$as_me:3029: checking for a BSD compatible install" >&5
3030 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3031 if test -z "$INSTALL"; then
3032 if test "${ac_cv_path_install+set}" = set; then
3033 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3036 for ac_dir
in $PATH; do
3038 # Account for people who put trailing slashes in PATH elements.
3040 / | .
/ | .
// |
/cC
/* \
3041 |
/etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* \
3044 # OSF1 and SCO ODT 3.0 have their own names for install.
3045 # Don't use installbsd from OSF since it installs stuff as root
3047 for ac_prog
in ginstall scoinst
install; do
3048 if $as_executable_p "$ac_dir/$ac_prog"; then
3049 if test $ac_prog = install &&
3050 grep dspmsg
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3051 # AIX install. It has an incompatible calling convention.
3053 elif test $ac_prog = install &&
3054 grep pwplus
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
3055 # program-specific install script used by HP pwplus--don't use.
3058 ac_cv_path_install
="$ac_dir/$ac_prog -c"
3068 if test "${ac_cv_path_install+set}" = set; then
3069 INSTALL
=$ac_cv_path_install
3071 # As a last resort, use the slow shell script. We don't cache a
3072 # path for INSTALL within a source directory, because that will
3073 # break other packages using the cache if that directory is
3074 # removed, or if the path is relative.
3075 INSTALL
=$ac_install_sh
3078 echo "$as_me:3078: result: $INSTALL" >&5
3079 echo "${ECHO_T}$INSTALL" >&6
3081 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3082 # It thinks the first close brace ends the variable substitution.
3083 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3085 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3087 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3089 if test -n "$ac_tool_prefix"; then
3090 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3091 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3092 echo "$as_me:3092: checking for $ac_word" >&5
3093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3094 if test "${ac_cv_prog_RANLIB+set}" = set; then
3095 echo $ECHO_N "(cached) $ECHO_C" >&6
3097 if test -n "$RANLIB"; then
3098 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3100 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3102 for ac_dir
in $ac_dummy; do
3104 test -z "$ac_dir" && ac_dir
=.
3105 $as_executable_p "$ac_dir/$ac_word" ||
continue
3106 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3107 echo "$as_me:3107: found $ac_dir/$ac_word" >&5
3113 RANLIB
=$ac_cv_prog_RANLIB
3114 if test -n "$RANLIB"; then
3115 echo "$as_me:3115: result: $RANLIB" >&5
3116 echo "${ECHO_T}$RANLIB" >&6
3118 echo "$as_me:3118: result: no" >&5
3119 echo "${ECHO_T}no" >&6
3123 if test -z "$ac_cv_prog_RANLIB"; then
3124 ac_ct_RANLIB
=$RANLIB
3125 # Extract the first word of "ranlib", so it can be a program name with args.
3126 set dummy ranlib
; ac_word
=$2
3127 echo "$as_me:3127: checking for $ac_word" >&5
3128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3129 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3130 echo $ECHO_N "(cached) $ECHO_C" >&6
3132 if test -n "$ac_ct_RANLIB"; then
3133 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3135 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3137 for ac_dir
in $ac_dummy; do
3139 test -z "$ac_dir" && ac_dir
=.
3140 $as_executable_p "$ac_dir/$ac_word" ||
continue
3141 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3142 echo "$as_me:3142: found $ac_dir/$ac_word" >&5
3146 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3149 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3150 if test -n "$ac_ct_RANLIB"; then
3151 echo "$as_me:3151: result: $ac_ct_RANLIB" >&5
3152 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3154 echo "$as_me:3154: result: no" >&5
3155 echo "${ECHO_T}no" >&6
3158 RANLIB
=$ac_ct_RANLIB
3160 RANLIB
="$ac_cv_prog_RANLIB"
3163 echo "$as_me:3163: checking whether ${MAKE-make} sets \${MAKE}" >&5
3164 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3165 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
3166 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3169 cat >conftest.
make <<\EOF
3171 @
echo 'ac_maketemp="${MAKE}"'
3173 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3174 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3175 if test -n "$ac_maketemp"; then
3176 eval ac_cv_prog_make_
${ac_make}_set
=yes
3178 eval ac_cv_prog_make_
${ac_make}_set
=no
3182 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3183 echo "$as_me:3183: result: yes" >&5
3184 echo "${ECHO_T}yes" >&6
3187 echo "$as_me:3187: result: no" >&5
3188 echo "${ECHO_T}no" >&6
3189 SET_MAKE
="MAKE=${MAKE-make}"
3192 # Check whether --enable-largefile or --disable-largefile was given.
3193 if test "${enable_largefile+set}" = set; then
3194 enableval
="$enable_largefile"
3197 if test "$enable_largefile" != no
; then
3199 echo "$as_me:3199: checking for special C compiler options needed for large files" >&5
3200 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3201 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 ac_cv_sys_largefile_CC
=no
3205 if test "$GCC" != yes; then
3208 # IRIX 6.2 and later do not support large files by default,
3209 # so use the C compiler's -n32 option if that helps.
3210 cat >conftest.
$ac_ext <<_ACEOF
3211 #line 3211 "configure"
3212 #include "confdefs.h"
3213 #include <sys/types.h>
3214 /* Check that off_t can represent 2**63 - 1 correctly.
3215 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3216 since some C++ compilers masquerading as C compilers
3217 incorrectly reject 9223372036854775807. */
3218 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3219 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3220 && LARGE_OFF_T % 2147483647 == 1)
3230 rm -f conftest.
$ac_objext
3231 if { (eval echo "$as_me:3231: \"$ac_compile\"") >&5
3232 (eval $ac_compile) 2>&5
3234 echo "$as_me:3234: \$? = $ac_status" >&5
3235 (exit $ac_status); } &&
3236 { ac_try
='test -s conftest.$ac_objext'
3237 { (eval echo "$as_me:3237: \"$ac_try\"") >&5
3240 echo "$as_me:3240: \$? = $ac_status" >&5
3241 (exit $ac_status); }; }; then
3244 echo "$as_me: failed program was:" >&5
3245 cat conftest.
$ac_ext >&5
3247 rm -f conftest.
$ac_objext
3249 rm -f conftest.
$ac_objext
3250 if { (eval echo "$as_me:3250: \"$ac_compile\"") >&5
3251 (eval $ac_compile) 2>&5
3253 echo "$as_me:3253: \$? = $ac_status" >&5
3254 (exit $ac_status); } &&
3255 { ac_try
='test -s conftest.$ac_objext'
3256 { (eval echo "$as_me:3256: \"$ac_try\"") >&5
3259 echo "$as_me:3259: \$? = $ac_status" >&5
3260 (exit $ac_status); }; }; then
3261 ac_cv_sys_largefile_CC
=' -n32'; break
3263 echo "$as_me: failed program was:" >&5
3264 cat conftest.
$ac_ext >&5
3266 rm -f conftest.
$ac_objext
3270 rm -f conftest.
$ac_ext
3273 echo "$as_me:3273: result: $ac_cv_sys_largefile_CC" >&5
3274 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3275 if test "$ac_cv_sys_largefile_CC" != no
; then
3276 CC
=$CC$ac_cv_sys_largefile_CC
3279 echo "$as_me:3279: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3280 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3281 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 ac_cv_sys_file_offset_bits
=no
3286 cat >conftest.
$ac_ext <<_ACEOF
3287 #line 3287 "configure"
3288 #include "confdefs.h"
3289 #include <sys/types.h>
3290 /* Check that off_t can represent 2**63 - 1 correctly.
3291 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3292 since some C++ compilers masquerading as C compilers
3293 incorrectly reject 9223372036854775807. */
3294 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3295 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3296 && LARGE_OFF_T % 2147483647 == 1)
3306 rm -f conftest.
$ac_objext
3307 if { (eval echo "$as_me:3307: \"$ac_compile\"") >&5
3308 (eval $ac_compile) 2>&5
3310 echo "$as_me:3310: \$? = $ac_status" >&5
3311 (exit $ac_status); } &&
3312 { ac_try
='test -s conftest.$ac_objext'
3313 { (eval echo "$as_me:3313: \"$ac_try\"") >&5
3316 echo "$as_me:3316: \$? = $ac_status" >&5
3317 (exit $ac_status); }; }; then
3320 echo "$as_me: failed program was:" >&5
3321 cat conftest.
$ac_ext >&5
3323 rm -f conftest.
$ac_objext conftest.
$ac_ext
3324 cat >conftest.
$ac_ext <<_ACEOF
3325 #line 3325 "configure"
3326 #include "confdefs.h"
3327 #define _FILE_OFFSET_BITS 64
3328 #include <sys/types.h>
3329 /* Check that off_t can represent 2**63 - 1 correctly.
3330 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3331 since some C++ compilers masquerading as C compilers
3332 incorrectly reject 9223372036854775807. */
3333 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3334 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3335 && LARGE_OFF_T % 2147483647 == 1)
3345 rm -f conftest.
$ac_objext
3346 if { (eval echo "$as_me:3346: \"$ac_compile\"") >&5
3347 (eval $ac_compile) 2>&5
3349 echo "$as_me:3349: \$? = $ac_status" >&5
3350 (exit $ac_status); } &&
3351 { ac_try
='test -s conftest.$ac_objext'
3352 { (eval echo "$as_me:3352: \"$ac_try\"") >&5
3355 echo "$as_me:3355: \$? = $ac_status" >&5
3356 (exit $ac_status); }; }; then
3357 ac_cv_sys_file_offset_bits
=64; break
3359 echo "$as_me: failed program was:" >&5
3360 cat conftest.
$ac_ext >&5
3362 rm -f conftest.
$ac_objext conftest.
$ac_ext
3366 echo "$as_me:3366: result: $ac_cv_sys_file_offset_bits" >&5
3367 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3368 if test "$ac_cv_sys_file_offset_bits" != no
; then
3370 cat >>confdefs.h
<<EOF
3371 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3376 echo "$as_me:3376: checking for _LARGE_FILES value needed for large files" >&5
3377 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3378 if test "${ac_cv_sys_large_files+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 ac_cv_sys_large_files
=no
3383 cat >conftest.
$ac_ext <<_ACEOF
3384 #line 3384 "configure"
3385 #include "confdefs.h"
3386 #include <sys/types.h>
3387 /* Check that off_t can represent 2**63 - 1 correctly.
3388 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3389 since some C++ compilers masquerading as C compilers
3390 incorrectly reject 9223372036854775807. */
3391 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3392 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3393 && LARGE_OFF_T % 2147483647 == 1)
3403 rm -f conftest.
$ac_objext
3404 if { (eval echo "$as_me:3404: \"$ac_compile\"") >&5
3405 (eval $ac_compile) 2>&5
3407 echo "$as_me:3407: \$? = $ac_status" >&5
3408 (exit $ac_status); } &&
3409 { ac_try
='test -s conftest.$ac_objext'
3410 { (eval echo "$as_me:3410: \"$ac_try\"") >&5
3413 echo "$as_me:3413: \$? = $ac_status" >&5
3414 (exit $ac_status); }; }; then
3417 echo "$as_me: failed program was:" >&5
3418 cat conftest.
$ac_ext >&5
3420 rm -f conftest.
$ac_objext conftest.
$ac_ext
3421 cat >conftest.
$ac_ext <<_ACEOF
3422 #line 3422 "configure"
3423 #include "confdefs.h"
3424 #define _LARGE_FILES 1
3425 #include <sys/types.h>
3426 /* Check that off_t can represent 2**63 - 1 correctly.
3427 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3428 since some C++ compilers masquerading as C compilers
3429 incorrectly reject 9223372036854775807. */
3430 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3431 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3432 && LARGE_OFF_T % 2147483647 == 1)
3442 rm -f conftest.
$ac_objext
3443 if { (eval echo "$as_me:3443: \"$ac_compile\"") >&5
3444 (eval $ac_compile) 2>&5
3446 echo "$as_me:3446: \$? = $ac_status" >&5
3447 (exit $ac_status); } &&
3448 { ac_try
='test -s conftest.$ac_objext'
3449 { (eval echo "$as_me:3449: \"$ac_try\"") >&5
3452 echo "$as_me:3452: \$? = $ac_status" >&5
3453 (exit $ac_status); }; }; then
3454 ac_cv_sys_large_files
=1; break
3456 echo "$as_me: failed program was:" >&5
3457 cat conftest.
$ac_ext >&5
3459 rm -f conftest.
$ac_objext conftest.
$ac_ext
3463 echo "$as_me:3463: result: $ac_cv_sys_large_files" >&5
3464 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3465 if test "$ac_cv_sys_large_files" != no
; then
3467 cat >>confdefs.h
<<EOF
3468 #define _LARGE_FILES $ac_cv_sys_large_files
3475 echo "$as_me:3475: checking whether byte ordering is bigendian" >&5
3476 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3477 if test "${ac_cv_c_bigendian+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 ac_cv_c_bigendian
=unknown
3481 # See if sys/param.h defines the BYTE_ORDER macro.
3482 cat >conftest.
$ac_ext <<_ACEOF
3483 #line 3483 "configure"
3484 #include "confdefs.h"
3485 #include <sys/types.h>
3486 #include <sys/param.h>
3491 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3499 rm -f conftest.
$ac_objext
3500 if { (eval echo "$as_me:3500: \"$ac_compile\"") >&5
3501 (eval $ac_compile) 2>&5
3503 echo "$as_me:3503: \$? = $ac_status" >&5
3504 (exit $ac_status); } &&
3505 { ac_try
='test -s conftest.$ac_objext'
3506 { (eval echo "$as_me:3506: \"$ac_try\"") >&5
3509 echo "$as_me:3509: \$? = $ac_status" >&5
3510 (exit $ac_status); }; }; then
3511 # It does; now see whether it defined to BIG_ENDIAN or not.
3512 cat >conftest.
$ac_ext <<_ACEOF
3513 #line 3513 "configure"
3514 #include "confdefs.h"
3515 #include <sys/types.h>
3516 #include <sys/param.h>
3521 #if BYTE_ORDER != BIG_ENDIAN
3529 rm -f conftest.
$ac_objext
3530 if { (eval echo "$as_me:3530: \"$ac_compile\"") >&5
3531 (eval $ac_compile) 2>&5
3533 echo "$as_me:3533: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try
='test -s conftest.$ac_objext'
3536 { (eval echo "$as_me:3536: \"$ac_try\"") >&5
3539 echo "$as_me:3539: \$? = $ac_status" >&5
3540 (exit $ac_status); }; }; then
3541 ac_cv_c_bigendian
=yes
3543 echo "$as_me: failed program was:" >&5
3544 cat conftest.
$ac_ext >&5
3545 ac_cv_c_bigendian
=no
3547 rm -f conftest.
$ac_objext conftest.
$ac_ext
3549 echo "$as_me: failed program was:" >&5
3550 cat conftest.
$ac_ext >&5
3552 rm -f conftest.
$ac_objext conftest.
$ac_ext
3553 if test $ac_cv_c_bigendian = unknown
; then
3554 if test "$cross_compiling" = yes; then
3555 { { echo "$as_me:3555: error: cannot run test program while cross compiling" >&5
3556 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3557 { (exit 1); exit 1; }; }
3559 cat >conftest.
$ac_ext <<_ACEOF
3560 #line 3560 "configure"
3561 #include "confdefs.h"
3565 /* Are we little or big endian? From Harbison&Steele. */
3569 char c[sizeof (long)];
3572 exit (u.c[sizeof (long) - 1] == 1);
3575 rm -f conftest
$ac_exeext
3576 if { (eval echo "$as_me:3576: \"$ac_link\"") >&5
3577 (eval $ac_link) 2>&5
3579 echo "$as_me:3579: \$? = $ac_status" >&5
3580 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3581 { (eval echo "$as_me:3581: \"$ac_try\"") >&5
3584 echo "$as_me:3584: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3586 ac_cv_c_bigendian
=no
3588 echo "$as_me: program exited with status $ac_status" >&5
3589 echo "$as_me: failed program was:" >&5
3590 cat conftest.
$ac_ext >&5
3591 ac_cv_c_bigendian
=yes
3593 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
3597 echo "$as_me:3597: result: $ac_cv_c_bigendian" >&5
3598 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3599 if test $ac_cv_c_bigendian = yes; then
3601 cat >>confdefs.h
<<\EOF
3602 #define WORDS_BIGENDIAN 1
3607 echo "$as_me:3607: checking for an ANSI C-conforming const" >&5
3608 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3609 if test "${ac_cv_c_const+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 cat >conftest.
$ac_ext <<_ACEOF
3613 #line 3613 "configure"
3614 #include "confdefs.h"
3619 /* FIXME: Include the comments suggested by Paul. */
3621 /* Ultrix mips cc rejects this. */
3622 typedef int charset[2];
3624 /* SunOS 4.1.1 cc rejects this. */
3625 char const *const *ccp;
3627 /* NEC SVR4.0.2 mips cc rejects this. */
3628 struct point {int x, y;};
3629 static struct point const zero = {0,0};
3630 /* AIX XL C 1.02.0.0 rejects this.
3631 It does not let you subtract one const X* pointer from another in
3632 an arm of an if-expression whose if-part is not a constant
3634 const char *g = "string";
3635 ccp = &g + (g ? g-g : 0);
3636 /* HPUX 7.0 cc rejects these. */
3639 ccp = (char const *const *) p;
3640 { /* SCO 3.2v4 cc rejects this. */
3642 char const *s = 0 ? (char *) 0 : (char const *) 0;
3646 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3648 const int *foo = &x[0];
3651 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3652 typedef const int *iptr;
3656 { /* AIX XL C 1.02.0.0 rejects this saying
3657 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3658 struct s { int j; const int *ap[3]; };
3659 struct s *b; b->j = 5;
3661 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3670 rm -f conftest.
$ac_objext
3671 if { (eval echo "$as_me:3671: \"$ac_compile\"") >&5
3672 (eval $ac_compile) 2>&5
3674 echo "$as_me:3674: \$? = $ac_status" >&5
3675 (exit $ac_status); } &&
3676 { ac_try
='test -s conftest.$ac_objext'
3677 { (eval echo "$as_me:3677: \"$ac_try\"") >&5
3680 echo "$as_me:3680: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3684 echo "$as_me: failed program was:" >&5
3685 cat conftest.
$ac_ext >&5
3688 rm -f conftest.
$ac_objext conftest.
$ac_ext
3690 echo "$as_me:3690: result: $ac_cv_c_const" >&5
3691 echo "${ECHO_T}$ac_cv_c_const" >&6
3692 if test $ac_cv_c_const = no
; then
3694 cat >>confdefs.h
<<\EOF
3700 echo "$as_me:3700: checking for working volatile" >&5
3701 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
3702 if test "${ac_cv_c_volatile+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 cat >conftest.
$ac_ext <<_ACEOF
3706 #line 3706 "configure"
3707 #include "confdefs.h"
3719 rm -f conftest.
$ac_objext
3720 if { (eval echo "$as_me:3720: \"$ac_compile\"") >&5
3721 (eval $ac_compile) 2>&5
3723 echo "$as_me:3723: \$? = $ac_status" >&5
3724 (exit $ac_status); } &&
3725 { ac_try
='test -s conftest.$ac_objext'
3726 { (eval echo "$as_me:3726: \"$ac_try\"") >&5
3729 echo "$as_me:3729: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3731 ac_cv_c_volatile
=yes
3733 echo "$as_me: failed program was:" >&5
3734 cat conftest.
$ac_ext >&5
3737 rm -f conftest.
$ac_objext conftest.
$ac_ext
3739 echo "$as_me:3739: result: $ac_cv_c_volatile" >&5
3740 echo "${ECHO_T}$ac_cv_c_volatile" >&6
3741 if test $ac_cv_c_volatile = no
; then
3743 cat >>confdefs.h
<<\EOF
3749 echo "$as_me:3749: checking for inline" >&5
3750 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3751 if test "${ac_cv_c_inline+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 for ac_kw
in inline __inline__ __inline
; do
3756 cat >conftest.
$ac_ext <<_ACEOF
3757 #line 3757 "configure"
3758 #include "confdefs.h"
3760 static $ac_kw int static_foo () {return 0; }
3761 $ac_kw int foo () {return 0; }
3765 rm -f conftest.
$ac_objext
3766 if { (eval echo "$as_me:3766: \"$ac_compile\"") >&5
3767 (eval $ac_compile) 2>&5
3769 echo "$as_me:3769: \$? = $ac_status" >&5
3770 (exit $ac_status); } &&
3771 { ac_try
='test -s conftest.$ac_objext'
3772 { (eval echo "$as_me:3772: \"$ac_try\"") >&5
3775 echo "$as_me:3775: \$? = $ac_status" >&5
3776 (exit $ac_status); }; }; then
3777 ac_cv_c_inline
=$ac_kw; break
3779 echo "$as_me: failed program was:" >&5
3780 cat conftest.
$ac_ext >&5
3782 rm -f conftest.
$ac_objext conftest.
$ac_ext
3786 echo "$as_me:3786: result: $ac_cv_c_inline" >&5
3787 echo "${ECHO_T}$ac_cv_c_inline" >&6
3788 case $ac_cv_c_inline in
3791 cat >>confdefs.h
<<\EOF
3795 *) cat >>confdefs.h
<<EOF
3796 #define inline $ac_cv_c_inline
3801 echo "$as_me:3801: checking for long double" >&5
3802 echo $ECHO_N "checking for long double... $ECHO_C" >&6
3803 if test "${ac_cv_c_long_double+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 if test "$GCC" = yes; then
3807 ac_cv_c_long_double
=yes
3809 if test "$cross_compiling" = yes; then
3810 { { echo "$as_me:3810: error: cannot run test program while cross compiling" >&5
3811 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3812 { (exit 1); exit 1; }; }
3814 cat >conftest.
$ac_ext <<_ACEOF
3815 #line 3815 "configure"
3816 #include "confdefs.h"
3820 /* The Stardent Vistra knows sizeof(long double), but does not
3822 long double foo = 0.0;
3823 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
3824 exit (sizeof (long double) < sizeof (double));
3827 rm -f conftest
$ac_exeext
3828 if { (eval echo "$as_me:3828: \"$ac_link\"") >&5
3829 (eval $ac_link) 2>&5
3831 echo "$as_me:3831: \$? = $ac_status" >&5
3832 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3833 { (eval echo "$as_me:3833: \"$ac_try\"") >&5
3836 echo "$as_me:3836: \$? = $ac_status" >&5
3837 (exit $ac_status); }; }; then
3838 ac_cv_c_long_double
=yes
3840 echo "$as_me: program exited with status $ac_status" >&5
3841 echo "$as_me: failed program was:" >&5
3842 cat conftest.
$ac_ext >&5
3843 ac_cv_c_long_double
=no
3845 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
3849 echo "$as_me:3849: result: $ac_cv_c_long_double" >&5
3850 echo "${ECHO_T}$ac_cv_c_long_double" >&6
3851 if test $ac_cv_c_long_double = yes; then
3853 cat >>confdefs.h
<<\EOF
3854 #define HAVE_LONG_DOUBLE 1
3860 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
3861 ac_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`
3862 echo "$as_me:3862: checking for $ac_hdr that defines DIR" >&5
3863 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3864 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 cat >conftest.
$ac_ext <<_ACEOF
3868 #line 3868 "configure"
3869 #include "confdefs.h"
3870 #include <sys/types.h>
3881 rm -f conftest.
$ac_objext
3882 if { (eval echo "$as_me:3882: \"$ac_compile\"") >&5
3883 (eval $ac_compile) 2>&5
3885 echo "$as_me:3885: \$? = $ac_status" >&5
3886 (exit $ac_status); } &&
3887 { ac_try
='test -s conftest.$ac_objext'
3888 { (eval echo "$as_me:3888: \"$ac_try\"") >&5
3891 echo "$as_me:3891: \$? = $ac_status" >&5
3892 (exit $ac_status); }; }; then
3893 eval "$ac_ac_Header=yes"
3895 echo "$as_me: failed program was:" >&5
3896 cat conftest.
$ac_ext >&5
3897 eval "$ac_ac_Header=no"
3899 rm -f conftest.
$ac_objext conftest.
$ac_ext
3901 echo "$as_me:3901: result: `eval echo '${'$ac_ac_Header'}'`" >&5
3902 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
3903 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3904 cat >>confdefs.h
<<EOF
3905 #define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
3908 ac_header_dirent
=$ac_hdr; break
3912 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3913 if test $ac_header_dirent = dirent.h
; then
3914 echo "$as_me:3914: checking for opendir in -ldir" >&5
3915 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
3916 if test "${ac_cv_lib_dir_opendir+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 ac_check_lib_save_LIBS
=$LIBS
3921 cat >conftest.
$ac_ext <<_ACEOF
3922 #line 3922 "configure"
3923 #include "confdefs.h"
3925 /* Override any gcc2 internal prototype to avoid an error. */
3929 /* We use char because int might match the return type of a gcc2
3930 builtin and then its argument prototype would still apply. */
3940 rm -f conftest.
$ac_objext conftest
$ac_exeext
3941 if { (eval echo "$as_me:3941: \"$ac_link\"") >&5
3942 (eval $ac_link) 2>&5
3944 echo "$as_me:3944: \$? = $ac_status" >&5
3945 (exit $ac_status); } &&
3946 { ac_try
='test -s conftest$ac_exeext'
3947 { (eval echo "$as_me:3947: \"$ac_try\"") >&5
3950 echo "$as_me:3950: \$? = $ac_status" >&5
3951 (exit $ac_status); }; }; then
3952 ac_cv_lib_dir_opendir
=yes
3954 echo "$as_me: failed program was:" >&5
3955 cat conftest.
$ac_ext >&5
3956 ac_cv_lib_dir_opendir
=no
3958 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
3959 LIBS
=$ac_check_lib_save_LIBS
3961 echo "$as_me:3961: result: $ac_cv_lib_dir_opendir" >&5
3962 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
3963 if test $ac_cv_lib_dir_opendir = yes; then
3968 echo "$as_me:3968: checking for opendir in -lx" >&5
3969 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
3970 if test "${ac_cv_lib_x_opendir+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 ac_check_lib_save_LIBS
=$LIBS
3975 cat >conftest.
$ac_ext <<_ACEOF
3976 #line 3976 "configure"
3977 #include "confdefs.h"
3979 /* Override any gcc2 internal prototype to avoid an error. */
3983 /* We use char because int might match the return type of a gcc2
3984 builtin and then its argument prototype would still apply. */
3994 rm -f conftest.
$ac_objext conftest
$ac_exeext
3995 if { (eval echo "$as_me:3995: \"$ac_link\"") >&5
3996 (eval $ac_link) 2>&5
3998 echo "$as_me:3998: \$? = $ac_status" >&5
3999 (exit $ac_status); } &&
4000 { ac_try
='test -s conftest$ac_exeext'
4001 { (eval echo "$as_me:4001: \"$ac_try\"") >&5
4004 echo "$as_me:4004: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4006 ac_cv_lib_x_opendir
=yes
4008 echo "$as_me: failed program was:" >&5
4009 cat conftest.
$ac_ext >&5
4010 ac_cv_lib_x_opendir
=no
4012 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4013 LIBS
=$ac_check_lib_save_LIBS
4015 echo "$as_me:4015: result: $ac_cv_lib_x_opendir" >&5
4016 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
4017 if test $ac_cv_lib_x_opendir = yes; then
4023 for ac_header
in stdlib.h string.h memory.h
strings.h inttypes.h unistd.h
4025 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4026 echo "$as_me:4026: checking for $ac_header" >&5
4027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4028 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 cat >conftest.
$ac_ext <<_ACEOF
4032 #line 4032 "configure"
4033 #include "confdefs.h"
4034 #include <$ac_header>
4036 if { (eval echo "$as_me:4036: \"$ac_cpp conftest.$ac_ext\"") >&5
4037 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4039 egrep -v '^ *\+' conftest.er1
>conftest.err
4041 cat conftest.err
>&5
4042 echo "$as_me:4042: \$? = $ac_status" >&5
4043 (exit $ac_status); } >/dev
/null
; then
4044 if test -s conftest.err
; then
4045 ac_cpp_err
=$ac_c_preproc_warn_flag
4052 if test -z "$ac_cpp_err"; then
4053 eval "$ac_ac_Header=yes"
4055 echo "$as_me: failed program was:" >&5
4056 cat conftest.
$ac_ext >&5
4057 eval "$ac_ac_Header=no"
4059 rm -f conftest.err conftest.
$ac_ext
4061 echo "$as_me:4061: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4062 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4063 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4064 cat >>confdefs.h
<<EOF
4065 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4071 echo "$as_me:4071: checking for struct stat.st_blocks" >&5
4072 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4073 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 cat >conftest.
$ac_ext <<_ACEOF
4077 #line 4077 "configure"
4078 #include "confdefs.h"
4079 $ac_includes_default
4089 rm -f conftest.
$ac_objext
4090 if { (eval echo "$as_me:4090: \"$ac_compile\"") >&5
4091 (eval $ac_compile) 2>&5
4093 echo "$as_me:4093: \$? = $ac_status" >&5
4094 (exit $ac_status); } &&
4095 { ac_try
='test -s conftest.$ac_objext'
4096 { (eval echo "$as_me:4096: \"$ac_try\"") >&5
4099 echo "$as_me:4099: \$? = $ac_status" >&5
4100 (exit $ac_status); }; }; then
4101 ac_cv_member_struct_stat_st_blocks
=yes
4103 echo "$as_me: failed program was:" >&5
4104 cat conftest.
$ac_ext >&5
4105 ac_cv_member_struct_stat_st_blocks
=no
4107 rm -f conftest.
$ac_objext conftest.
$ac_ext
4109 echo "$as_me:4109: result: $ac_cv_member_struct_stat_st_blocks" >&5
4110 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4111 if test $ac_cv_member_struct_stat_st_blocks = yes; then
4113 cat >>confdefs.h
<<EOF
4114 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
4117 cat >>confdefs.h
<<\EOF
4118 #define HAVE_ST_BLOCKS 1
4122 LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
4125 echo "$as_me:4125: checking whether struct tm is in sys/time.h or time.h" >&5
4126 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4127 if test "${ac_cv_struct_tm+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 cat >conftest.
$ac_ext <<_ACEOF
4131 #line 4131 "configure"
4132 #include "confdefs.h"
4133 #include <sys/types.h>
4139 struct tm *tp; tp->tm_sec;
4144 rm -f conftest.
$ac_objext
4145 if { (eval echo "$as_me:4145: \"$ac_compile\"") >&5
4146 (eval $ac_compile) 2>&5
4148 echo "$as_me:4148: \$? = $ac_status" >&5
4149 (exit $ac_status); } &&
4150 { ac_try
='test -s conftest.$ac_objext'
4151 { (eval echo "$as_me:4151: \"$ac_try\"") >&5
4154 echo "$as_me:4154: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 ac_cv_struct_tm
=time.h
4158 echo "$as_me: failed program was:" >&5
4159 cat conftest.
$ac_ext >&5
4160 ac_cv_struct_tm
=sys
/time.h
4162 rm -f conftest.
$ac_objext conftest.
$ac_ext
4164 echo "$as_me:4164: result: $ac_cv_struct_tm" >&5
4165 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4166 if test $ac_cv_struct_tm = sys
/time.h
; then
4168 cat >>confdefs.h
<<\EOF
4169 #define TM_IN_SYS_TIME 1
4174 echo "$as_me:4174: checking for struct tm.tm_zone" >&5
4175 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4176 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 cat >conftest.
$ac_ext <<_ACEOF
4180 #line 4180 "configure"
4181 #include "confdefs.h"
4182 #include <sys/types.h>
4183 #include <$ac_cv_struct_tm>
4194 rm -f conftest.
$ac_objext
4195 if { (eval echo "$as_me:4195: \"$ac_compile\"") >&5
4196 (eval $ac_compile) 2>&5
4198 echo "$as_me:4198: \$? = $ac_status" >&5
4199 (exit $ac_status); } &&
4200 { ac_try
='test -s conftest.$ac_objext'
4201 { (eval echo "$as_me:4201: \"$ac_try\"") >&5
4204 echo "$as_me:4204: \$? = $ac_status" >&5
4205 (exit $ac_status); }; }; then
4206 ac_cv_member_struct_tm_tm_zone
=yes
4208 echo "$as_me: failed program was:" >&5
4209 cat conftest.
$ac_ext >&5
4210 ac_cv_member_struct_tm_tm_zone
=no
4212 rm -f conftest.
$ac_objext conftest.
$ac_ext
4214 echo "$as_me:4214: result: $ac_cv_member_struct_tm_tm_zone" >&5
4215 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4216 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4218 cat >>confdefs.h
<<EOF
4219 #define HAVE_STRUCT_TM_TM_ZONE 1
4224 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4226 cat >>confdefs.h
<<\EOF
4227 #define HAVE_TM_ZONE 1
4231 echo "$as_me:4231: checking for tzname" >&5
4232 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4233 if test "${ac_cv_var_tzname+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4236 cat >conftest.
$ac_ext <<_ACEOF
4237 #line 4237 "configure"
4238 #include "confdefs.h"
4240 #ifndef tzname /* For SGI. */
4241 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4252 rm -f conftest.
$ac_objext conftest
$ac_exeext
4253 if { (eval echo "$as_me:4253: \"$ac_link\"") >&5
4254 (eval $ac_link) 2>&5
4256 echo "$as_me:4256: \$? = $ac_status" >&5
4257 (exit $ac_status); } &&
4258 { ac_try
='test -s conftest$ac_exeext'
4259 { (eval echo "$as_me:4259: \"$ac_try\"") >&5
4262 echo "$as_me:4262: \$? = $ac_status" >&5
4263 (exit $ac_status); }; }; then
4264 ac_cv_var_tzname
=yes
4266 echo "$as_me: failed program was:" >&5
4267 cat conftest.
$ac_ext >&5
4270 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4272 echo "$as_me:4272: result: $ac_cv_var_tzname" >&5
4273 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4274 if test $ac_cv_var_tzname = yes; then
4276 cat >>confdefs.h
<<\EOF
4277 #define HAVE_TZNAME 1
4283 echo "$as_me:4283: checking whether stat file-mode macros are broken" >&5
4284 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
4285 if test "${ac_cv_header_stat_broken+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 cat >conftest.
$ac_ext <<_ACEOF
4289 #line 4289 "configure"
4290 #include "confdefs.h"
4291 #include <sys/types.h>
4292 #include <sys/stat.h>
4294 #if defined(S_ISBLK) && defined(S_IFDIR)
4295 # if S_ISBLK (S_IFDIR)
4300 #if defined(S_ISBLK) && defined(S_IFCHR)
4301 # if S_ISBLK (S_IFCHR)
4306 #if defined(S_ISLNK) && defined(S_IFREG)
4307 # if S_ISLNK (S_IFREG)
4312 #if defined(S_ISSOCK) && defined(S_IFREG)
4313 # if S_ISSOCK (S_IFREG)
4319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4320 egrep "You lose" >/dev
/null
2>&1; then
4321 ac_cv_header_stat_broken
=yes
4323 ac_cv_header_stat_broken
=no
4328 echo "$as_me:4328: result: $ac_cv_header_stat_broken" >&5
4329 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
4330 if test $ac_cv_header_stat_broken = yes; then
4332 cat >>confdefs.h
<<\EOF
4333 #define STAT_MACROS_BROKEN 1
4338 echo "$as_me:4338: checking for nanoseconds member of struct stat.st_mtim" >&5
4339 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
4340 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 ac_save_CPPFLAGS
="$CPPFLAGS"
4344 ac_cv_struct_st_mtim_nsec
=no
4345 # tv_nsec -- the usual case
4346 # _tv_nsec -- Solaris 2.6, if
4347 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
4348 # && !defined __EXTENSIONS__)
4349 # st__tim.tv_nsec -- UnixWare 2.1.2
4350 for ac_val
in tv_nsec _tv_nsec st__tim.tv_nsec
; do
4351 CPPFLAGS
="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
4352 cat >conftest.
$ac_ext <<_ACEOF
4353 #line 4353 "configure"
4354 #include "confdefs.h"
4355 #include <sys/types.h>
4356 #include <sys/stat.h>
4360 struct stat s; s.st_mtim.ST_MTIM_NSEC;
4365 rm -f conftest.
$ac_objext
4366 if { (eval echo "$as_me:4366: \"$ac_compile\"") >&5
4367 (eval $ac_compile) 2>&5
4369 echo "$as_me:4369: \$? = $ac_status" >&5
4370 (exit $ac_status); } &&
4371 { ac_try
='test -s conftest.$ac_objext'
4372 { (eval echo "$as_me:4372: \"$ac_try\"") >&5
4375 echo "$as_me:4375: \$? = $ac_status" >&5
4376 (exit $ac_status); }; }; then
4377 ac_cv_struct_st_mtim_nsec
=$ac_val; break
4379 echo "$as_me: failed program was:" >&5
4380 cat conftest.
$ac_ext >&5
4382 rm -f conftest.
$ac_objext conftest.
$ac_ext
4384 CPPFLAGS
="$ac_save_CPPFLAGS"
4386 echo "$as_me:4386: result: $ac_cv_struct_st_mtim_nsec" >&5
4387 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
4389 if test $ac_cv_struct_st_mtim_nsec != no
; then
4391 cat >>confdefs.h
<<EOF
4392 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
4397 echo "$as_me:4397: checking for st_dm_mode in struct stat" >&5
4398 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6
4399 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 cat >conftest.
$ac_ext <<_ACEOF
4403 #line 4403 "configure"
4404 #include "confdefs.h"
4405 #include <sys/types.h>
4406 #include <sys/stat.h>
4410 struct stat s; s.st_dm_mode;
4415 rm -f conftest.
$ac_objext
4416 if { (eval echo "$as_me:4416: \"$ac_compile\"") >&5
4417 (eval $ac_compile) 2>&5
4419 echo "$as_me:4419: \$? = $ac_status" >&5
4420 (exit $ac_status); } &&
4421 { ac_try
='test -s conftest.$ac_objext'
4422 { (eval echo "$as_me:4422: \"$ac_try\"") >&5
4425 echo "$as_me:4425: \$? = $ac_status" >&5
4426 (exit $ac_status); }; }; then
4427 ac_cv_struct_st_dm_mode
=yes
4429 echo "$as_me: failed program was:" >&5
4430 cat conftest.
$ac_ext >&5
4431 ac_cv_struct_st_dm_mode
=no
4433 rm -f conftest.
$ac_objext conftest.
$ac_ext
4435 echo "$as_me:4435: result: $ac_cv_struct_st_dm_mode" >&5
4436 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6
4438 if test $ac_cv_struct_st_dm_mode = yes; then
4440 cat >>confdefs.h
<<EOF
4441 #define HAVE_ST_DM_MODE 1
4446 echo "$as_me:4446: checking whether time.h and sys/time.h may both be included" >&5
4447 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4448 if test "${ac_cv_header_time+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 cat >conftest.
$ac_ext <<_ACEOF
4452 #line 4452 "configure"
4453 #include "confdefs.h"
4454 #include <sys/types.h>
4455 #include <sys/time.h>
4466 rm -f conftest.
$ac_objext
4467 if { (eval echo "$as_me:4467: \"$ac_compile\"") >&5
4468 (eval $ac_compile) 2>&5
4470 echo "$as_me:4470: \$? = $ac_status" >&5
4471 (exit $ac_status); } &&
4472 { ac_try
='test -s conftest.$ac_objext'
4473 { (eval echo "$as_me:4473: \"$ac_try\"") >&5
4476 echo "$as_me:4476: \$? = $ac_status" >&5
4477 (exit $ac_status); }; }; then
4478 ac_cv_header_time
=yes
4480 echo "$as_me: failed program was:" >&5
4481 cat conftest.
$ac_ext >&5
4482 ac_cv_header_time
=no
4484 rm -f conftest.
$ac_objext conftest.
$ac_ext
4486 echo "$as_me:4486: result: $ac_cv_header_time" >&5
4487 echo "${ECHO_T}$ac_cv_header_time" >&6
4488 if test $ac_cv_header_time = yes; then
4490 cat >>confdefs.h
<<\EOF
4491 #define TIME_WITH_SYS_TIME 1
4496 echo "$as_me:4496: checking for struct timespec" >&5
4497 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
4498 if test "${fu_cv_sys_struct_timespec+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 cat >conftest.
$ac_ext <<_ACEOF
4502 #line 4502 "configure"
4503 #include "confdefs.h"
4505 # if TIME_WITH_SYS_TIME
4506 # include <sys/time.h>
4509 # if HAVE_SYS_TIME_H
4510 # include <sys/time.h>
4519 static struct timespec x; x.tv_sec = x.tv_nsec;
4524 rm -f conftest.
$ac_objext
4525 if { (eval echo "$as_me:4525: \"$ac_compile\"") >&5
4526 (eval $ac_compile) 2>&5
4528 echo "$as_me:4528: \$? = $ac_status" >&5
4529 (exit $ac_status); } &&
4530 { ac_try
='test -s conftest.$ac_objext'
4531 { (eval echo "$as_me:4531: \"$ac_try\"") >&5
4534 echo "$as_me:4534: \$? = $ac_status" >&5
4535 (exit $ac_status); }; }; then
4536 fu_cv_sys_struct_timespec
=yes
4538 echo "$as_me: failed program was:" >&5
4539 cat conftest.
$ac_ext >&5
4540 fu_cv_sys_struct_timespec
=no
4542 rm -f conftest.
$ac_objext conftest.
$ac_ext
4545 echo "$as_me:4545: result: $fu_cv_sys_struct_timespec" >&5
4546 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
4548 if test $fu_cv_sys_struct_timespec = yes; then
4550 cat >>confdefs.h
<<EOF
4551 #define HAVE_STRUCT_TIMESPEC 1
4556 echo "$as_me:4556: checking for uid_t in sys/types.h" >&5
4557 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4558 if test "${ac_cv_type_uid_t+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 cat >conftest.
$ac_ext <<_ACEOF
4562 #line 4562 "configure"
4563 #include "confdefs.h"
4564 #include <sys/types.h>
4567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4568 egrep "uid_t" >/dev
/null
2>&1; then
4569 ac_cv_type_uid_t
=yes
4576 echo "$as_me:4576: result: $ac_cv_type_uid_t" >&5
4577 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4578 if test $ac_cv_type_uid_t = no
; then
4580 cat >>confdefs.h
<<\EOF
4584 cat >>confdefs.h
<<\EOF
4590 echo "$as_me:4590: checking type of array argument to getgroups" >&5
4591 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
4592 if test "${ac_cv_type_getgroups+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 if test "$cross_compiling" = yes; then
4596 ac_cv_type_getgroups
=cross
4598 cat >conftest.
$ac_ext <<_ACEOF
4599 #line 4599 "configure"
4600 #include "confdefs.h"
4601 /* Thanks to Mike Rendell for this test. */
4602 #include <sys/types.h>
4605 #define MAX(x, y) ((x) > (y) ? (x) : (y))
4612 union { gid_t gval; long lval; } val;
4615 for (i = 0; i < NGID; i++)
4616 gidset[i] = val.gval;
4617 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
4619 /* Exit non-zero if getgroups seems to require an array of ints. This
4620 happens when gid_t is short but getgroups modifies an array of ints. */
4621 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
4624 rm -f conftest
$ac_exeext
4625 if { (eval echo "$as_me:4625: \"$ac_link\"") >&5
4626 (eval $ac_link) 2>&5
4628 echo "$as_me:4628: \$? = $ac_status" >&5
4629 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4630 { (eval echo "$as_me:4630: \"$ac_try\"") >&5
4633 echo "$as_me:4633: \$? = $ac_status" >&5
4634 (exit $ac_status); }; }; then
4635 ac_cv_type_getgroups
=gid_t
4637 echo "$as_me: program exited with status $ac_status" >&5
4638 echo "$as_me: failed program was:" >&5
4639 cat conftest.
$ac_ext >&5
4640 ac_cv_type_getgroups
=int
4642 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
4644 if test $ac_cv_type_getgroups = cross
; then
4645 cat >conftest.
$ac_ext <<_ACEOF
4646 #line 4646 "configure"
4647 #include "confdefs.h"
4651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4652 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
4653 ac_cv_type_getgroups
=gid_t
4655 ac_cv_type_getgroups
=int
4661 echo "$as_me:4661: result: $ac_cv_type_getgroups" >&5
4662 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
4664 cat >>confdefs.h
<<EOF
4665 #define GETGROUPS_T $ac_cv_type_getgroups
4668 echo "$as_me:4668: checking for mode_t" >&5
4669 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4670 if test "${ac_cv_type_mode_t+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 cat >conftest.
$ac_ext <<_ACEOF
4674 #line 4674 "configure"
4675 #include "confdefs.h"
4676 $ac_includes_default
4682 if (sizeof (mode_t))
4688 rm -f conftest.
$ac_objext
4689 if { (eval echo "$as_me:4689: \"$ac_compile\"") >&5
4690 (eval $ac_compile) 2>&5
4692 echo "$as_me:4692: \$? = $ac_status" >&5
4693 (exit $ac_status); } &&
4694 { ac_try
='test -s conftest.$ac_objext'
4695 { (eval echo "$as_me:4695: \"$ac_try\"") >&5
4698 echo "$as_me:4698: \$? = $ac_status" >&5
4699 (exit $ac_status); }; }; then
4700 ac_cv_type_mode_t
=yes
4702 echo "$as_me: failed program was:" >&5
4703 cat conftest.
$ac_ext >&5
4704 ac_cv_type_mode_t
=no
4706 rm -f conftest.
$ac_objext conftest.
$ac_ext
4708 echo "$as_me:4708: result: $ac_cv_type_mode_t" >&5
4709 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4710 if test $ac_cv_type_mode_t = yes; then
4714 cat >>confdefs.h
<<EOF
4720 echo "$as_me:4720: checking for off_t" >&5
4721 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4722 if test "${ac_cv_type_off_t+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 cat >conftest.
$ac_ext <<_ACEOF
4726 #line 4726 "configure"
4727 #include "confdefs.h"
4728 $ac_includes_default
4740 rm -f conftest.
$ac_objext
4741 if { (eval echo "$as_me:4741: \"$ac_compile\"") >&5
4742 (eval $ac_compile) 2>&5
4744 echo "$as_me:4744: \$? = $ac_status" >&5
4745 (exit $ac_status); } &&
4746 { ac_try
='test -s conftest.$ac_objext'
4747 { (eval echo "$as_me:4747: \"$ac_try\"") >&5
4750 echo "$as_me:4750: \$? = $ac_status" >&5
4751 (exit $ac_status); }; }; then
4752 ac_cv_type_off_t
=yes
4754 echo "$as_me: failed program was:" >&5
4755 cat conftest.
$ac_ext >&5
4758 rm -f conftest.
$ac_objext conftest.
$ac_ext
4760 echo "$as_me:4760: result: $ac_cv_type_off_t" >&5
4761 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4762 if test $ac_cv_type_off_t = yes; then
4766 cat >>confdefs.h
<<EOF
4772 echo "$as_me:4772: checking for pid_t" >&5
4773 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4774 if test "${ac_cv_type_pid_t+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 cat >conftest.
$ac_ext <<_ACEOF
4778 #line 4778 "configure"
4779 #include "confdefs.h"
4780 $ac_includes_default
4792 rm -f conftest.
$ac_objext
4793 if { (eval echo "$as_me:4793: \"$ac_compile\"") >&5
4794 (eval $ac_compile) 2>&5
4796 echo "$as_me:4796: \$? = $ac_status" >&5
4797 (exit $ac_status); } &&
4798 { ac_try
='test -s conftest.$ac_objext'
4799 { (eval echo "$as_me:4799: \"$ac_try\"") >&5
4802 echo "$as_me:4802: \$? = $ac_status" >&5
4803 (exit $ac_status); }; }; then
4804 ac_cv_type_pid_t
=yes
4806 echo "$as_me: failed program was:" >&5
4807 cat conftest.
$ac_ext >&5
4810 rm -f conftest.
$ac_objext conftest.
$ac_ext
4812 echo "$as_me:4812: result: $ac_cv_type_pid_t" >&5
4813 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4814 if test $ac_cv_type_pid_t = yes; then
4818 cat >>confdefs.h
<<EOF
4824 echo "$as_me:4824: checking return type of signal handlers" >&5
4825 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4826 if test "${ac_cv_type_signal+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 cat >conftest.
$ac_ext <<_ACEOF
4830 #line 4830 "configure"
4831 #include "confdefs.h"
4832 #include <sys/types.h>
4838 extern "C" void (*signal (int, void (*)(int)))(int);
4840 void (*signal ()) ();
4851 rm -f conftest.
$ac_objext
4852 if { (eval echo "$as_me:4852: \"$ac_compile\"") >&5
4853 (eval $ac_compile) 2>&5
4855 echo "$as_me:4855: \$? = $ac_status" >&5
4856 (exit $ac_status); } &&
4857 { ac_try
='test -s conftest.$ac_objext'
4858 { (eval echo "$as_me:4858: \"$ac_try\"") >&5
4861 echo "$as_me:4861: \$? = $ac_status" >&5
4862 (exit $ac_status); }; }; then
4863 ac_cv_type_signal
=void
4865 echo "$as_me: failed program was:" >&5
4866 cat conftest.
$ac_ext >&5
4867 ac_cv_type_signal
=int
4869 rm -f conftest.
$ac_objext conftest.
$ac_ext
4871 echo "$as_me:4871: result: $ac_cv_type_signal" >&5
4872 echo "${ECHO_T}$ac_cv_type_signal" >&6
4874 cat >>confdefs.h
<<EOF
4875 #define RETSIGTYPE $ac_cv_type_signal
4878 echo "$as_me:4878: checking for size_t" >&5
4879 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4880 if test "${ac_cv_type_size_t+set}" = set; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 cat >conftest.
$ac_ext <<_ACEOF
4884 #line 4884 "configure"
4885 #include "confdefs.h"
4886 $ac_includes_default
4892 if (sizeof (size_t))
4898 rm -f conftest.
$ac_objext
4899 if { (eval echo "$as_me:4899: \"$ac_compile\"") >&5
4900 (eval $ac_compile) 2>&5
4902 echo "$as_me:4902: \$? = $ac_status" >&5
4903 (exit $ac_status); } &&
4904 { ac_try
='test -s conftest.$ac_objext'
4905 { (eval echo "$as_me:4905: \"$ac_try\"") >&5
4908 echo "$as_me:4908: \$? = $ac_status" >&5
4909 (exit $ac_status); }; }; then
4910 ac_cv_type_size_t
=yes
4912 echo "$as_me: failed program was:" >&5
4913 cat conftest.
$ac_ext >&5
4914 ac_cv_type_size_t
=no
4916 rm -f conftest.
$ac_objext conftest.
$ac_ext
4918 echo "$as_me:4918: result: $ac_cv_type_size_t" >&5
4919 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4920 if test $ac_cv_type_size_t = yes; then
4924 cat >>confdefs.h
<<EOF
4925 #define size_t unsigned
4930 echo "$as_me:4930: checking for inttypes.h" >&5
4931 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4932 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 cat >conftest.
$ac_ext <<_ACEOF
4936 #line 4936 "configure"
4937 #include "confdefs.h"
4938 #include <sys/types.h>
4939 #include <inttypes.h>
4943 uintmax_t i = (uintmax_t) -1;
4948 rm -f conftest.
$ac_objext
4949 if { (eval echo "$as_me:4949: \"$ac_compile\"") >&5
4950 (eval $ac_compile) 2>&5
4952 echo "$as_me:4952: \$? = $ac_status" >&5
4953 (exit $ac_status); } &&
4954 { ac_try
='test -s conftest.$ac_objext'
4955 { (eval echo "$as_me:4955: \"$ac_try\"") >&5
4958 echo "$as_me:4958: \$? = $ac_status" >&5
4959 (exit $ac_status); }; }; then
4960 jm_ac_cv_header_inttypes_h
=yes
4962 echo "$as_me: failed program was:" >&5
4963 cat conftest.
$ac_ext >&5
4964 jm_ac_cv_header_inttypes_h
=no
4966 rm -f conftest.
$ac_objext conftest.
$ac_ext
4968 echo "$as_me:4968: result: $jm_ac_cv_header_inttypes_h" >&5
4969 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4970 if test $jm_ac_cv_header_inttypes_h = yes; then
4972 cat >>confdefs.h
<<EOF
4973 #define HAVE_INTTYPES_H 1
4978 echo "$as_me:4978: checking for unsigned long long" >&5
4979 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
4980 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 cat >conftest.
$ac_ext <<_ACEOF
4984 #line 4984 "configure"
4985 #include "confdefs.h"
4986 unsigned long long ull = 1; int i = 63;
4990 unsigned long long ullmax = (unsigned long long) -1;
4991 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4996 rm -f conftest.
$ac_objext conftest
$ac_exeext
4997 if { (eval echo "$as_me:4997: \"$ac_link\"") >&5
4998 (eval $ac_link) 2>&5
5000 echo "$as_me:5000: \$? = $ac_status" >&5
5001 (exit $ac_status); } &&
5002 { ac_try
='test -s conftest$ac_exeext'
5003 { (eval echo "$as_me:5003: \"$ac_try\"") >&5
5006 echo "$as_me:5006: \$? = $ac_status" >&5
5007 (exit $ac_status); }; }; then
5008 ac_cv_type_unsigned_long_long
=yes
5010 echo "$as_me: failed program was:" >&5
5011 cat conftest.
$ac_ext >&5
5012 ac_cv_type_unsigned_long_long
=no
5014 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5016 echo "$as_me:5016: result: $ac_cv_type_unsigned_long_long" >&5
5017 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5018 if test $ac_cv_type_unsigned_long_long = yes; then
5020 cat >>confdefs.h
<<\EOF
5021 #define HAVE_UNSIGNED_LONG_LONG 1
5026 if test $jm_ac_cv_header_inttypes_h = no
; then
5028 test $ac_cv_type_unsigned_long_long = yes \
5029 && ac_type
='unsigned long long' \
5030 || ac_type
='unsigned long'
5032 cat >>confdefs.h
<<EOF
5033 #define uintmax_t $ac_type
5038 echo "$as_me:5038: checking whether sys/types.h defines makedev" >&5
5039 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5040 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 cat >conftest.
$ac_ext <<_ACEOF
5044 #line 5044 "configure"
5045 #include "confdefs.h"
5046 #include <sys/types.h>
5051 return makedev(0, 0);
5056 rm -f conftest.
$ac_objext conftest
$ac_exeext
5057 if { (eval echo "$as_me:5057: \"$ac_link\"") >&5
5058 (eval $ac_link) 2>&5
5060 echo "$as_me:5060: \$? = $ac_status" >&5
5061 (exit $ac_status); } &&
5062 { ac_try
='test -s conftest$ac_exeext'
5063 { (eval echo "$as_me:5063: \"$ac_try\"") >&5
5066 echo "$as_me:5066: \$? = $ac_status" >&5
5067 (exit $ac_status); }; }; then
5068 ac_cv_header_sys_types_h_makedev
=yes
5070 echo "$as_me: failed program was:" >&5
5071 cat conftest.
$ac_ext >&5
5072 ac_cv_header_sys_types_h_makedev
=no
5074 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5077 echo "$as_me:5077: result: $ac_cv_header_sys_types_h_makedev" >&5
5078 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5080 if test $ac_cv_header_sys_types_h_makedev = no
; then
5081 echo "$as_me:5081: checking for sys/mkdev.h" >&5
5082 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5083 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 cat >conftest.
$ac_ext <<_ACEOF
5087 #line 5087 "configure"
5088 #include "confdefs.h"
5089 #include <sys/mkdev.h>
5091 if { (eval echo "$as_me:5091: \"$ac_cpp conftest.$ac_ext\"") >&5
5092 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5094 egrep -v '^ *\+' conftest.er1
>conftest.err
5096 cat conftest.err
>&5
5097 echo "$as_me:5097: \$? = $ac_status" >&5
5098 (exit $ac_status); } >/dev
/null
; then
5099 if test -s conftest.err
; then
5100 ac_cpp_err
=$ac_c_preproc_warn_flag
5107 if test -z "$ac_cpp_err"; then
5108 ac_cv_header_sys_mkdev_h
=yes
5110 echo "$as_me: failed program was:" >&5
5111 cat conftest.
$ac_ext >&5
5112 ac_cv_header_sys_mkdev_h
=no
5114 rm -f conftest.err conftest.
$ac_ext
5116 echo "$as_me:5116: result: $ac_cv_header_sys_mkdev_h" >&5
5117 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5118 if test $ac_cv_header_sys_mkdev_h = yes; then
5120 cat >>confdefs.h
<<\EOF
5121 #define MAJOR_IN_MKDEV 1
5126 if test $ac_cv_header_sys_mkdev_h = no
; then
5127 echo "$as_me:5127: checking for sys/sysmacros.h" >&5
5128 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5129 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 cat >conftest.
$ac_ext <<_ACEOF
5133 #line 5133 "configure"
5134 #include "confdefs.h"
5135 #include <sys/sysmacros.h>
5137 if { (eval echo "$as_me:5137: \"$ac_cpp conftest.$ac_ext\"") >&5
5138 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5140 egrep -v '^ *\+' conftest.er1
>conftest.err
5142 cat conftest.err
>&5
5143 echo "$as_me:5143: \$? = $ac_status" >&5
5144 (exit $ac_status); } >/dev
/null
; then
5145 if test -s conftest.err
; then
5146 ac_cpp_err
=$ac_c_preproc_warn_flag
5153 if test -z "$ac_cpp_err"; then
5154 ac_cv_header_sys_sysmacros_h
=yes
5156 echo "$as_me: failed program was:" >&5
5157 cat conftest.
$ac_ext >&5
5158 ac_cv_header_sys_sysmacros_h
=no
5160 rm -f conftest.err conftest.
$ac_ext
5162 echo "$as_me:5162: result: $ac_cv_header_sys_sysmacros_h" >&5
5163 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5164 if test $ac_cv_header_sys_sysmacros_h = yes; then
5166 cat >>confdefs.h
<<\EOF
5167 #define MAJOR_IN_SYSMACROS 1
5175 echo "$as_me:5175: checking for struct stat.st_blksize" >&5
5176 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
5177 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 cat >conftest.
$ac_ext <<_ACEOF
5181 #line 5181 "configure"
5182 #include "confdefs.h"
5183 $ac_includes_default
5184 #include <sys/stat.h>
5195 rm -f conftest.
$ac_objext
5196 if { (eval echo "$as_me:5196: \"$ac_compile\"") >&5
5197 (eval $ac_compile) 2>&5
5199 echo "$as_me:5199: \$? = $ac_status" >&5
5200 (exit $ac_status); } &&
5201 { ac_try
='test -s conftest.$ac_objext'
5202 { (eval echo "$as_me:5202: \"$ac_try\"") >&5
5205 echo "$as_me:5205: \$? = $ac_status" >&5
5206 (exit $ac_status); }; }; then
5207 ac_cv_member_struct_stat_st_blksize
=yes
5209 echo "$as_me: failed program was:" >&5
5210 cat conftest.
$ac_ext >&5
5211 ac_cv_member_struct_stat_st_blksize
=no
5213 rm -f conftest.
$ac_objext conftest.
$ac_ext
5215 echo "$as_me:5215: result: $ac_cv_member_struct_stat_st_blksize" >&5
5216 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
5217 if test $ac_cv_member_struct_stat_st_blksize = yes; then
5219 cat >>confdefs.h
<<EOF
5220 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5225 echo "$as_me:5225: checking for ino_t" >&5
5226 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
5227 if test "${ac_cv_type_ino_t+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 cat >conftest.
$ac_ext <<_ACEOF
5231 #line 5231 "configure"
5232 #include "confdefs.h"
5233 $ac_includes_default
5245 rm -f conftest.
$ac_objext
5246 if { (eval echo "$as_me:5246: \"$ac_compile\"") >&5
5247 (eval $ac_compile) 2>&5
5249 echo "$as_me:5249: \$? = $ac_status" >&5
5250 (exit $ac_status); } &&
5251 { ac_try
='test -s conftest.$ac_objext'
5252 { (eval echo "$as_me:5252: \"$ac_try\"") >&5
5255 echo "$as_me:5255: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 ac_cv_type_ino_t
=yes
5259 echo "$as_me: failed program was:" >&5
5260 cat conftest.
$ac_ext >&5
5263 rm -f conftest.
$ac_objext conftest.
$ac_ext
5265 echo "$as_me:5265: result: $ac_cv_type_ino_t" >&5
5266 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
5267 if test $ac_cv_type_ino_t = yes; then
5271 cat >>confdefs.h
<<EOF
5272 #define ino_t unsigned long
5277 echo "$as_me:5277: checking for ssize_t" >&5
5278 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
5279 if test "${ac_cv_type_ssize_t+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 cat >conftest.
$ac_ext <<_ACEOF
5283 #line 5283 "configure"
5284 #include "confdefs.h"
5285 $ac_includes_default
5291 if (sizeof (ssize_t))
5297 rm -f conftest.
$ac_objext
5298 if { (eval echo "$as_me:5298: \"$ac_compile\"") >&5
5299 (eval $ac_compile) 2>&5
5301 echo "$as_me:5301: \$? = $ac_status" >&5
5302 (exit $ac_status); } &&
5303 { ac_try
='test -s conftest.$ac_objext'
5304 { (eval echo "$as_me:5304: \"$ac_try\"") >&5
5307 echo "$as_me:5307: \$? = $ac_status" >&5
5308 (exit $ac_status); }; }; then
5309 ac_cv_type_ssize_t
=yes
5311 echo "$as_me: failed program was:" >&5
5312 cat conftest.
$ac_ext >&5
5313 ac_cv_type_ssize_t
=no
5315 rm -f conftest.
$ac_objext conftest.
$ac_ext
5317 echo "$as_me:5317: result: $ac_cv_type_ssize_t" >&5
5318 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
5319 if test $ac_cv_type_ssize_t = yes; then
5323 cat >>confdefs.h
<<EOF
5329 echo "$as_me:5329: checking for getpwnam in -lsun" >&5
5330 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
5331 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5334 ac_check_lib_save_LIBS
=$LIBS
5336 cat >conftest.
$ac_ext <<_ACEOF
5337 #line 5337 "configure"
5338 #include "confdefs.h"
5340 /* Override any gcc2 internal prototype to avoid an error. */
5344 /* We use char because int might match the return type of a gcc2
5345 builtin and then its argument prototype would still apply. */
5355 rm -f conftest.
$ac_objext conftest
$ac_exeext
5356 if { (eval echo "$as_me:5356: \"$ac_link\"") >&5
5357 (eval $ac_link) 2>&5
5359 echo "$as_me:5359: \$? = $ac_status" >&5
5360 (exit $ac_status); } &&
5361 { ac_try
='test -s conftest$ac_exeext'
5362 { (eval echo "$as_me:5362: \"$ac_try\"") >&5
5365 echo "$as_me:5365: \$? = $ac_status" >&5
5366 (exit $ac_status); }; }; then
5367 ac_cv_lib_sun_getpwnam
=yes
5369 echo "$as_me: failed program was:" >&5
5370 cat conftest.
$ac_ext >&5
5371 ac_cv_lib_sun_getpwnam
=no
5373 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5374 LIBS
=$ac_check_lib_save_LIBS
5376 echo "$as_me:5376: result: $ac_cv_lib_sun_getpwnam" >&5
5377 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
5378 if test $ac_cv_lib_sun_getpwnam = yes; then
5379 cat >>confdefs.h
<<EOF
5380 #define HAVE_LIBSUN 1
5387 for ac_header
in fcntl.h string.h limits.h unistd.h errno.h
5389 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5390 echo "$as_me:5390: checking for $ac_header" >&5
5391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5392 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5395 cat >conftest.
$ac_ext <<_ACEOF
5396 #line 5396 "configure"
5397 #include "confdefs.h"
5398 #include <$ac_header>
5400 if { (eval echo "$as_me:5400: \"$ac_cpp conftest.$ac_ext\"") >&5
5401 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5403 egrep -v '^ *\+' conftest.er1
>conftest.err
5405 cat conftest.err
>&5
5406 echo "$as_me:5406: \$? = $ac_status" >&5
5407 (exit $ac_status); } >/dev
/null
; then
5408 if test -s conftest.err
; then
5409 ac_cpp_err
=$ac_c_preproc_warn_flag
5416 if test -z "$ac_cpp_err"; then
5417 eval "$ac_ac_Header=yes"
5419 echo "$as_me: failed program was:" >&5
5420 cat conftest.
$ac_ext >&5
5421 eval "$ac_ac_Header=no"
5423 rm -f conftest.err conftest.
$ac_ext
5425 echo "$as_me:5425: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5426 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5427 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5428 cat >>confdefs.h
<<EOF
5429 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5435 echo "$as_me:5435: checking for ANSI C header files" >&5
5436 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5437 if test "${ac_cv_header_stdc+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5440 cat >conftest.
$ac_ext <<_ACEOF
5441 #line 5441 "configure"
5442 #include "confdefs.h"
5449 if { (eval echo "$as_me:5449: \"$ac_cpp conftest.$ac_ext\"") >&5
5450 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5452 egrep -v '^ *\+' conftest.er1
>conftest.err
5454 cat conftest.err
>&5
5455 echo "$as_me:5455: \$? = $ac_status" >&5
5456 (exit $ac_status); } >/dev
/null
; then
5457 if test -s conftest.err
; then
5458 ac_cpp_err
=$ac_c_preproc_warn_flag
5465 if test -z "$ac_cpp_err"; then
5466 ac_cv_header_stdc
=yes
5468 echo "$as_me: failed program was:" >&5
5469 cat conftest.
$ac_ext >&5
5470 ac_cv_header_stdc
=no
5472 rm -f conftest.err conftest.
$ac_ext
5474 if test $ac_cv_header_stdc = yes; then
5475 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5476 cat >conftest.
$ac_ext <<_ACEOF
5477 #line 5477 "configure"
5478 #include "confdefs.h"
5482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5483 egrep "memchr" >/dev
/null
2>&1; then
5486 ac_cv_header_stdc
=no
5492 if test $ac_cv_header_stdc = yes; then
5493 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5494 cat >conftest.
$ac_ext <<_ACEOF
5495 #line 5495 "configure"
5496 #include "confdefs.h"
5500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5501 egrep "free" >/dev
/null
2>&1; then
5504 ac_cv_header_stdc
=no
5510 if test $ac_cv_header_stdc = yes; then
5511 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5512 if test "$cross_compiling" = yes; then
5515 cat >conftest.
$ac_ext <<_ACEOF
5516 #line 5516 "configure"
5517 #include "confdefs.h"
5519 #if ((' ' & 0x0FF) == 0x020)
5520 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5521 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5523 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5524 || ('j' <= (c) && (c) <= 'r') \
5525 || ('s' <= (c) && (c) <= 'z'))
5526 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5529 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5534 for (i = 0; i < 256; i++)
5535 if (XOR (islower (i), ISLOWER (i))
5536 || toupper (i) != TOUPPER (i))
5541 rm -f conftest
$ac_exeext
5542 if { (eval echo "$as_me:5542: \"$ac_link\"") >&5
5543 (eval $ac_link) 2>&5
5545 echo "$as_me:5545: \$? = $ac_status" >&5
5546 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5547 { (eval echo "$as_me:5547: \"$ac_try\"") >&5
5550 echo "$as_me:5550: \$? = $ac_status" >&5
5551 (exit $ac_status); }; }; then
5554 echo "$as_me: program exited with status $ac_status" >&5
5555 echo "$as_me: failed program was:" >&5
5556 cat conftest.
$ac_ext >&5
5557 ac_cv_header_stdc
=no
5559 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
5563 echo "$as_me:5563: result: $ac_cv_header_stdc" >&5
5564 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5565 if test $ac_cv_header_stdc = yes; then
5567 cat >>confdefs.h
<<\EOF
5568 #define STDC_HEADERS 1
5573 echo "$as_me:5573: checking whether sys/types.h defines makedev" >&5
5574 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5575 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 cat >conftest.
$ac_ext <<_ACEOF
5579 #line 5579 "configure"
5580 #include "confdefs.h"
5581 #include <sys/types.h>
5586 return makedev(0, 0);
5591 rm -f conftest.
$ac_objext conftest
$ac_exeext
5592 if { (eval echo "$as_me:5592: \"$ac_link\"") >&5
5593 (eval $ac_link) 2>&5
5595 echo "$as_me:5595: \$? = $ac_status" >&5
5596 (exit $ac_status); } &&
5597 { ac_try
='test -s conftest$ac_exeext'
5598 { (eval echo "$as_me:5598: \"$ac_try\"") >&5
5601 echo "$as_me:5601: \$? = $ac_status" >&5
5602 (exit $ac_status); }; }; then
5603 ac_cv_header_sys_types_h_makedev
=yes
5605 echo "$as_me: failed program was:" >&5
5606 cat conftest.
$ac_ext >&5
5607 ac_cv_header_sys_types_h_makedev
=no
5609 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5612 echo "$as_me:5612: result: $ac_cv_header_sys_types_h_makedev" >&5
5613 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5615 if test $ac_cv_header_sys_types_h_makedev = no
; then
5616 echo "$as_me:5616: checking for sys/mkdev.h" >&5
5617 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5618 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5621 cat >conftest.
$ac_ext <<_ACEOF
5622 #line 5622 "configure"
5623 #include "confdefs.h"
5624 #include <sys/mkdev.h>
5626 if { (eval echo "$as_me:5626: \"$ac_cpp conftest.$ac_ext\"") >&5
5627 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5629 egrep -v '^ *\+' conftest.er1
>conftest.err
5631 cat conftest.err
>&5
5632 echo "$as_me:5632: \$? = $ac_status" >&5
5633 (exit $ac_status); } >/dev
/null
; then
5634 if test -s conftest.err
; then
5635 ac_cpp_err
=$ac_c_preproc_warn_flag
5642 if test -z "$ac_cpp_err"; then
5643 ac_cv_header_sys_mkdev_h
=yes
5645 echo "$as_me: failed program was:" >&5
5646 cat conftest.
$ac_ext >&5
5647 ac_cv_header_sys_mkdev_h
=no
5649 rm -f conftest.err conftest.
$ac_ext
5651 echo "$as_me:5651: result: $ac_cv_header_sys_mkdev_h" >&5
5652 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5653 if test $ac_cv_header_sys_mkdev_h = yes; then
5655 cat >>confdefs.h
<<\EOF
5656 #define MAJOR_IN_MKDEV 1
5661 if test $ac_cv_header_sys_mkdev_h = no
; then
5662 echo "$as_me:5662: checking for sys/sysmacros.h" >&5
5663 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5664 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 cat >conftest.
$ac_ext <<_ACEOF
5668 #line 5668 "configure"
5669 #include "confdefs.h"
5670 #include <sys/sysmacros.h>
5672 if { (eval echo "$as_me:5672: \"$ac_cpp conftest.$ac_ext\"") >&5
5673 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5675 egrep -v '^ *\+' conftest.er1
>conftest.err
5677 cat conftest.err
>&5
5678 echo "$as_me:5678: \$? = $ac_status" >&5
5679 (exit $ac_status); } >/dev
/null
; then
5680 if test -s conftest.err
; then
5681 ac_cpp_err
=$ac_c_preproc_warn_flag
5688 if test -z "$ac_cpp_err"; then
5689 ac_cv_header_sys_sysmacros_h
=yes
5691 echo "$as_me: failed program was:" >&5
5692 cat conftest.
$ac_ext >&5
5693 ac_cv_header_sys_sysmacros_h
=no
5695 rm -f conftest.err conftest.
$ac_ext
5697 echo "$as_me:5697: result: $ac_cv_header_sys_sysmacros_h" >&5
5698 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5699 if test $ac_cv_header_sys_sysmacros_h = yes; then
5701 cat >>confdefs.h
<<\EOF
5702 #define MAJOR_IN_SYSMACROS 1
5711 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
5712 ac_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`
5713 echo "$as_me:5713: checking for $ac_hdr that defines DIR" >&5
5714 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5715 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 cat >conftest.
$ac_ext <<_ACEOF
5719 #line 5719 "configure"
5720 #include "confdefs.h"
5721 #include <sys/types.h>
5732 rm -f conftest.
$ac_objext
5733 if { (eval echo "$as_me:5733: \"$ac_compile\"") >&5
5734 (eval $ac_compile) 2>&5
5736 echo "$as_me:5736: \$? = $ac_status" >&5
5737 (exit $ac_status); } &&
5738 { ac_try
='test -s conftest.$ac_objext'
5739 { (eval echo "$as_me:5739: \"$ac_try\"") >&5
5742 echo "$as_me:5742: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
5744 eval "$ac_ac_Header=yes"
5746 echo "$as_me: failed program was:" >&5
5747 cat conftest.
$ac_ext >&5
5748 eval "$ac_ac_Header=no"
5750 rm -f conftest.
$ac_objext conftest.
$ac_ext
5752 echo "$as_me:5752: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5753 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5754 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5755 cat >>confdefs.h
<<EOF
5756 #define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
5759 ac_header_dirent
=$ac_hdr; break
5763 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5764 if test $ac_header_dirent = dirent.h
; then
5765 echo "$as_me:5765: checking for opendir in -ldir" >&5
5766 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
5767 if test "${ac_cv_lib_dir_opendir+set}" = set; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 ac_check_lib_save_LIBS
=$LIBS
5772 cat >conftest.
$ac_ext <<_ACEOF
5773 #line 5773 "configure"
5774 #include "confdefs.h"
5776 /* Override any gcc2 internal prototype to avoid an error. */
5780 /* We use char because int might match the return type of a gcc2
5781 builtin and then its argument prototype would still apply. */
5791 rm -f conftest.
$ac_objext conftest
$ac_exeext
5792 if { (eval echo "$as_me:5792: \"$ac_link\"") >&5
5793 (eval $ac_link) 2>&5
5795 echo "$as_me:5795: \$? = $ac_status" >&5
5796 (exit $ac_status); } &&
5797 { ac_try
='test -s conftest$ac_exeext'
5798 { (eval echo "$as_me:5798: \"$ac_try\"") >&5
5801 echo "$as_me:5801: \$? = $ac_status" >&5
5802 (exit $ac_status); }; }; then
5803 ac_cv_lib_dir_opendir
=yes
5805 echo "$as_me: failed program was:" >&5
5806 cat conftest.
$ac_ext >&5
5807 ac_cv_lib_dir_opendir
=no
5809 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5810 LIBS
=$ac_check_lib_save_LIBS
5812 echo "$as_me:5812: result: $ac_cv_lib_dir_opendir" >&5
5813 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
5814 if test $ac_cv_lib_dir_opendir = yes; then
5819 echo "$as_me:5819: checking for opendir in -lx" >&5
5820 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
5821 if test "${ac_cv_lib_x_opendir+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5824 ac_check_lib_save_LIBS
=$LIBS
5826 cat >conftest.
$ac_ext <<_ACEOF
5827 #line 5827 "configure"
5828 #include "confdefs.h"
5830 /* Override any gcc2 internal prototype to avoid an error. */
5834 /* We use char because int might match the return type of a gcc2
5835 builtin and then its argument prototype would still apply. */
5845 rm -f conftest.
$ac_objext conftest
$ac_exeext
5846 if { (eval echo "$as_me:5846: \"$ac_link\"") >&5
5847 (eval $ac_link) 2>&5
5849 echo "$as_me:5849: \$? = $ac_status" >&5
5850 (exit $ac_status); } &&
5851 { ac_try
='test -s conftest$ac_exeext'
5852 { (eval echo "$as_me:5852: \"$ac_try\"") >&5
5855 echo "$as_me:5855: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
5857 ac_cv_lib_x_opendir
=yes
5859 echo "$as_me: failed program was:" >&5
5860 cat conftest.
$ac_ext >&5
5861 ac_cv_lib_x_opendir
=no
5863 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5864 LIBS
=$ac_check_lib_save_LIBS
5866 echo "$as_me:5866: result: $ac_cv_lib_x_opendir" >&5
5867 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
5868 if test $ac_cv_lib_x_opendir = yes; then
5874 echo "$as_me:5874: checking whether stat file-mode macros are broken" >&5
5875 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5876 if test "${ac_cv_header_stat_broken+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 cat >conftest.
$ac_ext <<_ACEOF
5880 #line 5880 "configure"
5881 #include "confdefs.h"
5882 #include <sys/types.h>
5883 #include <sys/stat.h>
5885 #if defined(S_ISBLK) && defined(S_IFDIR)
5886 # if S_ISBLK (S_IFDIR)
5891 #if defined(S_ISBLK) && defined(S_IFCHR)
5892 # if S_ISBLK (S_IFCHR)
5897 #if defined(S_ISLNK) && defined(S_IFREG)
5898 # if S_ISLNK (S_IFREG)
5903 #if defined(S_ISSOCK) && defined(S_IFREG)
5904 # if S_ISSOCK (S_IFREG)
5910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5911 egrep "You lose" >/dev
/null
2>&1; then
5912 ac_cv_header_stat_broken
=yes
5914 ac_cv_header_stat_broken
=no
5919 echo "$as_me:5919: result: $ac_cv_header_stat_broken" >&5
5920 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5921 if test $ac_cv_header_stat_broken = yes; then
5923 cat >>confdefs.h
<<\EOF
5924 #define STAT_MACROS_BROKEN 1
5929 echo "$as_me:5929: checking for sys/wait.h that is POSIX.1 compatible" >&5
5930 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5931 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 cat >conftest.
$ac_ext <<_ACEOF
5935 #line 5935 "configure"
5936 #include "confdefs.h"
5937 #include <sys/types.h>
5938 #include <sys/wait.h>
5940 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5943 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5951 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5956 rm -f conftest.
$ac_objext
5957 if { (eval echo "$as_me:5957: \"$ac_compile\"") >&5
5958 (eval $ac_compile) 2>&5
5960 echo "$as_me:5960: \$? = $ac_status" >&5
5961 (exit $ac_status); } &&
5962 { ac_try
='test -s conftest.$ac_objext'
5963 { (eval echo "$as_me:5963: \"$ac_try\"") >&5
5966 echo "$as_me:5966: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 ac_cv_header_sys_wait_h
=yes
5970 echo "$as_me: failed program was:" >&5
5971 cat conftest.
$ac_ext >&5
5972 ac_cv_header_sys_wait_h
=no
5974 rm -f conftest.
$ac_objext conftest.
$ac_ext
5976 echo "$as_me:5976: result: $ac_cv_header_sys_wait_h" >&5
5977 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5978 if test $ac_cv_header_sys_wait_h = yes; then
5980 cat >>confdefs.h
<<\EOF
5981 #define HAVE_SYS_WAIT_H 1
5986 echo "$as_me:5986: checking how to get filesystem type" >&5
5987 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
5989 # The order of these tests is important.
5990 cat >conftest.
$ac_ext <<_ACEOF
5991 #line 5991 "configure"
5992 #include "confdefs.h"
5993 #include <sys/statvfs.h>
5994 #include <sys/fstyp.h>
5996 if { (eval echo "$as_me:5996: \"$ac_cpp conftest.$ac_ext\"") >&5
5997 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5999 egrep -v '^ *\+' conftest.er1
>conftest.err
6001 cat conftest.err
>&5
6002 echo "$as_me:6002: \$? = $ac_status" >&5
6003 (exit $ac_status); } >/dev
/null
; then
6004 if test -s conftest.err
; then
6005 ac_cpp_err
=$ac_c_preproc_warn_flag
6012 if test -z "$ac_cpp_err"; then
6014 cat >>confdefs.h
<<\EOF
6015 #define FSTYPE_STATVFS 1
6019 echo "$as_me: failed program was:" >&5
6020 cat conftest.
$ac_ext >&5
6023 rm -f conftest.err conftest.
$ac_ext
6024 if test $fstype = no
; then
6025 cat >conftest.
$ac_ext <<_ACEOF
6026 #line 6026 "configure"
6027 #include "confdefs.h"
6028 #include <sys/statfs.h>
6029 #include <sys/fstyp.h>
6031 if { (eval echo "$as_me:6031: \"$ac_cpp conftest.$ac_ext\"") >&5
6032 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6034 egrep -v '^ *\+' conftest.er1
>conftest.err
6036 cat conftest.err
>&5
6037 echo "$as_me:6037: \$? = $ac_status" >&5
6038 (exit $ac_status); } >/dev
/null
; then
6039 if test -s conftest.err
; then
6040 ac_cpp_err
=$ac_c_preproc_warn_flag
6047 if test -z "$ac_cpp_err"; then
6049 cat >>confdefs.h
<<\EOF
6050 #define FSTYPE_USG_STATFS 1
6054 echo "$as_me: failed program was:" >&5
6055 cat conftest.
$ac_ext >&5
6058 rm -f conftest.err conftest.
$ac_ext
6060 if test $fstype = no
; then
6061 cat >conftest.
$ac_ext <<_ACEOF
6062 #line 6062 "configure"
6063 #include "confdefs.h"
6064 #include <sys/statfs.h>
6065 #include <sys/vmount.h>
6067 if { (eval echo "$as_me:6067: \"$ac_cpp conftest.$ac_ext\"") >&5
6068 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6070 egrep -v '^ *\+' conftest.er1
>conftest.err
6072 cat conftest.err
>&5
6073 echo "$as_me:6073: \$? = $ac_status" >&5
6074 (exit $ac_status); } >/dev
/null
; then
6075 if test -s conftest.err
; then
6076 ac_cpp_err
=$ac_c_preproc_warn_flag
6083 if test -z "$ac_cpp_err"; then
6085 cat >>confdefs.h
<<\EOF
6086 #define FSTYPE_AIX_STATFS 1
6090 echo "$as_me: failed program was:" >&5
6091 cat conftest.
$ac_ext >&5
6094 rm -f conftest.err conftest.
$ac_ext
6096 if test $fstype = no
; then
6097 cat >conftest.
$ac_ext <<_ACEOF
6098 #line 6098 "configure"
6099 #include "confdefs.h"
6102 if { (eval echo "$as_me:6102: \"$ac_cpp conftest.$ac_ext\"") >&5
6103 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6105 egrep -v '^ *\+' conftest.er1
>conftest.err
6107 cat conftest.err
>&5
6108 echo "$as_me:6108: \$? = $ac_status" >&5
6109 (exit $ac_status); } >/dev
/null
; then
6110 if test -s conftest.err
; then
6111 ac_cpp_err
=$ac_c_preproc_warn_flag
6118 if test -z "$ac_cpp_err"; then
6120 cat >>confdefs.h
<<\EOF
6121 #define FSTYPE_MNTENT 1
6125 echo "$as_me: failed program was:" >&5
6126 cat conftest.
$ac_ext >&5
6129 rm -f conftest.err conftest.
$ac_ext
6131 if test $fstype = no
; then
6132 cat >conftest.
$ac_ext <<_ACEOF
6133 #line 6133 "configure"
6134 #include "confdefs.h"
6135 #include <sys/mount.h>
6138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6139 egrep "f_type;" >/dev
/null
2>&1; then
6141 cat >>confdefs.h
<<\EOF
6142 #define FSTYPE_STATFS 1
6149 if test $fstype = no
; then
6150 cat >conftest.
$ac_ext <<_ACEOF
6151 #line 6151 "configure"
6152 #include "confdefs.h"
6153 #include <sys/mount.h>
6154 #include <sys/fs_types.h>
6156 if { (eval echo "$as_me:6156: \"$ac_cpp conftest.$ac_ext\"") >&5
6157 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6159 egrep -v '^ *\+' conftest.er1
>conftest.err
6161 cat conftest.err
>&5
6162 echo "$as_me:6162: \$? = $ac_status" >&5
6163 (exit $ac_status); } >/dev
/null
; then
6164 if test -s conftest.err
; then
6165 ac_cpp_err
=$ac_c_preproc_warn_flag
6172 if test -z "$ac_cpp_err"; then
6174 cat >>confdefs.h
<<\EOF
6175 #define FSTYPE_GETMNT 1
6179 echo "$as_me: failed program was:" >&5
6180 cat conftest.
$ac_ext >&5
6183 rm -f conftest.err conftest.
$ac_ext
6185 echo "$as_me:6185: result: $fstype" >&5
6186 echo "${ECHO_T}$fstype" >&6
6188 echo "$as_me:6188: checking for uid_t in sys/types.h" >&5
6189 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6190 if test "${ac_cv_type_uid_t+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 cat >conftest.
$ac_ext <<_ACEOF
6194 #line 6194 "configure"
6195 #include "confdefs.h"
6196 #include <sys/types.h>
6199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6200 egrep "uid_t" >/dev
/null
2>&1; then
6201 ac_cv_type_uid_t
=yes
6208 echo "$as_me:6208: result: $ac_cv_type_uid_t" >&5
6209 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6210 if test $ac_cv_type_uid_t = no
; then
6212 cat >>confdefs.h
<<\EOF
6216 cat >>confdefs.h
<<\EOF
6222 echo "$as_me:6222: checking for size_t" >&5
6223 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6224 if test "${ac_cv_type_size_t+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 cat >conftest.
$ac_ext <<_ACEOF
6228 #line 6228 "configure"
6229 #include "confdefs.h"
6230 $ac_includes_default
6236 if (sizeof (size_t))
6242 rm -f conftest.
$ac_objext
6243 if { (eval echo "$as_me:6243: \"$ac_compile\"") >&5
6244 (eval $ac_compile) 2>&5
6246 echo "$as_me:6246: \$? = $ac_status" >&5
6247 (exit $ac_status); } &&
6248 { ac_try
='test -s conftest.$ac_objext'
6249 { (eval echo "$as_me:6249: \"$ac_try\"") >&5
6252 echo "$as_me:6252: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6254 ac_cv_type_size_t
=yes
6256 echo "$as_me: failed program was:" >&5
6257 cat conftest.
$ac_ext >&5
6258 ac_cv_type_size_t
=no
6260 rm -f conftest.
$ac_objext conftest.
$ac_ext
6262 echo "$as_me:6262: result: $ac_cv_type_size_t" >&5
6263 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6264 if test $ac_cv_type_size_t = yes; then
6268 cat >>confdefs.h
<<EOF
6269 #define size_t unsigned
6274 echo "$as_me:6274: checking for ssize_t" >&5
6275 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6276 if test "${ac_cv_type_ssize_t+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 cat >conftest.
$ac_ext <<_ACEOF
6280 #line 6280 "configure"
6281 #include "confdefs.h"
6282 $ac_includes_default
6288 if (sizeof (ssize_t))
6294 rm -f conftest.
$ac_objext
6295 if { (eval echo "$as_me:6295: \"$ac_compile\"") >&5
6296 (eval $ac_compile) 2>&5
6298 echo "$as_me:6298: \$? = $ac_status" >&5
6299 (exit $ac_status); } &&
6300 { ac_try
='test -s conftest.$ac_objext'
6301 { (eval echo "$as_me:6301: \"$ac_try\"") >&5
6304 echo "$as_me:6304: \$? = $ac_status" >&5
6305 (exit $ac_status); }; }; then
6306 ac_cv_type_ssize_t
=yes
6308 echo "$as_me: failed program was:" >&5
6309 cat conftest.
$ac_ext >&5
6310 ac_cv_type_ssize_t
=no
6312 rm -f conftest.
$ac_objext conftest.
$ac_ext
6314 echo "$as_me:6314: result: $ac_cv_type_ssize_t" >&5
6315 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6316 if test $ac_cv_type_ssize_t = yes; then
6320 cat >>confdefs.h
<<EOF
6326 echo "$as_me:6326: checking for pid_t" >&5
6327 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6328 if test "${ac_cv_type_pid_t+set}" = set; then
6329 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 cat >conftest.
$ac_ext <<_ACEOF
6332 #line 6332 "configure"
6333 #include "confdefs.h"
6334 $ac_includes_default
6346 rm -f conftest.
$ac_objext
6347 if { (eval echo "$as_me:6347: \"$ac_compile\"") >&5
6348 (eval $ac_compile) 2>&5
6350 echo "$as_me:6350: \$? = $ac_status" >&5
6351 (exit $ac_status); } &&
6352 { ac_try
='test -s conftest.$ac_objext'
6353 { (eval echo "$as_me:6353: \"$ac_try\"") >&5
6356 echo "$as_me:6356: \$? = $ac_status" >&5
6357 (exit $ac_status); }; }; then
6358 ac_cv_type_pid_t
=yes
6360 echo "$as_me: failed program was:" >&5
6361 cat conftest.
$ac_ext >&5
6364 rm -f conftest.
$ac_objext conftest.
$ac_ext
6366 echo "$as_me:6366: result: $ac_cv_type_pid_t" >&5
6367 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6368 if test $ac_cv_type_pid_t = yes; then
6372 cat >>confdefs.h
<<EOF
6378 echo "$as_me:6378: checking for ino_t" >&5
6379 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
6380 if test "${ac_cv_type_ino_t+set}" = set; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 cat >conftest.
$ac_ext <<_ACEOF
6384 #line 6384 "configure"
6385 #include "confdefs.h"
6386 $ac_includes_default
6398 rm -f conftest.
$ac_objext
6399 if { (eval echo "$as_me:6399: \"$ac_compile\"") >&5
6400 (eval $ac_compile) 2>&5
6402 echo "$as_me:6402: \$? = $ac_status" >&5
6403 (exit $ac_status); } &&
6404 { ac_try
='test -s conftest.$ac_objext'
6405 { (eval echo "$as_me:6405: \"$ac_try\"") >&5
6408 echo "$as_me:6408: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6410 ac_cv_type_ino_t
=yes
6412 echo "$as_me: failed program was:" >&5
6413 cat conftest.
$ac_ext >&5
6416 rm -f conftest.
$ac_objext conftest.
$ac_ext
6418 echo "$as_me:6418: result: $ac_cv_type_ino_t" >&5
6419 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
6420 if test $ac_cv_type_ino_t = yes; then
6424 cat >>confdefs.h
<<EOF
6425 #define ino_t unsigned long
6430 echo "$as_me:6430: checking for dev_t" >&5
6431 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
6432 if test "${ac_cv_type_dev_t+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 cat >conftest.
$ac_ext <<_ACEOF
6436 #line 6436 "configure"
6437 #include "confdefs.h"
6438 $ac_includes_default
6450 rm -f conftest.
$ac_objext
6451 if { (eval echo "$as_me:6451: \"$ac_compile\"") >&5
6452 (eval $ac_compile) 2>&5
6454 echo "$as_me:6454: \$? = $ac_status" >&5
6455 (exit $ac_status); } &&
6456 { ac_try
='test -s conftest.$ac_objext'
6457 { (eval echo "$as_me:6457: \"$ac_try\"") >&5
6460 echo "$as_me:6460: \$? = $ac_status" >&5
6461 (exit $ac_status); }; }; then
6462 ac_cv_type_dev_t
=yes
6464 echo "$as_me: failed program was:" >&5
6465 cat conftest.
$ac_ext >&5
6468 rm -f conftest.
$ac_objext conftest.
$ac_ext
6470 echo "$as_me:6470: result: $ac_cv_type_dev_t" >&5
6471 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
6472 if test $ac_cv_type_dev_t = yes; then
6476 cat >>confdefs.h
<<EOF
6477 #define dev_t unsigned long
6482 echo "$as_me:6482: checking for mode_t" >&5
6483 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
6484 if test "${ac_cv_type_mode_t+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6487 cat >conftest.
$ac_ext <<_ACEOF
6488 #line 6488 "configure"
6489 #include "confdefs.h"
6490 $ac_includes_default
6496 if (sizeof (mode_t))
6502 rm -f conftest.
$ac_objext
6503 if { (eval echo "$as_me:6503: \"$ac_compile\"") >&5
6504 (eval $ac_compile) 2>&5
6506 echo "$as_me:6506: \$? = $ac_status" >&5
6507 (exit $ac_status); } &&
6508 { ac_try
='test -s conftest.$ac_objext'
6509 { (eval echo "$as_me:6509: \"$ac_try\"") >&5
6512 echo "$as_me:6512: \$? = $ac_status" >&5
6513 (exit $ac_status); }; }; then
6514 ac_cv_type_mode_t
=yes
6516 echo "$as_me: failed program was:" >&5
6517 cat conftest.
$ac_ext >&5
6518 ac_cv_type_mode_t
=no
6520 rm -f conftest.
$ac_objext conftest.
$ac_ext
6522 echo "$as_me:6522: result: $ac_cv_type_mode_t" >&5
6523 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
6524 if test $ac_cv_type_mode_t = yes; then
6528 cat >>confdefs.h
<<EOF
6534 if test $jm_ac_cv_header_inttypes_h = no
; then
6536 test $ac_cv_type_unsigned_long_long = yes \
6537 && ac_type
='unsigned long long' \
6538 || ac_type
='unsigned long'
6540 cat >>confdefs.h
<<EOF
6541 #define uintmax_t $ac_type
6546 echo "$as_me:6546: checking for struct stat.st_blocks" >&5
6547 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
6548 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 cat >conftest.
$ac_ext <<_ACEOF
6552 #line 6552 "configure"
6553 #include "confdefs.h"
6554 $ac_includes_default
6564 rm -f conftest.
$ac_objext
6565 if { (eval echo "$as_me:6565: \"$ac_compile\"") >&5
6566 (eval $ac_compile) 2>&5
6568 echo "$as_me:6568: \$? = $ac_status" >&5
6569 (exit $ac_status); } &&
6570 { ac_try
='test -s conftest.$ac_objext'
6571 { (eval echo "$as_me:6571: \"$ac_try\"") >&5
6574 echo "$as_me:6574: \$? = $ac_status" >&5
6575 (exit $ac_status); }; }; then
6576 ac_cv_member_struct_stat_st_blocks
=yes
6578 echo "$as_me: failed program was:" >&5
6579 cat conftest.
$ac_ext >&5
6580 ac_cv_member_struct_stat_st_blocks
=no
6582 rm -f conftest.
$ac_objext conftest.
$ac_ext
6584 echo "$as_me:6584: result: $ac_cv_member_struct_stat_st_blocks" >&5
6585 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
6586 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6588 cat >>confdefs.h
<<EOF
6589 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6592 cat >>confdefs.h
<<\EOF
6593 #define HAVE_ST_BLOCKS 1
6597 LIBOBJS
="$LIBOBJS fileblocks.$ac_objext"
6600 echo "$as_me:6600: checking for struct stat.st_rdev" >&5
6601 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
6602 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6605 cat >conftest.
$ac_ext <<_ACEOF
6606 #line 6606 "configure"
6607 #include "confdefs.h"
6608 $ac_includes_default
6618 rm -f conftest.
$ac_objext
6619 if { (eval echo "$as_me:6619: \"$ac_compile\"") >&5
6620 (eval $ac_compile) 2>&5
6622 echo "$as_me:6622: \$? = $ac_status" >&5
6623 (exit $ac_status); } &&
6624 { ac_try
='test -s conftest.$ac_objext'
6625 { (eval echo "$as_me:6625: \"$ac_try\"") >&5
6628 echo "$as_me:6628: \$? = $ac_status" >&5
6629 (exit $ac_status); }; }; then
6630 ac_cv_member_struct_stat_st_rdev
=yes
6632 echo "$as_me: failed program was:" >&5
6633 cat conftest.
$ac_ext >&5
6634 ac_cv_member_struct_stat_st_rdev
=no
6636 rm -f conftest.
$ac_objext conftest.
$ac_ext
6638 echo "$as_me:6638: result: $ac_cv_member_struct_stat_st_rdev" >&5
6639 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
6640 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6642 cat >>confdefs.h
<<EOF
6643 #define HAVE_STRUCT_STAT_ST_RDEV 1
6648 echo "$as_me:6648: checking whether struct tm is in sys/time.h or time.h" >&5
6649 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6650 if test "${ac_cv_struct_tm+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 cat >conftest.
$ac_ext <<_ACEOF
6654 #line 6654 "configure"
6655 #include "confdefs.h"
6656 #include <sys/types.h>
6662 struct tm *tp; tp->tm_sec;
6667 rm -f conftest.
$ac_objext
6668 if { (eval echo "$as_me:6668: \"$ac_compile\"") >&5
6669 (eval $ac_compile) 2>&5
6671 echo "$as_me:6671: \$? = $ac_status" >&5
6672 (exit $ac_status); } &&
6673 { ac_try
='test -s conftest.$ac_objext'
6674 { (eval echo "$as_me:6674: \"$ac_try\"") >&5
6677 echo "$as_me:6677: \$? = $ac_status" >&5
6678 (exit $ac_status); }; }; then
6679 ac_cv_struct_tm
=time.h
6681 echo "$as_me: failed program was:" >&5
6682 cat conftest.
$ac_ext >&5
6683 ac_cv_struct_tm
=sys
/time.h
6685 rm -f conftest.
$ac_objext conftest.
$ac_ext
6687 echo "$as_me:6687: result: $ac_cv_struct_tm" >&5
6688 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6689 if test $ac_cv_struct_tm = sys
/time.h
; then
6691 cat >>confdefs.h
<<\EOF
6692 #define TM_IN_SYS_TIME 1
6697 echo "$as_me:6697: checking for struct tm.tm_zone" >&5
6698 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6699 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6702 cat >conftest.
$ac_ext <<_ACEOF
6703 #line 6703 "configure"
6704 #include "confdefs.h"
6705 #include <sys/types.h>
6706 #include <$ac_cv_struct_tm>
6717 rm -f conftest.
$ac_objext
6718 if { (eval echo "$as_me:6718: \"$ac_compile\"") >&5
6719 (eval $ac_compile) 2>&5
6721 echo "$as_me:6721: \$? = $ac_status" >&5
6722 (exit $ac_status); } &&
6723 { ac_try
='test -s conftest.$ac_objext'
6724 { (eval echo "$as_me:6724: \"$ac_try\"") >&5
6727 echo "$as_me:6727: \$? = $ac_status" >&5
6728 (exit $ac_status); }; }; then
6729 ac_cv_member_struct_tm_tm_zone
=yes
6731 echo "$as_me: failed program was:" >&5
6732 cat conftest.
$ac_ext >&5
6733 ac_cv_member_struct_tm_tm_zone
=no
6735 rm -f conftest.
$ac_objext conftest.
$ac_ext
6737 echo "$as_me:6737: result: $ac_cv_member_struct_tm_tm_zone" >&5
6738 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6739 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6741 cat >>confdefs.h
<<EOF
6742 #define HAVE_STRUCT_TM_TM_ZONE 1
6747 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6749 cat >>confdefs.h
<<\EOF
6750 #define HAVE_TM_ZONE 1
6754 echo "$as_me:6754: checking for tzname" >&5
6755 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6756 if test "${ac_cv_var_tzname+set}" = set; then
6757 echo $ECHO_N "(cached) $ECHO_C" >&6
6759 cat >conftest.
$ac_ext <<_ACEOF
6760 #line 6760 "configure"
6761 #include "confdefs.h"
6763 #ifndef tzname /* For SGI. */
6764 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6775 rm -f conftest.
$ac_objext conftest
$ac_exeext
6776 if { (eval echo "$as_me:6776: \"$ac_link\"") >&5
6777 (eval $ac_link) 2>&5
6779 echo "$as_me:6779: \$? = $ac_status" >&5
6780 (exit $ac_status); } &&
6781 { ac_try
='test -s conftest$ac_exeext'
6782 { (eval echo "$as_me:6782: \"$ac_try\"") >&5
6785 echo "$as_me:6785: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6787 ac_cv_var_tzname
=yes
6789 echo "$as_me: failed program was:" >&5
6790 cat conftest.
$ac_ext >&5
6793 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6795 echo "$as_me:6795: result: $ac_cv_var_tzname" >&5
6796 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6797 if test $ac_cv_var_tzname = yes; then
6799 cat >>confdefs.h
<<\EOF
6800 #define HAVE_TZNAME 1
6806 for ac_func
in strftime
6808 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6809 echo "$as_me:6809: checking for $ac_func" >&5
6810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6811 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6814 cat >conftest.
$ac_ext <<_ACEOF
6815 #line 6815 "configure"
6816 #include "confdefs.h"
6817 /* System header to define __stub macros and hopefully few prototypes,
6818 which can conflict with char $ac_func (); below. */
6820 /* Override any gcc2 internal prototype to avoid an error. */
6824 /* We use char because int might match the return type of a gcc2
6825 builtin and then its argument prototype would still apply. */
6832 /* The GNU C library defines this for functions which it implements
6833 to always fail with ENOSYS. Some functions are actually named
6834 something starting with __ and the normal name is an alias. */
6835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6845 rm -f conftest.
$ac_objext conftest
$ac_exeext
6846 if { (eval echo "$as_me:6846: \"$ac_link\"") >&5
6847 (eval $ac_link) 2>&5
6849 echo "$as_me:6849: \$? = $ac_status" >&5
6850 (exit $ac_status); } &&
6851 { ac_try
='test -s conftest$ac_exeext'
6852 { (eval echo "$as_me:6852: \"$ac_try\"") >&5
6855 echo "$as_me:6855: \$? = $ac_status" >&5
6856 (exit $ac_status); }; }; then
6857 eval "$ac_ac_var=yes"
6859 echo "$as_me: failed program was:" >&5
6860 cat conftest.
$ac_ext >&5
6861 eval "$ac_ac_var=no"
6863 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6865 echo "$as_me:6865: result: `eval echo '${'$ac_ac_var'}'`" >&5
6866 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
6867 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6868 cat >>confdefs.h
<<EOF
6869 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6873 # strftime is in -lintl on SCO UNIX.
6874 echo "$as_me:6874: checking for strftime in -lintl" >&5
6875 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
6876 if test "${ac_cv_lib_intl_strftime+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 ac_check_lib_save_LIBS
=$LIBS
6881 cat >conftest.
$ac_ext <<_ACEOF
6882 #line 6882 "configure"
6883 #include "confdefs.h"
6885 /* Override any gcc2 internal prototype to avoid an error. */
6889 /* We use char because int might match the return type of a gcc2
6890 builtin and then its argument prototype would still apply. */
6900 rm -f conftest.
$ac_objext conftest
$ac_exeext
6901 if { (eval echo "$as_me:6901: \"$ac_link\"") >&5
6902 (eval $ac_link) 2>&5
6904 echo "$as_me:6904: \$? = $ac_status" >&5
6905 (exit $ac_status); } &&
6906 { ac_try
='test -s conftest$ac_exeext'
6907 { (eval echo "$as_me:6907: \"$ac_try\"") >&5
6910 echo "$as_me:6910: \$? = $ac_status" >&5
6911 (exit $ac_status); }; }; then
6912 ac_cv_lib_intl_strftime
=yes
6914 echo "$as_me: failed program was:" >&5
6915 cat conftest.
$ac_ext >&5
6916 ac_cv_lib_intl_strftime
=no
6918 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6919 LIBS
=$ac_check_lib_save_LIBS
6921 echo "$as_me:6921: result: $ac_cv_lib_intl_strftime" >&5
6922 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
6923 if test $ac_cv_lib_intl_strftime = yes; then
6924 cat >>confdefs.h
<<\EOF
6925 #define HAVE_STRFTIME 1
6934 for ac_func
in memcmp memset stpcpy strdup strftime strspn strstr \
6935 strtol strtoul waitpid
6937 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6938 echo "$as_me:6938: checking for $ac_func" >&5
6939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6940 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6943 cat >conftest.
$ac_ext <<_ACEOF
6944 #line 6944 "configure"
6945 #include "confdefs.h"
6946 /* System header to define __stub macros and hopefully few prototypes,
6947 which can conflict with char $ac_func (); below. */
6949 /* Override any gcc2 internal prototype to avoid an error. */
6953 /* We use char because int might match the return type of a gcc2
6954 builtin and then its argument prototype would still apply. */
6961 /* The GNU C library defines this for functions which it implements
6962 to always fail with ENOSYS. Some functions are actually named
6963 something starting with __ and the normal name is an alias. */
6964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6974 rm -f conftest.
$ac_objext conftest
$ac_exeext
6975 if { (eval echo "$as_me:6975: \"$ac_link\"") >&5
6976 (eval $ac_link) 2>&5
6978 echo "$as_me:6978: \$? = $ac_status" >&5
6979 (exit $ac_status); } &&
6980 { ac_try
='test -s conftest$ac_exeext'
6981 { (eval echo "$as_me:6981: \"$ac_try\"") >&5
6984 echo "$as_me:6984: \$? = $ac_status" >&5
6985 (exit $ac_status); }; }; then
6986 eval "$ac_ac_var=yes"
6988 echo "$as_me: failed program was:" >&5
6989 cat conftest.
$ac_ext >&5
6990 eval "$ac_ac_var=no"
6992 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6994 echo "$as_me:6994: result: `eval echo '${'$ac_ac_var'}'`" >&5
6995 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
6996 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6997 cat >>confdefs.h
<<EOF
6998 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
7002 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
7006 echo "$as_me:7006: checking whether to enable assertions" >&5
7007 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6
7008 # Check whether --enable-assert or --disable-assert was given.
7009 if test "${enable_assert+set}" = set; then
7010 enableval
="$enable_assert"
7011 echo "$as_me:7011: result: no" >&5
7012 echo "${ECHO_T}no" >&6
7014 cat >>confdefs.h
<<\EOF
7019 echo "$as_me:7019: result: yes" >&5
7020 echo "${ECHO_T}yes" >&6
7024 echo "$as_me:7024: checking for d_type member in directory struct" >&5
7025 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6
7026 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 cat >conftest.
$ac_ext <<_ACEOF
7030 #line 7030 "configure"
7031 #include "confdefs.h"
7033 #include <sys/types.h>
7034 #ifdef HAVE_DIRENT_H
7035 # include <dirent.h>
7036 #else /* not HAVE_DIRENT_H */
7037 # define dirent direct
7038 # ifdef HAVE_SYS_NDIR_H
7039 # include <sys/ndir.h>
7040 # endif /* HAVE_SYS_NDIR_H */
7041 # ifdef HAVE_SYS_DIR_H
7042 # include <sys/dir.h>
7043 # endif /* HAVE_SYS_DIR_H */
7046 # endif /* HAVE_NDIR_H */
7047 #endif /* HAVE_DIRENT_H */
7052 struct dirent dp; dp.d_type = 0;
7057 rm -f conftest.
$ac_objext conftest
$ac_exeext
7058 if { (eval echo "$as_me:7058: \"$ac_link\"") >&5
7059 (eval $ac_link) 2>&5
7061 echo "$as_me:7061: \$? = $ac_status" >&5
7062 (exit $ac_status); } &&
7063 { ac_try
='test -s conftest$ac_exeext'
7064 { (eval echo "$as_me:7064: \"$ac_try\"") >&5
7067 echo "$as_me:7067: \$? = $ac_status" >&5
7068 (exit $ac_status); }; }; then
7069 jm_cv_struct_dirent_d_type
=yes
7071 echo "$as_me: failed program was:" >&5
7072 cat conftest.
$ac_ext >&5
7073 jm_cv_struct_dirent_d_type
=no
7075 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7078 echo "$as_me:7078: result: $jm_cv_struct_dirent_d_type" >&5
7079 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6
7080 if test $jm_cv_struct_dirent_d_type = yes; then
7082 cat >>confdefs.h
<<\EOF
7083 #define D_TYPE_IN_DIRENT 1
7088 echo "$as_me:7088: checking for d_ino member in directory struct" >&5
7089 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
7090 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7093 cat >conftest.
$ac_ext <<_ACEOF
7094 #line 7094 "configure"
7095 #include "confdefs.h"
7097 #include <sys/types.h>
7098 #ifdef HAVE_DIRENT_H
7099 # include <dirent.h>
7100 #else /* not HAVE_DIRENT_H */
7101 # define dirent direct
7102 # ifdef HAVE_SYS_NDIR_H
7103 # include <sys/ndir.h>
7104 # endif /* HAVE_SYS_NDIR_H */
7105 # ifdef HAVE_SYS_DIR_H
7106 # include <sys/dir.h>
7107 # endif /* HAVE_SYS_DIR_H */
7110 # endif /* HAVE_NDIR_H */
7111 #endif /* HAVE_DIRENT_H */
7116 struct dirent dp; dp.d_ino = 0;
7121 rm -f conftest.
$ac_objext conftest
$ac_exeext
7122 if { (eval echo "$as_me:7122: \"$ac_link\"") >&5
7123 (eval $ac_link) 2>&5
7125 echo "$as_me:7125: \$? = $ac_status" >&5
7126 (exit $ac_status); } &&
7127 { ac_try
='test -s conftest$ac_exeext'
7128 { (eval echo "$as_me:7128: \"$ac_try\"") >&5
7131 echo "$as_me:7131: \$? = $ac_status" >&5
7132 (exit $ac_status); }; }; then
7133 jm_cv_struct_dirent_d_ino
=yes
7135 echo "$as_me: failed program was:" >&5
7136 cat conftest.
$ac_ext >&5
7137 jm_cv_struct_dirent_d_ino
=no
7139 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7142 echo "$as_me:7142: result: $jm_cv_struct_dirent_d_ino" >&5
7143 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
7144 if test $jm_cv_struct_dirent_d_ino = yes; then
7146 cat >>confdefs.h
<<\EOF
7147 #define D_INO_IN_DIRENT 1
7152 for ac_header
in memory.h string.h
strings.h stdlib.h unistd.h sys
/time.h \
7155 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
7156 echo "$as_me:7156: checking for $ac_header" >&5
7157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7158 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 cat >conftest.
$ac_ext <<_ACEOF
7162 #line 7162 "configure"
7163 #include "confdefs.h"
7164 #include <$ac_header>
7166 if { (eval echo "$as_me:7166: \"$ac_cpp conftest.$ac_ext\"") >&5
7167 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7169 egrep -v '^ *\+' conftest.er1
>conftest.err
7171 cat conftest.err
>&5
7172 echo "$as_me:7172: \$? = $ac_status" >&5
7173 (exit $ac_status); } >/dev
/null
; then
7174 if test -s conftest.err
; then
7175 ac_cpp_err
=$ac_c_preproc_warn_flag
7182 if test -z "$ac_cpp_err"; then
7183 eval "$ac_ac_Header=yes"
7185 echo "$as_me: failed program was:" >&5
7186 cat conftest.
$ac_ext >&5
7187 eval "$ac_ac_Header=no"
7189 rm -f conftest.err conftest.
$ac_ext
7191 echo "$as_me:7191: result: `eval echo '${'$ac_ac_Header'}'`" >&5
7192 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
7193 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
7194 cat >>confdefs.h
<<EOF
7195 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
7204 # if !STDC_HEADERS && HAVE_MEMORY_H
7205 # include <memory.h>
7207 # include <string.h>
7210 # include <strings.h>
7214 # include <stdlib.h>
7217 # include <unistd.h>
7220 #include <sys/types.h>
7221 #if TIME_WITH_SYS_TIME
7222 # include <sys/time.h>
7225 # if HAVE_SYS_TIME_H
7226 # include <sys/time.h>
7237 echo "$as_me:7237: checking whether free is declared" >&5
7238 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
7239 if test "${ac_cv_have_decl_free+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 cat >conftest.
$ac_ext <<_ACEOF
7243 #line 7243 "configure"
7244 #include "confdefs.h"
7251 char *p = (char *) free;
7258 rm -f conftest.
$ac_objext
7259 if { (eval echo "$as_me:7259: \"$ac_compile\"") >&5
7260 (eval $ac_compile) 2>&5
7262 echo "$as_me:7262: \$? = $ac_status" >&5
7263 (exit $ac_status); } &&
7264 { ac_try
='test -s conftest.$ac_objext'
7265 { (eval echo "$as_me:7265: \"$ac_try\"") >&5
7268 echo "$as_me:7268: \$? = $ac_status" >&5
7269 (exit $ac_status); }; }; then
7270 ac_cv_have_decl_free
=yes
7272 echo "$as_me: failed program was:" >&5
7273 cat conftest.
$ac_ext >&5
7274 ac_cv_have_decl_free
=no
7276 rm -f conftest.
$ac_objext conftest.
$ac_ext
7278 echo "$as_me:7278: result: $ac_cv_have_decl_free" >&5
7279 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
7280 if test $ac_cv_have_decl_free = yes; then
7282 cat >>confdefs.h
<<EOF
7283 #define HAVE_DECL_FREE 1
7287 cat >>confdefs.h
<<EOF
7288 #define HAVE_DECL_FREE 0
7292 echo "$as_me:7292: checking whether getenv is declared" >&5
7293 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
7294 if test "${ac_cv_have_decl_getenv+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 cat >conftest.
$ac_ext <<_ACEOF
7298 #line 7298 "configure"
7299 #include "confdefs.h"
7306 char *p = (char *) getenv;
7313 rm -f conftest.
$ac_objext
7314 if { (eval echo "$as_me:7314: \"$ac_compile\"") >&5
7315 (eval $ac_compile) 2>&5
7317 echo "$as_me:7317: \$? = $ac_status" >&5
7318 (exit $ac_status); } &&
7319 { ac_try
='test -s conftest.$ac_objext'
7320 { (eval echo "$as_me:7320: \"$ac_try\"") >&5
7323 echo "$as_me:7323: \$? = $ac_status" >&5
7324 (exit $ac_status); }; }; then
7325 ac_cv_have_decl_getenv
=yes
7327 echo "$as_me: failed program was:" >&5
7328 cat conftest.
$ac_ext >&5
7329 ac_cv_have_decl_getenv
=no
7331 rm -f conftest.
$ac_objext conftest.
$ac_ext
7333 echo "$as_me:7333: result: $ac_cv_have_decl_getenv" >&5
7334 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
7335 if test $ac_cv_have_decl_getenv = yes; then
7337 cat >>confdefs.h
<<EOF
7338 #define HAVE_DECL_GETENV 1
7342 cat >>confdefs.h
<<EOF
7343 #define HAVE_DECL_GETENV 0
7347 echo "$as_me:7347: checking whether geteuid is declared" >&5
7348 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6
7349 if test "${ac_cv_have_decl_geteuid+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 cat >conftest.
$ac_ext <<_ACEOF
7353 #line 7353 "configure"
7354 #include "confdefs.h"
7361 char *p = (char *) geteuid;
7368 rm -f conftest.
$ac_objext
7369 if { (eval echo "$as_me:7369: \"$ac_compile\"") >&5
7370 (eval $ac_compile) 2>&5
7372 echo "$as_me:7372: \$? = $ac_status" >&5
7373 (exit $ac_status); } &&
7374 { ac_try
='test -s conftest.$ac_objext'
7375 { (eval echo "$as_me:7375: \"$ac_try\"") >&5
7378 echo "$as_me:7378: \$? = $ac_status" >&5
7379 (exit $ac_status); }; }; then
7380 ac_cv_have_decl_geteuid
=yes
7382 echo "$as_me: failed program was:" >&5
7383 cat conftest.
$ac_ext >&5
7384 ac_cv_have_decl_geteuid
=no
7386 rm -f conftest.
$ac_objext conftest.
$ac_ext
7388 echo "$as_me:7388: result: $ac_cv_have_decl_geteuid" >&5
7389 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6
7390 if test $ac_cv_have_decl_geteuid = yes; then
7392 cat >>confdefs.h
<<EOF
7393 #define HAVE_DECL_GETEUID 1
7397 cat >>confdefs.h
<<EOF
7398 #define HAVE_DECL_GETEUID 0
7402 echo "$as_me:7402: checking whether getgrgid is declared" >&5
7403 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6
7404 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7407 cat >conftest.
$ac_ext <<_ACEOF
7408 #line 7408 "configure"
7409 #include "confdefs.h"
7416 char *p = (char *) getgrgid;
7423 rm -f conftest.
$ac_objext
7424 if { (eval echo "$as_me:7424: \"$ac_compile\"") >&5
7425 (eval $ac_compile) 2>&5
7427 echo "$as_me:7427: \$? = $ac_status" >&5
7428 (exit $ac_status); } &&
7429 { ac_try
='test -s conftest.$ac_objext'
7430 { (eval echo "$as_me:7430: \"$ac_try\"") >&5
7433 echo "$as_me:7433: \$? = $ac_status" >&5
7434 (exit $ac_status); }; }; then
7435 ac_cv_have_decl_getgrgid
=yes
7437 echo "$as_me: failed program was:" >&5
7438 cat conftest.
$ac_ext >&5
7439 ac_cv_have_decl_getgrgid
=no
7441 rm -f conftest.
$ac_objext conftest.
$ac_ext
7443 echo "$as_me:7443: result: $ac_cv_have_decl_getgrgid" >&5
7444 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6
7445 if test $ac_cv_have_decl_getgrgid = yes; then
7447 cat >>confdefs.h
<<EOF
7448 #define HAVE_DECL_GETGRGID 1
7452 cat >>confdefs.h
<<EOF
7453 #define HAVE_DECL_GETGRGID 0
7457 echo "$as_me:7457: checking whether getlogin is declared" >&5
7458 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6
7459 if test "${ac_cv_have_decl_getlogin+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7462 cat >conftest.
$ac_ext <<_ACEOF
7463 #line 7463 "configure"
7464 #include "confdefs.h"
7471 char *p = (char *) getlogin;
7478 rm -f conftest.
$ac_objext
7479 if { (eval echo "$as_me:7479: \"$ac_compile\"") >&5
7480 (eval $ac_compile) 2>&5
7482 echo "$as_me:7482: \$? = $ac_status" >&5
7483 (exit $ac_status); } &&
7484 { ac_try
='test -s conftest.$ac_objext'
7485 { (eval echo "$as_me:7485: \"$ac_try\"") >&5
7488 echo "$as_me:7488: \$? = $ac_status" >&5
7489 (exit $ac_status); }; }; then
7490 ac_cv_have_decl_getlogin
=yes
7492 echo "$as_me: failed program was:" >&5
7493 cat conftest.
$ac_ext >&5
7494 ac_cv_have_decl_getlogin
=no
7496 rm -f conftest.
$ac_objext conftest.
$ac_ext
7498 echo "$as_me:7498: result: $ac_cv_have_decl_getlogin" >&5
7499 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6
7500 if test $ac_cv_have_decl_getlogin = yes; then
7502 cat >>confdefs.h
<<EOF
7503 #define HAVE_DECL_GETLOGIN 1
7507 cat >>confdefs.h
<<EOF
7508 #define HAVE_DECL_GETLOGIN 0
7512 echo "$as_me:7512: checking whether getpwuid is declared" >&5
7513 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6
7514 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 cat >conftest.
$ac_ext <<_ACEOF
7518 #line 7518 "configure"
7519 #include "confdefs.h"
7526 char *p = (char *) getpwuid;
7533 rm -f conftest.
$ac_objext
7534 if { (eval echo "$as_me:7534: \"$ac_compile\"") >&5
7535 (eval $ac_compile) 2>&5
7537 echo "$as_me:7537: \$? = $ac_status" >&5
7538 (exit $ac_status); } &&
7539 { ac_try
='test -s conftest.$ac_objext'
7540 { (eval echo "$as_me:7540: \"$ac_try\"") >&5
7543 echo "$as_me:7543: \$? = $ac_status" >&5
7544 (exit $ac_status); }; }; then
7545 ac_cv_have_decl_getpwuid
=yes
7547 echo "$as_me: failed program was:" >&5
7548 cat conftest.
$ac_ext >&5
7549 ac_cv_have_decl_getpwuid
=no
7551 rm -f conftest.
$ac_objext conftest.
$ac_ext
7553 echo "$as_me:7553: result: $ac_cv_have_decl_getpwuid" >&5
7554 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6
7555 if test $ac_cv_have_decl_getpwuid = yes; then
7557 cat >>confdefs.h
<<EOF
7558 #define HAVE_DECL_GETPWUID 1
7562 cat >>confdefs.h
<<EOF
7563 #define HAVE_DECL_GETPWUID 0
7567 echo "$as_me:7567: checking whether getuid is declared" >&5
7568 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6
7569 if test "${ac_cv_have_decl_getuid+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7572 cat >conftest.
$ac_ext <<_ACEOF
7573 #line 7573 "configure"
7574 #include "confdefs.h"
7581 char *p = (char *) getuid;
7588 rm -f conftest.
$ac_objext
7589 if { (eval echo "$as_me:7589: \"$ac_compile\"") >&5
7590 (eval $ac_compile) 2>&5
7592 echo "$as_me:7592: \$? = $ac_status" >&5
7593 (exit $ac_status); } &&
7594 { ac_try
='test -s conftest.$ac_objext'
7595 { (eval echo "$as_me:7595: \"$ac_try\"") >&5
7598 echo "$as_me:7598: \$? = $ac_status" >&5
7599 (exit $ac_status); }; }; then
7600 ac_cv_have_decl_getuid
=yes
7602 echo "$as_me: failed program was:" >&5
7603 cat conftest.
$ac_ext >&5
7604 ac_cv_have_decl_getuid
=no
7606 rm -f conftest.
$ac_objext conftest.
$ac_ext
7608 echo "$as_me:7608: result: $ac_cv_have_decl_getuid" >&5
7609 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6
7610 if test $ac_cv_have_decl_getuid = yes; then
7612 cat >>confdefs.h
<<EOF
7613 #define HAVE_DECL_GETUID 1
7617 cat >>confdefs.h
<<EOF
7618 #define HAVE_DECL_GETUID 0
7622 echo "$as_me:7622: checking whether getutent is declared" >&5
7623 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
7624 if test "${ac_cv_have_decl_getutent+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 cat >conftest.
$ac_ext <<_ACEOF
7628 #line 7628 "configure"
7629 #include "confdefs.h"
7636 char *p = (char *) getutent;
7643 rm -f conftest.
$ac_objext
7644 if { (eval echo "$as_me:7644: \"$ac_compile\"") >&5
7645 (eval $ac_compile) 2>&5
7647 echo "$as_me:7647: \$? = $ac_status" >&5
7648 (exit $ac_status); } &&
7649 { ac_try
='test -s conftest.$ac_objext'
7650 { (eval echo "$as_me:7650: \"$ac_try\"") >&5
7653 echo "$as_me:7653: \$? = $ac_status" >&5
7654 (exit $ac_status); }; }; then
7655 ac_cv_have_decl_getutent
=yes
7657 echo "$as_me: failed program was:" >&5
7658 cat conftest.
$ac_ext >&5
7659 ac_cv_have_decl_getutent
=no
7661 rm -f conftest.
$ac_objext conftest.
$ac_ext
7663 echo "$as_me:7663: result: $ac_cv_have_decl_getutent" >&5
7664 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
7665 if test $ac_cv_have_decl_getutent = yes; then
7667 cat >>confdefs.h
<<EOF
7668 #define HAVE_DECL_GETUTENT 1
7672 cat >>confdefs.h
<<EOF
7673 #define HAVE_DECL_GETUTENT 0
7677 echo "$as_me:7677: checking whether lseek is declared" >&5
7678 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6
7679 if test "${ac_cv_have_decl_lseek+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 cat >conftest.
$ac_ext <<_ACEOF
7683 #line 7683 "configure"
7684 #include "confdefs.h"
7691 char *p = (char *) lseek;
7698 rm -f conftest.
$ac_objext
7699 if { (eval echo "$as_me:7699: \"$ac_compile\"") >&5
7700 (eval $ac_compile) 2>&5
7702 echo "$as_me:7702: \$? = $ac_status" >&5
7703 (exit $ac_status); } &&
7704 { ac_try
='test -s conftest.$ac_objext'
7705 { (eval echo "$as_me:7705: \"$ac_try\"") >&5
7708 echo "$as_me:7708: \$? = $ac_status" >&5
7709 (exit $ac_status); }; }; then
7710 ac_cv_have_decl_lseek
=yes
7712 echo "$as_me: failed program was:" >&5
7713 cat conftest.
$ac_ext >&5
7714 ac_cv_have_decl_lseek
=no
7716 rm -f conftest.
$ac_objext conftest.
$ac_ext
7718 echo "$as_me:7718: result: $ac_cv_have_decl_lseek" >&5
7719 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6
7720 if test $ac_cv_have_decl_lseek = yes; then
7722 cat >>confdefs.h
<<EOF
7723 #define HAVE_DECL_LSEEK 1
7727 cat >>confdefs.h
<<EOF
7728 #define HAVE_DECL_LSEEK 0
7732 echo "$as_me:7732: checking whether malloc is declared" >&5
7733 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
7734 if test "${ac_cv_have_decl_malloc+set}" = set; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7737 cat >conftest.
$ac_ext <<_ACEOF
7738 #line 7738 "configure"
7739 #include "confdefs.h"
7746 char *p = (char *) malloc;
7753 rm -f conftest.
$ac_objext
7754 if { (eval echo "$as_me:7754: \"$ac_compile\"") >&5
7755 (eval $ac_compile) 2>&5
7757 echo "$as_me:7757: \$? = $ac_status" >&5
7758 (exit $ac_status); } &&
7759 { ac_try
='test -s conftest.$ac_objext'
7760 { (eval echo "$as_me:7760: \"$ac_try\"") >&5
7763 echo "$as_me:7763: \$? = $ac_status" >&5
7764 (exit $ac_status); }; }; then
7765 ac_cv_have_decl_malloc
=yes
7767 echo "$as_me: failed program was:" >&5
7768 cat conftest.
$ac_ext >&5
7769 ac_cv_have_decl_malloc
=no
7771 rm -f conftest.
$ac_objext conftest.
$ac_ext
7773 echo "$as_me:7773: result: $ac_cv_have_decl_malloc" >&5
7774 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
7775 if test $ac_cv_have_decl_malloc = yes; then
7777 cat >>confdefs.h
<<EOF
7778 #define HAVE_DECL_MALLOC 1
7782 cat >>confdefs.h
<<EOF
7783 #define HAVE_DECL_MALLOC 0
7787 echo "$as_me:7787: checking whether memchr is declared" >&5
7788 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
7789 if test "${ac_cv_have_decl_memchr+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 cat >conftest.
$ac_ext <<_ACEOF
7793 #line 7793 "configure"
7794 #include "confdefs.h"
7801 char *p = (char *) memchr;
7808 rm -f conftest.
$ac_objext
7809 if { (eval echo "$as_me:7809: \"$ac_compile\"") >&5
7810 (eval $ac_compile) 2>&5
7812 echo "$as_me:7812: \$? = $ac_status" >&5
7813 (exit $ac_status); } &&
7814 { ac_try
='test -s conftest.$ac_objext'
7815 { (eval echo "$as_me:7815: \"$ac_try\"") >&5
7818 echo "$as_me:7818: \$? = $ac_status" >&5
7819 (exit $ac_status); }; }; then
7820 ac_cv_have_decl_memchr
=yes
7822 echo "$as_me: failed program was:" >&5
7823 cat conftest.
$ac_ext >&5
7824 ac_cv_have_decl_memchr
=no
7826 rm -f conftest.
$ac_objext conftest.
$ac_ext
7828 echo "$as_me:7828: result: $ac_cv_have_decl_memchr" >&5
7829 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
7830 if test $ac_cv_have_decl_memchr = yes; then
7832 cat >>confdefs.h
<<EOF
7833 #define HAVE_DECL_MEMCHR 1
7837 cat >>confdefs.h
<<EOF
7838 #define HAVE_DECL_MEMCHR 0
7842 echo "$as_me:7842: checking whether memrchr is declared" >&5
7843 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
7844 if test "${ac_cv_have_decl_memrchr+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7847 cat >conftest.
$ac_ext <<_ACEOF
7848 #line 7848 "configure"
7849 #include "confdefs.h"
7856 char *p = (char *) memrchr;
7863 rm -f conftest.
$ac_objext
7864 if { (eval echo "$as_me:7864: \"$ac_compile\"") >&5
7865 (eval $ac_compile) 2>&5
7867 echo "$as_me:7867: \$? = $ac_status" >&5
7868 (exit $ac_status); } &&
7869 { ac_try
='test -s conftest.$ac_objext'
7870 { (eval echo "$as_me:7870: \"$ac_try\"") >&5
7873 echo "$as_me:7873: \$? = $ac_status" >&5
7874 (exit $ac_status); }; }; then
7875 ac_cv_have_decl_memrchr
=yes
7877 echo "$as_me: failed program was:" >&5
7878 cat conftest.
$ac_ext >&5
7879 ac_cv_have_decl_memrchr
=no
7881 rm -f conftest.
$ac_objext conftest.
$ac_ext
7883 echo "$as_me:7883: result: $ac_cv_have_decl_memrchr" >&5
7884 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
7885 if test $ac_cv_have_decl_memrchr = yes; then
7887 cat >>confdefs.h
<<EOF
7888 #define HAVE_DECL_MEMRCHR 1
7892 cat >>confdefs.h
<<EOF
7893 #define HAVE_DECL_MEMRCHR 0
7897 echo "$as_me:7897: checking whether realloc is declared" >&5
7898 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
7899 if test "${ac_cv_have_decl_realloc+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7902 cat >conftest.
$ac_ext <<_ACEOF
7903 #line 7903 "configure"
7904 #include "confdefs.h"
7911 char *p = (char *) realloc;
7918 rm -f conftest.
$ac_objext
7919 if { (eval echo "$as_me:7919: \"$ac_compile\"") >&5
7920 (eval $ac_compile) 2>&5
7922 echo "$as_me:7922: \$? = $ac_status" >&5
7923 (exit $ac_status); } &&
7924 { ac_try
='test -s conftest.$ac_objext'
7925 { (eval echo "$as_me:7925: \"$ac_try\"") >&5
7928 echo "$as_me:7928: \$? = $ac_status" >&5
7929 (exit $ac_status); }; }; then
7930 ac_cv_have_decl_realloc
=yes
7932 echo "$as_me: failed program was:" >&5
7933 cat conftest.
$ac_ext >&5
7934 ac_cv_have_decl_realloc
=no
7936 rm -f conftest.
$ac_objext conftest.
$ac_ext
7938 echo "$as_me:7938: result: $ac_cv_have_decl_realloc" >&5
7939 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
7940 if test $ac_cv_have_decl_realloc = yes; then
7942 cat >>confdefs.h
<<EOF
7943 #define HAVE_DECL_REALLOC 1
7947 cat >>confdefs.h
<<EOF
7948 #define HAVE_DECL_REALLOC 0
7952 echo "$as_me:7952: checking whether stpcpy is declared" >&5
7953 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
7954 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 cat >conftest.
$ac_ext <<_ACEOF
7958 #line 7958 "configure"
7959 #include "confdefs.h"
7966 char *p = (char *) stpcpy;
7973 rm -f conftest.
$ac_objext
7974 if { (eval echo "$as_me:7974: \"$ac_compile\"") >&5
7975 (eval $ac_compile) 2>&5
7977 echo "$as_me:7977: \$? = $ac_status" >&5
7978 (exit $ac_status); } &&
7979 { ac_try
='test -s conftest.$ac_objext'
7980 { (eval echo "$as_me:7980: \"$ac_try\"") >&5
7983 echo "$as_me:7983: \$? = $ac_status" >&5
7984 (exit $ac_status); }; }; then
7985 ac_cv_have_decl_stpcpy
=yes
7987 echo "$as_me: failed program was:" >&5
7988 cat conftest.
$ac_ext >&5
7989 ac_cv_have_decl_stpcpy
=no
7991 rm -f conftest.
$ac_objext conftest.
$ac_ext
7993 echo "$as_me:7993: result: $ac_cv_have_decl_stpcpy" >&5
7994 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
7995 if test $ac_cv_have_decl_stpcpy = yes; then
7997 cat >>confdefs.h
<<EOF
7998 #define HAVE_DECL_STPCPY 1
8002 cat >>confdefs.h
<<EOF
8003 #define HAVE_DECL_STPCPY 0
8007 echo "$as_me:8007: checking whether strndup is declared" >&5
8008 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
8009 if test "${ac_cv_have_decl_strndup+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8012 cat >conftest.
$ac_ext <<_ACEOF
8013 #line 8013 "configure"
8014 #include "confdefs.h"
8021 char *p = (char *) strndup;
8028 rm -f conftest.
$ac_objext
8029 if { (eval echo "$as_me:8029: \"$ac_compile\"") >&5
8030 (eval $ac_compile) 2>&5
8032 echo "$as_me:8032: \$? = $ac_status" >&5
8033 (exit $ac_status); } &&
8034 { ac_try
='test -s conftest.$ac_objext'
8035 { (eval echo "$as_me:8035: \"$ac_try\"") >&5
8038 echo "$as_me:8038: \$? = $ac_status" >&5
8039 (exit $ac_status); }; }; then
8040 ac_cv_have_decl_strndup
=yes
8042 echo "$as_me: failed program was:" >&5
8043 cat conftest.
$ac_ext >&5
8044 ac_cv_have_decl_strndup
=no
8046 rm -f conftest.
$ac_objext conftest.
$ac_ext
8048 echo "$as_me:8048: result: $ac_cv_have_decl_strndup" >&5
8049 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
8050 if test $ac_cv_have_decl_strndup = yes; then
8052 cat >>confdefs.h
<<EOF
8053 #define HAVE_DECL_STRNDUP 1
8057 cat >>confdefs.h
<<EOF
8058 #define HAVE_DECL_STRNDUP 0
8062 echo "$as_me:8062: checking whether strnlen is declared" >&5
8063 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
8064 if test "${ac_cv_have_decl_strnlen+set}" = set; then
8065 echo $ECHO_N "(cached) $ECHO_C" >&6
8067 cat >conftest.
$ac_ext <<_ACEOF
8068 #line 8068 "configure"
8069 #include "confdefs.h"
8076 char *p = (char *) strnlen;
8083 rm -f conftest.
$ac_objext
8084 if { (eval echo "$as_me:8084: \"$ac_compile\"") >&5
8085 (eval $ac_compile) 2>&5
8087 echo "$as_me:8087: \$? = $ac_status" >&5
8088 (exit $ac_status); } &&
8089 { ac_try
='test -s conftest.$ac_objext'
8090 { (eval echo "$as_me:8090: \"$ac_try\"") >&5
8093 echo "$as_me:8093: \$? = $ac_status" >&5
8094 (exit $ac_status); }; }; then
8095 ac_cv_have_decl_strnlen
=yes
8097 echo "$as_me: failed program was:" >&5
8098 cat conftest.
$ac_ext >&5
8099 ac_cv_have_decl_strnlen
=no
8101 rm -f conftest.
$ac_objext conftest.
$ac_ext
8103 echo "$as_me:8103: result: $ac_cv_have_decl_strnlen" >&5
8104 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
8105 if test $ac_cv_have_decl_strnlen = yes; then
8107 cat >>confdefs.h
<<EOF
8108 #define HAVE_DECL_STRNLEN 1
8112 cat >>confdefs.h
<<EOF
8113 #define HAVE_DECL_STRNLEN 0
8117 echo "$as_me:8117: checking whether strstr is declared" >&5
8118 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
8119 if test "${ac_cv_have_decl_strstr+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8122 cat >conftest.
$ac_ext <<_ACEOF
8123 #line 8123 "configure"
8124 #include "confdefs.h"
8131 char *p = (char *) strstr;
8138 rm -f conftest.
$ac_objext
8139 if { (eval echo "$as_me:8139: \"$ac_compile\"") >&5
8140 (eval $ac_compile) 2>&5
8142 echo "$as_me:8142: \$? = $ac_status" >&5
8143 (exit $ac_status); } &&
8144 { ac_try
='test -s conftest.$ac_objext'
8145 { (eval echo "$as_me:8145: \"$ac_try\"") >&5
8148 echo "$as_me:8148: \$? = $ac_status" >&5
8149 (exit $ac_status); }; }; then
8150 ac_cv_have_decl_strstr
=yes
8152 echo "$as_me: failed program was:" >&5
8153 cat conftest.
$ac_ext >&5
8154 ac_cv_have_decl_strstr
=no
8156 rm -f conftest.
$ac_objext conftest.
$ac_ext
8158 echo "$as_me:8158: result: $ac_cv_have_decl_strstr" >&5
8159 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
8160 if test $ac_cv_have_decl_strstr = yes; then
8162 cat >>confdefs.h
<<EOF
8163 #define HAVE_DECL_STRSTR 1
8167 cat >>confdefs.h
<<EOF
8168 #define HAVE_DECL_STRSTR 0
8172 echo "$as_me:8172: checking whether strtoul is declared" >&5
8173 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
8174 if test "${ac_cv_have_decl_strtoul+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 cat >conftest.
$ac_ext <<_ACEOF
8178 #line 8178 "configure"
8179 #include "confdefs.h"
8186 char *p = (char *) strtoul;
8193 rm -f conftest.
$ac_objext
8194 if { (eval echo "$as_me:8194: \"$ac_compile\"") >&5
8195 (eval $ac_compile) 2>&5
8197 echo "$as_me:8197: \$? = $ac_status" >&5
8198 (exit $ac_status); } &&
8199 { ac_try
='test -s conftest.$ac_objext'
8200 { (eval echo "$as_me:8200: \"$ac_try\"") >&5
8203 echo "$as_me:8203: \$? = $ac_status" >&5
8204 (exit $ac_status); }; }; then
8205 ac_cv_have_decl_strtoul
=yes
8207 echo "$as_me: failed program was:" >&5
8208 cat conftest.
$ac_ext >&5
8209 ac_cv_have_decl_strtoul
=no
8211 rm -f conftest.
$ac_objext conftest.
$ac_ext
8213 echo "$as_me:8213: result: $ac_cv_have_decl_strtoul" >&5
8214 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
8215 if test $ac_cv_have_decl_strtoul = yes; then
8217 cat >>confdefs.h
<<EOF
8218 #define HAVE_DECL_STRTOUL 1
8222 cat >>confdefs.h
<<EOF
8223 #define HAVE_DECL_STRTOUL 0
8227 echo "$as_me:8227: checking whether strtoull is declared" >&5
8228 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
8229 if test "${ac_cv_have_decl_strtoull+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 cat >conftest.
$ac_ext <<_ACEOF
8233 #line 8233 "configure"
8234 #include "confdefs.h"
8241 char *p = (char *) strtoull;
8248 rm -f conftest.
$ac_objext
8249 if { (eval echo "$as_me:8249: \"$ac_compile\"") >&5
8250 (eval $ac_compile) 2>&5
8252 echo "$as_me:8252: \$? = $ac_status" >&5
8253 (exit $ac_status); } &&
8254 { ac_try
='test -s conftest.$ac_objext'
8255 { (eval echo "$as_me:8255: \"$ac_try\"") >&5
8258 echo "$as_me:8258: \$? = $ac_status" >&5
8259 (exit $ac_status); }; }; then
8260 ac_cv_have_decl_strtoull
=yes
8262 echo "$as_me: failed program was:" >&5
8263 cat conftest.
$ac_ext >&5
8264 ac_cv_have_decl_strtoull
=no
8266 rm -f conftest.
$ac_objext conftest.
$ac_ext
8268 echo "$as_me:8268: result: $ac_cv_have_decl_strtoull" >&5
8269 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
8270 if test $ac_cv_have_decl_strtoull = yes; then
8272 cat >>confdefs.h
<<EOF
8273 #define HAVE_DECL_STRTOULL 1
8277 cat >>confdefs.h
<<EOF
8278 #define HAVE_DECL_STRTOULL 0
8282 echo "$as_me:8282: checking whether ttyname is declared" >&5
8283 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6
8284 if test "${ac_cv_have_decl_ttyname+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 cat >conftest.
$ac_ext <<_ACEOF
8288 #line 8288 "configure"
8289 #include "confdefs.h"
8296 char *p = (char *) ttyname;
8303 rm -f conftest.
$ac_objext
8304 if { (eval echo "$as_me:8304: \"$ac_compile\"") >&5
8305 (eval $ac_compile) 2>&5
8307 echo "$as_me:8307: \$? = $ac_status" >&5
8308 (exit $ac_status); } &&
8309 { ac_try
='test -s conftest.$ac_objext'
8310 { (eval echo "$as_me:8310: \"$ac_try\"") >&5
8313 echo "$as_me:8313: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 ac_cv_have_decl_ttyname
=yes
8317 echo "$as_me: failed program was:" >&5
8318 cat conftest.
$ac_ext >&5
8319 ac_cv_have_decl_ttyname
=no
8321 rm -f conftest.
$ac_objext conftest.
$ac_ext
8323 echo "$as_me:8323: result: $ac_cv_have_decl_ttyname" >&5
8324 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6
8325 if test $ac_cv_have_decl_ttyname = yes; then
8327 cat >>confdefs.h
<<EOF
8328 #define HAVE_DECL_TTYNAME 1
8332 cat >>confdefs.h
<<EOF
8333 #define HAVE_DECL_TTYNAME 0
8338 echo "$as_me:8338: checking for long file names" >&5
8339 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8340 if test "${ac_cv_sys_long_file_names+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 ac_cv_sys_long_file_names
=yes
8344 # Test for long file names in all the places we know might matter:
8345 # . the current directory, where building will happen
8346 # $prefix/lib where we will be installing things
8347 # $exec_prefix/lib likewise
8348 # eval it to expand exec_prefix.
8349 # $TMPDIR if set, where it might want to write temporary files
8350 # if $TMPDIR is not set:
8351 # /tmp where it might want to write temporary files
8354 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8357 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
8359 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8360 test -d $ac_dir ||
continue
8361 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
8362 ac_xdir
=$ac_dir/cf$$
8363 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
8364 ac_tf1
=$ac_xdir/conftest9012345
8365 ac_tf2
=$ac_xdir/conftest9012346
8366 (echo 1 >$ac_tf1) 2>/dev
/null
8367 (echo 2 >$ac_tf2) 2>/dev
/null
8368 ac_val
=`cat $ac_tf1 2>/dev/null`
8369 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
8370 ac_cv_sys_long_file_names
=no
8371 rm -rf $ac_xdir 2>/dev
/null
8374 rm -rf $ac_xdir 2>/dev
/null
8377 echo "$as_me:8377: result: $ac_cv_sys_long_file_names" >&5
8378 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8379 if test $ac_cv_sys_long_file_names = yes; then
8381 cat >>confdefs.h
<<\EOF
8382 #define HAVE_LONG_FILE_NAMES 1
8387 for ac_func
in pathconf
8389 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8390 echo "$as_me:8390: checking for $ac_func" >&5
8391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8392 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8393 echo $ECHO_N "(cached) $ECHO_C" >&6
8395 cat >conftest.
$ac_ext <<_ACEOF
8396 #line 8396 "configure"
8397 #include "confdefs.h"
8398 /* System header to define __stub macros and hopefully few prototypes,
8399 which can conflict with char $ac_func (); below. */
8401 /* Override any gcc2 internal prototype to avoid an error. */
8405 /* We use char because int might match the return type of a gcc2
8406 builtin and then its argument prototype would still apply. */
8413 /* The GNU C library defines this for functions which it implements
8414 to always fail with ENOSYS. Some functions are actually named
8415 something starting with __ and the normal name is an alias. */
8416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8426 rm -f conftest.
$ac_objext conftest
$ac_exeext
8427 if { (eval echo "$as_me:8427: \"$ac_link\"") >&5
8428 (eval $ac_link) 2>&5
8430 echo "$as_me:8430: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try
='test -s conftest$ac_exeext'
8433 { (eval echo "$as_me:8433: \"$ac_try\"") >&5
8436 echo "$as_me:8436: \$? = $ac_status" >&5
8437 (exit $ac_status); }; }; then
8438 eval "$ac_ac_var=yes"
8440 echo "$as_me: failed program was:" >&5
8441 cat conftest.
$ac_ext >&5
8442 eval "$ac_ac_var=no"
8444 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8446 echo "$as_me:8446: result: `eval echo '${'$ac_ac_var'}'`" >&5
8447 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8448 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8449 cat >>confdefs.h
<<EOF
8450 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8456 for ac_header
in limits.h string.h unistd.h
8458 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
8459 echo "$as_me:8459: checking for $ac_header" >&5
8460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8461 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8464 cat >conftest.
$ac_ext <<_ACEOF
8465 #line 8465 "configure"
8466 #include "confdefs.h"
8467 #include <$ac_header>
8469 if { (eval echo "$as_me:8469: \"$ac_cpp conftest.$ac_ext\"") >&5
8470 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8472 egrep -v '^ *\+' conftest.er1
>conftest.err
8474 cat conftest.err
>&5
8475 echo "$as_me:8475: \$? = $ac_status" >&5
8476 (exit $ac_status); } >/dev
/null
; then
8477 if test -s conftest.err
; then
8478 ac_cpp_err
=$ac_c_preproc_warn_flag
8485 if test -z "$ac_cpp_err"; then
8486 eval "$ac_ac_Header=yes"
8488 echo "$as_me: failed program was:" >&5
8489 cat conftest.
$ac_ext >&5
8490 eval "$ac_ac_Header=no"
8492 rm -f conftest.err conftest.
$ac_ext
8494 echo "$as_me:8494: result: `eval echo '${'$ac_ac_Header'}'`" >&5
8495 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
8496 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
8497 cat >>confdefs.h
<<EOF
8498 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
8504 echo "$as_me:8504: checking for library containing gethostbyname" >&5
8505 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
8506 if test "${ac_cv_search_gethostbyname+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8509 ac_func_search_save_LIBS
=$LIBS
8510 ac_cv_search_gethostbyname
=no
8511 cat >conftest.
$ac_ext <<_ACEOF
8512 #line 8512 "configure"
8513 #include "confdefs.h"
8515 /* Override any gcc2 internal prototype to avoid an error. */
8519 /* We use char because int might match the return type of a gcc2
8520 builtin and then its argument prototype would still apply. */
8521 char gethostbyname ();
8530 rm -f conftest.
$ac_objext conftest
$ac_exeext
8531 if { (eval echo "$as_me:8531: \"$ac_link\"") >&5
8532 (eval $ac_link) 2>&5
8534 echo "$as_me:8534: \$? = $ac_status" >&5
8535 (exit $ac_status); } &&
8536 { ac_try
='test -s conftest$ac_exeext'
8537 { (eval echo "$as_me:8537: \"$ac_try\"") >&5
8540 echo "$as_me:8540: \$? = $ac_status" >&5
8541 (exit $ac_status); }; }; then
8542 ac_cv_search_gethostbyname
="none required"
8544 echo "$as_me: failed program was:" >&5
8545 cat conftest.
$ac_ext >&5
8547 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8548 test "$ac_cv_search_gethostbyname" = no
&& for ac_lib
in inet nsl
; do
8549 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8550 cat >conftest.
$ac_ext <<_ACEOF
8551 #line 8551 "configure"
8552 #include "confdefs.h"
8554 /* Override any gcc2 internal prototype to avoid an error. */
8558 /* We use char because int might match the return type of a gcc2
8559 builtin and then its argument prototype would still apply. */
8560 char gethostbyname ();
8569 rm -f conftest.
$ac_objext conftest
$ac_exeext
8570 if { (eval echo "$as_me:8570: \"$ac_link\"") >&5
8571 (eval $ac_link) 2>&5
8573 echo "$as_me:8573: \$? = $ac_status" >&5
8574 (exit $ac_status); } &&
8575 { ac_try
='test -s conftest$ac_exeext'
8576 { (eval echo "$as_me:8576: \"$ac_try\"") >&5
8579 echo "$as_me:8579: \$? = $ac_status" >&5
8580 (exit $ac_status); }; }; then
8581 ac_cv_search_gethostbyname
="-l$ac_lib"
8584 echo "$as_me: failed program was:" >&5
8585 cat conftest.
$ac_ext >&5
8587 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8589 LIBS
=$ac_func_search_save_LIBS
8591 echo "$as_me:8591: result: $ac_cv_search_gethostbyname" >&5
8592 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
8593 if test "$ac_cv_search_gethostbyname" != no
; then
8594 test "$ac_cv_search_gethostbyname" = "none required" || LIBS
="$ac_cv_search_gethostbyname $LIBS"
8598 for ac_func
in gethostbyname gethostbyaddr inet_ntoa
8600 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8601 echo "$as_me:8601: checking for $ac_func" >&5
8602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8603 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 cat >conftest.
$ac_ext <<_ACEOF
8607 #line 8607 "configure"
8608 #include "confdefs.h"
8609 /* System header to define __stub macros and hopefully few prototypes,
8610 which can conflict with char $ac_func (); below. */
8612 /* Override any gcc2 internal prototype to avoid an error. */
8616 /* We use char because int might match the return type of a gcc2
8617 builtin and then its argument prototype would still apply. */
8624 /* The GNU C library defines this for functions which it implements
8625 to always fail with ENOSYS. Some functions are actually named
8626 something starting with __ and the normal name is an alias. */
8627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8637 rm -f conftest.
$ac_objext conftest
$ac_exeext
8638 if { (eval echo "$as_me:8638: \"$ac_link\"") >&5
8639 (eval $ac_link) 2>&5
8641 echo "$as_me:8641: \$? = $ac_status" >&5
8642 (exit $ac_status); } &&
8643 { ac_try
='test -s conftest$ac_exeext'
8644 { (eval echo "$as_me:8644: \"$ac_try\"") >&5
8647 echo "$as_me:8647: \$? = $ac_status" >&5
8648 (exit $ac_status); }; }; then
8649 eval "$ac_ac_var=yes"
8651 echo "$as_me: failed program was:" >&5
8652 cat conftest.
$ac_ext >&5
8653 eval "$ac_ac_var=no"
8655 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8657 echo "$as_me:8657: result: `eval echo '${'$ac_ac_var'}'`" >&5
8658 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8659 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8660 cat >>confdefs.h
<<EOF
8661 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8667 for ac_func
in gethostbyname gethostbyaddr inet_ntoa
8669 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8670 echo "$as_me:8670: checking for $ac_func" >&5
8671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8672 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
8675 cat >conftest.
$ac_ext <<_ACEOF
8676 #line 8676 "configure"
8677 #include "confdefs.h"
8678 /* System header to define __stub macros and hopefully few prototypes,
8679 which can conflict with char $ac_func (); below. */
8681 /* Override any gcc2 internal prototype to avoid an error. */
8685 /* We use char because int might match the return type of a gcc2
8686 builtin and then its argument prototype would still apply. */
8693 /* The GNU C library defines this for functions which it implements
8694 to always fail with ENOSYS. Some functions are actually named
8695 something starting with __ and the normal name is an alias. */
8696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8706 rm -f conftest.
$ac_objext conftest
$ac_exeext
8707 if { (eval echo "$as_me:8707: \"$ac_link\"") >&5
8708 (eval $ac_link) 2>&5
8710 echo "$as_me:8710: \$? = $ac_status" >&5
8711 (exit $ac_status); } &&
8712 { ac_try
='test -s conftest$ac_exeext'
8713 { (eval echo "$as_me:8713: \"$ac_try\"") >&5
8716 echo "$as_me:8716: \$? = $ac_status" >&5
8717 (exit $ac_status); }; }; then
8718 eval "$ac_ac_var=yes"
8720 echo "$as_me: failed program was:" >&5
8721 cat conftest.
$ac_ext >&5
8722 eval "$ac_ac_var=no"
8724 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8726 echo "$as_me:8726: result: `eval echo '${'$ac_ac_var'}'`" >&5
8727 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8728 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8729 cat >>confdefs.h
<<EOF
8730 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8736 for ac_header
in unistd.h string.h netdb.h sys
/socket.h \
8737 netinet
/in.h arpa
/inet.h
8739 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
8740 echo "$as_me:8740: checking for $ac_header" >&5
8741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8742 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 cat >conftest.
$ac_ext <<_ACEOF
8746 #line 8746 "configure"
8747 #include "confdefs.h"
8748 #include <$ac_header>
8750 if { (eval echo "$as_me:8750: \"$ac_cpp conftest.$ac_ext\"") >&5
8751 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8753 egrep -v '^ *\+' conftest.er1
>conftest.err
8755 cat conftest.err
>&5
8756 echo "$as_me:8756: \$? = $ac_status" >&5
8757 (exit $ac_status); } >/dev
/null
; then
8758 if test -s conftest.err
; then
8759 ac_cpp_err
=$ac_c_preproc_warn_flag
8766 if test -z "$ac_cpp_err"; then
8767 eval "$ac_ac_Header=yes"
8769 echo "$as_me: failed program was:" >&5
8770 cat conftest.
$ac_ext >&5
8771 eval "$ac_ac_Header=no"
8773 rm -f conftest.err conftest.
$ac_ext
8775 echo "$as_me:8775: result: `eval echo '${'$ac_ac_Header'}'`" >&5
8776 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
8777 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
8778 cat >>confdefs.h
<<EOF
8779 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
8785 for ac_func
in strerror strerror_r vprintf doprnt
8787 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8788 echo "$as_me:8788: checking for $ac_func" >&5
8789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8790 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 cat >conftest.
$ac_ext <<_ACEOF
8794 #line 8794 "configure"
8795 #include "confdefs.h"
8796 /* System header to define __stub macros and hopefully few prototypes,
8797 which can conflict with char $ac_func (); below. */
8799 /* Override any gcc2 internal prototype to avoid an error. */
8803 /* We use char because int might match the return type of a gcc2
8804 builtin and then its argument prototype would still apply. */
8811 /* The GNU C library defines this for functions which it implements
8812 to always fail with ENOSYS. Some functions are actually named
8813 something starting with __ and the normal name is an alias. */
8814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8824 rm -f conftest.
$ac_objext conftest
$ac_exeext
8825 if { (eval echo "$as_me:8825: \"$ac_link\"") >&5
8826 (eval $ac_link) 2>&5
8828 echo "$as_me:8828: \$? = $ac_status" >&5
8829 (exit $ac_status); } &&
8830 { ac_try
='test -s conftest$ac_exeext'
8831 { (eval echo "$as_me:8831: \"$ac_try\"") >&5
8834 echo "$as_me:8834: \$? = $ac_status" >&5
8835 (exit $ac_status); }; }; then
8836 eval "$ac_ac_var=yes"
8838 echo "$as_me: failed program was:" >&5
8839 cat conftest.
$ac_ext >&5
8840 eval "$ac_ac_var=no"
8842 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8844 echo "$as_me:8844: result: `eval echo '${'$ac_ac_var'}'`" >&5
8845 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8846 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8847 cat >>confdefs.h
<<EOF
8848 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8854 echo "$as_me:8854: checking for ANSI C header files" >&5
8855 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8856 if test "${ac_cv_header_stdc+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 cat >conftest.
$ac_ext <<_ACEOF
8860 #line 8860 "configure"
8861 #include "confdefs.h"
8868 if { (eval echo "$as_me:8868: \"$ac_cpp conftest.$ac_ext\"") >&5
8869 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8871 egrep -v '^ *\+' conftest.er1
>conftest.err
8873 cat conftest.err
>&5
8874 echo "$as_me:8874: \$? = $ac_status" >&5
8875 (exit $ac_status); } >/dev
/null
; then
8876 if test -s conftest.err
; then
8877 ac_cpp_err
=$ac_c_preproc_warn_flag
8884 if test -z "$ac_cpp_err"; then
8885 ac_cv_header_stdc
=yes
8887 echo "$as_me: failed program was:" >&5
8888 cat conftest.
$ac_ext >&5
8889 ac_cv_header_stdc
=no
8891 rm -f conftest.err conftest.
$ac_ext
8893 if test $ac_cv_header_stdc = yes; then
8894 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8895 cat >conftest.
$ac_ext <<_ACEOF
8896 #line 8896 "configure"
8897 #include "confdefs.h"
8901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8902 egrep "memchr" >/dev
/null
2>&1; then
8905 ac_cv_header_stdc
=no
8911 if test $ac_cv_header_stdc = yes; then
8912 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8913 cat >conftest.
$ac_ext <<_ACEOF
8914 #line 8914 "configure"
8915 #include "confdefs.h"
8919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8920 egrep "free" >/dev
/null
2>&1; then
8923 ac_cv_header_stdc
=no
8929 if test $ac_cv_header_stdc = yes; then
8930 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8931 if test "$cross_compiling" = yes; then
8934 cat >conftest.
$ac_ext <<_ACEOF
8935 #line 8935 "configure"
8936 #include "confdefs.h"
8938 #if ((' ' & 0x0FF) == 0x020)
8939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8942 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8943 || ('j' <= (c) && (c) <= 'r') \
8944 || ('s' <= (c) && (c) <= 'z'))
8945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8953 for (i = 0; i < 256; i++)
8954 if (XOR (islower (i), ISLOWER (i))
8955 || toupper (i) != TOUPPER (i))
8960 rm -f conftest
$ac_exeext
8961 if { (eval echo "$as_me:8961: \"$ac_link\"") >&5
8962 (eval $ac_link) 2>&5
8964 echo "$as_me:8964: \$? = $ac_status" >&5
8965 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8966 { (eval echo "$as_me:8966: \"$ac_try\"") >&5
8969 echo "$as_me:8969: \$? = $ac_status" >&5
8970 (exit $ac_status); }; }; then
8973 echo "$as_me: program exited with status $ac_status" >&5
8974 echo "$as_me: failed program was:" >&5
8975 cat conftest.
$ac_ext >&5
8976 ac_cv_header_stdc
=no
8978 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
8982 echo "$as_me:8982: result: $ac_cv_header_stdc" >&5
8983 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8984 if test $ac_cv_header_stdc = yes; then
8986 cat >>confdefs.h
<<\EOF
8987 #define STDC_HEADERS 1
8992 for ac_func
in isascii iswprint mbrtowc
8994 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8995 echo "$as_me:8995: checking for $ac_func" >&5
8996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8997 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8998 echo $ECHO_N "(cached) $ECHO_C" >&6
9000 cat >conftest.
$ac_ext <<_ACEOF
9001 #line 9001 "configure"
9002 #include "confdefs.h"
9003 /* System header to define __stub macros and hopefully few prototypes,
9004 which can conflict with char $ac_func (); below. */
9006 /* Override any gcc2 internal prototype to avoid an error. */
9010 /* We use char because int might match the return type of a gcc2
9011 builtin and then its argument prototype would still apply. */
9018 /* The GNU C library defines this for functions which it implements
9019 to always fail with ENOSYS. Some functions are actually named
9020 something starting with __ and the normal name is an alias. */
9021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9031 rm -f conftest.
$ac_objext conftest
$ac_exeext
9032 if { (eval echo "$as_me:9032: \"$ac_link\"") >&5
9033 (eval $ac_link) 2>&5
9035 echo "$as_me:9035: \$? = $ac_status" >&5
9036 (exit $ac_status); } &&
9037 { ac_try
='test -s conftest$ac_exeext'
9038 { (eval echo "$as_me:9038: \"$ac_try\"") >&5
9041 echo "$as_me:9041: \$? = $ac_status" >&5
9042 (exit $ac_status); }; }; then
9043 eval "$ac_ac_var=yes"
9045 echo "$as_me: failed program was:" >&5
9046 cat conftest.
$ac_ext >&5
9047 eval "$ac_ac_var=no"
9049 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9051 echo "$as_me:9051: result: `eval echo '${'$ac_ac_var'}'`" >&5
9052 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9053 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9054 cat >>confdefs.h
<<EOF
9055 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9061 for ac_header
in limits.h stdlib.h string.h wchar.h wctype.h
9063 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9064 echo "$as_me:9064: checking for $ac_header" >&5
9065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9066 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9069 cat >conftest.
$ac_ext <<_ACEOF
9070 #line 9070 "configure"
9071 #include "confdefs.h"
9072 #include <$ac_header>
9074 if { (eval echo "$as_me:9074: \"$ac_cpp conftest.$ac_ext\"") >&5
9075 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9077 egrep -v '^ *\+' conftest.er1
>conftest.err
9079 cat conftest.err
>&5
9080 echo "$as_me:9080: \$? = $ac_status" >&5
9081 (exit $ac_status); } >/dev
/null
; then
9082 if test -s conftest.err
; then
9083 ac_cpp_err
=$ac_c_preproc_warn_flag
9090 if test -z "$ac_cpp_err"; then
9091 eval "$ac_ac_Header=yes"
9093 echo "$as_me: failed program was:" >&5
9094 cat conftest.
$ac_ext >&5
9095 eval "$ac_ac_Header=no"
9097 rm -f conftest.err conftest.
$ac_ext
9099 echo "$as_me:9099: result: `eval echo '${'$ac_ac_Header'}'`" >&5
9100 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
9101 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9102 cat >>confdefs.h
<<EOF
9103 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9109 echo "$as_me:9109: checking for ANSI C header files" >&5
9110 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9111 if test "${ac_cv_header_stdc+set}" = set; then
9112 echo $ECHO_N "(cached) $ECHO_C" >&6
9114 cat >conftest.
$ac_ext <<_ACEOF
9115 #line 9115 "configure"
9116 #include "confdefs.h"
9123 if { (eval echo "$as_me:9123: \"$ac_cpp conftest.$ac_ext\"") >&5
9124 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9126 egrep -v '^ *\+' conftest.er1
>conftest.err
9128 cat conftest.err
>&5
9129 echo "$as_me:9129: \$? = $ac_status" >&5
9130 (exit $ac_status); } >/dev
/null
; then
9131 if test -s conftest.err
; then
9132 ac_cpp_err
=$ac_c_preproc_warn_flag
9139 if test -z "$ac_cpp_err"; then
9140 ac_cv_header_stdc
=yes
9142 echo "$as_me: failed program was:" >&5
9143 cat conftest.
$ac_ext >&5
9144 ac_cv_header_stdc
=no
9146 rm -f conftest.err conftest.
$ac_ext
9148 if test $ac_cv_header_stdc = yes; then
9149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9150 cat >conftest.
$ac_ext <<_ACEOF
9151 #line 9151 "configure"
9152 #include "confdefs.h"
9156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9157 egrep "memchr" >/dev
/null
2>&1; then
9160 ac_cv_header_stdc
=no
9166 if test $ac_cv_header_stdc = yes; then
9167 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9168 cat >conftest.
$ac_ext <<_ACEOF
9169 #line 9169 "configure"
9170 #include "confdefs.h"
9174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9175 egrep "free" >/dev
/null
2>&1; then
9178 ac_cv_header_stdc
=no
9184 if test $ac_cv_header_stdc = yes; then
9185 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9186 if test "$cross_compiling" = yes; then
9189 cat >conftest.
$ac_ext <<_ACEOF
9190 #line 9190 "configure"
9191 #include "confdefs.h"
9193 #if ((' ' & 0x0FF) == 0x020)
9194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9197 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9198 || ('j' <= (c) && (c) <= 'r') \
9199 || ('s' <= (c) && (c) <= 'z'))
9200 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9203 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9208 for (i = 0; i < 256; i++)
9209 if (XOR (islower (i), ISLOWER (i))
9210 || toupper (i) != TOUPPER (i))
9215 rm -f conftest
$ac_exeext
9216 if { (eval echo "$as_me:9216: \"$ac_link\"") >&5
9217 (eval $ac_link) 2>&5
9219 echo "$as_me:9219: \$? = $ac_status" >&5
9220 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9221 { (eval echo "$as_me:9221: \"$ac_try\"") >&5
9224 echo "$as_me:9224: \$? = $ac_status" >&5
9225 (exit $ac_status); }; }; then
9228 echo "$as_me: program exited with status $ac_status" >&5
9229 echo "$as_me: failed program was:" >&5
9230 cat conftest.
$ac_ext >&5
9231 ac_cv_header_stdc
=no
9233 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
9237 echo "$as_me:9237: result: $ac_cv_header_stdc" >&5
9238 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9239 if test $ac_cv_header_stdc = yes; then
9241 cat >>confdefs.h
<<\EOF
9242 #define STDC_HEADERS 1
9247 echo "$as_me:9247: checking whether backslash-a works in strings" >&5
9248 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
9249 if test "${ac_cv_c_backslash_a+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9252 cat >conftest.
$ac_ext <<_ACEOF
9253 #line 9253 "configure"
9254 #include "confdefs.h"
9263 char buf['\a' == 'a' ? -1 : 1];
9265 return buf[0] != "\a"[0];
9271 rm -f conftest.
$ac_objext
9272 if { (eval echo "$as_me:9272: \"$ac_compile\"") >&5
9273 (eval $ac_compile) 2>&5
9275 echo "$as_me:9275: \$? = $ac_status" >&5
9276 (exit $ac_status); } &&
9277 { ac_try
='test -s conftest.$ac_objext'
9278 { (eval echo "$as_me:9278: \"$ac_try\"") >&5
9281 echo "$as_me:9281: \$? = $ac_status" >&5
9282 (exit $ac_status); }; }; then
9283 ac_cv_c_backslash_a
=yes
9285 echo "$as_me: failed program was:" >&5
9286 cat conftest.
$ac_ext >&5
9287 ac_cv_c_backslash_a
=no
9289 rm -f conftest.
$ac_objext conftest.
$ac_ext
9291 echo "$as_me:9291: result: $ac_cv_c_backslash_a" >&5
9292 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
9293 if test $ac_cv_c_backslash_a = yes; then
9295 cat >>confdefs.h
<<\EOF
9296 #define HAVE_C_BACKSLASH_A 1
9301 echo "$as_me:9301: checking for mbstate_t object type" >&5
9302 echo $ECHO_N "checking for mbstate_t object type... $ECHO_C" >&6
9303 if test "${ac_cv_type_mbstate_t_object+set}" = set; then
9304 echo $ECHO_N "(cached) $ECHO_C" >&6
9306 cat >conftest.
$ac_ext <<_ACEOF
9307 #line 9307 "configure"
9308 #include "confdefs.h"
9313 mbstate_t x; return sizeof x;
9318 rm -f conftest.
$ac_objext
9319 if { (eval echo "$as_me:9319: \"$ac_compile\"") >&5
9320 (eval $ac_compile) 2>&5
9322 echo "$as_me:9322: \$? = $ac_status" >&5
9323 (exit $ac_status); } &&
9324 { ac_try
='test -s conftest.$ac_objext'
9325 { (eval echo "$as_me:9325: \"$ac_try\"") >&5
9328 echo "$as_me:9328: \$? = $ac_status" >&5
9329 (exit $ac_status); }; }; then
9330 ac_cv_type_mbstate_t_object
=yes
9332 echo "$as_me: failed program was:" >&5
9333 cat conftest.
$ac_ext >&5
9334 ac_cv_type_mbstate_t_object
=no
9336 rm -f conftest.
$ac_objext conftest.
$ac_ext
9338 echo "$as_me:9338: result: $ac_cv_type_mbstate_t_object" >&5
9339 echo "${ECHO_T}$ac_cv_type_mbstate_t_object" >&6
9340 if test $ac_cv_type_mbstate_t_object = yes; then
9342 cat >>confdefs.h
<<\EOF
9343 #define HAVE_MBSTATE_T_OBJECT 1
9348 echo "$as_me:9348: checking for function prototypes" >&5
9349 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
9350 if test "$am_cv_prog_cc_stdc" != no
; then
9351 echo "$as_me:9351: result: yes" >&5
9352 echo "${ECHO_T}yes" >&6
9354 cat >>confdefs.h
<<\EOF
9355 #define PROTOTYPES 1
9360 echo "$as_me:9360: result: no" >&5
9361 echo "${ECHO_T}no" >&6
9362 U
=_ ANSI2KNR
=.
/ansi2knr
9364 # Ensure some checks needed by ansi2knr itself.
9365 echo "$as_me:9365: checking for ANSI C header files" >&5
9366 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9367 if test "${ac_cv_header_stdc+set}" = set; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9370 cat >conftest.
$ac_ext <<_ACEOF
9371 #line 9371 "configure"
9372 #include "confdefs.h"
9379 if { (eval echo "$as_me:9379: \"$ac_cpp conftest.$ac_ext\"") >&5
9380 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9382 egrep -v '^ *\+' conftest.er1
>conftest.err
9384 cat conftest.err
>&5
9385 echo "$as_me:9385: \$? = $ac_status" >&5
9386 (exit $ac_status); } >/dev
/null
; then
9387 if test -s conftest.err
; then
9388 ac_cpp_err
=$ac_c_preproc_warn_flag
9395 if test -z "$ac_cpp_err"; then
9396 ac_cv_header_stdc
=yes
9398 echo "$as_me: failed program was:" >&5
9399 cat conftest.
$ac_ext >&5
9400 ac_cv_header_stdc
=no
9402 rm -f conftest.err conftest.
$ac_ext
9404 if test $ac_cv_header_stdc = yes; then
9405 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9406 cat >conftest.
$ac_ext <<_ACEOF
9407 #line 9407 "configure"
9408 #include "confdefs.h"
9412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9413 egrep "memchr" >/dev
/null
2>&1; then
9416 ac_cv_header_stdc
=no
9422 if test $ac_cv_header_stdc = yes; then
9423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9424 cat >conftest.
$ac_ext <<_ACEOF
9425 #line 9425 "configure"
9426 #include "confdefs.h"
9430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9431 egrep "free" >/dev
/null
2>&1; then
9434 ac_cv_header_stdc
=no
9440 if test $ac_cv_header_stdc = yes; then
9441 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9442 if test "$cross_compiling" = yes; then
9445 cat >conftest.
$ac_ext <<_ACEOF
9446 #line 9446 "configure"
9447 #include "confdefs.h"
9449 #if ((' ' & 0x0FF) == 0x020)
9450 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9451 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9453 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9454 || ('j' <= (c) && (c) <= 'r') \
9455 || ('s' <= (c) && (c) <= 'z'))
9456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9464 for (i = 0; i < 256; i++)
9465 if (XOR (islower (i), ISLOWER (i))
9466 || toupper (i) != TOUPPER (i))
9471 rm -f conftest
$ac_exeext
9472 if { (eval echo "$as_me:9472: \"$ac_link\"") >&5
9473 (eval $ac_link) 2>&5
9475 echo "$as_me:9475: \$? = $ac_status" >&5
9476 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9477 { (eval echo "$as_me:9477: \"$ac_try\"") >&5
9480 echo "$as_me:9480: \$? = $ac_status" >&5
9481 (exit $ac_status); }; }; then
9484 echo "$as_me: program exited with status $ac_status" >&5
9485 echo "$as_me: failed program was:" >&5
9486 cat conftest.
$ac_ext >&5
9487 ac_cv_header_stdc
=no
9489 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
9493 echo "$as_me:9493: result: $ac_cv_header_stdc" >&5
9494 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9495 if test $ac_cv_header_stdc = yes; then
9497 cat >>confdefs.h
<<\EOF
9498 #define STDC_HEADERS 1
9503 for ac_header
in string.h
9505 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9506 echo "$as_me:9506: checking for $ac_header" >&5
9507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9508 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9511 cat >conftest.
$ac_ext <<_ACEOF
9512 #line 9512 "configure"
9513 #include "confdefs.h"
9514 #include <$ac_header>
9516 if { (eval echo "$as_me:9516: \"$ac_cpp conftest.$ac_ext\"") >&5
9517 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9519 egrep -v '^ *\+' conftest.er1
>conftest.err
9521 cat conftest.err
>&5
9522 echo "$as_me:9522: \$? = $ac_status" >&5
9523 (exit $ac_status); } >/dev
/null
; then
9524 if test -s conftest.err
; then
9525 ac_cpp_err
=$ac_c_preproc_warn_flag
9532 if test -z "$ac_cpp_err"; then
9533 eval "$ac_ac_Header=yes"
9535 echo "$as_me: failed program was:" >&5
9536 cat conftest.
$ac_ext >&5
9537 eval "$ac_ac_Header=no"
9539 rm -f conftest.err conftest.
$ac_ext
9541 echo "$as_me:9541: result: `eval echo '${'$ac_ac_Header'}'`" >&5
9542 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
9543 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9544 cat >>confdefs.h
<<EOF
9545 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9551 echo "$as_me:9551: checking for ANSI C header files" >&5
9552 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9553 if test "${ac_cv_header_stdc+set}" = set; then
9554 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 cat >conftest.
$ac_ext <<_ACEOF
9557 #line 9557 "configure"
9558 #include "confdefs.h"
9565 if { (eval echo "$as_me:9565: \"$ac_cpp conftest.$ac_ext\"") >&5
9566 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9568 egrep -v '^ *\+' conftest.er1
>conftest.err
9570 cat conftest.err
>&5
9571 echo "$as_me:9571: \$? = $ac_status" >&5
9572 (exit $ac_status); } >/dev
/null
; then
9573 if test -s conftest.err
; then
9574 ac_cpp_err
=$ac_c_preproc_warn_flag
9581 if test -z "$ac_cpp_err"; then
9582 ac_cv_header_stdc
=yes
9584 echo "$as_me: failed program was:" >&5
9585 cat conftest.
$ac_ext >&5
9586 ac_cv_header_stdc
=no
9588 rm -f conftest.err conftest.
$ac_ext
9590 if test $ac_cv_header_stdc = yes; then
9591 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9592 cat >conftest.
$ac_ext <<_ACEOF
9593 #line 9593 "configure"
9594 #include "confdefs.h"
9598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9599 egrep "memchr" >/dev
/null
2>&1; then
9602 ac_cv_header_stdc
=no
9608 if test $ac_cv_header_stdc = yes; then
9609 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9610 cat >conftest.
$ac_ext <<_ACEOF
9611 #line 9611 "configure"
9612 #include "confdefs.h"
9616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9617 egrep "free" >/dev
/null
2>&1; then
9620 ac_cv_header_stdc
=no
9626 if test $ac_cv_header_stdc = yes; then
9627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9628 if test "$cross_compiling" = yes; then
9631 cat >conftest.
$ac_ext <<_ACEOF
9632 #line 9632 "configure"
9633 #include "confdefs.h"
9635 #if ((' ' & 0x0FF) == 0x020)
9636 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9637 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9639 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9640 || ('j' <= (c) && (c) <= 'r') \
9641 || ('s' <= (c) && (c) <= 'z'))
9642 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9645 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9650 for (i = 0; i < 256; i++)
9651 if (XOR (islower (i), ISLOWER (i))
9652 || toupper (i) != TOUPPER (i))
9657 rm -f conftest
$ac_exeext
9658 if { (eval echo "$as_me:9658: \"$ac_link\"") >&5
9659 (eval $ac_link) 2>&5
9661 echo "$as_me:9661: \$? = $ac_status" >&5
9662 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9663 { (eval echo "$as_me:9663: \"$ac_try\"") >&5
9666 echo "$as_me:9666: \$? = $ac_status" >&5
9667 (exit $ac_status); }; }; then
9670 echo "$as_me: program exited with status $ac_status" >&5
9671 echo "$as_me: failed program was:" >&5
9672 cat conftest.
$ac_ext >&5
9673 ac_cv_header_stdc
=no
9675 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
9679 echo "$as_me:9679: result: $ac_cv_header_stdc" >&5
9680 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9681 if test $ac_cv_header_stdc = yes; then
9683 cat >>confdefs.h
<<\EOF
9684 #define STDC_HEADERS 1
9689 for ac_header
in string.h utmpx.h sys
/param.h
9691 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9692 echo "$as_me:9692: checking for $ac_header" >&5
9693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9694 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9695 echo $ECHO_N "(cached) $ECHO_C" >&6
9697 cat >conftest.
$ac_ext <<_ACEOF
9698 #line 9698 "configure"
9699 #include "confdefs.h"
9700 #include <$ac_header>
9702 if { (eval echo "$as_me:9702: \"$ac_cpp conftest.$ac_ext\"") >&5
9703 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9705 egrep -v '^ *\+' conftest.er1
>conftest.err
9707 cat conftest.err
>&5
9708 echo "$as_me:9708: \$? = $ac_status" >&5
9709 (exit $ac_status); } >/dev
/null
; then
9710 if test -s conftest.err
; then
9711 ac_cpp_err
=$ac_c_preproc_warn_flag
9718 if test -z "$ac_cpp_err"; then
9719 eval "$ac_ac_Header=yes"
9721 echo "$as_me: failed program was:" >&5
9722 cat conftest.
$ac_ext >&5
9723 eval "$ac_ac_Header=no"
9725 rm -f conftest.err conftest.
$ac_ext
9727 echo "$as_me:9727: result: `eval echo '${'$ac_ac_Header'}'`" >&5
9728 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
9729 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9730 cat >>confdefs.h
<<EOF
9731 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9737 for ac_func
in utmpname
9739 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9740 echo "$as_me:9740: checking for $ac_func" >&5
9741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9742 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9745 cat >conftest.
$ac_ext <<_ACEOF
9746 #line 9746 "configure"
9747 #include "confdefs.h"
9748 /* System header to define __stub macros and hopefully few prototypes,
9749 which can conflict with char $ac_func (); below. */
9751 /* Override any gcc2 internal prototype to avoid an error. */
9755 /* We use char because int might match the return type of a gcc2
9756 builtin and then its argument prototype would still apply. */
9763 /* The GNU C library defines this for functions which it implements
9764 to always fail with ENOSYS. Some functions are actually named
9765 something starting with __ and the normal name is an alias. */
9766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9776 rm -f conftest.
$ac_objext conftest
$ac_exeext
9777 if { (eval echo "$as_me:9777: \"$ac_link\"") >&5
9778 (eval $ac_link) 2>&5
9780 echo "$as_me:9780: \$? = $ac_status" >&5
9781 (exit $ac_status); } &&
9782 { ac_try
='test -s conftest$ac_exeext'
9783 { (eval echo "$as_me:9783: \"$ac_try\"") >&5
9786 echo "$as_me:9786: \$? = $ac_status" >&5
9787 (exit $ac_status); }; }; then
9788 eval "$ac_ac_var=yes"
9790 echo "$as_me: failed program was:" >&5
9791 cat conftest.
$ac_ext >&5
9792 eval "$ac_ac_var=no"
9794 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9796 echo "$as_me:9796: result: `eval echo '${'$ac_ac_var'}'`" >&5
9797 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9798 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9799 cat >>confdefs.h
<<EOF
9800 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9806 for ac_func
in utmpxname
9808 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9809 echo "$as_me:9809: checking for $ac_func" >&5
9810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9811 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 cat >conftest.
$ac_ext <<_ACEOF
9815 #line 9815 "configure"
9816 #include "confdefs.h"
9817 /* System header to define __stub macros and hopefully few prototypes,
9818 which can conflict with char $ac_func (); below. */
9820 /* Override any gcc2 internal prototype to avoid an error. */
9824 /* We use char because int might match the return type of a gcc2
9825 builtin and then its argument prototype would still apply. */
9832 /* The GNU C library defines this for functions which it implements
9833 to always fail with ENOSYS. Some functions are actually named
9834 something starting with __ and the normal name is an alias. */
9835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9845 rm -f conftest.
$ac_objext conftest
$ac_exeext
9846 if { (eval echo "$as_me:9846: \"$ac_link\"") >&5
9847 (eval $ac_link) 2>&5
9849 echo "$as_me:9849: \$? = $ac_status" >&5
9850 (exit $ac_status); } &&
9851 { ac_try
='test -s conftest$ac_exeext'
9852 { (eval echo "$as_me:9852: \"$ac_try\"") >&5
9855 echo "$as_me:9855: \$? = $ac_status" >&5
9856 (exit $ac_status); }; }; then
9857 eval "$ac_ac_var=yes"
9859 echo "$as_me: failed program was:" >&5
9860 cat conftest.
$ac_ext >&5
9861 eval "$ac_ac_var=no"
9863 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9865 echo "$as_me:9865: result: `eval echo '${'$ac_ac_var'}'`" >&5
9866 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9867 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9868 cat >>confdefs.h
<<EOF
9869 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9875 echo "$as_me:9875: checking for function prototypes" >&5
9876 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
9877 if test "$am_cv_prog_cc_stdc" != no
; then
9878 echo "$as_me:9878: result: yes" >&5
9879 echo "${ECHO_T}yes" >&6
9881 cat >>confdefs.h
<<\EOF
9882 #define PROTOTYPES 1
9887 echo "$as_me:9887: result: no" >&5
9888 echo "${ECHO_T}no" >&6
9889 U
=_ ANSI2KNR
=.
/ansi2knr
9891 # Ensure some checks needed by ansi2knr itself.
9892 echo "$as_me:9892: checking for ANSI C header files" >&5
9893 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9894 if test "${ac_cv_header_stdc+set}" = set; then
9895 echo $ECHO_N "(cached) $ECHO_C" >&6
9897 cat >conftest.
$ac_ext <<_ACEOF
9898 #line 9898 "configure"
9899 #include "confdefs.h"
9906 if { (eval echo "$as_me:9906: \"$ac_cpp conftest.$ac_ext\"") >&5
9907 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9909 egrep -v '^ *\+' conftest.er1
>conftest.err
9911 cat conftest.err
>&5
9912 echo "$as_me:9912: \$? = $ac_status" >&5
9913 (exit $ac_status); } >/dev
/null
; then
9914 if test -s conftest.err
; then
9915 ac_cpp_err
=$ac_c_preproc_warn_flag
9922 if test -z "$ac_cpp_err"; then
9923 ac_cv_header_stdc
=yes
9925 echo "$as_me: failed program was:" >&5
9926 cat conftest.
$ac_ext >&5
9927 ac_cv_header_stdc
=no
9929 rm -f conftest.err conftest.
$ac_ext
9931 if test $ac_cv_header_stdc = yes; then
9932 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9933 cat >conftest.
$ac_ext <<_ACEOF
9934 #line 9934 "configure"
9935 #include "confdefs.h"
9939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9940 egrep "memchr" >/dev
/null
2>&1; then
9943 ac_cv_header_stdc
=no
9949 if test $ac_cv_header_stdc = yes; then
9950 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9951 cat >conftest.
$ac_ext <<_ACEOF
9952 #line 9952 "configure"
9953 #include "confdefs.h"
9957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9958 egrep "free" >/dev
/null
2>&1; then
9961 ac_cv_header_stdc
=no
9967 if test $ac_cv_header_stdc = yes; then
9968 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9969 if test "$cross_compiling" = yes; then
9972 cat >conftest.
$ac_ext <<_ACEOF
9973 #line 9973 "configure"
9974 #include "confdefs.h"
9976 #if ((' ' & 0x0FF) == 0x020)
9977 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9978 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9980 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9981 || ('j' <= (c) && (c) <= 'r') \
9982 || ('s' <= (c) && (c) <= 'z'))
9983 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9991 for (i = 0; i < 256; i++)
9992 if (XOR (islower (i), ISLOWER (i))
9993 || toupper (i) != TOUPPER (i))
9998 rm -f conftest
$ac_exeext
9999 if { (eval echo "$as_me:9999: \"$ac_link\"") >&5
10000 (eval $ac_link) 2>&5
10002 echo "$as_me:10002: \$? = $ac_status" >&5
10003 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10004 { (eval echo "$as_me:10004: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10007 echo "$as_me:10007: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10011 echo "$as_me: program exited with status $ac_status" >&5
10012 echo "$as_me: failed program was:" >&5
10013 cat conftest.
$ac_ext >&5
10014 ac_cv_header_stdc
=no
10016 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
10020 echo "$as_me:10020: result: $ac_cv_header_stdc" >&5
10021 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10022 if test $ac_cv_header_stdc = yes; then
10024 cat >>confdefs.h
<<\EOF
10025 #define STDC_HEADERS 1
10030 for ac_header
in string.h
10032 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
10033 echo "$as_me:10033: checking for $ac_header" >&5
10034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10035 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10038 cat >conftest.
$ac_ext <<_ACEOF
10039 #line 10039 "configure"
10040 #include "confdefs.h"
10041 #include <$ac_header>
10043 if { (eval echo "$as_me:10043: \"$ac_cpp conftest.$ac_ext\"") >&5
10044 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10046 egrep -v '^ *\+' conftest.er1
>conftest.err
10048 cat conftest.err
>&5
10049 echo "$as_me:10049: \$? = $ac_status" >&5
10050 (exit $ac_status); } >/dev
/null
; then
10051 if test -s conftest.err
; then
10052 ac_cpp_err
=$ac_c_preproc_warn_flag
10059 if test -z "$ac_cpp_err"; then
10060 eval "$ac_ac_Header=yes"
10062 echo "$as_me: failed program was:" >&5
10063 cat conftest.
$ac_ext >&5
10064 eval "$ac_ac_Header=no"
10066 rm -f conftest.err conftest.
$ac_ext
10068 echo "$as_me:10068: result: `eval echo '${'$ac_ac_Header'}'`" >&5
10069 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
10070 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
10071 cat >>confdefs.h
<<EOF
10072 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10079 $ac_includes_default
10080 #ifdef HAVE_UTMPX_H
10081 # include <utmpx.h>
10086 echo "$as_me:10086: checking for struct utmpx.ut_user" >&5
10087 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6
10088 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10091 cat >conftest.
$ac_ext <<_ACEOF
10092 #line 10092 "configure"
10093 #include "confdefs.h"
10105 rm -f conftest.
$ac_objext
10106 if { (eval echo "$as_me:10106: \"$ac_compile\"") >&5
10107 (eval $ac_compile) 2>&5
10109 echo "$as_me:10109: \$? = $ac_status" >&5
10110 (exit $ac_status); } &&
10111 { ac_try
='test -s conftest.$ac_objext'
10112 { (eval echo "$as_me:10112: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10115 echo "$as_me:10115: \$? = $ac_status" >&5
10116 (exit $ac_status); }; }; then
10117 ac_cv_member_struct_utmpx_ut_user
=yes
10119 echo "$as_me: failed program was:" >&5
10120 cat conftest.
$ac_ext >&5
10121 ac_cv_member_struct_utmpx_ut_user
=no
10123 rm -f conftest.
$ac_objext conftest.
$ac_ext
10125 echo "$as_me:10125: result: $ac_cv_member_struct_utmpx_ut_user" >&5
10126 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6
10127 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
10129 cat >>confdefs.h
<<EOF
10130 #define HAVE_STRUCT_UTMPX_UT_USER 1
10135 echo "$as_me:10135: checking for struct utmp.ut_user" >&5
10136 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6
10137 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
10140 cat >conftest.
$ac_ext <<_ACEOF
10141 #line 10141 "configure"
10142 #include "confdefs.h"
10154 rm -f conftest.
$ac_objext
10155 if { (eval echo "$as_me:10155: \"$ac_compile\"") >&5
10156 (eval $ac_compile) 2>&5
10158 echo "$as_me:10158: \$? = $ac_status" >&5
10159 (exit $ac_status); } &&
10160 { ac_try
='test -s conftest.$ac_objext'
10161 { (eval echo "$as_me:10161: \"$ac_try\"") >&5
10162 (eval $ac_try) 2>&5
10164 echo "$as_me:10164: \$? = $ac_status" >&5
10165 (exit $ac_status); }; }; then
10166 ac_cv_member_struct_utmp_ut_user
=yes
10168 echo "$as_me: failed program was:" >&5
10169 cat conftest.
$ac_ext >&5
10170 ac_cv_member_struct_utmp_ut_user
=no
10172 rm -f conftest.
$ac_objext conftest.
$ac_ext
10174 echo "$as_me:10174: result: $ac_cv_member_struct_utmp_ut_user" >&5
10175 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6
10176 if test $ac_cv_member_struct_utmp_ut_user = yes; then
10178 cat >>confdefs.h
<<EOF
10179 #define HAVE_STRUCT_UTMP_UT_USER 1
10184 echo "$as_me:10184: checking for struct utmpx.ut_name" >&5
10185 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6
10186 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10189 cat >conftest.
$ac_ext <<_ACEOF
10190 #line 10190 "configure"
10191 #include "confdefs.h"
10203 rm -f conftest.
$ac_objext
10204 if { (eval echo "$as_me:10204: \"$ac_compile\"") >&5
10205 (eval $ac_compile) 2>&5
10207 echo "$as_me:10207: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try
='test -s conftest.$ac_objext'
10210 { (eval echo "$as_me:10210: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10213 echo "$as_me:10213: \$? = $ac_status" >&5
10214 (exit $ac_status); }; }; then
10215 ac_cv_member_struct_utmpx_ut_name
=yes
10217 echo "$as_me: failed program was:" >&5
10218 cat conftest.
$ac_ext >&5
10219 ac_cv_member_struct_utmpx_ut_name
=no
10221 rm -f conftest.
$ac_objext conftest.
$ac_ext
10223 echo "$as_me:10223: result: $ac_cv_member_struct_utmpx_ut_name" >&5
10224 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6
10225 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
10227 cat >>confdefs.h
<<EOF
10228 #define HAVE_STRUCT_UTMPX_UT_NAME 1
10233 echo "$as_me:10233: checking for struct utmp.ut_name" >&5
10234 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6
10235 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 cat >conftest.
$ac_ext <<_ACEOF
10239 #line 10239 "configure"
10240 #include "confdefs.h"
10252 rm -f conftest.
$ac_objext
10253 if { (eval echo "$as_me:10253: \"$ac_compile\"") >&5
10254 (eval $ac_compile) 2>&5
10256 echo "$as_me:10256: \$? = $ac_status" >&5
10257 (exit $ac_status); } &&
10258 { ac_try
='test -s conftest.$ac_objext'
10259 { (eval echo "$as_me:10259: \"$ac_try\"") >&5
10260 (eval $ac_try) 2>&5
10262 echo "$as_me:10262: \$? = $ac_status" >&5
10263 (exit $ac_status); }; }; then
10264 ac_cv_member_struct_utmp_ut_name
=yes
10266 echo "$as_me: failed program was:" >&5
10267 cat conftest.
$ac_ext >&5
10268 ac_cv_member_struct_utmp_ut_name
=no
10270 rm -f conftest.
$ac_objext conftest.
$ac_ext
10272 echo "$as_me:10272: result: $ac_cv_member_struct_utmp_ut_name" >&5
10273 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6
10274 if test $ac_cv_member_struct_utmp_ut_name = yes; then
10276 cat >>confdefs.h
<<EOF
10277 #define HAVE_STRUCT_UTMP_UT_NAME 1
10282 for ac_func
in bzero bcopy isascii btowc
10284 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10285 echo "$as_me:10285: checking for $ac_func" >&5
10286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10287 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10288 echo $ECHO_N "(cached) $ECHO_C" >&6
10290 cat >conftest.
$ac_ext <<_ACEOF
10291 #line 10291 "configure"
10292 #include "confdefs.h"
10293 /* System header to define __stub macros and hopefully few prototypes,
10294 which can conflict with char $ac_func (); below. */
10295 #include <assert.h>
10296 /* Override any gcc2 internal prototype to avoid an error. */
10300 /* We use char because int might match the return type of a gcc2
10301 builtin and then its argument prototype would still apply. */
10308 /* The GNU C library defines this for functions which it implements
10309 to always fail with ENOSYS. Some functions are actually named
10310 something starting with __ and the normal name is an alias. */
10311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10321 rm -f conftest.
$ac_objext conftest
$ac_exeext
10322 if { (eval echo "$as_me:10322: \"$ac_link\"") >&5
10323 (eval $ac_link) 2>&5
10325 echo "$as_me:10325: \$? = $ac_status" >&5
10326 (exit $ac_status); } &&
10327 { ac_try
='test -s conftest$ac_exeext'
10328 { (eval echo "$as_me:10328: \"$ac_try\"") >&5
10329 (eval $ac_try) 2>&5
10331 echo "$as_me:10331: \$? = $ac_status" >&5
10332 (exit $ac_status); }; }; then
10333 eval "$ac_ac_var=yes"
10335 echo "$as_me: failed program was:" >&5
10336 cat conftest.
$ac_ext >&5
10337 eval "$ac_ac_var=no"
10339 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10341 echo "$as_me:10341: result: `eval echo '${'$ac_ac_var'}'`" >&5
10342 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
10343 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10344 cat >>confdefs.h
<<EOF
10345 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10351 for ac_header
in alloca.h libintl.h wctype.h wchar.h
10353 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
10354 echo "$as_me:10354: checking for $ac_header" >&5
10355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10356 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10359 cat >conftest.
$ac_ext <<_ACEOF
10360 #line 10360 "configure"
10361 #include "confdefs.h"
10362 #include <$ac_header>
10364 if { (eval echo "$as_me:10364: \"$ac_cpp conftest.$ac_ext\"") >&5
10365 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10367 egrep -v '^ *\+' conftest.er1
>conftest.err
10369 cat conftest.err
>&5
10370 echo "$as_me:10370: \$? = $ac_status" >&5
10371 (exit $ac_status); } >/dev
/null
; then
10372 if test -s conftest.err
; then
10373 ac_cpp_err
=$ac_c_preproc_warn_flag
10380 if test -z "$ac_cpp_err"; then
10381 eval "$ac_ac_Header=yes"
10383 echo "$as_me: failed program was:" >&5
10384 cat conftest.
$ac_ext >&5
10385 eval "$ac_ac_Header=no"
10387 rm -f conftest.err conftest.
$ac_ext
10389 echo "$as_me:10389: result: `eval echo '${'$ac_ac_Header'}'`" >&5
10390 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
10391 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
10392 cat >>confdefs.h
<<EOF
10393 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10399 echo "$as_me:10399: checking for ANSI C header files" >&5
10400 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10401 if test "${ac_cv_header_stdc+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 cat >conftest.
$ac_ext <<_ACEOF
10405 #line 10405 "configure"
10406 #include "confdefs.h"
10407 #include <stdlib.h>
10408 #include <stdarg.h>
10409 #include <string.h>
10413 if { (eval echo "$as_me:10413: \"$ac_cpp conftest.$ac_ext\"") >&5
10414 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10416 egrep -v '^ *\+' conftest.er1
>conftest.err
10418 cat conftest.err
>&5
10419 echo "$as_me:10419: \$? = $ac_status" >&5
10420 (exit $ac_status); } >/dev
/null
; then
10421 if test -s conftest.err
; then
10422 ac_cpp_err
=$ac_c_preproc_warn_flag
10429 if test -z "$ac_cpp_err"; then
10430 ac_cv_header_stdc
=yes
10432 echo "$as_me: failed program was:" >&5
10433 cat conftest.
$ac_ext >&5
10434 ac_cv_header_stdc
=no
10436 rm -f conftest.err conftest.
$ac_ext
10438 if test $ac_cv_header_stdc = yes; then
10439 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10440 cat >conftest.
$ac_ext <<_ACEOF
10441 #line 10441 "configure"
10442 #include "confdefs.h"
10443 #include <string.h>
10446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10447 egrep "memchr" >/dev
/null
2>&1; then
10450 ac_cv_header_stdc
=no
10456 if test $ac_cv_header_stdc = yes; then
10457 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10458 cat >conftest.
$ac_ext <<_ACEOF
10459 #line 10459 "configure"
10460 #include "confdefs.h"
10461 #include <stdlib.h>
10464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10465 egrep "free" >/dev
/null
2>&1; then
10468 ac_cv_header_stdc
=no
10474 if test $ac_cv_header_stdc = yes; then
10475 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10476 if test "$cross_compiling" = yes; then
10479 cat >conftest.
$ac_ext <<_ACEOF
10480 #line 10480 "configure"
10481 #include "confdefs.h"
10483 #if ((' ' & 0x0FF) == 0x020)
10484 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10485 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10487 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10488 || ('j' <= (c) && (c) <= 'r') \
10489 || ('s' <= (c) && (c) <= 'z'))
10490 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10493 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10498 for (i = 0; i < 256; i++)
10499 if (XOR (islower (i), ISLOWER (i))
10500 || toupper (i) != TOUPPER (i))
10505 rm -f conftest
$ac_exeext
10506 if { (eval echo "$as_me:10506: \"$ac_link\"") >&5
10507 (eval $ac_link) 2>&5
10509 echo "$as_me:10509: \$? = $ac_status" >&5
10510 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10511 { (eval echo "$as_me:10511: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10514 echo "$as_me:10514: \$? = $ac_status" >&5
10515 (exit $ac_status); }; }; then
10518 echo "$as_me: program exited with status $ac_status" >&5
10519 echo "$as_me: failed program was:" >&5
10520 cat conftest.
$ac_ext >&5
10521 ac_cv_header_stdc
=no
10523 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
10527 echo "$as_me:10527: result: $ac_cv_header_stdc" >&5
10528 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10529 if test $ac_cv_header_stdc = yes; then
10531 cat >>confdefs.h
<<\EOF
10532 #define STDC_HEADERS 1
10537 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10538 # for constant arguments. Useless!
10539 echo "$as_me:10539: checking for working alloca.h" >&5
10540 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10541 if test "${ac_cv_working_alloca_h+set}" = set; then
10542 echo $ECHO_N "(cached) $ECHO_C" >&6
10544 cat >conftest.
$ac_ext <<_ACEOF
10545 #line 10545 "configure"
10546 #include "confdefs.h"
10547 #include <alloca.h>
10551 char *p = (char *) alloca (2 * sizeof (int));
10556 rm -f conftest.
$ac_objext conftest
$ac_exeext
10557 if { (eval echo "$as_me:10557: \"$ac_link\"") >&5
10558 (eval $ac_link) 2>&5
10560 echo "$as_me:10560: \$? = $ac_status" >&5
10561 (exit $ac_status); } &&
10562 { ac_try
='test -s conftest$ac_exeext'
10563 { (eval echo "$as_me:10563: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10566 echo "$as_me:10566: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10568 ac_cv_working_alloca_h
=yes
10570 echo "$as_me: failed program was:" >&5
10571 cat conftest.
$ac_ext >&5
10572 ac_cv_working_alloca_h
=no
10574 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10576 echo "$as_me:10576: result: $ac_cv_working_alloca_h" >&5
10577 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10578 if test $ac_cv_working_alloca_h = yes; then
10580 cat >>confdefs.h
<<\EOF
10581 #define HAVE_ALLOCA_H 1
10586 echo "$as_me:10586: checking for alloca" >&5
10587 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10588 if test "${ac_cv_func_alloca_works+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10591 cat >conftest.
$ac_ext <<_ACEOF
10592 #line 10592 "configure"
10593 #include "confdefs.h"
10595 # define alloca __builtin_alloca
10598 # include <malloc.h>
10599 # define alloca _alloca
10602 # include <alloca.h>
10607 # ifndef alloca /* predefined by HP cc +Olibcalls */
10618 char *p = (char *) alloca (1);
10623 rm -f conftest.
$ac_objext conftest
$ac_exeext
10624 if { (eval echo "$as_me:10624: \"$ac_link\"") >&5
10625 (eval $ac_link) 2>&5
10627 echo "$as_me:10627: \$? = $ac_status" >&5
10628 (exit $ac_status); } &&
10629 { ac_try
='test -s conftest$ac_exeext'
10630 { (eval echo "$as_me:10630: \"$ac_try\"") >&5
10631 (eval $ac_try) 2>&5
10633 echo "$as_me:10633: \$? = $ac_status" >&5
10634 (exit $ac_status); }; }; then
10635 ac_cv_func_alloca_works
=yes
10637 echo "$as_me: failed program was:" >&5
10638 cat conftest.
$ac_ext >&5
10639 ac_cv_func_alloca_works
=no
10641 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10643 echo "$as_me:10643: result: $ac_cv_func_alloca_works" >&5
10644 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10646 if test $ac_cv_func_alloca_works = yes; then
10648 cat >>confdefs.h
<<\EOF
10649 #define HAVE_ALLOCA 1
10653 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10654 # that cause trouble. Some versions do not even contain alloca or
10655 # contain a buggy version. If you still want to use their alloca,
10656 # use ar to extract alloca.o from them instead of compiling alloca.c.
10658 ALLOCA
=alloca.
$ac_objext
10660 cat >>confdefs.h
<<\EOF
10664 echo "$as_me:10664: checking whether \`alloca.c' needs Cray hooks" >&5
10665 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10666 if test "${ac_cv_os_cray+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10669 cat >conftest.
$ac_ext <<_ACEOF
10670 #line 10670 "configure"
10671 #include "confdefs.h"
10672 #if defined(CRAY) && ! defined(CRAY2)
10679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10680 egrep "webecray" >/dev
/null
2>&1; then
10688 echo "$as_me:10688: result: $ac_cv_os_cray" >&5
10689 echo "${ECHO_T}$ac_cv_os_cray" >&6
10690 if test $ac_cv_os_cray = yes; then
10691 for ac_func
in _getb67 GETB67 getb67
; do
10692 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10693 echo "$as_me:10693: checking for $ac_func" >&5
10694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10695 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10698 cat >conftest.
$ac_ext <<_ACEOF
10699 #line 10699 "configure"
10700 #include "confdefs.h"
10701 /* System header to define __stub macros and hopefully few prototypes,
10702 which can conflict with char $ac_func (); below. */
10703 #include <assert.h>
10704 /* Override any gcc2 internal prototype to avoid an error. */
10708 /* We use char because int might match the return type of a gcc2
10709 builtin and then its argument prototype would still apply. */
10716 /* The GNU C library defines this for functions which it implements
10717 to always fail with ENOSYS. Some functions are actually named
10718 something starting with __ and the normal name is an alias. */
10719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10729 rm -f conftest.
$ac_objext conftest
$ac_exeext
10730 if { (eval echo "$as_me:10730: \"$ac_link\"") >&5
10731 (eval $ac_link) 2>&5
10733 echo "$as_me:10733: \$? = $ac_status" >&5
10734 (exit $ac_status); } &&
10735 { ac_try
='test -s conftest$ac_exeext'
10736 { (eval echo "$as_me:10736: \"$ac_try\"") >&5
10737 (eval $ac_try) 2>&5
10739 echo "$as_me:10739: \$? = $ac_status" >&5
10740 (exit $ac_status); }; }; then
10741 eval "$ac_ac_var=yes"
10743 echo "$as_me: failed program was:" >&5
10744 cat conftest.
$ac_ext >&5
10745 eval "$ac_ac_var=no"
10747 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10749 echo "$as_me:10749: result: `eval echo '${'$ac_ac_var'}'`" >&5
10750 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
10751 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10753 cat >>confdefs.h
<<EOF
10754 #define CRAY_STACKSEG_END $ac_func
10763 echo "$as_me:10763: checking stack direction for C alloca" >&5
10764 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10765 if test "${ac_cv_c_stack_direction+set}" = set; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 if test "$cross_compiling" = yes; then
10769 ac_cv_c_stack_direction
=0
10771 cat >conftest.
$ac_ext <<_ACEOF
10772 #line 10772 "configure"
10773 #include "confdefs.h"
10775 find_stack_direction ()
10777 static char *addr = 0;
10782 return find_stack_direction ();
10785 return (&dummy > addr) ? 1 : -1;
10791 exit (find_stack_direction () < 0);
10794 rm -f conftest
$ac_exeext
10795 if { (eval echo "$as_me:10795: \"$ac_link\"") >&5
10796 (eval $ac_link) 2>&5
10798 echo "$as_me:10798: \$? = $ac_status" >&5
10799 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10800 { (eval echo "$as_me:10800: \"$ac_try\"") >&5
10801 (eval $ac_try) 2>&5
10803 echo "$as_me:10803: \$? = $ac_status" >&5
10804 (exit $ac_status); }; }; then
10805 ac_cv_c_stack_direction
=1
10807 echo "$as_me: program exited with status $ac_status" >&5
10808 echo "$as_me: failed program was:" >&5
10809 cat conftest.
$ac_ext >&5
10810 ac_cv_c_stack_direction
=-1
10812 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
10815 echo "$as_me:10815: result: $ac_cv_c_stack_direction" >&5
10816 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10818 cat >>confdefs.h
<<EOF
10819 #define STACK_DIRECTION $ac_cv_c_stack_direction
10824 for ac_header
in sys
/time.h unistd.h
10826 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
10827 echo "$as_me:10827: checking for $ac_header" >&5
10828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10829 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10832 cat >conftest.
$ac_ext <<_ACEOF
10833 #line 10833 "configure"
10834 #include "confdefs.h"
10835 #include <$ac_header>
10837 if { (eval echo "$as_me:10837: \"$ac_cpp conftest.$ac_ext\"") >&5
10838 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10840 egrep -v '^ *\+' conftest.er1
>conftest.err
10842 cat conftest.err
>&5
10843 echo "$as_me:10843: \$? = $ac_status" >&5
10844 (exit $ac_status); } >/dev
/null
; then
10845 if test -s conftest.err
; then
10846 ac_cpp_err
=$ac_c_preproc_warn_flag
10853 if test -z "$ac_cpp_err"; then
10854 eval "$ac_ac_Header=yes"
10856 echo "$as_me: failed program was:" >&5
10857 cat conftest.
$ac_ext >&5
10858 eval "$ac_ac_Header=no"
10860 rm -f conftest.err conftest.
$ac_ext
10862 echo "$as_me:10862: result: `eval echo '${'$ac_ac_Header'}'`" >&5
10863 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
10864 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
10865 cat >>confdefs.h
<<EOF
10866 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10872 for ac_func
in alarm
10874 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10875 echo "$as_me:10875: checking for $ac_func" >&5
10876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10877 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 cat >conftest.
$ac_ext <<_ACEOF
10881 #line 10881 "configure"
10882 #include "confdefs.h"
10883 /* System header to define __stub macros and hopefully few prototypes,
10884 which can conflict with char $ac_func (); below. */
10885 #include <assert.h>
10886 /* Override any gcc2 internal prototype to avoid an error. */
10890 /* We use char because int might match the return type of a gcc2
10891 builtin and then its argument prototype would still apply. */
10898 /* The GNU C library defines this for functions which it implements
10899 to always fail with ENOSYS. Some functions are actually named
10900 something starting with __ and the normal name is an alias. */
10901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10911 rm -f conftest.
$ac_objext conftest
$ac_exeext
10912 if { (eval echo "$as_me:10912: \"$ac_link\"") >&5
10913 (eval $ac_link) 2>&5
10915 echo "$as_me:10915: \$? = $ac_status" >&5
10916 (exit $ac_status); } &&
10917 { ac_try
='test -s conftest$ac_exeext'
10918 { (eval echo "$as_me:10918: \"$ac_try\"") >&5
10919 (eval $ac_try) 2>&5
10921 echo "$as_me:10921: \$? = $ac_status" >&5
10922 (exit $ac_status); }; }; then
10923 eval "$ac_ac_var=yes"
10925 echo "$as_me: failed program was:" >&5
10926 cat conftest.
$ac_ext >&5
10927 eval "$ac_ac_var=no"
10929 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10931 echo "$as_me:10931: result: `eval echo '${'$ac_ac_var'}'`" >&5
10932 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
10933 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10934 cat >>confdefs.h
<<EOF
10935 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10941 echo "$as_me:10941: checking for working mktime" >&5
10942 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
10943 if test "${ac_cv_func_working_mktime+set}" = set; then
10944 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 if test "$cross_compiling" = yes; then
10947 ac_cv_func_working_mktime
=no
10949 cat >conftest.
$ac_ext <<_ACEOF
10950 #line 10950 "configure"
10951 #include "confdefs.h"
10952 /* Test program from Paul Eggert and Tony Leneis. */
10953 #if TIME_WITH_SYS_TIME
10954 # include <sys/time.h>
10957 # if HAVE_SYS_TIME_H
10958 # include <sys/time.h>
10965 # include <unistd.h>
10969 # define alarm(X) /* empty */
10972 /* Work around redefinition to rpl_putenv by other config tests. */
10975 static time_t time_t_max;
10977 /* Values we'll use to set the TZ environment variable. */
10978 static const char *const tz_strings[] = {
10979 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10980 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10982 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10984 /* Fail if mktime fails to convert a date in the spring-forward gap.
10985 Based on a problem report from Andreas Jaeger. */
10987 spring_forward_gap ()
10989 /* glibc (up to about 1998-10-07) failed this test. */
10992 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10993 instead of "TZ=America/Vancouver" in order to detect the bug even
10994 on systems that don't support the Olson extension, or don't have the
10995 full zoneinfo tables installed. */
10996 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11005 if (mktime (&tm) == (time_t)-1)
11014 if ((lt = localtime (&now)) && mktime (lt) != now)
11016 now = time_t_max - now;
11017 if ((lt = localtime (&now)) && mktime (lt) != now)
11024 /* Based on code from Ariel Faigon. */
11034 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11044 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11045 now = mktime (&tm);
11046 if (now != (time_t) -1)
11048 struct tm *lt = localtime (&now);
11050 && lt->tm_year == tm.tm_year
11051 && lt->tm_mon == tm.tm_mon
11052 && lt->tm_mday == tm.tm_mday
11053 && lt->tm_hour == tm.tm_hour
11054 && lt->tm_min == tm.tm_min
11055 && lt->tm_sec == tm.tm_sec
11056 && lt->tm_yday == tm.tm_yday
11057 && lt->tm_wday == tm.tm_wday
11058 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11059 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11070 /* This test makes some buggy mktime implementations loop.
11071 Give up after 60 seconds; a mktime slower than that
11072 isn't worth using anyway. */
11075 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11078 delta = time_t_max / 997; /* a suitable prime number */
11079 for (i = 0; i < N_STRINGS; i++)
11082 putenv (tz_strings[i]);
11084 for (t = 0; t <= time_t_max - delta; t += delta)
11086 mktime_test ((time_t) 60 * 60);
11087 mktime_test ((time_t) 60 * 60 * 24);
11089 for (j = 1; 0 < j; j *= 2)
11091 bigtime_test (j - 1);
11094 spring_forward_gap ();
11098 rm -f conftest
$ac_exeext
11099 if { (eval echo "$as_me:11099: \"$ac_link\"") >&5
11100 (eval $ac_link) 2>&5
11102 echo "$as_me:11102: \$? = $ac_status" >&5
11103 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11104 { (eval echo "$as_me:11104: \"$ac_try\"") >&5
11105 (eval $ac_try) 2>&5
11107 echo "$as_me:11107: \$? = $ac_status" >&5
11108 (exit $ac_status); }; }; then
11109 ac_cv_func_working_mktime
=yes
11111 echo "$as_me: program exited with status $ac_status" >&5
11112 echo "$as_me: failed program was:" >&5
11113 cat conftest.
$ac_ext >&5
11114 ac_cv_func_working_mktime
=no
11116 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
11119 echo "$as_me:11119: result: $ac_cv_func_working_mktime" >&5
11120 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11121 if test $ac_cv_func_working_mktime = no
; then
11122 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
11125 for ac_func
in localtime_r
11127 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11128 echo "$as_me:11128: checking for $ac_func" >&5
11129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11130 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11133 cat >conftest.
$ac_ext <<_ACEOF
11134 #line 11134 "configure"
11135 #include "confdefs.h"
11136 /* System header to define __stub macros and hopefully few prototypes,
11137 which can conflict with char $ac_func (); below. */
11138 #include <assert.h>
11139 /* Override any gcc2 internal prototype to avoid an error. */
11143 /* We use char because int might match the return type of a gcc2
11144 builtin and then its argument prototype would still apply. */
11151 /* The GNU C library defines this for functions which it implements
11152 to always fail with ENOSYS. Some functions are actually named
11153 something starting with __ and the normal name is an alias. */
11154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11164 rm -f conftest.
$ac_objext conftest
$ac_exeext
11165 if { (eval echo "$as_me:11165: \"$ac_link\"") >&5
11166 (eval $ac_link) 2>&5
11168 echo "$as_me:11168: \$? = $ac_status" >&5
11169 (exit $ac_status); } &&
11170 { ac_try
='test -s conftest$ac_exeext'
11171 { (eval echo "$as_me:11171: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11174 echo "$as_me:11174: \$? = $ac_status" >&5
11175 (exit $ac_status); }; }; then
11176 eval "$ac_ac_var=yes"
11178 echo "$as_me: failed program was:" >&5
11179 cat conftest.
$ac_ext >&5
11180 eval "$ac_ac_var=no"
11182 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11184 echo "$as_me:11184: result: `eval echo '${'$ac_ac_var'}'`" >&5
11185 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
11186 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11187 cat >>confdefs.h
<<EOF
11188 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11194 if test $ac_cv_func_working_mktime = no
; then
11196 cat >>confdefs.h
<<EOF
11197 #define mktime rpl_mktime
11202 echo "$as_me:11202: checking whether lstat accepts an empty string" >&5
11203 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
11204 if test "${jm_cv_func_lstat_empty_string_bug+set}" = set; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11207 if test "$cross_compiling" = yes; then
11208 jm_cv_func_lstat_empty_string_bug
=yes
11210 cat >conftest.
$ac_ext <<_ACEOF
11211 #line 11211 "configure"
11212 #include "confdefs.h"
11214 # include <sys/types.h>
11215 # include <sys/stat.h>
11221 exit (lstat ("", &sbuf) ? 1 : 0);
11225 rm -f conftest
$ac_exeext
11226 if { (eval echo "$as_me:11226: \"$ac_link\"") >&5
11227 (eval $ac_link) 2>&5
11229 echo "$as_me:11229: \$? = $ac_status" >&5
11230 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11231 { (eval echo "$as_me:11231: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11234 echo "$as_me:11234: \$? = $ac_status" >&5
11235 (exit $ac_status); }; }; then
11236 jm_cv_func_lstat_empty_string_bug
=yes
11238 echo "$as_me: program exited with status $ac_status" >&5
11239 echo "$as_me: failed program was:" >&5
11240 cat conftest.
$ac_ext >&5
11241 jm_cv_func_lstat_empty_string_bug
=no
11243 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
11247 echo "$as_me:11247: result: $jm_cv_func_lstat_empty_string_bug" >&5
11248 echo "${ECHO_T}$jm_cv_func_lstat_empty_string_bug" >&6
11249 if test $jm_cv_func_lstat_empty_string_bug = yes; then
11251 LIBOBJS
="$LIBOBJS lstat.$ac_objext"
11253 cat >>confdefs.h
<<EOF
11254 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11259 echo "$as_me:11259: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11260 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11261 if test "${jm_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 rm -f conftest.sym conftest.
file
11267 if ln -s conftest.
file conftest.sym
; then
11268 if test "$cross_compiling" = yes; then
11269 jm_cv_func_lstat_dereferences_slashed_symlink
=no
11272 cat >conftest.
$ac_ext <<_ACEOF
11273 #line 11273 "configure"
11274 #include "confdefs.h"
11276 # include <sys/types.h>
11277 # include <sys/stat.h>
11283 /* Linux will dereference the symlink and fail.
11284 That is better in the sense that it means we will not
11285 have to compile and use the lstat wrapper. */
11286 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11290 rm -f conftest
$ac_exeext
11291 if { (eval echo "$as_me:11291: \"$ac_link\"") >&5
11292 (eval $ac_link) 2>&5
11294 echo "$as_me:11294: \$? = $ac_status" >&5
11295 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11296 { (eval echo "$as_me:11296: \"$ac_try\"") >&5
11297 (eval $ac_try) 2>&5
11299 echo "$as_me:11299: \$? = $ac_status" >&5
11300 (exit $ac_status); }; }; then
11301 jm_cv_func_lstat_dereferences_slashed_symlink
=yes
11303 echo "$as_me: program exited with status $ac_status" >&5
11304 echo "$as_me: failed program was:" >&5
11305 cat conftest.
$ac_ext >&5
11306 jm_cv_func_lstat_dereferences_slashed_symlink
=no
11308 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
11311 # If the `ln -s' command failed, then we probably don't even
11312 # have an lstat function.
11313 jm_cv_func_lstat_dereferences_slashed_symlink
=no
11317 echo "$as_me:11317: result: $jm_cv_func_lstat_dereferences_slashed_symlink" >&5
11318 echo "${ECHO_T}$jm_cv_func_lstat_dereferences_slashed_symlink" >&6
11320 test $jm_cv_func_lstat_dereferences_slashed_symlink = yes \
11324 cat >>confdefs.h
<<EOF
11325 #define LSTAT_FOLLOWS_SLASHED_SYMLINK $zero_one
11328 if test $jm_cv_func_lstat_dereferences_slashed_symlink = no
; then
11330 # Append lstat.o if it's not already in $LIBOBJS.
11332 *lstat.
$ac_objext*) ;;
11333 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext" ;;
11337 echo "$as_me:11337: checking whether stat accepts an empty string" >&5
11338 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
11339 if test "${jm_cv_func_stat_empty_string_bug+set}" = set; then
11340 echo $ECHO_N "(cached) $ECHO_C" >&6
11342 if test "$cross_compiling" = yes; then
11343 jm_cv_func_stat_empty_string_bug
=yes
11345 cat >conftest.
$ac_ext <<_ACEOF
11346 #line 11346 "configure"
11347 #include "confdefs.h"
11349 # include <sys/types.h>
11350 # include <sys/stat.h>
11356 exit (stat ("", &sbuf) ? 1 : 0);
11360 rm -f conftest
$ac_exeext
11361 if { (eval echo "$as_me:11361: \"$ac_link\"") >&5
11362 (eval $ac_link) 2>&5
11364 echo "$as_me:11364: \$? = $ac_status" >&5
11365 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11366 { (eval echo "$as_me:11366: \"$ac_try\"") >&5
11367 (eval $ac_try) 2>&5
11369 echo "$as_me:11369: \$? = $ac_status" >&5
11370 (exit $ac_status); }; }; then
11371 jm_cv_func_stat_empty_string_bug
=yes
11373 echo "$as_me: program exited with status $ac_status" >&5
11374 echo "$as_me: failed program was:" >&5
11375 cat conftest.
$ac_ext >&5
11376 jm_cv_func_stat_empty_string_bug
=no
11378 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
11382 echo "$as_me:11382: result: $jm_cv_func_stat_empty_string_bug" >&5
11383 echo "${ECHO_T}$jm_cv_func_stat_empty_string_bug" >&6
11384 if test $jm_cv_func_stat_empty_string_bug = yes; then
11386 LIBOBJS
="$LIBOBJS stat.$ac_objext"
11388 cat >>confdefs.h
<<EOF
11389 #define HAVE_STAT_EMPTY_STRING_BUG 1
11394 cat >>confdefs.h
<<EOF
11395 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
11398 echo "$as_me:11398: checking for working realloc" >&5
11399 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
11400 if test "${jm_cv_func_working_realloc+set}" = set; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11403 if test "$cross_compiling" = yes; then
11404 jm_cv_func_working_realloc
=no
11406 cat >conftest.
$ac_ext <<_ACEOF
11407 #line 11407 "configure"
11408 #include "confdefs.h"
11414 exit (realloc (0, 0) ? 0 : 1);
11418 rm -f conftest
$ac_exeext
11419 if { (eval echo "$as_me:11419: \"$ac_link\"") >&5
11420 (eval $ac_link) 2>&5
11422 echo "$as_me:11422: \$? = $ac_status" >&5
11423 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11424 { (eval echo "$as_me:11424: \"$ac_try\"") >&5
11425 (eval $ac_try) 2>&5
11427 echo "$as_me:11427: \$? = $ac_status" >&5
11428 (exit $ac_status); }; }; then
11429 jm_cv_func_working_realloc
=yes
11431 echo "$as_me: program exited with status $ac_status" >&5
11432 echo "$as_me: failed program was:" >&5
11433 cat conftest.
$ac_ext >&5
11434 jm_cv_func_working_realloc
=no
11436 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
11440 echo "$as_me:11440: result: $jm_cv_func_working_realloc" >&5
11441 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
11442 if test $jm_cv_func_working_realloc = no
; then
11444 LIBOBJS
="$LIBOBJS realloc.$ac_objext"
11446 cat >>confdefs.h
<<EOF
11447 #define realloc rpl_realloc
11452 cat >>confdefs.h
<<EOF
11453 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
11456 echo "$as_me:11456: checking for working malloc" >&5
11457 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
11458 if test "${jm_cv_func_working_malloc+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 if test "$cross_compiling" = yes; then
11462 jm_cv_func_working_malloc
=no
11464 cat >conftest.
$ac_ext <<_ACEOF
11465 #line 11465 "configure"
11466 #include "confdefs.h"
11472 exit (malloc (0) ? 0 : 1);
11476 rm -f conftest
$ac_exeext
11477 if { (eval echo "$as_me:11477: \"$ac_link\"") >&5
11478 (eval $ac_link) 2>&5
11480 echo "$as_me:11480: \$? = $ac_status" >&5
11481 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11482 { (eval echo "$as_me:11482: \"$ac_try\"") >&5
11483 (eval $ac_try) 2>&5
11485 echo "$as_me:11485: \$? = $ac_status" >&5
11486 (exit $ac_status); }; }; then
11487 jm_cv_func_working_malloc
=yes
11489 echo "$as_me: program exited with status $ac_status" >&5
11490 echo "$as_me: failed program was:" >&5
11491 cat conftest.
$ac_ext >&5
11492 jm_cv_func_working_malloc
=no
11494 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
11498 echo "$as_me:11498: result: $jm_cv_func_working_malloc" >&5
11499 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
11500 if test $jm_cv_func_working_malloc = no
; then
11502 LIBOBJS
="$LIBOBJS malloc.$ac_objext"
11504 cat >>confdefs.h
<<EOF
11505 #define malloc rpl_malloc
11510 echo "$as_me:11510: checking whether strerror_r is declared" >&5
11511 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
11512 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11515 cat >conftest.
$ac_ext <<_ACEOF
11516 #line 11516 "configure"
11517 #include "confdefs.h"
11518 $ac_includes_default
11523 char *p = (char *) strerror_r;
11530 rm -f conftest.
$ac_objext
11531 if { (eval echo "$as_me:11531: \"$ac_compile\"") >&5
11532 (eval $ac_compile) 2>&5
11534 echo "$as_me:11534: \$? = $ac_status" >&5
11535 (exit $ac_status); } &&
11536 { ac_try
='test -s conftest.$ac_objext'
11537 { (eval echo "$as_me:11537: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11540 echo "$as_me:11540: \$? = $ac_status" >&5
11541 (exit $ac_status); }; }; then
11542 ac_cv_have_decl_strerror_r
=yes
11544 echo "$as_me: failed program was:" >&5
11545 cat conftest.
$ac_ext >&5
11546 ac_cv_have_decl_strerror_r
=no
11548 rm -f conftest.
$ac_objext conftest.
$ac_ext
11550 echo "$as_me:11550: result: $ac_cv_have_decl_strerror_r" >&5
11551 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
11552 if test $ac_cv_have_decl_strerror_r = yes; then
11554 cat >>confdefs.h
<<EOF
11555 #define HAVE_DECL_STRERROR_R 1
11559 cat >>confdefs.h
<<EOF
11560 #define HAVE_DECL_STRERROR_R 0
11565 for ac_func
in strerror_r
11567 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11568 echo "$as_me:11568: checking for $ac_func" >&5
11569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11570 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 cat >conftest.
$ac_ext <<_ACEOF
11574 #line 11574 "configure"
11575 #include "confdefs.h"
11576 /* System header to define __stub macros and hopefully few prototypes,
11577 which can conflict with char $ac_func (); below. */
11578 #include <assert.h>
11579 /* Override any gcc2 internal prototype to avoid an error. */
11583 /* We use char because int might match the return type of a gcc2
11584 builtin and then its argument prototype would still apply. */
11591 /* The GNU C library defines this for functions which it implements
11592 to always fail with ENOSYS. Some functions are actually named
11593 something starting with __ and the normal name is an alias. */
11594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11604 rm -f conftest.
$ac_objext conftest
$ac_exeext
11605 if { (eval echo "$as_me:11605: \"$ac_link\"") >&5
11606 (eval $ac_link) 2>&5
11608 echo "$as_me:11608: \$? = $ac_status" >&5
11609 (exit $ac_status); } &&
11610 { ac_try
='test -s conftest$ac_exeext'
11611 { (eval echo "$as_me:11611: \"$ac_try\"") >&5
11612 (eval $ac_try) 2>&5
11614 echo "$as_me:11614: \$? = $ac_status" >&5
11615 (exit $ac_status); }; }; then
11616 eval "$ac_ac_var=yes"
11618 echo "$as_me: failed program was:" >&5
11619 cat conftest.
$ac_ext >&5
11620 eval "$ac_ac_var=no"
11622 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11624 echo "$as_me:11624: result: `eval echo '${'$ac_ac_var'}'`" >&5
11625 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
11626 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11627 cat >>confdefs.h
<<EOF
11628 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11634 if test $ac_cv_func_strerror_r = yes; then
11636 for ac_header
in string.h
11638 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
11639 echo "$as_me:11639: checking for $ac_header" >&5
11640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11641 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
11642 echo $ECHO_N "(cached) $ECHO_C" >&6
11644 cat >conftest.
$ac_ext <<_ACEOF
11645 #line 11645 "configure"
11646 #include "confdefs.h"
11647 #include <$ac_header>
11649 if { (eval echo "$as_me:11649: \"$ac_cpp conftest.$ac_ext\"") >&5
11650 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11652 egrep -v '^ *\+' conftest.er1
>conftest.err
11654 cat conftest.err
>&5
11655 echo "$as_me:11655: \$? = $ac_status" >&5
11656 (exit $ac_status); } >/dev
/null
; then
11657 if test -s conftest.err
; then
11658 ac_cpp_err
=$ac_c_preproc_warn_flag
11665 if test -z "$ac_cpp_err"; then
11666 eval "$ac_ac_Header=yes"
11668 echo "$as_me: failed program was:" >&5
11669 cat conftest.
$ac_ext >&5
11670 eval "$ac_ac_Header=no"
11672 rm -f conftest.err conftest.
$ac_ext
11674 echo "$as_me:11674: result: `eval echo '${'$ac_ac_Header'}'`" >&5
11675 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
11676 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
11677 cat >>confdefs.h
<<EOF
11678 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
11684 echo "$as_me:11684: checking for working strerror_r" >&5
11685 echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6
11686 if test "${ac_cv_func_strerror_r_works+set}" = set; then
11687 echo $ECHO_N "(cached) $ECHO_C" >&6
11690 cat >conftest.
$ac_ext <<_ACEOF
11691 #line 11691 "configure"
11692 #include "confdefs.h"
11694 # include <stdio.h>
11696 # include <string.h>
11704 char x = *strerror_r (0, buf, sizeof buf);
11710 rm -f conftest.
$ac_objext
11711 if { (eval echo "$as_me:11711: \"$ac_compile\"") >&5
11712 (eval $ac_compile) 2>&5
11714 echo "$as_me:11714: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try
='test -s conftest.$ac_objext'
11717 { (eval echo "$as_me:11717: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11720 echo "$as_me:11720: \$? = $ac_status" >&5
11721 (exit $ac_status); }; }; then
11722 ac_cv_func_strerror_r_works
=yes
11724 echo "$as_me: failed program was:" >&5
11725 cat conftest.
$ac_ext >&5
11726 ac_cv_func_strerror_r_works
=no
11729 rm -f conftest.
$ac_objext conftest.
$ac_ext
11730 if test $ac_cv_func_strerror_r_works = no
; then
11731 # strerror_r seems not to work, but now we have to choose between
11732 # systems that have relatively inaccessible declarations for the
11733 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
11734 # former has a strerror_r that returns char*, while the latter
11735 # has a strerror_r that returns `int'.
11736 # This test should segfault on the DEC system.
11737 if test "$cross_compiling" = yes; then
11738 ac_cv_func_strerror_r_works
=no
11740 cat >conftest.
$ac_ext <<_ACEOF
11741 #line 11741 "configure"
11742 #include "confdefs.h"
11744 # include <stdio.h>
11745 # include <string.h>
11746 # include <ctype.h>
11748 extern char *strerror_r ();
11754 char x = *strerror_r (0, buf, sizeof buf);
11755 exit (!isalpha (x));
11759 rm -f conftest
$ac_exeext
11760 if { (eval echo "$as_me:11760: \"$ac_link\"") >&5
11761 (eval $ac_link) 2>&5
11763 echo "$as_me:11763: \$? = $ac_status" >&5
11764 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11765 { (eval echo "$as_me:11765: \"$ac_try\"") >&5
11766 (eval $ac_try) 2>&5
11768 echo "$as_me:11768: \$? = $ac_status" >&5
11769 (exit $ac_status); }; }; then
11770 ac_cv_func_strerror_r_works
=yes
11772 echo "$as_me: program exited with status $ac_status" >&5
11773 echo "$as_me: failed program was:" >&5
11774 cat conftest.
$ac_ext >&5
11775 ac_cv_func_strerror_r_works
=no
11777 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
11782 echo "$as_me:11782: result: $ac_cv_func_strerror_r_works" >&5
11783 echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6
11784 if test $ac_cv_func_strerror_r_works = yes; then
11786 cat >>confdefs.h
<<EOF
11787 #define HAVE_WORKING_STRERROR_R 1
11793 for ac_header
in string.h
11795 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
11796 echo "$as_me:11796: checking for $ac_header" >&5
11797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11798 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11801 cat >conftest.
$ac_ext <<_ACEOF
11802 #line 11802 "configure"
11803 #include "confdefs.h"
11804 #include <$ac_header>
11806 if { (eval echo "$as_me:11806: \"$ac_cpp conftest.$ac_ext\"") >&5
11807 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11809 egrep -v '^ *\+' conftest.er1
>conftest.err
11811 cat conftest.err
>&5
11812 echo "$as_me:11812: \$? = $ac_status" >&5
11813 (exit $ac_status); } >/dev
/null
; then
11814 if test -s conftest.err
; then
11815 ac_cpp_err
=$ac_c_preproc_warn_flag
11822 if test -z "$ac_cpp_err"; then
11823 eval "$ac_ac_Header=yes"
11825 echo "$as_me: failed program was:" >&5
11826 cat conftest.
$ac_ext >&5
11827 eval "$ac_ac_Header=no"
11829 rm -f conftest.err conftest.
$ac_ext
11831 echo "$as_me:11831: result: `eval echo '${'$ac_ac_Header'}'`" >&5
11832 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
11833 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
11834 cat >>confdefs.h
<<EOF
11835 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
11841 echo "$as_me:11841: checking for working readdir" >&5
11842 echo $ECHO_N "checking for working readdir... $ECHO_C" >&6
11843 if test "${jm_cv_func_working_readdir+set}" = set; then
11844 echo $ECHO_N "(cached) $ECHO_C" >&6
11846 # Arrange for deletion of the temporary directory this test creates, in
11847 # case the test itself fails to delete everything -- as happens on Sunos.
11848 ac_clean_files
="$ac_clean_files conf-dir"
11850 if test "$cross_compiling" = yes; then
11851 jm_cv_func_working_readdir
=no
11853 cat >conftest.
$ac_ext <<_ACEOF
11854 #line 11854 "configure"
11855 #include "confdefs.h"
11856 # include <stdio.h>
11857 # include <sys/types.h>
11859 # include <string.h>
11862 # ifdef HAVE_DIRENT_H
11863 # include <dirent.h>
11864 # define NLENGTH(direct) (strlen((direct)->d_name))
11865 # else /* not HAVE_DIRENT_H */
11866 # define dirent direct
11867 # define NLENGTH(direct) ((direct)->d_namlen)
11868 # ifdef HAVE_SYS_NDIR_H
11869 # include <sys/ndir.h>
11870 # endif /* HAVE_SYS_NDIR_H */
11871 # ifdef HAVE_SYS_DIR_H
11872 # include <sys/dir.h>
11873 # endif /* HAVE_SYS_DIR_H */
11874 # ifdef HAVE_NDIR_H
11876 # endif /* HAVE_NDIR_H */
11877 # endif /* HAVE_DIRENT_H */
11879 # define DOT_OR_DOTDOT(Basename) \
11880 (Basename[0] == '.' && (Basename[1] == '\0' \
11881 || (Basename[1] == '.' && Basename[2] == '\0')))
11884 create_300_file_dir (const char *dir)
11888 if (mkdir (dir, 0700))
11893 for (i = 0; i < 300; i++)
11898 sprintf (file_name, "%03d", i);
11899 out = fopen (file_name, "w");
11902 if (fclose (out) == EOF)
11911 remove_dir (const char *dir)
11918 dirp = opendir (".");
11924 struct dirent *dp = readdir (dirp);
11928 if (DOT_OR_DOTDOT (dp->d_name))
11931 if (unlink (dp->d_name))
11946 const char *dir = "conf-dir";
11947 create_300_file_dir (dir);
11952 rm -f conftest
$ac_exeext
11953 if { (eval echo "$as_me:11953: \"$ac_link\"") >&5
11954 (eval $ac_link) 2>&5
11956 echo "$as_me:11956: \$? = $ac_status" >&5
11957 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11958 { (eval echo "$as_me:11958: \"$ac_try\"") >&5
11959 (eval $ac_try) 2>&5
11961 echo "$as_me:11961: \$? = $ac_status" >&5
11962 (exit $ac_status); }; }; then
11963 jm_cv_func_working_readdir
=yes
11965 echo "$as_me: program exited with status $ac_status" >&5
11966 echo "$as_me: failed program was:" >&5
11967 cat conftest.
$ac_ext >&5
11968 jm_cv_func_working_readdir
=no
11970 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
11973 echo "$as_me:11973: result: $jm_cv_func_working_readdir" >&5
11974 echo "${ECHO_T}$jm_cv_func_working_readdir" >&6
11976 if test $jm_cv_func_working_readdir = yes; then
11978 cat >>confdefs.h
<<EOF
11979 #define HAVE_WORKING_READDIR 1
11984 echo "$as_me:11984: checking for working memcmp" >&5
11985 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
11986 if test "${jm_cv_func_memcmp_working+set}" = set; then
11987 echo $ECHO_N "(cached) $ECHO_C" >&6
11989 if test "$cross_compiling" = yes; then
11990 jm_cv_func_memcmp_working
=no
11992 cat >conftest.
$ac_ext <<_ACEOF
11993 #line 11993 "configure"
11994 #include "confdefs.h"
11998 /* Some versions of memcmp are not 8-bit clean. */
11999 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12000 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12003 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12004 or more and with at least one buffer not starting on a 4-byte boundary.
12005 William Lewis provided this test program. */
12010 for (i = 0; i < 4; i++)
12014 strcpy (a, "--------01111111");
12015 strcpy (b, "--------10000000");
12016 if (memcmp (a, b, 16) >= 0)
12023 rm -f conftest
$ac_exeext
12024 if { (eval echo "$as_me:12024: \"$ac_link\"") >&5
12025 (eval $ac_link) 2>&5
12027 echo "$as_me:12027: \$? = $ac_status" >&5
12028 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12029 { (eval echo "$as_me:12029: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12032 echo "$as_me:12032: \$? = $ac_status" >&5
12033 (exit $ac_status); }; }; then
12034 jm_cv_func_memcmp_working
=yes
12036 echo "$as_me: program exited with status $ac_status" >&5
12037 echo "$as_me: failed program was:" >&5
12038 cat conftest.
$ac_ext >&5
12039 jm_cv_func_memcmp_working
=no
12041 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
12044 echo "$as_me:12044: result: $jm_cv_func_memcmp_working" >&5
12045 echo "${ECHO_T}$jm_cv_func_memcmp_working" >&6
12046 test $jm_cv_func_memcmp_working = no \
12047 && LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
12049 if test $jm_cv_func_memcmp_working = no
; then
12051 cat >>confdefs.h
<<EOF
12052 #define memcmp rpl_memcmp
12057 # Kludge (not executed) to make autoheader do the right thing.
12058 if test a
= b
; then
12059 echo "$as_me:12059: checking whether clearerr_unlocked is declared" >&5
12060 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
12061 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12064 cat >conftest.
$ac_ext <<_ACEOF
12065 #line 12065 "configure"
12066 #include "confdefs.h"
12067 $ac_includes_default
12071 #ifndef clearerr_unlocked
12072 char *p = (char *) clearerr_unlocked;
12079 rm -f conftest.
$ac_objext
12080 if { (eval echo "$as_me:12080: \"$ac_compile\"") >&5
12081 (eval $ac_compile) 2>&5
12083 echo "$as_me:12083: \$? = $ac_status" >&5
12084 (exit $ac_status); } &&
12085 { ac_try
='test -s conftest.$ac_objext'
12086 { (eval echo "$as_me:12086: \"$ac_try\"") >&5
12087 (eval $ac_try) 2>&5
12089 echo "$as_me:12089: \$? = $ac_status" >&5
12090 (exit $ac_status); }; }; then
12091 ac_cv_have_decl_clearerr_unlocked
=yes
12093 echo "$as_me: failed program was:" >&5
12094 cat conftest.
$ac_ext >&5
12095 ac_cv_have_decl_clearerr_unlocked
=no
12097 rm -f conftest.
$ac_objext conftest.
$ac_ext
12099 echo "$as_me:12099: result: $ac_cv_have_decl_clearerr_unlocked" >&5
12100 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
12101 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
12103 cat >>confdefs.h
<<EOF
12104 #define HAVE_DECL_CLEARERR_UNLOCKED 1
12108 cat >>confdefs.h
<<EOF
12109 #define HAVE_DECL_CLEARERR_UNLOCKED 0
12113 echo "$as_me:12113: checking whether feof_unlocked is declared" >&5
12114 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
12115 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12116 echo $ECHO_N "(cached) $ECHO_C" >&6
12118 cat >conftest.
$ac_ext <<_ACEOF
12119 #line 12119 "configure"
12120 #include "confdefs.h"
12121 $ac_includes_default
12125 #ifndef feof_unlocked
12126 char *p = (char *) feof_unlocked;
12133 rm -f conftest.
$ac_objext
12134 if { (eval echo "$as_me:12134: \"$ac_compile\"") >&5
12135 (eval $ac_compile) 2>&5
12137 echo "$as_me:12137: \$? = $ac_status" >&5
12138 (exit $ac_status); } &&
12139 { ac_try
='test -s conftest.$ac_objext'
12140 { (eval echo "$as_me:12140: \"$ac_try\"") >&5
12141 (eval $ac_try) 2>&5
12143 echo "$as_me:12143: \$? = $ac_status" >&5
12144 (exit $ac_status); }; }; then
12145 ac_cv_have_decl_feof_unlocked
=yes
12147 echo "$as_me: failed program was:" >&5
12148 cat conftest.
$ac_ext >&5
12149 ac_cv_have_decl_feof_unlocked
=no
12151 rm -f conftest.
$ac_objext conftest.
$ac_ext
12153 echo "$as_me:12153: result: $ac_cv_have_decl_feof_unlocked" >&5
12154 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
12155 if test $ac_cv_have_decl_feof_unlocked = yes; then
12157 cat >>confdefs.h
<<EOF
12158 #define HAVE_DECL_FEOF_UNLOCKED 1
12162 cat >>confdefs.h
<<EOF
12163 #define HAVE_DECL_FEOF_UNLOCKED 0
12167 echo "$as_me:12167: checking whether ferror_unlocked is declared" >&5
12168 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
12169 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
12170 echo $ECHO_N "(cached) $ECHO_C" >&6
12172 cat >conftest.
$ac_ext <<_ACEOF
12173 #line 12173 "configure"
12174 #include "confdefs.h"
12175 $ac_includes_default
12179 #ifndef ferror_unlocked
12180 char *p = (char *) ferror_unlocked;
12187 rm -f conftest.
$ac_objext
12188 if { (eval echo "$as_me:12188: \"$ac_compile\"") >&5
12189 (eval $ac_compile) 2>&5
12191 echo "$as_me:12191: \$? = $ac_status" >&5
12192 (exit $ac_status); } &&
12193 { ac_try
='test -s conftest.$ac_objext'
12194 { (eval echo "$as_me:12194: \"$ac_try\"") >&5
12195 (eval $ac_try) 2>&5
12197 echo "$as_me:12197: \$? = $ac_status" >&5
12198 (exit $ac_status); }; }; then
12199 ac_cv_have_decl_ferror_unlocked
=yes
12201 echo "$as_me: failed program was:" >&5
12202 cat conftest.
$ac_ext >&5
12203 ac_cv_have_decl_ferror_unlocked
=no
12205 rm -f conftest.
$ac_objext conftest.
$ac_ext
12207 echo "$as_me:12207: result: $ac_cv_have_decl_ferror_unlocked" >&5
12208 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
12209 if test $ac_cv_have_decl_ferror_unlocked = yes; then
12211 cat >>confdefs.h
<<EOF
12212 #define HAVE_DECL_FERROR_UNLOCKED 1
12216 cat >>confdefs.h
<<EOF
12217 #define HAVE_DECL_FERROR_UNLOCKED 0
12221 echo "$as_me:12221: checking whether fflush_unlocked is declared" >&5
12222 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
12223 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12226 cat >conftest.
$ac_ext <<_ACEOF
12227 #line 12227 "configure"
12228 #include "confdefs.h"
12229 $ac_includes_default
12233 #ifndef fflush_unlocked
12234 char *p = (char *) fflush_unlocked;
12241 rm -f conftest.
$ac_objext
12242 if { (eval echo "$as_me:12242: \"$ac_compile\"") >&5
12243 (eval $ac_compile) 2>&5
12245 echo "$as_me:12245: \$? = $ac_status" >&5
12246 (exit $ac_status); } &&
12247 { ac_try
='test -s conftest.$ac_objext'
12248 { (eval echo "$as_me:12248: \"$ac_try\"") >&5
12249 (eval $ac_try) 2>&5
12251 echo "$as_me:12251: \$? = $ac_status" >&5
12252 (exit $ac_status); }; }; then
12253 ac_cv_have_decl_fflush_unlocked
=yes
12255 echo "$as_me: failed program was:" >&5
12256 cat conftest.
$ac_ext >&5
12257 ac_cv_have_decl_fflush_unlocked
=no
12259 rm -f conftest.
$ac_objext conftest.
$ac_ext
12261 echo "$as_me:12261: result: $ac_cv_have_decl_fflush_unlocked" >&5
12262 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
12263 if test $ac_cv_have_decl_fflush_unlocked = yes; then
12265 cat >>confdefs.h
<<EOF
12266 #define HAVE_DECL_FFLUSH_UNLOCKED 1
12270 cat >>confdefs.h
<<EOF
12271 #define HAVE_DECL_FFLUSH_UNLOCKED 0
12275 echo "$as_me:12275: checking whether fputc_unlocked is declared" >&5
12276 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
12277 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12280 cat >conftest.
$ac_ext <<_ACEOF
12281 #line 12281 "configure"
12282 #include "confdefs.h"
12283 $ac_includes_default
12287 #ifndef fputc_unlocked
12288 char *p = (char *) fputc_unlocked;
12295 rm -f conftest.
$ac_objext
12296 if { (eval echo "$as_me:12296: \"$ac_compile\"") >&5
12297 (eval $ac_compile) 2>&5
12299 echo "$as_me:12299: \$? = $ac_status" >&5
12300 (exit $ac_status); } &&
12301 { ac_try
='test -s conftest.$ac_objext'
12302 { (eval echo "$as_me:12302: \"$ac_try\"") >&5
12303 (eval $ac_try) 2>&5
12305 echo "$as_me:12305: \$? = $ac_status" >&5
12306 (exit $ac_status); }; }; then
12307 ac_cv_have_decl_fputc_unlocked
=yes
12309 echo "$as_me: failed program was:" >&5
12310 cat conftest.
$ac_ext >&5
12311 ac_cv_have_decl_fputc_unlocked
=no
12313 rm -f conftest.
$ac_objext conftest.
$ac_ext
12315 echo "$as_me:12315: result: $ac_cv_have_decl_fputc_unlocked" >&5
12316 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
12317 if test $ac_cv_have_decl_fputc_unlocked = yes; then
12319 cat >>confdefs.h
<<EOF
12320 #define HAVE_DECL_FPUTC_UNLOCKED 1
12324 cat >>confdefs.h
<<EOF
12325 #define HAVE_DECL_FPUTC_UNLOCKED 0
12329 echo "$as_me:12329: checking whether fread_unlocked is declared" >&5
12330 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
12331 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
12332 echo $ECHO_N "(cached) $ECHO_C" >&6
12334 cat >conftest.
$ac_ext <<_ACEOF
12335 #line 12335 "configure"
12336 #include "confdefs.h"
12337 $ac_includes_default
12341 #ifndef fread_unlocked
12342 char *p = (char *) fread_unlocked;
12349 rm -f conftest.
$ac_objext
12350 if { (eval echo "$as_me:12350: \"$ac_compile\"") >&5
12351 (eval $ac_compile) 2>&5
12353 echo "$as_me:12353: \$? = $ac_status" >&5
12354 (exit $ac_status); } &&
12355 { ac_try
='test -s conftest.$ac_objext'
12356 { (eval echo "$as_me:12356: \"$ac_try\"") >&5
12357 (eval $ac_try) 2>&5
12359 echo "$as_me:12359: \$? = $ac_status" >&5
12360 (exit $ac_status); }; }; then
12361 ac_cv_have_decl_fread_unlocked
=yes
12363 echo "$as_me: failed program was:" >&5
12364 cat conftest.
$ac_ext >&5
12365 ac_cv_have_decl_fread_unlocked
=no
12367 rm -f conftest.
$ac_objext conftest.
$ac_ext
12369 echo "$as_me:12369: result: $ac_cv_have_decl_fread_unlocked" >&5
12370 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
12371 if test $ac_cv_have_decl_fread_unlocked = yes; then
12373 cat >>confdefs.h
<<EOF
12374 #define HAVE_DECL_FREAD_UNLOCKED 1
12378 cat >>confdefs.h
<<EOF
12379 #define HAVE_DECL_FREAD_UNLOCKED 0
12383 echo "$as_me:12383: checking whether fwrite_unlocked is declared" >&5
12384 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
12385 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 cat >conftest.
$ac_ext <<_ACEOF
12389 #line 12389 "configure"
12390 #include "confdefs.h"
12391 $ac_includes_default
12395 #ifndef fwrite_unlocked
12396 char *p = (char *) fwrite_unlocked;
12403 rm -f conftest.
$ac_objext
12404 if { (eval echo "$as_me:12404: \"$ac_compile\"") >&5
12405 (eval $ac_compile) 2>&5
12407 echo "$as_me:12407: \$? = $ac_status" >&5
12408 (exit $ac_status); } &&
12409 { ac_try
='test -s conftest.$ac_objext'
12410 { (eval echo "$as_me:12410: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12413 echo "$as_me:12413: \$? = $ac_status" >&5
12414 (exit $ac_status); }; }; then
12415 ac_cv_have_decl_fwrite_unlocked
=yes
12417 echo "$as_me: failed program was:" >&5
12418 cat conftest.
$ac_ext >&5
12419 ac_cv_have_decl_fwrite_unlocked
=no
12421 rm -f conftest.
$ac_objext conftest.
$ac_ext
12423 echo "$as_me:12423: result: $ac_cv_have_decl_fwrite_unlocked" >&5
12424 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
12425 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
12427 cat >>confdefs.h
<<EOF
12428 #define HAVE_DECL_FWRITE_UNLOCKED 1
12432 cat >>confdefs.h
<<EOF
12433 #define HAVE_DECL_FWRITE_UNLOCKED 0
12437 echo "$as_me:12437: checking whether getc_unlocked is declared" >&5
12438 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
12439 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12442 cat >conftest.
$ac_ext <<_ACEOF
12443 #line 12443 "configure"
12444 #include "confdefs.h"
12445 $ac_includes_default
12449 #ifndef getc_unlocked
12450 char *p = (char *) getc_unlocked;
12457 rm -f conftest.
$ac_objext
12458 if { (eval echo "$as_me:12458: \"$ac_compile\"") >&5
12459 (eval $ac_compile) 2>&5
12461 echo "$as_me:12461: \$? = $ac_status" >&5
12462 (exit $ac_status); } &&
12463 { ac_try
='test -s conftest.$ac_objext'
12464 { (eval echo "$as_me:12464: \"$ac_try\"") >&5
12465 (eval $ac_try) 2>&5
12467 echo "$as_me:12467: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12469 ac_cv_have_decl_getc_unlocked
=yes
12471 echo "$as_me: failed program was:" >&5
12472 cat conftest.
$ac_ext >&5
12473 ac_cv_have_decl_getc_unlocked
=no
12475 rm -f conftest.
$ac_objext conftest.
$ac_ext
12477 echo "$as_me:12477: result: $ac_cv_have_decl_getc_unlocked" >&5
12478 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
12479 if test $ac_cv_have_decl_getc_unlocked = yes; then
12481 cat >>confdefs.h
<<EOF
12482 #define HAVE_DECL_GETC_UNLOCKED 1
12486 cat >>confdefs.h
<<EOF
12487 #define HAVE_DECL_GETC_UNLOCKED 0
12491 echo "$as_me:12491: checking whether getchar_unlocked is declared" >&5
12492 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
12493 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12496 cat >conftest.
$ac_ext <<_ACEOF
12497 #line 12497 "configure"
12498 #include "confdefs.h"
12499 $ac_includes_default
12503 #ifndef getchar_unlocked
12504 char *p = (char *) getchar_unlocked;
12511 rm -f conftest.
$ac_objext
12512 if { (eval echo "$as_me:12512: \"$ac_compile\"") >&5
12513 (eval $ac_compile) 2>&5
12515 echo "$as_me:12515: \$? = $ac_status" >&5
12516 (exit $ac_status); } &&
12517 { ac_try
='test -s conftest.$ac_objext'
12518 { (eval echo "$as_me:12518: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12521 echo "$as_me:12521: \$? = $ac_status" >&5
12522 (exit $ac_status); }; }; then
12523 ac_cv_have_decl_getchar_unlocked
=yes
12525 echo "$as_me: failed program was:" >&5
12526 cat conftest.
$ac_ext >&5
12527 ac_cv_have_decl_getchar_unlocked
=no
12529 rm -f conftest.
$ac_objext conftest.
$ac_ext
12531 echo "$as_me:12531: result: $ac_cv_have_decl_getchar_unlocked" >&5
12532 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
12533 if test $ac_cv_have_decl_getchar_unlocked = yes; then
12535 cat >>confdefs.h
<<EOF
12536 #define HAVE_DECL_GETCHAR_UNLOCKED 1
12540 cat >>confdefs.h
<<EOF
12541 #define HAVE_DECL_GETCHAR_UNLOCKED 0
12545 echo "$as_me:12545: checking whether putc_unlocked is declared" >&5
12546 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
12547 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
12548 echo $ECHO_N "(cached) $ECHO_C" >&6
12550 cat >conftest.
$ac_ext <<_ACEOF
12551 #line 12551 "configure"
12552 #include "confdefs.h"
12553 $ac_includes_default
12557 #ifndef putc_unlocked
12558 char *p = (char *) putc_unlocked;
12565 rm -f conftest.
$ac_objext
12566 if { (eval echo "$as_me:12566: \"$ac_compile\"") >&5
12567 (eval $ac_compile) 2>&5
12569 echo "$as_me:12569: \$? = $ac_status" >&5
12570 (exit $ac_status); } &&
12571 { ac_try
='test -s conftest.$ac_objext'
12572 { (eval echo "$as_me:12572: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12575 echo "$as_me:12575: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
12577 ac_cv_have_decl_putc_unlocked
=yes
12579 echo "$as_me: failed program was:" >&5
12580 cat conftest.
$ac_ext >&5
12581 ac_cv_have_decl_putc_unlocked
=no
12583 rm -f conftest.
$ac_objext conftest.
$ac_ext
12585 echo "$as_me:12585: result: $ac_cv_have_decl_putc_unlocked" >&5
12586 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
12587 if test $ac_cv_have_decl_putc_unlocked = yes; then
12589 cat >>confdefs.h
<<EOF
12590 #define HAVE_DECL_PUTC_UNLOCKED 1
12594 cat >>confdefs.h
<<EOF
12595 #define HAVE_DECL_PUTC_UNLOCKED 0
12599 echo "$as_me:12599: checking whether putchar_unlocked is declared" >&5
12600 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
12601 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12604 cat >conftest.
$ac_ext <<_ACEOF
12605 #line 12605 "configure"
12606 #include "confdefs.h"
12607 $ac_includes_default
12611 #ifndef putchar_unlocked
12612 char *p = (char *) putchar_unlocked;
12619 rm -f conftest.
$ac_objext
12620 if { (eval echo "$as_me:12620: \"$ac_compile\"") >&5
12621 (eval $ac_compile) 2>&5
12623 echo "$as_me:12623: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try
='test -s conftest.$ac_objext'
12626 { (eval echo "$as_me:12626: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12629 echo "$as_me:12629: \$? = $ac_status" >&5
12630 (exit $ac_status); }; }; then
12631 ac_cv_have_decl_putchar_unlocked
=yes
12633 echo "$as_me: failed program was:" >&5
12634 cat conftest.
$ac_ext >&5
12635 ac_cv_have_decl_putchar_unlocked
=no
12637 rm -f conftest.
$ac_objext conftest.
$ac_ext
12639 echo "$as_me:12639: result: $ac_cv_have_decl_putchar_unlocked" >&5
12640 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
12641 if test $ac_cv_have_decl_putchar_unlocked = yes; then
12643 cat >>confdefs.h
<<EOF
12644 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
12648 cat >>confdefs.h
<<EOF
12649 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
12656 io_functions
='clearerr_unlocked feof_unlocked ferror_unlocked
12657 fflush_unlocked fputc_unlocked fread_unlocked fwrite_unlocked
12658 getc_unlocked getchar_unlocked putc_unlocked putchar_unlocked'
12659 for jm_io_func
in $io_functions; do
12660 # Check for the existence of each function only if its declared.
12661 # Otherwise, we'd get the Solaris5.5.1 functions that are not
12662 # declared, and that have been removed from Solaris5.6. The resulting
12663 # 5.5.1 binaries would not run on 5.6 due to shared library differences.
12664 ac_ac_Symbol
=`echo "ac_cv_have_decl_$jm_io_func" | $ac_tr_sh`
12665 echo "$as_me:12665: checking whether $jm_io_func is declared" >&5
12666 echo $ECHO_N "checking whether $jm_io_func is declared... $ECHO_C" >&6
12667 if eval "test \"\${$ac_ac_Symbol+set}\" = set"; then
12668 echo $ECHO_N "(cached) $ECHO_C" >&6
12670 cat >conftest.
$ac_ext <<_ACEOF
12671 #line 12671 "configure"
12672 #include "confdefs.h"
12678 #ifndef $jm_io_func
12679 char *p = (char *) $jm_io_func;
12686 rm -f conftest.
$ac_objext
12687 if { (eval echo "$as_me:12687: \"$ac_compile\"") >&5
12688 (eval $ac_compile) 2>&5
12690 echo "$as_me:12690: \$? = $ac_status" >&5
12691 (exit $ac_status); } &&
12692 { ac_try
='test -s conftest.$ac_objext'
12693 { (eval echo "$as_me:12693: \"$ac_try\"") >&5
12694 (eval $ac_try) 2>&5
12696 echo "$as_me:12696: \$? = $ac_status" >&5
12697 (exit $ac_status); }; }; then
12698 eval "$ac_ac_Symbol=yes"
12700 echo "$as_me: failed program was:" >&5
12701 cat conftest.
$ac_ext >&5
12702 eval "$ac_ac_Symbol=no"
12704 rm -f conftest.
$ac_objext conftest.
$ac_ext
12706 echo "$as_me:12706: result: `eval echo '${'$ac_ac_Symbol'}'`" >&5
12707 echo "${ECHO_T}`eval echo '${'$ac_ac_Symbol'}'`" >&6
12708 if test `eval echo '${'$ac_ac_Symbol'}'` = yes; then
12710 cat >>confdefs.h
<<EOF
12711 #define `echo "HAVE_DECL_$jm_io_func" | $ac_tr_cpp` 1
12716 cat >>confdefs.h
<<EOF
12717 #define `echo "HAVE_DECL_$jm_io_func" | $ac_tr_cpp` 0
12723 if test $jm_declared = yes; then
12725 for ac_func
in $jm_io_func
12727 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12728 echo "$as_me:12728: checking for $ac_func" >&5
12729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12730 if eval "test \"\${$ac_ac_var+set}\" = set"; then
12731 echo $ECHO_N "(cached) $ECHO_C" >&6
12733 cat >conftest.
$ac_ext <<_ACEOF
12734 #line 12734 "configure"
12735 #include "confdefs.h"
12736 /* System header to define __stub macros and hopefully few prototypes,
12737 which can conflict with char $ac_func (); below. */
12738 #include <assert.h>
12739 /* Override any gcc2 internal prototype to avoid an error. */
12743 /* We use char because int might match the return type of a gcc2
12744 builtin and then its argument prototype would still apply. */
12751 /* The GNU C library defines this for functions which it implements
12752 to always fail with ENOSYS. Some functions are actually named
12753 something starting with __ and the normal name is an alias. */
12754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12764 rm -f conftest.
$ac_objext conftest
$ac_exeext
12765 if { (eval echo "$as_me:12765: \"$ac_link\"") >&5
12766 (eval $ac_link) 2>&5
12768 echo "$as_me:12768: \$? = $ac_status" >&5
12769 (exit $ac_status); } &&
12770 { ac_try
='test -s conftest$ac_exeext'
12771 { (eval echo "$as_me:12771: \"$ac_try\"") >&5
12772 (eval $ac_try) 2>&5
12774 echo "$as_me:12774: \$? = $ac_status" >&5
12775 (exit $ac_status); }; }; then
12776 eval "$ac_ac_var=yes"
12778 echo "$as_me: failed program was:" >&5
12779 cat conftest.
$ac_ext >&5
12780 eval "$ac_ac_var=no"
12782 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12784 echo "$as_me:12784: result: `eval echo '${'$ac_ac_var'}'`" >&5
12785 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
12786 if test `eval echo '${'$ac_ac_var'}'` = yes; then
12787 cat >>confdefs.h
<<EOF
12788 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
12797 echo "$as_me:12797: checking whether we are using the GNU C Library" >&5
12798 echo $ECHO_N "checking whether we are using the GNU C Library... $ECHO_C" >&6
12799 if test "${ac_cv_gnu_library+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 cat >conftest.
$ac_ext <<_ACEOF
12803 #line 12803 "configure"
12804 #include "confdefs.h"
12806 #include <features.h>
12807 #ifdef __GNU_LIBRARY__
12808 Thanks for using GNU
12812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12813 egrep "Thanks for using GNU" >/dev
/null
2>&1; then
12814 ac_cv_gnu_library
=yes
12816 ac_cv_gnu_library
=no
12821 echo "$as_me:12821: result: $ac_cv_gnu_library" >&5
12822 echo "${ECHO_T}$ac_cv_gnu_library" >&6
12823 echo "$as_me:12823: checking for version 2 of the GNU C Library" >&5
12824 echo $ECHO_N "checking for version 2 of the GNU C Library... $ECHO_C" >&6
12825 if test "${ac_cv_glibc+set}" = set; then
12826 echo $ECHO_N "(cached) $ECHO_C" >&6
12828 cat >conftest.
$ac_ext <<_ACEOF
12829 #line 12829 "configure"
12830 #include "confdefs.h"
12832 #include <features.h>
12834 Thanks for using GNU too
12838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12839 egrep "Thanks for using GNU too" >/dev
/null
2>&1; then
12847 echo "$as_me:12847: result: $ac_cv_glibc" >&5
12848 echo "${ECHO_T}$ac_cv_glibc" >&6
12850 for ac_header
in fnmatch.h
12852 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
12853 echo "$as_me:12853: checking for $ac_header" >&5
12854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12855 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
12856 echo $ECHO_N "(cached) $ECHO_C" >&6
12858 cat >conftest.
$ac_ext <<_ACEOF
12859 #line 12859 "configure"
12860 #include "confdefs.h"
12861 #include <$ac_header>
12863 if { (eval echo "$as_me:12863: \"$ac_cpp conftest.$ac_ext\"") >&5
12864 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12866 egrep -v '^ *\+' conftest.er1
>conftest.err
12868 cat conftest.err
>&5
12869 echo "$as_me:12869: \$? = $ac_status" >&5
12870 (exit $ac_status); } >/dev
/null
; then
12871 if test -s conftest.err
; then
12872 ac_cpp_err
=$ac_c_preproc_warn_flag
12879 if test -z "$ac_cpp_err"; then
12880 eval "$ac_ac_Header=yes"
12882 echo "$as_me: failed program was:" >&5
12883 cat conftest.
$ac_ext >&5
12884 eval "$ac_ac_Header=no"
12886 rm -f conftest.err conftest.
$ac_ext
12888 echo "$as_me:12888: result: `eval echo '${'$ac_ac_Header'}'`" >&5
12889 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
12890 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
12891 cat >>confdefs.h
<<EOF
12892 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
12898 echo "$as_me:12898: checking for working fnmatch with case folding" >&5
12899 echo $ECHO_N "checking for working fnmatch with case folding... $ECHO_C" >&6
12900 if test "${ac_cv_func_fnmatch_works+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12903 # Some versions of Solaris or SCO have a broken fnmatch function.
12904 # So we run a test program. If we are cross-compiling, take no chance.
12905 # Also want FNM_CASEFOLD
12906 # Thanks to John Oleynick and Franc,ois Pinard for this test.
12907 if test "$cross_compiling" = yes; then
12908 ac_cv_func_fnmatch_works
=no
12910 cat >conftest.
$ac_ext <<_ACEOF
12911 #line 12911 "configure"
12912 #include "confdefs.h"
12914 #define _GNU_SOURCE
12916 # include <fnmatch.h>
12922 exit (fnmatch ("A*", "abc", FNM_CASEFOLD) != 0);
12925 rm -f conftest
$ac_exeext
12926 if { (eval echo "$as_me:12926: \"$ac_link\"") >&5
12927 (eval $ac_link) 2>&5
12929 echo "$as_me:12929: \$? = $ac_status" >&5
12930 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12931 { (eval echo "$as_me:12931: \"$ac_try\"") >&5
12932 (eval $ac_try) 2>&5
12934 echo "$as_me:12934: \$? = $ac_status" >&5
12935 (exit $ac_status); }; }; then
12936 ac_cv_func_fnmatch_works
=yes
12938 echo "$as_me: program exited with status $ac_status" >&5
12939 echo "$as_me: failed program was:" >&5
12940 cat conftest.
$ac_ext >&5
12941 ac_cv_func_fnmatch_works
=no
12943 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
12946 echo "$as_me:12946: result: $ac_cv_func_fnmatch_works" >&5
12947 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
12948 if test $ac_cv_func_fnmatch_works = yes; then
12950 cat >>confdefs.h
<<\EOF
12951 #define HAVE_FNMATCH 1
12956 if test $ac_cv_func_fnmatch_works = no \
12957 && test $ac_cv_gnu_library = no
; then
12959 LIBOBJS
="$LIBOBJS fnmatch.$ac_objext"
12961 cat >>confdefs.h
<<EOF
12962 #define fnmatch rpl_fnmatch
12967 echo "$as_me:12967: checking for AFS" >&5
12968 echo $ECHO_N "checking for AFS... $ECHO_C" >&6
12969 if test -d /afs
; then
12971 cat >>confdefs.h
<<\EOF
12979 echo "$as_me:12979: result: $ac_result" >&5
12980 echo "${ECHO_T}$ac_result" >&6
12982 for ac_header
in stdlib.h
12984 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
12985 echo "$as_me:12985: checking for $ac_header" >&5
12986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12987 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
12988 echo $ECHO_N "(cached) $ECHO_C" >&6
12990 cat >conftest.
$ac_ext <<_ACEOF
12991 #line 12991 "configure"
12992 #include "confdefs.h"
12993 #include <$ac_header>
12995 if { (eval echo "$as_me:12995: \"$ac_cpp conftest.$ac_ext\"") >&5
12996 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12998 egrep -v '^ *\+' conftest.er1
>conftest.err
13000 cat conftest.err
>&5
13001 echo "$as_me:13001: \$? = $ac_status" >&5
13002 (exit $ac_status); } >/dev
/null
; then
13003 if test -s conftest.err
; then
13004 ac_cpp_err
=$ac_c_preproc_warn_flag
13011 if test -z "$ac_cpp_err"; then
13012 eval "$ac_ac_Header=yes"
13014 echo "$as_me: failed program was:" >&5
13015 cat conftest.
$ac_ext >&5
13016 eval "$ac_ac_Header=no"
13018 rm -f conftest.err conftest.
$ac_ext
13020 echo "$as_me:13020: result: `eval echo '${'$ac_ac_Header'}'`" >&5
13021 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
13022 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
13023 cat >>confdefs.h
<<EOF
13024 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
13030 echo "$as_me:13030: checking whether <inttypes.h> defines strtoumax as a macro" >&5
13031 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6
13032 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13035 cat >conftest.
$ac_ext <<_ACEOF
13036 #line 13036 "configure"
13037 #include "confdefs.h"
13038 #include <inttypes.h>
13040 inttypes_h_defines_strtoumax
13043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13044 egrep "inttypes_h_defines_strtoumax" >/dev
/null
2>&1; then
13045 jm_cv_func_strtoumax_macro
=yes
13047 jm_cv_func_strtoumax_macro
=no
13052 echo "$as_me:13052: result: $jm_cv_func_strtoumax_macro" >&5
13053 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6
13055 if test "$jm_cv_func_strtoumax_macro" != yes; then
13057 for ac_func
in strtoumax
13059 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13060 echo "$as_me:13060: checking for $ac_func" >&5
13061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13062 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13065 cat >conftest.
$ac_ext <<_ACEOF
13066 #line 13066 "configure"
13067 #include "confdefs.h"
13068 /* System header to define __stub macros and hopefully few prototypes,
13069 which can conflict with char $ac_func (); below. */
13070 #include <assert.h>
13071 /* Override any gcc2 internal prototype to avoid an error. */
13075 /* We use char because int might match the return type of a gcc2
13076 builtin and then its argument prototype would still apply. */
13083 /* The GNU C library defines this for functions which it implements
13084 to always fail with ENOSYS. Some functions are actually named
13085 something starting with __ and the normal name is an alias. */
13086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13096 rm -f conftest.
$ac_objext conftest
$ac_exeext
13097 if { (eval echo "$as_me:13097: \"$ac_link\"") >&5
13098 (eval $ac_link) 2>&5
13100 echo "$as_me:13100: \$? = $ac_status" >&5
13101 (exit $ac_status); } &&
13102 { ac_try
='test -s conftest$ac_exeext'
13103 { (eval echo "$as_me:13103: \"$ac_try\"") >&5
13104 (eval $ac_try) 2>&5
13106 echo "$as_me:13106: \$? = $ac_status" >&5
13107 (exit $ac_status); }; }; then
13108 eval "$ac_ac_var=yes"
13110 echo "$as_me: failed program was:" >&5
13111 cat conftest.
$ac_ext >&5
13112 eval "$ac_ac_var=no"
13114 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13116 echo "$as_me:13116: result: `eval echo '${'$ac_ac_var'}'`" >&5
13117 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13118 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13119 cat >>confdefs.h
<<EOF
13120 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13124 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
13130 case "$ac_cv_type_unsigned_long_long,$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in
13133 for ac_func
in strtoull
13135 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13136 echo "$as_me:13136: checking for $ac_func" >&5
13137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13138 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13139 echo $ECHO_N "(cached) $ECHO_C" >&6
13141 cat >conftest.
$ac_ext <<_ACEOF
13142 #line 13142 "configure"
13143 #include "confdefs.h"
13144 /* System header to define __stub macros and hopefully few prototypes,
13145 which can conflict with char $ac_func (); below. */
13146 #include <assert.h>
13147 /* Override any gcc2 internal prototype to avoid an error. */
13151 /* We use char because int might match the return type of a gcc2
13152 builtin and then its argument prototype would still apply. */
13159 /* The GNU C library defines this for functions which it implements
13160 to always fail with ENOSYS. Some functions are actually named
13161 something starting with __ and the normal name is an alias. */
13162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13172 rm -f conftest.
$ac_objext conftest
$ac_exeext
13173 if { (eval echo "$as_me:13173: \"$ac_link\"") >&5
13174 (eval $ac_link) 2>&5
13176 echo "$as_me:13176: \$? = $ac_status" >&5
13177 (exit $ac_status); } &&
13178 { ac_try
='test -s conftest$ac_exeext'
13179 { (eval echo "$as_me:13179: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13182 echo "$as_me:13182: \$? = $ac_status" >&5
13183 (exit $ac_status); }; }; then
13184 eval "$ac_ac_var=yes"
13186 echo "$as_me: failed program was:" >&5
13187 cat conftest.
$ac_ext >&5
13188 eval "$ac_ac_var=no"
13190 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13192 echo "$as_me:13192: result: `eval echo '${'$ac_ac_var'}'`" >&5
13193 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13194 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13195 cat >>confdefs.h
<<EOF
13196 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13200 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
13207 echo "$as_me:13207: checking whether link(2) follows symlinks" >&5
13208 echo $ECHO_N "checking whether link(2) follows symlinks... $ECHO_C" >&6
13209 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
13210 echo $ECHO_N "(cached) $ECHO_C" >&6
13213 test -z "$ac_cv_header_unistd_h" \
13215 for ac_header
in unistd.h
13217 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
13218 echo "$as_me:13218: checking for $ac_header" >&5
13219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13220 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13223 cat >conftest.
$ac_ext <<_ACEOF
13224 #line 13224 "configure"
13225 #include "confdefs.h"
13226 #include <$ac_header>
13228 if { (eval echo "$as_me:13228: \"$ac_cpp conftest.$ac_ext\"") >&5
13229 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13231 egrep -v '^ *\+' conftest.er1
>conftest.err
13233 cat conftest.err
>&5
13234 echo "$as_me:13234: \$? = $ac_status" >&5
13235 (exit $ac_status); } >/dev
/null
; then
13236 if test -s conftest.err
; then
13237 ac_cpp_err
=$ac_c_preproc_warn_flag
13244 if test -z "$ac_cpp_err"; then
13245 eval "$ac_ac_Header=yes"
13247 echo "$as_me: failed program was:" >&5
13248 cat conftest.
$ac_ext >&5
13249 eval "$ac_ac_Header=no"
13251 rm -f conftest.err conftest.
$ac_ext
13253 echo "$as_me:13253: result: `eval echo '${'$ac_ac_Header'}'`" >&5
13254 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
13255 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
13256 cat >>confdefs.h
<<EOF
13257 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
13263 # Create a regular file.
13264 echo > conftest.
file
13265 if test "$cross_compiling" = yes; then
13266 jm_ac_cv_func_link_follows_symlink
=yes
13268 cat >conftest.
$ac_ext <<_ACEOF
13269 #line 13269 "configure"
13270 #include "confdefs.h"
13272 # include <sys/types.h>
13273 # include <sys/stat.h>
13274 # ifdef HAVE_UNISTD_H
13275 # include <unistd.h>
13278 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
13279 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
13280 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
13285 const char *file = "conftest.file";
13286 const char *sym = "conftest.sym";
13287 const char *hard = "conftest.hard";
13288 struct stat sb_file, sb_hard;
13290 /* Create a symlink to the regular file. */
13291 if (symlink (file, sym))
13294 /* Create a hard link to that symlink. */
13295 if (link (sym, hard))
13298 if (lstat (hard, &sb_hard))
13300 if (lstat (file, &sb_file))
13303 /* If the dev/inode of hard and file are the same, then
13304 the link call followed the symlink. */
13305 return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
13309 rm -f conftest
$ac_exeext
13310 if { (eval echo "$as_me:13310: \"$ac_link\"") >&5
13311 (eval $ac_link) 2>&5
13313 echo "$as_me:13313: \$? = $ac_status" >&5
13314 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13315 { (eval echo "$as_me:13315: \"$ac_try\"") >&5
13316 (eval $ac_try) 2>&5
13318 echo "$as_me:13318: \$? = $ac_status" >&5
13319 (exit $ac_status); }; }; then
13320 jm_ac_cv_func_link_follows_symlink
=yes
13322 echo "$as_me: program exited with status $ac_status" >&5
13323 echo "$as_me: failed program was:" >&5
13324 cat conftest.
$ac_ext >&5
13325 jm_ac_cv_func_link_follows_symlink
=no
13327 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
13331 echo "$as_me:13331: result: $jm_ac_cv_func_link_follows_symlink" >&5
13332 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6
13333 if test $jm_ac_cv_func_link_follows_symlink = yes; then
13335 cat >>confdefs.h
<<\EOF
13336 #define LINK_FOLLOWS_SYMLINKS 1
13341 echo "$as_me:13341: checking for error_at_line" >&5
13342 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
13343 if test "${am_cv_lib_error_at_line+set}" = set; then
13344 echo $ECHO_N "(cached) $ECHO_C" >&6
13346 cat >conftest.
$ac_ext <<_ACEOF
13347 #line 13347 "configure"
13348 #include "confdefs.h"
13353 error_at_line(0, 0, "", 0, "");
13358 rm -f conftest.
$ac_objext conftest
$ac_exeext
13359 if { (eval echo "$as_me:13359: \"$ac_link\"") >&5
13360 (eval $ac_link) 2>&5
13362 echo "$as_me:13362: \$? = $ac_status" >&5
13363 (exit $ac_status); } &&
13364 { ac_try
='test -s conftest$ac_exeext'
13365 { (eval echo "$as_me:13365: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13368 echo "$as_me:13368: \$? = $ac_status" >&5
13369 (exit $ac_status); }; }; then
13370 am_cv_lib_error_at_line
=yes
13372 echo "$as_me: failed program was:" >&5
13373 cat conftest.
$ac_ext >&5
13374 am_cv_lib_error_at_line
=no
13376 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13378 echo "$as_me:13378: result: $am_cv_lib_error_at_line" >&5
13379 echo "${ECHO_T}$am_cv_lib_error_at_line" >&6
13380 if test $am_cv_lib_error_at_line = no
; then
13381 LIBOBJS
="$LIBOBJS error.$ac_objext"
13384 for ac_func
in localtime_r
13386 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13387 echo "$as_me:13387: checking for $ac_func" >&5
13388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13389 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13390 echo $ECHO_N "(cached) $ECHO_C" >&6
13392 cat >conftest.
$ac_ext <<_ACEOF
13393 #line 13393 "configure"
13394 #include "confdefs.h"
13395 /* System header to define __stub macros and hopefully few prototypes,
13396 which can conflict with char $ac_func (); below. */
13397 #include <assert.h>
13398 /* Override any gcc2 internal prototype to avoid an error. */
13402 /* We use char because int might match the return type of a gcc2
13403 builtin and then its argument prototype would still apply. */
13410 /* The GNU C library defines this for functions which it implements
13411 to always fail with ENOSYS. Some functions are actually named
13412 something starting with __ and the normal name is an alias. */
13413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13423 rm -f conftest.
$ac_objext conftest
$ac_exeext
13424 if { (eval echo "$as_me:13424: \"$ac_link\"") >&5
13425 (eval $ac_link) 2>&5
13427 echo "$as_me:13427: \$? = $ac_status" >&5
13428 (exit $ac_status); } &&
13429 { ac_try
='test -s conftest$ac_exeext'
13430 { (eval echo "$as_me:13430: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13433 echo "$as_me:13433: \$? = $ac_status" >&5
13434 (exit $ac_status); }; }; then
13435 eval "$ac_ac_var=yes"
13437 echo "$as_me: failed program was:" >&5
13438 cat conftest.
$ac_ext >&5
13439 eval "$ac_ac_var=no"
13441 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13443 echo "$as_me:13443: result: `eval echo '${'$ac_ac_var'}'`" >&5
13444 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13445 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13446 cat >>confdefs.h
<<EOF
13447 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13453 for ac_header
in limits.h
13455 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
13456 echo "$as_me:13456: checking for $ac_header" >&5
13457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13458 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13461 cat >conftest.
$ac_ext <<_ACEOF
13462 #line 13462 "configure"
13463 #include "confdefs.h"
13464 #include <$ac_header>
13466 if { (eval echo "$as_me:13466: \"$ac_cpp conftest.$ac_ext\"") >&5
13467 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13469 egrep -v '^ *\+' conftest.er1
>conftest.err
13471 cat conftest.err
>&5
13472 echo "$as_me:13472: \$? = $ac_status" >&5
13473 (exit $ac_status); } >/dev
/null
; then
13474 if test -s conftest.err
; then
13475 ac_cpp_err
=$ac_c_preproc_warn_flag
13482 if test -z "$ac_cpp_err"; then
13483 eval "$ac_ac_Header=yes"
13485 echo "$as_me: failed program was:" >&5
13486 cat conftest.
$ac_ext >&5
13487 eval "$ac_ac_Header=no"
13489 rm -f conftest.err conftest.
$ac_ext
13491 echo "$as_me:13491: result: `eval echo '${'$ac_ac_Header'}'`" >&5
13492 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
13493 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
13494 cat >>confdefs.h
<<EOF
13495 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
13501 for ac_func
in bcopy tzset mempcpy memcpy memset
13503 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13504 echo "$as_me:13504: checking for $ac_func" >&5
13505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13506 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13509 cat >conftest.
$ac_ext <<_ACEOF
13510 #line 13510 "configure"
13511 #include "confdefs.h"
13512 /* System header to define __stub macros and hopefully few prototypes,
13513 which can conflict with char $ac_func (); below. */
13514 #include <assert.h>
13515 /* Override any gcc2 internal prototype to avoid an error. */
13519 /* We use char because int might match the return type of a gcc2
13520 builtin and then its argument prototype would still apply. */
13527 /* The GNU C library defines this for functions which it implements
13528 to always fail with ENOSYS. Some functions are actually named
13529 something starting with __ and the normal name is an alias. */
13530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13540 rm -f conftest.
$ac_objext conftest
$ac_exeext
13541 if { (eval echo "$as_me:13541: \"$ac_link\"") >&5
13542 (eval $ac_link) 2>&5
13544 echo "$as_me:13544: \$? = $ac_status" >&5
13545 (exit $ac_status); } &&
13546 { ac_try
='test -s conftest$ac_exeext'
13547 { (eval echo "$as_me:13547: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
13550 echo "$as_me:13550: \$? = $ac_status" >&5
13551 (exit $ac_status); }; }; then
13552 eval "$ac_ac_var=yes"
13554 echo "$as_me: failed program was:" >&5
13555 cat conftest.
$ac_ext >&5
13556 eval "$ac_ac_var=no"
13558 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13560 echo "$as_me:13560: result: `eval echo '${'$ac_ac_var'}'`" >&5
13561 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13562 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13563 cat >>confdefs.h
<<EOF
13564 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13570 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
13571 echo "$as_me:13571: checking for struct tm.tm_zone" >&5
13572 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
13573 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13574 echo $ECHO_N "(cached) $ECHO_C" >&6
13576 cat >conftest.
$ac_ext <<_ACEOF
13577 #line 13577 "configure"
13578 #include "confdefs.h"
13579 #include <sys/types.h>
13580 #include <$ac_cv_struct_tm>
13591 rm -f conftest.
$ac_objext
13592 if { (eval echo "$as_me:13592: \"$ac_compile\"") >&5
13593 (eval $ac_compile) 2>&5
13595 echo "$as_me:13595: \$? = $ac_status" >&5
13596 (exit $ac_status); } &&
13597 { ac_try
='test -s conftest.$ac_objext'
13598 { (eval echo "$as_me:13598: \"$ac_try\"") >&5
13599 (eval $ac_try) 2>&5
13601 echo "$as_me:13601: \$? = $ac_status" >&5
13602 (exit $ac_status); }; }; then
13603 ac_cv_member_struct_tm_tm_zone
=yes
13605 echo "$as_me: failed program was:" >&5
13606 cat conftest.
$ac_ext >&5
13607 ac_cv_member_struct_tm_tm_zone
=no
13609 rm -f conftest.
$ac_objext conftest.
$ac_ext
13611 echo "$as_me:13611: result: $ac_cv_member_struct_tm_tm_zone" >&5
13612 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
13613 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13615 cat >>confdefs.h
<<EOF
13616 #define HAVE_STRUCT_TM_TM_ZONE 1
13621 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13623 cat >>confdefs.h
<<\EOF
13624 #define HAVE_TM_ZONE 1
13628 echo "$as_me:13628: checking for tzname" >&5
13629 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
13630 if test "${ac_cv_var_tzname+set}" = set; then
13631 echo $ECHO_N "(cached) $ECHO_C" >&6
13633 cat >conftest.
$ac_ext <<_ACEOF
13634 #line 13634 "configure"
13635 #include "confdefs.h"
13637 #ifndef tzname /* For SGI. */
13638 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13649 rm -f conftest.
$ac_objext conftest
$ac_exeext
13650 if { (eval echo "$as_me:13650: \"$ac_link\"") >&5
13651 (eval $ac_link) 2>&5
13653 echo "$as_me:13653: \$? = $ac_status" >&5
13654 (exit $ac_status); } &&
13655 { ac_try
='test -s conftest$ac_exeext'
13656 { (eval echo "$as_me:13656: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13659 echo "$as_me:13659: \$? = $ac_status" >&5
13660 (exit $ac_status); }; }; then
13661 ac_cv_var_tzname
=yes
13663 echo "$as_me: failed program was:" >&5
13664 cat conftest.
$ac_ext >&5
13665 ac_cv_var_tzname
=no
13667 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13669 echo "$as_me:13669: result: $ac_cv_var_tzname" >&5
13670 echo "${ECHO_T}$ac_cv_var_tzname" >&6
13671 if test $ac_cv_var_tzname = yes; then
13673 cat >>confdefs.h
<<\EOF
13674 #define HAVE_TZNAME 1
13680 for ac_func
in mblen mbrlen
13682 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13683 echo "$as_me:13683: checking for $ac_func" >&5
13684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13685 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13686 echo $ECHO_N "(cached) $ECHO_C" >&6
13688 cat >conftest.
$ac_ext <<_ACEOF
13689 #line 13689 "configure"
13690 #include "confdefs.h"
13691 /* System header to define __stub macros and hopefully few prototypes,
13692 which can conflict with char $ac_func (); below. */
13693 #include <assert.h>
13694 /* Override any gcc2 internal prototype to avoid an error. */
13698 /* We use char because int might match the return type of a gcc2
13699 builtin and then its argument prototype would still apply. */
13706 /* The GNU C library defines this for functions which it implements
13707 to always fail with ENOSYS. Some functions are actually named
13708 something starting with __ and the normal name is an alias. */
13709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13719 rm -f conftest.
$ac_objext conftest
$ac_exeext
13720 if { (eval echo "$as_me:13720: \"$ac_link\"") >&5
13721 (eval $ac_link) 2>&5
13723 echo "$as_me:13723: \$? = $ac_status" >&5
13724 (exit $ac_status); } &&
13725 { ac_try
='test -s conftest$ac_exeext'
13726 { (eval echo "$as_me:13726: \"$ac_try\"") >&5
13727 (eval $ac_try) 2>&5
13729 echo "$as_me:13729: \$? = $ac_status" >&5
13730 (exit $ac_status); }; }; then
13731 eval "$ac_ac_var=yes"
13733 echo "$as_me: failed program was:" >&5
13734 cat conftest.
$ac_ext >&5
13735 eval "$ac_ac_var=no"
13737 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13739 echo "$as_me:13739: result: `eval echo '${'$ac_ac_var'}'`" >&5
13740 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13741 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13742 cat >>confdefs.h
<<EOF
13743 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13749 echo "$as_me:13749: checking for struct tm.tm_gmtoff" >&5
13750 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
13751 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13754 cat >conftest.
$ac_ext <<_ACEOF
13755 #line 13755 "configure"
13756 #include "confdefs.h"
13768 rm -f conftest.
$ac_objext
13769 if { (eval echo "$as_me:13769: \"$ac_compile\"") >&5
13770 (eval $ac_compile) 2>&5
13772 echo "$as_me:13772: \$? = $ac_status" >&5
13773 (exit $ac_status); } &&
13774 { ac_try
='test -s conftest.$ac_objext'
13775 { (eval echo "$as_me:13775: \"$ac_try\"") >&5
13776 (eval $ac_try) 2>&5
13778 echo "$as_me:13778: \$? = $ac_status" >&5
13779 (exit $ac_status); }; }; then
13780 ac_cv_member_struct_tm_tm_gmtoff
=yes
13782 echo "$as_me: failed program was:" >&5
13783 cat conftest.
$ac_ext >&5
13784 ac_cv_member_struct_tm_tm_gmtoff
=no
13786 rm -f conftest.
$ac_objext conftest.
$ac_ext
13788 echo "$as_me:13788: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
13789 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
13790 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
13792 cat >>confdefs.h
<<\EOF
13793 #define HAVE_TM_GMTOFF 1
13798 for ac_header
in sys
/time.h
13800 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
13801 echo "$as_me:13801: checking for $ac_header" >&5
13802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13803 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
13804 echo $ECHO_N "(cached) $ECHO_C" >&6
13806 cat >conftest.
$ac_ext <<_ACEOF
13807 #line 13807 "configure"
13808 #include "confdefs.h"
13809 #include <$ac_header>
13811 if { (eval echo "$as_me:13811: \"$ac_cpp conftest.$ac_ext\"") >&5
13812 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13814 egrep -v '^ *\+' conftest.er1
>conftest.err
13816 cat conftest.err
>&5
13817 echo "$as_me:13817: \$? = $ac_status" >&5
13818 (exit $ac_status); } >/dev
/null
; then
13819 if test -s conftest.err
; then
13820 ac_cpp_err
=$ac_c_preproc_warn_flag
13827 if test -z "$ac_cpp_err"; then
13828 eval "$ac_ac_Header=yes"
13830 echo "$as_me: failed program was:" >&5
13831 cat conftest.
$ac_ext >&5
13832 eval "$ac_ac_Header=no"
13834 rm -f conftest.err conftest.
$ac_ext
13836 echo "$as_me:13836: result: `eval echo '${'$ac_ac_Header'}'`" >&5
13837 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
13838 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
13839 cat >>confdefs.h
<<EOF
13840 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
13846 echo "$as_me:13846: checking for working GNU strftime" >&5
13847 echo $ECHO_N "checking for working GNU strftime... $ECHO_C" >&6
13848 if test "${jm_cv_func_working_gnu_strftime+set}" = set; then
13849 echo $ECHO_N "(cached) $ECHO_C" >&6
13851 # Set TZ to GMT0 to make strftime give consistent results during the test.
13852 ac_save_TZ
="${TZ-GMT0}"
13855 if test "$cross_compiling" = yes; then
13856 jm_cv_func_working_gnu_strftime
=no
13858 cat >conftest.
$ac_ext <<_ACEOF
13859 #line 13859 "configure"
13860 #include "confdefs.h"
13861 /* Ulrich Drepper provided parts of the test program. */
13863 # include <stdlib.h>
13866 #if TIME_WITH_SYS_TIME
13867 # include <sys/time.h>
13870 # if HAVE_SYS_TIME_H
13871 # include <sys/time.h>
13878 compare (const char *fmt, const struct tm *tm, const char *expected)
13881 strftime (buf, 99, fmt, tm);
13882 if (strcmp (buf, expected))
13884 #ifdef SHOW_FAILURES
13885 printf ("fmt: \"%s\", expected \"%s\", got \"%s\"\n",
13886 fmt, expected, buf);
13898 time_t t = 738367; /* Fri Jan 9 13:06:07 1970 */
13902 #define CMP(Fmt, Expected) n_fail += compare ((Fmt), tm, (Expected))
13904 CMP ("%-m", "1"); /* GNU */
13905 CMP ("%A", "Friday");
13906 CMP ("%^A", "FRIDAY"); /* The ^ is a GNU extension. */
13907 CMP ("%B", "January");
13908 CMP ("%^B", "JANUARY");
13909 CMP ("%C", "19"); /* POSIX.2 */
13910 CMP ("%D", "01/09/70"); /* POSIX.2 */
13911 CMP ("%F", "1970-01-09");
13912 CMP ("%G", "1970"); /* GNU */
13917 CMP ("%R", "13:06"); /* POSIX.2 */
13919 CMP ("%T", "13:06:07"); /* POSIX.2 */
13923 CMP ("%X", "13:06:07");
13924 CMP ("%Y", "1970");
13926 CMP ("%_m", " 1"); /* GNU */
13928 CMP ("%^a", "FRI");
13930 CMP ("%^b", "JAN");
13931 CMP ("%c", "Fri Jan 9 13:06:07 1970");
13932 CMP ("%^c", "FRI JAN 9 13:06:07 1970");
13934 CMP ("%e", " 9"); /* POSIX.2 */
13935 CMP ("%g", "70"); /* GNU */
13936 CMP ("%h", "Jan"); /* POSIX.2 */
13937 CMP ("%^h", "JAN");
13939 CMP ("%k", "13"); /* GNU */
13940 CMP ("%l", " 1"); /* GNU */
13942 CMP ("%n", "\n"); /* POSIX.2 */
13944 CMP ("%r", "01:06:07 PM"); /* POSIX.2 */
13945 CMP ("%s", "738367"); /* GNU */
13946 CMP ("%t", "\t"); /* POSIX.2 */
13947 CMP ("%u", "5"); /* POSIX.2 */
13949 CMP ("%x", "01/09/70");
13951 CMP ("%z", "+0000"); /* GNU */
13953 exit (n_fail ? 1 : 0);
13956 rm -f conftest
$ac_exeext
13957 if { (eval echo "$as_me:13957: \"$ac_link\"") >&5
13958 (eval $ac_link) 2>&5
13960 echo "$as_me:13960: \$? = $ac_status" >&5
13961 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13962 { (eval echo "$as_me:13962: \"$ac_try\"") >&5
13963 (eval $ac_try) 2>&5
13965 echo "$as_me:13965: \$? = $ac_status" >&5
13966 (exit $ac_status); }; }; then
13967 jm_cv_func_working_gnu_strftime
=yes
13969 echo "$as_me: program exited with status $ac_status" >&5
13970 echo "$as_me: failed program was:" >&5
13971 cat conftest.
$ac_ext >&5
13972 jm_cv_func_working_gnu_strftime
=no
13974 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
13979 echo "$as_me:13979: result: $jm_cv_func_working_gnu_strftime" >&5
13980 echo "${ECHO_T}$jm_cv_func_working_gnu_strftime" >&6
13981 if test $jm_cv_func_working_gnu_strftime = no
; then
13983 LIBOBJS
="$LIBOBJS strftime.$ac_objext"
13985 cat >>confdefs.h
<<EOF
13986 #define strftime gnu_strftime
13991 for ac_func
in vprintf
13993 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13994 echo "$as_me:13994: checking for $ac_func" >&5
13995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13996 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13997 echo $ECHO_N "(cached) $ECHO_C" >&6
13999 cat >conftest.
$ac_ext <<_ACEOF
14000 #line 14000 "configure"
14001 #include "confdefs.h"
14002 /* System header to define __stub macros and hopefully few prototypes,
14003 which can conflict with char $ac_func (); below. */
14004 #include <assert.h>
14005 /* Override any gcc2 internal prototype to avoid an error. */
14009 /* We use char because int might match the return type of a gcc2
14010 builtin and then its argument prototype would still apply. */
14017 /* The GNU C library defines this for functions which it implements
14018 to always fail with ENOSYS. Some functions are actually named
14019 something starting with __ and the normal name is an alias. */
14020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14030 rm -f conftest.
$ac_objext conftest
$ac_exeext
14031 if { (eval echo "$as_me:14031: \"$ac_link\"") >&5
14032 (eval $ac_link) 2>&5
14034 echo "$as_me:14034: \$? = $ac_status" >&5
14035 (exit $ac_status); } &&
14036 { ac_try
='test -s conftest$ac_exeext'
14037 { (eval echo "$as_me:14037: \"$ac_try\"") >&5
14038 (eval $ac_try) 2>&5
14040 echo "$as_me:14040: \$? = $ac_status" >&5
14041 (exit $ac_status); }; }; then
14042 eval "$ac_ac_var=yes"
14044 echo "$as_me: failed program was:" >&5
14045 cat conftest.
$ac_ext >&5
14046 eval "$ac_ac_var=no"
14048 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14050 echo "$as_me:14050: result: `eval echo '${'$ac_ac_var'}'`" >&5
14051 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14052 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14053 cat >>confdefs.h
<<EOF
14054 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14057 echo "$as_me:14057: checking for _doprnt" >&5
14058 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
14059 if test "${ac_cv_func__doprnt+set}" = set; then
14060 echo $ECHO_N "(cached) $ECHO_C" >&6
14062 cat >conftest.
$ac_ext <<_ACEOF
14063 #line 14063 "configure"
14064 #include "confdefs.h"
14065 /* System header to define __stub macros and hopefully few prototypes,
14066 which can conflict with char _doprnt (); below. */
14067 #include <assert.h>
14068 /* Override any gcc2 internal prototype to avoid an error. */
14072 /* We use char because int might match the return type of a gcc2
14073 builtin and then its argument prototype would still apply. */
14080 /* The GNU C library defines this for functions which it implements
14081 to always fail with ENOSYS. Some functions are actually named
14082 something starting with __ and the normal name is an alias. */
14083 #if defined (__stub__doprnt) || defined (__stub____doprnt)
14093 rm -f conftest.
$ac_objext conftest
$ac_exeext
14094 if { (eval echo "$as_me:14094: \"$ac_link\"") >&5
14095 (eval $ac_link) 2>&5
14097 echo "$as_me:14097: \$? = $ac_status" >&5
14098 (exit $ac_status); } &&
14099 { ac_try
='test -s conftest$ac_exeext'
14100 { (eval echo "$as_me:14100: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14103 echo "$as_me:14103: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
14105 ac_cv_func__doprnt
=yes
14107 echo "$as_me: failed program was:" >&5
14108 cat conftest.
$ac_ext >&5
14109 ac_cv_func__doprnt
=no
14111 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14113 echo "$as_me:14113: result: $ac_cv_func__doprnt" >&5
14114 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
14115 if test $ac_cv_func__doprnt = yes; then
14117 cat >>confdefs.h
<<\EOF
14118 #define HAVE_DOPRNT 1
14126 echo "$as_me:14126: checking whether closedir returns void" >&5
14127 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
14128 if test "${ac_cv_func_closedir_void+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14131 if test "$cross_compiling" = yes; then
14132 ac_cv_func_closedir_void
=yes
14134 cat >conftest.
$ac_ext <<_ACEOF
14135 #line 14135 "configure"
14136 #include "confdefs.h"
14137 #include <sys/types.h>
14138 #include <$ac_header_dirent>
14144 exit (closedir (opendir (".")) != 0);
14147 rm -f conftest
$ac_exeext
14148 if { (eval echo "$as_me:14148: \"$ac_link\"") >&5
14149 (eval $ac_link) 2>&5
14151 echo "$as_me:14151: \$? = $ac_status" >&5
14152 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14153 { (eval echo "$as_me:14153: \"$ac_try\"") >&5
14154 (eval $ac_try) 2>&5
14156 echo "$as_me:14156: \$? = $ac_status" >&5
14157 (exit $ac_status); }; }; then
14158 ac_cv_func_closedir_void
=no
14160 echo "$as_me: program exited with status $ac_status" >&5
14161 echo "$as_me: failed program was:" >&5
14162 cat conftest.
$ac_ext >&5
14163 ac_cv_func_closedir_void
=yes
14165 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
14168 echo "$as_me:14168: result: $ac_cv_func_closedir_void" >&5
14169 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
14170 if test $ac_cv_func_closedir_void = yes; then
14172 cat >>confdefs.h
<<\EOF
14173 #define CLOSEDIR_VOID 1
14178 GNU_PACKAGE
="GNU $PACKAGE"
14180 cat >>confdefs.h
<<EOF
14181 #define GNU_PACKAGE "$GNU_PACKAGE"
14221 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
14222 echo "$as_me:14222: checking for $ac_header" >&5
14223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14224 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
14225 echo $ECHO_N "(cached) $ECHO_C" >&6
14227 cat >conftest.
$ac_ext <<_ACEOF
14228 #line 14228 "configure"
14229 #include "confdefs.h"
14230 #include <$ac_header>
14232 if { (eval echo "$as_me:14232: \"$ac_cpp conftest.$ac_ext\"") >&5
14233 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14235 egrep -v '^ *\+' conftest.er1
>conftest.err
14237 cat conftest.err
>&5
14238 echo "$as_me:14238: \$? = $ac_status" >&5
14239 (exit $ac_status); } >/dev
/null
; then
14240 if test -s conftest.err
; then
14241 ac_cpp_err
=$ac_c_preproc_warn_flag
14248 if test -z "$ac_cpp_err"; then
14249 eval "$ac_ac_Header=yes"
14251 echo "$as_me: failed program was:" >&5
14252 cat conftest.
$ac_ext >&5
14253 eval "$ac_ac_Header=no"
14255 rm -f conftest.err conftest.
$ac_ext
14257 echo "$as_me:14257: result: `eval echo '${'$ac_ac_Header'}'`" >&5
14258 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
14259 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
14260 cat >>confdefs.h
<<EOF
14261 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
14267 # Assume we'll default to using the included regex.c.
14268 ac_use_included_regex
=yes
14270 # However, if the system regex support is good enough that it passes the
14271 # the following run test, then default to *not* using the included regex.c.
14272 # If cross compiling, assume the test would fail and use the included
14273 # regex.c. The first failing regular expression is from `Spencer ere
14274 # test #75' in grep-2.3.
14275 echo "$as_me:14275: checking for working re_compile_pattern" >&5
14276 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
14277 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
14278 echo $ECHO_N "(cached) $ECHO_C" >&6
14280 if test "$cross_compiling" = yes; then
14281 jm_cv_func_working_re_compile_pattern
=no
14283 cat >conftest.
$ac_ext <<_ACEOF
14284 #line 14284 "configure"
14285 #include "confdefs.h"
14291 static struct re_pattern_buffer regex;
14293 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
14294 /* Add this third left square bracket, , to balance the
14295 three right ones below. Otherwise autoconf-2.14 chokes. */
14296 s = re_compile_pattern ("a[[:]:]b\n", 9, ®ex);
14297 /* This should fail with _Invalid character class name_ error. */
14301 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
14302 s = re_compile_pattern ("{1", 2, ®ex);
14308 rm -f conftest
$ac_exeext
14309 if { (eval echo "$as_me:14309: \"$ac_link\"") >&5
14310 (eval $ac_link) 2>&5
14312 echo "$as_me:14312: \$? = $ac_status" >&5
14313 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14314 { (eval echo "$as_me:14314: \"$ac_try\"") >&5
14315 (eval $ac_try) 2>&5
14317 echo "$as_me:14317: \$? = $ac_status" >&5
14318 (exit $ac_status); }; }; then
14319 jm_cv_func_working_re_compile_pattern
=yes
14321 echo "$as_me: program exited with status $ac_status" >&5
14322 echo "$as_me: failed program was:" >&5
14323 cat conftest.
$ac_ext >&5
14324 jm_cv_func_working_re_compile_pattern
=no
14326 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
14329 echo "$as_me:14329: result: $jm_cv_func_working_re_compile_pattern" >&5
14330 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
14331 if test $jm_cv_func_working_re_compile_pattern = yes; then
14332 ac_use_included_regex
=no
14335 test -n "lib/regex.c" ||
{ { echo "$as_me:14335: error: missing argument" >&5
14336 echo "$as_me: error: missing argument" >&2;}
14337 { (exit 1); exit 1; }; }
14339 # Check whether --with-included-regex or --without-included-regex was given.
14340 if test "${with_included_regex+set}" = set; then
14341 withval
="$with_included_regex"
14342 jm_with_regex
=$withval
14344 jm_with_regex
=$ac_use_included_regex
14346 if test "$jm_with_regex" = yes; then
14348 LIBOBJS
="$LIBOBJS regex.$ac_objext"
14351 for ac_func
in strncasecmp
14353 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14354 echo "$as_me:14354: checking for $ac_func" >&5
14355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14356 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14359 cat >conftest.
$ac_ext <<_ACEOF
14360 #line 14360 "configure"
14361 #include "confdefs.h"
14362 /* System header to define __stub macros and hopefully few prototypes,
14363 which can conflict with char $ac_func (); below. */
14364 #include <assert.h>
14365 /* Override any gcc2 internal prototype to avoid an error. */
14369 /* We use char because int might match the return type of a gcc2
14370 builtin and then its argument prototype would still apply. */
14377 /* The GNU C library defines this for functions which it implements
14378 to always fail with ENOSYS. Some functions are actually named
14379 something starting with __ and the normal name is an alias. */
14380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14390 rm -f conftest.
$ac_objext conftest
$ac_exeext
14391 if { (eval echo "$as_me:14391: \"$ac_link\"") >&5
14392 (eval $ac_link) 2>&5
14394 echo "$as_me:14394: \$? = $ac_status" >&5
14395 (exit $ac_status); } &&
14396 { ac_try
='test -s conftest$ac_exeext'
14397 { (eval echo "$as_me:14397: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14400 echo "$as_me:14400: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }; then
14402 eval "$ac_ac_var=yes"
14404 echo "$as_me: failed program was:" >&5
14405 cat conftest.
$ac_ext >&5
14406 eval "$ac_ac_var=no"
14408 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14410 echo "$as_me:14410: result: `eval echo '${'$ac_ac_var'}'`" >&5
14411 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14412 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14413 cat >>confdefs.h
<<EOF
14414 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14418 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
14422 for ac_func
in stpcpy strstr strtol strtoul
14424 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14425 echo "$as_me:14425: checking for $ac_func" >&5
14426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14427 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14428 echo $ECHO_N "(cached) $ECHO_C" >&6
14430 cat >conftest.
$ac_ext <<_ACEOF
14431 #line 14431 "configure"
14432 #include "confdefs.h"
14433 /* System header to define __stub macros and hopefully few prototypes,
14434 which can conflict with char $ac_func (); below. */
14435 #include <assert.h>
14436 /* Override any gcc2 internal prototype to avoid an error. */
14440 /* We use char because int might match the return type of a gcc2
14441 builtin and then its argument prototype would still apply. */
14448 /* The GNU C library defines this for functions which it implements
14449 to always fail with ENOSYS. Some functions are actually named
14450 something starting with __ and the normal name is an alias. */
14451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14461 rm -f conftest.
$ac_objext conftest
$ac_exeext
14462 if { (eval echo "$as_me:14462: \"$ac_link\"") >&5
14463 (eval $ac_link) 2>&5
14465 echo "$as_me:14465: \$? = $ac_status" >&5
14466 (exit $ac_status); } &&
14467 { ac_try
='test -s conftest$ac_exeext'
14468 { (eval echo "$as_me:14468: \"$ac_try\"") >&5
14469 (eval $ac_try) 2>&5
14471 echo "$as_me:14471: \$? = $ac_status" >&5
14472 (exit $ac_status); }; }; then
14473 eval "$ac_ac_var=yes"
14475 echo "$as_me: failed program was:" >&5
14476 cat conftest.
$ac_ext >&5
14477 eval "$ac_ac_var=no"
14479 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14481 echo "$as_me:14481: result: `eval echo '${'$ac_ac_var'}'`" >&5
14482 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14483 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14484 cat >>confdefs.h
<<EOF
14485 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14489 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
14493 for ac_func
in memcmp rpmatch
14495 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14496 echo "$as_me:14496: checking for $ac_func" >&5
14497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14498 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 cat >conftest.
$ac_ext <<_ACEOF
14502 #line 14502 "configure"
14503 #include "confdefs.h"
14504 /* System header to define __stub macros and hopefully few prototypes,
14505 which can conflict with char $ac_func (); below. */
14506 #include <assert.h>
14507 /* Override any gcc2 internal prototype to avoid an error. */
14511 /* We use char because int might match the return type of a gcc2
14512 builtin and then its argument prototype would still apply. */
14519 /* The GNU C library defines this for functions which it implements
14520 to always fail with ENOSYS. Some functions are actually named
14521 something starting with __ and the normal name is an alias. */
14522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14532 rm -f conftest.
$ac_objext conftest
$ac_exeext
14533 if { (eval echo "$as_me:14533: \"$ac_link\"") >&5
14534 (eval $ac_link) 2>&5
14536 echo "$as_me:14536: \$? = $ac_status" >&5
14537 (exit $ac_status); } &&
14538 { ac_try
='test -s conftest$ac_exeext'
14539 { (eval echo "$as_me:14539: \"$ac_try\"") >&5
14540 (eval $ac_try) 2>&5
14542 echo "$as_me:14542: \$? = $ac_status" >&5
14543 (exit $ac_status); }; }; then
14544 eval "$ac_ac_var=yes"
14546 echo "$as_me: failed program was:" >&5
14547 cat conftest.
$ac_ext >&5
14548 eval "$ac_ac_var=no"
14550 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14552 echo "$as_me:14552: result: `eval echo '${'$ac_ac_var'}'`" >&5
14553 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14554 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14555 cat >>confdefs.h
<<EOF
14556 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14560 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
14564 for ac_func
in strdup
14566 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14567 echo "$as_me:14567: checking for $ac_func" >&5
14568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14569 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14570 echo $ECHO_N "(cached) $ECHO_C" >&6
14572 cat >conftest.
$ac_ext <<_ACEOF
14573 #line 14573 "configure"
14574 #include "confdefs.h"
14575 /* System header to define __stub macros and hopefully few prototypes,
14576 which can conflict with char $ac_func (); below. */
14577 #include <assert.h>
14578 /* Override any gcc2 internal prototype to avoid an error. */
14582 /* We use char because int might match the return type of a gcc2
14583 builtin and then its argument prototype would still apply. */
14590 /* The GNU C library defines this for functions which it implements
14591 to always fail with ENOSYS. Some functions are actually named
14592 something starting with __ and the normal name is an alias. */
14593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14603 rm -f conftest.
$ac_objext conftest
$ac_exeext
14604 if { (eval echo "$as_me:14604: \"$ac_link\"") >&5
14605 (eval $ac_link) 2>&5
14607 echo "$as_me:14607: \$? = $ac_status" >&5
14608 (exit $ac_status); } &&
14609 { ac_try
='test -s conftest$ac_exeext'
14610 { (eval echo "$as_me:14610: \"$ac_try\"") >&5
14611 (eval $ac_try) 2>&5
14613 echo "$as_me:14613: \$? = $ac_status" >&5
14614 (exit $ac_status); }; }; then
14615 eval "$ac_ac_var=yes"
14617 echo "$as_me: failed program was:" >&5
14618 cat conftest.
$ac_ext >&5
14619 eval "$ac_ac_var=no"
14621 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14623 echo "$as_me:14623: result: `eval echo '${'$ac_ac_var'}'`" >&5
14624 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14625 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14626 cat >>confdefs.h
<<EOF
14627 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14631 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
14635 for ac_func
in memcpy memset
14637 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14638 echo "$as_me:14638: checking for $ac_func" >&5
14639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14640 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14641 echo $ECHO_N "(cached) $ECHO_C" >&6
14643 cat >conftest.
$ac_ext <<_ACEOF
14644 #line 14644 "configure"
14645 #include "confdefs.h"
14646 /* System header to define __stub macros and hopefully few prototypes,
14647 which can conflict with char $ac_func (); below. */
14648 #include <assert.h>
14649 /* Override any gcc2 internal prototype to avoid an error. */
14653 /* We use char because int might match the return type of a gcc2
14654 builtin and then its argument prototype would still apply. */
14661 /* The GNU C library defines this for functions which it implements
14662 to always fail with ENOSYS. Some functions are actually named
14663 something starting with __ and the normal name is an alias. */
14664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14674 rm -f conftest.
$ac_objext conftest
$ac_exeext
14675 if { (eval echo "$as_me:14675: \"$ac_link\"") >&5
14676 (eval $ac_link) 2>&5
14678 echo "$as_me:14678: \$? = $ac_status" >&5
14679 (exit $ac_status); } &&
14680 { ac_try
='test -s conftest$ac_exeext'
14681 { (eval echo "$as_me:14681: \"$ac_try\"") >&5
14682 (eval $ac_try) 2>&5
14684 echo "$as_me:14684: \$? = $ac_status" >&5
14685 (exit $ac_status); }; }; then
14686 eval "$ac_ac_var=yes"
14688 echo "$as_me: failed program was:" >&5
14689 cat conftest.
$ac_ext >&5
14690 eval "$ac_ac_var=no"
14692 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14694 echo "$as_me:14694: result: `eval echo '${'$ac_ac_var'}'`" >&5
14695 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14696 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14697 cat >>confdefs.h
<<EOF
14698 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14702 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
14706 for ac_func
in getpagesize
14708 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14709 echo "$as_me:14709: checking for $ac_func" >&5
14710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14711 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14712 echo $ECHO_N "(cached) $ECHO_C" >&6
14714 cat >conftest.
$ac_ext <<_ACEOF
14715 #line 14715 "configure"
14716 #include "confdefs.h"
14717 /* System header to define __stub macros and hopefully few prototypes,
14718 which can conflict with char $ac_func (); below. */
14719 #include <assert.h>
14720 /* Override any gcc2 internal prototype to avoid an error. */
14724 /* We use char because int might match the return type of a gcc2
14725 builtin and then its argument prototype would still apply. */
14732 /* The GNU C library defines this for functions which it implements
14733 to always fail with ENOSYS. Some functions are actually named
14734 something starting with __ and the normal name is an alias. */
14735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14745 rm -f conftest.
$ac_objext conftest
$ac_exeext
14746 if { (eval echo "$as_me:14746: \"$ac_link\"") >&5
14747 (eval $ac_link) 2>&5
14749 echo "$as_me:14749: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try
='test -s conftest$ac_exeext'
14752 { (eval echo "$as_me:14752: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14755 echo "$as_me:14755: \$? = $ac_status" >&5
14756 (exit $ac_status); }; }; then
14757 eval "$ac_ac_var=yes"
14759 echo "$as_me: failed program was:" >&5
14760 cat conftest.
$ac_ext >&5
14761 eval "$ac_ac_var=no"
14763 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14765 echo "$as_me:14765: result: `eval echo '${'$ac_ac_var'}'`" >&5
14766 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14767 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14768 cat >>confdefs.h
<<EOF
14769 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14775 # By default, argmatch should fail calling usage (1).
14777 cat >>confdefs.h
<<\EOF
14778 #define ARGMATCH_DIE usage (1)
14781 cat >>confdefs.h
<<\EOF
14782 #define ARGMATCH_DIE_DECL extern void usage ()
14785 echo "$as_me:14785: checking whether setvbuf arguments are reversed" >&5
14786 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
14787 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
14788 echo $ECHO_N "(cached) $ECHO_C" >&6
14790 if test "$cross_compiling" = yes; then
14791 { { echo "$as_me:14791: error: cannot run test program while cross compiling" >&5
14792 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14793 { (exit 1); exit 1; }; }
14795 cat >conftest.
$ac_ext <<_ACEOF
14796 #line 14796 "configure"
14797 #include "confdefs.h"
14799 /* If setvbuf has the reversed format, exit 0. */
14803 /* This call has the arguments reversed.
14804 A reversed system may check and see that the address of main
14805 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
14806 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
14808 putc('\r', stdout);
14809 exit(0); /* Non-reversed systems segv here. */
14812 rm -f conftest
$ac_exeext
14813 if { (eval echo "$as_me:14813: \"$ac_link\"") >&5
14814 (eval $ac_link) 2>&5
14816 echo "$as_me:14816: \$? = $ac_status" >&5
14817 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14818 { (eval echo "$as_me:14818: \"$ac_try\"") >&5
14819 (eval $ac_try) 2>&5
14821 echo "$as_me:14821: \$? = $ac_status" >&5
14822 (exit $ac_status); }; }; then
14823 ac_cv_func_setvbuf_reversed
=yes
14825 echo "$as_me: program exited with status $ac_status" >&5
14826 echo "$as_me: failed program was:" >&5
14827 cat conftest.
$ac_ext >&5
14828 ac_cv_func_setvbuf_reversed
=no
14830 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
14832 rm -f core core.
* *.core
14834 echo "$as_me:14834: result: $ac_cv_func_setvbuf_reversed" >&5
14835 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
14836 if test $ac_cv_func_setvbuf_reversed = yes; then
14838 cat >>confdefs.h
<<\EOF
14839 #define SETVBUF_REVERSED 1
14844 for ac_func
in getdelim
14846 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14847 echo "$as_me:14847: checking for $ac_func" >&5
14848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14849 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 cat >conftest.
$ac_ext <<_ACEOF
14853 #line 14853 "configure"
14854 #include "confdefs.h"
14855 /* System header to define __stub macros and hopefully few prototypes,
14856 which can conflict with char $ac_func (); below. */
14857 #include <assert.h>
14858 /* Override any gcc2 internal prototype to avoid an error. */
14862 /* We use char because int might match the return type of a gcc2
14863 builtin and then its argument prototype would still apply. */
14870 /* The GNU C library defines this for functions which it implements
14871 to always fail with ENOSYS. Some functions are actually named
14872 something starting with __ and the normal name is an alias. */
14873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14883 rm -f conftest.
$ac_objext conftest
$ac_exeext
14884 if { (eval echo "$as_me:14884: \"$ac_link\"") >&5
14885 (eval $ac_link) 2>&5
14887 echo "$as_me:14887: \$? = $ac_status" >&5
14888 (exit $ac_status); } &&
14889 { ac_try
='test -s conftest$ac_exeext'
14890 { (eval echo "$as_me:14890: \"$ac_try\"") >&5
14891 (eval $ac_try) 2>&5
14893 echo "$as_me:14893: \$? = $ac_status" >&5
14894 (exit $ac_status); }; }; then
14895 eval "$ac_ac_var=yes"
14897 echo "$as_me: failed program was:" >&5
14898 cat conftest.
$ac_ext >&5
14899 eval "$ac_ac_var=no"
14901 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14903 echo "$as_me:14903: result: `eval echo '${'$ac_ac_var'}'`" >&5
14904 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14905 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14906 cat >>confdefs.h
<<EOF
14907 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14942 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14943 echo "$as_me:14943: checking for $ac_func" >&5
14944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14945 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14948 cat >conftest.
$ac_ext <<_ACEOF
14949 #line 14949 "configure"
14950 #include "confdefs.h"
14951 /* System header to define __stub macros and hopefully few prototypes,
14952 which can conflict with char $ac_func (); below. */
14953 #include <assert.h>
14954 /* Override any gcc2 internal prototype to avoid an error. */
14958 /* We use char because int might match the return type of a gcc2
14959 builtin and then its argument prototype would still apply. */
14966 /* The GNU C library defines this for functions which it implements
14967 to always fail with ENOSYS. Some functions are actually named
14968 something starting with __ and the normal name is an alias. */
14969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14979 rm -f conftest.
$ac_objext conftest
$ac_exeext
14980 if { (eval echo "$as_me:14980: \"$ac_link\"") >&5
14981 (eval $ac_link) 2>&5
14983 echo "$as_me:14983: \$? = $ac_status" >&5
14984 (exit $ac_status); } &&
14985 { ac_try
='test -s conftest$ac_exeext'
14986 { (eval echo "$as_me:14986: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14989 echo "$as_me:14989: \$? = $ac_status" >&5
14990 (exit $ac_status); }; }; then
14991 eval "$ac_ac_var=yes"
14993 echo "$as_me: failed program was:" >&5
14994 cat conftest.
$ac_ext >&5
14995 eval "$ac_ac_var=no"
14997 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14999 echo "$as_me:14999: result: `eval echo '${'$ac_ac_var'}'`" >&5
15000 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15001 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15002 cat >>confdefs.h
<<EOF
15003 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15009 am_getline_needs_run_time_check
=no
15010 echo "$as_me:15010: checking for getline" >&5
15011 echo $ECHO_N "checking for getline... $ECHO_C" >&6
15012 if test "${ac_cv_func_getline+set}" = set; then
15013 echo $ECHO_N "(cached) $ECHO_C" >&6
15015 cat >conftest.
$ac_ext <<_ACEOF
15016 #line 15016 "configure"
15017 #include "confdefs.h"
15018 /* System header to define __stub macros and hopefully few prototypes,
15019 which can conflict with char getline (); below. */
15020 #include <assert.h>
15021 /* Override any gcc2 internal prototype to avoid an error. */
15025 /* We use char because int might match the return type of a gcc2
15026 builtin and then its argument prototype would still apply. */
15033 /* The GNU C library defines this for functions which it implements
15034 to always fail with ENOSYS. Some functions are actually named
15035 something starting with __ and the normal name is an alias. */
15036 #if defined (__stub_getline) || defined (__stub___getline)
15046 rm -f conftest.
$ac_objext conftest
$ac_exeext
15047 if { (eval echo "$as_me:15047: \"$ac_link\"") >&5
15048 (eval $ac_link) 2>&5
15050 echo "$as_me:15050: \$? = $ac_status" >&5
15051 (exit $ac_status); } &&
15052 { ac_try
='test -s conftest$ac_exeext'
15053 { (eval echo "$as_me:15053: \"$ac_try\"") >&5
15054 (eval $ac_try) 2>&5
15056 echo "$as_me:15056: \$? = $ac_status" >&5
15057 (exit $ac_status); }; }; then
15058 ac_cv_func_getline
=yes
15060 echo "$as_me: failed program was:" >&5
15061 cat conftest.
$ac_ext >&5
15062 ac_cv_func_getline
=no
15064 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15066 echo "$as_me:15066: result: $ac_cv_func_getline" >&5
15067 echo "${ECHO_T}$ac_cv_func_getline" >&6
15068 if test $ac_cv_func_getline = yes; then
15069 am_getline_needs_run_time_check
=yes
15071 am_cv_func_working_getline
=no
15074 if test $am_getline_needs_run_time_check = yes; then
15076 for ac_header
in string.h
15078 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
15079 echo "$as_me:15079: checking for $ac_header" >&5
15080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15081 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
15082 echo $ECHO_N "(cached) $ECHO_C" >&6
15084 cat >conftest.
$ac_ext <<_ACEOF
15085 #line 15085 "configure"
15086 #include "confdefs.h"
15087 #include <$ac_header>
15089 if { (eval echo "$as_me:15089: \"$ac_cpp conftest.$ac_ext\"") >&5
15090 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15092 egrep -v '^ *\+' conftest.er1
>conftest.err
15094 cat conftest.err
>&5
15095 echo "$as_me:15095: \$? = $ac_status" >&5
15096 (exit $ac_status); } >/dev
/null
; then
15097 if test -s conftest.err
; then
15098 ac_cpp_err
=$ac_c_preproc_warn_flag
15105 if test -z "$ac_cpp_err"; then
15106 eval "$ac_ac_Header=yes"
15108 echo "$as_me: failed program was:" >&5
15109 cat conftest.
$ac_ext >&5
15110 eval "$ac_ac_Header=no"
15112 rm -f conftest.err conftest.
$ac_ext
15114 echo "$as_me:15114: result: `eval echo '${'$ac_ac_Header'}'`" >&5
15115 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
15116 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
15117 cat >>confdefs.h
<<EOF
15118 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
15124 echo "$as_me:15124: checking for working getline function" >&5
15125 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
15126 if test "${am_cv_func_working_getline+set}" = set; then
15127 echo $ECHO_N "(cached) $ECHO_C" >&6
15129 echo fooN |
tr -d '\012'|
tr N
'\012' > conftest.data
15130 if test "$cross_compiling" = yes; then
15131 am_cv_func_working_getline
=no
15133 cat >conftest.
$ac_ext <<_ACEOF
15134 #line 15134 "configure"
15135 #include "confdefs.h"
15137 # include <stdio.h>
15138 # include <sys/types.h>
15140 # include <string.h>
15149 getstr(&path, &n, stream, terminator, offset);
15153 { /* Based on a test program from Karl Heuer. */
15157 FILE *in = fopen ("./conftest.data", "r");
15160 len = getline (&line, &siz, in);
15161 nread = getstr (&path, &pathsize, fp, '\0', count);
15163 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
15167 rm -f conftest
$ac_exeext
15168 if { (eval echo "$as_me:15168: \"$ac_link\"") >&5
15169 (eval $ac_link) 2>&5
15171 echo "$as_me:15171: \$? = $ac_status" >&5
15172 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15173 { (eval echo "$as_me:15173: \"$ac_try\"") >&5
15174 (eval $ac_try) 2>&5
15176 echo "$as_me:15176: \$? = $ac_status" >&5
15177 (exit $ac_status); }; }; then
15178 am_cv_func_working_getline
=yes
15180 echo "$as_me: program exited with status $ac_status" >&5
15181 echo "$as_me: failed program was:" >&5
15182 cat conftest.
$ac_ext >&5
15183 am_cv_func_working_getline
=no
15185 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
15188 echo "$as_me:15188: result: $am_cv_func_working_getline" >&5
15189 echo "${ECHO_T}$am_cv_func_working_getline" >&6
15192 if test $am_cv_func_working_getline = no
; then
15193 LIBOBJS
="$LIBOBJS getline.$ac_objext"
15196 if test $am_cv_func_working_getline != yes; then
15198 for ac_func
in getdelim
15200 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15201 echo "$as_me:15201: checking for $ac_func" >&5
15202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15203 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15204 echo $ECHO_N "(cached) $ECHO_C" >&6
15206 cat >conftest.
$ac_ext <<_ACEOF
15207 #line 15207 "configure"
15208 #include "confdefs.h"
15209 /* System header to define __stub macros and hopefully few prototypes,
15210 which can conflict with char $ac_func (); below. */
15211 #include <assert.h>
15212 /* Override any gcc2 internal prototype to avoid an error. */
15216 /* We use char because int might match the return type of a gcc2
15217 builtin and then its argument prototype would still apply. */
15224 /* The GNU C library defines this for functions which it implements
15225 to always fail with ENOSYS. Some functions are actually named
15226 something starting with __ and the normal name is an alias. */
15227 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15237 rm -f conftest.
$ac_objext conftest
$ac_exeext
15238 if { (eval echo "$as_me:15238: \"$ac_link\"") >&5
15239 (eval $ac_link) 2>&5
15241 echo "$as_me:15241: \$? = $ac_status" >&5
15242 (exit $ac_status); } &&
15243 { ac_try
='test -s conftest$ac_exeext'
15244 { (eval echo "$as_me:15244: \"$ac_try\"") >&5
15245 (eval $ac_try) 2>&5
15247 echo "$as_me:15247: \$? = $ac_status" >&5
15248 (exit $ac_status); }; }; then
15249 eval "$ac_ac_var=yes"
15251 echo "$as_me: failed program was:" >&5
15252 cat conftest.
$ac_ext >&5
15253 eval "$ac_ac_var=no"
15255 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15257 echo "$as_me:15257: result: `eval echo '${'$ac_ac_var'}'`" >&5
15258 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15259 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15260 cat >>confdefs.h
<<EOF
15261 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15269 echo "$as_me:15269: checking whether we are using the GNU C Library 2.1 or newer" >&5
15270 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15271 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15272 echo $ECHO_N "(cached) $ECHO_C" >&6
15274 cat >conftest.
$ac_ext <<_ACEOF
15275 #line 15275 "configure"
15276 #include "confdefs.h"
15278 #include <features.h>
15279 #ifdef __GNU_LIBRARY__
15280 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15287 egrep "Lucky GNU user" >/dev
/null
2>&1; then
15288 ac_cv_gnu_library_2_1
=yes
15290 ac_cv_gnu_library_2_1
=no
15295 echo "$as_me:15295: result: $ac_cv_gnu_library_2_1" >&5
15296 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15298 GLIBC21
="$ac_cv_gnu_library_2_1"
15300 echo "$as_me:15300: checking for iconv" >&5
15301 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
15302 if test "${jm_cv_func_iconv+set}" = set; then
15303 echo $ECHO_N "(cached) $ECHO_C" >&6
15306 jm_cv_func_iconv
="no, consider installing libiconv"
15308 cat >conftest.
$ac_ext <<_ACEOF
15309 #line 15309 "configure"
15310 #include "confdefs.h"
15311 #include <stdlib.h>
15316 iconv_t cd = iconv_open("","");
15317 iconv(cd,NULL,NULL,NULL,NULL);
15323 rm -f conftest.
$ac_objext conftest
$ac_exeext
15324 if { (eval echo "$as_me:15324: \"$ac_link\"") >&5
15325 (eval $ac_link) 2>&5
15327 echo "$as_me:15327: \$? = $ac_status" >&5
15328 (exit $ac_status); } &&
15329 { ac_try
='test -s conftest$ac_exeext'
15330 { (eval echo "$as_me:15330: \"$ac_try\"") >&5
15331 (eval $ac_try) 2>&5
15333 echo "$as_me:15333: \$? = $ac_status" >&5
15334 (exit $ac_status); }; }; then
15335 jm_cv_func_iconv
=yes
15337 echo "$as_me: failed program was:" >&5
15338 cat conftest.
$ac_ext >&5
15340 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15341 if test "$jm_cv_func_iconv" != yes; then
15342 jm_save_LIBS
="$LIBS"
15343 LIBS
="$LIBS -liconv"
15344 cat >conftest.
$ac_ext <<_ACEOF
15345 #line 15345 "configure"
15346 #include "confdefs.h"
15347 #include <stdlib.h>
15352 iconv_t cd = iconv_open("","");
15353 iconv(cd,NULL,NULL,NULL,NULL);
15359 rm -f conftest.
$ac_objext conftest
$ac_exeext
15360 if { (eval echo "$as_me:15360: \"$ac_link\"") >&5
15361 (eval $ac_link) 2>&5
15363 echo "$as_me:15363: \$? = $ac_status" >&5
15364 (exit $ac_status); } &&
15365 { ac_try
='test -s conftest$ac_exeext'
15366 { (eval echo "$as_me:15366: \"$ac_try\"") >&5
15367 (eval $ac_try) 2>&5
15369 echo "$as_me:15369: \$? = $ac_status" >&5
15370 (exit $ac_status); }; }; then
15371 jm_cv_lib_iconv
=yes
15372 jm_cv_func_iconv
=yes
15374 echo "$as_me: failed program was:" >&5
15375 cat conftest.
$ac_ext >&5
15377 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15378 LIBS
="$jm_save_LIBS"
15382 echo "$as_me:15382: result: $jm_cv_func_iconv" >&5
15383 echo "${ECHO_T}$jm_cv_func_iconv" >&6
15384 if test "$jm_cv_func_iconv" = yes; then
15386 cat >>confdefs.h
<<\EOF
15387 #define HAVE_ICONV 1
15392 if test "$jm_cv_lib_iconv" = yes; then
15396 # These tests are for df.
15398 echo "$as_me:15398: checking for f_fstypename in struct statfs" >&5
15399 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6
15400 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
15401 echo $ECHO_N "(cached) $ECHO_C" >&6
15404 cat >conftest.
$ac_ext <<_ACEOF
15405 #line 15405 "configure"
15406 #include "confdefs.h"
15408 #include <sys/param.h>
15409 #include <sys/types.h>
15410 #include <sys/mount.h>
15415 struct statfs s; int i = sizeof s.f_fstypename;
15420 rm -f conftest.
$ac_objext
15421 if { (eval echo "$as_me:15421: \"$ac_compile\"") >&5
15422 (eval $ac_compile) 2>&5
15424 echo "$as_me:15424: \$? = $ac_status" >&5
15425 (exit $ac_status); } &&
15426 { ac_try
='test -s conftest.$ac_objext'
15427 { (eval echo "$as_me:15427: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15430 echo "$as_me:15430: \$? = $ac_status" >&5
15431 (exit $ac_status); }; }; then
15432 fu_cv_sys_f_fstypename_in_statfs
=yes
15434 echo "$as_me: failed program was:" >&5
15435 cat conftest.
$ac_ext >&5
15436 fu_cv_sys_f_fstypename_in_statfs
=no
15439 rm -f conftest.
$ac_objext conftest.
$ac_ext
15442 echo "$as_me:15442: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
15443 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6
15445 if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
15447 cat >>confdefs.h
<<EOF
15448 #define HAVE_F_FSTYPENAME_IN_STATFS 1
15453 for ac_func
in fchdir getcwd strerror endgrent endpwent
15455 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15456 echo "$as_me:15456: checking for $ac_func" >&5
15457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15458 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15459 echo $ECHO_N "(cached) $ECHO_C" >&6
15461 cat >conftest.
$ac_ext <<_ACEOF
15462 #line 15462 "configure"
15463 #include "confdefs.h"
15464 /* System header to define __stub macros and hopefully few prototypes,
15465 which can conflict with char $ac_func (); below. */
15466 #include <assert.h>
15467 /* Override any gcc2 internal prototype to avoid an error. */
15471 /* We use char because int might match the return type of a gcc2
15472 builtin and then its argument prototype would still apply. */
15479 /* The GNU C library defines this for functions which it implements
15480 to always fail with ENOSYS. Some functions are actually named
15481 something starting with __ and the normal name is an alias. */
15482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15492 rm -f conftest.
$ac_objext conftest
$ac_exeext
15493 if { (eval echo "$as_me:15493: \"$ac_link\"") >&5
15494 (eval $ac_link) 2>&5
15496 echo "$as_me:15496: \$? = $ac_status" >&5
15497 (exit $ac_status); } &&
15498 { ac_try
='test -s conftest$ac_exeext'
15499 { (eval echo "$as_me:15499: \"$ac_try\"") >&5
15500 (eval $ac_try) 2>&5
15502 echo "$as_me:15502: \$? = $ac_status" >&5
15503 (exit $ac_status); }; }; then
15504 eval "$ac_ac_var=yes"
15506 echo "$as_me: failed program was:" >&5
15507 cat conftest.
$ac_ext >&5
15508 eval "$ac_ac_var=no"
15510 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15512 echo "$as_me:15512: result: `eval echo '${'$ac_ac_var'}'`" >&5
15513 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15514 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15515 cat >>confdefs.h
<<EOF
15516 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15522 for ac_func
in vprintf
15524 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15525 echo "$as_me:15525: checking for $ac_func" >&5
15526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15527 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15528 echo $ECHO_N "(cached) $ECHO_C" >&6
15530 cat >conftest.
$ac_ext <<_ACEOF
15531 #line 15531 "configure"
15532 #include "confdefs.h"
15533 /* System header to define __stub macros and hopefully few prototypes,
15534 which can conflict with char $ac_func (); below. */
15535 #include <assert.h>
15536 /* Override any gcc2 internal prototype to avoid an error. */
15540 /* We use char because int might match the return type of a gcc2
15541 builtin and then its argument prototype would still apply. */
15548 /* The GNU C library defines this for functions which it implements
15549 to always fail with ENOSYS. Some functions are actually named
15550 something starting with __ and the normal name is an alias. */
15551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15561 rm -f conftest.
$ac_objext conftest
$ac_exeext
15562 if { (eval echo "$as_me:15562: \"$ac_link\"") >&5
15563 (eval $ac_link) 2>&5
15565 echo "$as_me:15565: \$? = $ac_status" >&5
15566 (exit $ac_status); } &&
15567 { ac_try
='test -s conftest$ac_exeext'
15568 { (eval echo "$as_me:15568: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15571 echo "$as_me:15571: \$? = $ac_status" >&5
15572 (exit $ac_status); }; }; then
15573 eval "$ac_ac_var=yes"
15575 echo "$as_me: failed program was:" >&5
15576 cat conftest.
$ac_ext >&5
15577 eval "$ac_ac_var=no"
15579 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15581 echo "$as_me:15581: result: `eval echo '${'$ac_ac_var'}'`" >&5
15582 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15583 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15584 cat >>confdefs.h
<<EOF
15585 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15588 echo "$as_me:15588: checking for _doprnt" >&5
15589 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
15590 if test "${ac_cv_func__doprnt+set}" = set; then
15591 echo $ECHO_N "(cached) $ECHO_C" >&6
15593 cat >conftest.
$ac_ext <<_ACEOF
15594 #line 15594 "configure"
15595 #include "confdefs.h"
15596 /* System header to define __stub macros and hopefully few prototypes,
15597 which can conflict with char _doprnt (); below. */
15598 #include <assert.h>
15599 /* Override any gcc2 internal prototype to avoid an error. */
15603 /* We use char because int might match the return type of a gcc2
15604 builtin and then its argument prototype would still apply. */
15611 /* The GNU C library defines this for functions which it implements
15612 to always fail with ENOSYS. Some functions are actually named
15613 something starting with __ and the normal name is an alias. */
15614 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15624 rm -f conftest.
$ac_objext conftest
$ac_exeext
15625 if { (eval echo "$as_me:15625: \"$ac_link\"") >&5
15626 (eval $ac_link) 2>&5
15628 echo "$as_me:15628: \$? = $ac_status" >&5
15629 (exit $ac_status); } &&
15630 { ac_try
='test -s conftest$ac_exeext'
15631 { (eval echo "$as_me:15631: \"$ac_try\"") >&5
15632 (eval $ac_try) 2>&5
15634 echo "$as_me:15634: \$? = $ac_status" >&5
15635 (exit $ac_status); }; }; then
15636 ac_cv_func__doprnt
=yes
15638 echo "$as_me: failed program was:" >&5
15639 cat conftest.
$ac_ext >&5
15640 ac_cv_func__doprnt
=no
15642 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15644 echo "$as_me:15644: result: $ac_cv_func__doprnt" >&5
15645 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
15646 if test $ac_cv_func__doprnt = yes; then
15648 cat >>confdefs.h
<<\EOF
15649 #define HAVE_DOPRNT 1
15657 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15658 # for constant arguments. Useless!
15659 echo "$as_me:15659: checking for working alloca.h" >&5
15660 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15661 if test "${ac_cv_working_alloca_h+set}" = set; then
15662 echo $ECHO_N "(cached) $ECHO_C" >&6
15664 cat >conftest.
$ac_ext <<_ACEOF
15665 #line 15665 "configure"
15666 #include "confdefs.h"
15667 #include <alloca.h>
15671 char *p = (char *) alloca (2 * sizeof (int));
15676 rm -f conftest.
$ac_objext conftest
$ac_exeext
15677 if { (eval echo "$as_me:15677: \"$ac_link\"") >&5
15678 (eval $ac_link) 2>&5
15680 echo "$as_me:15680: \$? = $ac_status" >&5
15681 (exit $ac_status); } &&
15682 { ac_try
='test -s conftest$ac_exeext'
15683 { (eval echo "$as_me:15683: \"$ac_try\"") >&5
15684 (eval $ac_try) 2>&5
15686 echo "$as_me:15686: \$? = $ac_status" >&5
15687 (exit $ac_status); }; }; then
15688 ac_cv_working_alloca_h
=yes
15690 echo "$as_me: failed program was:" >&5
15691 cat conftest.
$ac_ext >&5
15692 ac_cv_working_alloca_h
=no
15694 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15696 echo "$as_me:15696: result: $ac_cv_working_alloca_h" >&5
15697 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15698 if test $ac_cv_working_alloca_h = yes; then
15700 cat >>confdefs.h
<<\EOF
15701 #define HAVE_ALLOCA_H 1
15706 echo "$as_me:15706: checking for alloca" >&5
15707 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15708 if test "${ac_cv_func_alloca_works+set}" = set; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15711 cat >conftest.
$ac_ext <<_ACEOF
15712 #line 15712 "configure"
15713 #include "confdefs.h"
15715 # define alloca __builtin_alloca
15718 # include <malloc.h>
15719 # define alloca _alloca
15722 # include <alloca.h>
15727 # ifndef alloca /* predefined by HP cc +Olibcalls */
15738 char *p = (char *) alloca (1);
15743 rm -f conftest.
$ac_objext conftest
$ac_exeext
15744 if { (eval echo "$as_me:15744: \"$ac_link\"") >&5
15745 (eval $ac_link) 2>&5
15747 echo "$as_me:15747: \$? = $ac_status" >&5
15748 (exit $ac_status); } &&
15749 { ac_try
='test -s conftest$ac_exeext'
15750 { (eval echo "$as_me:15750: \"$ac_try\"") >&5
15751 (eval $ac_try) 2>&5
15753 echo "$as_me:15753: \$? = $ac_status" >&5
15754 (exit $ac_status); }; }; then
15755 ac_cv_func_alloca_works
=yes
15757 echo "$as_me: failed program was:" >&5
15758 cat conftest.
$ac_ext >&5
15759 ac_cv_func_alloca_works
=no
15761 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15763 echo "$as_me:15763: result: $ac_cv_func_alloca_works" >&5
15764 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15766 if test $ac_cv_func_alloca_works = yes; then
15768 cat >>confdefs.h
<<\EOF
15769 #define HAVE_ALLOCA 1
15773 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15774 # that cause trouble. Some versions do not even contain alloca or
15775 # contain a buggy version. If you still want to use their alloca,
15776 # use ar to extract alloca.o from them instead of compiling alloca.c.
15778 ALLOCA
=alloca.
$ac_objext
15780 cat >>confdefs.h
<<\EOF
15784 echo "$as_me:15784: checking whether \`alloca.c' needs Cray hooks" >&5
15785 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15786 if test "${ac_cv_os_cray+set}" = set; then
15787 echo $ECHO_N "(cached) $ECHO_C" >&6
15789 cat >conftest.
$ac_ext <<_ACEOF
15790 #line 15790 "configure"
15791 #include "confdefs.h"
15792 #if defined(CRAY) && ! defined(CRAY2)
15799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15800 egrep "webecray" >/dev
/null
2>&1; then
15808 echo "$as_me:15808: result: $ac_cv_os_cray" >&5
15809 echo "${ECHO_T}$ac_cv_os_cray" >&6
15810 if test $ac_cv_os_cray = yes; then
15811 for ac_func
in _getb67 GETB67 getb67
; do
15812 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15813 echo "$as_me:15813: checking for $ac_func" >&5
15814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15815 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15816 echo $ECHO_N "(cached) $ECHO_C" >&6
15818 cat >conftest.
$ac_ext <<_ACEOF
15819 #line 15819 "configure"
15820 #include "confdefs.h"
15821 /* System header to define __stub macros and hopefully few prototypes,
15822 which can conflict with char $ac_func (); below. */
15823 #include <assert.h>
15824 /* Override any gcc2 internal prototype to avoid an error. */
15828 /* We use char because int might match the return type of a gcc2
15829 builtin and then its argument prototype would still apply. */
15836 /* The GNU C library defines this for functions which it implements
15837 to always fail with ENOSYS. Some functions are actually named
15838 something starting with __ and the normal name is an alias. */
15839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15849 rm -f conftest.
$ac_objext conftest
$ac_exeext
15850 if { (eval echo "$as_me:15850: \"$ac_link\"") >&5
15851 (eval $ac_link) 2>&5
15853 echo "$as_me:15853: \$? = $ac_status" >&5
15854 (exit $ac_status); } &&
15855 { ac_try
='test -s conftest$ac_exeext'
15856 { (eval echo "$as_me:15856: \"$ac_try\"") >&5
15857 (eval $ac_try) 2>&5
15859 echo "$as_me:15859: \$? = $ac_status" >&5
15860 (exit $ac_status); }; }; then
15861 eval "$ac_ac_var=yes"
15863 echo "$as_me: failed program was:" >&5
15864 cat conftest.
$ac_ext >&5
15865 eval "$ac_ac_var=no"
15867 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15869 echo "$as_me:15869: result: `eval echo '${'$ac_ac_var'}'`" >&5
15870 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15871 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15873 cat >>confdefs.h
<<EOF
15874 #define CRAY_STACKSEG_END $ac_func
15883 echo "$as_me:15883: checking stack direction for C alloca" >&5
15884 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15885 if test "${ac_cv_c_stack_direction+set}" = set; then
15886 echo $ECHO_N "(cached) $ECHO_C" >&6
15888 if test "$cross_compiling" = yes; then
15889 ac_cv_c_stack_direction
=0
15891 cat >conftest.
$ac_ext <<_ACEOF
15892 #line 15892 "configure"
15893 #include "confdefs.h"
15895 find_stack_direction ()
15897 static char *addr = 0;
15902 return find_stack_direction ();
15905 return (&dummy > addr) ? 1 : -1;
15911 exit (find_stack_direction () < 0);
15914 rm -f conftest
$ac_exeext
15915 if { (eval echo "$as_me:15915: \"$ac_link\"") >&5
15916 (eval $ac_link) 2>&5
15918 echo "$as_me:15918: \$? = $ac_status" >&5
15919 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15920 { (eval echo "$as_me:15920: \"$ac_try\"") >&5
15921 (eval $ac_try) 2>&5
15923 echo "$as_me:15923: \$? = $ac_status" >&5
15924 (exit $ac_status); }; }; then
15925 ac_cv_c_stack_direction
=1
15927 echo "$as_me: program exited with status $ac_status" >&5
15928 echo "$as_me: failed program was:" >&5
15929 cat conftest.
$ac_ext >&5
15930 ac_cv_c_stack_direction
=-1
15932 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
15935 echo "$as_me:15935: result: $ac_cv_c_stack_direction" >&5
15936 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15938 cat >>confdefs.h
<<EOF
15939 #define STACK_DIRECTION $ac_cv_c_stack_direction
15944 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
15945 echo "$as_me:15945: checking for getmntent in -lsun" >&5
15946 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
15947 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
15948 echo $ECHO_N "(cached) $ECHO_C" >&6
15950 ac_check_lib_save_LIBS
=$LIBS
15952 cat >conftest.
$ac_ext <<_ACEOF
15953 #line 15953 "configure"
15954 #include "confdefs.h"
15956 /* Override any gcc2 internal prototype to avoid an error. */
15960 /* We use char because int might match the return type of a gcc2
15961 builtin and then its argument prototype would still apply. */
15971 rm -f conftest.
$ac_objext conftest
$ac_exeext
15972 if { (eval echo "$as_me:15972: \"$ac_link\"") >&5
15973 (eval $ac_link) 2>&5
15975 echo "$as_me:15975: \$? = $ac_status" >&5
15976 (exit $ac_status); } &&
15977 { ac_try
='test -s conftest$ac_exeext'
15978 { (eval echo "$as_me:15978: \"$ac_try\"") >&5
15979 (eval $ac_try) 2>&5
15981 echo "$as_me:15981: \$? = $ac_status" >&5
15982 (exit $ac_status); }; }; then
15983 ac_cv_lib_sun_getmntent
=yes
15985 echo "$as_me: failed program was:" >&5
15986 cat conftest.
$ac_ext >&5
15987 ac_cv_lib_sun_getmntent
=no
15989 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15990 LIBS
=$ac_check_lib_save_LIBS
15992 echo "$as_me:15992: result: $ac_cv_lib_sun_getmntent" >&5
15993 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
15994 if test $ac_cv_lib_sun_getmntent = yes; then
15997 echo "$as_me:15997: checking for getmntent in -lseq" >&5
15998 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
15999 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16000 echo $ECHO_N "(cached) $ECHO_C" >&6
16002 ac_check_lib_save_LIBS
=$LIBS
16004 cat >conftest.
$ac_ext <<_ACEOF
16005 #line 16005 "configure"
16006 #include "confdefs.h"
16008 /* Override any gcc2 internal prototype to avoid an error. */
16012 /* We use char because int might match the return type of a gcc2
16013 builtin and then its argument prototype would still apply. */
16023 rm -f conftest.
$ac_objext conftest
$ac_exeext
16024 if { (eval echo "$as_me:16024: \"$ac_link\"") >&5
16025 (eval $ac_link) 2>&5
16027 echo "$as_me:16027: \$? = $ac_status" >&5
16028 (exit $ac_status); } &&
16029 { ac_try
='test -s conftest$ac_exeext'
16030 { (eval echo "$as_me:16030: \"$ac_try\"") >&5
16031 (eval $ac_try) 2>&5
16033 echo "$as_me:16033: \$? = $ac_status" >&5
16034 (exit $ac_status); }; }; then
16035 ac_cv_lib_seq_getmntent
=yes
16037 echo "$as_me: failed program was:" >&5
16038 cat conftest.
$ac_ext >&5
16039 ac_cv_lib_seq_getmntent
=no
16041 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16042 LIBS
=$ac_check_lib_save_LIBS
16044 echo "$as_me:16044: result: $ac_cv_lib_seq_getmntent" >&5
16045 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16046 if test $ac_cv_lib_seq_getmntent = yes; then
16049 echo "$as_me:16049: checking for getmntent in -lgen" >&5
16050 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16051 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16052 echo $ECHO_N "(cached) $ECHO_C" >&6
16054 ac_check_lib_save_LIBS
=$LIBS
16056 cat >conftest.
$ac_ext <<_ACEOF
16057 #line 16057 "configure"
16058 #include "confdefs.h"
16060 /* Override any gcc2 internal prototype to avoid an error. */
16064 /* We use char because int might match the return type of a gcc2
16065 builtin and then its argument prototype would still apply. */
16075 rm -f conftest.
$ac_objext conftest
$ac_exeext
16076 if { (eval echo "$as_me:16076: \"$ac_link\"") >&5
16077 (eval $ac_link) 2>&5
16079 echo "$as_me:16079: \$? = $ac_status" >&5
16080 (exit $ac_status); } &&
16081 { ac_try
='test -s conftest$ac_exeext'
16082 { (eval echo "$as_me:16082: \"$ac_try\"") >&5
16083 (eval $ac_try) 2>&5
16085 echo "$as_me:16085: \$? = $ac_status" >&5
16086 (exit $ac_status); }; }; then
16087 ac_cv_lib_gen_getmntent
=yes
16089 echo "$as_me: failed program was:" >&5
16090 cat conftest.
$ac_ext >&5
16091 ac_cv_lib_gen_getmntent
=no
16093 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16094 LIBS
=$ac_check_lib_save_LIBS
16096 echo "$as_me:16096: result: $ac_cv_lib_gen_getmntent" >&5
16097 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16098 if test $ac_cv_lib_gen_getmntent = yes; then
16106 echo "$as_me:16106: checking for getmntent" >&5
16107 echo $ECHO_N "checking for getmntent... $ECHO_C" >&6
16108 if test "${ac_cv_func_getmntent+set}" = set; then
16109 echo $ECHO_N "(cached) $ECHO_C" >&6
16111 cat >conftest.
$ac_ext <<_ACEOF
16112 #line 16112 "configure"
16113 #include "confdefs.h"
16114 /* System header to define __stub macros and hopefully few prototypes,
16115 which can conflict with char getmntent (); below. */
16116 #include <assert.h>
16117 /* Override any gcc2 internal prototype to avoid an error. */
16121 /* We use char because int might match the return type of a gcc2
16122 builtin and then its argument prototype would still apply. */
16129 /* The GNU C library defines this for functions which it implements
16130 to always fail with ENOSYS. Some functions are actually named
16131 something starting with __ and the normal name is an alias. */
16132 #if defined (__stub_getmntent) || defined (__stub___getmntent)
16142 rm -f conftest.
$ac_objext conftest
$ac_exeext
16143 if { (eval echo "$as_me:16143: \"$ac_link\"") >&5
16144 (eval $ac_link) 2>&5
16146 echo "$as_me:16146: \$? = $ac_status" >&5
16147 (exit $ac_status); } &&
16148 { ac_try
='test -s conftest$ac_exeext'
16149 { (eval echo "$as_me:16149: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16152 echo "$as_me:16152: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16154 ac_cv_func_getmntent
=yes
16156 echo "$as_me: failed program was:" >&5
16157 cat conftest.
$ac_ext >&5
16158 ac_cv_func_getmntent
=no
16160 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16162 echo "$as_me:16162: result: $ac_cv_func_getmntent" >&5
16163 echo "${ECHO_T}$ac_cv_func_getmntent" >&6
16164 if test $ac_cv_func_getmntent = yes; then
16166 cat >>confdefs.h
<<\EOF
16167 #define HAVE_GETMNTENT 1
16172 echo "$as_me:16172: checking whether closedir returns void" >&5
16173 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16174 if test "${ac_cv_func_closedir_void+set}" = set; then
16175 echo $ECHO_N "(cached) $ECHO_C" >&6
16177 if test "$cross_compiling" = yes; then
16178 ac_cv_func_closedir_void
=yes
16180 cat >conftest.
$ac_ext <<_ACEOF
16181 #line 16181 "configure"
16182 #include "confdefs.h"
16183 #include <sys/types.h>
16184 #include <$ac_header_dirent>
16190 exit (closedir (opendir (".")) != 0);
16193 rm -f conftest
$ac_exeext
16194 if { (eval echo "$as_me:16194: \"$ac_link\"") >&5
16195 (eval $ac_link) 2>&5
16197 echo "$as_me:16197: \$? = $ac_status" >&5
16198 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16199 { (eval echo "$as_me:16199: \"$ac_try\"") >&5
16200 (eval $ac_try) 2>&5
16202 echo "$as_me:16202: \$? = $ac_status" >&5
16203 (exit $ac_status); }; }; then
16204 ac_cv_func_closedir_void
=no
16206 echo "$as_me: program exited with status $ac_status" >&5
16207 echo "$as_me: failed program was:" >&5
16208 cat conftest.
$ac_ext >&5
16209 ac_cv_func_closedir_void
=yes
16211 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
16214 echo "$as_me:16214: result: $ac_cv_func_closedir_void" >&5
16215 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
16216 if test $ac_cv_func_closedir_void = yes; then
16218 cat >>confdefs.h
<<\EOF
16219 #define CLOSEDIR_VOID 1
16224 for ac_header
in stdlib.h unistd.h
16226 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
16227 echo "$as_me:16227: checking for $ac_header" >&5
16228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16229 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
16230 echo $ECHO_N "(cached) $ECHO_C" >&6
16232 cat >conftest.
$ac_ext <<_ACEOF
16233 #line 16233 "configure"
16234 #include "confdefs.h"
16235 #include <$ac_header>
16237 if { (eval echo "$as_me:16237: \"$ac_cpp conftest.$ac_ext\"") >&5
16238 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16240 egrep -v '^ *\+' conftest.er1
>conftest.err
16242 cat conftest.err
>&5
16243 echo "$as_me:16243: \$? = $ac_status" >&5
16244 (exit $ac_status); } >/dev
/null
; then
16245 if test -s conftest.err
; then
16246 ac_cpp_err
=$ac_c_preproc_warn_flag
16253 if test -z "$ac_cpp_err"; then
16254 eval "$ac_ac_Header=yes"
16256 echo "$as_me: failed program was:" >&5
16257 cat conftest.
$ac_ext >&5
16258 eval "$ac_ac_Header=no"
16260 rm -f conftest.err conftest.
$ac_ext
16262 echo "$as_me:16262: result: `eval echo '${'$ac_ac_Header'}'`" >&5
16263 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
16264 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
16265 cat >>confdefs.h
<<EOF
16266 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
16272 for ac_func
in getpagesize
16274 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
16275 echo "$as_me:16275: checking for $ac_func" >&5
16276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16277 if eval "test \"\${$ac_ac_var+set}\" = set"; then
16278 echo $ECHO_N "(cached) $ECHO_C" >&6
16280 cat >conftest.
$ac_ext <<_ACEOF
16281 #line 16281 "configure"
16282 #include "confdefs.h"
16283 /* System header to define __stub macros and hopefully few prototypes,
16284 which can conflict with char $ac_func (); below. */
16285 #include <assert.h>
16286 /* Override any gcc2 internal prototype to avoid an error. */
16290 /* We use char because int might match the return type of a gcc2
16291 builtin and then its argument prototype would still apply. */
16298 /* The GNU C library defines this for functions which it implements
16299 to always fail with ENOSYS. Some functions are actually named
16300 something starting with __ and the normal name is an alias. */
16301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16311 rm -f conftest.
$ac_objext conftest
$ac_exeext
16312 if { (eval echo "$as_me:16312: \"$ac_link\"") >&5
16313 (eval $ac_link) 2>&5
16315 echo "$as_me:16315: \$? = $ac_status" >&5
16316 (exit $ac_status); } &&
16317 { ac_try
='test -s conftest$ac_exeext'
16318 { (eval echo "$as_me:16318: \"$ac_try\"") >&5
16319 (eval $ac_try) 2>&5
16321 echo "$as_me:16321: \$? = $ac_status" >&5
16322 (exit $ac_status); }; }; then
16323 eval "$ac_ac_var=yes"
16325 echo "$as_me: failed program was:" >&5
16326 cat conftest.
$ac_ext >&5
16327 eval "$ac_ac_var=no"
16329 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16331 echo "$as_me:16331: result: `eval echo '${'$ac_ac_var'}'`" >&5
16332 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16333 if test `eval echo '${'$ac_ac_var'}'` = yes; then
16334 cat >>confdefs.h
<<EOF
16335 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16341 echo "$as_me:16341: checking for working mmap" >&5
16342 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
16343 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16344 echo $ECHO_N "(cached) $ECHO_C" >&6
16346 if test "$cross_compiling" = yes; then
16347 ac_cv_func_mmap_fixed_mapped
=no
16349 cat >conftest.
$ac_ext <<_ACEOF
16350 #line 16350 "configure"
16351 #include "confdefs.h"
16352 /* Thanks to Mike Haertel and Jim Avera for this test.
16353 Here is a matrix of mmap possibilities:
16354 mmap private not fixed
16355 mmap private fixed at somewhere currently unmapped
16356 mmap private fixed at somewhere already mapped
16357 mmap shared not fixed
16358 mmap shared fixed at somewhere currently unmapped
16359 mmap shared fixed at somewhere already mapped
16360 For private mappings, we should verify that changes cannot be read()
16361 back from the file, nor mmap's back from the file at a different
16362 address. (There have been systems where private was not correctly
16363 implemented like the infamous i386 svr4.0, and systems where the
16364 VM page cache was not coherent with the file system buffer cache
16365 like early versions of FreeBSD and possibly contemporary NetBSD.)
16366 For shared mappings, we should conversely verify that changes get
16367 propogated back to all the places they're supposed to be.
16369 Grep wants private fixed already mapped.
16370 The main things grep needs to know about mmap are:
16371 * does it exist and is it safe to write into the mmap'd area
16372 * how to use it (BSD variants) */
16373 #include <sys/types.h>
16375 #include <sys/mman.h>
16377 #if STDC_HEADERS || HAVE_STDLIB_H
16378 # include <stdlib.h>
16383 # include <unistd.h>
16385 #include <sys/stat.h>
16387 /* This mess was copied from the GNU getpagesize.h. */
16388 #if !HAVE_GETPAGESIZE
16389 /* Assume that all systems that can run configure have sys/param.h. */
16390 # if !HAVE_SYS_PARAM_H
16391 # define HAVE_SYS_PARAM_H 1
16394 # ifdef _SC_PAGESIZE
16395 # define getpagesize() sysconf(_SC_PAGESIZE)
16396 # else /* no _SC_PAGESIZE */
16397 # if HAVE_SYS_PARAM_H
16398 # include <sys/param.h>
16399 # ifdef EXEC_PAGESIZE
16400 # define getpagesize() EXEC_PAGESIZE
16401 # else /* no EXEC_PAGESIZE */
16403 # define getpagesize() NBPG * CLSIZE
16406 # endif /* no CLSIZE */
16407 # else /* no NBPG */
16409 # define getpagesize() NBPC
16410 # else /* no NBPC */
16412 # define getpagesize() PAGESIZE
16413 # endif /* PAGESIZE */
16414 # endif /* no NBPC */
16415 # endif /* no NBPG */
16416 # endif /* no EXEC_PAGESIZE */
16417 # else /* no HAVE_SYS_PARAM_H */
16418 # define getpagesize() 8192 /* punt totally */
16419 # endif /* no HAVE_SYS_PARAM_H */
16420 # endif /* no _SC_PAGESIZE */
16422 #endif /* no HAVE_GETPAGESIZE */
16427 char *data, *data2, *data3;
16431 pagesize = getpagesize ();
16433 /* First, make a file with some known garbage in it. */
16434 data = (char *) malloc (pagesize);
16437 for (i = 0; i < pagesize; ++i)
16438 *(data + i) = rand ();
16440 fd = creat ("conftest.mmap", 0600);
16443 if (write (fd, data, pagesize) != pagesize)
16447 /* Next, try to mmap the file at a fixed address which already has
16448 something else allocated at it. If we can, also make sure that
16449 we see the same garbage. */
16450 fd = open ("conftest.mmap", O_RDWR);
16453 data2 = (char *) malloc (2 * pagesize);
16456 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
16457 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16458 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16460 for (i = 0; i < pagesize; ++i)
16461 if (*(data + i) != *(data2 + i))
16464 /* Finally, make sure that changes to the mapped area do not
16465 percolate back to the file as seen by read(). (This is a bug on
16466 some variants of i386 svr4.0.) */
16467 for (i = 0; i < pagesize; ++i)
16468 *(data2 + i) = *(data2 + i) + 1;
16469 data3 = (char *) malloc (pagesize);
16472 if (read (fd, data3, pagesize) != pagesize)
16474 for (i = 0; i < pagesize; ++i)
16475 if (*(data + i) != *(data3 + i))
16481 rm -f conftest
$ac_exeext
16482 if { (eval echo "$as_me:16482: \"$ac_link\"") >&5
16483 (eval $ac_link) 2>&5
16485 echo "$as_me:16485: \$? = $ac_status" >&5
16486 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16487 { (eval echo "$as_me:16487: \"$ac_try\"") >&5
16488 (eval $ac_try) 2>&5
16490 echo "$as_me:16490: \$? = $ac_status" >&5
16491 (exit $ac_status); }; }; then
16492 ac_cv_func_mmap_fixed_mapped
=yes
16494 echo "$as_me: program exited with status $ac_status" >&5
16495 echo "$as_me: failed program was:" >&5
16496 cat conftest.
$ac_ext >&5
16497 ac_cv_func_mmap_fixed_mapped
=no
16499 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
16502 echo "$as_me:16502: result: $ac_cv_func_mmap_fixed_mapped" >&5
16503 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16504 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16506 cat >>confdefs.h
<<\EOF
16507 #define HAVE_MMAP 1
16511 rm -f conftest.mmap
16513 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
16514 unistd.h sys
/param.h
16516 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
16517 echo "$as_me:16517: checking for $ac_header" >&5
16518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16519 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
16520 echo $ECHO_N "(cached) $ECHO_C" >&6
16522 cat >conftest.
$ac_ext <<_ACEOF
16523 #line 16523 "configure"
16524 #include "confdefs.h"
16525 #include <$ac_header>
16527 if { (eval echo "$as_me:16527: \"$ac_cpp conftest.$ac_ext\"") >&5
16528 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16530 egrep -v '^ *\+' conftest.er1
>conftest.err
16532 cat conftest.err
>&5
16533 echo "$as_me:16533: \$? = $ac_status" >&5
16534 (exit $ac_status); } >/dev
/null
; then
16535 if test -s conftest.err
; then
16536 ac_cpp_err
=$ac_c_preproc_warn_flag
16543 if test -z "$ac_cpp_err"; then
16544 eval "$ac_ac_Header=yes"
16546 echo "$as_me: failed program was:" >&5
16547 cat conftest.
$ac_ext >&5
16548 eval "$ac_ac_Header=no"
16550 rm -f conftest.err conftest.
$ac_ext
16552 echo "$as_me:16552: result: `eval echo '${'$ac_ac_Header'}'`" >&5
16553 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
16554 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
16555 cat >>confdefs.h
<<EOF
16556 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
16562 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
16563 strdup __argz_count __argz_stringify __argz_next
16565 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
16566 echo "$as_me:16566: checking for $ac_func" >&5
16567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16568 if eval "test \"\${$ac_ac_var+set}\" = set"; then
16569 echo $ECHO_N "(cached) $ECHO_C" >&6
16571 cat >conftest.
$ac_ext <<_ACEOF
16572 #line 16572 "configure"
16573 #include "confdefs.h"
16574 /* System header to define __stub macros and hopefully few prototypes,
16575 which can conflict with char $ac_func (); below. */
16576 #include <assert.h>
16577 /* Override any gcc2 internal prototype to avoid an error. */
16581 /* We use char because int might match the return type of a gcc2
16582 builtin and then its argument prototype would still apply. */
16589 /* The GNU C library defines this for functions which it implements
16590 to always fail with ENOSYS. Some functions are actually named
16591 something starting with __ and the normal name is an alias. */
16592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16602 rm -f conftest.
$ac_objext conftest
$ac_exeext
16603 if { (eval echo "$as_me:16603: \"$ac_link\"") >&5
16604 (eval $ac_link) 2>&5
16606 echo "$as_me:16606: \$? = $ac_status" >&5
16607 (exit $ac_status); } &&
16608 { ac_try
='test -s conftest$ac_exeext'
16609 { (eval echo "$as_me:16609: \"$ac_try\"") >&5
16610 (eval $ac_try) 2>&5
16612 echo "$as_me:16612: \$? = $ac_status" >&5
16613 (exit $ac_status); }; }; then
16614 eval "$ac_ac_var=yes"
16616 echo "$as_me: failed program was:" >&5
16617 cat conftest.
$ac_ext >&5
16618 eval "$ac_ac_var=no"
16620 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16622 echo "$as_me:16622: result: `eval echo '${'$ac_ac_var'}'`" >&5
16623 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16624 if test `eval echo '${'$ac_ac_var'}'` = yes; then
16625 cat >>confdefs.h
<<EOF
16626 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16632 if test "${ac_cv_func_stpcpy+set}" != "set"; then
16634 for ac_func
in stpcpy
16636 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
16637 echo "$as_me:16637: checking for $ac_func" >&5
16638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16639 if eval "test \"\${$ac_ac_var+set}\" = set"; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16642 cat >conftest.
$ac_ext <<_ACEOF
16643 #line 16643 "configure"
16644 #include "confdefs.h"
16645 /* System header to define __stub macros and hopefully few prototypes,
16646 which can conflict with char $ac_func (); below. */
16647 #include <assert.h>
16648 /* Override any gcc2 internal prototype to avoid an error. */
16652 /* We use char because int might match the return type of a gcc2
16653 builtin and then its argument prototype would still apply. */
16660 /* The GNU C library defines this for functions which it implements
16661 to always fail with ENOSYS. Some functions are actually named
16662 something starting with __ and the normal name is an alias. */
16663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16673 rm -f conftest.
$ac_objext conftest
$ac_exeext
16674 if { (eval echo "$as_me:16674: \"$ac_link\"") >&5
16675 (eval $ac_link) 2>&5
16677 echo "$as_me:16677: \$? = $ac_status" >&5
16678 (exit $ac_status); } &&
16679 { ac_try
='test -s conftest$ac_exeext'
16680 { (eval echo "$as_me:16680: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16683 echo "$as_me:16683: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685 eval "$ac_ac_var=yes"
16687 echo "$as_me: failed program was:" >&5
16688 cat conftest.
$ac_ext >&5
16689 eval "$ac_ac_var=no"
16691 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16693 echo "$as_me:16693: result: `eval echo '${'$ac_ac_var'}'`" >&5
16694 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16695 if test `eval echo '${'$ac_ac_var'}'` = yes; then
16696 cat >>confdefs.h
<<EOF
16697 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16704 if test "${ac_cv_func_stpcpy}" = "yes"; then
16706 cat >>confdefs.h
<<\EOF
16707 #define HAVE_STPCPY 1
16712 if test $ac_cv_header_locale_h = yes; then
16713 echo "$as_me:16713: checking for LC_MESSAGES" >&5
16714 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
16715 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
16716 echo $ECHO_N "(cached) $ECHO_C" >&6
16718 cat >conftest.
$ac_ext <<_ACEOF
16719 #line 16719 "configure"
16720 #include "confdefs.h"
16721 #include <locale.h>
16730 rm -f conftest.
$ac_objext conftest
$ac_exeext
16731 if { (eval echo "$as_me:16731: \"$ac_link\"") >&5
16732 (eval $ac_link) 2>&5
16734 echo "$as_me:16734: \$? = $ac_status" >&5
16735 (exit $ac_status); } &&
16736 { ac_try
='test -s conftest$ac_exeext'
16737 { (eval echo "$as_me:16737: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16740 echo "$as_me:16740: \$? = $ac_status" >&5
16741 (exit $ac_status); }; }; then
16742 am_cv_val_LC_MESSAGES
=yes
16744 echo "$as_me: failed program was:" >&5
16745 cat conftest.
$ac_ext >&5
16746 am_cv_val_LC_MESSAGES
=no
16748 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16750 echo "$as_me:16750: result: $am_cv_val_LC_MESSAGES" >&5
16751 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
16752 if test $am_cv_val_LC_MESSAGES = yes; then
16754 cat >>confdefs.h
<<\EOF
16755 #define HAVE_LC_MESSAGES 1
16760 echo "$as_me:16760: checking whether NLS is requested" >&5
16761 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
16762 # Check whether --enable-nls or --disable-nls was given.
16763 if test "${enable_nls+set}" = set; then
16764 enableval
="$enable_nls"
16769 echo "$as_me:16769: result: $USE_NLS" >&5
16770 echo "${ECHO_T}$USE_NLS" >&6
16772 USE_INCLUDED_LIBINTL
=no
16774 if test "$USE_NLS" = "yes"; then
16776 cat >>confdefs.h
<<\EOF
16777 #define ENABLE_NLS 1
16780 echo "$as_me:16780: checking whether included gettext is requested" >&5
16781 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
16783 # Check whether --with-included-gettext or --without-included-gettext was given.
16784 if test "${with_included_gettext+set}" = set; then
16785 withval
="$with_included_gettext"
16786 nls_cv_force_use_gnu_gettext
=$withval
16788 nls_cv_force_use_gnu_gettext
=no
16790 echo "$as_me:16790: result: $nls_cv_force_use_gnu_gettext" >&5
16791 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
16793 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
16794 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
16795 nls_cv_header_intl
=
16796 nls_cv_header_libgt
=
16799 echo "$as_me:16799: checking for libintl.h" >&5
16800 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16801 if test "${ac_cv_header_libintl_h+set}" = set; then
16802 echo $ECHO_N "(cached) $ECHO_C" >&6
16804 cat >conftest.
$ac_ext <<_ACEOF
16805 #line 16805 "configure"
16806 #include "confdefs.h"
16807 #include <libintl.h>
16809 if { (eval echo "$as_me:16809: \"$ac_cpp conftest.$ac_ext\"") >&5
16810 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16812 egrep -v '^ *\+' conftest.er1
>conftest.err
16814 cat conftest.err
>&5
16815 echo "$as_me:16815: \$? = $ac_status" >&5
16816 (exit $ac_status); } >/dev
/null
; then
16817 if test -s conftest.err
; then
16818 ac_cpp_err
=$ac_c_preproc_warn_flag
16825 if test -z "$ac_cpp_err"; then
16826 ac_cv_header_libintl_h
=yes
16828 echo "$as_me: failed program was:" >&5
16829 cat conftest.
$ac_ext >&5
16830 ac_cv_header_libintl_h
=no
16832 rm -f conftest.err conftest.
$ac_ext
16834 echo "$as_me:16834: result: $ac_cv_header_libintl_h" >&5
16835 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16836 if test $ac_cv_header_libintl_h = yes; then
16837 echo "$as_me:16837: checking for gettext in libc" >&5
16838 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
16839 if test "${gt_cv_func_gettext_libc+set}" = set; then
16840 echo $ECHO_N "(cached) $ECHO_C" >&6
16842 cat >conftest.
$ac_ext <<_ACEOF
16843 #line 16843 "configure"
16844 #include "confdefs.h"
16845 #include <libintl.h>
16849 return (int) gettext ("")
16854 rm -f conftest.
$ac_objext conftest
$ac_exeext
16855 if { (eval echo "$as_me:16855: \"$ac_link\"") >&5
16856 (eval $ac_link) 2>&5
16858 echo "$as_me:16858: \$? = $ac_status" >&5
16859 (exit $ac_status); } &&
16860 { ac_try
='test -s conftest$ac_exeext'
16861 { (eval echo "$as_me:16861: \"$ac_try\"") >&5
16862 (eval $ac_try) 2>&5
16864 echo "$as_me:16864: \$? = $ac_status" >&5
16865 (exit $ac_status); }; }; then
16866 gt_cv_func_gettext_libc
=yes
16868 echo "$as_me: failed program was:" >&5
16869 cat conftest.
$ac_ext >&5
16870 gt_cv_func_gettext_libc
=no
16872 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16874 echo "$as_me:16874: result: $gt_cv_func_gettext_libc" >&5
16875 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
16877 if test "$gt_cv_func_gettext_libc" != "yes"; then
16878 echo "$as_me:16878: checking for bindtextdomain in -lintl" >&5
16879 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
16880 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
16881 echo $ECHO_N "(cached) $ECHO_C" >&6
16883 ac_check_lib_save_LIBS
=$LIBS
16884 LIBS
="-lintl $LIBS"
16885 cat >conftest.
$ac_ext <<_ACEOF
16886 #line 16886 "configure"
16887 #include "confdefs.h"
16889 /* Override any gcc2 internal prototype to avoid an error. */
16893 /* We use char because int might match the return type of a gcc2
16894 builtin and then its argument prototype would still apply. */
16895 char bindtextdomain ();
16904 rm -f conftest.
$ac_objext conftest
$ac_exeext
16905 if { (eval echo "$as_me:16905: \"$ac_link\"") >&5
16906 (eval $ac_link) 2>&5
16908 echo "$as_me:16908: \$? = $ac_status" >&5
16909 (exit $ac_status); } &&
16910 { ac_try
='test -s conftest$ac_exeext'
16911 { (eval echo "$as_me:16911: \"$ac_try\"") >&5
16912 (eval $ac_try) 2>&5
16914 echo "$as_me:16914: \$? = $ac_status" >&5
16915 (exit $ac_status); }; }; then
16916 ac_cv_lib_intl_bindtextdomain
=yes
16918 echo "$as_me: failed program was:" >&5
16919 cat conftest.
$ac_ext >&5
16920 ac_cv_lib_intl_bindtextdomain
=no
16922 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16923 LIBS
=$ac_check_lib_save_LIBS
16925 echo "$as_me:16925: result: $ac_cv_lib_intl_bindtextdomain" >&5
16926 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
16927 if test $ac_cv_lib_intl_bindtextdomain = yes; then
16929 echo "$as_me:16929: checking for gettext in -lintl" >&5
16930 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
16931 if test "${ac_cv_lib_intl_gettext+set}" = set; then
16932 echo $ECHO_N "(cached) $ECHO_C" >&6
16934 ac_check_lib_save_LIBS
=$LIBS
16935 LIBS
="-lintl $LIBS"
16936 cat >conftest.
$ac_ext <<_ACEOF
16937 #line 16937 "configure"
16938 #include "confdefs.h"
16940 /* Override any gcc2 internal prototype to avoid an error. */
16944 /* We use char because int might match the return type of a gcc2
16945 builtin and then its argument prototype would still apply. */
16955 rm -f conftest.
$ac_objext conftest
$ac_exeext
16956 if { (eval echo "$as_me:16956: \"$ac_link\"") >&5
16957 (eval $ac_link) 2>&5
16959 echo "$as_me:16959: \$? = $ac_status" >&5
16960 (exit $ac_status); } &&
16961 { ac_try
='test -s conftest$ac_exeext'
16962 { (eval echo "$as_me:16962: \"$ac_try\"") >&5
16963 (eval $ac_try) 2>&5
16965 echo "$as_me:16965: \$? = $ac_status" >&5
16966 (exit $ac_status); }; }; then
16967 ac_cv_lib_intl_gettext
=yes
16969 echo "$as_me: failed program was:" >&5
16970 cat conftest.
$ac_ext >&5
16971 ac_cv_lib_intl_gettext
=no
16973 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16974 LIBS
=$ac_check_lib_save_LIBS
16976 echo "$as_me:16976: result: $ac_cv_lib_intl_gettext" >&5
16977 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
16978 if test $ac_cv_lib_intl_gettext = yes; then
16979 cat >>confdefs.h
<<EOF
16980 #define HAVE_LIBINTL 1
16983 LIBS
="-lintl $LIBS"
16991 if test "$gt_cv_func_gettext_libc" = "yes" \
16992 ||
test "$ac_cv_lib_intl_gettext" = "yes"; then
16994 cat >>confdefs.h
<<\EOF
16995 #define HAVE_GETTEXT 1
16998 # Extract the first word of "msgfmt", so it can be a program name with args.
16999 set dummy msgfmt
; ac_word
=$2
17000 echo "$as_me:17000: checking for $ac_word" >&5
17001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17002 if test "${ac_cv_path_MSGFMT+set}" = set; then
17003 echo $ECHO_N "(cached) $ECHO_C" >&6
17007 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
17010 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
17011 for ac_dir
in $PATH; do
17012 test -z "$ac_dir" && ac_dir
=.
17013 if test -f $ac_dir/$ac_word; then
17014 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
17015 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
17021 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
17025 MSGFMT
="$ac_cv_path_MSGFMT"
17026 if test -n "$MSGFMT"; then
17027 echo "$as_me:17027: result: $MSGFMT" >&5
17028 echo "${ECHO_T}$MSGFMT" >&6
17030 echo "$as_me:17030: result: no" >&5
17031 echo "${ECHO_T}no" >&6
17033 if test "$MSGFMT" != "no"; then
17035 for ac_func
in dcgettext
17037 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
17038 echo "$as_me:17038: checking for $ac_func" >&5
17039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17040 if eval "test \"\${$ac_ac_var+set}\" = set"; then
17041 echo $ECHO_N "(cached) $ECHO_C" >&6
17043 cat >conftest.
$ac_ext <<_ACEOF
17044 #line 17044 "configure"
17045 #include "confdefs.h"
17046 /* System header to define __stub macros and hopefully few prototypes,
17047 which can conflict with char $ac_func (); below. */
17048 #include <assert.h>
17049 /* Override any gcc2 internal prototype to avoid an error. */
17053 /* We use char because int might match the return type of a gcc2
17054 builtin and then its argument prototype would still apply. */
17061 /* The GNU C library defines this for functions which it implements
17062 to always fail with ENOSYS. Some functions are actually named
17063 something starting with __ and the normal name is an alias. */
17064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17074 rm -f conftest.
$ac_objext conftest
$ac_exeext
17075 if { (eval echo "$as_me:17075: \"$ac_link\"") >&5
17076 (eval $ac_link) 2>&5
17078 echo "$as_me:17078: \$? = $ac_status" >&5
17079 (exit $ac_status); } &&
17080 { ac_try
='test -s conftest$ac_exeext'
17081 { (eval echo "$as_me:17081: \"$ac_try\"") >&5
17082 (eval $ac_try) 2>&5
17084 echo "$as_me:17084: \$? = $ac_status" >&5
17085 (exit $ac_status); }; }; then
17086 eval "$ac_ac_var=yes"
17088 echo "$as_me: failed program was:" >&5
17089 cat conftest.
$ac_ext >&5
17090 eval "$ac_ac_var=no"
17092 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17094 echo "$as_me:17094: result: `eval echo '${'$ac_ac_var'}'`" >&5
17095 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
17096 if test `eval echo '${'$ac_ac_var'}'` = yes; then
17097 cat >>confdefs.h
<<EOF
17098 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
17104 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17105 set dummy gmsgfmt
; ac_word
=$2
17106 echo "$as_me:17106: checking for $ac_word" >&5
17107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17108 if test "${ac_cv_path_GMSGFMT+set}" = set; then
17109 echo $ECHO_N "(cached) $ECHO_C" >&6
17113 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
17116 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
17118 for ac_dir
in $ac_dummy; do
17120 test -z "$ac_dir" && ac_dir
=.
17121 if $as_executable_p "$ac_dir/$ac_word"; then
17122 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
17123 echo "$as_me:17123: found $ac_dir/$ac_word" >&5
17128 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
17132 GMSGFMT
=$ac_cv_path_GMSGFMT
17134 if test -n "$GMSGFMT"; then
17135 echo "$as_me:17135: result: $GMSGFMT" >&5
17136 echo "${ECHO_T}$GMSGFMT" >&6
17138 echo "$as_me:17138: result: no" >&5
17139 echo "${ECHO_T}no" >&6
17142 # Extract the first word of "xgettext", so it can be a program name with args.
17143 set dummy xgettext
; ac_word
=$2
17144 echo "$as_me:17144: checking for $ac_word" >&5
17145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17146 if test "${ac_cv_path_XGETTEXT+set}" = set; then
17147 echo $ECHO_N "(cached) $ECHO_C" >&6
17149 case "$XGETTEXT" in
17151 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
17154 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
17155 for ac_dir
in $PATH; do
17156 test -z "$ac_dir" && ac_dir
=.
17157 if test -f $ac_dir/$ac_word; then
17158 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
17159 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
17165 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
17169 XGETTEXT
="$ac_cv_path_XGETTEXT"
17170 if test -n "$XGETTEXT"; then
17171 echo "$as_me:17171: result: $XGETTEXT" >&5
17172 echo "${ECHO_T}$XGETTEXT" >&6
17174 echo "$as_me:17174: result: no" >&5
17175 echo "${ECHO_T}no" >&6
17178 cat >conftest.
$ac_ext <<_ACEOF
17179 #line 17179 "configure"
17180 #include "confdefs.h"
17185 extern int _nl_msg_cat_cntr;
17186 return _nl_msg_cat_cntr
17191 rm -f conftest.
$ac_objext conftest
$ac_exeext
17192 if { (eval echo "$as_me:17192: \"$ac_link\"") >&5
17193 (eval $ac_link) 2>&5
17195 echo "$as_me:17195: \$? = $ac_status" >&5
17196 (exit $ac_status); } &&
17197 { ac_try
='test -s conftest$ac_exeext'
17198 { (eval echo "$as_me:17198: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17201 echo "$as_me:17201: \$? = $ac_status" >&5
17202 (exit $ac_status); }; }; then
17206 echo "$as_me: failed program was:" >&5
17207 cat conftest.
$ac_ext >&5
17211 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17218 if test "$CATOBJEXT" = "NONE"; then
17219 echo "$as_me:17219: checking whether catgets can be used" >&5
17220 echo $ECHO_N "checking whether catgets can be used... $ECHO_C" >&6
17222 # Check whether --with-catgets or --without-catgets was given.
17223 if test "${with_catgets+set}" = set; then
17224 withval
="$with_catgets"
17225 nls_cv_use_catgets
=$withval
17227 nls_cv_use_catgets
=no
17229 echo "$as_me:17229: result: $nls_cv_use_catgets" >&5
17230 echo "${ECHO_T}$nls_cv_use_catgets" >&6
17232 if test "$nls_cv_use_catgets" = "yes"; then
17234 echo "$as_me:17234: checking for main in -li" >&5
17235 echo $ECHO_N "checking for main in -li... $ECHO_C" >&6
17236 if test "${ac_cv_lib_i_main+set}" = set; then
17237 echo $ECHO_N "(cached) $ECHO_C" >&6
17239 ac_check_lib_save_LIBS
=$LIBS
17241 cat >conftest.
$ac_ext <<_ACEOF
17242 #line 17242 "configure"
17243 #include "confdefs.h"
17253 rm -f conftest.
$ac_objext conftest
$ac_exeext
17254 if { (eval echo "$as_me:17254: \"$ac_link\"") >&5
17255 (eval $ac_link) 2>&5
17257 echo "$as_me:17257: \$? = $ac_status" >&5
17258 (exit $ac_status); } &&
17259 { ac_try
='test -s conftest$ac_exeext'
17260 { (eval echo "$as_me:17260: \"$ac_try\"") >&5
17261 (eval $ac_try) 2>&5
17263 echo "$as_me:17263: \$? = $ac_status" >&5
17264 (exit $ac_status); }; }; then
17265 ac_cv_lib_i_main
=yes
17267 echo "$as_me: failed program was:" >&5
17268 cat conftest.
$ac_ext >&5
17269 ac_cv_lib_i_main
=no
17271 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17272 LIBS
=$ac_check_lib_save_LIBS
17274 echo "$as_me:17274: result: $ac_cv_lib_i_main" >&5
17275 echo "${ECHO_T}$ac_cv_lib_i_main" >&6
17276 if test $ac_cv_lib_i_main = yes; then
17277 cat >>confdefs.h
<<EOF
17278 #define HAVE_LIBI 1
17285 echo "$as_me:17285: checking for catgets" >&5
17286 echo $ECHO_N "checking for catgets... $ECHO_C" >&6
17287 if test "${ac_cv_func_catgets+set}" = set; then
17288 echo $ECHO_N "(cached) $ECHO_C" >&6
17290 cat >conftest.
$ac_ext <<_ACEOF
17291 #line 17291 "configure"
17292 #include "confdefs.h"
17293 /* System header to define __stub macros and hopefully few prototypes,
17294 which can conflict with char catgets (); below. */
17295 #include <assert.h>
17296 /* Override any gcc2 internal prototype to avoid an error. */
17300 /* We use char because int might match the return type of a gcc2
17301 builtin and then its argument prototype would still apply. */
17308 /* The GNU C library defines this for functions which it implements
17309 to always fail with ENOSYS. Some functions are actually named
17310 something starting with __ and the normal name is an alias. */
17311 #if defined (__stub_catgets) || defined (__stub___catgets)
17321 rm -f conftest.
$ac_objext conftest
$ac_exeext
17322 if { (eval echo "$as_me:17322: \"$ac_link\"") >&5
17323 (eval $ac_link) 2>&5
17325 echo "$as_me:17325: \$? = $ac_status" >&5
17326 (exit $ac_status); } &&
17327 { ac_try
='test -s conftest$ac_exeext'
17328 { (eval echo "$as_me:17328: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17331 echo "$as_me:17331: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 ac_cv_func_catgets
=yes
17335 echo "$as_me: failed program was:" >&5
17336 cat conftest.
$ac_ext >&5
17337 ac_cv_func_catgets
=no
17339 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17341 echo "$as_me:17341: result: $ac_cv_func_catgets" >&5
17342 echo "${ECHO_T}$ac_cv_func_catgets" >&6
17343 if test $ac_cv_func_catgets = yes; then
17345 cat >>confdefs.h
<<\EOF
17346 #define HAVE_CATGETS 1
17349 INTLOBJS
="\$(CATOBJS)"
17350 # Extract the first word of "gencat", so it can be a program name with args.
17351 set dummy gencat
; ac_word
=$2
17352 echo "$as_me:17352: checking for $ac_word" >&5
17353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17354 if test "${ac_cv_path_GENCAT+set}" = set; then
17355 echo $ECHO_N "(cached) $ECHO_C" >&6
17359 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
17362 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
17364 for ac_dir
in $ac_dummy; do
17366 test -z "$ac_dir" && ac_dir
=.
17367 if $as_executable_p "$ac_dir/$ac_word"; then
17368 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
17369 echo "$as_me:17369: found $ac_dir/$ac_word" >&5
17374 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
17378 GENCAT
=$ac_cv_path_GENCAT
17380 if test -n "$GENCAT"; then
17381 echo "$as_me:17381: result: $GENCAT" >&5
17382 echo "${ECHO_T}$GENCAT" >&6
17384 echo "$as_me:17384: result: no" >&5
17385 echo "${ECHO_T}no" >&6
17387 if test "$GENCAT" != "no"; then
17388 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17389 set dummy gmsgfmt
; ac_word
=$2
17390 echo "$as_me:17390: checking for $ac_word" >&5
17391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17392 if test "${ac_cv_path_GMSGFMT+set}" = set; then
17393 echo $ECHO_N "(cached) $ECHO_C" >&6
17397 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
17400 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
17402 for ac_dir
in $ac_dummy; do
17404 test -z "$ac_dir" && ac_dir
=.
17405 if $as_executable_p "$ac_dir/$ac_word"; then
17406 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
17407 echo "$as_me:17407: found $ac_dir/$ac_word" >&5
17412 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
17416 GMSGFMT
=$ac_cv_path_GMSGFMT
17418 if test -n "$GMSGFMT"; then
17419 echo "$as_me:17419: result: $GMSGFMT" >&5
17420 echo "${ECHO_T}$GMSGFMT" >&6
17422 echo "$as_me:17422: result: no" >&5
17423 echo "${ECHO_T}no" >&6
17426 if test "$GMSGFMT" = "no"; then
17427 # Extract the first word of "msgfmt", so it can be a program name with args.
17428 set dummy msgfmt
; ac_word
=$2
17429 echo "$as_me:17429: checking for $ac_word" >&5
17430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17431 if test "${ac_cv_path_GMSGFMT+set}" = set; then
17432 echo $ECHO_N "(cached) $ECHO_C" >&6
17436 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
17439 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
17440 for ac_dir
in $PATH; do
17441 test -z "$ac_dir" && ac_dir
=.
17442 if test -f $ac_dir/$ac_word; then
17443 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
17444 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
17450 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
17454 GMSGFMT
="$ac_cv_path_GMSGFMT"
17455 if test -n "$GMSGFMT"; then
17456 echo "$as_me:17456: result: $GMSGFMT" >&5
17457 echo "${ECHO_T}$GMSGFMT" >&6
17459 echo "$as_me:17459: result: no" >&5
17460 echo "${ECHO_T}no" >&6
17464 # Extract the first word of "xgettext", so it can be a program name with args.
17465 set dummy xgettext
; ac_word
=$2
17466 echo "$as_me:17466: checking for $ac_word" >&5
17467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17468 if test "${ac_cv_path_XGETTEXT+set}" = set; then
17469 echo $ECHO_N "(cached) $ECHO_C" >&6
17471 case "$XGETTEXT" in
17473 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
17476 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
17477 for ac_dir
in $PATH; do
17478 test -z "$ac_dir" && ac_dir
=.
17479 if test -f $ac_dir/$ac_word; then
17480 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
17481 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
17487 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
17491 XGETTEXT
="$ac_cv_path_XGETTEXT"
17492 if test -n "$XGETTEXT"; then
17493 echo "$as_me:17493: result: $XGETTEXT" >&5
17494 echo "${ECHO_T}$XGETTEXT" >&6
17496 echo "$as_me:17496: result: no" >&5
17497 echo "${ECHO_T}no" >&6
17500 USE_INCLUDED_LIBINTL
=yes
17504 INTLDEPS
='$(top_builddir)/intl/libintl.a'
17506 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
17507 nls_cv_header_intl
=intl
/libintl.h
17508 nls_cv_header_libgt
=intl
/libgettext.h
17515 if test "$CATOBJEXT" = "NONE"; then
17516 nls_cv_use_gnu_gettext
=yes
17520 if test "$nls_cv_use_gnu_gettext" = "yes"; then
17521 INTLOBJS
="\$(GETTOBJS)"
17522 # Extract the first word of "msgfmt", so it can be a program name with args.
17523 set dummy msgfmt
; ac_word
=$2
17524 echo "$as_me:17524: checking for $ac_word" >&5
17525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17526 if test "${ac_cv_path_MSGFMT+set}" = set; then
17527 echo $ECHO_N "(cached) $ECHO_C" >&6
17531 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
17534 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
17535 for ac_dir
in $PATH; do
17536 test -z "$ac_dir" && ac_dir
=.
17537 if test -f $ac_dir/$ac_word; then
17538 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
17539 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
17545 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
17549 MSGFMT
="$ac_cv_path_MSGFMT"
17550 if test -n "$MSGFMT"; then
17551 echo "$as_me:17551: result: $MSGFMT" >&5
17552 echo "${ECHO_T}$MSGFMT" >&6
17554 echo "$as_me:17554: result: no" >&5
17555 echo "${ECHO_T}no" >&6
17558 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17559 set dummy gmsgfmt
; ac_word
=$2
17560 echo "$as_me:17560: checking for $ac_word" >&5
17561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17562 if test "${ac_cv_path_GMSGFMT+set}" = set; then
17563 echo $ECHO_N "(cached) $ECHO_C" >&6
17567 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
17570 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
17572 for ac_dir
in $ac_dummy; do
17574 test -z "$ac_dir" && ac_dir
=.
17575 if $as_executable_p "$ac_dir/$ac_word"; then
17576 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
17577 echo "$as_me:17577: found $ac_dir/$ac_word" >&5
17582 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
17586 GMSGFMT
=$ac_cv_path_GMSGFMT
17588 if test -n "$GMSGFMT"; then
17589 echo "$as_me:17589: result: $GMSGFMT" >&5
17590 echo "${ECHO_T}$GMSGFMT" >&6
17592 echo "$as_me:17592: result: no" >&5
17593 echo "${ECHO_T}no" >&6
17596 # Extract the first word of "xgettext", so it can be a program name with args.
17597 set dummy xgettext
; ac_word
=$2
17598 echo "$as_me:17598: checking for $ac_word" >&5
17599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17600 if test "${ac_cv_path_XGETTEXT+set}" = set; then
17601 echo $ECHO_N "(cached) $ECHO_C" >&6
17603 case "$XGETTEXT" in
17605 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
17608 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
17609 for ac_dir
in $PATH; do
17610 test -z "$ac_dir" && ac_dir
=.
17611 if test -f $ac_dir/$ac_word; then
17612 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
17613 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
17619 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
17623 XGETTEXT
="$ac_cv_path_XGETTEXT"
17624 if test -n "$XGETTEXT"; then
17625 echo "$as_me:17625: result: $XGETTEXT" >&5
17626 echo "${ECHO_T}$XGETTEXT" >&6
17628 echo "$as_me:17628: result: no" >&5
17629 echo "${ECHO_T}no" >&6
17632 USE_INCLUDED_LIBINTL
=yes
17636 INTLDEPS
='$(top_builddir)/intl/libintl.a'
17638 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
17639 nls_cv_header_intl
=intl
/libintl.h
17640 nls_cv_header_libgt
=intl
/libgettext.h
17643 if test "$XGETTEXT" != ":"; then
17644 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
17647 echo "$as_me:17647: result: found xgettext program is not GNU xgettext; ignore it" >&5
17648 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
17653 # We need to process the po/ directory.
17657 nls_cv_header_intl
=intl
/libintl.h
17658 nls_cv_header_libgt
=intl
/libgettext.h
17660 if test -z "$nls_cv_header_intl"; then
17661 # Clean out junk possibly left behind by a previous configuration.
17662 rm -f intl
/libintl.h
17664 ac_config_links
="$ac_config_links $nls_cv_header_intl:$nls_cv_header_libgt"
17666 ac_config_commands
="$ac_config_commands default-3"
17668 # If this is used in GNU gettext we have to set USE_NLS to `yes'
17669 # because some of the sources are only built for this goal.
17670 if test "$PACKAGE" = gettext; then
17672 USE_INCLUDED_LIBINTL
=yes
17675 for lang
in $ALL_LINGUAS; do
17676 GMOFILES
="$GMOFILES $lang.gmo"
17677 POFILES
="$POFILES $lang.po"
17680 if test "x$CATOBJEXT" != "x"; then
17681 if test "x$ALL_LINGUAS" = "x"; then
17684 echo "$as_me:17684: checking for catalogs to be installed" >&5
17685 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
17687 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
17688 case "$ALL_LINGUAS" in
17689 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
17692 LINGUAS
=$NEW_LINGUAS
17693 echo "$as_me:17693: result: $LINGUAS" >&5
17694 echo "${ECHO_T}$LINGUAS" >&6
17697 if test -n "$LINGUAS"; then
17698 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
17702 if test $ac_cv_header_locale_h = yes; then
17703 INCLUDE_LOCALE_H
="#include <locale.h>"
17705 INCLUDE_LOCALE_H
="\
17706 /* The system does not provide the header <locale.h>. Take care yourself. */"
17709 test -d intl || mkdir intl
17710 if test "$CATOBJEXT" = ".cat"; then
17711 echo "$as_me:17711: checking for linux/version.h" >&5
17712 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
17713 if test "${ac_cv_header_linux_version_h+set}" = set; then
17714 echo $ECHO_N "(cached) $ECHO_C" >&6
17716 cat >conftest.
$ac_ext <<_ACEOF
17717 #line 17717 "configure"
17718 #include "confdefs.h"
17719 #include <linux/version.h>
17721 if { (eval echo "$as_me:17721: \"$ac_cpp conftest.$ac_ext\"") >&5
17722 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17724 egrep -v '^ *\+' conftest.er1
>conftest.err
17726 cat conftest.err
>&5
17727 echo "$as_me:17727: \$? = $ac_status" >&5
17728 (exit $ac_status); } >/dev
/null
; then
17729 if test -s conftest.err
; then
17730 ac_cpp_err
=$ac_c_preproc_warn_flag
17737 if test -z "$ac_cpp_err"; then
17738 ac_cv_header_linux_version_h
=yes
17740 echo "$as_me: failed program was:" >&5
17741 cat conftest.
$ac_ext >&5
17742 ac_cv_header_linux_version_h
=no
17744 rm -f conftest.err conftest.
$ac_ext
17746 echo "$as_me:17746: result: $ac_cv_header_linux_version_h" >&5
17747 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
17748 if test $ac_cv_header_linux_version_h = yes; then
17754 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
17756 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
17757 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
17759 if test "$PACKAGE" = "gettext"; then
17768 if test -n "$ac_aux_dir"; then
17769 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
17771 if test -z "$MKINSTALLDIRS"; then
17772 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
17777 test -d po || mkdir po
17780 posrcprefix
="../" ;;
17782 posrcprefix
="$srcdir/" ;;
17784 posrcprefix
="../$srcdir/" ;;
17787 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
17788 < $srcdir/po
/POTFILES.
in > po
/POTFILES
17790 # These no-op lines work around a bug in automake 1.4:
17791 # it doesn't recognize the assignments to LIBOBJS in m4/*.m4.
17792 : LIBOBJS
="$LIBOBJS fnmatch.o lstat.o"
17793 : LIBOBJS
="$LIBOBJS malloc.o memcmp.o mktime.o"
17794 : LIBOBJS
="$LIBOBJS realloc.o regex.o stat.o strftime.o"
17796 # This is necessary so that .o files in LIBOBJS are also built via
17797 # the ANSI2KNR-filtering rules.
17798 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
17799 ac_config_files
="$ac_config_files Makefile lib/Makefile lib/posix/Makefile find/Makefile find/testsuite/Makefile xargs/Makefile xargs/testsuite/Makefile locate/Makefile locate/testsuite/Makefile intl/Makefile po/Makefile.in doc/Makefile m4/Makefile"
17800 cat >confcache
<<\_ACEOF
17801 # This file is a shell script that caches the results of configure
17802 # tests run on this system so they can be shared between configure
17803 # scripts and configure runs, see configure's option --config-cache.
17804 # It is not useful on other systems. If it contains results you don't
17805 # want to keep, you may remove or edit it.
17807 # config.status only pays attention to the cache file if you give it
17808 # the --recheck option to rerun configure.
17810 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17811 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17812 # following values.
17816 # The following way of writing the cache mishandles newlines in values,
17817 # but we know of no workaround that is simple, portable, and efficient.
17818 # So, don't put newlines in cache variables' values.
17819 # Ultrix sh set writes to stderr and can't be redirected directly,
17820 # and sets the high bit in the cache file unless we assign to the vars.
17823 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17825 # `set' does not quote correctly, so add quotes (double-quote
17826 # substitution turns \\\\ into \\, and sed turns \\ into \).
17829 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17832 # `set' quotes correctly as required by POSIX, so do not add quotes.
17834 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17841 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17843 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17845 if cmp -s $cache_file confcache
; then :; else
17846 if test -w $cache_file; then
17847 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17848 cat confcache
>$cache_file
17850 echo "not updating unwritable cache $cache_file"
17855 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17856 # Let make expand exec_prefix.
17857 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17859 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17860 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17861 # trailing colons and then remove the whole line if VPATH becomes empty
17862 # (actually we leave an empty line to preserve line numbers).
17863 if test "x$srcdir" = x.
; then
17864 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
17865 s/:*\$(srcdir):*/:/;
17866 s/:*\${srcdir}:*/:/;
17868 s/^\([^=]*=[ ]*\):*/\1/;
17874 DEFS
=-DHAVE_CONFIG_H
17876 : ${CONFIG_STATUS=./config.status}
17877 ac_clean_files_save
=$ac_clean_files
17878 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17879 { echo "$as_me:17879: creating $CONFIG_STATUS" >&5
17880 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17881 cat >$CONFIG_STATUS <<_ACEOF
17883 # Generated automatically by configure.
17884 # Run this file to recreate the current configuration.
17885 # Compiler output produced by configure, useful for debugging
17886 # configure, is in config.log if it exists.
17889 SHELL=\${CONFIG_SHELL-$SHELL}
17890 ac_cs_invocation="\$0 \$@"
17894 cat >>$CONFIG_STATUS <<\_ACEOF
17895 # Be Bourne compatible
17896 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17899 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
17903 # Name of the executable.
17904 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
17906 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17912 rm -f conf$$ conf$$.exe conf$$.
file
17914 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17915 # We could just check for DJGPP; but this test a) works b) is more generic
17916 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17917 if test -f conf$$.exe
; then
17918 # Don't use ln at all; we don't have any links
17923 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17928 rm -f conf$$ conf$$.exe conf$$.
file
17930 as_executable_p
="test -f"
17932 # Support unset when possible.
17933 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
17940 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
17941 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
17942 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
17943 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
17944 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
17945 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
17946 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
17947 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
17950 # We need space, tab and new line, in precisely that order.
17956 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
17962 # Files that config.status was made for.
17963 if test -n "$ac_config_files"; then
17964 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17967 if test -n "$ac_config_headers"; then
17968 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17971 if test -n "$ac_config_links"; then
17972 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17975 if test -n "$ac_config_commands"; then
17976 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17979 cat >>$CONFIG_STATUS <<\EOF
17982 \`$as_me' instantiates files from templates according to the
17983 current configuration.
17985 Usage: $0 [OPTIONS] [FILE]...
17987 -h, --help print this help, then exit
17988 -V, --version print version number, then exit
17989 -d, --debug don't remove temporary files
17990 --recheck update $as_me by reconfiguring in the same conditions
17991 --file=FILE[:TEMPLATE]
17992 instantiate the configuration file FILE
17993 --header=FILE[:TEMPLATE]
17994 instantiate the configuration header FILE
17996 Configuration files:
17999 Configuration headers:
18002 Configuration links:
18005 Configuration commands:
18008 Report bugs to <bug-autoconf@gnu.org>."
18011 cat >>$CONFIG_STATUS <<EOF
18014 configured by $0, generated by GNU Autoconf 2.49f,
18015 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18017 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18018 Free Software Foundation, Inc.
18019 This config.status script is free software; the Free Software Foundation
18020 gives unlimited permission to copy, distribute and modify it."
18025 cat >>$CONFIG_STATUS <<\EOF
18026 # If no file are specified by the user, then we need to provide default
18027 # value. By we need to know if files were specified by the user.
18033 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
18034 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
18036 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
18040 *) # This is not an option, so the user has probably given explicit
18042 ac_need_defaults
=false
;;
18046 # Handling of the options.
18048 cat >>$CONFIG_STATUS <<EOF
18049 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18050 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18051 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18053 cat >>$CONFIG_STATUS <<\EOF
18054 --version |
--vers* |
-V )
18055 echo "$ac_cs_version"; exit 0 ;;
18057 # Conflict between --help and --header
18058 { { echo "$as_me:18058: error: ambiguous option: $1
18059 Try \`$0 --help' for more information." >&5
18060 echo "$as_me: error: ambiguous option: $1
18061 Try \`$0 --help' for more information." >&2;}
18062 { (exit 1); exit 1; }; };;
18063 --help |
--hel |
-h )
18064 echo "$ac_cs_usage"; exit 0 ;;
18065 --debug |
--d* |
-d )
18067 --file |
--fil |
--fi |
--f )
18069 CONFIG_FILES
="$CONFIG_FILES $1"
18070 ac_need_defaults
=false
;;
18071 --header |
--heade |
--head |
--hea )
18073 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
18074 ac_need_defaults
=false
;;
18076 # Handling of arguments.
18077 'Makefile' ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18078 'lib/Makefile' ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
18079 'lib/posix/Makefile' ) CONFIG_FILES
="$CONFIG_FILES lib/posix/Makefile" ;;
18080 'find/Makefile' ) CONFIG_FILES
="$CONFIG_FILES find/Makefile" ;;
18081 'find/testsuite/Makefile' ) CONFIG_FILES
="$CONFIG_FILES find/testsuite/Makefile" ;;
18082 'xargs/Makefile' ) CONFIG_FILES
="$CONFIG_FILES xargs/Makefile" ;;
18083 'xargs/testsuite/Makefile' ) CONFIG_FILES
="$CONFIG_FILES xargs/testsuite/Makefile" ;;
18084 'locate/Makefile' ) CONFIG_FILES
="$CONFIG_FILES locate/Makefile" ;;
18085 'locate/testsuite/Makefile' ) CONFIG_FILES
="$CONFIG_FILES locate/testsuite/Makefile" ;;
18086 'intl/Makefile' ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
18087 'po/Makefile.in' ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
18088 'doc/Makefile' ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
18089 'm4/Makefile' ) CONFIG_FILES
="$CONFIG_FILES m4/Makefile" ;;
18090 '$nls_cv_header_intl' ) CONFIG_LINKS
="$CONFIG_LINKS $nls_cv_header_intl:$nls_cv_header_libgt" ;;
18091 'default-1' ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
18092 'default-2' ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-2" ;;
18093 'default-3' ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-3" ;;
18094 'config.h' ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
18096 # This is an error.
18097 -*) { { echo "$as_me:18097: error: unrecognized option: $1
18098 Try \`$0 --help' for more information." >&5
18099 echo "$as_me: error: unrecognized option: $1
18100 Try \`$0 --help' for more information." >&2;}
18101 { (exit 1); exit 1; }; } ;;
18102 *) { { echo "$as_me:18102: error: invalid argument: $1" >&5
18103 echo "$as_me: error: invalid argument: $1" >&2;}
18104 { (exit 1); exit 1; }; };;
18112 ## ----------------------- ##
18113 ## Running config.status. ##
18114 ## ----------------------- ##
18116 This file was extended by $as_me 2.49f, executed with
18117 > $ac_cs_invocation
18118 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18123 cat >>$CONFIG_STATUS <<\EOF
18124 # If the user did not use the arguments to specify the items to instantiate,
18125 # then the envvar interface is used. Set only those that are not.
18126 # We use the long form for the default assignment because of an extremely
18127 # bizarre bug on SunOS 4.1.3.
18128 if $ac_need_defaults; then
18129 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18130 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18131 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
18132 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18135 # Create a temporary directory, and hook for its removal unless debugging.
18138 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18139 trap '{ (exit $?); exit $?; }' 1 2 13 15
18142 # Create a (secure) tmp directory for tmp files.
18145 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18146 test -n "$tmp" && test -d "$tmp"
18149 tmp
=$TMPDIR/cs$$
-$RANDOM
18150 (umask 077 && mkdir
$tmp)
18153 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18154 { (exit 1); exit 1; }
18159 cat >>$CONFIG_STATUS <<EOF
18161 # INIT-COMMANDS section.
18165 for am_file in config.h; do
18166 case " $CONFIG_HEADERS " in
18168 echo timestamp > `echo $am_file | sed 's%:.*%%;s%[^/]*$%%'`stamp-h$am_indx
18171 am_indx=\`expr \$am_indx + 1\`
18173 AMDEP_TRUE="$AMDEP_TRUE"
18174 ac_aux_dir="$ac_aux_dir"
18178 cat >>$CONFIG_STATUS <<EOF
18181 # CONFIG_FILES section.
18184 # No need to generate the scripts if there are no CONFIG_FILES.
18185 # This happens for instance when ./config.status config.h
18186 if test -n "\$CONFIG_FILES"; then
18187 # Protect against being on the right side of a sed subst in config.status.
18188 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18189 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18190 s,@SHELL@,$SHELL,;t t
18191 s,@exec_prefix@,$exec_prefix,;t t
18192 s,@prefix@,$prefix,;t t
18193 s,@program_transform_name@,$program_transform_name,;t t
18194 s,@bindir@,$bindir,;t t
18195 s,@sbindir@,$sbindir,;t t
18196 s,@libexecdir@,$libexecdir,;t t
18197 s,@datadir@,$datadir,;t t
18198 s,@sysconfdir@,$sysconfdir,;t t
18199 s,@sharedstatedir@,$sharedstatedir,;t t
18200 s,@localstatedir@,$localstatedir,;t t
18201 s,@libdir@,$libdir,;t t
18202 s,@includedir@,$includedir,;t t
18203 s,@oldincludedir@,$oldincludedir,;t t
18204 s,@infodir@,$infodir,;t t
18205 s,@mandir@,$mandir,;t t
18206 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18207 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18208 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18209 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18210 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18211 s,@ECHO_C@,$ECHO_C,;t t
18212 s,@ECHO_N@,$ECHO_N,;t t
18213 s,@ECHO_T@,$ECHO_T,;t t
18214 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18215 s,@DEFS@,$DEFS,;t t
18216 s,@LIBS@,$LIBS,;t t
18217 s,@build@,$build,;t t
18218 s,@build_cpu@,$build_cpu,;t t
18219 s,@build_vendor@,$build_vendor,;t t
18220 s,@build_os@,$build_os,;t t
18221 s,@host@,$host,;t t
18222 s,@host_cpu@,$host_cpu,;t t
18223 s,@host_vendor@,$host_vendor,;t t
18224 s,@host_os@,$host_os,;t t
18225 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18226 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18227 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18228 s,@PACKAGE@,$PACKAGE,;t t
18229 s,@VERSION@,$VERSION,;t t
18230 s,@ACLOCAL@,$ACLOCAL,;t t
18231 s,@AUTOCONF@,$AUTOCONF,;t t
18232 s,@AUTOMAKE@,$AUTOMAKE,;t t
18233 s,@AUTOHEADER@,$AUTOHEADER,;t t
18234 s,@MAKEINFO@,$MAKEINFO,;t t
18235 s,@AMTAR@,$AMTAR,;t t
18236 s,@install_sh@,$install_sh,;t t
18237 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
18239 s,@SET_MAKE@,$SET_MAKE,;t t
18240 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18241 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18242 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18243 s,@DEPDIR@,$DEPDIR,;t t
18244 s,@INCLUDES@,$INCLUDES,;t t
18246 s,@CFLAGS@,$CFLAGS,;t t
18247 s,@LDFLAGS@,$LDFLAGS,;t t
18248 s,@CPPFLAGS@,$CPPFLAGS,;t t
18249 s,@ac_ct_CC@,$ac_ct_CC,;t t
18250 s,@EXEEXT@,$EXEEXT,;t t
18251 s,@OBJEXT@,$OBJEXT,;t t
18253 s,@_am_include@,$_am_include,;t t
18254 s,@_am_quote@,$_am_quote,;t t
18255 s,@CCDEPMODE@,$CCDEPMODE,;t t
18257 s,@ANSI2KNR@,$ANSI2KNR,;t t
18258 s,@RANLIB@,$RANLIB,;t t
18259 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18260 s,@LIBOBJS@,$LIBOBJS,;t t
18261 s,@GNU_PACKAGE@,$GNU_PACKAGE,;t t
18262 s,@OPTIONAL_BIN_PROGS@,$OPTIONAL_BIN_PROGS,;t t
18263 s,@OPTIONAL_BIN_ZCRIPTS@,$OPTIONAL_BIN_ZCRIPTS,;t t
18265 s,@DF_PROG@,$DF_PROG,;t t
18266 s,@ALLOCA@,$ALLOCA,;t t
18267 s,@GLIBC21@,$GLIBC21,;t t
18268 s,@LIBICONV@,$LIBICONV,;t t
18269 s,@USE_NLS@,$USE_NLS,;t t
18270 s,@MSGFMT@,$MSGFMT,;t t
18271 s,@GMSGFMT@,$GMSGFMT,;t t
18272 s,@XGETTEXT@,$XGETTEXT,;t t
18273 s,@GENCAT@,$GENCAT,;t t
18274 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
18275 s,@CATALOGS@,$CATALOGS,;t t
18276 s,@CATOBJEXT@,$CATOBJEXT,;t t
18277 s,@DATADIRNAME@,$DATADIRNAME,;t t
18278 s,@GMOFILES@,$GMOFILES,;t t
18279 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
18280 s,@INTLDEPS@,$INTLDEPS,;t t
18281 s,@INTLLIBS@,$INTLLIBS,;t t
18282 s,@INTLOBJS@,$INTLOBJS,;t t
18283 s,@POFILES@,$POFILES,;t t
18284 s,@POSUB@,$POSUB,;t t
18285 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
18286 s,@GT_NO@,$GT_NO,;t t
18287 s,@GT_YES@,$GT_YES,;t t
18288 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
18294 cat >>$CONFIG_STATUS <<\EOF
18295 # Split the substitutions into bite-sized pieces for seds with
18296 # small command number limits, like on Digital OSF/1 and HP-UX.
18297 ac_max_sed_lines
=48
18298 ac_sed_frag
=1 # Number of current file.
18299 ac_beg
=1 # First line for current file.
18300 ac_end
=$ac_max_sed_lines # Line after last line for current file.
18303 while $ac_more_lines; do
18304 if test $ac_beg -gt 1; then
18305 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18307 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18309 if test ! -s $tmp/subs.frag
; then
18310 ac_more_lines
=false
18312 # The purpose of the label and of the branching condition is to
18313 # speed up the sed processing (if there are no `@' at all, there
18314 # is no need to browse any of the substitutions).
18315 # These are the two extra sed commands mentioned above.
18317 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
18318 if test -z "$ac_sed_cmds"; then
18319 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
18321 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18323 ac_sed_frag
=`expr $ac_sed_frag + 1`
18325 ac_end
=`expr $ac_end + $ac_max_sed_lines`
18328 if test -z "$ac_sed_cmds"; then
18331 fi # test -n "$CONFIG_FILES"
18334 cat >>$CONFIG_STATUS <<\EOF
18335 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
18336 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18338 - |
*:- |
*:-:* ) # input from stdin
18340 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18341 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18342 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18343 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18344 * ) ac_file_in
=$ac_file.
in ;;
18347 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18348 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18349 X"$ac_file" : 'X\(//\)[^/]' \| \
18350 X"$ac_file" : 'X\(//\)$' \| \
18351 X"$ac_file" : 'X\(/\)' \| \
18352 . : '\(.\)' 2>/dev/null ||
18354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18355 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18356 /^X\(\/\/\)$/{ s//\1/; q; }
18357 /^X\(\/\).*/{ s//\1/; q; }
18359 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
18360 { case "$ac_dir" in
18361 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
18365 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18366 case $as_mkdir_dir in
18367 # Skip DOS drivespec
18368 ?
:) as_incr_dir
=$as_mkdir_dir ;;
18370 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
18371 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
18376 ac_dir_suffix
="/`echo $ac_dir|sed 's,^\./,,'`"
18377 # A "../" for each directory in $ac_dir_suffix.
18378 ac_dots
=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
18380 ac_dir_suffix
= ac_dots
=
18385 if test -z "$ac_dots"; then
18388 ac_top_srcdir
=`echo $ac_dots | sed 's,/$,,'`
18390 [\\/]* | ?
:[\\/]* )
18391 ac_srcdir
=$srcdir$ac_dir_suffix;
18392 ac_top_srcdir
=$srcdir ;;
18393 *) # Relative path.
18394 ac_srcdir
=$ac_dots$srcdir$ac_dir_suffix
18395 ac_top_srcdir
=$ac_dots$srcdir ;;
18399 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18400 *) ac_INSTALL
=$ac_dots$INSTALL ;;
18403 if test x
"$ac_file" != x-
; then
18404 { echo "$as_me:18404: creating $ac_file" >&5
18405 echo "$as_me: creating $ac_file" >&6;}
18408 # Let's still pretend it is `configure' which instantiates (i.e., don't
18409 # use $as_me), people would be surprised to read:
18410 # /* config.h. Generated automatically by config.status. */
18411 configure_input
="Generated automatically from `echo $ac_file_in |
18412 sed 's,.*/,,'` by configure."
18414 # First look for the input files in the build tree, otherwise in the
18416 ac_file_inputs
=`IFS=:
18417 for f in $ac_file_in; do
18419 -) echo $tmp/stdin ;;
18421 # Absolute (can't be DOS-style, as IFS=:)
18422 test -f "$f" || { { echo "$as_me:18422: error: cannot find input file: $f" >&5
18423 echo "$as_me: error: cannot find input file: $f" >&2;}
18424 { (exit 1); exit 1; }; }
18427 if test -f "$f"; then
18430 elif test -f "$srcdir/$f"; then
18435 { { echo "$as_me:18435: error: cannot find input file: $f" >&5
18436 echo "$as_me: error: cannot find input file: $f" >&2;}
18437 { (exit 1); exit 1; }; }
18440 done` ||
{ (exit 1); exit 1; }
18442 cat >>$CONFIG_STATUS <<EOF
18446 cat >>$CONFIG_STATUS <<\EOF
18448 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18449 s
,@configure_input@
,$configure_input,;t t
18450 s
,@srcdir@
,$ac_srcdir,;t t
18451 s
,@top_srcdir@
,$ac_top_srcdir,;t t
18452 s
,@INSTALL@
,$ac_INSTALL,;t t
18453 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18455 if test x"$ac_file" != x-; then
18456 mv $tmp/out $ac_file
18464 cat >>$CONFIG_STATUS <<\EOF
18467 # CONFIG_HEADER section.
18470 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
18471 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18473 # ac_d sets the value in "#define NAME VALUE" lines.
18474 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18475 ac_dB
='[ ].*$,\1#\2'
18478 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18479 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18480 ac_uB
='$,\1#\2define\3'
18484 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
18485 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18487 - |
*:- |
*:-:* ) # input from stdin
18489 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18490 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18491 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18492 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18493 * ) ac_file_in
=$ac_file.
in ;;
18496 test x
"$ac_file" != x-
&& { echo "$as_me:18496: creating $ac_file" >&5
18497 echo "$as_me: creating $ac_file" >&6;}
18499 # First look for the input files in the build tree, otherwise in the
18501 ac_file_inputs
=`IFS=:
18502 for f in $ac_file_in; do
18504 -) echo $tmp/stdin ;;
18506 # Absolute (can't be DOS-style, as IFS=:)
18507 test -f "$f" || { { echo "$as_me:18507: error: cannot find input file: $f" >&5
18508 echo "$as_me: error: cannot find input file: $f" >&2;}
18509 { (exit 1); exit 1; }; }
18512 if test -f "$f"; then
18515 elif test -f "$srcdir/$f"; then
18520 { { echo "$as_me:18520: error: cannot find input file: $f" >&5
18521 echo "$as_me: error: cannot find input file: $f" >&2;}
18522 { (exit 1); exit 1; }; }
18525 done` ||
{ (exit 1); exit 1; }
18526 # Remove the trailing spaces.
18527 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18531 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18532 # `conftest.undefs', that substitutes the proper values into
18533 # config.h.in to produce config.h. The first handles `#define'
18534 # templates, and the second `#undef' templates.
18535 # And first: Protect against being on the right side of a sed subst in
18536 # config.status. Protect against being in an unquoted here document
18537 # in config.status.
18538 rm -f conftest.defines conftest.undefs
18539 # Using a here document instead of a string reduces the quoting nightmare.
18540 # Putting comments in sed scripts is not portable.
18542 # `end' is used to avoid that the second main sed command (meant for
18543 # 0-ary CPP macros) applies to n-ary macro definitions.
18544 # See the Autoconf documentation for `clear'.
18545 cat >confdef2sed.
sed <<\EOF
18550 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
18552 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18555 # If some macros were called several times there might be several times
18556 # the same #defines, which is useless. Nevertheless, we may not want to
18557 # sort them, since we want the *last* AC-DEFINE to be honored.
18558 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18559 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18560 rm -f confdef2sed.sed
18562 # This sed command replaces #undef with comments. This is necessary, for
18563 # example, in the case of _POSIX_SOURCE, which is predefined and required
18564 # on some systems where configure will not decide to define it.
18565 cat >>conftest.undefs <<\EOF
18566 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18569 # Break up conftest.defines because some shells have a limit on the size
18570 # of here documents, and old seds have small limits too (100 cmds).
18571 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18572 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18573 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18574 echo ' :' >>$CONFIG_STATUS
18575 rm -f conftest.tail
18576 while grep . conftest.defines >/dev/null
18578 # Write a limited-size here document to $tmp/defines.sed.
18579 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18580 # Speed up: don't consider the non `#define' lines.
18581 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18582 # Work around the forget-to-reset-the-flag bug.
18583 echo 't clr' >>$CONFIG_STATUS
18584 echo ': clr' >>$CONFIG_STATUS
18585 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
18587 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18589 mv $tmp/out $tmp/in
18591 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
18592 rm -f conftest.defines
18593 mv conftest.
tail conftest.defines
18595 rm -f conftest.defines
18596 echo ' fi # egrep' >>$CONFIG_STATUS
18597 echo >>$CONFIG_STATUS
18599 # Break up conftest.undefs because some shells have a limit on the size
18600 # of here documents, and old seds have small limits too (100 cmds).
18601 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18602 rm -f conftest.
tail
18603 while grep . conftest.undefs
>/dev
/null
18605 # Write a limited-size here document to $tmp/undefs.sed.
18606 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18607 # Speed up: don't consider the non
`#undef'
18608 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18609 # Work around the forget-to-reset-the-flag bug.
18610 echo 't clr' >>$CONFIG_STATUS
18611 echo ': clr' >>$CONFIG_STATUS
18612 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18614 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18616 mv $tmp/out $tmp/in
18618 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18619 rm -f conftest.undefs
18620 mv conftest.tail conftest.undefs
18622 rm -f conftest.undefs
18624 cat >>$CONFIG_STATUS <<\EOF
18625 # Let's still pretend it is `configure
' which instantiates (i.e., don't
18626 # use $as_me), people would be surprised to read:
18627 # /* config.h. Generated automatically by config.status. */
18628 if test x
"$ac_file" = x-
; then
18629 echo "/* Generated automatically by configure. */" >$tmp/config.h
18631 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
18633 cat $tmp/in >>$tmp/config.h
18635 if test x
"$ac_file" != x-
; then
18636 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
18637 { echo "$as_me:18637: $ac_file is unchanged" >&5
18638 echo "$as_me: $ac_file is unchanged" >&6;}
18640 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18641 X"$ac_file" : 'X\(//\)[^/]' \| \
18642 X"$ac_file" : 'X\(//\)$' \| \
18643 X"$ac_file" : 'X\(/\)' \| \
18644 . : '\(.\)' 2>/dev/null ||
18646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18648 /^X\(\/\/\)$/{ s//\1/; q; }
18649 /^X\(\/\).*/{ s//\1/; q; }
18651 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
18652 { case "$ac_dir" in
18653 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
18657 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18658 case $as_mkdir_dir in
18659 # Skip DOS drivespec
18660 ?
:) as_incr_dir
=$as_mkdir_dir ;;
18662 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
18663 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
18670 mv $tmp/config.h
$ac_file
18674 rm -f $tmp/config.h
18678 cat >>$CONFIG_STATUS <<\EOF
18681 # CONFIG_LINKS section.
18684 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
18685 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
18686 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18688 { echo "$as_me:18688: linking $srcdir/$ac_source to $ac_dest" >&5
18689 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18691 if test ! -r $srcdir/$ac_source; then
18692 { { echo "$as_me:18692: error: $srcdir/$ac_source: File not found" >&5
18693 echo "$as_me: error: $srcdir/$ac_source: File not found" >&2;}
18694 { (exit 1); exit 1; }; }
18698 # Make relative symlinks.
18699 ac_dest_dir
=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18700 X"$ac_dest" : 'X\(//\)[^/]' \| \
18701 X"$ac_dest" : 'X\(//\)$' \| \
18702 X"$ac_dest" : 'X\(/\)' \| \
18703 . : '\(.\)' 2>/dev/null ||
18705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18706 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18707 /^X\(\/\/\)$/{ s//\1/; q; }
18708 /^X\(\/\).*/{ s//\1/; q; }
18710 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .
; then
18711 { case "$ac_dest_dir" in
18712 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
18715 as_dummy
="$ac_dest_dir"
18716 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18717 case $as_mkdir_dir in
18718 # Skip DOS drivespec
18719 ?
:) as_incr_dir
=$as_mkdir_dir ;;
18721 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
18722 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
18727 ac_dest_dir_suffix
="/`echo $ac_dest_dir|sed 's,^\./,,'`"
18728 # A "../" for each directory in $ac_dest_dir_suffix.
18729 ac_dots
=`echo $ac_dest_dir_suffix|sed 's,/[^/]*,../,g'`
18731 ac_dest_dir_suffix
= ac_dots
=
18735 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
18736 *) ac_rel_source
=$ac_dots$srcdir/$ac_source ;;
18739 # Make a symlink if possible; otherwise try a hard link.
18740 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
18741 ln $srcdir/$ac_source $ac_dest ||
18742 { { echo "$as_me:18742: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18743 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18744 { (exit 1); exit 1; }; }
18747 cat >>$CONFIG_STATUS <<\EOF
18750 # CONFIG_COMMANDS section.
18752 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
18753 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
18754 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18757 default-1
) test -z "$CONFIG_HEADERS" ||
echo timestamp
> stamp-h
;;
18759 test x
"$AMDEP_TRUE" != x
"" ||
18760 for mf
in $CONFIG_FILES; do
18762 Makefile
) dirpart
=.
;;
18763 */Makefile
) dirpart
=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
18766 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null ||
continue
18767 # Extract the definition of DEP_FILES from the Makefile without
18769 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
18770 test -z "$DEPDIR" && continue
18771 # When using ansi2knr, U may be empty or an underscore; expand it
18772 U
=`sed -n -e '/^U = / s///p' < "$mf"`
18773 test -d "$dirpart/$DEPDIR" || mkdir
"$dirpart/$DEPDIR"
18774 # We invoke sed twice because it is the simplest approach to
18775 # changing $(DEPDIR) to its actual value in the expansion.
18776 for file in `sed -n -e '
18777 /^DEP_FILES = .*\\\\$/ {
18786 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
18787 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18788 # Make sure the directory exists.
18789 test -f "$dirpart/$file" && continue
18790 fdir
=`echo "$file" | sed -e 's|/[^/]*$||'`
18791 $ac_aux_dir/mkinstalldirs
"$dirpart/$fdir" > /dev
/null
2>&1
18792 # echo "creating $dirpart/$file"
18793 echo '# dummy' > "$dirpart/$file"
18797 default-3
) case "$CONFIG_FILES" in *po
/Makefile.
in*)
18798 sed -e "/POTFILES =/r po/POTFILES" po
/Makefile.
in > po
/Makefile
18804 cat >>$CONFIG_STATUS <<\EOF
18806 { (exit 0); exit 0; }
18808 chmod +x
$CONFIG_STATUS
18809 ac_clean_files
=$ac_clean_files_save
18811 # configure is writing to config.log, and then calls config.status.
18812 # config.status does its own redirection, appending to config.log.
18813 # Unfortunately, on DOS this fails, as config.log is still kept open
18814 # by configure, so config.status won't be able to write to it; its
18815 # output is simply discarded. So we exec the FD to /dev/null,
18816 # effectively closing config.log, so it can be properly (re)opened and
18817 # appended to by config.status. When coming back to configure, we
18818 # need to make the FD available again.
18819 if test "$no_create" != yes; then
18822 $SHELL $CONFIG_STATUS || ac_cs_success
=false
18824 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18825 # would make configure fail if this is the last instruction.
18826 $ac_cs_success ||
{ (exit 1); exit 1; }