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"
14220 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
14221 echo "$as_me:14221: checking for $ac_header" >&5
14222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14223 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14226 cat >conftest.
$ac_ext <<_ACEOF
14227 #line 14227 "configure"
14228 #include "confdefs.h"
14229 #include <$ac_header>
14231 if { (eval echo "$as_me:14231: \"$ac_cpp conftest.$ac_ext\"") >&5
14232 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14234 egrep -v '^ *\+' conftest.er1
>conftest.err
14236 cat conftest.err
>&5
14237 echo "$as_me:14237: \$? = $ac_status" >&5
14238 (exit $ac_status); } >/dev
/null
; then
14239 if test -s conftest.err
; then
14240 ac_cpp_err
=$ac_c_preproc_warn_flag
14247 if test -z "$ac_cpp_err"; then
14248 eval "$ac_ac_Header=yes"
14250 echo "$as_me: failed program was:" >&5
14251 cat conftest.
$ac_ext >&5
14252 eval "$ac_ac_Header=no"
14254 rm -f conftest.err conftest.
$ac_ext
14256 echo "$as_me:14256: result: `eval echo '${'$ac_ac_Header'}'`" >&5
14257 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
14258 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
14259 cat >>confdefs.h
<<EOF
14260 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
14266 # Assume we'll default to using the included regex.c.
14267 ac_use_included_regex
=yes
14269 # However, if the system regex support is good enough that it passes the
14270 # the following run test, then default to *not* using the included regex.c.
14271 # If cross compiling, assume the test would fail and use the included
14272 # regex.c. The first failing regular expression is from `Spencer ere
14273 # test #75' in grep-2.3.
14274 echo "$as_me:14274: checking for working re_compile_pattern" >&5
14275 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
14276 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
14279 if test "$cross_compiling" = yes; then
14280 jm_cv_func_working_re_compile_pattern
=no
14282 cat >conftest.
$ac_ext <<_ACEOF
14283 #line 14283 "configure"
14284 #include "confdefs.h"
14290 static struct re_pattern_buffer regex;
14292 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
14293 /* Add this third left square bracket, , to balance the
14294 three right ones below. Otherwise autoconf-2.14 chokes. */
14295 s = re_compile_pattern ("a[[:]:]b\n", 9, ®ex);
14296 /* This should fail with _Invalid character class name_ error. */
14300 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
14301 s = re_compile_pattern ("{1", 2, ®ex);
14307 rm -f conftest
$ac_exeext
14308 if { (eval echo "$as_me:14308: \"$ac_link\"") >&5
14309 (eval $ac_link) 2>&5
14311 echo "$as_me:14311: \$? = $ac_status" >&5
14312 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14313 { (eval echo "$as_me:14313: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14316 echo "$as_me:14316: \$? = $ac_status" >&5
14317 (exit $ac_status); }; }; then
14318 jm_cv_func_working_re_compile_pattern
=yes
14320 echo "$as_me: program exited with status $ac_status" >&5
14321 echo "$as_me: failed program was:" >&5
14322 cat conftest.
$ac_ext >&5
14323 jm_cv_func_working_re_compile_pattern
=no
14325 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
14328 echo "$as_me:14328: result: $jm_cv_func_working_re_compile_pattern" >&5
14329 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
14330 if test $jm_cv_func_working_re_compile_pattern = yes; then
14331 ac_use_included_regex
=no
14334 test -n "lib/regex.c" ||
{ { echo "$as_me:14334: error: missing argument" >&5
14335 echo "$as_me: error: missing argument" >&2;}
14336 { (exit 1); exit 1; }; }
14338 # Check whether --with-included-regex or --without-included-regex was given.
14339 if test "${with_included_regex+set}" = set; then
14340 withval
="$with_included_regex"
14341 jm_with_regex
=$withval
14343 jm_with_regex
=$ac_use_included_regex
14345 if test "$jm_with_regex" = yes; then
14347 LIBOBJS
="$LIBOBJS regex.$ac_objext"
14350 for ac_func
in strncasecmp
14352 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14353 echo "$as_me:14353: checking for $ac_func" >&5
14354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14355 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 cat >conftest.
$ac_ext <<_ACEOF
14359 #line 14359 "configure"
14360 #include "confdefs.h"
14361 /* System header to define __stub macros and hopefully few prototypes,
14362 which can conflict with char $ac_func (); below. */
14363 #include <assert.h>
14364 /* Override any gcc2 internal prototype to avoid an error. */
14368 /* We use char because int might match the return type of a gcc2
14369 builtin and then its argument prototype would still apply. */
14376 /* The GNU C library defines this for functions which it implements
14377 to always fail with ENOSYS. Some functions are actually named
14378 something starting with __ and the normal name is an alias. */
14379 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14389 rm -f conftest.
$ac_objext conftest
$ac_exeext
14390 if { (eval echo "$as_me:14390: \"$ac_link\"") >&5
14391 (eval $ac_link) 2>&5
14393 echo "$as_me:14393: \$? = $ac_status" >&5
14394 (exit $ac_status); } &&
14395 { ac_try
='test -s conftest$ac_exeext'
14396 { (eval echo "$as_me:14396: \"$ac_try\"") >&5
14397 (eval $ac_try) 2>&5
14399 echo "$as_me:14399: \$? = $ac_status" >&5
14400 (exit $ac_status); }; }; then
14401 eval "$ac_ac_var=yes"
14403 echo "$as_me: failed program was:" >&5
14404 cat conftest.
$ac_ext >&5
14405 eval "$ac_ac_var=no"
14407 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14409 echo "$as_me:14409: result: `eval echo '${'$ac_ac_var'}'`" >&5
14410 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14411 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14412 cat >>confdefs.h
<<EOF
14413 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14417 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
14421 for ac_func
in stpcpy strstr strtol strtoul
14423 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14424 echo "$as_me:14424: checking for $ac_func" >&5
14425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14426 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 cat >conftest.
$ac_ext <<_ACEOF
14430 #line 14430 "configure"
14431 #include "confdefs.h"
14432 /* System header to define __stub macros and hopefully few prototypes,
14433 which can conflict with char $ac_func (); below. */
14434 #include <assert.h>
14435 /* Override any gcc2 internal prototype to avoid an error. */
14439 /* We use char because int might match the return type of a gcc2
14440 builtin and then its argument prototype would still apply. */
14447 /* The GNU C library defines this for functions which it implements
14448 to always fail with ENOSYS. Some functions are actually named
14449 something starting with __ and the normal name is an alias. */
14450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14460 rm -f conftest.
$ac_objext conftest
$ac_exeext
14461 if { (eval echo "$as_me:14461: \"$ac_link\"") >&5
14462 (eval $ac_link) 2>&5
14464 echo "$as_me:14464: \$? = $ac_status" >&5
14465 (exit $ac_status); } &&
14466 { ac_try
='test -s conftest$ac_exeext'
14467 { (eval echo "$as_me:14467: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14470 echo "$as_me:14470: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }; then
14472 eval "$ac_ac_var=yes"
14474 echo "$as_me: failed program was:" >&5
14475 cat conftest.
$ac_ext >&5
14476 eval "$ac_ac_var=no"
14478 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14480 echo "$as_me:14480: result: `eval echo '${'$ac_ac_var'}'`" >&5
14481 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14482 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14483 cat >>confdefs.h
<<EOF
14484 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14488 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
14492 for ac_func
in memcmp rpmatch
14494 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14495 echo "$as_me:14495: checking for $ac_func" >&5
14496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14497 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14498 echo $ECHO_N "(cached) $ECHO_C" >&6
14500 cat >conftest.
$ac_ext <<_ACEOF
14501 #line 14501 "configure"
14502 #include "confdefs.h"
14503 /* System header to define __stub macros and hopefully few prototypes,
14504 which can conflict with char $ac_func (); below. */
14505 #include <assert.h>
14506 /* Override any gcc2 internal prototype to avoid an error. */
14510 /* We use char because int might match the return type of a gcc2
14511 builtin and then its argument prototype would still apply. */
14518 /* The GNU C library defines this for functions which it implements
14519 to always fail with ENOSYS. Some functions are actually named
14520 something starting with __ and the normal name is an alias. */
14521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14531 rm -f conftest.
$ac_objext conftest
$ac_exeext
14532 if { (eval echo "$as_me:14532: \"$ac_link\"") >&5
14533 (eval $ac_link) 2>&5
14535 echo "$as_me:14535: \$? = $ac_status" >&5
14536 (exit $ac_status); } &&
14537 { ac_try
='test -s conftest$ac_exeext'
14538 { (eval echo "$as_me:14538: \"$ac_try\"") >&5
14539 (eval $ac_try) 2>&5
14541 echo "$as_me:14541: \$? = $ac_status" >&5
14542 (exit $ac_status); }; }; then
14543 eval "$ac_ac_var=yes"
14545 echo "$as_me: failed program was:" >&5
14546 cat conftest.
$ac_ext >&5
14547 eval "$ac_ac_var=no"
14549 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14551 echo "$as_me:14551: result: `eval echo '${'$ac_ac_var'}'`" >&5
14552 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14553 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14554 cat >>confdefs.h
<<EOF
14555 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14559 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
14563 for ac_func
in strdup
14565 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14566 echo "$as_me:14566: checking for $ac_func" >&5
14567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14568 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14569 echo $ECHO_N "(cached) $ECHO_C" >&6
14571 cat >conftest.
$ac_ext <<_ACEOF
14572 #line 14572 "configure"
14573 #include "confdefs.h"
14574 /* System header to define __stub macros and hopefully few prototypes,
14575 which can conflict with char $ac_func (); below. */
14576 #include <assert.h>
14577 /* Override any gcc2 internal prototype to avoid an error. */
14581 /* We use char because int might match the return type of a gcc2
14582 builtin and then its argument prototype would still apply. */
14589 /* The GNU C library defines this for functions which it implements
14590 to always fail with ENOSYS. Some functions are actually named
14591 something starting with __ and the normal name is an alias. */
14592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14602 rm -f conftest.
$ac_objext conftest
$ac_exeext
14603 if { (eval echo "$as_me:14603: \"$ac_link\"") >&5
14604 (eval $ac_link) 2>&5
14606 echo "$as_me:14606: \$? = $ac_status" >&5
14607 (exit $ac_status); } &&
14608 { ac_try
='test -s conftest$ac_exeext'
14609 { (eval echo "$as_me:14609: \"$ac_try\"") >&5
14610 (eval $ac_try) 2>&5
14612 echo "$as_me:14612: \$? = $ac_status" >&5
14613 (exit $ac_status); }; }; then
14614 eval "$ac_ac_var=yes"
14616 echo "$as_me: failed program was:" >&5
14617 cat conftest.
$ac_ext >&5
14618 eval "$ac_ac_var=no"
14620 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14622 echo "$as_me:14622: result: `eval echo '${'$ac_ac_var'}'`" >&5
14623 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14624 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14625 cat >>confdefs.h
<<EOF
14626 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14630 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
14634 for ac_func
in memcpy memset
14636 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14637 echo "$as_me:14637: checking for $ac_func" >&5
14638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14639 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14640 echo $ECHO_N "(cached) $ECHO_C" >&6
14642 cat >conftest.
$ac_ext <<_ACEOF
14643 #line 14643 "configure"
14644 #include "confdefs.h"
14645 /* System header to define __stub macros and hopefully few prototypes,
14646 which can conflict with char $ac_func (); below. */
14647 #include <assert.h>
14648 /* Override any gcc2 internal prototype to avoid an error. */
14652 /* We use char because int might match the return type of a gcc2
14653 builtin and then its argument prototype would still apply. */
14660 /* The GNU C library defines this for functions which it implements
14661 to always fail with ENOSYS. Some functions are actually named
14662 something starting with __ and the normal name is an alias. */
14663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14673 rm -f conftest.
$ac_objext conftest
$ac_exeext
14674 if { (eval echo "$as_me:14674: \"$ac_link\"") >&5
14675 (eval $ac_link) 2>&5
14677 echo "$as_me:14677: \$? = $ac_status" >&5
14678 (exit $ac_status); } &&
14679 { ac_try
='test -s conftest$ac_exeext'
14680 { (eval echo "$as_me:14680: \"$ac_try\"") >&5
14681 (eval $ac_try) 2>&5
14683 echo "$as_me:14683: \$? = $ac_status" >&5
14684 (exit $ac_status); }; }; then
14685 eval "$ac_ac_var=yes"
14687 echo "$as_me: failed program was:" >&5
14688 cat conftest.
$ac_ext >&5
14689 eval "$ac_ac_var=no"
14691 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14693 echo "$as_me:14693: result: `eval echo '${'$ac_ac_var'}'`" >&5
14694 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14695 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14696 cat >>confdefs.h
<<EOF
14697 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14701 LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
14705 for ac_func
in getpagesize
14707 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14708 echo "$as_me:14708: checking for $ac_func" >&5
14709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14710 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14713 cat >conftest.
$ac_ext <<_ACEOF
14714 #line 14714 "configure"
14715 #include "confdefs.h"
14716 /* System header to define __stub macros and hopefully few prototypes,
14717 which can conflict with char $ac_func (); below. */
14718 #include <assert.h>
14719 /* Override any gcc2 internal prototype to avoid an error. */
14723 /* We use char because int might match the return type of a gcc2
14724 builtin and then its argument prototype would still apply. */
14731 /* The GNU C library defines this for functions which it implements
14732 to always fail with ENOSYS. Some functions are actually named
14733 something starting with __ and the normal name is an alias. */
14734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14744 rm -f conftest.
$ac_objext conftest
$ac_exeext
14745 if { (eval echo "$as_me:14745: \"$ac_link\"") >&5
14746 (eval $ac_link) 2>&5
14748 echo "$as_me:14748: \$? = $ac_status" >&5
14749 (exit $ac_status); } &&
14750 { ac_try
='test -s conftest$ac_exeext'
14751 { (eval echo "$as_me:14751: \"$ac_try\"") >&5
14752 (eval $ac_try) 2>&5
14754 echo "$as_me:14754: \$? = $ac_status" >&5
14755 (exit $ac_status); }; }; then
14756 eval "$ac_ac_var=yes"
14758 echo "$as_me: failed program was:" >&5
14759 cat conftest.
$ac_ext >&5
14760 eval "$ac_ac_var=no"
14762 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14764 echo "$as_me:14764: result: `eval echo '${'$ac_ac_var'}'`" >&5
14765 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14766 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14767 cat >>confdefs.h
<<EOF
14768 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14774 # By default, argmatch should fail calling usage (1).
14776 cat >>confdefs.h
<<\EOF
14777 #define ARGMATCH_DIE usage (1)
14780 cat >>confdefs.h
<<\EOF
14781 #define ARGMATCH_DIE_DECL extern void usage ()
14784 echo "$as_me:14784: checking whether setvbuf arguments are reversed" >&5
14785 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
14786 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
14787 echo $ECHO_N "(cached) $ECHO_C" >&6
14789 if test "$cross_compiling" = yes; then
14790 { { echo "$as_me:14790: error: cannot run test program while cross compiling" >&5
14791 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14792 { (exit 1); exit 1; }; }
14794 cat >conftest.
$ac_ext <<_ACEOF
14795 #line 14795 "configure"
14796 #include "confdefs.h"
14798 /* If setvbuf has the reversed format, exit 0. */
14802 /* This call has the arguments reversed.
14803 A reversed system may check and see that the address of main
14804 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
14805 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
14807 putc('\r', stdout);
14808 exit(0); /* Non-reversed systems segv here. */
14811 rm -f conftest
$ac_exeext
14812 if { (eval echo "$as_me:14812: \"$ac_link\"") >&5
14813 (eval $ac_link) 2>&5
14815 echo "$as_me:14815: \$? = $ac_status" >&5
14816 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14817 { (eval echo "$as_me:14817: \"$ac_try\"") >&5
14818 (eval $ac_try) 2>&5
14820 echo "$as_me:14820: \$? = $ac_status" >&5
14821 (exit $ac_status); }; }; then
14822 ac_cv_func_setvbuf_reversed
=yes
14824 echo "$as_me: program exited with status $ac_status" >&5
14825 echo "$as_me: failed program was:" >&5
14826 cat conftest.
$ac_ext >&5
14827 ac_cv_func_setvbuf_reversed
=no
14829 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
14831 rm -f core core.
* *.core
14833 echo "$as_me:14833: result: $ac_cv_func_setvbuf_reversed" >&5
14834 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
14835 if test $ac_cv_func_setvbuf_reversed = yes; then
14837 cat >>confdefs.h
<<\EOF
14838 #define SETVBUF_REVERSED 1
14843 for ac_func
in getdelim
14845 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14846 echo "$as_me:14846: checking for $ac_func" >&5
14847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14848 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14849 echo $ECHO_N "(cached) $ECHO_C" >&6
14851 cat >conftest.
$ac_ext <<_ACEOF
14852 #line 14852 "configure"
14853 #include "confdefs.h"
14854 /* System header to define __stub macros and hopefully few prototypes,
14855 which can conflict with char $ac_func (); below. */
14856 #include <assert.h>
14857 /* Override any gcc2 internal prototype to avoid an error. */
14861 /* We use char because int might match the return type of a gcc2
14862 builtin and then its argument prototype would still apply. */
14869 /* The GNU C library defines this for functions which it implements
14870 to always fail with ENOSYS. Some functions are actually named
14871 something starting with __ and the normal name is an alias. */
14872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14882 rm -f conftest.
$ac_objext conftest
$ac_exeext
14883 if { (eval echo "$as_me:14883: \"$ac_link\"") >&5
14884 (eval $ac_link) 2>&5
14886 echo "$as_me:14886: \$? = $ac_status" >&5
14887 (exit $ac_status); } &&
14888 { ac_try
='test -s conftest$ac_exeext'
14889 { (eval echo "$as_me:14889: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14892 echo "$as_me:14892: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 eval "$ac_ac_var=yes"
14896 echo "$as_me: failed program was:" >&5
14897 cat conftest.
$ac_ext >&5
14898 eval "$ac_ac_var=no"
14900 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14902 echo "$as_me:14902: result: `eval echo '${'$ac_ac_var'}'`" >&5
14903 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14904 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14905 cat >>confdefs.h
<<EOF
14906 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14941 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14942 echo "$as_me:14942: checking for $ac_func" >&5
14943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14944 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14947 cat >conftest.
$ac_ext <<_ACEOF
14948 #line 14948 "configure"
14949 #include "confdefs.h"
14950 /* System header to define __stub macros and hopefully few prototypes,
14951 which can conflict with char $ac_func (); below. */
14952 #include <assert.h>
14953 /* Override any gcc2 internal prototype to avoid an error. */
14957 /* We use char because int might match the return type of a gcc2
14958 builtin and then its argument prototype would still apply. */
14965 /* The GNU C library defines this for functions which it implements
14966 to always fail with ENOSYS. Some functions are actually named
14967 something starting with __ and the normal name is an alias. */
14968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14978 rm -f conftest.
$ac_objext conftest
$ac_exeext
14979 if { (eval echo "$as_me:14979: \"$ac_link\"") >&5
14980 (eval $ac_link) 2>&5
14982 echo "$as_me:14982: \$? = $ac_status" >&5
14983 (exit $ac_status); } &&
14984 { ac_try
='test -s conftest$ac_exeext'
14985 { (eval echo "$as_me:14985: \"$ac_try\"") >&5
14986 (eval $ac_try) 2>&5
14988 echo "$as_me:14988: \$? = $ac_status" >&5
14989 (exit $ac_status); }; }; then
14990 eval "$ac_ac_var=yes"
14992 echo "$as_me: failed program was:" >&5
14993 cat conftest.
$ac_ext >&5
14994 eval "$ac_ac_var=no"
14996 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14998 echo "$as_me:14998: result: `eval echo '${'$ac_ac_var'}'`" >&5
14999 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15000 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15001 cat >>confdefs.h
<<EOF
15002 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15008 am_getline_needs_run_time_check
=no
15009 echo "$as_me:15009: checking for getline" >&5
15010 echo $ECHO_N "checking for getline... $ECHO_C" >&6
15011 if test "${ac_cv_func_getline+set}" = set; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15014 cat >conftest.
$ac_ext <<_ACEOF
15015 #line 15015 "configure"
15016 #include "confdefs.h"
15017 /* System header to define __stub macros and hopefully few prototypes,
15018 which can conflict with char getline (); below. */
15019 #include <assert.h>
15020 /* Override any gcc2 internal prototype to avoid an error. */
15024 /* We use char because int might match the return type of a gcc2
15025 builtin and then its argument prototype would still apply. */
15032 /* The GNU C library defines this for functions which it implements
15033 to always fail with ENOSYS. Some functions are actually named
15034 something starting with __ and the normal name is an alias. */
15035 #if defined (__stub_getline) || defined (__stub___getline)
15045 rm -f conftest.
$ac_objext conftest
$ac_exeext
15046 if { (eval echo "$as_me:15046: \"$ac_link\"") >&5
15047 (eval $ac_link) 2>&5
15049 echo "$as_me:15049: \$? = $ac_status" >&5
15050 (exit $ac_status); } &&
15051 { ac_try
='test -s conftest$ac_exeext'
15052 { (eval echo "$as_me:15052: \"$ac_try\"") >&5
15053 (eval $ac_try) 2>&5
15055 echo "$as_me:15055: \$? = $ac_status" >&5
15056 (exit $ac_status); }; }; then
15057 ac_cv_func_getline
=yes
15059 echo "$as_me: failed program was:" >&5
15060 cat conftest.
$ac_ext >&5
15061 ac_cv_func_getline
=no
15063 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15065 echo "$as_me:15065: result: $ac_cv_func_getline" >&5
15066 echo "${ECHO_T}$ac_cv_func_getline" >&6
15067 if test $ac_cv_func_getline = yes; then
15068 am_getline_needs_run_time_check
=yes
15070 am_cv_func_working_getline
=no
15073 if test $am_getline_needs_run_time_check = yes; then
15075 for ac_header
in string.h
15077 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
15078 echo "$as_me:15078: checking for $ac_header" >&5
15079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15080 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
15081 echo $ECHO_N "(cached) $ECHO_C" >&6
15083 cat >conftest.
$ac_ext <<_ACEOF
15084 #line 15084 "configure"
15085 #include "confdefs.h"
15086 #include <$ac_header>
15088 if { (eval echo "$as_me:15088: \"$ac_cpp conftest.$ac_ext\"") >&5
15089 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15091 egrep -v '^ *\+' conftest.er1
>conftest.err
15093 cat conftest.err
>&5
15094 echo "$as_me:15094: \$? = $ac_status" >&5
15095 (exit $ac_status); } >/dev
/null
; then
15096 if test -s conftest.err
; then
15097 ac_cpp_err
=$ac_c_preproc_warn_flag
15104 if test -z "$ac_cpp_err"; then
15105 eval "$ac_ac_Header=yes"
15107 echo "$as_me: failed program was:" >&5
15108 cat conftest.
$ac_ext >&5
15109 eval "$ac_ac_Header=no"
15111 rm -f conftest.err conftest.
$ac_ext
15113 echo "$as_me:15113: result: `eval echo '${'$ac_ac_Header'}'`" >&5
15114 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
15115 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
15116 cat >>confdefs.h
<<EOF
15117 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
15123 echo "$as_me:15123: checking for working getline function" >&5
15124 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
15125 if test "${am_cv_func_working_getline+set}" = set; then
15126 echo $ECHO_N "(cached) $ECHO_C" >&6
15128 echo fooN |
tr -d '\012'|
tr N
'\012' > conftest.data
15129 if test "$cross_compiling" = yes; then
15130 am_cv_func_working_getline
=no
15132 cat >conftest.
$ac_ext <<_ACEOF
15133 #line 15133 "configure"
15134 #include "confdefs.h"
15136 # include <stdio.h>
15137 # include <sys/types.h>
15139 # include <string.h>
15148 getstr(&path, &n, stream, terminator, offset);
15152 { /* Based on a test program from Karl Heuer. */
15156 FILE *in = fopen ("./conftest.data", "r");
15159 len = getline (&line, &siz, in);
15160 nread = getstr (&path, &pathsize, fp, '\0', count);
15162 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
15166 rm -f conftest
$ac_exeext
15167 if { (eval echo "$as_me:15167: \"$ac_link\"") >&5
15168 (eval $ac_link) 2>&5
15170 echo "$as_me:15170: \$? = $ac_status" >&5
15171 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15172 { (eval echo "$as_me:15172: \"$ac_try\"") >&5
15173 (eval $ac_try) 2>&5
15175 echo "$as_me:15175: \$? = $ac_status" >&5
15176 (exit $ac_status); }; }; then
15177 am_cv_func_working_getline
=yes
15179 echo "$as_me: program exited with status $ac_status" >&5
15180 echo "$as_me: failed program was:" >&5
15181 cat conftest.
$ac_ext >&5
15182 am_cv_func_working_getline
=no
15184 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
15187 echo "$as_me:15187: result: $am_cv_func_working_getline" >&5
15188 echo "${ECHO_T}$am_cv_func_working_getline" >&6
15191 if test $am_cv_func_working_getline = no
; then
15192 LIBOBJS
="$LIBOBJS getline.$ac_objext"
15195 if test $am_cv_func_working_getline != yes; then
15197 for ac_func
in getdelim
15199 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15200 echo "$as_me:15200: checking for $ac_func" >&5
15201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15202 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15203 echo $ECHO_N "(cached) $ECHO_C" >&6
15205 cat >conftest.
$ac_ext <<_ACEOF
15206 #line 15206 "configure"
15207 #include "confdefs.h"
15208 /* System header to define __stub macros and hopefully few prototypes,
15209 which can conflict with char $ac_func (); below. */
15210 #include <assert.h>
15211 /* Override any gcc2 internal prototype to avoid an error. */
15215 /* We use char because int might match the return type of a gcc2
15216 builtin and then its argument prototype would still apply. */
15223 /* The GNU C library defines this for functions which it implements
15224 to always fail with ENOSYS. Some functions are actually named
15225 something starting with __ and the normal name is an alias. */
15226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15236 rm -f conftest.
$ac_objext conftest
$ac_exeext
15237 if { (eval echo "$as_me:15237: \"$ac_link\"") >&5
15238 (eval $ac_link) 2>&5
15240 echo "$as_me:15240: \$? = $ac_status" >&5
15241 (exit $ac_status); } &&
15242 { ac_try
='test -s conftest$ac_exeext'
15243 { (eval echo "$as_me:15243: \"$ac_try\"") >&5
15244 (eval $ac_try) 2>&5
15246 echo "$as_me:15246: \$? = $ac_status" >&5
15247 (exit $ac_status); }; }; then
15248 eval "$ac_ac_var=yes"
15250 echo "$as_me: failed program was:" >&5
15251 cat conftest.
$ac_ext >&5
15252 eval "$ac_ac_var=no"
15254 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15256 echo "$as_me:15256: result: `eval echo '${'$ac_ac_var'}'`" >&5
15257 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15258 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15259 cat >>confdefs.h
<<EOF
15260 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15268 echo "$as_me:15268: checking whether we are using the GNU C Library 2.1 or newer" >&5
15269 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15270 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15271 echo $ECHO_N "(cached) $ECHO_C" >&6
15273 cat >conftest.
$ac_ext <<_ACEOF
15274 #line 15274 "configure"
15275 #include "confdefs.h"
15277 #include <features.h>
15278 #ifdef __GNU_LIBRARY__
15279 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15286 egrep "Lucky GNU user" >/dev
/null
2>&1; then
15287 ac_cv_gnu_library_2_1
=yes
15289 ac_cv_gnu_library_2_1
=no
15294 echo "$as_me:15294: result: $ac_cv_gnu_library_2_1" >&5
15295 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15297 GLIBC21
="$ac_cv_gnu_library_2_1"
15299 echo "$as_me:15299: checking for iconv" >&5
15300 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
15301 if test "${jm_cv_func_iconv+set}" = set; then
15302 echo $ECHO_N "(cached) $ECHO_C" >&6
15305 jm_cv_func_iconv
="no, consider installing libiconv"
15307 cat >conftest.
$ac_ext <<_ACEOF
15308 #line 15308 "configure"
15309 #include "confdefs.h"
15310 #include <stdlib.h>
15315 iconv_t cd = iconv_open("","");
15316 iconv(cd,NULL,NULL,NULL,NULL);
15322 rm -f conftest.
$ac_objext conftest
$ac_exeext
15323 if { (eval echo "$as_me:15323: \"$ac_link\"") >&5
15324 (eval $ac_link) 2>&5
15326 echo "$as_me:15326: \$? = $ac_status" >&5
15327 (exit $ac_status); } &&
15328 { ac_try
='test -s conftest$ac_exeext'
15329 { (eval echo "$as_me:15329: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15332 echo "$as_me:15332: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15334 jm_cv_func_iconv
=yes
15336 echo "$as_me: failed program was:" >&5
15337 cat conftest.
$ac_ext >&5
15339 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15340 if test "$jm_cv_func_iconv" != yes; then
15341 jm_save_LIBS
="$LIBS"
15342 LIBS
="$LIBS -liconv"
15343 cat >conftest.
$ac_ext <<_ACEOF
15344 #line 15344 "configure"
15345 #include "confdefs.h"
15346 #include <stdlib.h>
15351 iconv_t cd = iconv_open("","");
15352 iconv(cd,NULL,NULL,NULL,NULL);
15358 rm -f conftest.
$ac_objext conftest
$ac_exeext
15359 if { (eval echo "$as_me:15359: \"$ac_link\"") >&5
15360 (eval $ac_link) 2>&5
15362 echo "$as_me:15362: \$? = $ac_status" >&5
15363 (exit $ac_status); } &&
15364 { ac_try
='test -s conftest$ac_exeext'
15365 { (eval echo "$as_me:15365: \"$ac_try\"") >&5
15366 (eval $ac_try) 2>&5
15368 echo "$as_me:15368: \$? = $ac_status" >&5
15369 (exit $ac_status); }; }; then
15370 jm_cv_lib_iconv
=yes
15371 jm_cv_func_iconv
=yes
15373 echo "$as_me: failed program was:" >&5
15374 cat conftest.
$ac_ext >&5
15376 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15377 LIBS
="$jm_save_LIBS"
15381 echo "$as_me:15381: result: $jm_cv_func_iconv" >&5
15382 echo "${ECHO_T}$jm_cv_func_iconv" >&6
15383 if test "$jm_cv_func_iconv" = yes; then
15385 cat >>confdefs.h
<<\EOF
15386 #define HAVE_ICONV 1
15391 if test "$jm_cv_lib_iconv" = yes; then
15395 # These tests are for df.
15397 echo "$as_me:15397: checking for f_fstypename in struct statfs" >&5
15398 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6
15399 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
15400 echo $ECHO_N "(cached) $ECHO_C" >&6
15403 cat >conftest.
$ac_ext <<_ACEOF
15404 #line 15404 "configure"
15405 #include "confdefs.h"
15407 #include <sys/param.h>
15408 #include <sys/types.h>
15409 #include <sys/mount.h>
15414 struct statfs s; int i = sizeof s.f_fstypename;
15419 rm -f conftest.
$ac_objext
15420 if { (eval echo "$as_me:15420: \"$ac_compile\"") >&5
15421 (eval $ac_compile) 2>&5
15423 echo "$as_me:15423: \$? = $ac_status" >&5
15424 (exit $ac_status); } &&
15425 { ac_try
='test -s conftest.$ac_objext'
15426 { (eval echo "$as_me:15426: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15429 echo "$as_me:15429: \$? = $ac_status" >&5
15430 (exit $ac_status); }; }; then
15431 fu_cv_sys_f_fstypename_in_statfs
=yes
15433 echo "$as_me: failed program was:" >&5
15434 cat conftest.
$ac_ext >&5
15435 fu_cv_sys_f_fstypename_in_statfs
=no
15438 rm -f conftest.
$ac_objext conftest.
$ac_ext
15441 echo "$as_me:15441: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
15442 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6
15444 if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
15446 cat >>confdefs.h
<<EOF
15447 #define HAVE_F_FSTYPENAME_IN_STATFS 1
15452 for ac_func
in fchdir getcwd strerror endgrent endpwent
15454 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15455 echo "$as_me:15455: checking for $ac_func" >&5
15456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15457 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15458 echo $ECHO_N "(cached) $ECHO_C" >&6
15460 cat >conftest.
$ac_ext <<_ACEOF
15461 #line 15461 "configure"
15462 #include "confdefs.h"
15463 /* System header to define __stub macros and hopefully few prototypes,
15464 which can conflict with char $ac_func (); below. */
15465 #include <assert.h>
15466 /* Override any gcc2 internal prototype to avoid an error. */
15470 /* We use char because int might match the return type of a gcc2
15471 builtin and then its argument prototype would still apply. */
15478 /* The GNU C library defines this for functions which it implements
15479 to always fail with ENOSYS. Some functions are actually named
15480 something starting with __ and the normal name is an alias. */
15481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15491 rm -f conftest.
$ac_objext conftest
$ac_exeext
15492 if { (eval echo "$as_me:15492: \"$ac_link\"") >&5
15493 (eval $ac_link) 2>&5
15495 echo "$as_me:15495: \$? = $ac_status" >&5
15496 (exit $ac_status); } &&
15497 { ac_try
='test -s conftest$ac_exeext'
15498 { (eval echo "$as_me:15498: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15501 echo "$as_me:15501: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }; then
15503 eval "$ac_ac_var=yes"
15505 echo "$as_me: failed program was:" >&5
15506 cat conftest.
$ac_ext >&5
15507 eval "$ac_ac_var=no"
15509 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15511 echo "$as_me:15511: result: `eval echo '${'$ac_ac_var'}'`" >&5
15512 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15513 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15514 cat >>confdefs.h
<<EOF
15515 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15521 for ac_func
in vprintf
15523 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15524 echo "$as_me:15524: checking for $ac_func" >&5
15525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15526 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15529 cat >conftest.
$ac_ext <<_ACEOF
15530 #line 15530 "configure"
15531 #include "confdefs.h"
15532 /* System header to define __stub macros and hopefully few prototypes,
15533 which can conflict with char $ac_func (); below. */
15534 #include <assert.h>
15535 /* Override any gcc2 internal prototype to avoid an error. */
15539 /* We use char because int might match the return type of a gcc2
15540 builtin and then its argument prototype would still apply. */
15547 /* The GNU C library defines this for functions which it implements
15548 to always fail with ENOSYS. Some functions are actually named
15549 something starting with __ and the normal name is an alias. */
15550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15560 rm -f conftest.
$ac_objext conftest
$ac_exeext
15561 if { (eval echo "$as_me:15561: \"$ac_link\"") >&5
15562 (eval $ac_link) 2>&5
15564 echo "$as_me:15564: \$? = $ac_status" >&5
15565 (exit $ac_status); } &&
15566 { ac_try
='test -s conftest$ac_exeext'
15567 { (eval echo "$as_me:15567: \"$ac_try\"") >&5
15568 (eval $ac_try) 2>&5
15570 echo "$as_me:15570: \$? = $ac_status" >&5
15571 (exit $ac_status); }; }; then
15572 eval "$ac_ac_var=yes"
15574 echo "$as_me: failed program was:" >&5
15575 cat conftest.
$ac_ext >&5
15576 eval "$ac_ac_var=no"
15578 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15580 echo "$as_me:15580: result: `eval echo '${'$ac_ac_var'}'`" >&5
15581 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15582 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15583 cat >>confdefs.h
<<EOF
15584 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15587 echo "$as_me:15587: checking for _doprnt" >&5
15588 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
15589 if test "${ac_cv_func__doprnt+set}" = set; then
15590 echo $ECHO_N "(cached) $ECHO_C" >&6
15592 cat >conftest.
$ac_ext <<_ACEOF
15593 #line 15593 "configure"
15594 #include "confdefs.h"
15595 /* System header to define __stub macros and hopefully few prototypes,
15596 which can conflict with char _doprnt (); below. */
15597 #include <assert.h>
15598 /* Override any gcc2 internal prototype to avoid an error. */
15602 /* We use char because int might match the return type of a gcc2
15603 builtin and then its argument prototype would still apply. */
15610 /* The GNU C library defines this for functions which it implements
15611 to always fail with ENOSYS. Some functions are actually named
15612 something starting with __ and the normal name is an alias. */
15613 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15623 rm -f conftest.
$ac_objext conftest
$ac_exeext
15624 if { (eval echo "$as_me:15624: \"$ac_link\"") >&5
15625 (eval $ac_link) 2>&5
15627 echo "$as_me:15627: \$? = $ac_status" >&5
15628 (exit $ac_status); } &&
15629 { ac_try
='test -s conftest$ac_exeext'
15630 { (eval echo "$as_me:15630: \"$ac_try\"") >&5
15631 (eval $ac_try) 2>&5
15633 echo "$as_me:15633: \$? = $ac_status" >&5
15634 (exit $ac_status); }; }; then
15635 ac_cv_func__doprnt
=yes
15637 echo "$as_me: failed program was:" >&5
15638 cat conftest.
$ac_ext >&5
15639 ac_cv_func__doprnt
=no
15641 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15643 echo "$as_me:15643: result: $ac_cv_func__doprnt" >&5
15644 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
15645 if test $ac_cv_func__doprnt = yes; then
15647 cat >>confdefs.h
<<\EOF
15648 #define HAVE_DOPRNT 1
15656 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15657 # for constant arguments. Useless!
15658 echo "$as_me:15658: checking for working alloca.h" >&5
15659 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15660 if test "${ac_cv_working_alloca_h+set}" = set; then
15661 echo $ECHO_N "(cached) $ECHO_C" >&6
15663 cat >conftest.
$ac_ext <<_ACEOF
15664 #line 15664 "configure"
15665 #include "confdefs.h"
15666 #include <alloca.h>
15670 char *p = (char *) alloca (2 * sizeof (int));
15675 rm -f conftest.
$ac_objext conftest
$ac_exeext
15676 if { (eval echo "$as_me:15676: \"$ac_link\"") >&5
15677 (eval $ac_link) 2>&5
15679 echo "$as_me:15679: \$? = $ac_status" >&5
15680 (exit $ac_status); } &&
15681 { ac_try
='test -s conftest$ac_exeext'
15682 { (eval echo "$as_me:15682: \"$ac_try\"") >&5
15683 (eval $ac_try) 2>&5
15685 echo "$as_me:15685: \$? = $ac_status" >&5
15686 (exit $ac_status); }; }; then
15687 ac_cv_working_alloca_h
=yes
15689 echo "$as_me: failed program was:" >&5
15690 cat conftest.
$ac_ext >&5
15691 ac_cv_working_alloca_h
=no
15693 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15695 echo "$as_me:15695: result: $ac_cv_working_alloca_h" >&5
15696 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15697 if test $ac_cv_working_alloca_h = yes; then
15699 cat >>confdefs.h
<<\EOF
15700 #define HAVE_ALLOCA_H 1
15705 echo "$as_me:15705: checking for alloca" >&5
15706 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15707 if test "${ac_cv_func_alloca_works+set}" = set; then
15708 echo $ECHO_N "(cached) $ECHO_C" >&6
15710 cat >conftest.
$ac_ext <<_ACEOF
15711 #line 15711 "configure"
15712 #include "confdefs.h"
15714 # define alloca __builtin_alloca
15717 # include <malloc.h>
15718 # define alloca _alloca
15721 # include <alloca.h>
15726 # ifndef alloca /* predefined by HP cc +Olibcalls */
15737 char *p = (char *) alloca (1);
15742 rm -f conftest.
$ac_objext conftest
$ac_exeext
15743 if { (eval echo "$as_me:15743: \"$ac_link\"") >&5
15744 (eval $ac_link) 2>&5
15746 echo "$as_me:15746: \$? = $ac_status" >&5
15747 (exit $ac_status); } &&
15748 { ac_try
='test -s conftest$ac_exeext'
15749 { (eval echo "$as_me:15749: \"$ac_try\"") >&5
15750 (eval $ac_try) 2>&5
15752 echo "$as_me:15752: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
15754 ac_cv_func_alloca_works
=yes
15756 echo "$as_me: failed program was:" >&5
15757 cat conftest.
$ac_ext >&5
15758 ac_cv_func_alloca_works
=no
15760 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15762 echo "$as_me:15762: result: $ac_cv_func_alloca_works" >&5
15763 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15765 if test $ac_cv_func_alloca_works = yes; then
15767 cat >>confdefs.h
<<\EOF
15768 #define HAVE_ALLOCA 1
15772 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15773 # that cause trouble. Some versions do not even contain alloca or
15774 # contain a buggy version. If you still want to use their alloca,
15775 # use ar to extract alloca.o from them instead of compiling alloca.c.
15777 ALLOCA
=alloca.
$ac_objext
15779 cat >>confdefs.h
<<\EOF
15783 echo "$as_me:15783: checking whether \`alloca.c' needs Cray hooks" >&5
15784 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15785 if test "${ac_cv_os_cray+set}" = set; then
15786 echo $ECHO_N "(cached) $ECHO_C" >&6
15788 cat >conftest.
$ac_ext <<_ACEOF
15789 #line 15789 "configure"
15790 #include "confdefs.h"
15791 #if defined(CRAY) && ! defined(CRAY2)
15798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15799 egrep "webecray" >/dev
/null
2>&1; then
15807 echo "$as_me:15807: result: $ac_cv_os_cray" >&5
15808 echo "${ECHO_T}$ac_cv_os_cray" >&6
15809 if test $ac_cv_os_cray = yes; then
15810 for ac_func
in _getb67 GETB67 getb67
; do
15811 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15812 echo "$as_me:15812: checking for $ac_func" >&5
15813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15814 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15815 echo $ECHO_N "(cached) $ECHO_C" >&6
15817 cat >conftest.
$ac_ext <<_ACEOF
15818 #line 15818 "configure"
15819 #include "confdefs.h"
15820 /* System header to define __stub macros and hopefully few prototypes,
15821 which can conflict with char $ac_func (); below. */
15822 #include <assert.h>
15823 /* Override any gcc2 internal prototype to avoid an error. */
15827 /* We use char because int might match the return type of a gcc2
15828 builtin and then its argument prototype would still apply. */
15835 /* The GNU C library defines this for functions which it implements
15836 to always fail with ENOSYS. Some functions are actually named
15837 something starting with __ and the normal name is an alias. */
15838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15848 rm -f conftest.
$ac_objext conftest
$ac_exeext
15849 if { (eval echo "$as_me:15849: \"$ac_link\"") >&5
15850 (eval $ac_link) 2>&5
15852 echo "$as_me:15852: \$? = $ac_status" >&5
15853 (exit $ac_status); } &&
15854 { ac_try
='test -s conftest$ac_exeext'
15855 { (eval echo "$as_me:15855: \"$ac_try\"") >&5
15856 (eval $ac_try) 2>&5
15858 echo "$as_me:15858: \$? = $ac_status" >&5
15859 (exit $ac_status); }; }; then
15860 eval "$ac_ac_var=yes"
15862 echo "$as_me: failed program was:" >&5
15863 cat conftest.
$ac_ext >&5
15864 eval "$ac_ac_var=no"
15866 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15868 echo "$as_me:15868: result: `eval echo '${'$ac_ac_var'}'`" >&5
15869 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15870 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15872 cat >>confdefs.h
<<EOF
15873 #define CRAY_STACKSEG_END $ac_func
15882 echo "$as_me:15882: checking stack direction for C alloca" >&5
15883 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15884 if test "${ac_cv_c_stack_direction+set}" = set; then
15885 echo $ECHO_N "(cached) $ECHO_C" >&6
15887 if test "$cross_compiling" = yes; then
15888 ac_cv_c_stack_direction
=0
15890 cat >conftest.
$ac_ext <<_ACEOF
15891 #line 15891 "configure"
15892 #include "confdefs.h"
15894 find_stack_direction ()
15896 static char *addr = 0;
15901 return find_stack_direction ();
15904 return (&dummy > addr) ? 1 : -1;
15910 exit (find_stack_direction () < 0);
15913 rm -f conftest
$ac_exeext
15914 if { (eval echo "$as_me:15914: \"$ac_link\"") >&5
15915 (eval $ac_link) 2>&5
15917 echo "$as_me:15917: \$? = $ac_status" >&5
15918 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15919 { (eval echo "$as_me:15919: \"$ac_try\"") >&5
15920 (eval $ac_try) 2>&5
15922 echo "$as_me:15922: \$? = $ac_status" >&5
15923 (exit $ac_status); }; }; then
15924 ac_cv_c_stack_direction
=1
15926 echo "$as_me: program exited with status $ac_status" >&5
15927 echo "$as_me: failed program was:" >&5
15928 cat conftest.
$ac_ext >&5
15929 ac_cv_c_stack_direction
=-1
15931 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
15934 echo "$as_me:15934: result: $ac_cv_c_stack_direction" >&5
15935 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15937 cat >>confdefs.h
<<EOF
15938 #define STACK_DIRECTION $ac_cv_c_stack_direction
15943 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
15944 echo "$as_me:15944: checking for getmntent in -lsun" >&5
15945 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
15946 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
15947 echo $ECHO_N "(cached) $ECHO_C" >&6
15949 ac_check_lib_save_LIBS
=$LIBS
15951 cat >conftest.
$ac_ext <<_ACEOF
15952 #line 15952 "configure"
15953 #include "confdefs.h"
15955 /* Override any gcc2 internal prototype to avoid an error. */
15959 /* We use char because int might match the return type of a gcc2
15960 builtin and then its argument prototype would still apply. */
15970 rm -f conftest.
$ac_objext conftest
$ac_exeext
15971 if { (eval echo "$as_me:15971: \"$ac_link\"") >&5
15972 (eval $ac_link) 2>&5
15974 echo "$as_me:15974: \$? = $ac_status" >&5
15975 (exit $ac_status); } &&
15976 { ac_try
='test -s conftest$ac_exeext'
15977 { (eval echo "$as_me:15977: \"$ac_try\"") >&5
15978 (eval $ac_try) 2>&5
15980 echo "$as_me:15980: \$? = $ac_status" >&5
15981 (exit $ac_status); }; }; then
15982 ac_cv_lib_sun_getmntent
=yes
15984 echo "$as_me: failed program was:" >&5
15985 cat conftest.
$ac_ext >&5
15986 ac_cv_lib_sun_getmntent
=no
15988 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15989 LIBS
=$ac_check_lib_save_LIBS
15991 echo "$as_me:15991: result: $ac_cv_lib_sun_getmntent" >&5
15992 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
15993 if test $ac_cv_lib_sun_getmntent = yes; then
15996 echo "$as_me:15996: checking for getmntent in -lseq" >&5
15997 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
15998 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16001 ac_check_lib_save_LIBS
=$LIBS
16003 cat >conftest.
$ac_ext <<_ACEOF
16004 #line 16004 "configure"
16005 #include "confdefs.h"
16007 /* Override any gcc2 internal prototype to avoid an error. */
16011 /* We use char because int might match the return type of a gcc2
16012 builtin and then its argument prototype would still apply. */
16022 rm -f conftest.
$ac_objext conftest
$ac_exeext
16023 if { (eval echo "$as_me:16023: \"$ac_link\"") >&5
16024 (eval $ac_link) 2>&5
16026 echo "$as_me:16026: \$? = $ac_status" >&5
16027 (exit $ac_status); } &&
16028 { ac_try
='test -s conftest$ac_exeext'
16029 { (eval echo "$as_me:16029: \"$ac_try\"") >&5
16030 (eval $ac_try) 2>&5
16032 echo "$as_me:16032: \$? = $ac_status" >&5
16033 (exit $ac_status); }; }; then
16034 ac_cv_lib_seq_getmntent
=yes
16036 echo "$as_me: failed program was:" >&5
16037 cat conftest.
$ac_ext >&5
16038 ac_cv_lib_seq_getmntent
=no
16040 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16041 LIBS
=$ac_check_lib_save_LIBS
16043 echo "$as_me:16043: result: $ac_cv_lib_seq_getmntent" >&5
16044 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16045 if test $ac_cv_lib_seq_getmntent = yes; then
16048 echo "$as_me:16048: checking for getmntent in -lgen" >&5
16049 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16050 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16051 echo $ECHO_N "(cached) $ECHO_C" >&6
16053 ac_check_lib_save_LIBS
=$LIBS
16055 cat >conftest.
$ac_ext <<_ACEOF
16056 #line 16056 "configure"
16057 #include "confdefs.h"
16059 /* Override any gcc2 internal prototype to avoid an error. */
16063 /* We use char because int might match the return type of a gcc2
16064 builtin and then its argument prototype would still apply. */
16074 rm -f conftest.
$ac_objext conftest
$ac_exeext
16075 if { (eval echo "$as_me:16075: \"$ac_link\"") >&5
16076 (eval $ac_link) 2>&5
16078 echo "$as_me:16078: \$? = $ac_status" >&5
16079 (exit $ac_status); } &&
16080 { ac_try
='test -s conftest$ac_exeext'
16081 { (eval echo "$as_me:16081: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16084 echo "$as_me:16084: \$? = $ac_status" >&5
16085 (exit $ac_status); }; }; then
16086 ac_cv_lib_gen_getmntent
=yes
16088 echo "$as_me: failed program was:" >&5
16089 cat conftest.
$ac_ext >&5
16090 ac_cv_lib_gen_getmntent
=no
16092 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16093 LIBS
=$ac_check_lib_save_LIBS
16095 echo "$as_me:16095: result: $ac_cv_lib_gen_getmntent" >&5
16096 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16097 if test $ac_cv_lib_gen_getmntent = yes; then
16105 echo "$as_me:16105: checking for getmntent" >&5
16106 echo $ECHO_N "checking for getmntent... $ECHO_C" >&6
16107 if test "${ac_cv_func_getmntent+set}" = set; then
16108 echo $ECHO_N "(cached) $ECHO_C" >&6
16110 cat >conftest.
$ac_ext <<_ACEOF
16111 #line 16111 "configure"
16112 #include "confdefs.h"
16113 /* System header to define __stub macros and hopefully few prototypes,
16114 which can conflict with char getmntent (); below. */
16115 #include <assert.h>
16116 /* Override any gcc2 internal prototype to avoid an error. */
16120 /* We use char because int might match the return type of a gcc2
16121 builtin and then its argument prototype would still apply. */
16128 /* The GNU C library defines this for functions which it implements
16129 to always fail with ENOSYS. Some functions are actually named
16130 something starting with __ and the normal name is an alias. */
16131 #if defined (__stub_getmntent) || defined (__stub___getmntent)
16141 rm -f conftest.
$ac_objext conftest
$ac_exeext
16142 if { (eval echo "$as_me:16142: \"$ac_link\"") >&5
16143 (eval $ac_link) 2>&5
16145 echo "$as_me:16145: \$? = $ac_status" >&5
16146 (exit $ac_status); } &&
16147 { ac_try
='test -s conftest$ac_exeext'
16148 { (eval echo "$as_me:16148: \"$ac_try\"") >&5
16149 (eval $ac_try) 2>&5
16151 echo "$as_me:16151: \$? = $ac_status" >&5
16152 (exit $ac_status); }; }; then
16153 ac_cv_func_getmntent
=yes
16155 echo "$as_me: failed program was:" >&5
16156 cat conftest.
$ac_ext >&5
16157 ac_cv_func_getmntent
=no
16159 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16161 echo "$as_me:16161: result: $ac_cv_func_getmntent" >&5
16162 echo "${ECHO_T}$ac_cv_func_getmntent" >&6
16163 if test $ac_cv_func_getmntent = yes; then
16165 cat >>confdefs.h
<<\EOF
16166 #define HAVE_GETMNTENT 1
16171 echo "$as_me:16171: checking whether closedir returns void" >&5
16172 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16173 if test "${ac_cv_func_closedir_void+set}" = set; then
16174 echo $ECHO_N "(cached) $ECHO_C" >&6
16176 if test "$cross_compiling" = yes; then
16177 ac_cv_func_closedir_void
=yes
16179 cat >conftest.
$ac_ext <<_ACEOF
16180 #line 16180 "configure"
16181 #include "confdefs.h"
16182 #include <sys/types.h>
16183 #include <$ac_header_dirent>
16189 exit (closedir (opendir (".")) != 0);
16192 rm -f conftest
$ac_exeext
16193 if { (eval echo "$as_me:16193: \"$ac_link\"") >&5
16194 (eval $ac_link) 2>&5
16196 echo "$as_me:16196: \$? = $ac_status" >&5
16197 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16198 { (eval echo "$as_me:16198: \"$ac_try\"") >&5
16199 (eval $ac_try) 2>&5
16201 echo "$as_me:16201: \$? = $ac_status" >&5
16202 (exit $ac_status); }; }; then
16203 ac_cv_func_closedir_void
=no
16205 echo "$as_me: program exited with status $ac_status" >&5
16206 echo "$as_me: failed program was:" >&5
16207 cat conftest.
$ac_ext >&5
16208 ac_cv_func_closedir_void
=yes
16210 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
16213 echo "$as_me:16213: result: $ac_cv_func_closedir_void" >&5
16214 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
16215 if test $ac_cv_func_closedir_void = yes; then
16217 cat >>confdefs.h
<<\EOF
16218 #define CLOSEDIR_VOID 1
16223 for ac_header
in stdlib.h unistd.h
16225 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
16226 echo "$as_me:16226: checking for $ac_header" >&5
16227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16228 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
16229 echo $ECHO_N "(cached) $ECHO_C" >&6
16231 cat >conftest.
$ac_ext <<_ACEOF
16232 #line 16232 "configure"
16233 #include "confdefs.h"
16234 #include <$ac_header>
16236 if { (eval echo "$as_me:16236: \"$ac_cpp conftest.$ac_ext\"") >&5
16237 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16239 egrep -v '^ *\+' conftest.er1
>conftest.err
16241 cat conftest.err
>&5
16242 echo "$as_me:16242: \$? = $ac_status" >&5
16243 (exit $ac_status); } >/dev
/null
; then
16244 if test -s conftest.err
; then
16245 ac_cpp_err
=$ac_c_preproc_warn_flag
16252 if test -z "$ac_cpp_err"; then
16253 eval "$ac_ac_Header=yes"
16255 echo "$as_me: failed program was:" >&5
16256 cat conftest.
$ac_ext >&5
16257 eval "$ac_ac_Header=no"
16259 rm -f conftest.err conftest.
$ac_ext
16261 echo "$as_me:16261: result: `eval echo '${'$ac_ac_Header'}'`" >&5
16262 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
16263 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
16264 cat >>confdefs.h
<<EOF
16265 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
16271 for ac_func
in getpagesize
16273 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
16274 echo "$as_me:16274: checking for $ac_func" >&5
16275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16276 if eval "test \"\${$ac_ac_var+set}\" = set"; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6
16279 cat >conftest.
$ac_ext <<_ACEOF
16280 #line 16280 "configure"
16281 #include "confdefs.h"
16282 /* System header to define __stub macros and hopefully few prototypes,
16283 which can conflict with char $ac_func (); below. */
16284 #include <assert.h>
16285 /* Override any gcc2 internal prototype to avoid an error. */
16289 /* We use char because int might match the return type of a gcc2
16290 builtin and then its argument prototype would still apply. */
16297 /* The GNU C library defines this for functions which it implements
16298 to always fail with ENOSYS. Some functions are actually named
16299 something starting with __ and the normal name is an alias. */
16300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16310 rm -f conftest.
$ac_objext conftest
$ac_exeext
16311 if { (eval echo "$as_me:16311: \"$ac_link\"") >&5
16312 (eval $ac_link) 2>&5
16314 echo "$as_me:16314: \$? = $ac_status" >&5
16315 (exit $ac_status); } &&
16316 { ac_try
='test -s conftest$ac_exeext'
16317 { (eval echo "$as_me:16317: \"$ac_try\"") >&5
16318 (eval $ac_try) 2>&5
16320 echo "$as_me:16320: \$? = $ac_status" >&5
16321 (exit $ac_status); }; }; then
16322 eval "$ac_ac_var=yes"
16324 echo "$as_me: failed program was:" >&5
16325 cat conftest.
$ac_ext >&5
16326 eval "$ac_ac_var=no"
16328 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16330 echo "$as_me:16330: result: `eval echo '${'$ac_ac_var'}'`" >&5
16331 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16332 if test `eval echo '${'$ac_ac_var'}'` = yes; then
16333 cat >>confdefs.h
<<EOF
16334 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16340 echo "$as_me:16340: checking for working mmap" >&5
16341 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
16342 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16343 echo $ECHO_N "(cached) $ECHO_C" >&6
16345 if test "$cross_compiling" = yes; then
16346 ac_cv_func_mmap_fixed_mapped
=no
16348 cat >conftest.
$ac_ext <<_ACEOF
16349 #line 16349 "configure"
16350 #include "confdefs.h"
16351 /* Thanks to Mike Haertel and Jim Avera for this test.
16352 Here is a matrix of mmap possibilities:
16353 mmap private not fixed
16354 mmap private fixed at somewhere currently unmapped
16355 mmap private fixed at somewhere already mapped
16356 mmap shared not fixed
16357 mmap shared fixed at somewhere currently unmapped
16358 mmap shared fixed at somewhere already mapped
16359 For private mappings, we should verify that changes cannot be read()
16360 back from the file, nor mmap's back from the file at a different
16361 address. (There have been systems where private was not correctly
16362 implemented like the infamous i386 svr4.0, and systems where the
16363 VM page cache was not coherent with the file system buffer cache
16364 like early versions of FreeBSD and possibly contemporary NetBSD.)
16365 For shared mappings, we should conversely verify that changes get
16366 propogated back to all the places they're supposed to be.
16368 Grep wants private fixed already mapped.
16369 The main things grep needs to know about mmap are:
16370 * does it exist and is it safe to write into the mmap'd area
16371 * how to use it (BSD variants) */
16372 #include <sys/types.h>
16374 #include <sys/mman.h>
16376 #if STDC_HEADERS || HAVE_STDLIB_H
16377 # include <stdlib.h>
16382 # include <unistd.h>
16384 #include <sys/stat.h>
16386 /* This mess was copied from the GNU getpagesize.h. */
16387 #if !HAVE_GETPAGESIZE
16388 /* Assume that all systems that can run configure have sys/param.h. */
16389 # if !HAVE_SYS_PARAM_H
16390 # define HAVE_SYS_PARAM_H 1
16393 # ifdef _SC_PAGESIZE
16394 # define getpagesize() sysconf(_SC_PAGESIZE)
16395 # else /* no _SC_PAGESIZE */
16396 # if HAVE_SYS_PARAM_H
16397 # include <sys/param.h>
16398 # ifdef EXEC_PAGESIZE
16399 # define getpagesize() EXEC_PAGESIZE
16400 # else /* no EXEC_PAGESIZE */
16402 # define getpagesize() NBPG * CLSIZE
16405 # endif /* no CLSIZE */
16406 # else /* no NBPG */
16408 # define getpagesize() NBPC
16409 # else /* no NBPC */
16411 # define getpagesize() PAGESIZE
16412 # endif /* PAGESIZE */
16413 # endif /* no NBPC */
16414 # endif /* no NBPG */
16415 # endif /* no EXEC_PAGESIZE */
16416 # else /* no HAVE_SYS_PARAM_H */
16417 # define getpagesize() 8192 /* punt totally */
16418 # endif /* no HAVE_SYS_PARAM_H */
16419 # endif /* no _SC_PAGESIZE */
16421 #endif /* no HAVE_GETPAGESIZE */
16426 char *data, *data2, *data3;
16430 pagesize = getpagesize ();
16432 /* First, make a file with some known garbage in it. */
16433 data = (char *) malloc (pagesize);
16436 for (i = 0; i < pagesize; ++i)
16437 *(data + i) = rand ();
16439 fd = creat ("conftest.mmap", 0600);
16442 if (write (fd, data, pagesize) != pagesize)
16446 /* Next, try to mmap the file at a fixed address which already has
16447 something else allocated at it. If we can, also make sure that
16448 we see the same garbage. */
16449 fd = open ("conftest.mmap", O_RDWR);
16452 data2 = (char *) malloc (2 * pagesize);
16455 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
16456 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16457 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16459 for (i = 0; i < pagesize; ++i)
16460 if (*(data + i) != *(data2 + i))
16463 /* Finally, make sure that changes to the mapped area do not
16464 percolate back to the file as seen by read(). (This is a bug on
16465 some variants of i386 svr4.0.) */
16466 for (i = 0; i < pagesize; ++i)
16467 *(data2 + i) = *(data2 + i) + 1;
16468 data3 = (char *) malloc (pagesize);
16471 if (read (fd, data3, pagesize) != pagesize)
16473 for (i = 0; i < pagesize; ++i)
16474 if (*(data + i) != *(data3 + i))
16480 rm -f conftest
$ac_exeext
16481 if { (eval echo "$as_me:16481: \"$ac_link\"") >&5
16482 (eval $ac_link) 2>&5
16484 echo "$as_me:16484: \$? = $ac_status" >&5
16485 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16486 { (eval echo "$as_me:16486: \"$ac_try\"") >&5
16487 (eval $ac_try) 2>&5
16489 echo "$as_me:16489: \$? = $ac_status" >&5
16490 (exit $ac_status); }; }; then
16491 ac_cv_func_mmap_fixed_mapped
=yes
16493 echo "$as_me: program exited with status $ac_status" >&5
16494 echo "$as_me: failed program was:" >&5
16495 cat conftest.
$ac_ext >&5
16496 ac_cv_func_mmap_fixed_mapped
=no
16498 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_ext
16501 echo "$as_me:16501: result: $ac_cv_func_mmap_fixed_mapped" >&5
16502 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16503 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16505 cat >>confdefs.h
<<\EOF
16506 #define HAVE_MMAP 1
16510 rm -f conftest.mmap
16512 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
16513 unistd.h sys
/param.h
16515 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
16516 echo "$as_me:16516: checking for $ac_header" >&5
16517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16518 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
16519 echo $ECHO_N "(cached) $ECHO_C" >&6
16521 cat >conftest.
$ac_ext <<_ACEOF
16522 #line 16522 "configure"
16523 #include "confdefs.h"
16524 #include <$ac_header>
16526 if { (eval echo "$as_me:16526: \"$ac_cpp conftest.$ac_ext\"") >&5
16527 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16529 egrep -v '^ *\+' conftest.er1
>conftest.err
16531 cat conftest.err
>&5
16532 echo "$as_me:16532: \$? = $ac_status" >&5
16533 (exit $ac_status); } >/dev
/null
; then
16534 if test -s conftest.err
; then
16535 ac_cpp_err
=$ac_c_preproc_warn_flag
16542 if test -z "$ac_cpp_err"; then
16543 eval "$ac_ac_Header=yes"
16545 echo "$as_me: failed program was:" >&5
16546 cat conftest.
$ac_ext >&5
16547 eval "$ac_ac_Header=no"
16549 rm -f conftest.err conftest.
$ac_ext
16551 echo "$as_me:16551: result: `eval echo '${'$ac_ac_Header'}'`" >&5
16552 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
16553 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
16554 cat >>confdefs.h
<<EOF
16555 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
16561 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
16562 strdup __argz_count __argz_stringify __argz_next
16564 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
16565 echo "$as_me:16565: checking for $ac_func" >&5
16566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16567 if eval "test \"\${$ac_ac_var+set}\" = set"; then
16568 echo $ECHO_N "(cached) $ECHO_C" >&6
16570 cat >conftest.
$ac_ext <<_ACEOF
16571 #line 16571 "configure"
16572 #include "confdefs.h"
16573 /* System header to define __stub macros and hopefully few prototypes,
16574 which can conflict with char $ac_func (); below. */
16575 #include <assert.h>
16576 /* Override any gcc2 internal prototype to avoid an error. */
16580 /* We use char because int might match the return type of a gcc2
16581 builtin and then its argument prototype would still apply. */
16588 /* The GNU C library defines this for functions which it implements
16589 to always fail with ENOSYS. Some functions are actually named
16590 something starting with __ and the normal name is an alias. */
16591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16601 rm -f conftest.
$ac_objext conftest
$ac_exeext
16602 if { (eval echo "$as_me:16602: \"$ac_link\"") >&5
16603 (eval $ac_link) 2>&5
16605 echo "$as_me:16605: \$? = $ac_status" >&5
16606 (exit $ac_status); } &&
16607 { ac_try
='test -s conftest$ac_exeext'
16608 { (eval echo "$as_me:16608: \"$ac_try\"") >&5
16609 (eval $ac_try) 2>&5
16611 echo "$as_me:16611: \$? = $ac_status" >&5
16612 (exit $ac_status); }; }; then
16613 eval "$ac_ac_var=yes"
16615 echo "$as_me: failed program was:" >&5
16616 cat conftest.
$ac_ext >&5
16617 eval "$ac_ac_var=no"
16619 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16621 echo "$as_me:16621: result: `eval echo '${'$ac_ac_var'}'`" >&5
16622 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16623 if test `eval echo '${'$ac_ac_var'}'` = yes; then
16624 cat >>confdefs.h
<<EOF
16625 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16631 if test "${ac_cv_func_stpcpy+set}" != "set"; then
16633 for ac_func
in stpcpy
16635 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
16636 echo "$as_me:16636: checking for $ac_func" >&5
16637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16638 if eval "test \"\${$ac_ac_var+set}\" = set"; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16641 cat >conftest.
$ac_ext <<_ACEOF
16642 #line 16642 "configure"
16643 #include "confdefs.h"
16644 /* System header to define __stub macros and hopefully few prototypes,
16645 which can conflict with char $ac_func (); below. */
16646 #include <assert.h>
16647 /* Override any gcc2 internal prototype to avoid an error. */
16651 /* We use char because int might match the return type of a gcc2
16652 builtin and then its argument prototype would still apply. */
16659 /* The GNU C library defines this for functions which it implements
16660 to always fail with ENOSYS. Some functions are actually named
16661 something starting with __ and the normal name is an alias. */
16662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16672 rm -f conftest.
$ac_objext conftest
$ac_exeext
16673 if { (eval echo "$as_me:16673: \"$ac_link\"") >&5
16674 (eval $ac_link) 2>&5
16676 echo "$as_me:16676: \$? = $ac_status" >&5
16677 (exit $ac_status); } &&
16678 { ac_try
='test -s conftest$ac_exeext'
16679 { (eval echo "$as_me:16679: \"$ac_try\"") >&5
16680 (eval $ac_try) 2>&5
16682 echo "$as_me:16682: \$? = $ac_status" >&5
16683 (exit $ac_status); }; }; then
16684 eval "$ac_ac_var=yes"
16686 echo "$as_me: failed program was:" >&5
16687 cat conftest.
$ac_ext >&5
16688 eval "$ac_ac_var=no"
16690 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16692 echo "$as_me:16692: result: `eval echo '${'$ac_ac_var'}'`" >&5
16693 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16694 if test `eval echo '${'$ac_ac_var'}'` = yes; then
16695 cat >>confdefs.h
<<EOF
16696 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16703 if test "${ac_cv_func_stpcpy}" = "yes"; then
16705 cat >>confdefs.h
<<\EOF
16706 #define HAVE_STPCPY 1
16711 if test $ac_cv_header_locale_h = yes; then
16712 echo "$as_me:16712: checking for LC_MESSAGES" >&5
16713 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
16714 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
16715 echo $ECHO_N "(cached) $ECHO_C" >&6
16717 cat >conftest.
$ac_ext <<_ACEOF
16718 #line 16718 "configure"
16719 #include "confdefs.h"
16720 #include <locale.h>
16729 rm -f conftest.
$ac_objext conftest
$ac_exeext
16730 if { (eval echo "$as_me:16730: \"$ac_link\"") >&5
16731 (eval $ac_link) 2>&5
16733 echo "$as_me:16733: \$? = $ac_status" >&5
16734 (exit $ac_status); } &&
16735 { ac_try
='test -s conftest$ac_exeext'
16736 { (eval echo "$as_me:16736: \"$ac_try\"") >&5
16737 (eval $ac_try) 2>&5
16739 echo "$as_me:16739: \$? = $ac_status" >&5
16740 (exit $ac_status); }; }; then
16741 am_cv_val_LC_MESSAGES
=yes
16743 echo "$as_me: failed program was:" >&5
16744 cat conftest.
$ac_ext >&5
16745 am_cv_val_LC_MESSAGES
=no
16747 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16749 echo "$as_me:16749: result: $am_cv_val_LC_MESSAGES" >&5
16750 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
16751 if test $am_cv_val_LC_MESSAGES = yes; then
16753 cat >>confdefs.h
<<\EOF
16754 #define HAVE_LC_MESSAGES 1
16759 echo "$as_me:16759: checking whether NLS is requested" >&5
16760 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
16761 # Check whether --enable-nls or --disable-nls was given.
16762 if test "${enable_nls+set}" = set; then
16763 enableval
="$enable_nls"
16768 echo "$as_me:16768: result: $USE_NLS" >&5
16769 echo "${ECHO_T}$USE_NLS" >&6
16771 USE_INCLUDED_LIBINTL
=no
16773 if test "$USE_NLS" = "yes"; then
16775 cat >>confdefs.h
<<\EOF
16776 #define ENABLE_NLS 1
16779 echo "$as_me:16779: checking whether included gettext is requested" >&5
16780 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
16782 # Check whether --with-included-gettext or --without-included-gettext was given.
16783 if test "${with_included_gettext+set}" = set; then
16784 withval
="$with_included_gettext"
16785 nls_cv_force_use_gnu_gettext
=$withval
16787 nls_cv_force_use_gnu_gettext
=no
16789 echo "$as_me:16789: result: $nls_cv_force_use_gnu_gettext" >&5
16790 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
16792 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
16793 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
16794 nls_cv_header_intl
=
16795 nls_cv_header_libgt
=
16798 echo "$as_me:16798: checking for libintl.h" >&5
16799 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16800 if test "${ac_cv_header_libintl_h+set}" = set; then
16801 echo $ECHO_N "(cached) $ECHO_C" >&6
16803 cat >conftest.
$ac_ext <<_ACEOF
16804 #line 16804 "configure"
16805 #include "confdefs.h"
16806 #include <libintl.h>
16808 if { (eval echo "$as_me:16808: \"$ac_cpp conftest.$ac_ext\"") >&5
16809 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16811 egrep -v '^ *\+' conftest.er1
>conftest.err
16813 cat conftest.err
>&5
16814 echo "$as_me:16814: \$? = $ac_status" >&5
16815 (exit $ac_status); } >/dev
/null
; then
16816 if test -s conftest.err
; then
16817 ac_cpp_err
=$ac_c_preproc_warn_flag
16824 if test -z "$ac_cpp_err"; then
16825 ac_cv_header_libintl_h
=yes
16827 echo "$as_me: failed program was:" >&5
16828 cat conftest.
$ac_ext >&5
16829 ac_cv_header_libintl_h
=no
16831 rm -f conftest.err conftest.
$ac_ext
16833 echo "$as_me:16833: result: $ac_cv_header_libintl_h" >&5
16834 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16835 if test $ac_cv_header_libintl_h = yes; then
16836 echo "$as_me:16836: checking for gettext in libc" >&5
16837 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
16838 if test "${gt_cv_func_gettext_libc+set}" = set; then
16839 echo $ECHO_N "(cached) $ECHO_C" >&6
16841 cat >conftest.
$ac_ext <<_ACEOF
16842 #line 16842 "configure"
16843 #include "confdefs.h"
16844 #include <libintl.h>
16848 return (int) gettext ("")
16853 rm -f conftest.
$ac_objext conftest
$ac_exeext
16854 if { (eval echo "$as_me:16854: \"$ac_link\"") >&5
16855 (eval $ac_link) 2>&5
16857 echo "$as_me:16857: \$? = $ac_status" >&5
16858 (exit $ac_status); } &&
16859 { ac_try
='test -s conftest$ac_exeext'
16860 { (eval echo "$as_me:16860: \"$ac_try\"") >&5
16861 (eval $ac_try) 2>&5
16863 echo "$as_me:16863: \$? = $ac_status" >&5
16864 (exit $ac_status); }; }; then
16865 gt_cv_func_gettext_libc
=yes
16867 echo "$as_me: failed program was:" >&5
16868 cat conftest.
$ac_ext >&5
16869 gt_cv_func_gettext_libc
=no
16871 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16873 echo "$as_me:16873: result: $gt_cv_func_gettext_libc" >&5
16874 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
16876 if test "$gt_cv_func_gettext_libc" != "yes"; then
16877 echo "$as_me:16877: checking for bindtextdomain in -lintl" >&5
16878 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
16879 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
16880 echo $ECHO_N "(cached) $ECHO_C" >&6
16882 ac_check_lib_save_LIBS
=$LIBS
16883 LIBS
="-lintl $LIBS"
16884 cat >conftest.
$ac_ext <<_ACEOF
16885 #line 16885 "configure"
16886 #include "confdefs.h"
16888 /* Override any gcc2 internal prototype to avoid an error. */
16892 /* We use char because int might match the return type of a gcc2
16893 builtin and then its argument prototype would still apply. */
16894 char bindtextdomain ();
16903 rm -f conftest.
$ac_objext conftest
$ac_exeext
16904 if { (eval echo "$as_me:16904: \"$ac_link\"") >&5
16905 (eval $ac_link) 2>&5
16907 echo "$as_me:16907: \$? = $ac_status" >&5
16908 (exit $ac_status); } &&
16909 { ac_try
='test -s conftest$ac_exeext'
16910 { (eval echo "$as_me:16910: \"$ac_try\"") >&5
16911 (eval $ac_try) 2>&5
16913 echo "$as_me:16913: \$? = $ac_status" >&5
16914 (exit $ac_status); }; }; then
16915 ac_cv_lib_intl_bindtextdomain
=yes
16917 echo "$as_me: failed program was:" >&5
16918 cat conftest.
$ac_ext >&5
16919 ac_cv_lib_intl_bindtextdomain
=no
16921 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16922 LIBS
=$ac_check_lib_save_LIBS
16924 echo "$as_me:16924: result: $ac_cv_lib_intl_bindtextdomain" >&5
16925 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
16926 if test $ac_cv_lib_intl_bindtextdomain = yes; then
16928 echo "$as_me:16928: checking for gettext in -lintl" >&5
16929 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
16930 if test "${ac_cv_lib_intl_gettext+set}" = set; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16933 ac_check_lib_save_LIBS
=$LIBS
16934 LIBS
="-lintl $LIBS"
16935 cat >conftest.
$ac_ext <<_ACEOF
16936 #line 16936 "configure"
16937 #include "confdefs.h"
16939 /* Override any gcc2 internal prototype to avoid an error. */
16943 /* We use char because int might match the return type of a gcc2
16944 builtin and then its argument prototype would still apply. */
16954 rm -f conftest.
$ac_objext conftest
$ac_exeext
16955 if { (eval echo "$as_me:16955: \"$ac_link\"") >&5
16956 (eval $ac_link) 2>&5
16958 echo "$as_me:16958: \$? = $ac_status" >&5
16959 (exit $ac_status); } &&
16960 { ac_try
='test -s conftest$ac_exeext'
16961 { (eval echo "$as_me:16961: \"$ac_try\"") >&5
16962 (eval $ac_try) 2>&5
16964 echo "$as_me:16964: \$? = $ac_status" >&5
16965 (exit $ac_status); }; }; then
16966 ac_cv_lib_intl_gettext
=yes
16968 echo "$as_me: failed program was:" >&5
16969 cat conftest.
$ac_ext >&5
16970 ac_cv_lib_intl_gettext
=no
16972 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16973 LIBS
=$ac_check_lib_save_LIBS
16975 echo "$as_me:16975: result: $ac_cv_lib_intl_gettext" >&5
16976 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
16977 if test $ac_cv_lib_intl_gettext = yes; then
16978 cat >>confdefs.h
<<EOF
16979 #define HAVE_LIBINTL 1
16982 LIBS
="-lintl $LIBS"
16990 if test "$gt_cv_func_gettext_libc" = "yes" \
16991 ||
test "$ac_cv_lib_intl_gettext" = "yes"; then
16993 cat >>confdefs.h
<<\EOF
16994 #define HAVE_GETTEXT 1
16997 # Extract the first word of "msgfmt", so it can be a program name with args.
16998 set dummy msgfmt
; ac_word
=$2
16999 echo "$as_me:16999: checking for $ac_word" >&5
17000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17001 if test "${ac_cv_path_MSGFMT+set}" = set; then
17002 echo $ECHO_N "(cached) $ECHO_C" >&6
17006 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
17009 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
17010 for ac_dir
in $PATH; do
17011 test -z "$ac_dir" && ac_dir
=.
17012 if test -f $ac_dir/$ac_word; then
17013 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
17014 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
17020 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
17024 MSGFMT
="$ac_cv_path_MSGFMT"
17025 if test -n "$MSGFMT"; then
17026 echo "$as_me:17026: result: $MSGFMT" >&5
17027 echo "${ECHO_T}$MSGFMT" >&6
17029 echo "$as_me:17029: result: no" >&5
17030 echo "${ECHO_T}no" >&6
17032 if test "$MSGFMT" != "no"; then
17034 for ac_func
in dcgettext
17036 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
17037 echo "$as_me:17037: checking for $ac_func" >&5
17038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17039 if eval "test \"\${$ac_ac_var+set}\" = set"; then
17040 echo $ECHO_N "(cached) $ECHO_C" >&6
17042 cat >conftest.
$ac_ext <<_ACEOF
17043 #line 17043 "configure"
17044 #include "confdefs.h"
17045 /* System header to define __stub macros and hopefully few prototypes,
17046 which can conflict with char $ac_func (); below. */
17047 #include <assert.h>
17048 /* Override any gcc2 internal prototype to avoid an error. */
17052 /* We use char because int might match the return type of a gcc2
17053 builtin and then its argument prototype would still apply. */
17060 /* The GNU C library defines this for functions which it implements
17061 to always fail with ENOSYS. Some functions are actually named
17062 something starting with __ and the normal name is an alias. */
17063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17073 rm -f conftest.
$ac_objext conftest
$ac_exeext
17074 if { (eval echo "$as_me:17074: \"$ac_link\"") >&5
17075 (eval $ac_link) 2>&5
17077 echo "$as_me:17077: \$? = $ac_status" >&5
17078 (exit $ac_status); } &&
17079 { ac_try
='test -s conftest$ac_exeext'
17080 { (eval echo "$as_me:17080: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17083 echo "$as_me:17083: \$? = $ac_status" >&5
17084 (exit $ac_status); }; }; then
17085 eval "$ac_ac_var=yes"
17087 echo "$as_me: failed program was:" >&5
17088 cat conftest.
$ac_ext >&5
17089 eval "$ac_ac_var=no"
17091 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17093 echo "$as_me:17093: result: `eval echo '${'$ac_ac_var'}'`" >&5
17094 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
17095 if test `eval echo '${'$ac_ac_var'}'` = yes; then
17096 cat >>confdefs.h
<<EOF
17097 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
17103 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17104 set dummy gmsgfmt
; ac_word
=$2
17105 echo "$as_me:17105: checking for $ac_word" >&5
17106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17107 if test "${ac_cv_path_GMSGFMT+set}" = set; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17112 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
17115 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
17117 for ac_dir
in $ac_dummy; do
17119 test -z "$ac_dir" && ac_dir
=.
17120 if $as_executable_p "$ac_dir/$ac_word"; then
17121 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
17122 echo "$as_me:17122: found $ac_dir/$ac_word" >&5
17127 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
17131 GMSGFMT
=$ac_cv_path_GMSGFMT
17133 if test -n "$GMSGFMT"; then
17134 echo "$as_me:17134: result: $GMSGFMT" >&5
17135 echo "${ECHO_T}$GMSGFMT" >&6
17137 echo "$as_me:17137: result: no" >&5
17138 echo "${ECHO_T}no" >&6
17141 # Extract the first word of "xgettext", so it can be a program name with args.
17142 set dummy xgettext
; ac_word
=$2
17143 echo "$as_me:17143: checking for $ac_word" >&5
17144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17145 if test "${ac_cv_path_XGETTEXT+set}" = set; then
17146 echo $ECHO_N "(cached) $ECHO_C" >&6
17148 case "$XGETTEXT" in
17150 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
17153 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
17154 for ac_dir
in $PATH; do
17155 test -z "$ac_dir" && ac_dir
=.
17156 if test -f $ac_dir/$ac_word; then
17157 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
17158 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
17164 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
17168 XGETTEXT
="$ac_cv_path_XGETTEXT"
17169 if test -n "$XGETTEXT"; then
17170 echo "$as_me:17170: result: $XGETTEXT" >&5
17171 echo "${ECHO_T}$XGETTEXT" >&6
17173 echo "$as_me:17173: result: no" >&5
17174 echo "${ECHO_T}no" >&6
17177 cat >conftest.
$ac_ext <<_ACEOF
17178 #line 17178 "configure"
17179 #include "confdefs.h"
17184 extern int _nl_msg_cat_cntr;
17185 return _nl_msg_cat_cntr
17190 rm -f conftest.
$ac_objext conftest
$ac_exeext
17191 if { (eval echo "$as_me:17191: \"$ac_link\"") >&5
17192 (eval $ac_link) 2>&5
17194 echo "$as_me:17194: \$? = $ac_status" >&5
17195 (exit $ac_status); } &&
17196 { ac_try
='test -s conftest$ac_exeext'
17197 { (eval echo "$as_me:17197: \"$ac_try\"") >&5
17198 (eval $ac_try) 2>&5
17200 echo "$as_me:17200: \$? = $ac_status" >&5
17201 (exit $ac_status); }; }; then
17205 echo "$as_me: failed program was:" >&5
17206 cat conftest.
$ac_ext >&5
17210 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17217 if test "$CATOBJEXT" = "NONE"; then
17218 echo "$as_me:17218: checking whether catgets can be used" >&5
17219 echo $ECHO_N "checking whether catgets can be used... $ECHO_C" >&6
17221 # Check whether --with-catgets or --without-catgets was given.
17222 if test "${with_catgets+set}" = set; then
17223 withval
="$with_catgets"
17224 nls_cv_use_catgets
=$withval
17226 nls_cv_use_catgets
=no
17228 echo "$as_me:17228: result: $nls_cv_use_catgets" >&5
17229 echo "${ECHO_T}$nls_cv_use_catgets" >&6
17231 if test "$nls_cv_use_catgets" = "yes"; then
17233 echo "$as_me:17233: checking for main in -li" >&5
17234 echo $ECHO_N "checking for main in -li... $ECHO_C" >&6
17235 if test "${ac_cv_lib_i_main+set}" = set; then
17236 echo $ECHO_N "(cached) $ECHO_C" >&6
17238 ac_check_lib_save_LIBS
=$LIBS
17240 cat >conftest.
$ac_ext <<_ACEOF
17241 #line 17241 "configure"
17242 #include "confdefs.h"
17252 rm -f conftest.
$ac_objext conftest
$ac_exeext
17253 if { (eval echo "$as_me:17253: \"$ac_link\"") >&5
17254 (eval $ac_link) 2>&5
17256 echo "$as_me:17256: \$? = $ac_status" >&5
17257 (exit $ac_status); } &&
17258 { ac_try
='test -s conftest$ac_exeext'
17259 { (eval echo "$as_me:17259: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17262 echo "$as_me:17262: \$? = $ac_status" >&5
17263 (exit $ac_status); }; }; then
17264 ac_cv_lib_i_main
=yes
17266 echo "$as_me: failed program was:" >&5
17267 cat conftest.
$ac_ext >&5
17268 ac_cv_lib_i_main
=no
17270 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17271 LIBS
=$ac_check_lib_save_LIBS
17273 echo "$as_me:17273: result: $ac_cv_lib_i_main" >&5
17274 echo "${ECHO_T}$ac_cv_lib_i_main" >&6
17275 if test $ac_cv_lib_i_main = yes; then
17276 cat >>confdefs.h
<<EOF
17277 #define HAVE_LIBI 1
17284 echo "$as_me:17284: checking for catgets" >&5
17285 echo $ECHO_N "checking for catgets... $ECHO_C" >&6
17286 if test "${ac_cv_func_catgets+set}" = set; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17289 cat >conftest.
$ac_ext <<_ACEOF
17290 #line 17290 "configure"
17291 #include "confdefs.h"
17292 /* System header to define __stub macros and hopefully few prototypes,
17293 which can conflict with char catgets (); below. */
17294 #include <assert.h>
17295 /* Override any gcc2 internal prototype to avoid an error. */
17299 /* We use char because int might match the return type of a gcc2
17300 builtin and then its argument prototype would still apply. */
17307 /* The GNU C library defines this for functions which it implements
17308 to always fail with ENOSYS. Some functions are actually named
17309 something starting with __ and the normal name is an alias. */
17310 #if defined (__stub_catgets) || defined (__stub___catgets)
17320 rm -f conftest.
$ac_objext conftest
$ac_exeext
17321 if { (eval echo "$as_me:17321: \"$ac_link\"") >&5
17322 (eval $ac_link) 2>&5
17324 echo "$as_me:17324: \$? = $ac_status" >&5
17325 (exit $ac_status); } &&
17326 { ac_try
='test -s conftest$ac_exeext'
17327 { (eval echo "$as_me:17327: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17330 echo "$as_me:17330: \$? = $ac_status" >&5
17331 (exit $ac_status); }; }; then
17332 ac_cv_func_catgets
=yes
17334 echo "$as_me: failed program was:" >&5
17335 cat conftest.
$ac_ext >&5
17336 ac_cv_func_catgets
=no
17338 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17340 echo "$as_me:17340: result: $ac_cv_func_catgets" >&5
17341 echo "${ECHO_T}$ac_cv_func_catgets" >&6
17342 if test $ac_cv_func_catgets = yes; then
17344 cat >>confdefs.h
<<\EOF
17345 #define HAVE_CATGETS 1
17348 INTLOBJS
="\$(CATOBJS)"
17349 # Extract the first word of "gencat", so it can be a program name with args.
17350 set dummy gencat
; ac_word
=$2
17351 echo "$as_me:17351: checking for $ac_word" >&5
17352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17353 if test "${ac_cv_path_GENCAT+set}" = set; then
17354 echo $ECHO_N "(cached) $ECHO_C" >&6
17358 ac_cv_path_GENCAT
="$GENCAT" # Let the user override the test with a path.
17361 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
17363 for ac_dir
in $ac_dummy; do
17365 test -z "$ac_dir" && ac_dir
=.
17366 if $as_executable_p "$ac_dir/$ac_word"; then
17367 ac_cv_path_GENCAT
="$ac_dir/$ac_word"
17368 echo "$as_me:17368: found $ac_dir/$ac_word" >&5
17373 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT
="no"
17377 GENCAT
=$ac_cv_path_GENCAT
17379 if test -n "$GENCAT"; then
17380 echo "$as_me:17380: result: $GENCAT" >&5
17381 echo "${ECHO_T}$GENCAT" >&6
17383 echo "$as_me:17383: result: no" >&5
17384 echo "${ECHO_T}no" >&6
17386 if test "$GENCAT" != "no"; then
17387 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17388 set dummy gmsgfmt
; ac_word
=$2
17389 echo "$as_me:17389: checking for $ac_word" >&5
17390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17391 if test "${ac_cv_path_GMSGFMT+set}" = set; then
17392 echo $ECHO_N "(cached) $ECHO_C" >&6
17396 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
17399 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
17401 for ac_dir
in $ac_dummy; do
17403 test -z "$ac_dir" && ac_dir
=.
17404 if $as_executable_p "$ac_dir/$ac_word"; then
17405 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
17406 echo "$as_me:17406: found $ac_dir/$ac_word" >&5
17411 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
17415 GMSGFMT
=$ac_cv_path_GMSGFMT
17417 if test -n "$GMSGFMT"; then
17418 echo "$as_me:17418: result: $GMSGFMT" >&5
17419 echo "${ECHO_T}$GMSGFMT" >&6
17421 echo "$as_me:17421: result: no" >&5
17422 echo "${ECHO_T}no" >&6
17425 if test "$GMSGFMT" = "no"; then
17426 # Extract the first word of "msgfmt", so it can be a program name with args.
17427 set dummy msgfmt
; ac_word
=$2
17428 echo "$as_me:17428: checking for $ac_word" >&5
17429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17430 if test "${ac_cv_path_GMSGFMT+set}" = set; then
17431 echo $ECHO_N "(cached) $ECHO_C" >&6
17435 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
17438 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
17439 for ac_dir
in $PATH; do
17440 test -z "$ac_dir" && ac_dir
=.
17441 if test -f $ac_dir/$ac_word; then
17442 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
17443 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
17449 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="no"
17453 GMSGFMT
="$ac_cv_path_GMSGFMT"
17454 if test -n "$GMSGFMT"; then
17455 echo "$as_me:17455: result: $GMSGFMT" >&5
17456 echo "${ECHO_T}$GMSGFMT" >&6
17458 echo "$as_me:17458: result: no" >&5
17459 echo "${ECHO_T}no" >&6
17463 # Extract the first word of "xgettext", so it can be a program name with args.
17464 set dummy xgettext
; ac_word
=$2
17465 echo "$as_me:17465: checking for $ac_word" >&5
17466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17467 if test "${ac_cv_path_XGETTEXT+set}" = set; then
17468 echo $ECHO_N "(cached) $ECHO_C" >&6
17470 case "$XGETTEXT" in
17472 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
17475 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
17476 for ac_dir
in $PATH; do
17477 test -z "$ac_dir" && ac_dir
=.
17478 if test -f $ac_dir/$ac_word; then
17479 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
17480 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
17486 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
17490 XGETTEXT
="$ac_cv_path_XGETTEXT"
17491 if test -n "$XGETTEXT"; then
17492 echo "$as_me:17492: result: $XGETTEXT" >&5
17493 echo "${ECHO_T}$XGETTEXT" >&6
17495 echo "$as_me:17495: result: no" >&5
17496 echo "${ECHO_T}no" >&6
17499 USE_INCLUDED_LIBINTL
=yes
17503 INTLDEPS
='$(top_builddir)/intl/libintl.a'
17505 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
17506 nls_cv_header_intl
=intl
/libintl.h
17507 nls_cv_header_libgt
=intl
/libgettext.h
17514 if test "$CATOBJEXT" = "NONE"; then
17515 nls_cv_use_gnu_gettext
=yes
17519 if test "$nls_cv_use_gnu_gettext" = "yes"; then
17520 INTLOBJS
="\$(GETTOBJS)"
17521 # Extract the first word of "msgfmt", so it can be a program name with args.
17522 set dummy msgfmt
; ac_word
=$2
17523 echo "$as_me:17523: checking for $ac_word" >&5
17524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17525 if test "${ac_cv_path_MSGFMT+set}" = set; then
17526 echo $ECHO_N "(cached) $ECHO_C" >&6
17530 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
17533 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
17534 for ac_dir
in $PATH; do
17535 test -z "$ac_dir" && ac_dir
=.
17536 if test -f $ac_dir/$ac_word; then
17537 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
17538 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
17544 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
17548 MSGFMT
="$ac_cv_path_MSGFMT"
17549 if test -n "$MSGFMT"; then
17550 echo "$as_me:17550: result: $MSGFMT" >&5
17551 echo "${ECHO_T}$MSGFMT" >&6
17553 echo "$as_me:17553: result: no" >&5
17554 echo "${ECHO_T}no" >&6
17557 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17558 set dummy gmsgfmt
; ac_word
=$2
17559 echo "$as_me:17559: checking for $ac_word" >&5
17560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17561 if test "${ac_cv_path_GMSGFMT+set}" = set; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17566 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
17569 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
17571 for ac_dir
in $ac_dummy; do
17573 test -z "$ac_dir" && ac_dir
=.
17574 if $as_executable_p "$ac_dir/$ac_word"; then
17575 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
17576 echo "$as_me:17576: found $ac_dir/$ac_word" >&5
17581 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
17585 GMSGFMT
=$ac_cv_path_GMSGFMT
17587 if test -n "$GMSGFMT"; then
17588 echo "$as_me:17588: result: $GMSGFMT" >&5
17589 echo "${ECHO_T}$GMSGFMT" >&6
17591 echo "$as_me:17591: result: no" >&5
17592 echo "${ECHO_T}no" >&6
17595 # Extract the first word of "xgettext", so it can be a program name with args.
17596 set dummy xgettext
; ac_word
=$2
17597 echo "$as_me:17597: checking for $ac_word" >&5
17598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17599 if test "${ac_cv_path_XGETTEXT+set}" = set; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17602 case "$XGETTEXT" in
17604 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
17607 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
17608 for ac_dir
in $PATH; do
17609 test -z "$ac_dir" && ac_dir
=.
17610 if test -f $ac_dir/$ac_word; then
17611 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
17612 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
17618 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
17622 XGETTEXT
="$ac_cv_path_XGETTEXT"
17623 if test -n "$XGETTEXT"; then
17624 echo "$as_me:17624: result: $XGETTEXT" >&5
17625 echo "${ECHO_T}$XGETTEXT" >&6
17627 echo "$as_me:17627: result: no" >&5
17628 echo "${ECHO_T}no" >&6
17631 USE_INCLUDED_LIBINTL
=yes
17635 INTLDEPS
='$(top_builddir)/intl/libintl.a'
17637 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
17638 nls_cv_header_intl
=intl
/libintl.h
17639 nls_cv_header_libgt
=intl
/libgettext.h
17642 if test "$XGETTEXT" != ":"; then
17643 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
17646 echo "$as_me:17646: result: found xgettext program is not GNU xgettext; ignore it" >&5
17647 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
17652 # We need to process the po/ directory.
17656 nls_cv_header_intl
=intl
/libintl.h
17657 nls_cv_header_libgt
=intl
/libgettext.h
17659 if test -z "$nls_cv_header_intl"; then
17660 # Clean out junk possibly left behind by a previous configuration.
17661 rm -f intl
/libintl.h
17663 ac_config_links
="$ac_config_links $nls_cv_header_intl:$nls_cv_header_libgt"
17665 ac_config_commands
="$ac_config_commands default-3"
17667 # If this is used in GNU gettext we have to set USE_NLS to `yes'
17668 # because some of the sources are only built for this goal.
17669 if test "$PACKAGE" = gettext; then
17671 USE_INCLUDED_LIBINTL
=yes
17674 for lang
in $ALL_LINGUAS; do
17675 GMOFILES
="$GMOFILES $lang.gmo"
17676 POFILES
="$POFILES $lang.po"
17679 if test "x$CATOBJEXT" != "x"; then
17680 if test "x$ALL_LINGUAS" = "x"; then
17683 echo "$as_me:17683: checking for catalogs to be installed" >&5
17684 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
17686 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
17687 case "$ALL_LINGUAS" in
17688 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
17691 LINGUAS
=$NEW_LINGUAS
17692 echo "$as_me:17692: result: $LINGUAS" >&5
17693 echo "${ECHO_T}$LINGUAS" >&6
17696 if test -n "$LINGUAS"; then
17697 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
17701 if test $ac_cv_header_locale_h = yes; then
17702 INCLUDE_LOCALE_H
="#include <locale.h>"
17704 INCLUDE_LOCALE_H
="\
17705 /* The system does not provide the header <locale.h>. Take care yourself. */"
17708 test -d intl || mkdir intl
17709 if test "$CATOBJEXT" = ".cat"; then
17710 echo "$as_me:17710: checking for linux/version.h" >&5
17711 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
17712 if test "${ac_cv_header_linux_version_h+set}" = set; then
17713 echo $ECHO_N "(cached) $ECHO_C" >&6
17715 cat >conftest.
$ac_ext <<_ACEOF
17716 #line 17716 "configure"
17717 #include "confdefs.h"
17718 #include <linux/version.h>
17720 if { (eval echo "$as_me:17720: \"$ac_cpp conftest.$ac_ext\"") >&5
17721 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17723 egrep -v '^ *\+' conftest.er1
>conftest.err
17725 cat conftest.err
>&5
17726 echo "$as_me:17726: \$? = $ac_status" >&5
17727 (exit $ac_status); } >/dev
/null
; then
17728 if test -s conftest.err
; then
17729 ac_cpp_err
=$ac_c_preproc_warn_flag
17736 if test -z "$ac_cpp_err"; then
17737 ac_cv_header_linux_version_h
=yes
17739 echo "$as_me: failed program was:" >&5
17740 cat conftest.
$ac_ext >&5
17741 ac_cv_header_linux_version_h
=no
17743 rm -f conftest.err conftest.
$ac_ext
17745 echo "$as_me:17745: result: $ac_cv_header_linux_version_h" >&5
17746 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
17747 if test $ac_cv_header_linux_version_h = yes; then
17753 sed -e '/^#/d' $srcdir/intl
/$msgformat-msg.
sed > intl
/po2msg.
sed
17755 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
17756 $srcdir/intl
/po2tbl.
sed.
in > intl
/po2tbl.
sed
17758 if test "$PACKAGE" = "gettext"; then
17767 if test -n "$ac_aux_dir"; then
17768 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
17770 if test -z "$MKINSTALLDIRS"; then
17771 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
17776 test -d po || mkdir po
17779 posrcprefix
="../" ;;
17781 posrcprefix
="$srcdir/" ;;
17783 posrcprefix
="../$srcdir/" ;;
17786 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
17787 < $srcdir/po
/POTFILES.
in > po
/POTFILES
17789 # These no-op lines work around a bug in automake 1.4:
17790 # it doesn't recognize the assignments to LIBOBJS in m4/*.m4.
17791 : LIBOBJS
="$LIBOBJS fnmatch.o lstat.o"
17792 : LIBOBJS
="$LIBOBJS malloc.o memcmp.o mktime.o"
17793 : LIBOBJS
="$LIBOBJS realloc.o regex.o stat.o strftime.o"
17795 # This is necessary so that .o files in LIBOBJS are also built via
17796 # the ANSI2KNR-filtering rules.
17797 LIBOBJS
=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
17798 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"
17799 cat >confcache
<<\_ACEOF
17800 # This file is a shell script that caches the results of configure
17801 # tests run on this system so they can be shared between configure
17802 # scripts and configure runs, see configure's option --config-cache.
17803 # It is not useful on other systems. If it contains results you don't
17804 # want to keep, you may remove or edit it.
17806 # config.status only pays attention to the cache file if you give it
17807 # the --recheck option to rerun configure.
17809 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17810 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17811 # following values.
17815 # The following way of writing the cache mishandles newlines in values,
17816 # but we know of no workaround that is simple, portable, and efficient.
17817 # So, don't put newlines in cache variables' values.
17818 # Ultrix sh set writes to stderr and can't be redirected directly,
17819 # and sets the high bit in the cache file unless we assign to the vars.
17822 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17824 # `set' does not quote correctly, so add quotes (double-quote
17825 # substitution turns \\\\ into \\, and sed turns \\ into \).
17828 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17831 # `set' quotes correctly as required by POSIX, so do not add quotes.
17833 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17840 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17842 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17844 if cmp -s $cache_file confcache
; then :; else
17845 if test -w $cache_file; then
17846 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17847 cat confcache
>$cache_file
17849 echo "not updating unwritable cache $cache_file"
17854 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17855 # Let make expand exec_prefix.
17856 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17858 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17859 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17860 # trailing colons and then remove the whole line if VPATH becomes empty
17861 # (actually we leave an empty line to preserve line numbers).
17862 if test "x$srcdir" = x.
; then
17863 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
17864 s/:*\$(srcdir):*/:/;
17865 s/:*\${srcdir}:*/:/;
17867 s/^\([^=]*=[ ]*\):*/\1/;
17873 DEFS
=-DHAVE_CONFIG_H
17875 : ${CONFIG_STATUS=./config.status}
17876 ac_clean_files_save
=$ac_clean_files
17877 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17878 { echo "$as_me:17878: creating $CONFIG_STATUS" >&5
17879 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17880 cat >$CONFIG_STATUS <<_ACEOF
17882 # Generated automatically by configure.
17883 # Run this file to recreate the current configuration.
17884 # Compiler output produced by configure, useful for debugging
17885 # configure, is in config.log if it exists.
17888 SHELL=\${CONFIG_SHELL-$SHELL}
17889 ac_cs_invocation="\$0 \$@"
17893 cat >>$CONFIG_STATUS <<\_ACEOF
17894 # Be Bourne compatible
17895 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17898 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
17902 # Name of the executable.
17903 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
17905 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17911 rm -f conf$$ conf$$.exe conf$$.
file
17913 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17914 # We could just check for DJGPP; but this test a) works b) is more generic
17915 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17916 if test -f conf$$.exe
; then
17917 # Don't use ln at all; we don't have any links
17922 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17927 rm -f conf$$ conf$$.exe conf$$.
file
17929 as_executable_p
="test -f"
17931 # Support unset when possible.
17932 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
17939 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
17940 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
17941 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
17942 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
17943 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
17944 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
17945 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
17946 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
17949 # We need space, tab and new line, in precisely that order.
17955 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
17961 # Files that config.status was made for.
17962 if test -n "$ac_config_files"; then
17963 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17966 if test -n "$ac_config_headers"; then
17967 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17970 if test -n "$ac_config_links"; then
17971 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17974 if test -n "$ac_config_commands"; then
17975 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17978 cat >>$CONFIG_STATUS <<\EOF
17981 \`$as_me' instantiates files from templates according to the
17982 current configuration.
17984 Usage: $0 [OPTIONS] [FILE]...
17986 -h, --help print this help, then exit
17987 -V, --version print version number, then exit
17988 -d, --debug don't remove temporary files
17989 --recheck update $as_me by reconfiguring in the same conditions
17990 --file=FILE[:TEMPLATE]
17991 instantiate the configuration file FILE
17992 --header=FILE[:TEMPLATE]
17993 instantiate the configuration header FILE
17995 Configuration files:
17998 Configuration headers:
18001 Configuration links:
18004 Configuration commands:
18007 Report bugs to <bug-autoconf@gnu.org>."
18010 cat >>$CONFIG_STATUS <<EOF
18013 configured by $0, generated by GNU Autoconf 2.49f,
18014 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18016 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18017 Free Software Foundation, Inc.
18018 This config.status script is free software; the Free Software Foundation
18019 gives unlimited permission to copy, distribute and modify it."
18024 cat >>$CONFIG_STATUS <<\EOF
18025 # If no file are specified by the user, then we need to provide default
18026 # value. By we need to know if files were specified by the user.
18032 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
18033 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
18035 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
18039 *) # This is not an option, so the user has probably given explicit
18041 ac_need_defaults
=false
;;
18045 # Handling of the options.
18047 cat >>$CONFIG_STATUS <<EOF
18048 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18049 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18050 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18052 cat >>$CONFIG_STATUS <<\EOF
18053 --version |
--vers* |
-V )
18054 echo "$ac_cs_version"; exit 0 ;;
18056 # Conflict between --help and --header
18057 { { echo "$as_me:18057: error: ambiguous option: $1
18058 Try \`$0 --help' for more information." >&5
18059 echo "$as_me: error: ambiguous option: $1
18060 Try \`$0 --help' for more information." >&2;}
18061 { (exit 1); exit 1; }; };;
18062 --help |
--hel |
-h )
18063 echo "$ac_cs_usage"; exit 0 ;;
18064 --debug |
--d* |
-d )
18066 --file |
--fil |
--fi |
--f )
18068 CONFIG_FILES
="$CONFIG_FILES $1"
18069 ac_need_defaults
=false
;;
18070 --header |
--heade |
--head |
--hea )
18072 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
18073 ac_need_defaults
=false
;;
18075 # Handling of arguments.
18076 'Makefile' ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18077 'lib/Makefile' ) CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
18078 'lib/posix/Makefile' ) CONFIG_FILES
="$CONFIG_FILES lib/posix/Makefile" ;;
18079 'find/Makefile' ) CONFIG_FILES
="$CONFIG_FILES find/Makefile" ;;
18080 'find/testsuite/Makefile' ) CONFIG_FILES
="$CONFIG_FILES find/testsuite/Makefile" ;;
18081 'xargs/Makefile' ) CONFIG_FILES
="$CONFIG_FILES xargs/Makefile" ;;
18082 'xargs/testsuite/Makefile' ) CONFIG_FILES
="$CONFIG_FILES xargs/testsuite/Makefile" ;;
18083 'locate/Makefile' ) CONFIG_FILES
="$CONFIG_FILES locate/Makefile" ;;
18084 'locate/testsuite/Makefile' ) CONFIG_FILES
="$CONFIG_FILES locate/testsuite/Makefile" ;;
18085 'intl/Makefile' ) CONFIG_FILES
="$CONFIG_FILES intl/Makefile" ;;
18086 'po/Makefile.in' ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in" ;;
18087 'doc/Makefile' ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
18088 'm4/Makefile' ) CONFIG_FILES
="$CONFIG_FILES m4/Makefile" ;;
18089 '$nls_cv_header_intl' ) CONFIG_LINKS
="$CONFIG_LINKS $nls_cv_header_intl:$nls_cv_header_libgt" ;;
18090 'default-1' ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
18091 'default-2' ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-2" ;;
18092 'default-3' ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-3" ;;
18093 'config.h' ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
18095 # This is an error.
18096 -*) { { echo "$as_me:18096: error: unrecognized option: $1
18097 Try \`$0 --help' for more information." >&5
18098 echo "$as_me: error: unrecognized option: $1
18099 Try \`$0 --help' for more information." >&2;}
18100 { (exit 1); exit 1; }; } ;;
18101 *) { { echo "$as_me:18101: error: invalid argument: $1" >&5
18102 echo "$as_me: error: invalid argument: $1" >&2;}
18103 { (exit 1); exit 1; }; };;
18111 ## ----------------------- ##
18112 ## Running config.status. ##
18113 ## ----------------------- ##
18115 This file was extended by $as_me 2.49f, executed with
18116 > $ac_cs_invocation
18117 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18122 cat >>$CONFIG_STATUS <<\EOF
18123 # If the user did not use the arguments to specify the items to instantiate,
18124 # then the envvar interface is used. Set only those that are not.
18125 # We use the long form for the default assignment because of an extremely
18126 # bizarre bug on SunOS 4.1.3.
18127 if $ac_need_defaults; then
18128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18129 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18130 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
18131 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18134 # Create a temporary directory, and hook for its removal unless debugging.
18137 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18138 trap '{ (exit $?); exit $?; }' 1 2 13 15
18141 # Create a (secure) tmp directory for tmp files.
18144 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18145 test -n "$tmp" && test -d "$tmp"
18148 tmp
=$TMPDIR/cs$$
-$RANDOM
18149 (umask 077 && mkdir
$tmp)
18152 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18153 { (exit 1); exit 1; }
18158 cat >>$CONFIG_STATUS <<EOF
18160 # INIT-COMMANDS section.
18164 for am_file in config.h; do
18165 case " $CONFIG_HEADERS " in
18167 echo timestamp > `echo $am_file | sed 's%:.*%%;s%[^/]*$%%'`stamp-h$am_indx
18170 am_indx=\`expr \$am_indx + 1\`
18172 AMDEP_TRUE="$AMDEP_TRUE"
18173 ac_aux_dir="$ac_aux_dir"
18177 cat >>$CONFIG_STATUS <<EOF
18180 # CONFIG_FILES section.
18183 # No need to generate the scripts if there are no CONFIG_FILES.
18184 # This happens for instance when ./config.status config.h
18185 if test -n "\$CONFIG_FILES"; then
18186 # Protect against being on the right side of a sed subst in config.status.
18187 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18188 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18189 s,@SHELL@,$SHELL,;t t
18190 s,@exec_prefix@,$exec_prefix,;t t
18191 s,@prefix@,$prefix,;t t
18192 s,@program_transform_name@,$program_transform_name,;t t
18193 s,@bindir@,$bindir,;t t
18194 s,@sbindir@,$sbindir,;t t
18195 s,@libexecdir@,$libexecdir,;t t
18196 s,@datadir@,$datadir,;t t
18197 s,@sysconfdir@,$sysconfdir,;t t
18198 s,@sharedstatedir@,$sharedstatedir,;t t
18199 s,@localstatedir@,$localstatedir,;t t
18200 s,@libdir@,$libdir,;t t
18201 s,@includedir@,$includedir,;t t
18202 s,@oldincludedir@,$oldincludedir,;t t
18203 s,@infodir@,$infodir,;t t
18204 s,@mandir@,$mandir,;t t
18205 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18206 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18207 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18208 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18209 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18210 s,@ECHO_C@,$ECHO_C,;t t
18211 s,@ECHO_N@,$ECHO_N,;t t
18212 s,@ECHO_T@,$ECHO_T,;t t
18213 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18214 s,@DEFS@,$DEFS,;t t
18215 s,@LIBS@,$LIBS,;t t
18216 s,@build@,$build,;t t
18217 s,@build_cpu@,$build_cpu,;t t
18218 s,@build_vendor@,$build_vendor,;t t
18219 s,@build_os@,$build_os,;t t
18220 s,@host@,$host,;t t
18221 s,@host_cpu@,$host_cpu,;t t
18222 s,@host_vendor@,$host_vendor,;t t
18223 s,@host_os@,$host_os,;t t
18224 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18225 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18226 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18227 s,@PACKAGE@,$PACKAGE,;t t
18228 s,@VERSION@,$VERSION,;t t
18229 s,@ACLOCAL@,$ACLOCAL,;t t
18230 s,@AUTOCONF@,$AUTOCONF,;t t
18231 s,@AUTOMAKE@,$AUTOMAKE,;t t
18232 s,@AUTOHEADER@,$AUTOHEADER,;t t
18233 s,@MAKEINFO@,$MAKEINFO,;t t
18234 s,@AMTAR@,$AMTAR,;t t
18235 s,@install_sh@,$install_sh,;t t
18236 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
18238 s,@SET_MAKE@,$SET_MAKE,;t t
18239 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18240 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18241 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18242 s,@DEPDIR@,$DEPDIR,;t t
18243 s,@INCLUDES@,$INCLUDES,;t t
18245 s,@CFLAGS@,$CFLAGS,;t t
18246 s,@LDFLAGS@,$LDFLAGS,;t t
18247 s,@CPPFLAGS@,$CPPFLAGS,;t t
18248 s,@ac_ct_CC@,$ac_ct_CC,;t t
18249 s,@EXEEXT@,$EXEEXT,;t t
18250 s,@OBJEXT@,$OBJEXT,;t t
18252 s,@_am_include@,$_am_include,;t t
18253 s,@_am_quote@,$_am_quote,;t t
18254 s,@CCDEPMODE@,$CCDEPMODE,;t t
18256 s,@ANSI2KNR@,$ANSI2KNR,;t t
18257 s,@RANLIB@,$RANLIB,;t t
18258 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18259 s,@LIBOBJS@,$LIBOBJS,;t t
18260 s,@GNU_PACKAGE@,$GNU_PACKAGE,;t t
18261 s,@OPTIONAL_BIN_PROGS@,$OPTIONAL_BIN_PROGS,;t t
18262 s,@OPTIONAL_BIN_ZCRIPTS@,$OPTIONAL_BIN_ZCRIPTS,;t t
18264 s,@DF_PROG@,$DF_PROG,;t t
18265 s,@ALLOCA@,$ALLOCA,;t t
18266 s,@GLIBC21@,$GLIBC21,;t t
18267 s,@LIBICONV@,$LIBICONV,;t t
18268 s,@USE_NLS@,$USE_NLS,;t t
18269 s,@MSGFMT@,$MSGFMT,;t t
18270 s,@GMSGFMT@,$GMSGFMT,;t t
18271 s,@XGETTEXT@,$XGETTEXT,;t t
18272 s,@GENCAT@,$GENCAT,;t t
18273 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
18274 s,@CATALOGS@,$CATALOGS,;t t
18275 s,@CATOBJEXT@,$CATOBJEXT,;t t
18276 s,@DATADIRNAME@,$DATADIRNAME,;t t
18277 s,@GMOFILES@,$GMOFILES,;t t
18278 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
18279 s,@INTLDEPS@,$INTLDEPS,;t t
18280 s,@INTLLIBS@,$INTLLIBS,;t t
18281 s,@INTLOBJS@,$INTLOBJS,;t t
18282 s,@POFILES@,$POFILES,;t t
18283 s,@POSUB@,$POSUB,;t t
18284 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
18285 s,@GT_NO@,$GT_NO,;t t
18286 s,@GT_YES@,$GT_YES,;t t
18287 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
18293 cat >>$CONFIG_STATUS <<\EOF
18294 # Split the substitutions into bite-sized pieces for seds with
18295 # small command number limits, like on Digital OSF/1 and HP-UX.
18296 ac_max_sed_lines
=48
18297 ac_sed_frag
=1 # Number of current file.
18298 ac_beg
=1 # First line for current file.
18299 ac_end
=$ac_max_sed_lines # Line after last line for current file.
18302 while $ac_more_lines; do
18303 if test $ac_beg -gt 1; then
18304 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18306 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
18308 if test ! -s $tmp/subs.frag
; then
18309 ac_more_lines
=false
18311 # The purpose of the label and of the branching condition is to
18312 # speed up the sed processing (if there are no `@' at all, there
18313 # is no need to browse any of the substitutions).
18314 # These are the two extra sed commands mentioned above.
18316 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
18317 if test -z "$ac_sed_cmds"; then
18318 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
18320 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18322 ac_sed_frag
=`expr $ac_sed_frag + 1`
18324 ac_end
=`expr $ac_end + $ac_max_sed_lines`
18327 if test -z "$ac_sed_cmds"; then
18330 fi # test -n "$CONFIG_FILES"
18333 cat >>$CONFIG_STATUS <<\EOF
18334 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
18335 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18337 - |
*:- |
*:-:* ) # input from stdin
18339 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18340 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18341 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18342 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18343 * ) ac_file_in
=$ac_file.
in ;;
18346 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18347 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18348 X"$ac_file" : 'X\(//\)[^/]' \| \
18349 X"$ac_file" : 'X\(//\)$' \| \
18350 X"$ac_file" : 'X\(/\)' \| \
18351 . : '\(.\)' 2>/dev/null ||
18353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18354 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18355 /^X\(\/\/\)$/{ s//\1/; q; }
18356 /^X\(\/\).*/{ s//\1/; q; }
18358 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
18359 { case "$ac_dir" in
18360 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
18364 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18365 case $as_mkdir_dir in
18366 # Skip DOS drivespec
18367 ?
:) as_incr_dir
=$as_mkdir_dir ;;
18369 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
18370 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
18375 ac_dir_suffix
="/`echo $ac_dir|sed 's,^\./,,'`"
18376 # A "../" for each directory in $ac_dir_suffix.
18377 ac_dots
=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
18379 ac_dir_suffix
= ac_dots
=
18384 if test -z "$ac_dots"; then
18387 ac_top_srcdir
=`echo $ac_dots | sed 's,/$,,'`
18389 [\\/]* | ?
:[\\/]* )
18390 ac_srcdir
=$srcdir$ac_dir_suffix;
18391 ac_top_srcdir
=$srcdir ;;
18392 *) # Relative path.
18393 ac_srcdir
=$ac_dots$srcdir$ac_dir_suffix
18394 ac_top_srcdir
=$ac_dots$srcdir ;;
18398 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18399 *) ac_INSTALL
=$ac_dots$INSTALL ;;
18402 if test x
"$ac_file" != x-
; then
18403 { echo "$as_me:18403: creating $ac_file" >&5
18404 echo "$as_me: creating $ac_file" >&6;}
18407 # Let's still pretend it is `configure' which instantiates (i.e., don't
18408 # use $as_me), people would be surprised to read:
18409 # /* config.h. Generated automatically by config.status. */
18410 configure_input
="Generated automatically from `echo $ac_file_in |
18411 sed 's,.*/,,'` by configure."
18413 # First look for the input files in the build tree, otherwise in the
18415 ac_file_inputs
=`IFS=:
18416 for f in $ac_file_in; do
18418 -) echo $tmp/stdin ;;
18420 # Absolute (can't be DOS-style, as IFS=:)
18421 test -f "$f" || { { echo "$as_me:18421: error: cannot find input file: $f" >&5
18422 echo "$as_me: error: cannot find input file: $f" >&2;}
18423 { (exit 1); exit 1; }; }
18426 if test -f "$f"; then
18429 elif test -f "$srcdir/$f"; then
18434 { { echo "$as_me:18434: error: cannot find input file: $f" >&5
18435 echo "$as_me: error: cannot find input file: $f" >&2;}
18436 { (exit 1); exit 1; }; }
18439 done` ||
{ (exit 1); exit 1; }
18441 cat >>$CONFIG_STATUS <<EOF
18445 cat >>$CONFIG_STATUS <<\EOF
18447 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18448 s
,@configure_input@
,$configure_input,;t t
18449 s
,@srcdir@
,$ac_srcdir,;t t
18450 s
,@top_srcdir@
,$ac_top_srcdir,;t t
18451 s
,@INSTALL@
,$ac_INSTALL,;t t
18452 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18454 if test x"$ac_file" != x-; then
18455 mv $tmp/out $ac_file
18463 cat >>$CONFIG_STATUS <<\EOF
18466 # CONFIG_HEADER section.
18469 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
18470 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18472 # ac_d sets the value in "#define NAME VALUE" lines.
18473 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18474 ac_dB
='[ ].*$,\1#\2'
18477 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18478 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18479 ac_uB
='$,\1#\2define\3'
18483 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
18484 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18486 - |
*:- |
*:-:* ) # input from stdin
18488 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18489 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18490 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18491 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18492 * ) ac_file_in
=$ac_file.
in ;;
18495 test x
"$ac_file" != x-
&& { echo "$as_me:18495: creating $ac_file" >&5
18496 echo "$as_me: creating $ac_file" >&6;}
18498 # First look for the input files in the build tree, otherwise in the
18500 ac_file_inputs
=`IFS=:
18501 for f in $ac_file_in; do
18503 -) echo $tmp/stdin ;;
18505 # Absolute (can't be DOS-style, as IFS=:)
18506 test -f "$f" || { { echo "$as_me:18506: error: cannot find input file: $f" >&5
18507 echo "$as_me: error: cannot find input file: $f" >&2;}
18508 { (exit 1); exit 1; }; }
18511 if test -f "$f"; then
18514 elif test -f "$srcdir/$f"; then
18519 { { echo "$as_me:18519: error: cannot find input file: $f" >&5
18520 echo "$as_me: error: cannot find input file: $f" >&2;}
18521 { (exit 1); exit 1; }; }
18524 done` ||
{ (exit 1); exit 1; }
18525 # Remove the trailing spaces.
18526 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18530 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18531 # `conftest.undefs', that substitutes the proper values into
18532 # config.h.in to produce config.h. The first handles `#define'
18533 # templates, and the second `#undef' templates.
18534 # And first: Protect against being on the right side of a sed subst in
18535 # config.status. Protect against being in an unquoted here document
18536 # in config.status.
18537 rm -f conftest.defines conftest.undefs
18538 # Using a here document instead of a string reduces the quoting nightmare.
18539 # Putting comments in sed scripts is not portable.
18541 # `end' is used to avoid that the second main sed command (meant for
18542 # 0-ary CPP macros) applies to n-ary macro definitions.
18543 # See the Autoconf documentation for `clear'.
18544 cat >confdef2sed.
sed <<\EOF
18549 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
18551 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18554 # If some macros were called several times there might be several times
18555 # the same #defines, which is useless. Nevertheless, we may not want to
18556 # sort them, since we want the *last* AC-DEFINE to be honored.
18557 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18558 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18559 rm -f confdef2sed.sed
18561 # This sed command replaces #undef with comments. This is necessary, for
18562 # example, in the case of _POSIX_SOURCE, which is predefined and required
18563 # on some systems where configure will not decide to define it.
18564 cat >>conftest.undefs <<\EOF
18565 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18568 # Break up conftest.defines because some shells have a limit on the size
18569 # of here documents, and old seds have small limits too (100 cmds).
18570 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18571 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18572 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18573 echo ' :' >>$CONFIG_STATUS
18574 rm -f conftest.tail
18575 while grep . conftest.defines >/dev/null
18577 # Write a limited-size here document to $tmp/defines.sed.
18578 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18579 # Speed up: don't consider the non `#define' lines.
18580 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18581 # Work around the forget-to-reset-the-flag bug.
18582 echo 't clr' >>$CONFIG_STATUS
18583 echo ': clr' >>$CONFIG_STATUS
18584 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
18586 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18588 mv $tmp/out $tmp/in
18590 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
18591 rm -f conftest.defines
18592 mv conftest.
tail conftest.defines
18594 rm -f conftest.defines
18595 echo ' fi # egrep' >>$CONFIG_STATUS
18596 echo >>$CONFIG_STATUS
18598 # Break up conftest.undefs because some shells have a limit on the size
18599 # of here documents, and old seds have small limits too (100 cmds).
18600 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18601 rm -f conftest.
tail
18602 while grep . conftest.undefs
>/dev
/null
18604 # Write a limited-size here document to $tmp/undefs.sed.
18605 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18606 # Speed up: don't consider the non
`#undef'
18607 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18608 # Work around the forget-to-reset-the-flag bug.
18609 echo 't clr' >>$CONFIG_STATUS
18610 echo ': clr' >>$CONFIG_STATUS
18611 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18613 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18615 mv $tmp/out $tmp/in
18617 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18618 rm -f conftest.undefs
18619 mv conftest.tail conftest.undefs
18621 rm -f conftest.undefs
18623 cat >>$CONFIG_STATUS <<\EOF
18624 # Let's still pretend it is `configure
' which instantiates (i.e., don't
18625 # use $as_me), people would be surprised to read:
18626 # /* config.h. Generated automatically by config.status. */
18627 if test x
"$ac_file" = x-
; then
18628 echo "/* Generated automatically by configure. */" >$tmp/config.h
18630 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
18632 cat $tmp/in >>$tmp/config.h
18634 if test x
"$ac_file" != x-
; then
18635 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
18636 { echo "$as_me:18636: $ac_file is unchanged" >&5
18637 echo "$as_me: $ac_file is unchanged" >&6;}
18639 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18640 X"$ac_file" : 'X\(//\)[^/]' \| \
18641 X"$ac_file" : 'X\(//\)$' \| \
18642 X"$ac_file" : 'X\(/\)' \| \
18643 . : '\(.\)' 2>/dev/null ||
18645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18646 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18647 /^X\(\/\/\)$/{ s//\1/; q; }
18648 /^X\(\/\).*/{ s//\1/; q; }
18650 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
18651 { case "$ac_dir" in
18652 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
18656 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18657 case $as_mkdir_dir in
18658 # Skip DOS drivespec
18659 ?
:) as_incr_dir
=$as_mkdir_dir ;;
18661 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
18662 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
18669 mv $tmp/config.h
$ac_file
18673 rm -f $tmp/config.h
18677 cat >>$CONFIG_STATUS <<\EOF
18680 # CONFIG_LINKS section.
18683 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
18684 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
18685 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18687 { echo "$as_me:18687: linking $srcdir/$ac_source to $ac_dest" >&5
18688 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18690 if test ! -r $srcdir/$ac_source; then
18691 { { echo "$as_me:18691: error: $srcdir/$ac_source: File not found" >&5
18692 echo "$as_me: error: $srcdir/$ac_source: File not found" >&2;}
18693 { (exit 1); exit 1; }; }
18697 # Make relative symlinks.
18698 ac_dest_dir
=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18699 X"$ac_dest" : 'X\(//\)[^/]' \| \
18700 X"$ac_dest" : 'X\(//\)$' \| \
18701 X"$ac_dest" : 'X\(/\)' \| \
18702 . : '\(.\)' 2>/dev/null ||
18704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18705 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18706 /^X\(\/\/\)$/{ s//\1/; q; }
18707 /^X\(\/\).*/{ s//\1/; q; }
18709 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .
; then
18710 { case "$ac_dest_dir" in
18711 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
18714 as_dummy
="$ac_dest_dir"
18715 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18716 case $as_mkdir_dir in
18717 # Skip DOS drivespec
18718 ?
:) as_incr_dir
=$as_mkdir_dir ;;
18720 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
18721 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
18726 ac_dest_dir_suffix
="/`echo $ac_dest_dir|sed 's,^\./,,'`"
18727 # A "../" for each directory in $ac_dest_dir_suffix.
18728 ac_dots
=`echo $ac_dest_dir_suffix|sed 's,/[^/]*,../,g'`
18730 ac_dest_dir_suffix
= ac_dots
=
18734 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
18735 *) ac_rel_source
=$ac_dots$srcdir/$ac_source ;;
18738 # Make a symlink if possible; otherwise try a hard link.
18739 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
18740 ln $srcdir/$ac_source $ac_dest ||
18741 { { echo "$as_me:18741: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18742 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18743 { (exit 1); exit 1; }; }
18746 cat >>$CONFIG_STATUS <<\EOF
18749 # CONFIG_COMMANDS section.
18751 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
18752 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
18753 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18756 default-1
) test -z "$CONFIG_HEADERS" ||
echo timestamp
> stamp-h
;;
18758 test x
"$AMDEP_TRUE" != x
"" ||
18759 for mf
in $CONFIG_FILES; do
18761 Makefile
) dirpart
=.
;;
18762 */Makefile
) dirpart
=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
18765 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev
/null ||
continue
18766 # Extract the definition of DEP_FILES from the Makefile without
18768 DEPDIR
=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
18769 test -z "$DEPDIR" && continue
18770 # When using ansi2knr, U may be empty or an underscore; expand it
18771 U
=`sed -n -e '/^U = / s///p' < "$mf"`
18772 test -d "$dirpart/$DEPDIR" || mkdir
"$dirpart/$DEPDIR"
18773 # We invoke sed twice because it is the simplest approach to
18774 # changing $(DEPDIR) to its actual value in the expansion.
18775 for file in `sed -n -e '
18776 /^DEP_FILES = .*\\\\$/ {
18785 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
18786 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18787 # Make sure the directory exists.
18788 test -f "$dirpart/$file" && continue
18789 fdir
=`echo "$file" | sed -e 's|/[^/]*$||'`
18790 $ac_aux_dir/mkinstalldirs
"$dirpart/$fdir" > /dev
/null
2>&1
18791 # echo "creating $dirpart/$file"
18792 echo '# dummy' > "$dirpart/$file"
18796 default-3
) case "$CONFIG_FILES" in *po
/Makefile.
in*)
18797 sed -e "/POTFILES =/r po/POTFILES" po
/Makefile.
in > po
/Makefile
18803 cat >>$CONFIG_STATUS <<\EOF
18805 { (exit 0); exit 0; }
18807 chmod +x
$CONFIG_STATUS
18808 ac_clean_files
=$ac_clean_files_save
18810 # configure is writing to config.log, and then calls config.status.
18811 # config.status does its own redirection, appending to config.log.
18812 # Unfortunately, on DOS this fails, as config.log is still kept open
18813 # by configure, so config.status won't be able to write to it; its
18814 # output is simply discarded. So we exec the FD to /dev/null,
18815 # effectively closing config.log, so it can be properly (re)opened and
18816 # appended to by config.status. When coming back to configure, we
18817 # need to make the FD available again.
18818 if test "$no_create" != yes; then
18821 $SHELL $CONFIG_STATUS || ac_cs_success
=false
18823 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18824 # would make configure fail if this is the last instruction.
18825 $ac_cs_success ||
{ (exit 1); exit 1; }