*** empty log message ***
[findutils.git] / configure
blob2e9583c053e8375a9ae7b29b60d8a71feece2823
1 #! /bin/sh
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
12 emulate sh
13 NULLCMD=:
14 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15 set -o posix
18 # Name of the executable.
19 as_me=`echo "$0" |sed 's,.*[\\/],,'`
21 if expr a : '\(a\)' >/dev/null 2>&1; then
22 as_expr=expr
23 else
24 as_expr=false
27 rm -f conf$$ conf$$.exe conf$$.file
28 echo >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
34 as_ln_s='cp -p'
35 else
36 as_ln_s='ln -s'
38 elif ln conf$$.file conf$$ 2>/dev/null; then
39 as_ln_s=ln
40 else
41 as_ln_s='cp -p'
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
49 as_unset=unset
50 else
51 as_unset=false
54 # NLS nuisances.
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; }
64 # IFS
65 # We need space, tab and new line, in precisely that order.
66 as_nl='
68 IFS=" $as_nl"
70 # CDPATH.
71 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
73 # Name of the host.
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`
78 exec 6>&1
81 # Initializations.
83 ac_default_prefix=/usr/local
84 cross_compiling=no
85 subdirs=
86 MFLAGS= MAKEFLAGS=
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'
97 ac_cr_09='0123456789'
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="\
107 #include <stdio.h>
108 #include <sys/types.h>
109 #include <sys/stat.h>
110 #if STDC_HEADERS
111 # include <stdlib.h>
112 # include <stddef.h>
113 #else
114 # if HAVE_STDLIB_H
115 # include <stdlib.h>
116 # endif
117 #endif
118 #if HAVE_STRING_H
119 # if !STDC_HEADERS && HAVE_MEMORY_H
120 # include <memory.h>
121 # endif
122 # include <string.h>
123 #else
124 # if HAVE_STRINGS_H
125 # include <strings.h>
126 # endif
127 #endif
128 #if HAVE_INTTYPES_H
129 # include <inttypes.h>
130 #endif
131 #if HAVE_UNISTD_H
132 # include <unistd.h>
133 #endif"
135 # Initialize some variables set by options.
136 ac_init_help=
137 ac_init_version=false
138 # The variables have the same names as the options, with
139 # dashes changed to underlines.
140 cache_file=/dev/null
141 exec_prefix=NONE
142 no_create=
143 no_recursion=
144 prefix=NONE
145 program_prefix=NONE
146 program_suffix=NONE
147 program_transform_name=s,x,x,
148 silent=
149 site=
150 srcdir=
151 verbose=
152 x_includes=NONE
153 x_libraries=NONE
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.
174 PACKAGE_NAME=
175 PACKAGE_TARNAME=
176 PACKAGE_VERSION=
177 PACKAGE_STRING=
178 PACKAGE_BUGREPORT=
180 ac_prev=
181 for ac_option
183 # If the previous option needs an argument, assign it.
184 if test -n "$ac_prev"; then
185 eval "$ac_prev=\$ac_option"
186 ac_prev=
187 continue
190 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
192 # Accept the important Cygnus configure options, so we can diagnose typos.
194 case $ac_option in
196 -bindir | --bindir | --bindi | --bind | --bin | --bi)
197 ac_prev=bindir ;;
198 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
199 bindir=$ac_optarg ;;
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 ;;
213 --config-cache | -C)
214 cache_file=config.cache ;;
216 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
217 ac_prev=datadir ;;
218 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
219 | --da=*)
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'`
238 case $ac_option in
239 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
240 *) ac_optarg=yes ;;
241 esac
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.
255 with_gas=yes ;;
257 -help | --help | --hel | --he | -h)
258 ac_init_help=long ;;
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)
277 ac_prev=infodir ;;
278 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
279 infodir=$ac_optarg ;;
281 -libdir | --libdir | --libdi | --libd)
282 ac_prev=libdir ;;
283 -libdir=* | --libdir=* | --libdi=* | --libd=*)
284 libdir=$ac_optarg ;;
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)
303 ac_prev=mandir ;;
304 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
305 mandir=$ac_optarg ;;
307 -nfp | --nfp | --nf)
308 # Obsolete; use --without-fp.
309 with_fp=no ;;
311 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
312 | --no-cr | --no-c)
313 no_create=yes ;;
315 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
316 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
317 no_recursion=yes ;;
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)
329 ac_prev=prefix ;;
330 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
331 prefix=$ac_optarg ;;
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)
366 silent=yes ;;
368 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
369 ac_prev=sbindir ;;
370 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
371 | --sbi=* | --sb=*)
372 sbindir=$ac_optarg ;;
374 -sharedstatedir | --sharedstatedir | --sharedstatedi \
375 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
376 | --sharedst | --shareds | --shared | --share | --shar \
377 | --sha | --sh)
378 ac_prev=sharedstatedir ;;
379 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
380 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
381 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
382 | --sha=* | --sh=*)
383 sharedstatedir=$ac_optarg ;;
385 -site | --site | --sit)
386 ac_prev=site ;;
387 -site=* | --site=* | --sit=*)
388 site=$ac_optarg ;;
390 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
391 ac_prev=srcdir ;;
392 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
393 srcdir=$ac_optarg ;;
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)
408 verbose=yes ;;
410 -version | --version | --versio | --versi | --vers | -V)
411 ac_init_version=: ;;
413 -with-* | --with-*)
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'`
420 case $ac_option in
421 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
422 *) ac_optarg=yes ;;
423 esac
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" ;;
435 --x)
436 # Obsolete; use --with-x.
437 with_x=yes ;;
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; }; }
458 *=*)
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'"
466 export $ac_envvar ;;
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}
476 esac
477 done
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 \
488 exec_prefix prefix
490 eval ac_val=$`echo $ac_var`
491 case $ac_val in
492 [\\/$]* | ?:[\\/]* ) ;;
493 NONE ) ;;
494 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
495 { (exit 1); exit 1; }; };;
496 esac
497 done
499 # There might be people who depend on the old broken behavior: `$host'
500 # used to hold the argument of --host etc.
501 build=$build_alias
502 host=$host_alias
503 target=$target_alias
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
512 cross_compiling=yes
516 ac_tool_prefix=
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.
525 ac_prog=$0
526 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
527 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
528 srcdir=$ac_confdir
529 if test ! -r $srcdir/$ac_unique_file; then
530 srcdir=..
532 else
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; }; }
539 else
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}
558 ac_env_CC_value=$CC
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.
584 cat <<EOF
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.
594 Configuration:
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 \`..']
607 cat <<EOF
608 Installation directories:
609 --prefix=PREFIX install architecture-independent files in PREFIX
610 [$ac_default_prefix]
611 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
612 [PREFIX]
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]
636 cat <<\EOF
638 Program names:
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
643 System types:
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
651 cat <<\EOF
653 Optional Features:
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
663 Optional Packages:
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>
679 CPP C preprocessor
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.
689 ac_popdir=`pwd`
690 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
691 cd $ac_subdir
692 # A "../" for each directory in /$ac_subdir.
693 ac_dots=`echo $ac_subdir |
694 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
696 case $srcdir in
697 .) # No --srcdir option. We are building in place.
698 ac_sub_srcdir=$srcdir ;;
699 [\\/]* | ?:[\\/]* ) # Absolute path.
700 ac_sub_srcdir=$srcdir/$ac_subdir ;;
701 *) # Relative path.
702 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
703 esac
705 # Check for guested configure; otherwise get Cygnus style configure.
706 if test -f $ac_sub_srcdir/configure.gnu; then
707 echo
708 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
709 elif test -f $ac_sub_srcdir/configure; then
710 echo
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
714 echo
715 $ac_configure --help
716 else
717 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
719 cd $ac_popdir
720 done
723 test -n "$ac_init_help" && exit 0
724 if $ac_init_version; then
725 cat <<\EOF
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.
732 exit 0
734 exec 5>config.log
735 cat >&5 <<EOF
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
742 $ $0 $@
746 cat <<_ASUNAME
747 ## ---------- ##
748 ## Platform. ##
749 ## ---------- ##
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`
768 PATH = $PATH
770 _ASUNAME
771 } >&5
773 cat >&5 <<EOF
774 ## ------------ ##
775 ## Core tests. ##
776 ## ------------ ##
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.
783 ac_configure_args=
784 ac_sep=
785 for ac_arg
787 case $ac_arg in
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'"
795 ac_sep=" " ;;
796 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
797 ac_sep=" " ;;
798 esac
799 # Get rid of the leading space.
800 done
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.
805 trap 'exit_status=$?
806 # Save into config.log some information that might help in debugging.
807 echo >&5
808 echo "## ----------------- ##" >&5
809 echo "## Cache variables. ##" >&5
810 echo "## ----------------- ##" >&5
811 echo >&5
812 # The following way of writing the cache mishandles newlines in values,
814 (set) 2>&1 |
815 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
816 *ac_space=\ *)
817 sed -n \
818 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
819 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
822 sed -n \
823 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
825 esac;
826 } >&5
827 sed "/^$/d" confdefs.h >conftest.log
828 if test -s conftest.log; then
829 echo >&5
830 echo "## ------------ ##" >&5
831 echo "## confdefs.h. ##" >&5
832 echo "## ------------ ##" >&5
833 echo >&5
834 cat conftest.log >&5
836 (echo; 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 &&
841 exit $exit_status
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
845 done
846 ac_signal=0
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.
851 echo >confdefs.h
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"
858 else
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
867 . "$ac_site_file"
869 done
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;}
877 case $cache_file in
878 [\\/]* | ?:[\\/]* ) . $cache_file;;
879 *) . ./$cache_file;;
880 esac
882 else
883 { echo "$as_me:883: creating cache $cache_file" >&5
884 echo "$as_me: creating cache $cache_file" >&6;}
885 >$cache_file
888 # Check that the precious variables saved in the cache have kept the same
889 # value.
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
898 set,)
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=: ;;
902 ,set)
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=: ;;
906 ,);;
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=:
916 fi;;
917 esac
918 done
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;}
926 ac_ext=c
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='
934 ' ECHO_T=' ' ;;
935 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
936 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
937 esac
938 echo "#! $SHELL" >conftest.sh
939 echo "exit 0" >>conftest.sh
940 chmod +x conftest.sh
941 if { (echo "$as_me:941: PATH=\".;.\"; conftest.sh") >&5
942 (PATH=".;."; conftest.sh) 2>&5
943 ac_status=$?
944 echo "$as_me:944: \$? = $ac_status" >&5
945 (exit $ac_status); }; then
946 ac_path_separator=';'
947 else
948 ac_path_separator=:
950 PATH_SEPARATOR="$ac_path_separator"
951 rm -f conftest.sh
953 ac_config_headers="$ac_config_headers config.h"
955 ac_config_commands="$ac_config_commands default-1"
957 ac_aux_dir=
958 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
959 if test -f $ac_dir/install-sh; then
960 ac_aux_dir=$ac_dir
961 ac_install_sh="$ac_aux_dir/install-sh -c"
962 break
963 elif test -f $ac_dir/install.sh; then
964 ac_aux_dir=$ac_dir
965 ac_install_sh="$ac_aux_dir/install.sh -c"
966 break
967 elif test -f $ac_dir/shtool; then
968 ac_aux_dir=$ac_dir
969 ac_install_sh="$ac_aux_dir/shtool install -c"
970 break
972 done
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
992 else
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
1008 build=$ac_cv_build
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
1017 else
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
1029 host=$ac_cv_host
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
1042 # AIX /bin/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
1053 else
1054 ac_save_IFS=$IFS; IFS=$ac_path_separator
1055 for ac_dir in $PATH; do
1056 IFS=$ac_save_IFS
1057 # Account for people who put trailing slashes in PATH elements.
1058 case $ac_dir/ in
1059 / | ./ | .// | /cC/* \
1060 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1061 | /usr/ucb/* ) ;;
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
1065 # by default.
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.
1076 else
1077 ac_cv_path_install="$ac_dir/$ac_prog -c"
1078 break 2
1081 done
1083 esac
1084 done
1087 if test "${ac_cv_path_install+set}" = set; then
1088 INSTALL=$ac_cv_path_install
1089 else
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
1110 # Just in case
1111 sleep 1
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
1117 # directory).
1118 if (
1119 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1120 if test "$*" = "X"; then
1121 # -L didn't work.
1122 set X `ls -t $srcdir/configure conftest.file`
1124 if test "$*" != "X $srcdir/configure conftest.file" \
1125 && test "$*" != "X conftest.file $srcdir/configure"; then
1127 # If neither matched, then we have a broken ls. This can happen
1128 # if, for instance, CONFIG_SHELL is bash and it inherits a
1129 # broken ls alias from the environment. This has actually
1130 # happened. Such a system could not be considered "sane".
1131 { { echo "$as_me:1131: error: ls -t appears to fail. Make sure there is not a broken
1132 alias in your environment" >&5
1133 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1134 alias in your environment" >&2;}
1135 { (exit 1); exit 1; }; }
1138 test "$2" = conftest.file
1140 then
1141 # Ok.
1143 else
1144 { { echo "$as_me:1144: error: newly created file is older than distributed files!
1145 Check your system clock" >&5
1146 echo "$as_me: error: newly created file is older than distributed files!
1147 Check your system clock" >&2;}
1148 { (exit 1); exit 1; }; }
1150 rm -f conftest*
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=
1155 else
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`
1161 rm -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 :"; then
1176 am_missing_run="$MISSING --run "
1177 else
1178 am_missing_run=
1179 am_backtick='`'
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
1192 else
1193 if test -n "$AWK"; then
1194 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1195 else
1196 ac_save_IFS=$IFS; IFS=$ac_path_separator
1197 ac_dummy="$PATH"
1198 for ac_dir in $ac_dummy; do
1199 IFS=$ac_save_IFS
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
1204 break
1205 done
1209 AWK=$ac_cv_prog_AWK
1210 if test -n "$AWK"; then
1211 echo "$as_me:1211: result: $AWK" >&5
1212 echo "${ECHO_T}$AWK" >&6
1213 else
1214 echo "$as_me:1214: result: no" >&5
1215 echo "${ECHO_T}no" >&6
1218 test -n "$AWK" && break
1219 done
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
1226 else
1227 cat >conftest.make <<\EOF
1228 all:
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
1235 else
1236 eval ac_cv_prog_make_${ac_make}_set=no
1238 rm -f conftest.make
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
1243 SET_MAKE=
1244 else
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 AMDEP="#"
1257 else
1258 am_depcomp="$ac_aux_dir/depcomp"
1259 if test ! -f "$am_depcomp"; then
1260 AMDEP="#"
1261 else
1262 AMDEP=
1266 if test -z "$AMDEP"; then
1267 AMDEPBACKSLASH='\'
1268 else
1269 AMDEPBACKSLASH=
1272 if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
1273 DEPDIR=.deps
1274 # We redirect because .deps might already exist and be populated.
1275 # In this situation we don't want to see an error.
1276 rmdir .deps > /dev/null 2>&1
1277 else
1278 DEPDIR=_deps
1281 # test to see if srcdir already configured
1282 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1283 test -f $srcdir/config.status; then
1284 { { echo "$as_me:1284: error: source directory already configured; run \"make distclean\" there first" >&5
1285 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1286 { (exit 1); exit 1; }; }
1289 # Define the identity of the package.
1290 PACKAGE=findutils
1291 VERSION=4.1.7
1293 cat >>confdefs.h <<EOF
1294 #define PACKAGE "$PACKAGE"
1297 cat >>confdefs.h <<EOF
1298 #define VERSION "$VERSION"
1301 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1302 # the ones we care about.
1304 # Some tools Automake needs.
1306 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1308 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1310 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1312 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1314 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1316 AMTAR=${AMTAR-"${am_missing_run}tar"}
1318 if test -z "$install_sh"; then
1319 for install_sh in "$ac_aux_dir/install-sh" \
1320 "$ac_aux_dir/install.sh" \
1321 "${am_missing_run}${ac_auxdir}/install-sh";
1323 test -f "$install_sh" && break
1324 done
1325 # FIXME: an evil hack: we remove the SHELL invocation from
1326 # install_sh because automake adds it back in. Sigh.
1327 install_sh=`echo $install_sh | sed -e 's/\${SHELL}//'`
1330 # We need awk for the "check" target. The system "awk" is bad on
1331 # some platforms.
1333 # Check whether --enable-id-cache or --disable-id-cache was given.
1334 if test "${enable_id_cache+set}" = set; then
1335 enableval="$enable_id_cache"
1337 cat >>confdefs.h <<\EOF
1338 #define CACHE_IDS 1
1343 ac_ext=c
1344 ac_cpp='$CPP $CPPFLAGS'
1345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1348 if test -n "$ac_tool_prefix"; then
1349 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1350 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1351 echo "$as_me:1351: checking for $ac_word" >&5
1352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1353 if test "${ac_cv_prog_CC+set}" = set; then
1354 echo $ECHO_N "(cached) $ECHO_C" >&6
1355 else
1356 if test -n "$CC"; then
1357 ac_cv_prog_CC="$CC" # Let the user override the test.
1358 else
1359 ac_save_IFS=$IFS; IFS=$ac_path_separator
1360 ac_dummy="$PATH"
1361 for ac_dir in $ac_dummy; do
1362 IFS=$ac_save_IFS
1363 test -z "$ac_dir" && ac_dir=.
1364 $as_executable_p "$ac_dir/$ac_word" || continue
1365 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1366 echo "$as_me:1366: found $ac_dir/$ac_word" >&5
1367 break
1368 done
1372 CC=$ac_cv_prog_CC
1373 if test -n "$CC"; then
1374 echo "$as_me:1374: result: $CC" >&5
1375 echo "${ECHO_T}$CC" >&6
1376 else
1377 echo "$as_me:1377: result: no" >&5
1378 echo "${ECHO_T}no" >&6
1382 if test -z "$ac_cv_prog_CC"; then
1383 ac_ct_CC=$CC
1384 # Extract the first word of "gcc", so it can be a program name with args.
1385 set dummy gcc; ac_word=$2
1386 echo "$as_me:1386: checking for $ac_word" >&5
1387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1390 else
1391 if test -n "$ac_ct_CC"; then
1392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1393 else
1394 ac_save_IFS=$IFS; IFS=$ac_path_separator
1395 ac_dummy="$PATH"
1396 for ac_dir in $ac_dummy; do
1397 IFS=$ac_save_IFS
1398 test -z "$ac_dir" && ac_dir=.
1399 $as_executable_p "$ac_dir/$ac_word" || continue
1400 ac_cv_prog_ac_ct_CC="gcc"
1401 echo "$as_me:1401: found $ac_dir/$ac_word" >&5
1402 break
1403 done
1407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1408 if test -n "$ac_ct_CC"; then
1409 echo "$as_me:1409: result: $ac_ct_CC" >&5
1410 echo "${ECHO_T}$ac_ct_CC" >&6
1411 else
1412 echo "$as_me:1412: result: no" >&5
1413 echo "${ECHO_T}no" >&6
1416 CC=$ac_ct_CC
1417 else
1418 CC="$ac_cv_prog_CC"
1421 if test -z "$CC"; then
1422 if test -n "$ac_tool_prefix"; then
1423 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1424 set dummy ${ac_tool_prefix}cc; ac_word=$2
1425 echo "$as_me:1425: checking for $ac_word" >&5
1426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1427 if test "${ac_cv_prog_CC+set}" = set; then
1428 echo $ECHO_N "(cached) $ECHO_C" >&6
1429 else
1430 if test -n "$CC"; then
1431 ac_cv_prog_CC="$CC" # Let the user override the test.
1432 else
1433 ac_save_IFS=$IFS; IFS=$ac_path_separator
1434 ac_dummy="$PATH"
1435 for ac_dir in $ac_dummy; do
1436 IFS=$ac_save_IFS
1437 test -z "$ac_dir" && ac_dir=.
1438 $as_executable_p "$ac_dir/$ac_word" || continue
1439 ac_cv_prog_CC="${ac_tool_prefix}cc"
1440 echo "$as_me:1440: found $ac_dir/$ac_word" >&5
1441 break
1442 done
1446 CC=$ac_cv_prog_CC
1447 if test -n "$CC"; then
1448 echo "$as_me:1448: result: $CC" >&5
1449 echo "${ECHO_T}$CC" >&6
1450 else
1451 echo "$as_me:1451: result: no" >&5
1452 echo "${ECHO_T}no" >&6
1456 if test -z "$ac_cv_prog_CC"; then
1457 ac_ct_CC=$CC
1458 # Extract the first word of "cc", so it can be a program name with args.
1459 set dummy cc; ac_word=$2
1460 echo "$as_me:1460: checking for $ac_word" >&5
1461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1462 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1464 else
1465 if test -n "$ac_ct_CC"; then
1466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1467 else
1468 ac_save_IFS=$IFS; IFS=$ac_path_separator
1469 ac_dummy="$PATH"
1470 for ac_dir in $ac_dummy; do
1471 IFS=$ac_save_IFS
1472 test -z "$ac_dir" && ac_dir=.
1473 $as_executable_p "$ac_dir/$ac_word" || continue
1474 ac_cv_prog_ac_ct_CC="cc"
1475 echo "$as_me:1475: found $ac_dir/$ac_word" >&5
1476 break
1477 done
1481 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1482 if test -n "$ac_ct_CC"; then
1483 echo "$as_me:1483: result: $ac_ct_CC" >&5
1484 echo "${ECHO_T}$ac_ct_CC" >&6
1485 else
1486 echo "$as_me:1486: result: no" >&5
1487 echo "${ECHO_T}no" >&6
1490 CC=$ac_ct_CC
1491 else
1492 CC="$ac_cv_prog_CC"
1496 if test -z "$CC"; then
1497 # Extract the first word of "cc", so it can be a program name with args.
1498 set dummy cc; ac_word=$2
1499 echo "$as_me:1499: checking for $ac_word" >&5
1500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1501 if test "${ac_cv_prog_CC+set}" = set; then
1502 echo $ECHO_N "(cached) $ECHO_C" >&6
1503 else
1504 if test -n "$CC"; then
1505 ac_cv_prog_CC="$CC" # Let the user override the test.
1506 else
1507 ac_prog_rejected=no
1508 ac_save_IFS=$IFS; IFS=$ac_path_separator
1509 ac_dummy="$PATH"
1510 for ac_dir in $ac_dummy; do
1511 IFS=$ac_save_IFS
1512 test -z "$ac_dir" && ac_dir=.
1513 $as_executable_p "$ac_dir/$ac_word" || continue
1514 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1515 ac_prog_rejected=yes
1516 continue
1518 ac_cv_prog_CC="cc"
1519 echo "$as_me:1519: found $ac_dir/$ac_word" >&5
1520 break
1521 done
1523 if test $ac_prog_rejected = yes; then
1524 # We found a bogon in the path, so make sure we never use it.
1525 set dummy $ac_cv_prog_CC
1526 shift
1527 if test $# != 0; then
1528 # We chose a different compiler from the bogus one.
1529 # However, it has the same basename, so the bogon will be chosen
1530 # first if we set CC to just the basename; use the full file name.
1531 shift
1532 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1533 shift
1534 ac_cv_prog_CC="$@"
1539 CC=$ac_cv_prog_CC
1540 if test -n "$CC"; then
1541 echo "$as_me:1541: result: $CC" >&5
1542 echo "${ECHO_T}$CC" >&6
1543 else
1544 echo "$as_me:1544: result: no" >&5
1545 echo "${ECHO_T}no" >&6
1549 if test -z "$CC"; then
1550 if test -n "$ac_tool_prefix"; then
1551 for ac_prog in cl
1553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1555 echo "$as_me:1555: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_CC+set}" = set; then
1558 echo $ECHO_N "(cached) $ECHO_C" >&6
1559 else
1560 if test -n "$CC"; then
1561 ac_cv_prog_CC="$CC" # Let the user override the test.
1562 else
1563 ac_save_IFS=$IFS; IFS=$ac_path_separator
1564 ac_dummy="$PATH"
1565 for ac_dir in $ac_dummy; do
1566 IFS=$ac_save_IFS
1567 test -z "$ac_dir" && ac_dir=.
1568 $as_executable_p "$ac_dir/$ac_word" || continue
1569 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1570 echo "$as_me:1570: found $ac_dir/$ac_word" >&5
1571 break
1572 done
1576 CC=$ac_cv_prog_CC
1577 if test -n "$CC"; then
1578 echo "$as_me:1578: result: $CC" >&5
1579 echo "${ECHO_T}$CC" >&6
1580 else
1581 echo "$as_me:1581: result: no" >&5
1582 echo "${ECHO_T}no" >&6
1585 test -n "$CC" && break
1586 done
1588 if test -z "$CC"; then
1589 ac_ct_CC=$CC
1590 for ac_prog in cl
1592 # Extract the first word of "$ac_prog", so it can be a program name with args.
1593 set dummy $ac_prog; ac_word=$2
1594 echo "$as_me:1594: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 else
1599 if test -n "$ac_ct_CC"; then
1600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1601 else
1602 ac_save_IFS=$IFS; IFS=$ac_path_separator
1603 ac_dummy="$PATH"
1604 for ac_dir in $ac_dummy; do
1605 IFS=$ac_save_IFS
1606 test -z "$ac_dir" && ac_dir=.
1607 $as_executable_p "$ac_dir/$ac_word" || continue
1608 ac_cv_prog_ac_ct_CC="$ac_prog"
1609 echo "$as_me:1609: found $ac_dir/$ac_word" >&5
1610 break
1611 done
1615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1616 if test -n "$ac_ct_CC"; then
1617 echo "$as_me:1617: result: $ac_ct_CC" >&5
1618 echo "${ECHO_T}$ac_ct_CC" >&6
1619 else
1620 echo "$as_me:1620: result: no" >&5
1621 echo "${ECHO_T}no" >&6
1624 test -n "$ac_ct_CC" && break
1625 done
1627 CC=$ac_ct_CC
1632 test -z "$CC" && { { echo "$as_me:1632: error: no acceptable cc found in \$PATH" >&5
1633 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1634 { (exit 1); exit 1; }; }
1636 cat >conftest.$ac_ext <<_ACEOF
1637 #line 1637 "configure"
1638 #include "confdefs.h"
1641 main ()
1645 return 0;
1647 _ACEOF
1648 ac_clean_files_save=$ac_clean_files
1649 ac_clean_files="$ac_clean_files a.out a.exe"
1650 # Try to create an executable without -o first, disregard a.out.
1651 # It will help us diagnose broken compiler, and finding out an intuition
1652 # of exeext.
1653 echo "$as_me:1653: checking for C compiler default output" >&5
1654 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1655 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1656 if { (eval echo "$as_me:1656: \"$ac_link_default\"") >&5
1657 (eval $ac_link_default) 2>&5
1658 ac_status=$?
1659 echo "$as_me:1659: \$? = $ac_status" >&5
1660 (exit $ac_status); }; then
1661 for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
1662 case $ac_file in
1663 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1664 a.out ) # We found the default executable, but exeext='' is most
1665 # certainly right.
1666 break;;
1667 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1668 export ac_cv_exeext
1669 break;;
1670 * ) break;;
1671 esac
1672 done
1673 else
1674 echo "$as_me: failed program was:" >&5
1675 cat conftest.$ac_ext >&5
1676 { { echo "$as_me:1676: error: C compiler cannot create executables" >&5
1677 echo "$as_me: error: C compiler cannot create executables" >&2;}
1678 { (exit 77); exit 77; }; }
1681 ac_exeext=$ac_cv_exeext
1682 echo "$as_me:1682: result: $ac_file" >&5
1683 echo "${ECHO_T}$ac_file" >&6
1685 # Check the compiler produces executables we can run. If not, either
1686 # the compiler is broken, or we cross compile.
1687 echo "$as_me:1687: checking whether the C compiler works" >&5
1688 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1689 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1690 # If not cross compiling, check that we can run a simple program.
1691 if test "$cross_compiling" != yes; then
1692 if { ac_try='./$ac_file'
1693 { (eval echo "$as_me:1693: \"$ac_try\"") >&5
1694 (eval $ac_try) 2>&5
1695 ac_status=$?
1696 echo "$as_me:1696: \$? = $ac_status" >&5
1697 (exit $ac_status); }; }; then
1698 cross_compiling=no
1699 else
1700 if test "$cross_compiling" = maybe; then
1701 cross_compiling=yes
1702 else
1703 { { echo "$as_me:1703: error: cannot run C compiled programs.
1704 If you meant to cross compile, use \`--host'." >&5
1705 echo "$as_me: error: cannot run C compiled programs.
1706 If you meant to cross compile, use \`--host'." >&2;}
1707 { (exit 1); exit 1; }; }
1711 echo "$as_me:1711: result: yes" >&5
1712 echo "${ECHO_T}yes" >&6
1714 rm -f a.out a.exe conftest$ac_cv_exeext
1715 ac_clean_files=$ac_clean_files_save
1716 # Check the compiler produces executables we can run. If not, either
1717 # the compiler is broken, or we cross compile.
1718 echo "$as_me:1718: checking whether we are cross compiling" >&5
1719 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1720 echo "$as_me:1720: result: $cross_compiling" >&5
1721 echo "${ECHO_T}$cross_compiling" >&6
1723 echo "$as_me:1723: checking for executable suffix" >&5
1724 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1725 if { (eval echo "$as_me:1725: \"$ac_link\"") >&5
1726 (eval $ac_link) 2>&5
1727 ac_status=$?
1728 echo "$as_me:1728: \$? = $ac_status" >&5
1729 (exit $ac_status); }; then
1730 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1731 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1732 # work properly (i.e., refer to `conftest.exe'), while it won't with
1733 # `rm'.
1734 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1735 case $ac_file in
1736 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1737 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1738 export ac_cv_exeext
1739 break;;
1740 * ) break;;
1741 esac
1742 done
1743 else
1744 { { echo "$as_me:1744: error: cannot compute EXEEXT: cannot compile and link" >&5
1745 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1746 { (exit 1); exit 1; }; }
1749 rm -f conftest$ac_cv_exeext
1750 echo "$as_me:1750: result: $ac_cv_exeext" >&5
1751 echo "${ECHO_T}$ac_cv_exeext" >&6
1753 rm -f conftest.$ac_ext
1754 EXEEXT=$ac_cv_exeext
1755 ac_exeext=$EXEEXT
1756 echo "$as_me:1756: checking for object suffix" >&5
1757 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1758 if test "${ac_cv_objext+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 else
1761 cat >conftest.$ac_ext <<_ACEOF
1762 #line 1762 "configure"
1763 #include "confdefs.h"
1766 main ()
1770 return 0;
1772 _ACEOF
1773 rm -f conftest.o conftest.obj
1774 if { (eval echo "$as_me:1774: \"$ac_compile\"") >&5
1775 (eval $ac_compile) 2>&5
1776 ac_status=$?
1777 echo "$as_me:1777: \$? = $ac_status" >&5
1778 (exit $ac_status); }; then
1779 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1780 case $ac_file in
1781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1782 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1783 break;;
1784 esac
1785 done
1786 else
1787 echo "$as_me: failed program was:" >&5
1788 cat conftest.$ac_ext >&5
1789 { { echo "$as_me:1789: error: cannot compute OBJEXT: cannot compile" >&5
1790 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1791 { (exit 1); exit 1; }; }
1794 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1796 echo "$as_me:1796: result: $ac_cv_objext" >&5
1797 echo "${ECHO_T}$ac_cv_objext" >&6
1798 OBJEXT=$ac_cv_objext
1799 ac_objext=$OBJEXT
1800 echo "$as_me:1800: checking whether we are using the GNU C compiler" >&5
1801 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1802 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 else
1805 cat >conftest.$ac_ext <<_ACEOF
1806 #line 1806 "configure"
1807 #include "confdefs.h"
1810 main ()
1812 #ifndef __GNUC__
1813 choke me
1814 #endif
1817 return 0;
1819 _ACEOF
1820 rm -f conftest.$ac_objext
1821 if { (eval echo "$as_me:1821: \"$ac_compile\"") >&5
1822 (eval $ac_compile) 2>&5
1823 ac_status=$?
1824 echo "$as_me:1824: \$? = $ac_status" >&5
1825 (exit $ac_status); } &&
1826 { ac_try='test -s conftest.$ac_objext'
1827 { (eval echo "$as_me:1827: \"$ac_try\"") >&5
1828 (eval $ac_try) 2>&5
1829 ac_status=$?
1830 echo "$as_me:1830: \$? = $ac_status" >&5
1831 (exit $ac_status); }; }; then
1832 ac_compiler_gnu=yes
1833 else
1834 echo "$as_me: failed program was:" >&5
1835 cat conftest.$ac_ext >&5
1836 ac_compiler_gnu=no
1838 rm -f conftest.$ac_objext conftest.$ac_ext
1839 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1842 echo "$as_me:1842: result: $ac_cv_c_compiler_gnu" >&5
1843 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1844 GCC=`test $ac_compiler_gnu = yes && echo yes`
1845 ac_test_CFLAGS=${CFLAGS+set}
1846 ac_save_CFLAGS=$CFLAGS
1847 CFLAGS="-g"
1848 echo "$as_me:1848: checking whether $CC accepts -g" >&5
1849 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1850 if test "${ac_cv_prog_cc_g+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 else
1853 cat >conftest.$ac_ext <<_ACEOF
1854 #line 1854 "configure"
1855 #include "confdefs.h"
1858 main ()
1862 return 0;
1864 _ACEOF
1865 rm -f conftest.$ac_objext
1866 if { (eval echo "$as_me:1866: \"$ac_compile\"") >&5
1867 (eval $ac_compile) 2>&5
1868 ac_status=$?
1869 echo "$as_me:1869: \$? = $ac_status" >&5
1870 (exit $ac_status); } &&
1871 { ac_try='test -s conftest.$ac_objext'
1872 { (eval echo "$as_me:1872: \"$ac_try\"") >&5
1873 (eval $ac_try) 2>&5
1874 ac_status=$?
1875 echo "$as_me:1875: \$? = $ac_status" >&5
1876 (exit $ac_status); }; }; then
1877 ac_cv_prog_cc_g=yes
1878 else
1879 echo "$as_me: failed program was:" >&5
1880 cat conftest.$ac_ext >&5
1881 ac_cv_prog_cc_g=no
1883 rm -f conftest.$ac_objext conftest.$ac_ext
1885 echo "$as_me:1885: result: $ac_cv_prog_cc_g" >&5
1886 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1887 if test "$ac_test_CFLAGS" = set; then
1888 CFLAGS=$ac_save_CFLAGS
1889 elif test $ac_cv_prog_cc_g = yes; then
1890 if test "$GCC" = yes; then
1891 CFLAGS="-g -O2"
1892 else
1893 CFLAGS="-g"
1895 else
1896 if test "$GCC" = yes; then
1897 CFLAGS="-O2"
1898 else
1899 CFLAGS=
1902 # Some people use a C++ compiler to compile C. Since we use `exit',
1903 # in C++ we need to declare it. In case someone uses the same compiler
1904 # for both compiling C and C++ we need to have the C++ compiler decide
1905 # the declaration of exit, since it's the most demanding environment.
1906 cat >conftest.$ac_ext <<_ACEOF
1907 #ifndef __cplusplus
1908 choke me
1909 #endif
1910 _ACEOF
1911 rm -f conftest.$ac_objext
1912 if { (eval echo "$as_me:1912: \"$ac_compile\"") >&5
1913 (eval $ac_compile) 2>&5
1914 ac_status=$?
1915 echo "$as_me:1915: \$? = $ac_status" >&5
1916 (exit $ac_status); } &&
1917 { ac_try='test -s conftest.$ac_objext'
1918 { (eval echo "$as_me:1918: \"$ac_try\"") >&5
1919 (eval $ac_try) 2>&5
1920 ac_status=$?
1921 echo "$as_me:1921: \$? = $ac_status" >&5
1922 (exit $ac_status); }; }; then
1923 for ac_declaration in \
1925 '#include <stdlib.h>' \
1926 'extern "C" void std::exit (int) throw (); using std::exit;' \
1927 'extern "C" void std::exit (int); using std::exit;' \
1928 'extern "C" void exit (int) throw ();' \
1929 'extern "C" void exit (int);' \
1930 'void exit (int);'
1932 cat >conftest.$ac_ext <<_ACEOF
1933 #line 1933 "configure"
1934 #include "confdefs.h"
1935 #include <stdlib.h>
1936 $ac_declaration
1938 main ()
1940 exit (42);
1942 return 0;
1944 _ACEOF
1945 rm -f conftest.$ac_objext
1946 if { (eval echo "$as_me:1946: \"$ac_compile\"") >&5
1947 (eval $ac_compile) 2>&5
1948 ac_status=$?
1949 echo "$as_me:1949: \$? = $ac_status" >&5
1950 (exit $ac_status); } &&
1951 { ac_try='test -s conftest.$ac_objext'
1952 { (eval echo "$as_me:1952: \"$ac_try\"") >&5
1953 (eval $ac_try) 2>&5
1954 ac_status=$?
1955 echo "$as_me:1955: \$? = $ac_status" >&5
1956 (exit $ac_status); }; }; then
1958 else
1959 echo "$as_me: failed program was:" >&5
1960 cat conftest.$ac_ext >&5
1961 continue
1963 rm -f conftest.$ac_objext conftest.$ac_ext
1964 cat >conftest.$ac_ext <<_ACEOF
1965 #line 1965 "configure"
1966 #include "confdefs.h"
1967 $ac_declaration
1969 main ()
1971 exit (42);
1973 return 0;
1975 _ACEOF
1976 rm -f conftest.$ac_objext
1977 if { (eval echo "$as_me:1977: \"$ac_compile\"") >&5
1978 (eval $ac_compile) 2>&5
1979 ac_status=$?
1980 echo "$as_me:1980: \$? = $ac_status" >&5
1981 (exit $ac_status); } &&
1982 { ac_try='test -s conftest.$ac_objext'
1983 { (eval echo "$as_me:1983: \"$ac_try\"") >&5
1984 (eval $ac_try) 2>&5
1985 ac_status=$?
1986 echo "$as_me:1986: \$? = $ac_status" >&5
1987 (exit $ac_status); }; }; then
1988 break
1989 else
1990 echo "$as_me: failed program was:" >&5
1991 cat conftest.$ac_ext >&5
1993 rm -f conftest.$ac_objext conftest.$ac_ext
1994 done
1995 echo '#ifdef __cplusplus' >>confdefs.h
1996 echo $ac_declaration >>confdefs.h
1997 echo '#endif' >>confdefs.h
1999 else
2000 echo "$as_me: failed program was:" >&5
2001 cat conftest.$ac_ext >&5
2003 rm -f conftest.$ac_objext conftest.$ac_ext
2004 ac_ext=c
2005 ac_cpp='$CPP $CPPFLAGS'
2006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010 ac_config_commands="$ac_config_commands default-2"
2012 ac_ext=c
2013 ac_cpp='$CPP $CPPFLAGS'
2014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2017 echo "$as_me:2017: checking how to run the C preprocessor" >&5
2018 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2019 # On Suns, sometimes $CPP names a directory.
2020 if test -n "$CPP" && test -d "$CPP"; then
2021 CPP=
2023 if test -z "$CPP"; then
2024 if test "${ac_cv_prog_CPP+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027 # Double quotes because CPP needs to be expanded
2028 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2030 # We don't know yet if stderr is the criterion (vs exit status).
2031 ac_c_preproc_warn_flag=maybe
2033 # Use a header file that comes with gcc, so configuring glibc
2034 # with a fresh cross-compiler works.
2035 # On the NeXT, cc -E runs the code through the compiler's parser,
2036 # not just through cpp. "Syntax error" is here to catch this case.
2037 cat >conftest.$ac_ext <<_ACEOF
2038 #line 2038 "configure"
2039 #include "confdefs.h"
2040 #include <assert.h>
2041 Syntax error
2042 _ACEOF
2043 if { (eval echo "$as_me:2043: \"$ac_cpp conftest.$ac_ext\"") >&5
2044 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2045 ac_status=$?
2046 egrep -v '^ *\+' conftest.er1 >conftest.err
2047 rm -f conftest.er1
2048 cat conftest.err >&5
2049 echo "$as_me:2049: \$? = $ac_status" >&5
2050 (exit $ac_status); } >/dev/null; then
2051 if test -s conftest.err; then
2052 ac_cpp_err=$ac_c_preproc_warn_flag
2053 else
2054 ac_cpp_err=
2056 else
2057 ac_cpp_err=yes
2059 if test -z "$ac_cpp_err"; then
2060 # OK, works on sane cases. Now check whether non-existent headers can
2061 # be detected and how.
2062 cat >conftest.$ac_ext <<_ACEOF
2063 #line 2063 "configure"
2064 #include "confdefs.h"
2065 #include <ac_nonexistent.h>
2066 _ACEOF
2067 if { (eval echo "$as_me:2067: \"$ac_cpp conftest.$ac_ext\"") >&5
2068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2069 ac_status=$?
2070 egrep -v '^ *\+' conftest.er1 >conftest.err
2071 rm -f conftest.er1
2072 cat conftest.err >&5
2073 echo "$as_me:2073: \$? = $ac_status" >&5
2074 (exit $ac_status); } >/dev/null; then
2075 if test -s conftest.err; then
2076 ac_cpp_err=$ac_c_preproc_warn_flag
2077 else
2078 ac_cpp_err=
2080 else
2081 ac_cpp_err=yes
2083 if test -z "$ac_cpp_err"; then
2084 # Broken: cannot detect missing includes.
2086 else
2087 echo "$as_me: failed program was:" >&5
2088 cat conftest.$ac_ext >&5
2089 # OK, detects failures. How?
2090 if test "x$ac_cpp_err" = xmaybe; then
2091 ac_c_preproc_warn_flag=yes
2092 else
2093 ac_c_preproc_warn_flag=
2095 break
2097 rm -f conftest.err conftest.$ac_ext
2098 else
2099 echo "$as_me: failed program was:" >&5
2100 cat conftest.$ac_ext >&5
2101 # Broken: fails on valid input.
2104 rm -f conftest.err conftest.$ac_ext
2105 done
2106 ac_cv_prog_CPP=$CPP
2109 CPP=$ac_cv_prog_CPP
2110 else
2111 ac_cv_prog_CPP=$CPP
2113 echo "$as_me:2113: result: $CPP" >&5
2114 echo "${ECHO_T}$CPP" >&6
2115 # We don't know yet if stderr is the criterion (vs exit status).
2116 ac_c_preproc_warn_flag=maybe
2118 # Use a header file that comes with gcc, so configuring glibc
2119 # with a fresh cross-compiler works.
2120 # On the NeXT, cc -E runs the code through the compiler's parser,
2121 # not just through cpp. "Syntax error" is here to catch this case.
2122 cat >conftest.$ac_ext <<_ACEOF
2123 #line 2123 "configure"
2124 #include "confdefs.h"
2125 #include <assert.h>
2126 Syntax error
2127 _ACEOF
2128 if { (eval echo "$as_me:2128: \"$ac_cpp conftest.$ac_ext\"") >&5
2129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2130 ac_status=$?
2131 egrep -v '^ *\+' conftest.er1 >conftest.err
2132 rm -f conftest.er1
2133 cat conftest.err >&5
2134 echo "$as_me:2134: \$? = $ac_status" >&5
2135 (exit $ac_status); } >/dev/null; then
2136 if test -s conftest.err; then
2137 ac_cpp_err=$ac_c_preproc_warn_flag
2138 else
2139 ac_cpp_err=
2141 else
2142 ac_cpp_err=yes
2144 if test -z "$ac_cpp_err"; then
2145 # OK, works on sane cases. Now check whether non-existent headers can
2146 # be detected and how.
2147 cat >conftest.$ac_ext <<_ACEOF
2148 #line 2148 "configure"
2149 #include "confdefs.h"
2150 #include <ac_nonexistent.h>
2151 _ACEOF
2152 if { (eval echo "$as_me:2152: \"$ac_cpp conftest.$ac_ext\"") >&5
2153 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2154 ac_status=$?
2155 egrep -v '^ *\+' conftest.er1 >conftest.err
2156 rm -f conftest.er1
2157 cat conftest.err >&5
2158 echo "$as_me:2158: \$? = $ac_status" >&5
2159 (exit $ac_status); } >/dev/null; then
2160 if test -s conftest.err; then
2161 ac_cpp_err=$ac_c_preproc_warn_flag
2162 else
2163 ac_cpp_err=
2165 else
2166 ac_cpp_err=yes
2168 if test -z "$ac_cpp_err"; then
2169 # Broken: cannot detect missing includes.
2170 { { echo "$as_me:2170: error: C preprocessor \"$CPP\" fails sanity check" >&5
2171 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2172 { (exit 1); exit 1; }; }
2173 else
2174 echo "$as_me: failed program was:" >&5
2175 cat conftest.$ac_ext >&5
2176 # OK, detects failures. How?
2177 if test "x$ac_cpp_err" = xmaybe; then
2178 ac_c_preproc_warn_flag=yes
2179 else
2180 ac_c_preproc_warn_flag=
2184 rm -f conftest.err conftest.$ac_ext
2185 else
2186 echo "$as_me: failed program was:" >&5
2187 cat conftest.$ac_ext >&5
2188 # Broken: fails on valid input.
2189 { { echo "$as_me:2189: error: C preprocessor \"$CPP\" fails sanity check" >&5
2190 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2191 { (exit 1); exit 1; }; }
2193 rm -f conftest.err conftest.$ac_ext
2194 ac_ext=c
2195 ac_cpp='$CPP $CPPFLAGS'
2196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2200 am_make=${MAKE-make}
2201 # BSD make uses .include
2202 cat > confinc << 'END'
2203 doit:
2204 @echo done
2206 # If we don't find an include directive, just comment out the code.
2207 echo "$as_me:2207: checking for style of include used by $am_make" >&5
2208 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2209 _am_include='#'
2210 for am_inc in include .include; do
2211 echo "$am_inc confinc" > confmf
2212 if test "`$am_make -f confmf 2> /dev/null`" = "done"; then
2213 _am_include=$am_inc
2214 break
2216 done
2218 echo "$as_me:2218: result: $_am_include" >&5
2219 echo "${ECHO_T}$_am_include" >&6
2220 rm -f confinc confmf
2222 depcc="$CC"
2223 depcpp="$CPP"
2225 echo "$as_me:2225: checking dependency style of $depcc" >&5
2226 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2227 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230 if test -z "$AMDEP"; then
2231 # We make a subdir and do the tests there. Otherwise we can end up
2232 # making bogus files that we don't know about and never remove. For
2233 # instance it was reported that on HP-UX the gcc test will end up
2234 # making a dummy file named `D' -- because `-MD' means `put the output
2235 # in D'.
2236 mkdir confdir
2237 # Copy depcomp to subdir because otherwise we won't find it if we're
2238 # using a relative directory.
2239 cp "$am_depcomp" confdir
2240 cd confdir
2242 am_cv_CC_dependencies_compiler_type=none
2243 for depmode in `sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < "./depcomp"`; do
2244 # We need to recreate these files for each test, as the compiler may
2245 # overwrite some of them when testing with obscure command lines.
2246 # This happens at least with the AIX C compiler.
2247 echo '#include "conftest.h"' > conftest.c
2248 echo 'int i;' > conftest.h
2250 case "$depmode" in
2251 nosideeffect)
2252 # after this tag, mechanisms are not by side-effect, so they'll
2253 # only be used when explicitly requested
2254 if test "x$enable_dependency_tracking" = xyes; then
2255 continue
2256 else
2257 break
2260 none) break ;;
2261 esac
2262 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2263 # mode. It turns out that the SunPro C++ compiler does not properly
2264 # handle `-M -o', and we need to detect this.
2265 if depmode="$depmode" \
2266 source=conftest.c object=conftest.o \
2267 depfile=conftest.Po tmpdepfile=conftest.TPo \
2268 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2269 grep conftest.h conftest.Po > /dev/null 2>&1; then
2270 am_cv_CC_dependencies_compiler_type="$depmode"
2271 break
2273 done
2275 cd ..
2276 rm -rf confdir
2277 else
2278 am_cv_CC_dependencies_compiler_type=none
2282 echo "$as_me:2282: result: $am_cv_CC_dependencies_compiler_type" >&5
2283 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2284 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2286 ac_ext=c
2287 ac_cpp='$CPP $CPPFLAGS'
2288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2291 echo "$as_me:2291: checking how to run the C preprocessor" >&5
2292 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2293 # On Suns, sometimes $CPP names a directory.
2294 if test -n "$CPP" && test -d "$CPP"; then
2295 CPP=
2297 if test -z "$CPP"; then
2298 if test "${ac_cv_prog_CPP+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301 # Double quotes because CPP needs to be expanded
2302 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2304 # We don't know yet if stderr is the criterion (vs exit status).
2305 ac_c_preproc_warn_flag=maybe
2307 # Use a header file that comes with gcc, so configuring glibc
2308 # with a fresh cross-compiler works.
2309 # On the NeXT, cc -E runs the code through the compiler's parser,
2310 # not just through cpp. "Syntax error" is here to catch this case.
2311 cat >conftest.$ac_ext <<_ACEOF
2312 #line 2312 "configure"
2313 #include "confdefs.h"
2314 #include <assert.h>
2315 Syntax error
2316 _ACEOF
2317 if { (eval echo "$as_me:2317: \"$ac_cpp conftest.$ac_ext\"") >&5
2318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2319 ac_status=$?
2320 egrep -v '^ *\+' conftest.er1 >conftest.err
2321 rm -f conftest.er1
2322 cat conftest.err >&5
2323 echo "$as_me:2323: \$? = $ac_status" >&5
2324 (exit $ac_status); } >/dev/null; then
2325 if test -s conftest.err; then
2326 ac_cpp_err=$ac_c_preproc_warn_flag
2327 else
2328 ac_cpp_err=
2330 else
2331 ac_cpp_err=yes
2333 if test -z "$ac_cpp_err"; then
2334 # OK, works on sane cases. Now check whether non-existent headers can
2335 # be detected and how.
2336 cat >conftest.$ac_ext <<_ACEOF
2337 #line 2337 "configure"
2338 #include "confdefs.h"
2339 #include <ac_nonexistent.h>
2340 _ACEOF
2341 if { (eval echo "$as_me:2341: \"$ac_cpp conftest.$ac_ext\"") >&5
2342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2343 ac_status=$?
2344 egrep -v '^ *\+' conftest.er1 >conftest.err
2345 rm -f conftest.er1
2346 cat conftest.err >&5
2347 echo "$as_me:2347: \$? = $ac_status" >&5
2348 (exit $ac_status); } >/dev/null; then
2349 if test -s conftest.err; then
2350 ac_cpp_err=$ac_c_preproc_warn_flag
2351 else
2352 ac_cpp_err=
2354 else
2355 ac_cpp_err=yes
2357 if test -z "$ac_cpp_err"; then
2358 # Broken: cannot detect missing includes.
2360 else
2361 echo "$as_me: failed program was:" >&5
2362 cat conftest.$ac_ext >&5
2363 # OK, detects failures. How?
2364 if test "x$ac_cpp_err" = xmaybe; then
2365 ac_c_preproc_warn_flag=yes
2366 else
2367 ac_c_preproc_warn_flag=
2369 break
2371 rm -f conftest.err conftest.$ac_ext
2372 else
2373 echo "$as_me: failed program was:" >&5
2374 cat conftest.$ac_ext >&5
2375 # Broken: fails on valid input.
2378 rm -f conftest.err conftest.$ac_ext
2379 done
2380 ac_cv_prog_CPP=$CPP
2383 CPP=$ac_cv_prog_CPP
2384 else
2385 ac_cv_prog_CPP=$CPP
2387 echo "$as_me:2387: result: $CPP" >&5
2388 echo "${ECHO_T}$CPP" >&6
2389 # We don't know yet if stderr is the criterion (vs exit status).
2390 ac_c_preproc_warn_flag=maybe
2392 # Use a header file that comes with gcc, so configuring glibc
2393 # with a fresh cross-compiler works.
2394 # On the NeXT, cc -E runs the code through the compiler's parser,
2395 # not just through cpp. "Syntax error" is here to catch this case.
2396 cat >conftest.$ac_ext <<_ACEOF
2397 #line 2397 "configure"
2398 #include "confdefs.h"
2399 #include <assert.h>
2400 Syntax error
2401 _ACEOF
2402 if { (eval echo "$as_me:2402: \"$ac_cpp conftest.$ac_ext\"") >&5
2403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2404 ac_status=$?
2405 egrep -v '^ *\+' conftest.er1 >conftest.err
2406 rm -f conftest.er1
2407 cat conftest.err >&5
2408 echo "$as_me:2408: \$? = $ac_status" >&5
2409 (exit $ac_status); } >/dev/null; then
2410 if test -s conftest.err; then
2411 ac_cpp_err=$ac_c_preproc_warn_flag
2412 else
2413 ac_cpp_err=
2415 else
2416 ac_cpp_err=yes
2418 if test -z "$ac_cpp_err"; then
2419 # OK, works on sane cases. Now check whether non-existent headers can
2420 # be detected and how.
2421 cat >conftest.$ac_ext <<_ACEOF
2422 #line 2422 "configure"
2423 #include "confdefs.h"
2424 #include <ac_nonexistent.h>
2425 _ACEOF
2426 if { (eval echo "$as_me:2426: \"$ac_cpp conftest.$ac_ext\"") >&5
2427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2428 ac_status=$?
2429 egrep -v '^ *\+' conftest.er1 >conftest.err
2430 rm -f conftest.er1
2431 cat conftest.err >&5
2432 echo "$as_me:2432: \$? = $ac_status" >&5
2433 (exit $ac_status); } >/dev/null; then
2434 if test -s conftest.err; then
2435 ac_cpp_err=$ac_c_preproc_warn_flag
2436 else
2437 ac_cpp_err=
2439 else
2440 ac_cpp_err=yes
2442 if test -z "$ac_cpp_err"; then
2443 # Broken: cannot detect missing includes.
2444 { { echo "$as_me:2444: error: C preprocessor \"$CPP\" fails sanity check" >&5
2445 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2446 { (exit 1); exit 1; }; }
2447 else
2448 echo "$as_me: failed program was:" >&5
2449 cat conftest.$ac_ext >&5
2450 # OK, detects failures. How?
2451 if test "x$ac_cpp_err" = xmaybe; then
2452 ac_c_preproc_warn_flag=yes
2453 else
2454 ac_c_preproc_warn_flag=
2458 rm -f conftest.err conftest.$ac_ext
2459 else
2460 echo "$as_me: failed program was:" >&5
2461 cat conftest.$ac_ext >&5
2462 # Broken: fails on valid input.
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 rm -f conftest.err conftest.$ac_ext
2468 ac_ext=c
2469 ac_cpp='$CPP $CPPFLAGS'
2470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2474 echo "$as_me:2474: checking for AIX" >&5
2475 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2476 cat >conftest.$ac_ext <<_ACEOF
2477 #line 2477 "configure"
2478 #include "confdefs.h"
2479 #ifdef _AIX
2481 #endif
2483 _ACEOF
2484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2485 egrep "yes" >/dev/null 2>&1; then
2486 echo "$as_me:2486: result: yes" >&5
2487 echo "${ECHO_T}yes" >&6
2488 cat >>confdefs.h <<\EOF
2489 #define _ALL_SOURCE 1
2492 else
2493 echo "$as_me:2493: result: no" >&5
2494 echo "${ECHO_T}no" >&6
2496 rm -f conftest*
2498 echo "$as_me:2498: checking for minix/config.h" >&5
2499 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2500 if test "${ac_cv_header_minix_config_h+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503 cat >conftest.$ac_ext <<_ACEOF
2504 #line 2504 "configure"
2505 #include "confdefs.h"
2506 #include <minix/config.h>
2507 _ACEOF
2508 if { (eval echo "$as_me:2508: \"$ac_cpp conftest.$ac_ext\"") >&5
2509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2510 ac_status=$?
2511 egrep -v '^ *\+' conftest.er1 >conftest.err
2512 rm -f conftest.er1
2513 cat conftest.err >&5
2514 echo "$as_me:2514: \$? = $ac_status" >&5
2515 (exit $ac_status); } >/dev/null; then
2516 if test -s conftest.err; then
2517 ac_cpp_err=$ac_c_preproc_warn_flag
2518 else
2519 ac_cpp_err=
2521 else
2522 ac_cpp_err=yes
2524 if test -z "$ac_cpp_err"; then
2525 ac_cv_header_minix_config_h=yes
2526 else
2527 echo "$as_me: failed program was:" >&5
2528 cat conftest.$ac_ext >&5
2529 ac_cv_header_minix_config_h=no
2531 rm -f conftest.err conftest.$ac_ext
2533 echo "$as_me:2533: result: $ac_cv_header_minix_config_h" >&5
2534 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2535 if test $ac_cv_header_minix_config_h = yes; then
2536 MINIX=yes
2537 else
2538 MINIX=
2541 if test "$MINIX" = yes; then
2543 cat >>confdefs.h <<\EOF
2544 #define _POSIX_SOURCE 1
2547 cat >>confdefs.h <<\EOF
2548 #define _POSIX_1_SOURCE 2
2551 cat >>confdefs.h <<\EOF
2552 #define _MINIX 1
2557 echo "$as_me:2557: checking for strerror in -lcposix" >&5
2558 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2559 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 else
2562 ac_check_lib_save_LIBS=$LIBS
2563 LIBS="-lcposix $LIBS"
2564 cat >conftest.$ac_ext <<_ACEOF
2565 #line 2565 "configure"
2566 #include "confdefs.h"
2568 /* Override any gcc2 internal prototype to avoid an error. */
2569 #ifdef __cplusplus
2570 extern "C"
2571 #endif
2572 /* We use char because int might match the return type of a gcc2
2573 builtin and then its argument prototype would still apply. */
2574 char strerror ();
2576 main ()
2578 strerror ();
2580 return 0;
2582 _ACEOF
2583 rm -f conftest.$ac_objext conftest$ac_exeext
2584 if { (eval echo "$as_me:2584: \"$ac_link\"") >&5
2585 (eval $ac_link) 2>&5
2586 ac_status=$?
2587 echo "$as_me:2587: \$? = $ac_status" >&5
2588 (exit $ac_status); } &&
2589 { ac_try='test -s conftest$ac_exeext'
2590 { (eval echo "$as_me:2590: \"$ac_try\"") >&5
2591 (eval $ac_try) 2>&5
2592 ac_status=$?
2593 echo "$as_me:2593: \$? = $ac_status" >&5
2594 (exit $ac_status); }; }; then
2595 ac_cv_lib_cposix_strerror=yes
2596 else
2597 echo "$as_me: failed program was:" >&5
2598 cat conftest.$ac_ext >&5
2599 ac_cv_lib_cposix_strerror=no
2601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2602 LIBS=$ac_check_lib_save_LIBS
2604 echo "$as_me:2604: result: $ac_cv_lib_cposix_strerror" >&5
2605 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2606 if test $ac_cv_lib_cposix_strerror = yes; then
2607 LIBS="$LIBS -lcposix"
2610 echo "$as_me:2610: checking for $CC option to accept ANSI C" >&5
2611 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2612 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2614 else
2615 ac_cv_prog_cc_stdc=no
2616 ac_save_CC=$CC
2617 cat >conftest.$ac_ext <<_ACEOF
2618 #line 2618 "configure"
2619 #include "confdefs.h"
2620 #include <stdarg.h>
2621 #include <stdio.h>
2622 #include <sys/types.h>
2623 #include <sys/stat.h>
2624 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2625 struct buf { int x; };
2626 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2627 static char *e (p, i)
2628 char **p;
2629 int i;
2631 return p[i];
2633 static char *f (char * (*g) (char **, int), char **p, ...)
2635 char *s;
2636 va_list v;
2637 va_start (v,p);
2638 s = g (p, va_arg (v,int));
2639 va_end (v);
2640 return s;
2642 int test (int i, double x);
2643 struct s1 {int (*f) (int a);};
2644 struct s2 {int (*f) (double a);};
2645 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2646 int argc;
2647 char **argv;
2649 main ()
2651 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2653 return 0;
2655 _ACEOF
2656 # Don't try gcc -ansi; that turns off useful extensions and
2657 # breaks some systems' header files.
2658 # AIX -qlanglvl=ansi
2659 # Ultrix and OSF/1 -std1
2660 # HP-UX 10.20 and later -Ae
2661 # HP-UX older versions -Aa -D_HPUX_SOURCE
2662 # SVR4 -Xc -D__EXTENSIONS__
2663 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2665 CC="$ac_save_CC $ac_arg"
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:2667: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>&5
2669 ac_status=$?
2670 echo "$as_me:2670: \$? = $ac_status" >&5
2671 (exit $ac_status); } &&
2672 { ac_try='test -s conftest.$ac_objext'
2673 { (eval echo "$as_me:2673: \"$ac_try\"") >&5
2674 (eval $ac_try) 2>&5
2675 ac_status=$?
2676 echo "$as_me:2676: \$? = $ac_status" >&5
2677 (exit $ac_status); }; }; then
2678 ac_cv_prog_cc_stdc=$ac_arg
2679 break
2680 else
2681 echo "$as_me: failed program was:" >&5
2682 cat conftest.$ac_ext >&5
2684 rm -f conftest.$ac_objext
2685 done
2686 rm -f conftest.$ac_ext conftest.$ac_objext
2687 CC=$ac_save_CC
2691 case "x$ac_cv_prog_cc_stdc" in
2692 x|xno)
2693 echo "$as_me:2693: result: none needed" >&5
2694 echo "${ECHO_T}none needed" >&6 ;;
2696 echo "$as_me:2696: result: $ac_cv_prog_cc_stdc" >&5
2697 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2698 CC="$CC $ac_cv_prog_cc_stdc" ;;
2699 esac
2701 echo "$as_me:2701: checking for ${CC-cc} option to accept ANSI C" >&5
2702 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2703 if test "${am_cv_prog_cc_stdc+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2705 else
2706 am_cv_prog_cc_stdc=no
2707 ac_save_CC="$CC"
2708 # Don't try gcc -ansi; that turns off useful extensions and
2709 # breaks some systems' header files.
2710 # AIX -qlanglvl=ansi
2711 # Ultrix and OSF/1 -std1
2712 # HP-UX 10.20 and later -Ae
2713 # HP-UX older versions -Aa -D_HPUX_SOURCE
2714 # SVR4 -Xc -D__EXTENSIONS__
2715 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2717 CC="$ac_save_CC $ac_arg"
2718 cat >conftest.$ac_ext <<_ACEOF
2719 #line 2719 "configure"
2720 #include "confdefs.h"
2721 #include <stdarg.h>
2722 #include <stdio.h>
2723 #include <sys/types.h>
2724 #include <sys/stat.h>
2725 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2726 struct buf { int x; };
2727 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2728 static char *e (p, i)
2729 char **p;
2730 int i;
2732 return p[i];
2734 static char *f (char * (*g) (char **, int), char **p, ...)
2736 char *s;
2737 va_list v;
2738 va_start (v,p);
2739 s = g (p, va_arg (v,int));
2740 va_end (v);
2741 return s;
2743 int test (int i, double x);
2744 struct s1 {int (*f) (int a);};
2745 struct s2 {int (*f) (double a);};
2746 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2747 int argc;
2748 char **argv;
2751 main ()
2754 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2757 return 0;
2759 _ACEOF
2760 rm -f conftest.$ac_objext
2761 if { (eval echo "$as_me:2761: \"$ac_compile\"") >&5
2762 (eval $ac_compile) 2>&5
2763 ac_status=$?
2764 echo "$as_me:2764: \$? = $ac_status" >&5
2765 (exit $ac_status); } &&
2766 { ac_try='test -s conftest.$ac_objext'
2767 { (eval echo "$as_me:2767: \"$ac_try\"") >&5
2768 (eval $ac_try) 2>&5
2769 ac_status=$?
2770 echo "$as_me:2770: \$? = $ac_status" >&5
2771 (exit $ac_status); }; }; then
2772 am_cv_prog_cc_stdc="$ac_arg"; break
2773 else
2774 echo "$as_me: failed program was:" >&5
2775 cat conftest.$ac_ext >&5
2777 rm -f conftest.$ac_objext conftest.$ac_ext
2778 done
2779 CC="$ac_save_CC"
2783 if test -z "$am_cv_prog_cc_stdc"; then
2784 echo "$as_me:2784: result: none needed" >&5
2785 echo "${ECHO_T}none needed" >&6
2786 else
2787 echo "$as_me:2787: result: $am_cv_prog_cc_stdc" >&5
2788 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2790 case "x$am_cv_prog_cc_stdc" in
2791 x|xno) ;;
2792 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2793 esac
2795 echo "$as_me:2795: checking for function prototypes" >&5
2796 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
2797 if test "$am_cv_prog_cc_stdc" != no; then
2798 echo "$as_me:2798: result: yes" >&5
2799 echo "${ECHO_T}yes" >&6
2801 cat >>confdefs.h <<\EOF
2802 #define PROTOTYPES 1
2805 U= ANSI2KNR=
2806 else
2807 echo "$as_me:2807: result: no" >&5
2808 echo "${ECHO_T}no" >&6
2809 U=_ ANSI2KNR=./ansi2knr
2811 # Ensure some checks needed by ansi2knr itself.
2812 echo "$as_me:2812: checking for ANSI C header files" >&5
2813 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2814 if test "${ac_cv_header_stdc+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 else
2817 cat >conftest.$ac_ext <<_ACEOF
2818 #line 2818 "configure"
2819 #include "confdefs.h"
2820 #include <stdlib.h>
2821 #include <stdarg.h>
2822 #include <string.h>
2823 #include <float.h>
2825 _ACEOF
2826 if { (eval echo "$as_me:2826: \"$ac_cpp conftest.$ac_ext\"") >&5
2827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2828 ac_status=$?
2829 egrep -v '^ *\+' conftest.er1 >conftest.err
2830 rm -f conftest.er1
2831 cat conftest.err >&5
2832 echo "$as_me:2832: \$? = $ac_status" >&5
2833 (exit $ac_status); } >/dev/null; then
2834 if test -s conftest.err; then
2835 ac_cpp_err=$ac_c_preproc_warn_flag
2836 else
2837 ac_cpp_err=
2839 else
2840 ac_cpp_err=yes
2842 if test -z "$ac_cpp_err"; then
2843 ac_cv_header_stdc=yes
2844 else
2845 echo "$as_me: failed program was:" >&5
2846 cat conftest.$ac_ext >&5
2847 ac_cv_header_stdc=no
2849 rm -f conftest.err conftest.$ac_ext
2851 if test $ac_cv_header_stdc = yes; then
2852 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2853 cat >conftest.$ac_ext <<_ACEOF
2854 #line 2854 "configure"
2855 #include "confdefs.h"
2856 #include <string.h>
2858 _ACEOF
2859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2860 egrep "memchr" >/dev/null 2>&1; then
2862 else
2863 ac_cv_header_stdc=no
2865 rm -f conftest*
2869 if test $ac_cv_header_stdc = yes; then
2870 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2871 cat >conftest.$ac_ext <<_ACEOF
2872 #line 2872 "configure"
2873 #include "confdefs.h"
2874 #include <stdlib.h>
2876 _ACEOF
2877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2878 egrep "free" >/dev/null 2>&1; then
2880 else
2881 ac_cv_header_stdc=no
2883 rm -f conftest*
2887 if test $ac_cv_header_stdc = yes; then
2888 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2889 if test "$cross_compiling" = yes; then
2891 else
2892 cat >conftest.$ac_ext <<_ACEOF
2893 #line 2893 "configure"
2894 #include "confdefs.h"
2895 #include <ctype.h>
2896 #if ((' ' & 0x0FF) == 0x020)
2897 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2898 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2899 #else
2900 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2901 || ('j' <= (c) && (c) <= 'r') \
2902 || ('s' <= (c) && (c) <= 'z'))
2903 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2904 #endif
2906 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2908 main ()
2910 int i;
2911 for (i = 0; i < 256; i++)
2912 if (XOR (islower (i), ISLOWER (i))
2913 || toupper (i) != TOUPPER (i))
2914 exit(2);
2915 exit (0);
2917 _ACEOF
2918 rm -f conftest$ac_exeext
2919 if { (eval echo "$as_me:2919: \"$ac_link\"") >&5
2920 (eval $ac_link) 2>&5
2921 ac_status=$?
2922 echo "$as_me:2922: \$? = $ac_status" >&5
2923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2924 { (eval echo "$as_me:2924: \"$ac_try\"") >&5
2925 (eval $ac_try) 2>&5
2926 ac_status=$?
2927 echo "$as_me:2927: \$? = $ac_status" >&5
2928 (exit $ac_status); }; }; then
2930 else
2931 echo "$as_me: program exited with status $ac_status" >&5
2932 echo "$as_me: failed program was:" >&5
2933 cat conftest.$ac_ext >&5
2934 ac_cv_header_stdc=no
2936 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
2940 echo "$as_me:2940: result: $ac_cv_header_stdc" >&5
2941 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2942 if test $ac_cv_header_stdc = yes; then
2944 cat >>confdefs.h <<\EOF
2945 #define STDC_HEADERS 1
2950 for ac_header in string.h
2952 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
2953 echo "$as_me:2953: checking for $ac_header" >&5
2954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2955 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 else
2958 cat >conftest.$ac_ext <<_ACEOF
2959 #line 2959 "configure"
2960 #include "confdefs.h"
2961 #include <$ac_header>
2962 _ACEOF
2963 if { (eval echo "$as_me:2963: \"$ac_cpp conftest.$ac_ext\"") >&5
2964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2965 ac_status=$?
2966 egrep -v '^ *\+' conftest.er1 >conftest.err
2967 rm -f conftest.er1
2968 cat conftest.err >&5
2969 echo "$as_me:2969: \$? = $ac_status" >&5
2970 (exit $ac_status); } >/dev/null; then
2971 if test -s conftest.err; then
2972 ac_cpp_err=$ac_c_preproc_warn_flag
2973 else
2974 ac_cpp_err=
2976 else
2977 ac_cpp_err=yes
2979 if test -z "$ac_cpp_err"; then
2980 eval "$ac_ac_Header=yes"
2981 else
2982 echo "$as_me: failed program was:" >&5
2983 cat conftest.$ac_ext >&5
2984 eval "$ac_ac_Header=no"
2986 rm -f conftest.err conftest.$ac_ext
2988 echo "$as_me:2988: result: `eval echo '${'$ac_ac_Header'}'`" >&5
2989 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
2990 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
2991 cat >>confdefs.h <<EOF
2992 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
2996 done
2998 # Find a good install program. We prefer a C program (faster),
2999 # so one script is as good as another. But avoid the broken or
3000 # incompatible versions:
3001 # SysV /etc/install, /usr/sbin/install
3002 # SunOS /usr/etc/install
3003 # IRIX /sbin/install
3004 # AIX /bin/install
3005 # AmigaOS /C/install, which installs bootblocks on floppy discs
3006 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3007 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3008 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3009 # ./install, which can be erroneously created by make from ./install.sh.
3010 echo "$as_me:3010: checking for a BSD compatible install" >&5
3011 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3012 if test -z "$INSTALL"; then
3013 if test "${ac_cv_path_install+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016 ac_save_IFS=$IFS; IFS=$ac_path_separator
3017 for ac_dir in $PATH; do
3018 IFS=$ac_save_IFS
3019 # Account for people who put trailing slashes in PATH elements.
3020 case $ac_dir/ in
3021 / | ./ | .// | /cC/* \
3022 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3023 | /usr/ucb/* ) ;;
3025 # OSF1 and SCO ODT 3.0 have their own names for install.
3026 # Don't use installbsd from OSF since it installs stuff as root
3027 # by default.
3028 for ac_prog in ginstall scoinst install; do
3029 if $as_executable_p "$ac_dir/$ac_prog"; then
3030 if test $ac_prog = install &&
3031 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3032 # AIX install. It has an incompatible calling convention.
3034 elif test $ac_prog = install &&
3035 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3036 # program-specific install script used by HP pwplus--don't use.
3038 else
3039 ac_cv_path_install="$ac_dir/$ac_prog -c"
3040 break 2
3043 done
3045 esac
3046 done
3049 if test "${ac_cv_path_install+set}" = set; then
3050 INSTALL=$ac_cv_path_install
3051 else
3052 # As a last resort, use the slow shell script. We don't cache a
3053 # path for INSTALL within a source directory, because that will
3054 # break other packages using the cache if that directory is
3055 # removed, or if the path is relative.
3056 INSTALL=$ac_install_sh
3059 echo "$as_me:3059: result: $INSTALL" >&5
3060 echo "${ECHO_T}$INSTALL" >&6
3062 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3063 # It thinks the first close brace ends the variable substitution.
3064 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3066 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3068 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3070 if test -n "$ac_tool_prefix"; then
3071 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3072 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3073 echo "$as_me:3073: checking for $ac_word" >&5
3074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3075 if test "${ac_cv_prog_RANLIB+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078 if test -n "$RANLIB"; then
3079 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3080 else
3081 ac_save_IFS=$IFS; IFS=$ac_path_separator
3082 ac_dummy="$PATH"
3083 for ac_dir in $ac_dummy; do
3084 IFS=$ac_save_IFS
3085 test -z "$ac_dir" && ac_dir=.
3086 $as_executable_p "$ac_dir/$ac_word" || continue
3087 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3088 echo "$as_me:3088: found $ac_dir/$ac_word" >&5
3089 break
3090 done
3094 RANLIB=$ac_cv_prog_RANLIB
3095 if test -n "$RANLIB"; then
3096 echo "$as_me:3096: result: $RANLIB" >&5
3097 echo "${ECHO_T}$RANLIB" >&6
3098 else
3099 echo "$as_me:3099: result: no" >&5
3100 echo "${ECHO_T}no" >&6
3104 if test -z "$ac_cv_prog_RANLIB"; then
3105 ac_ct_RANLIB=$RANLIB
3106 # Extract the first word of "ranlib", so it can be a program name with args.
3107 set dummy ranlib; ac_word=$2
3108 echo "$as_me:3108: checking for $ac_word" >&5
3109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3110 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 else
3113 if test -n "$ac_ct_RANLIB"; then
3114 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3115 else
3116 ac_save_IFS=$IFS; IFS=$ac_path_separator
3117 ac_dummy="$PATH"
3118 for ac_dir in $ac_dummy; do
3119 IFS=$ac_save_IFS
3120 test -z "$ac_dir" && ac_dir=.
3121 $as_executable_p "$ac_dir/$ac_word" || continue
3122 ac_cv_prog_ac_ct_RANLIB="ranlib"
3123 echo "$as_me:3123: found $ac_dir/$ac_word" >&5
3124 break
3125 done
3127 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3130 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3131 if test -n "$ac_ct_RANLIB"; then
3132 echo "$as_me:3132: result: $ac_ct_RANLIB" >&5
3133 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3134 else
3135 echo "$as_me:3135: result: no" >&5
3136 echo "${ECHO_T}no" >&6
3139 RANLIB=$ac_ct_RANLIB
3140 else
3141 RANLIB="$ac_cv_prog_RANLIB"
3144 echo "$as_me:3144: checking whether ${MAKE-make} sets \${MAKE}" >&5
3145 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3146 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3147 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 else
3150 cat >conftest.make <<\EOF
3151 all:
3152 @echo 'ac_maketemp="${MAKE}"'
3154 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3155 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3156 if test -n "$ac_maketemp"; then
3157 eval ac_cv_prog_make_${ac_make}_set=yes
3158 else
3159 eval ac_cv_prog_make_${ac_make}_set=no
3161 rm -f conftest.make
3163 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3164 echo "$as_me:3164: result: yes" >&5
3165 echo "${ECHO_T}yes" >&6
3166 SET_MAKE=
3167 else
3168 echo "$as_me:3168: result: no" >&5
3169 echo "${ECHO_T}no" >&6
3170 SET_MAKE="MAKE=${MAKE-make}"
3173 # Check whether --enable-largefile or --disable-largefile was given.
3174 if test "${enable_largefile+set}" = set; then
3175 enableval="$enable_largefile"
3178 if test "$enable_largefile" != no; then
3180 echo "$as_me:3180: checking for special C compiler options needed for large files" >&5
3181 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3182 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 else
3185 ac_cv_sys_largefile_CC=no
3186 if test "$GCC" != yes; then
3187 ac_save_CC=$CC
3188 while :; do
3189 # IRIX 6.2 and later do not support large files by default,
3190 # so use the C compiler's -n32 option if that helps.
3191 cat >conftest.$ac_ext <<_ACEOF
3192 #line 3192 "configure"
3193 #include "confdefs.h"
3194 #include <sys/types.h>
3195 /* Check that off_t can represent 2**63 - 1 correctly.
3196 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3197 since some C++ compilers masquerading as C compilers
3198 incorrectly reject 9223372036854775807. */
3199 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3200 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3201 && LARGE_OFF_T % 2147483647 == 1)
3202 ? 1 : -1];
3204 main ()
3208 return 0;
3210 _ACEOF
3211 rm -f conftest.$ac_objext
3212 if { (eval echo "$as_me:3212: \"$ac_compile\"") >&5
3213 (eval $ac_compile) 2>&5
3214 ac_status=$?
3215 echo "$as_me:3215: \$? = $ac_status" >&5
3216 (exit $ac_status); } &&
3217 { ac_try='test -s conftest.$ac_objext'
3218 { (eval echo "$as_me:3218: \"$ac_try\"") >&5
3219 (eval $ac_try) 2>&5
3220 ac_status=$?
3221 echo "$as_me:3221: \$? = $ac_status" >&5
3222 (exit $ac_status); }; }; then
3223 break
3224 else
3225 echo "$as_me: failed program was:" >&5
3226 cat conftest.$ac_ext >&5
3228 rm -f conftest.$ac_objext
3229 CC="$CC -n32"
3230 rm -f conftest.$ac_objext
3231 if { (eval echo "$as_me:3231: \"$ac_compile\"") >&5
3232 (eval $ac_compile) 2>&5
3233 ac_status=$?
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
3238 (eval $ac_try) 2>&5
3239 ac_status=$?
3240 echo "$as_me:3240: \$? = $ac_status" >&5
3241 (exit $ac_status); }; }; then
3242 ac_cv_sys_largefile_CC=' -n32'; break
3243 else
3244 echo "$as_me: failed program was:" >&5
3245 cat conftest.$ac_ext >&5
3247 rm -f conftest.$ac_objext
3248 break
3249 done
3250 CC=$ac_save_CC
3251 rm -f conftest.$ac_ext
3254 echo "$as_me:3254: result: $ac_cv_sys_largefile_CC" >&5
3255 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3256 if test "$ac_cv_sys_largefile_CC" != no; then
3257 CC=$CC$ac_cv_sys_largefile_CC
3260 echo "$as_me:3260: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3261 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3262 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265 while :; do
3266 ac_cv_sys_file_offset_bits=no
3267 cat >conftest.$ac_ext <<_ACEOF
3268 #line 3268 "configure"
3269 #include "confdefs.h"
3270 #include <sys/types.h>
3271 /* Check that off_t can represent 2**63 - 1 correctly.
3272 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3273 since some C++ compilers masquerading as C compilers
3274 incorrectly reject 9223372036854775807. */
3275 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3276 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3277 && LARGE_OFF_T % 2147483647 == 1)
3278 ? 1 : -1];
3280 main ()
3284 return 0;
3286 _ACEOF
3287 rm -f conftest.$ac_objext
3288 if { (eval echo "$as_me:3288: \"$ac_compile\"") >&5
3289 (eval $ac_compile) 2>&5
3290 ac_status=$?
3291 echo "$as_me:3291: \$? = $ac_status" >&5
3292 (exit $ac_status); } &&
3293 { ac_try='test -s conftest.$ac_objext'
3294 { (eval echo "$as_me:3294: \"$ac_try\"") >&5
3295 (eval $ac_try) 2>&5
3296 ac_status=$?
3297 echo "$as_me:3297: \$? = $ac_status" >&5
3298 (exit $ac_status); }; }; then
3299 break
3300 else
3301 echo "$as_me: failed program was:" >&5
3302 cat conftest.$ac_ext >&5
3304 rm -f conftest.$ac_objext conftest.$ac_ext
3305 cat >conftest.$ac_ext <<_ACEOF
3306 #line 3306 "configure"
3307 #include "confdefs.h"
3308 #define _FILE_OFFSET_BITS 64
3309 #include <sys/types.h>
3310 /* Check that off_t can represent 2**63 - 1 correctly.
3311 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3312 since some C++ compilers masquerading as C compilers
3313 incorrectly reject 9223372036854775807. */
3314 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3315 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3316 && LARGE_OFF_T % 2147483647 == 1)
3317 ? 1 : -1];
3319 main ()
3323 return 0;
3325 _ACEOF
3326 rm -f conftest.$ac_objext
3327 if { (eval echo "$as_me:3327: \"$ac_compile\"") >&5
3328 (eval $ac_compile) 2>&5
3329 ac_status=$?
3330 echo "$as_me:3330: \$? = $ac_status" >&5
3331 (exit $ac_status); } &&
3332 { ac_try='test -s conftest.$ac_objext'
3333 { (eval echo "$as_me:3333: \"$ac_try\"") >&5
3334 (eval $ac_try) 2>&5
3335 ac_status=$?
3336 echo "$as_me:3336: \$? = $ac_status" >&5
3337 (exit $ac_status); }; }; then
3338 ac_cv_sys_file_offset_bits=64; break
3339 else
3340 echo "$as_me: failed program was:" >&5
3341 cat conftest.$ac_ext >&5
3343 rm -f conftest.$ac_objext conftest.$ac_ext
3344 break
3345 done
3347 echo "$as_me:3347: result: $ac_cv_sys_file_offset_bits" >&5
3348 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3349 if test "$ac_cv_sys_file_offset_bits" != no; then
3351 cat >>confdefs.h <<EOF
3352 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3356 rm -f conftest*
3357 echo "$as_me:3357: checking for _LARGE_FILES value needed for large files" >&5
3358 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3359 if test "${ac_cv_sys_large_files+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 else
3362 while :; do
3363 ac_cv_sys_large_files=no
3364 cat >conftest.$ac_ext <<_ACEOF
3365 #line 3365 "configure"
3366 #include "confdefs.h"
3367 #include <sys/types.h>
3368 /* Check that off_t can represent 2**63 - 1 correctly.
3369 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3370 since some C++ compilers masquerading as C compilers
3371 incorrectly reject 9223372036854775807. */
3372 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3373 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3374 && LARGE_OFF_T % 2147483647 == 1)
3375 ? 1 : -1];
3377 main ()
3381 return 0;
3383 _ACEOF
3384 rm -f conftest.$ac_objext
3385 if { (eval echo "$as_me:3385: \"$ac_compile\"") >&5
3386 (eval $ac_compile) 2>&5
3387 ac_status=$?
3388 echo "$as_me:3388: \$? = $ac_status" >&5
3389 (exit $ac_status); } &&
3390 { ac_try='test -s conftest.$ac_objext'
3391 { (eval echo "$as_me:3391: \"$ac_try\"") >&5
3392 (eval $ac_try) 2>&5
3393 ac_status=$?
3394 echo "$as_me:3394: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3396 break
3397 else
3398 echo "$as_me: failed program was:" >&5
3399 cat conftest.$ac_ext >&5
3401 rm -f conftest.$ac_objext conftest.$ac_ext
3402 cat >conftest.$ac_ext <<_ACEOF
3403 #line 3403 "configure"
3404 #include "confdefs.h"
3405 #define _LARGE_FILES 1
3406 #include <sys/types.h>
3407 /* Check that off_t can represent 2**63 - 1 correctly.
3408 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3409 since some C++ compilers masquerading as C compilers
3410 incorrectly reject 9223372036854775807. */
3411 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3412 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3413 && LARGE_OFF_T % 2147483647 == 1)
3414 ? 1 : -1];
3416 main ()
3420 return 0;
3422 _ACEOF
3423 rm -f conftest.$ac_objext
3424 if { (eval echo "$as_me:3424: \"$ac_compile\"") >&5
3425 (eval $ac_compile) 2>&5
3426 ac_status=$?
3427 echo "$as_me:3427: \$? = $ac_status" >&5
3428 (exit $ac_status); } &&
3429 { ac_try='test -s conftest.$ac_objext'
3430 { (eval echo "$as_me:3430: \"$ac_try\"") >&5
3431 (eval $ac_try) 2>&5
3432 ac_status=$?
3433 echo "$as_me:3433: \$? = $ac_status" >&5
3434 (exit $ac_status); }; }; then
3435 ac_cv_sys_large_files=1; break
3436 else
3437 echo "$as_me: failed program was:" >&5
3438 cat conftest.$ac_ext >&5
3440 rm -f conftest.$ac_objext conftest.$ac_ext
3441 break
3442 done
3444 echo "$as_me:3444: result: $ac_cv_sys_large_files" >&5
3445 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3446 if test "$ac_cv_sys_large_files" != no; then
3448 cat >>confdefs.h <<EOF
3449 #define _LARGE_FILES $ac_cv_sys_large_files
3453 rm -f conftest*
3456 echo "$as_me:3456: checking whether byte ordering is bigendian" >&5
3457 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3458 if test "${ac_cv_c_bigendian+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461 ac_cv_c_bigendian=unknown
3462 # See if sys/param.h defines the BYTE_ORDER macro.
3463 cat >conftest.$ac_ext <<_ACEOF
3464 #line 3464 "configure"
3465 #include "confdefs.h"
3466 #include <sys/types.h>
3467 #include <sys/param.h>
3470 main ()
3472 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3473 bogus endian macros
3474 #endif
3477 return 0;
3479 _ACEOF
3480 rm -f conftest.$ac_objext
3481 if { (eval echo "$as_me:3481: \"$ac_compile\"") >&5
3482 (eval $ac_compile) 2>&5
3483 ac_status=$?
3484 echo "$as_me:3484: \$? = $ac_status" >&5
3485 (exit $ac_status); } &&
3486 { ac_try='test -s conftest.$ac_objext'
3487 { (eval echo "$as_me:3487: \"$ac_try\"") >&5
3488 (eval $ac_try) 2>&5
3489 ac_status=$?
3490 echo "$as_me:3490: \$? = $ac_status" >&5
3491 (exit $ac_status); }; }; then
3492 # It does; now see whether it defined to BIG_ENDIAN or not.
3493 cat >conftest.$ac_ext <<_ACEOF
3494 #line 3494 "configure"
3495 #include "confdefs.h"
3496 #include <sys/types.h>
3497 #include <sys/param.h>
3500 main ()
3502 #if BYTE_ORDER != BIG_ENDIAN
3503 not big endian
3504 #endif
3507 return 0;
3509 _ACEOF
3510 rm -f conftest.$ac_objext
3511 if { (eval echo "$as_me:3511: \"$ac_compile\"") >&5
3512 (eval $ac_compile) 2>&5
3513 ac_status=$?
3514 echo "$as_me:3514: \$? = $ac_status" >&5
3515 (exit $ac_status); } &&
3516 { ac_try='test -s conftest.$ac_objext'
3517 { (eval echo "$as_me:3517: \"$ac_try\"") >&5
3518 (eval $ac_try) 2>&5
3519 ac_status=$?
3520 echo "$as_me:3520: \$? = $ac_status" >&5
3521 (exit $ac_status); }; }; then
3522 ac_cv_c_bigendian=yes
3523 else
3524 echo "$as_me: failed program was:" >&5
3525 cat conftest.$ac_ext >&5
3526 ac_cv_c_bigendian=no
3528 rm -f conftest.$ac_objext conftest.$ac_ext
3529 else
3530 echo "$as_me: failed program was:" >&5
3531 cat conftest.$ac_ext >&5
3533 rm -f conftest.$ac_objext conftest.$ac_ext
3534 if test $ac_cv_c_bigendian = unknown; then
3535 if test "$cross_compiling" = yes; then
3536 { { echo "$as_me:3536: error: cannot run test program while cross compiling" >&5
3537 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3538 { (exit 1); exit 1; }; }
3539 else
3540 cat >conftest.$ac_ext <<_ACEOF
3541 #line 3541 "configure"
3542 #include "confdefs.h"
3544 main ()
3546 /* Are we little or big endian? From Harbison&Steele. */
3547 union
3549 long l;
3550 char c[sizeof (long)];
3551 } u;
3552 u.l = 1;
3553 exit (u.c[sizeof (long) - 1] == 1);
3555 _ACEOF
3556 rm -f conftest$ac_exeext
3557 if { (eval echo "$as_me:3557: \"$ac_link\"") >&5
3558 (eval $ac_link) 2>&5
3559 ac_status=$?
3560 echo "$as_me:3560: \$? = $ac_status" >&5
3561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3562 { (eval echo "$as_me:3562: \"$ac_try\"") >&5
3563 (eval $ac_try) 2>&5
3564 ac_status=$?
3565 echo "$as_me:3565: \$? = $ac_status" >&5
3566 (exit $ac_status); }; }; then
3567 ac_cv_c_bigendian=no
3568 else
3569 echo "$as_me: program exited with status $ac_status" >&5
3570 echo "$as_me: failed program was:" >&5
3571 cat conftest.$ac_ext >&5
3572 ac_cv_c_bigendian=yes
3574 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
3578 echo "$as_me:3578: result: $ac_cv_c_bigendian" >&5
3579 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3580 if test $ac_cv_c_bigendian = yes; then
3582 cat >>confdefs.h <<\EOF
3583 #define WORDS_BIGENDIAN 1
3588 echo "$as_me:3588: checking for an ANSI C-conforming const" >&5
3589 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3590 if test "${ac_cv_c_const+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 else
3593 cat >conftest.$ac_ext <<_ACEOF
3594 #line 3594 "configure"
3595 #include "confdefs.h"
3598 main ()
3600 /* FIXME: Include the comments suggested by Paul. */
3601 #ifndef __cplusplus
3602 /* Ultrix mips cc rejects this. */
3603 typedef int charset[2];
3604 const charset x;
3605 /* SunOS 4.1.1 cc rejects this. */
3606 char const *const *ccp;
3607 char **p;
3608 /* NEC SVR4.0.2 mips cc rejects this. */
3609 struct point {int x, y;};
3610 static struct point const zero = {0,0};
3611 /* AIX XL C 1.02.0.0 rejects this.
3612 It does not let you subtract one const X* pointer from another in
3613 an arm of an if-expression whose if-part is not a constant
3614 expression */
3615 const char *g = "string";
3616 ccp = &g + (g ? g-g : 0);
3617 /* HPUX 7.0 cc rejects these. */
3618 ++ccp;
3619 p = (char**) ccp;
3620 ccp = (char const *const *) p;
3621 { /* SCO 3.2v4 cc rejects this. */
3622 char *t;
3623 char const *s = 0 ? (char *) 0 : (char const *) 0;
3625 *t++ = 0;
3627 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3628 int x[] = {25, 17};
3629 const int *foo = &x[0];
3630 ++foo;
3632 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3633 typedef const int *iptr;
3634 iptr p = 0;
3635 ++p;
3637 { /* AIX XL C 1.02.0.0 rejects this saying
3638 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3639 struct s { int j; const int *ap[3]; };
3640 struct s *b; b->j = 5;
3642 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3643 const int foo = 10;
3645 #endif
3648 return 0;
3650 _ACEOF
3651 rm -f conftest.$ac_objext
3652 if { (eval echo "$as_me:3652: \"$ac_compile\"") >&5
3653 (eval $ac_compile) 2>&5
3654 ac_status=$?
3655 echo "$as_me:3655: \$? = $ac_status" >&5
3656 (exit $ac_status); } &&
3657 { ac_try='test -s conftest.$ac_objext'
3658 { (eval echo "$as_me:3658: \"$ac_try\"") >&5
3659 (eval $ac_try) 2>&5
3660 ac_status=$?
3661 echo "$as_me:3661: \$? = $ac_status" >&5
3662 (exit $ac_status); }; }; then
3663 ac_cv_c_const=yes
3664 else
3665 echo "$as_me: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3667 ac_cv_c_const=no
3669 rm -f conftest.$ac_objext conftest.$ac_ext
3671 echo "$as_me:3671: result: $ac_cv_c_const" >&5
3672 echo "${ECHO_T}$ac_cv_c_const" >&6
3673 if test $ac_cv_c_const = no; then
3675 cat >>confdefs.h <<\EOF
3676 #define const
3681 echo "$as_me:3681: checking for working volatile" >&5
3682 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
3683 if test "${ac_cv_c_volatile+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 else
3686 cat >conftest.$ac_ext <<_ACEOF
3687 #line 3687 "configure"
3688 #include "confdefs.h"
3691 main ()
3694 volatile int x;
3695 int * volatile y;
3697 return 0;
3699 _ACEOF
3700 rm -f conftest.$ac_objext
3701 if { (eval echo "$as_me:3701: \"$ac_compile\"") >&5
3702 (eval $ac_compile) 2>&5
3703 ac_status=$?
3704 echo "$as_me:3704: \$? = $ac_status" >&5
3705 (exit $ac_status); } &&
3706 { ac_try='test -s conftest.$ac_objext'
3707 { (eval echo "$as_me:3707: \"$ac_try\"") >&5
3708 (eval $ac_try) 2>&5
3709 ac_status=$?
3710 echo "$as_me:3710: \$? = $ac_status" >&5
3711 (exit $ac_status); }; }; then
3712 ac_cv_c_volatile=yes
3713 else
3714 echo "$as_me: failed program was:" >&5
3715 cat conftest.$ac_ext >&5
3716 ac_cv_c_volatile=no
3718 rm -f conftest.$ac_objext conftest.$ac_ext
3720 echo "$as_me:3720: result: $ac_cv_c_volatile" >&5
3721 echo "${ECHO_T}$ac_cv_c_volatile" >&6
3722 if test $ac_cv_c_volatile = no; then
3724 cat >>confdefs.h <<\EOF
3725 #define volatile
3730 echo "$as_me:3730: checking for inline" >&5
3731 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3732 if test "${ac_cv_c_inline+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735 ac_cv_c_inline=no
3736 for ac_kw in inline __inline__ __inline; do
3737 cat >conftest.$ac_ext <<_ACEOF
3738 #line 3738 "configure"
3739 #include "confdefs.h"
3740 #ifndef __cplusplus
3741 static $ac_kw int static_foo () {return 0; }
3742 $ac_kw int foo () {return 0; }
3743 #endif
3745 _ACEOF
3746 rm -f conftest.$ac_objext
3747 if { (eval echo "$as_me:3747: \"$ac_compile\"") >&5
3748 (eval $ac_compile) 2>&5
3749 ac_status=$?
3750 echo "$as_me:3750: \$? = $ac_status" >&5
3751 (exit $ac_status); } &&
3752 { ac_try='test -s conftest.$ac_objext'
3753 { (eval echo "$as_me:3753: \"$ac_try\"") >&5
3754 (eval $ac_try) 2>&5
3755 ac_status=$?
3756 echo "$as_me:3756: \$? = $ac_status" >&5
3757 (exit $ac_status); }; }; then
3758 ac_cv_c_inline=$ac_kw; break
3759 else
3760 echo "$as_me: failed program was:" >&5
3761 cat conftest.$ac_ext >&5
3763 rm -f conftest.$ac_objext conftest.$ac_ext
3764 done
3767 echo "$as_me:3767: result: $ac_cv_c_inline" >&5
3768 echo "${ECHO_T}$ac_cv_c_inline" >&6
3769 case $ac_cv_c_inline in
3770 inline | yes) ;;
3772 cat >>confdefs.h <<\EOF
3773 #define inline
3776 *) cat >>confdefs.h <<EOF
3777 #define inline $ac_cv_c_inline
3780 esac
3782 echo "$as_me:3782: checking for long double" >&5
3783 echo $ECHO_N "checking for long double... $ECHO_C" >&6
3784 if test "${ac_cv_c_long_double+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787 if test "$GCC" = yes; then
3788 ac_cv_c_long_double=yes
3789 else
3790 if test "$cross_compiling" = yes; then
3791 { { echo "$as_me:3791: error: cannot run test program while cross compiling" >&5
3792 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
3793 { (exit 1); exit 1; }; }
3794 else
3795 cat >conftest.$ac_ext <<_ACEOF
3796 #line 3796 "configure"
3797 #include "confdefs.h"
3799 main ()
3801 /* The Stardent Vistra knows sizeof(long double), but does not
3802 support it. */
3803 long double foo = 0.0;
3804 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
3805 exit (sizeof (long double) < sizeof (double));
3807 _ACEOF
3808 rm -f conftest$ac_exeext
3809 if { (eval echo "$as_me:3809: \"$ac_link\"") >&5
3810 (eval $ac_link) 2>&5
3811 ac_status=$?
3812 echo "$as_me:3812: \$? = $ac_status" >&5
3813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3814 { (eval echo "$as_me:3814: \"$ac_try\"") >&5
3815 (eval $ac_try) 2>&5
3816 ac_status=$?
3817 echo "$as_me:3817: \$? = $ac_status" >&5
3818 (exit $ac_status); }; }; then
3819 ac_cv_c_long_double=yes
3820 else
3821 echo "$as_me: program exited with status $ac_status" >&5
3822 echo "$as_me: failed program was:" >&5
3823 cat conftest.$ac_ext >&5
3824 ac_cv_c_long_double=no
3826 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
3830 echo "$as_me:3830: result: $ac_cv_c_long_double" >&5
3831 echo "${ECHO_T}$ac_cv_c_long_double" >&6
3832 if test $ac_cv_c_long_double = yes; then
3834 cat >>confdefs.h <<\EOF
3835 #define HAVE_LONG_DOUBLE 1
3840 ac_header_dirent=no
3841 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3842 ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`
3843 echo "$as_me:3843: checking for $ac_hdr that defines DIR" >&5
3844 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3845 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 cat >conftest.$ac_ext <<_ACEOF
3849 #line 3849 "configure"
3850 #include "confdefs.h"
3851 #include <sys/types.h>
3852 #include <$ac_hdr>
3855 main ()
3857 DIR *dirp = 0;
3859 return 0;
3861 _ACEOF
3862 rm -f conftest.$ac_objext
3863 if { (eval echo "$as_me:3863: \"$ac_compile\"") >&5
3864 (eval $ac_compile) 2>&5
3865 ac_status=$?
3866 echo "$as_me:3866: \$? = $ac_status" >&5
3867 (exit $ac_status); } &&
3868 { ac_try='test -s conftest.$ac_objext'
3869 { (eval echo "$as_me:3869: \"$ac_try\"") >&5
3870 (eval $ac_try) 2>&5
3871 ac_status=$?
3872 echo "$as_me:3872: \$? = $ac_status" >&5
3873 (exit $ac_status); }; }; then
3874 eval "$ac_ac_Header=yes"
3875 else
3876 echo "$as_me: failed program was:" >&5
3877 cat conftest.$ac_ext >&5
3878 eval "$ac_ac_Header=no"
3880 rm -f conftest.$ac_objext conftest.$ac_ext
3882 echo "$as_me:3882: result: `eval echo '${'$ac_ac_Header'}'`" >&5
3883 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
3884 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3885 cat >>confdefs.h <<EOF
3886 #define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
3889 ac_header_dirent=$ac_hdr; break
3892 done
3893 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3894 if test $ac_header_dirent = dirent.h; then
3895 echo "$as_me:3895: checking for opendir in -ldir" >&5
3896 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
3897 if test "${ac_cv_lib_dir_opendir+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900 ac_check_lib_save_LIBS=$LIBS
3901 LIBS="-ldir $LIBS"
3902 cat >conftest.$ac_ext <<_ACEOF
3903 #line 3903 "configure"
3904 #include "confdefs.h"
3906 /* Override any gcc2 internal prototype to avoid an error. */
3907 #ifdef __cplusplus
3908 extern "C"
3909 #endif
3910 /* We use char because int might match the return type of a gcc2
3911 builtin and then its argument prototype would still apply. */
3912 char opendir ();
3914 main ()
3916 opendir ();
3918 return 0;
3920 _ACEOF
3921 rm -f conftest.$ac_objext conftest$ac_exeext
3922 if { (eval echo "$as_me:3922: \"$ac_link\"") >&5
3923 (eval $ac_link) 2>&5
3924 ac_status=$?
3925 echo "$as_me:3925: \$? = $ac_status" >&5
3926 (exit $ac_status); } &&
3927 { ac_try='test -s conftest$ac_exeext'
3928 { (eval echo "$as_me:3928: \"$ac_try\"") >&5
3929 (eval $ac_try) 2>&5
3930 ac_status=$?
3931 echo "$as_me:3931: \$? = $ac_status" >&5
3932 (exit $ac_status); }; }; then
3933 ac_cv_lib_dir_opendir=yes
3934 else
3935 echo "$as_me: failed program was:" >&5
3936 cat conftest.$ac_ext >&5
3937 ac_cv_lib_dir_opendir=no
3939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3940 LIBS=$ac_check_lib_save_LIBS
3942 echo "$as_me:3942: result: $ac_cv_lib_dir_opendir" >&5
3943 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
3944 if test $ac_cv_lib_dir_opendir = yes; then
3945 LIBS="$LIBS -ldir"
3948 else
3949 echo "$as_me:3949: checking for opendir in -lx" >&5
3950 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
3951 if test "${ac_cv_lib_x_opendir+set}" = set; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3953 else
3954 ac_check_lib_save_LIBS=$LIBS
3955 LIBS="-lx $LIBS"
3956 cat >conftest.$ac_ext <<_ACEOF
3957 #line 3957 "configure"
3958 #include "confdefs.h"
3960 /* Override any gcc2 internal prototype to avoid an error. */
3961 #ifdef __cplusplus
3962 extern "C"
3963 #endif
3964 /* We use char because int might match the return type of a gcc2
3965 builtin and then its argument prototype would still apply. */
3966 char opendir ();
3968 main ()
3970 opendir ();
3972 return 0;
3974 _ACEOF
3975 rm -f conftest.$ac_objext conftest$ac_exeext
3976 if { (eval echo "$as_me:3976: \"$ac_link\"") >&5
3977 (eval $ac_link) 2>&5
3978 ac_status=$?
3979 echo "$as_me:3979: \$? = $ac_status" >&5
3980 (exit $ac_status); } &&
3981 { ac_try='test -s conftest$ac_exeext'
3982 { (eval echo "$as_me:3982: \"$ac_try\"") >&5
3983 (eval $ac_try) 2>&5
3984 ac_status=$?
3985 echo "$as_me:3985: \$? = $ac_status" >&5
3986 (exit $ac_status); }; }; then
3987 ac_cv_lib_x_opendir=yes
3988 else
3989 echo "$as_me: failed program was:" >&5
3990 cat conftest.$ac_ext >&5
3991 ac_cv_lib_x_opendir=no
3993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3994 LIBS=$ac_check_lib_save_LIBS
3996 echo "$as_me:3996: result: $ac_cv_lib_x_opendir" >&5
3997 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
3998 if test $ac_cv_lib_x_opendir = yes; then
3999 LIBS="$LIBS -lx"
4004 for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
4006 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4007 echo "$as_me:4007: checking for $ac_header" >&5
4008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4009 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 else
4012 cat >conftest.$ac_ext <<_ACEOF
4013 #line 4013 "configure"
4014 #include "confdefs.h"
4015 #include <$ac_header>
4016 _ACEOF
4017 if { (eval echo "$as_me:4017: \"$ac_cpp conftest.$ac_ext\"") >&5
4018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4019 ac_status=$?
4020 egrep -v '^ *\+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
4022 cat conftest.err >&5
4023 echo "$as_me:4023: \$? = $ac_status" >&5
4024 (exit $ac_status); } >/dev/null; then
4025 if test -s conftest.err; then
4026 ac_cpp_err=$ac_c_preproc_warn_flag
4027 else
4028 ac_cpp_err=
4030 else
4031 ac_cpp_err=yes
4033 if test -z "$ac_cpp_err"; then
4034 eval "$ac_ac_Header=yes"
4035 else
4036 echo "$as_me: failed program was:" >&5
4037 cat conftest.$ac_ext >&5
4038 eval "$ac_ac_Header=no"
4040 rm -f conftest.err conftest.$ac_ext
4042 echo "$as_me:4042: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4043 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4044 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4045 cat >>confdefs.h <<EOF
4046 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4050 done
4052 echo "$as_me:4052: checking for struct stat.st_blocks" >&5
4053 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4054 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057 cat >conftest.$ac_ext <<_ACEOF
4058 #line 4058 "configure"
4059 #include "confdefs.h"
4060 $ac_includes_default
4062 main ()
4064 struct stat foo;
4065 foo.st_blocks;
4067 return 0;
4069 _ACEOF
4070 rm -f conftest.$ac_objext
4071 if { (eval echo "$as_me:4071: \"$ac_compile\"") >&5
4072 (eval $ac_compile) 2>&5
4073 ac_status=$?
4074 echo "$as_me:4074: \$? = $ac_status" >&5
4075 (exit $ac_status); } &&
4076 { ac_try='test -s conftest.$ac_objext'
4077 { (eval echo "$as_me:4077: \"$ac_try\"") >&5
4078 (eval $ac_try) 2>&5
4079 ac_status=$?
4080 echo "$as_me:4080: \$? = $ac_status" >&5
4081 (exit $ac_status); }; }; then
4082 ac_cv_member_struct_stat_st_blocks=yes
4083 else
4084 echo "$as_me: failed program was:" >&5
4085 cat conftest.$ac_ext >&5
4086 ac_cv_member_struct_stat_st_blocks=no
4088 rm -f conftest.$ac_objext conftest.$ac_ext
4090 echo "$as_me:4090: result: $ac_cv_member_struct_stat_st_blocks" >&5
4091 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4092 if test $ac_cv_member_struct_stat_st_blocks = yes; then
4094 cat >>confdefs.h <<EOF
4095 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
4098 cat >>confdefs.h <<\EOF
4099 #define HAVE_ST_BLOCKS 1
4102 else
4103 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
4106 echo "$as_me:4106: checking whether struct tm is in sys/time.h or time.h" >&5
4107 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
4108 if test "${ac_cv_struct_tm+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111 cat >conftest.$ac_ext <<_ACEOF
4112 #line 4112 "configure"
4113 #include "confdefs.h"
4114 #include <sys/types.h>
4115 #include <time.h>
4118 main ()
4120 struct tm *tp; tp->tm_sec;
4122 return 0;
4124 _ACEOF
4125 rm -f conftest.$ac_objext
4126 if { (eval echo "$as_me:4126: \"$ac_compile\"") >&5
4127 (eval $ac_compile) 2>&5
4128 ac_status=$?
4129 echo "$as_me:4129: \$? = $ac_status" >&5
4130 (exit $ac_status); } &&
4131 { ac_try='test -s conftest.$ac_objext'
4132 { (eval echo "$as_me:4132: \"$ac_try\"") >&5
4133 (eval $ac_try) 2>&5
4134 ac_status=$?
4135 echo "$as_me:4135: \$? = $ac_status" >&5
4136 (exit $ac_status); }; }; then
4137 ac_cv_struct_tm=time.h
4138 else
4139 echo "$as_me: failed program was:" >&5
4140 cat conftest.$ac_ext >&5
4141 ac_cv_struct_tm=sys/time.h
4143 rm -f conftest.$ac_objext conftest.$ac_ext
4145 echo "$as_me:4145: result: $ac_cv_struct_tm" >&5
4146 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4147 if test $ac_cv_struct_tm = sys/time.h; then
4149 cat >>confdefs.h <<\EOF
4150 #define TM_IN_SYS_TIME 1
4155 echo "$as_me:4155: checking for struct tm.tm_zone" >&5
4156 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
4157 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 else
4160 cat >conftest.$ac_ext <<_ACEOF
4161 #line 4161 "configure"
4162 #include "confdefs.h"
4163 #include <sys/types.h>
4164 #include <$ac_cv_struct_tm>
4167 main ()
4169 struct tm foo;
4170 foo.tm_zone;
4172 return 0;
4174 _ACEOF
4175 rm -f conftest.$ac_objext
4176 if { (eval echo "$as_me:4176: \"$ac_compile\"") >&5
4177 (eval $ac_compile) 2>&5
4178 ac_status=$?
4179 echo "$as_me:4179: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try='test -s conftest.$ac_objext'
4182 { (eval echo "$as_me:4182: \"$ac_try\"") >&5
4183 (eval $ac_try) 2>&5
4184 ac_status=$?
4185 echo "$as_me:4185: \$? = $ac_status" >&5
4186 (exit $ac_status); }; }; then
4187 ac_cv_member_struct_tm_tm_zone=yes
4188 else
4189 echo "$as_me: failed program was:" >&5
4190 cat conftest.$ac_ext >&5
4191 ac_cv_member_struct_tm_tm_zone=no
4193 rm -f conftest.$ac_objext conftest.$ac_ext
4195 echo "$as_me:4195: result: $ac_cv_member_struct_tm_tm_zone" >&5
4196 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
4197 if test $ac_cv_member_struct_tm_tm_zone = yes; then
4199 cat >>confdefs.h <<EOF
4200 #define HAVE_STRUCT_TM_TM_ZONE 1
4205 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4207 cat >>confdefs.h <<\EOF
4208 #define HAVE_TM_ZONE 1
4211 else
4212 echo "$as_me:4212: checking for tzname" >&5
4213 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
4214 if test "${ac_cv_var_tzname+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217 cat >conftest.$ac_ext <<_ACEOF
4218 #line 4218 "configure"
4219 #include "confdefs.h"
4220 #include <time.h>
4221 #ifndef tzname /* For SGI. */
4222 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4223 #endif
4226 main ()
4228 atoi(*tzname);
4230 return 0;
4232 _ACEOF
4233 rm -f conftest.$ac_objext conftest$ac_exeext
4234 if { (eval echo "$as_me:4234: \"$ac_link\"") >&5
4235 (eval $ac_link) 2>&5
4236 ac_status=$?
4237 echo "$as_me:4237: \$? = $ac_status" >&5
4238 (exit $ac_status); } &&
4239 { ac_try='test -s conftest$ac_exeext'
4240 { (eval echo "$as_me:4240: \"$ac_try\"") >&5
4241 (eval $ac_try) 2>&5
4242 ac_status=$?
4243 echo "$as_me:4243: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 ac_cv_var_tzname=yes
4246 else
4247 echo "$as_me: failed program was:" >&5
4248 cat conftest.$ac_ext >&5
4249 ac_cv_var_tzname=no
4251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4253 echo "$as_me:4253: result: $ac_cv_var_tzname" >&5
4254 echo "${ECHO_T}$ac_cv_var_tzname" >&6
4255 if test $ac_cv_var_tzname = yes; then
4257 cat >>confdefs.h <<\EOF
4258 #define HAVE_TZNAME 1
4264 echo "$as_me:4264: checking whether stat file-mode macros are broken" >&5
4265 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
4266 if test "${ac_cv_header_stat_broken+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269 cat >conftest.$ac_ext <<_ACEOF
4270 #line 4270 "configure"
4271 #include "confdefs.h"
4272 #include <sys/types.h>
4273 #include <sys/stat.h>
4275 #if defined(S_ISBLK) && defined(S_IFDIR)
4276 # if S_ISBLK (S_IFDIR)
4277 You lose.
4278 # endif
4279 #endif
4281 #if defined(S_ISBLK) && defined(S_IFCHR)
4282 # if S_ISBLK (S_IFCHR)
4283 You lose.
4284 # endif
4285 #endif
4287 #if defined(S_ISLNK) && defined(S_IFREG)
4288 # if S_ISLNK (S_IFREG)
4289 You lose.
4290 # endif
4291 #endif
4293 #if defined(S_ISSOCK) && defined(S_IFREG)
4294 # if S_ISSOCK (S_IFREG)
4295 You lose.
4296 # endif
4297 #endif
4299 _ACEOF
4300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4301 egrep "You lose" >/dev/null 2>&1; then
4302 ac_cv_header_stat_broken=yes
4303 else
4304 ac_cv_header_stat_broken=no
4306 rm -f conftest*
4309 echo "$as_me:4309: result: $ac_cv_header_stat_broken" >&5
4310 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
4311 if test $ac_cv_header_stat_broken = yes; then
4313 cat >>confdefs.h <<\EOF
4314 #define STAT_MACROS_BROKEN 1
4319 echo "$as_me:4319: checking for nanoseconds member of struct stat.st_mtim" >&5
4320 echo $ECHO_N "checking for nanoseconds member of struct stat.st_mtim... $ECHO_C" >&6
4321 if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 else
4324 ac_save_CPPFLAGS="$CPPFLAGS"
4325 ac_cv_struct_st_mtim_nsec=no
4326 # tv_nsec -- the usual case
4327 # _tv_nsec -- Solaris 2.6, if
4328 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
4329 # && !defined __EXTENSIONS__)
4330 # st__tim.tv_nsec -- UnixWare 2.1.2
4331 for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do
4332 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
4333 cat >conftest.$ac_ext <<_ACEOF
4334 #line 4334 "configure"
4335 #include "confdefs.h"
4336 #include <sys/types.h>
4337 #include <sys/stat.h>
4339 main ()
4341 struct stat s; s.st_mtim.ST_MTIM_NSEC;
4343 return 0;
4345 _ACEOF
4346 rm -f conftest.$ac_objext
4347 if { (eval echo "$as_me:4347: \"$ac_compile\"") >&5
4348 (eval $ac_compile) 2>&5
4349 ac_status=$?
4350 echo "$as_me:4350: \$? = $ac_status" >&5
4351 (exit $ac_status); } &&
4352 { ac_try='test -s conftest.$ac_objext'
4353 { (eval echo "$as_me:4353: \"$ac_try\"") >&5
4354 (eval $ac_try) 2>&5
4355 ac_status=$?
4356 echo "$as_me:4356: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 ac_cv_struct_st_mtim_nsec=$ac_val; break
4359 else
4360 echo "$as_me: failed program was:" >&5
4361 cat conftest.$ac_ext >&5
4363 rm -f conftest.$ac_objext conftest.$ac_ext
4364 done
4365 CPPFLAGS="$ac_save_CPPFLAGS"
4367 echo "$as_me:4367: result: $ac_cv_struct_st_mtim_nsec" >&5
4368 echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6
4370 if test $ac_cv_struct_st_mtim_nsec != no; then
4372 cat >>confdefs.h <<EOF
4373 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
4378 echo "$as_me:4378: checking for st_dm_mode in struct stat" >&5
4379 echo $ECHO_N "checking for st_dm_mode in struct stat... $ECHO_C" >&6
4380 if test "${ac_cv_struct_st_dm_mode+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 else
4383 cat >conftest.$ac_ext <<_ACEOF
4384 #line 4384 "configure"
4385 #include "confdefs.h"
4386 #include <sys/types.h>
4387 #include <sys/stat.h>
4389 main ()
4391 struct stat s; s.st_dm_mode;
4393 return 0;
4395 _ACEOF
4396 rm -f conftest.$ac_objext
4397 if { (eval echo "$as_me:4397: \"$ac_compile\"") >&5
4398 (eval $ac_compile) 2>&5
4399 ac_status=$?
4400 echo "$as_me:4400: \$? = $ac_status" >&5
4401 (exit $ac_status); } &&
4402 { ac_try='test -s conftest.$ac_objext'
4403 { (eval echo "$as_me:4403: \"$ac_try\"") >&5
4404 (eval $ac_try) 2>&5
4405 ac_status=$?
4406 echo "$as_me:4406: \$? = $ac_status" >&5
4407 (exit $ac_status); }; }; then
4408 ac_cv_struct_st_dm_mode=yes
4409 else
4410 echo "$as_me: failed program was:" >&5
4411 cat conftest.$ac_ext >&5
4412 ac_cv_struct_st_dm_mode=no
4414 rm -f conftest.$ac_objext conftest.$ac_ext
4416 echo "$as_me:4416: result: $ac_cv_struct_st_dm_mode" >&5
4417 echo "${ECHO_T}$ac_cv_struct_st_dm_mode" >&6
4419 if test $ac_cv_struct_st_dm_mode = yes; then
4421 cat >>confdefs.h <<EOF
4422 #define HAVE_ST_DM_MODE 1
4427 echo "$as_me:4427: checking whether time.h and sys/time.h may both be included" >&5
4428 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4429 if test "${ac_cv_header_time+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432 cat >conftest.$ac_ext <<_ACEOF
4433 #line 4433 "configure"
4434 #include "confdefs.h"
4435 #include <sys/types.h>
4436 #include <sys/time.h>
4437 #include <time.h>
4440 main ()
4442 struct tm *tp;
4444 return 0;
4446 _ACEOF
4447 rm -f conftest.$ac_objext
4448 if { (eval echo "$as_me:4448: \"$ac_compile\"") >&5
4449 (eval $ac_compile) 2>&5
4450 ac_status=$?
4451 echo "$as_me:4451: \$? = $ac_status" >&5
4452 (exit $ac_status); } &&
4453 { ac_try='test -s conftest.$ac_objext'
4454 { (eval echo "$as_me:4454: \"$ac_try\"") >&5
4455 (eval $ac_try) 2>&5
4456 ac_status=$?
4457 echo "$as_me:4457: \$? = $ac_status" >&5
4458 (exit $ac_status); }; }; then
4459 ac_cv_header_time=yes
4460 else
4461 echo "$as_me: failed program was:" >&5
4462 cat conftest.$ac_ext >&5
4463 ac_cv_header_time=no
4465 rm -f conftest.$ac_objext conftest.$ac_ext
4467 echo "$as_me:4467: result: $ac_cv_header_time" >&5
4468 echo "${ECHO_T}$ac_cv_header_time" >&6
4469 if test $ac_cv_header_time = yes; then
4471 cat >>confdefs.h <<\EOF
4472 #define TIME_WITH_SYS_TIME 1
4477 echo "$as_me:4477: checking for struct timespec" >&5
4478 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
4479 if test "${fu_cv_sys_struct_timespec+set}" = set; then
4480 echo $ECHO_N "(cached) $ECHO_C" >&6
4481 else
4482 cat >conftest.$ac_ext <<_ACEOF
4483 #line 4483 "configure"
4484 #include "confdefs.h"
4486 # if TIME_WITH_SYS_TIME
4487 # include <sys/time.h>
4488 # include <time.h>
4489 # else
4490 # if HAVE_SYS_TIME_H
4491 # include <sys/time.h>
4492 # else
4493 # include <time.h>
4494 # endif
4495 # endif
4498 main ()
4500 static struct timespec x; x.tv_sec = x.tv_nsec;
4502 return 0;
4504 _ACEOF
4505 rm -f conftest.$ac_objext
4506 if { (eval echo "$as_me:4506: \"$ac_compile\"") >&5
4507 (eval $ac_compile) 2>&5
4508 ac_status=$?
4509 echo "$as_me:4509: \$? = $ac_status" >&5
4510 (exit $ac_status); } &&
4511 { ac_try='test -s conftest.$ac_objext'
4512 { (eval echo "$as_me:4512: \"$ac_try\"") >&5
4513 (eval $ac_try) 2>&5
4514 ac_status=$?
4515 echo "$as_me:4515: \$? = $ac_status" >&5
4516 (exit $ac_status); }; }; then
4517 fu_cv_sys_struct_timespec=yes
4518 else
4519 echo "$as_me: failed program was:" >&5
4520 cat conftest.$ac_ext >&5
4521 fu_cv_sys_struct_timespec=no
4523 rm -f conftest.$ac_objext conftest.$ac_ext
4526 echo "$as_me:4526: result: $fu_cv_sys_struct_timespec" >&5
4527 echo "${ECHO_T}$fu_cv_sys_struct_timespec" >&6
4529 if test $fu_cv_sys_struct_timespec = yes; then
4531 cat >>confdefs.h <<EOF
4532 #define HAVE_STRUCT_TIMESPEC 1
4537 echo "$as_me:4537: checking for uid_t in sys/types.h" >&5
4538 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
4539 if test "${ac_cv_type_uid_t+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542 cat >conftest.$ac_ext <<_ACEOF
4543 #line 4543 "configure"
4544 #include "confdefs.h"
4545 #include <sys/types.h>
4547 _ACEOF
4548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4549 egrep "uid_t" >/dev/null 2>&1; then
4550 ac_cv_type_uid_t=yes
4551 else
4552 ac_cv_type_uid_t=no
4554 rm -f conftest*
4557 echo "$as_me:4557: result: $ac_cv_type_uid_t" >&5
4558 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
4559 if test $ac_cv_type_uid_t = no; then
4561 cat >>confdefs.h <<\EOF
4562 #define uid_t int
4565 cat >>confdefs.h <<\EOF
4566 #define gid_t int
4571 echo "$as_me:4571: checking type of array argument to getgroups" >&5
4572 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
4573 if test "${ac_cv_type_getgroups+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576 if test "$cross_compiling" = yes; then
4577 ac_cv_type_getgroups=cross
4578 else
4579 cat >conftest.$ac_ext <<_ACEOF
4580 #line 4580 "configure"
4581 #include "confdefs.h"
4582 /* Thanks to Mike Rendell for this test. */
4583 #include <sys/types.h>
4584 #define NGID 256
4585 #undef MAX
4586 #define MAX(x, y) ((x) > (y) ? (x) : (y))
4589 main ()
4591 gid_t gidset[NGID];
4592 int i, n;
4593 union { gid_t gval; long lval; } val;
4595 val.lval = -1;
4596 for (i = 0; i < NGID; i++)
4597 gidset[i] = val.gval;
4598 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
4599 gidset);
4600 /* Exit non-zero if getgroups seems to require an array of ints. This
4601 happens when gid_t is short but getgroups modifies an array of ints. */
4602 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
4604 _ACEOF
4605 rm -f conftest$ac_exeext
4606 if { (eval echo "$as_me:4606: \"$ac_link\"") >&5
4607 (eval $ac_link) 2>&5
4608 ac_status=$?
4609 echo "$as_me:4609: \$? = $ac_status" >&5
4610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4611 { (eval echo "$as_me:4611: \"$ac_try\"") >&5
4612 (eval $ac_try) 2>&5
4613 ac_status=$?
4614 echo "$as_me:4614: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
4616 ac_cv_type_getgroups=gid_t
4617 else
4618 echo "$as_me: program exited with status $ac_status" >&5
4619 echo "$as_me: failed program was:" >&5
4620 cat conftest.$ac_ext >&5
4621 ac_cv_type_getgroups=int
4623 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
4625 if test $ac_cv_type_getgroups = cross; then
4626 cat >conftest.$ac_ext <<_ACEOF
4627 #line 4627 "configure"
4628 #include "confdefs.h"
4629 #include <unistd.h>
4631 _ACEOF
4632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4633 egrep "getgroups.*int.*gid_t" >/dev/null 2>&1; then
4634 ac_cv_type_getgroups=gid_t
4635 else
4636 ac_cv_type_getgroups=int
4638 rm -f conftest*
4642 echo "$as_me:4642: result: $ac_cv_type_getgroups" >&5
4643 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
4645 cat >>confdefs.h <<EOF
4646 #define GETGROUPS_T $ac_cv_type_getgroups
4649 echo "$as_me:4649: checking for mode_t" >&5
4650 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
4651 if test "${ac_cv_type_mode_t+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654 cat >conftest.$ac_ext <<_ACEOF
4655 #line 4655 "configure"
4656 #include "confdefs.h"
4657 $ac_includes_default
4659 main ()
4661 if ((mode_t *) 0)
4662 return 0;
4663 if (sizeof (mode_t))
4664 return 0;
4666 return 0;
4668 _ACEOF
4669 rm -f conftest.$ac_objext
4670 if { (eval echo "$as_me:4670: \"$ac_compile\"") >&5
4671 (eval $ac_compile) 2>&5
4672 ac_status=$?
4673 echo "$as_me:4673: \$? = $ac_status" >&5
4674 (exit $ac_status); } &&
4675 { ac_try='test -s conftest.$ac_objext'
4676 { (eval echo "$as_me:4676: \"$ac_try\"") >&5
4677 (eval $ac_try) 2>&5
4678 ac_status=$?
4679 echo "$as_me:4679: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4681 ac_cv_type_mode_t=yes
4682 else
4683 echo "$as_me: failed program was:" >&5
4684 cat conftest.$ac_ext >&5
4685 ac_cv_type_mode_t=no
4687 rm -f conftest.$ac_objext conftest.$ac_ext
4689 echo "$as_me:4689: result: $ac_cv_type_mode_t" >&5
4690 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
4691 if test $ac_cv_type_mode_t = yes; then
4693 else
4695 cat >>confdefs.h <<EOF
4696 #define mode_t int
4701 echo "$as_me:4701: checking for off_t" >&5
4702 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4703 if test "${ac_cv_type_off_t+set}" = set; then
4704 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 else
4706 cat >conftest.$ac_ext <<_ACEOF
4707 #line 4707 "configure"
4708 #include "confdefs.h"
4709 $ac_includes_default
4711 main ()
4713 if ((off_t *) 0)
4714 return 0;
4715 if (sizeof (off_t))
4716 return 0;
4718 return 0;
4720 _ACEOF
4721 rm -f conftest.$ac_objext
4722 if { (eval echo "$as_me:4722: \"$ac_compile\"") >&5
4723 (eval $ac_compile) 2>&5
4724 ac_status=$?
4725 echo "$as_me:4725: \$? = $ac_status" >&5
4726 (exit $ac_status); } &&
4727 { ac_try='test -s conftest.$ac_objext'
4728 { (eval echo "$as_me:4728: \"$ac_try\"") >&5
4729 (eval $ac_try) 2>&5
4730 ac_status=$?
4731 echo "$as_me:4731: \$? = $ac_status" >&5
4732 (exit $ac_status); }; }; then
4733 ac_cv_type_off_t=yes
4734 else
4735 echo "$as_me: failed program was:" >&5
4736 cat conftest.$ac_ext >&5
4737 ac_cv_type_off_t=no
4739 rm -f conftest.$ac_objext conftest.$ac_ext
4741 echo "$as_me:4741: result: $ac_cv_type_off_t" >&5
4742 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4743 if test $ac_cv_type_off_t = yes; then
4745 else
4747 cat >>confdefs.h <<EOF
4748 #define off_t long
4753 echo "$as_me:4753: checking for pid_t" >&5
4754 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
4755 if test "${ac_cv_type_pid_t+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4757 else
4758 cat >conftest.$ac_ext <<_ACEOF
4759 #line 4759 "configure"
4760 #include "confdefs.h"
4761 $ac_includes_default
4763 main ()
4765 if ((pid_t *) 0)
4766 return 0;
4767 if (sizeof (pid_t))
4768 return 0;
4770 return 0;
4772 _ACEOF
4773 rm -f conftest.$ac_objext
4774 if { (eval echo "$as_me:4774: \"$ac_compile\"") >&5
4775 (eval $ac_compile) 2>&5
4776 ac_status=$?
4777 echo "$as_me:4777: \$? = $ac_status" >&5
4778 (exit $ac_status); } &&
4779 { ac_try='test -s conftest.$ac_objext'
4780 { (eval echo "$as_me:4780: \"$ac_try\"") >&5
4781 (eval $ac_try) 2>&5
4782 ac_status=$?
4783 echo "$as_me:4783: \$? = $ac_status" >&5
4784 (exit $ac_status); }; }; then
4785 ac_cv_type_pid_t=yes
4786 else
4787 echo "$as_me: failed program was:" >&5
4788 cat conftest.$ac_ext >&5
4789 ac_cv_type_pid_t=no
4791 rm -f conftest.$ac_objext conftest.$ac_ext
4793 echo "$as_me:4793: result: $ac_cv_type_pid_t" >&5
4794 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
4795 if test $ac_cv_type_pid_t = yes; then
4797 else
4799 cat >>confdefs.h <<EOF
4800 #define pid_t int
4805 echo "$as_me:4805: checking return type of signal handlers" >&5
4806 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4807 if test "${ac_cv_type_signal+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810 cat >conftest.$ac_ext <<_ACEOF
4811 #line 4811 "configure"
4812 #include "confdefs.h"
4813 #include <sys/types.h>
4814 #include <signal.h>
4815 #ifdef signal
4816 # undef signal
4817 #endif
4818 #ifdef __cplusplus
4819 extern "C" void (*signal (int, void (*)(int)))(int);
4820 #else
4821 void (*signal ()) ();
4822 #endif
4825 main ()
4827 int i;
4829 return 0;
4831 _ACEOF
4832 rm -f conftest.$ac_objext
4833 if { (eval echo "$as_me:4833: \"$ac_compile\"") >&5
4834 (eval $ac_compile) 2>&5
4835 ac_status=$?
4836 echo "$as_me:4836: \$? = $ac_status" >&5
4837 (exit $ac_status); } &&
4838 { ac_try='test -s conftest.$ac_objext'
4839 { (eval echo "$as_me:4839: \"$ac_try\"") >&5
4840 (eval $ac_try) 2>&5
4841 ac_status=$?
4842 echo "$as_me:4842: \$? = $ac_status" >&5
4843 (exit $ac_status); }; }; then
4844 ac_cv_type_signal=void
4845 else
4846 echo "$as_me: failed program was:" >&5
4847 cat conftest.$ac_ext >&5
4848 ac_cv_type_signal=int
4850 rm -f conftest.$ac_objext conftest.$ac_ext
4852 echo "$as_me:4852: result: $ac_cv_type_signal" >&5
4853 echo "${ECHO_T}$ac_cv_type_signal" >&6
4855 cat >>confdefs.h <<EOF
4856 #define RETSIGTYPE $ac_cv_type_signal
4859 echo "$as_me:4859: checking for size_t" >&5
4860 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4861 if test "${ac_cv_type_size_t+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864 cat >conftest.$ac_ext <<_ACEOF
4865 #line 4865 "configure"
4866 #include "confdefs.h"
4867 $ac_includes_default
4869 main ()
4871 if ((size_t *) 0)
4872 return 0;
4873 if (sizeof (size_t))
4874 return 0;
4876 return 0;
4878 _ACEOF
4879 rm -f conftest.$ac_objext
4880 if { (eval echo "$as_me:4880: \"$ac_compile\"") >&5
4881 (eval $ac_compile) 2>&5
4882 ac_status=$?
4883 echo "$as_me:4883: \$? = $ac_status" >&5
4884 (exit $ac_status); } &&
4885 { ac_try='test -s conftest.$ac_objext'
4886 { (eval echo "$as_me:4886: \"$ac_try\"") >&5
4887 (eval $ac_try) 2>&5
4888 ac_status=$?
4889 echo "$as_me:4889: \$? = $ac_status" >&5
4890 (exit $ac_status); }; }; then
4891 ac_cv_type_size_t=yes
4892 else
4893 echo "$as_me: failed program was:" >&5
4894 cat conftest.$ac_ext >&5
4895 ac_cv_type_size_t=no
4897 rm -f conftest.$ac_objext conftest.$ac_ext
4899 echo "$as_me:4899: result: $ac_cv_type_size_t" >&5
4900 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4901 if test $ac_cv_type_size_t = yes; then
4903 else
4905 cat >>confdefs.h <<EOF
4906 #define size_t unsigned
4911 echo "$as_me:4911: checking for inttypes.h" >&5
4912 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4913 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916 cat >conftest.$ac_ext <<_ACEOF
4917 #line 4917 "configure"
4918 #include "confdefs.h"
4919 #include <sys/types.h>
4920 #include <inttypes.h>
4922 main ()
4924 uintmax_t i = (uintmax_t) -1;
4926 return 0;
4928 _ACEOF
4929 rm -f conftest.$ac_objext
4930 if { (eval echo "$as_me:4930: \"$ac_compile\"") >&5
4931 (eval $ac_compile) 2>&5
4932 ac_status=$?
4933 echo "$as_me:4933: \$? = $ac_status" >&5
4934 (exit $ac_status); } &&
4935 { ac_try='test -s conftest.$ac_objext'
4936 { (eval echo "$as_me:4936: \"$ac_try\"") >&5
4937 (eval $ac_try) 2>&5
4938 ac_status=$?
4939 echo "$as_me:4939: \$? = $ac_status" >&5
4940 (exit $ac_status); }; }; then
4941 jm_ac_cv_header_inttypes_h=yes
4942 else
4943 echo "$as_me: failed program was:" >&5
4944 cat conftest.$ac_ext >&5
4945 jm_ac_cv_header_inttypes_h=no
4947 rm -f conftest.$ac_objext conftest.$ac_ext
4949 echo "$as_me:4949: result: $jm_ac_cv_header_inttypes_h" >&5
4950 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4951 if test $jm_ac_cv_header_inttypes_h = yes; then
4953 cat >>confdefs.h <<EOF
4954 #define HAVE_INTTYPES_H 1
4959 echo "$as_me:4959: checking for unsigned long long" >&5
4960 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
4961 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964 cat >conftest.$ac_ext <<_ACEOF
4965 #line 4965 "configure"
4966 #include "confdefs.h"
4967 unsigned long long ull = 1; int i = 63;
4969 main ()
4971 unsigned long long ullmax = (unsigned long long) -1;
4972 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4974 return 0;
4976 _ACEOF
4977 rm -f conftest.$ac_objext conftest$ac_exeext
4978 if { (eval echo "$as_me:4978: \"$ac_link\"") >&5
4979 (eval $ac_link) 2>&5
4980 ac_status=$?
4981 echo "$as_me:4981: \$? = $ac_status" >&5
4982 (exit $ac_status); } &&
4983 { ac_try='test -s conftest$ac_exeext'
4984 { (eval echo "$as_me:4984: \"$ac_try\"") >&5
4985 (eval $ac_try) 2>&5
4986 ac_status=$?
4987 echo "$as_me:4987: \$? = $ac_status" >&5
4988 (exit $ac_status); }; }; then
4989 ac_cv_type_unsigned_long_long=yes
4990 else
4991 echo "$as_me: failed program was:" >&5
4992 cat conftest.$ac_ext >&5
4993 ac_cv_type_unsigned_long_long=no
4995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4997 echo "$as_me:4997: result: $ac_cv_type_unsigned_long_long" >&5
4998 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
4999 if test $ac_cv_type_unsigned_long_long = yes; then
5001 cat >>confdefs.h <<\EOF
5002 #define HAVE_UNSIGNED_LONG_LONG 1
5007 if test $jm_ac_cv_header_inttypes_h = no; then
5009 test $ac_cv_type_unsigned_long_long = yes \
5010 && ac_type='unsigned long long' \
5011 || ac_type='unsigned long'
5013 cat >>confdefs.h <<EOF
5014 #define uintmax_t $ac_type
5019 echo "$as_me:5019: checking whether sys/types.h defines makedev" >&5
5020 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5021 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 else
5024 cat >conftest.$ac_ext <<_ACEOF
5025 #line 5025 "configure"
5026 #include "confdefs.h"
5027 #include <sys/types.h>
5030 main ()
5032 return makedev(0, 0);
5034 return 0;
5036 _ACEOF
5037 rm -f conftest.$ac_objext conftest$ac_exeext
5038 if { (eval echo "$as_me:5038: \"$ac_link\"") >&5
5039 (eval $ac_link) 2>&5
5040 ac_status=$?
5041 echo "$as_me:5041: \$? = $ac_status" >&5
5042 (exit $ac_status); } &&
5043 { ac_try='test -s conftest$ac_exeext'
5044 { (eval echo "$as_me:5044: \"$ac_try\"") >&5
5045 (eval $ac_try) 2>&5
5046 ac_status=$?
5047 echo "$as_me:5047: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 ac_cv_header_sys_types_h_makedev=yes
5050 else
5051 echo "$as_me: failed program was:" >&5
5052 cat conftest.$ac_ext >&5
5053 ac_cv_header_sys_types_h_makedev=no
5055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5058 echo "$as_me:5058: result: $ac_cv_header_sys_types_h_makedev" >&5
5059 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5061 if test $ac_cv_header_sys_types_h_makedev = no; then
5062 echo "$as_me:5062: checking for sys/mkdev.h" >&5
5063 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5064 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067 cat >conftest.$ac_ext <<_ACEOF
5068 #line 5068 "configure"
5069 #include "confdefs.h"
5070 #include <sys/mkdev.h>
5071 _ACEOF
5072 if { (eval echo "$as_me:5072: \"$ac_cpp conftest.$ac_ext\"") >&5
5073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5074 ac_status=$?
5075 egrep -v '^ *\+' conftest.er1 >conftest.err
5076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 echo "$as_me:5078: \$? = $ac_status" >&5
5079 (exit $ac_status); } >/dev/null; then
5080 if test -s conftest.err; then
5081 ac_cpp_err=$ac_c_preproc_warn_flag
5082 else
5083 ac_cpp_err=
5085 else
5086 ac_cpp_err=yes
5088 if test -z "$ac_cpp_err"; then
5089 ac_cv_header_sys_mkdev_h=yes
5090 else
5091 echo "$as_me: failed program was:" >&5
5092 cat conftest.$ac_ext >&5
5093 ac_cv_header_sys_mkdev_h=no
5095 rm -f conftest.err conftest.$ac_ext
5097 echo "$as_me:5097: result: $ac_cv_header_sys_mkdev_h" >&5
5098 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5099 if test $ac_cv_header_sys_mkdev_h = yes; then
5101 cat >>confdefs.h <<\EOF
5102 #define MAJOR_IN_MKDEV 1
5107 if test $ac_cv_header_sys_mkdev_h = no; then
5108 echo "$as_me:5108: checking for sys/sysmacros.h" >&5
5109 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5110 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 else
5113 cat >conftest.$ac_ext <<_ACEOF
5114 #line 5114 "configure"
5115 #include "confdefs.h"
5116 #include <sys/sysmacros.h>
5117 _ACEOF
5118 if { (eval echo "$as_me:5118: \"$ac_cpp conftest.$ac_ext\"") >&5
5119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5120 ac_status=$?
5121 egrep -v '^ *\+' conftest.er1 >conftest.err
5122 rm -f conftest.er1
5123 cat conftest.err >&5
5124 echo "$as_me:5124: \$? = $ac_status" >&5
5125 (exit $ac_status); } >/dev/null; then
5126 if test -s conftest.err; then
5127 ac_cpp_err=$ac_c_preproc_warn_flag
5128 else
5129 ac_cpp_err=
5131 else
5132 ac_cpp_err=yes
5134 if test -z "$ac_cpp_err"; then
5135 ac_cv_header_sys_sysmacros_h=yes
5136 else
5137 echo "$as_me: failed program was:" >&5
5138 cat conftest.$ac_ext >&5
5139 ac_cv_header_sys_sysmacros_h=no
5141 rm -f conftest.err conftest.$ac_ext
5143 echo "$as_me:5143: result: $ac_cv_header_sys_sysmacros_h" >&5
5144 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5145 if test $ac_cv_header_sys_sysmacros_h = yes; then
5147 cat >>confdefs.h <<\EOF
5148 #define MAJOR_IN_SYSMACROS 1
5156 echo "$as_me:5156: checking for struct stat.st_blksize" >&5
5157 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
5158 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 else
5161 cat >conftest.$ac_ext <<_ACEOF
5162 #line 5162 "configure"
5163 #include "confdefs.h"
5164 $ac_includes_default
5165 #include <sys/stat.h>
5168 main ()
5170 struct stat foo;
5171 foo.st_blksize;
5173 return 0;
5175 _ACEOF
5176 rm -f conftest.$ac_objext
5177 if { (eval echo "$as_me:5177: \"$ac_compile\"") >&5
5178 (eval $ac_compile) 2>&5
5179 ac_status=$?
5180 echo "$as_me:5180: \$? = $ac_status" >&5
5181 (exit $ac_status); } &&
5182 { ac_try='test -s conftest.$ac_objext'
5183 { (eval echo "$as_me:5183: \"$ac_try\"") >&5
5184 (eval $ac_try) 2>&5
5185 ac_status=$?
5186 echo "$as_me:5186: \$? = $ac_status" >&5
5187 (exit $ac_status); }; }; then
5188 ac_cv_member_struct_stat_st_blksize=yes
5189 else
5190 echo "$as_me: failed program was:" >&5
5191 cat conftest.$ac_ext >&5
5192 ac_cv_member_struct_stat_st_blksize=no
5194 rm -f conftest.$ac_objext conftest.$ac_ext
5196 echo "$as_me:5196: result: $ac_cv_member_struct_stat_st_blksize" >&5
5197 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
5198 if test $ac_cv_member_struct_stat_st_blksize = yes; then
5200 cat >>confdefs.h <<EOF
5201 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
5206 echo "$as_me:5206: checking for ino_t" >&5
5207 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
5208 if test "${ac_cv_type_ino_t+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211 cat >conftest.$ac_ext <<_ACEOF
5212 #line 5212 "configure"
5213 #include "confdefs.h"
5214 $ac_includes_default
5216 main ()
5218 if ((ino_t *) 0)
5219 return 0;
5220 if (sizeof (ino_t))
5221 return 0;
5223 return 0;
5225 _ACEOF
5226 rm -f conftest.$ac_objext
5227 if { (eval echo "$as_me:5227: \"$ac_compile\"") >&5
5228 (eval $ac_compile) 2>&5
5229 ac_status=$?
5230 echo "$as_me:5230: \$? = $ac_status" >&5
5231 (exit $ac_status); } &&
5232 { ac_try='test -s conftest.$ac_objext'
5233 { (eval echo "$as_me:5233: \"$ac_try\"") >&5
5234 (eval $ac_try) 2>&5
5235 ac_status=$?
5236 echo "$as_me:5236: \$? = $ac_status" >&5
5237 (exit $ac_status); }; }; then
5238 ac_cv_type_ino_t=yes
5239 else
5240 echo "$as_me: failed program was:" >&5
5241 cat conftest.$ac_ext >&5
5242 ac_cv_type_ino_t=no
5244 rm -f conftest.$ac_objext conftest.$ac_ext
5246 echo "$as_me:5246: result: $ac_cv_type_ino_t" >&5
5247 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
5248 if test $ac_cv_type_ino_t = yes; then
5250 else
5252 cat >>confdefs.h <<EOF
5253 #define ino_t unsigned long
5258 echo "$as_me:5258: checking for ssize_t" >&5
5259 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
5260 if test "${ac_cv_type_ssize_t+set}" = set; then
5261 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 else
5263 cat >conftest.$ac_ext <<_ACEOF
5264 #line 5264 "configure"
5265 #include "confdefs.h"
5266 $ac_includes_default
5268 main ()
5270 if ((ssize_t *) 0)
5271 return 0;
5272 if (sizeof (ssize_t))
5273 return 0;
5275 return 0;
5277 _ACEOF
5278 rm -f conftest.$ac_objext
5279 if { (eval echo "$as_me:5279: \"$ac_compile\"") >&5
5280 (eval $ac_compile) 2>&5
5281 ac_status=$?
5282 echo "$as_me:5282: \$? = $ac_status" >&5
5283 (exit $ac_status); } &&
5284 { ac_try='test -s conftest.$ac_objext'
5285 { (eval echo "$as_me:5285: \"$ac_try\"") >&5
5286 (eval $ac_try) 2>&5
5287 ac_status=$?
5288 echo "$as_me:5288: \$? = $ac_status" >&5
5289 (exit $ac_status); }; }; then
5290 ac_cv_type_ssize_t=yes
5291 else
5292 echo "$as_me: failed program was:" >&5
5293 cat conftest.$ac_ext >&5
5294 ac_cv_type_ssize_t=no
5296 rm -f conftest.$ac_objext conftest.$ac_ext
5298 echo "$as_me:5298: result: $ac_cv_type_ssize_t" >&5
5299 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
5300 if test $ac_cv_type_ssize_t = yes; then
5302 else
5304 cat >>confdefs.h <<EOF
5305 #define ssize_t int
5310 echo "$as_me:5310: checking for getpwnam in -lsun" >&5
5311 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
5312 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 else
5315 ac_check_lib_save_LIBS=$LIBS
5316 LIBS="-lsun $LIBS"
5317 cat >conftest.$ac_ext <<_ACEOF
5318 #line 5318 "configure"
5319 #include "confdefs.h"
5321 /* Override any gcc2 internal prototype to avoid an error. */
5322 #ifdef __cplusplus
5323 extern "C"
5324 #endif
5325 /* We use char because int might match the return type of a gcc2
5326 builtin and then its argument prototype would still apply. */
5327 char getpwnam ();
5329 main ()
5331 getpwnam ();
5333 return 0;
5335 _ACEOF
5336 rm -f conftest.$ac_objext conftest$ac_exeext
5337 if { (eval echo "$as_me:5337: \"$ac_link\"") >&5
5338 (eval $ac_link) 2>&5
5339 ac_status=$?
5340 echo "$as_me:5340: \$? = $ac_status" >&5
5341 (exit $ac_status); } &&
5342 { ac_try='test -s conftest$ac_exeext'
5343 { (eval echo "$as_me:5343: \"$ac_try\"") >&5
5344 (eval $ac_try) 2>&5
5345 ac_status=$?
5346 echo "$as_me:5346: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5348 ac_cv_lib_sun_getpwnam=yes
5349 else
5350 echo "$as_me: failed program was:" >&5
5351 cat conftest.$ac_ext >&5
5352 ac_cv_lib_sun_getpwnam=no
5354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5355 LIBS=$ac_check_lib_save_LIBS
5357 echo "$as_me:5357: result: $ac_cv_lib_sun_getpwnam" >&5
5358 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
5359 if test $ac_cv_lib_sun_getpwnam = yes; then
5360 cat >>confdefs.h <<EOF
5361 #define HAVE_LIBSUN 1
5364 LIBS="-lsun $LIBS"
5368 for ac_header in fcntl.h string.h limits.h unistd.h errno.h
5370 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5371 echo "$as_me:5371: checking for $ac_header" >&5
5372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5373 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 else
5376 cat >conftest.$ac_ext <<_ACEOF
5377 #line 5377 "configure"
5378 #include "confdefs.h"
5379 #include <$ac_header>
5380 _ACEOF
5381 if { (eval echo "$as_me:5381: \"$ac_cpp conftest.$ac_ext\"") >&5
5382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5383 ac_status=$?
5384 egrep -v '^ *\+' conftest.er1 >conftest.err
5385 rm -f conftest.er1
5386 cat conftest.err >&5
5387 echo "$as_me:5387: \$? = $ac_status" >&5
5388 (exit $ac_status); } >/dev/null; then
5389 if test -s conftest.err; then
5390 ac_cpp_err=$ac_c_preproc_warn_flag
5391 else
5392 ac_cpp_err=
5394 else
5395 ac_cpp_err=yes
5397 if test -z "$ac_cpp_err"; then
5398 eval "$ac_ac_Header=yes"
5399 else
5400 echo "$as_me: failed program was:" >&5
5401 cat conftest.$ac_ext >&5
5402 eval "$ac_ac_Header=no"
5404 rm -f conftest.err conftest.$ac_ext
5406 echo "$as_me:5406: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5407 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5408 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5409 cat >>confdefs.h <<EOF
5410 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5414 done
5416 echo "$as_me:5416: checking for ANSI C header files" >&5
5417 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5418 if test "${ac_cv_header_stdc+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5420 else
5421 cat >conftest.$ac_ext <<_ACEOF
5422 #line 5422 "configure"
5423 #include "confdefs.h"
5424 #include <stdlib.h>
5425 #include <stdarg.h>
5426 #include <string.h>
5427 #include <float.h>
5429 _ACEOF
5430 if { (eval echo "$as_me:5430: \"$ac_cpp conftest.$ac_ext\"") >&5
5431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5432 ac_status=$?
5433 egrep -v '^ *\+' conftest.er1 >conftest.err
5434 rm -f conftest.er1
5435 cat conftest.err >&5
5436 echo "$as_me:5436: \$? = $ac_status" >&5
5437 (exit $ac_status); } >/dev/null; then
5438 if test -s conftest.err; then
5439 ac_cpp_err=$ac_c_preproc_warn_flag
5440 else
5441 ac_cpp_err=
5443 else
5444 ac_cpp_err=yes
5446 if test -z "$ac_cpp_err"; then
5447 ac_cv_header_stdc=yes
5448 else
5449 echo "$as_me: failed program was:" >&5
5450 cat conftest.$ac_ext >&5
5451 ac_cv_header_stdc=no
5453 rm -f conftest.err conftest.$ac_ext
5455 if test $ac_cv_header_stdc = yes; then
5456 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5457 cat >conftest.$ac_ext <<_ACEOF
5458 #line 5458 "configure"
5459 #include "confdefs.h"
5460 #include <string.h>
5462 _ACEOF
5463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5464 egrep "memchr" >/dev/null 2>&1; then
5466 else
5467 ac_cv_header_stdc=no
5469 rm -f conftest*
5473 if test $ac_cv_header_stdc = yes; then
5474 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5475 cat >conftest.$ac_ext <<_ACEOF
5476 #line 5476 "configure"
5477 #include "confdefs.h"
5478 #include <stdlib.h>
5480 _ACEOF
5481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5482 egrep "free" >/dev/null 2>&1; then
5484 else
5485 ac_cv_header_stdc=no
5487 rm -f conftest*
5491 if test $ac_cv_header_stdc = yes; then
5492 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5493 if test "$cross_compiling" = yes; then
5495 else
5496 cat >conftest.$ac_ext <<_ACEOF
5497 #line 5497 "configure"
5498 #include "confdefs.h"
5499 #include <ctype.h>
5500 #if ((' ' & 0x0FF) == 0x020)
5501 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5502 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5503 #else
5504 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5505 || ('j' <= (c) && (c) <= 'r') \
5506 || ('s' <= (c) && (c) <= 'z'))
5507 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5508 #endif
5510 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5512 main ()
5514 int i;
5515 for (i = 0; i < 256; i++)
5516 if (XOR (islower (i), ISLOWER (i))
5517 || toupper (i) != TOUPPER (i))
5518 exit(2);
5519 exit (0);
5521 _ACEOF
5522 rm -f conftest$ac_exeext
5523 if { (eval echo "$as_me:5523: \"$ac_link\"") >&5
5524 (eval $ac_link) 2>&5
5525 ac_status=$?
5526 echo "$as_me:5526: \$? = $ac_status" >&5
5527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5528 { (eval echo "$as_me:5528: \"$ac_try\"") >&5
5529 (eval $ac_try) 2>&5
5530 ac_status=$?
5531 echo "$as_me:5531: \$? = $ac_status" >&5
5532 (exit $ac_status); }; }; then
5534 else
5535 echo "$as_me: program exited with status $ac_status" >&5
5536 echo "$as_me: failed program was:" >&5
5537 cat conftest.$ac_ext >&5
5538 ac_cv_header_stdc=no
5540 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
5544 echo "$as_me:5544: result: $ac_cv_header_stdc" >&5
5545 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5546 if test $ac_cv_header_stdc = yes; then
5548 cat >>confdefs.h <<\EOF
5549 #define STDC_HEADERS 1
5554 echo "$as_me:5554: checking whether sys/types.h defines makedev" >&5
5555 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
5556 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5558 else
5559 cat >conftest.$ac_ext <<_ACEOF
5560 #line 5560 "configure"
5561 #include "confdefs.h"
5562 #include <sys/types.h>
5565 main ()
5567 return makedev(0, 0);
5569 return 0;
5571 _ACEOF
5572 rm -f conftest.$ac_objext conftest$ac_exeext
5573 if { (eval echo "$as_me:5573: \"$ac_link\"") >&5
5574 (eval $ac_link) 2>&5
5575 ac_status=$?
5576 echo "$as_me:5576: \$? = $ac_status" >&5
5577 (exit $ac_status); } &&
5578 { ac_try='test -s conftest$ac_exeext'
5579 { (eval echo "$as_me:5579: \"$ac_try\"") >&5
5580 (eval $ac_try) 2>&5
5581 ac_status=$?
5582 echo "$as_me:5582: \$? = $ac_status" >&5
5583 (exit $ac_status); }; }; then
5584 ac_cv_header_sys_types_h_makedev=yes
5585 else
5586 echo "$as_me: failed program was:" >&5
5587 cat conftest.$ac_ext >&5
5588 ac_cv_header_sys_types_h_makedev=no
5590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5593 echo "$as_me:5593: result: $ac_cv_header_sys_types_h_makedev" >&5
5594 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
5596 if test $ac_cv_header_sys_types_h_makedev = no; then
5597 echo "$as_me:5597: checking for sys/mkdev.h" >&5
5598 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
5599 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602 cat >conftest.$ac_ext <<_ACEOF
5603 #line 5603 "configure"
5604 #include "confdefs.h"
5605 #include <sys/mkdev.h>
5606 _ACEOF
5607 if { (eval echo "$as_me:5607: \"$ac_cpp conftest.$ac_ext\"") >&5
5608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5609 ac_status=$?
5610 egrep -v '^ *\+' conftest.er1 >conftest.err
5611 rm -f conftest.er1
5612 cat conftest.err >&5
5613 echo "$as_me:5613: \$? = $ac_status" >&5
5614 (exit $ac_status); } >/dev/null; then
5615 if test -s conftest.err; then
5616 ac_cpp_err=$ac_c_preproc_warn_flag
5617 else
5618 ac_cpp_err=
5620 else
5621 ac_cpp_err=yes
5623 if test -z "$ac_cpp_err"; then
5624 ac_cv_header_sys_mkdev_h=yes
5625 else
5626 echo "$as_me: failed program was:" >&5
5627 cat conftest.$ac_ext >&5
5628 ac_cv_header_sys_mkdev_h=no
5630 rm -f conftest.err conftest.$ac_ext
5632 echo "$as_me:5632: result: $ac_cv_header_sys_mkdev_h" >&5
5633 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
5634 if test $ac_cv_header_sys_mkdev_h = yes; then
5636 cat >>confdefs.h <<\EOF
5637 #define MAJOR_IN_MKDEV 1
5642 if test $ac_cv_header_sys_mkdev_h = no; then
5643 echo "$as_me:5643: checking for sys/sysmacros.h" >&5
5644 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
5645 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 else
5648 cat >conftest.$ac_ext <<_ACEOF
5649 #line 5649 "configure"
5650 #include "confdefs.h"
5651 #include <sys/sysmacros.h>
5652 _ACEOF
5653 if { (eval echo "$as_me:5653: \"$ac_cpp conftest.$ac_ext\"") >&5
5654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5655 ac_status=$?
5656 egrep -v '^ *\+' conftest.er1 >conftest.err
5657 rm -f conftest.er1
5658 cat conftest.err >&5
5659 echo "$as_me:5659: \$? = $ac_status" >&5
5660 (exit $ac_status); } >/dev/null; then
5661 if test -s conftest.err; then
5662 ac_cpp_err=$ac_c_preproc_warn_flag
5663 else
5664 ac_cpp_err=
5666 else
5667 ac_cpp_err=yes
5669 if test -z "$ac_cpp_err"; then
5670 ac_cv_header_sys_sysmacros_h=yes
5671 else
5672 echo "$as_me: failed program was:" >&5
5673 cat conftest.$ac_ext >&5
5674 ac_cv_header_sys_sysmacros_h=no
5676 rm -f conftest.err conftest.$ac_ext
5678 echo "$as_me:5678: result: $ac_cv_header_sys_sysmacros_h" >&5
5679 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
5680 if test $ac_cv_header_sys_sysmacros_h = yes; then
5682 cat >>confdefs.h <<\EOF
5683 #define MAJOR_IN_SYSMACROS 1
5691 ac_header_dirent=no
5692 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5693 ac_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`
5694 echo "$as_me:5694: checking for $ac_hdr that defines DIR" >&5
5695 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5696 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 else
5699 cat >conftest.$ac_ext <<_ACEOF
5700 #line 5700 "configure"
5701 #include "confdefs.h"
5702 #include <sys/types.h>
5703 #include <$ac_hdr>
5706 main ()
5708 DIR *dirp = 0;
5710 return 0;
5712 _ACEOF
5713 rm -f conftest.$ac_objext
5714 if { (eval echo "$as_me:5714: \"$ac_compile\"") >&5
5715 (eval $ac_compile) 2>&5
5716 ac_status=$?
5717 echo "$as_me:5717: \$? = $ac_status" >&5
5718 (exit $ac_status); } &&
5719 { ac_try='test -s conftest.$ac_objext'
5720 { (eval echo "$as_me:5720: \"$ac_try\"") >&5
5721 (eval $ac_try) 2>&5
5722 ac_status=$?
5723 echo "$as_me:5723: \$? = $ac_status" >&5
5724 (exit $ac_status); }; }; then
5725 eval "$ac_ac_Header=yes"
5726 else
5727 echo "$as_me: failed program was:" >&5
5728 cat conftest.$ac_ext >&5
5729 eval "$ac_ac_Header=no"
5731 rm -f conftest.$ac_objext conftest.$ac_ext
5733 echo "$as_me:5733: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5734 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5735 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5736 cat >>confdefs.h <<EOF
5737 #define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
5740 ac_header_dirent=$ac_hdr; break
5743 done
5744 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5745 if test $ac_header_dirent = dirent.h; then
5746 echo "$as_me:5746: checking for opendir in -ldir" >&5
5747 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
5748 if test "${ac_cv_lib_dir_opendir+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 else
5751 ac_check_lib_save_LIBS=$LIBS
5752 LIBS="-ldir $LIBS"
5753 cat >conftest.$ac_ext <<_ACEOF
5754 #line 5754 "configure"
5755 #include "confdefs.h"
5757 /* Override any gcc2 internal prototype to avoid an error. */
5758 #ifdef __cplusplus
5759 extern "C"
5760 #endif
5761 /* We use char because int might match the return type of a gcc2
5762 builtin and then its argument prototype would still apply. */
5763 char opendir ();
5765 main ()
5767 opendir ();
5769 return 0;
5771 _ACEOF
5772 rm -f conftest.$ac_objext conftest$ac_exeext
5773 if { (eval echo "$as_me:5773: \"$ac_link\"") >&5
5774 (eval $ac_link) 2>&5
5775 ac_status=$?
5776 echo "$as_me:5776: \$? = $ac_status" >&5
5777 (exit $ac_status); } &&
5778 { ac_try='test -s conftest$ac_exeext'
5779 { (eval echo "$as_me:5779: \"$ac_try\"") >&5
5780 (eval $ac_try) 2>&5
5781 ac_status=$?
5782 echo "$as_me:5782: \$? = $ac_status" >&5
5783 (exit $ac_status); }; }; then
5784 ac_cv_lib_dir_opendir=yes
5785 else
5786 echo "$as_me: failed program was:" >&5
5787 cat conftest.$ac_ext >&5
5788 ac_cv_lib_dir_opendir=no
5790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5791 LIBS=$ac_check_lib_save_LIBS
5793 echo "$as_me:5793: result: $ac_cv_lib_dir_opendir" >&5
5794 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
5795 if test $ac_cv_lib_dir_opendir = yes; then
5796 LIBS="$LIBS -ldir"
5799 else
5800 echo "$as_me:5800: checking for opendir in -lx" >&5
5801 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
5802 if test "${ac_cv_lib_x_opendir+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805 ac_check_lib_save_LIBS=$LIBS
5806 LIBS="-lx $LIBS"
5807 cat >conftest.$ac_ext <<_ACEOF
5808 #line 5808 "configure"
5809 #include "confdefs.h"
5811 /* Override any gcc2 internal prototype to avoid an error. */
5812 #ifdef __cplusplus
5813 extern "C"
5814 #endif
5815 /* We use char because int might match the return type of a gcc2
5816 builtin and then its argument prototype would still apply. */
5817 char opendir ();
5819 main ()
5821 opendir ();
5823 return 0;
5825 _ACEOF
5826 rm -f conftest.$ac_objext conftest$ac_exeext
5827 if { (eval echo "$as_me:5827: \"$ac_link\"") >&5
5828 (eval $ac_link) 2>&5
5829 ac_status=$?
5830 echo "$as_me:5830: \$? = $ac_status" >&5
5831 (exit $ac_status); } &&
5832 { ac_try='test -s conftest$ac_exeext'
5833 { (eval echo "$as_me:5833: \"$ac_try\"") >&5
5834 (eval $ac_try) 2>&5
5835 ac_status=$?
5836 echo "$as_me:5836: \$? = $ac_status" >&5
5837 (exit $ac_status); }; }; then
5838 ac_cv_lib_x_opendir=yes
5839 else
5840 echo "$as_me: failed program was:" >&5
5841 cat conftest.$ac_ext >&5
5842 ac_cv_lib_x_opendir=no
5844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5845 LIBS=$ac_check_lib_save_LIBS
5847 echo "$as_me:5847: result: $ac_cv_lib_x_opendir" >&5
5848 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
5849 if test $ac_cv_lib_x_opendir = yes; then
5850 LIBS="$LIBS -lx"
5855 echo "$as_me:5855: checking whether stat file-mode macros are broken" >&5
5856 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5857 if test "${ac_cv_header_stat_broken+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860 cat >conftest.$ac_ext <<_ACEOF
5861 #line 5861 "configure"
5862 #include "confdefs.h"
5863 #include <sys/types.h>
5864 #include <sys/stat.h>
5866 #if defined(S_ISBLK) && defined(S_IFDIR)
5867 # if S_ISBLK (S_IFDIR)
5868 You lose.
5869 # endif
5870 #endif
5872 #if defined(S_ISBLK) && defined(S_IFCHR)
5873 # if S_ISBLK (S_IFCHR)
5874 You lose.
5875 # endif
5876 #endif
5878 #if defined(S_ISLNK) && defined(S_IFREG)
5879 # if S_ISLNK (S_IFREG)
5880 You lose.
5881 # endif
5882 #endif
5884 #if defined(S_ISSOCK) && defined(S_IFREG)
5885 # if S_ISSOCK (S_IFREG)
5886 You lose.
5887 # endif
5888 #endif
5890 _ACEOF
5891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5892 egrep "You lose" >/dev/null 2>&1; then
5893 ac_cv_header_stat_broken=yes
5894 else
5895 ac_cv_header_stat_broken=no
5897 rm -f conftest*
5900 echo "$as_me:5900: result: $ac_cv_header_stat_broken" >&5
5901 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5902 if test $ac_cv_header_stat_broken = yes; then
5904 cat >>confdefs.h <<\EOF
5905 #define STAT_MACROS_BROKEN 1
5910 echo "$as_me:5910: checking for sys/wait.h that is POSIX.1 compatible" >&5
5911 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5912 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
5914 else
5915 cat >conftest.$ac_ext <<_ACEOF
5916 #line 5916 "configure"
5917 #include "confdefs.h"
5918 #include <sys/types.h>
5919 #include <sys/wait.h>
5920 #ifndef WEXITSTATUS
5921 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5922 #endif
5923 #ifndef WIFEXITED
5924 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5925 #endif
5928 main ()
5930 int s;
5931 wait (&s);
5932 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5934 return 0;
5936 _ACEOF
5937 rm -f conftest.$ac_objext
5938 if { (eval echo "$as_me:5938: \"$ac_compile\"") >&5
5939 (eval $ac_compile) 2>&5
5940 ac_status=$?
5941 echo "$as_me:5941: \$? = $ac_status" >&5
5942 (exit $ac_status); } &&
5943 { ac_try='test -s conftest.$ac_objext'
5944 { (eval echo "$as_me:5944: \"$ac_try\"") >&5
5945 (eval $ac_try) 2>&5
5946 ac_status=$?
5947 echo "$as_me:5947: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
5949 ac_cv_header_sys_wait_h=yes
5950 else
5951 echo "$as_me: failed program was:" >&5
5952 cat conftest.$ac_ext >&5
5953 ac_cv_header_sys_wait_h=no
5955 rm -f conftest.$ac_objext conftest.$ac_ext
5957 echo "$as_me:5957: result: $ac_cv_header_sys_wait_h" >&5
5958 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5959 if test $ac_cv_header_sys_wait_h = yes; then
5961 cat >>confdefs.h <<\EOF
5962 #define HAVE_SYS_WAIT_H 1
5967 echo "$as_me:5967: checking how to get filesystem type" >&5
5968 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
5969 fstype=no
5970 # The order of these tests is important.
5971 cat >conftest.$ac_ext <<_ACEOF
5972 #line 5972 "configure"
5973 #include "confdefs.h"
5974 #include <sys/statvfs.h>
5975 #include <sys/fstyp.h>
5976 _ACEOF
5977 if { (eval echo "$as_me:5977: \"$ac_cpp conftest.$ac_ext\"") >&5
5978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5979 ac_status=$?
5980 egrep -v '^ *\+' conftest.er1 >conftest.err
5981 rm -f conftest.er1
5982 cat conftest.err >&5
5983 echo "$as_me:5983: \$? = $ac_status" >&5
5984 (exit $ac_status); } >/dev/null; then
5985 if test -s conftest.err; then
5986 ac_cpp_err=$ac_c_preproc_warn_flag
5987 else
5988 ac_cpp_err=
5990 else
5991 ac_cpp_err=yes
5993 if test -z "$ac_cpp_err"; then
5995 cat >>confdefs.h <<\EOF
5996 #define FSTYPE_STATVFS 1
5998 fstype=SVR4
5999 else
6000 echo "$as_me: failed program was:" >&5
6001 cat conftest.$ac_ext >&5
6004 rm -f conftest.err conftest.$ac_ext
6005 if test $fstype = no; then
6006 cat >conftest.$ac_ext <<_ACEOF
6007 #line 6007 "configure"
6008 #include "confdefs.h"
6009 #include <sys/statfs.h>
6010 #include <sys/fstyp.h>
6011 _ACEOF
6012 if { (eval echo "$as_me:6012: \"$ac_cpp conftest.$ac_ext\"") >&5
6013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6014 ac_status=$?
6015 egrep -v '^ *\+' conftest.er1 >conftest.err
6016 rm -f conftest.er1
6017 cat conftest.err >&5
6018 echo "$as_me:6018: \$? = $ac_status" >&5
6019 (exit $ac_status); } >/dev/null; then
6020 if test -s conftest.err; then
6021 ac_cpp_err=$ac_c_preproc_warn_flag
6022 else
6023 ac_cpp_err=
6025 else
6026 ac_cpp_err=yes
6028 if test -z "$ac_cpp_err"; then
6030 cat >>confdefs.h <<\EOF
6031 #define FSTYPE_USG_STATFS 1
6033 fstype=SVR3
6034 else
6035 echo "$as_me: failed program was:" >&5
6036 cat conftest.$ac_ext >&5
6039 rm -f conftest.err conftest.$ac_ext
6041 if test $fstype = no; then
6042 cat >conftest.$ac_ext <<_ACEOF
6043 #line 6043 "configure"
6044 #include "confdefs.h"
6045 #include <sys/statfs.h>
6046 #include <sys/vmount.h>
6047 _ACEOF
6048 if { (eval echo "$as_me:6048: \"$ac_cpp conftest.$ac_ext\"") >&5
6049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6050 ac_status=$?
6051 egrep -v '^ *\+' conftest.er1 >conftest.err
6052 rm -f conftest.er1
6053 cat conftest.err >&5
6054 echo "$as_me:6054: \$? = $ac_status" >&5
6055 (exit $ac_status); } >/dev/null; then
6056 if test -s conftest.err; then
6057 ac_cpp_err=$ac_c_preproc_warn_flag
6058 else
6059 ac_cpp_err=
6061 else
6062 ac_cpp_err=yes
6064 if test -z "$ac_cpp_err"; then
6066 cat >>confdefs.h <<\EOF
6067 #define FSTYPE_AIX_STATFS 1
6069 fstype=AIX
6070 else
6071 echo "$as_me: failed program was:" >&5
6072 cat conftest.$ac_ext >&5
6075 rm -f conftest.err conftest.$ac_ext
6077 if test $fstype = no; then
6078 cat >conftest.$ac_ext <<_ACEOF
6079 #line 6079 "configure"
6080 #include "confdefs.h"
6081 #include <mntent.h>
6082 _ACEOF
6083 if { (eval echo "$as_me:6083: \"$ac_cpp conftest.$ac_ext\"") >&5
6084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6085 ac_status=$?
6086 egrep -v '^ *\+' conftest.er1 >conftest.err
6087 rm -f conftest.er1
6088 cat conftest.err >&5
6089 echo "$as_me:6089: \$? = $ac_status" >&5
6090 (exit $ac_status); } >/dev/null; then
6091 if test -s conftest.err; then
6092 ac_cpp_err=$ac_c_preproc_warn_flag
6093 else
6094 ac_cpp_err=
6096 else
6097 ac_cpp_err=yes
6099 if test -z "$ac_cpp_err"; then
6101 cat >>confdefs.h <<\EOF
6102 #define FSTYPE_MNTENT 1
6104 fstype=4.3BSD
6105 else
6106 echo "$as_me: failed program was:" >&5
6107 cat conftest.$ac_ext >&5
6110 rm -f conftest.err conftest.$ac_ext
6112 if test $fstype = no; then
6113 cat >conftest.$ac_ext <<_ACEOF
6114 #line 6114 "configure"
6115 #include "confdefs.h"
6116 #include <sys/mount.h>
6118 _ACEOF
6119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6120 egrep "f_type;" >/dev/null 2>&1; then
6122 cat >>confdefs.h <<\EOF
6123 #define FSTYPE_STATFS 1
6125 fstype=4.4BSD/OSF1
6127 rm -f conftest*
6130 if test $fstype = no; then
6131 cat >conftest.$ac_ext <<_ACEOF
6132 #line 6132 "configure"
6133 #include "confdefs.h"
6134 #include <sys/mount.h>
6135 #include <sys/fs_types.h>
6136 _ACEOF
6137 if { (eval echo "$as_me:6137: \"$ac_cpp conftest.$ac_ext\"") >&5
6138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6139 ac_status=$?
6140 egrep -v '^ *\+' conftest.er1 >conftest.err
6141 rm -f conftest.er1
6142 cat conftest.err >&5
6143 echo "$as_me:6143: \$? = $ac_status" >&5
6144 (exit $ac_status); } >/dev/null; then
6145 if test -s conftest.err; then
6146 ac_cpp_err=$ac_c_preproc_warn_flag
6147 else
6148 ac_cpp_err=
6150 else
6151 ac_cpp_err=yes
6153 if test -z "$ac_cpp_err"; then
6155 cat >>confdefs.h <<\EOF
6156 #define FSTYPE_GETMNT 1
6158 fstype=Ultrix
6159 else
6160 echo "$as_me: failed program was:" >&5
6161 cat conftest.$ac_ext >&5
6164 rm -f conftest.err conftest.$ac_ext
6166 echo "$as_me:6166: result: $fstype" >&5
6167 echo "${ECHO_T}$fstype" >&6
6169 echo "$as_me:6169: checking for uid_t in sys/types.h" >&5
6170 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
6171 if test "${ac_cv_type_uid_t+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6173 else
6174 cat >conftest.$ac_ext <<_ACEOF
6175 #line 6175 "configure"
6176 #include "confdefs.h"
6177 #include <sys/types.h>
6179 _ACEOF
6180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6181 egrep "uid_t" >/dev/null 2>&1; then
6182 ac_cv_type_uid_t=yes
6183 else
6184 ac_cv_type_uid_t=no
6186 rm -f conftest*
6189 echo "$as_me:6189: result: $ac_cv_type_uid_t" >&5
6190 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
6191 if test $ac_cv_type_uid_t = no; then
6193 cat >>confdefs.h <<\EOF
6194 #define uid_t int
6197 cat >>confdefs.h <<\EOF
6198 #define gid_t int
6203 echo "$as_me:6203: checking for size_t" >&5
6204 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6205 if test "${ac_cv_type_size_t+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
6208 cat >conftest.$ac_ext <<_ACEOF
6209 #line 6209 "configure"
6210 #include "confdefs.h"
6211 $ac_includes_default
6213 main ()
6215 if ((size_t *) 0)
6216 return 0;
6217 if (sizeof (size_t))
6218 return 0;
6220 return 0;
6222 _ACEOF
6223 rm -f conftest.$ac_objext
6224 if { (eval echo "$as_me:6224: \"$ac_compile\"") >&5
6225 (eval $ac_compile) 2>&5
6226 ac_status=$?
6227 echo "$as_me:6227: \$? = $ac_status" >&5
6228 (exit $ac_status); } &&
6229 { ac_try='test -s conftest.$ac_objext'
6230 { (eval echo "$as_me:6230: \"$ac_try\"") >&5
6231 (eval $ac_try) 2>&5
6232 ac_status=$?
6233 echo "$as_me:6233: \$? = $ac_status" >&5
6234 (exit $ac_status); }; }; then
6235 ac_cv_type_size_t=yes
6236 else
6237 echo "$as_me: failed program was:" >&5
6238 cat conftest.$ac_ext >&5
6239 ac_cv_type_size_t=no
6241 rm -f conftest.$ac_objext conftest.$ac_ext
6243 echo "$as_me:6243: result: $ac_cv_type_size_t" >&5
6244 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6245 if test $ac_cv_type_size_t = yes; then
6247 else
6249 cat >>confdefs.h <<EOF
6250 #define size_t unsigned
6255 echo "$as_me:6255: checking for ssize_t" >&5
6256 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
6257 if test "${ac_cv_type_ssize_t+set}" = set; then
6258 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 else
6260 cat >conftest.$ac_ext <<_ACEOF
6261 #line 6261 "configure"
6262 #include "confdefs.h"
6263 $ac_includes_default
6265 main ()
6267 if ((ssize_t *) 0)
6268 return 0;
6269 if (sizeof (ssize_t))
6270 return 0;
6272 return 0;
6274 _ACEOF
6275 rm -f conftest.$ac_objext
6276 if { (eval echo "$as_me:6276: \"$ac_compile\"") >&5
6277 (eval $ac_compile) 2>&5
6278 ac_status=$?
6279 echo "$as_me:6279: \$? = $ac_status" >&5
6280 (exit $ac_status); } &&
6281 { ac_try='test -s conftest.$ac_objext'
6282 { (eval echo "$as_me:6282: \"$ac_try\"") >&5
6283 (eval $ac_try) 2>&5
6284 ac_status=$?
6285 echo "$as_me:6285: \$? = $ac_status" >&5
6286 (exit $ac_status); }; }; then
6287 ac_cv_type_ssize_t=yes
6288 else
6289 echo "$as_me: failed program was:" >&5
6290 cat conftest.$ac_ext >&5
6291 ac_cv_type_ssize_t=no
6293 rm -f conftest.$ac_objext conftest.$ac_ext
6295 echo "$as_me:6295: result: $ac_cv_type_ssize_t" >&5
6296 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
6297 if test $ac_cv_type_ssize_t = yes; then
6299 else
6301 cat >>confdefs.h <<EOF
6302 #define ssize_t int
6307 echo "$as_me:6307: checking for pid_t" >&5
6308 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
6309 if test "${ac_cv_type_pid_t+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312 cat >conftest.$ac_ext <<_ACEOF
6313 #line 6313 "configure"
6314 #include "confdefs.h"
6315 $ac_includes_default
6317 main ()
6319 if ((pid_t *) 0)
6320 return 0;
6321 if (sizeof (pid_t))
6322 return 0;
6324 return 0;
6326 _ACEOF
6327 rm -f conftest.$ac_objext
6328 if { (eval echo "$as_me:6328: \"$ac_compile\"") >&5
6329 (eval $ac_compile) 2>&5
6330 ac_status=$?
6331 echo "$as_me:6331: \$? = $ac_status" >&5
6332 (exit $ac_status); } &&
6333 { ac_try='test -s conftest.$ac_objext'
6334 { (eval echo "$as_me:6334: \"$ac_try\"") >&5
6335 (eval $ac_try) 2>&5
6336 ac_status=$?
6337 echo "$as_me:6337: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
6339 ac_cv_type_pid_t=yes
6340 else
6341 echo "$as_me: failed program was:" >&5
6342 cat conftest.$ac_ext >&5
6343 ac_cv_type_pid_t=no
6345 rm -f conftest.$ac_objext conftest.$ac_ext
6347 echo "$as_me:6347: result: $ac_cv_type_pid_t" >&5
6348 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
6349 if test $ac_cv_type_pid_t = yes; then
6351 else
6353 cat >>confdefs.h <<EOF
6354 #define pid_t int
6359 echo "$as_me:6359: checking for ino_t" >&5
6360 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
6361 if test "${ac_cv_type_ino_t+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 else
6364 cat >conftest.$ac_ext <<_ACEOF
6365 #line 6365 "configure"
6366 #include "confdefs.h"
6367 $ac_includes_default
6369 main ()
6371 if ((ino_t *) 0)
6372 return 0;
6373 if (sizeof (ino_t))
6374 return 0;
6376 return 0;
6378 _ACEOF
6379 rm -f conftest.$ac_objext
6380 if { (eval echo "$as_me:6380: \"$ac_compile\"") >&5
6381 (eval $ac_compile) 2>&5
6382 ac_status=$?
6383 echo "$as_me:6383: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try='test -s conftest.$ac_objext'
6386 { (eval echo "$as_me:6386: \"$ac_try\"") >&5
6387 (eval $ac_try) 2>&5
6388 ac_status=$?
6389 echo "$as_me:6389: \$? = $ac_status" >&5
6390 (exit $ac_status); }; }; then
6391 ac_cv_type_ino_t=yes
6392 else
6393 echo "$as_me: failed program was:" >&5
6394 cat conftest.$ac_ext >&5
6395 ac_cv_type_ino_t=no
6397 rm -f conftest.$ac_objext conftest.$ac_ext
6399 echo "$as_me:6399: result: $ac_cv_type_ino_t" >&5
6400 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
6401 if test $ac_cv_type_ino_t = yes; then
6403 else
6405 cat >>confdefs.h <<EOF
6406 #define ino_t unsigned long
6411 echo "$as_me:6411: checking for dev_t" >&5
6412 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
6413 if test "${ac_cv_type_dev_t+set}" = set; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6415 else
6416 cat >conftest.$ac_ext <<_ACEOF
6417 #line 6417 "configure"
6418 #include "confdefs.h"
6419 $ac_includes_default
6421 main ()
6423 if ((dev_t *) 0)
6424 return 0;
6425 if (sizeof (dev_t))
6426 return 0;
6428 return 0;
6430 _ACEOF
6431 rm -f conftest.$ac_objext
6432 if { (eval echo "$as_me:6432: \"$ac_compile\"") >&5
6433 (eval $ac_compile) 2>&5
6434 ac_status=$?
6435 echo "$as_me:6435: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try='test -s conftest.$ac_objext'
6438 { (eval echo "$as_me:6438: \"$ac_try\"") >&5
6439 (eval $ac_try) 2>&5
6440 ac_status=$?
6441 echo "$as_me:6441: \$? = $ac_status" >&5
6442 (exit $ac_status); }; }; then
6443 ac_cv_type_dev_t=yes
6444 else
6445 echo "$as_me: failed program was:" >&5
6446 cat conftest.$ac_ext >&5
6447 ac_cv_type_dev_t=no
6449 rm -f conftest.$ac_objext conftest.$ac_ext
6451 echo "$as_me:6451: result: $ac_cv_type_dev_t" >&5
6452 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
6453 if test $ac_cv_type_dev_t = yes; then
6455 else
6457 cat >>confdefs.h <<EOF
6458 #define dev_t unsigned long
6463 echo "$as_me:6463: checking for mode_t" >&5
6464 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
6465 if test "${ac_cv_type_mode_t+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6467 else
6468 cat >conftest.$ac_ext <<_ACEOF
6469 #line 6469 "configure"
6470 #include "confdefs.h"
6471 $ac_includes_default
6473 main ()
6475 if ((mode_t *) 0)
6476 return 0;
6477 if (sizeof (mode_t))
6478 return 0;
6480 return 0;
6482 _ACEOF
6483 rm -f conftest.$ac_objext
6484 if { (eval echo "$as_me:6484: \"$ac_compile\"") >&5
6485 (eval $ac_compile) 2>&5
6486 ac_status=$?
6487 echo "$as_me:6487: \$? = $ac_status" >&5
6488 (exit $ac_status); } &&
6489 { ac_try='test -s conftest.$ac_objext'
6490 { (eval echo "$as_me:6490: \"$ac_try\"") >&5
6491 (eval $ac_try) 2>&5
6492 ac_status=$?
6493 echo "$as_me:6493: \$? = $ac_status" >&5
6494 (exit $ac_status); }; }; then
6495 ac_cv_type_mode_t=yes
6496 else
6497 echo "$as_me: failed program was:" >&5
6498 cat conftest.$ac_ext >&5
6499 ac_cv_type_mode_t=no
6501 rm -f conftest.$ac_objext conftest.$ac_ext
6503 echo "$as_me:6503: result: $ac_cv_type_mode_t" >&5
6504 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
6505 if test $ac_cv_type_mode_t = yes; then
6507 else
6509 cat >>confdefs.h <<EOF
6510 #define mode_t int
6515 if test $jm_ac_cv_header_inttypes_h = no; then
6517 test $ac_cv_type_unsigned_long_long = yes \
6518 && ac_type='unsigned long long' \
6519 || ac_type='unsigned long'
6521 cat >>confdefs.h <<EOF
6522 #define uintmax_t $ac_type
6527 echo "$as_me:6527: checking for struct stat.st_blocks" >&5
6528 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
6529 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532 cat >conftest.$ac_ext <<_ACEOF
6533 #line 6533 "configure"
6534 #include "confdefs.h"
6535 $ac_includes_default
6537 main ()
6539 struct stat foo;
6540 foo.st_blocks;
6542 return 0;
6544 _ACEOF
6545 rm -f conftest.$ac_objext
6546 if { (eval echo "$as_me:6546: \"$ac_compile\"") >&5
6547 (eval $ac_compile) 2>&5
6548 ac_status=$?
6549 echo "$as_me:6549: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try='test -s conftest.$ac_objext'
6552 { (eval echo "$as_me:6552: \"$ac_try\"") >&5
6553 (eval $ac_try) 2>&5
6554 ac_status=$?
6555 echo "$as_me:6555: \$? = $ac_status" >&5
6556 (exit $ac_status); }; }; then
6557 ac_cv_member_struct_stat_st_blocks=yes
6558 else
6559 echo "$as_me: failed program was:" >&5
6560 cat conftest.$ac_ext >&5
6561 ac_cv_member_struct_stat_st_blocks=no
6563 rm -f conftest.$ac_objext conftest.$ac_ext
6565 echo "$as_me:6565: result: $ac_cv_member_struct_stat_st_blocks" >&5
6566 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
6567 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6569 cat >>confdefs.h <<EOF
6570 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6573 cat >>confdefs.h <<\EOF
6574 #define HAVE_ST_BLOCKS 1
6577 else
6578 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6581 echo "$as_me:6581: checking for struct stat.st_rdev" >&5
6582 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
6583 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586 cat >conftest.$ac_ext <<_ACEOF
6587 #line 6587 "configure"
6588 #include "confdefs.h"
6589 $ac_includes_default
6591 main ()
6593 struct stat foo;
6594 foo.st_rdev;
6596 return 0;
6598 _ACEOF
6599 rm -f conftest.$ac_objext
6600 if { (eval echo "$as_me:6600: \"$ac_compile\"") >&5
6601 (eval $ac_compile) 2>&5
6602 ac_status=$?
6603 echo "$as_me:6603: \$? = $ac_status" >&5
6604 (exit $ac_status); } &&
6605 { ac_try='test -s conftest.$ac_objext'
6606 { (eval echo "$as_me:6606: \"$ac_try\"") >&5
6607 (eval $ac_try) 2>&5
6608 ac_status=$?
6609 echo "$as_me:6609: \$? = $ac_status" >&5
6610 (exit $ac_status); }; }; then
6611 ac_cv_member_struct_stat_st_rdev=yes
6612 else
6613 echo "$as_me: failed program was:" >&5
6614 cat conftest.$ac_ext >&5
6615 ac_cv_member_struct_stat_st_rdev=no
6617 rm -f conftest.$ac_objext conftest.$ac_ext
6619 echo "$as_me:6619: result: $ac_cv_member_struct_stat_st_rdev" >&5
6620 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
6621 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6623 cat >>confdefs.h <<EOF
6624 #define HAVE_STRUCT_STAT_ST_RDEV 1
6629 echo "$as_me:6629: checking whether struct tm is in sys/time.h or time.h" >&5
6630 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
6631 if test "${ac_cv_struct_tm+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 else
6634 cat >conftest.$ac_ext <<_ACEOF
6635 #line 6635 "configure"
6636 #include "confdefs.h"
6637 #include <sys/types.h>
6638 #include <time.h>
6641 main ()
6643 struct tm *tp; tp->tm_sec;
6645 return 0;
6647 _ACEOF
6648 rm -f conftest.$ac_objext
6649 if { (eval echo "$as_me:6649: \"$ac_compile\"") >&5
6650 (eval $ac_compile) 2>&5
6651 ac_status=$?
6652 echo "$as_me:6652: \$? = $ac_status" >&5
6653 (exit $ac_status); } &&
6654 { ac_try='test -s conftest.$ac_objext'
6655 { (eval echo "$as_me:6655: \"$ac_try\"") >&5
6656 (eval $ac_try) 2>&5
6657 ac_status=$?
6658 echo "$as_me:6658: \$? = $ac_status" >&5
6659 (exit $ac_status); }; }; then
6660 ac_cv_struct_tm=time.h
6661 else
6662 echo "$as_me: failed program was:" >&5
6663 cat conftest.$ac_ext >&5
6664 ac_cv_struct_tm=sys/time.h
6666 rm -f conftest.$ac_objext conftest.$ac_ext
6668 echo "$as_me:6668: result: $ac_cv_struct_tm" >&5
6669 echo "${ECHO_T}$ac_cv_struct_tm" >&6
6670 if test $ac_cv_struct_tm = sys/time.h; then
6672 cat >>confdefs.h <<\EOF
6673 #define TM_IN_SYS_TIME 1
6678 echo "$as_me:6678: checking for struct tm.tm_zone" >&5
6679 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
6680 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683 cat >conftest.$ac_ext <<_ACEOF
6684 #line 6684 "configure"
6685 #include "confdefs.h"
6686 #include <sys/types.h>
6687 #include <$ac_cv_struct_tm>
6690 main ()
6692 struct tm foo;
6693 foo.tm_zone;
6695 return 0;
6697 _ACEOF
6698 rm -f conftest.$ac_objext
6699 if { (eval echo "$as_me:6699: \"$ac_compile\"") >&5
6700 (eval $ac_compile) 2>&5
6701 ac_status=$?
6702 echo "$as_me:6702: \$? = $ac_status" >&5
6703 (exit $ac_status); } &&
6704 { ac_try='test -s conftest.$ac_objext'
6705 { (eval echo "$as_me:6705: \"$ac_try\"") >&5
6706 (eval $ac_try) 2>&5
6707 ac_status=$?
6708 echo "$as_me:6708: \$? = $ac_status" >&5
6709 (exit $ac_status); }; }; then
6710 ac_cv_member_struct_tm_tm_zone=yes
6711 else
6712 echo "$as_me: failed program was:" >&5
6713 cat conftest.$ac_ext >&5
6714 ac_cv_member_struct_tm_tm_zone=no
6716 rm -f conftest.$ac_objext conftest.$ac_ext
6718 echo "$as_me:6718: result: $ac_cv_member_struct_tm_tm_zone" >&5
6719 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
6720 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6722 cat >>confdefs.h <<EOF
6723 #define HAVE_STRUCT_TM_TM_ZONE 1
6728 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6730 cat >>confdefs.h <<\EOF
6731 #define HAVE_TM_ZONE 1
6734 else
6735 echo "$as_me:6735: checking for tzname" >&5
6736 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
6737 if test "${ac_cv_var_tzname+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740 cat >conftest.$ac_ext <<_ACEOF
6741 #line 6741 "configure"
6742 #include "confdefs.h"
6743 #include <time.h>
6744 #ifndef tzname /* For SGI. */
6745 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6746 #endif
6749 main ()
6751 atoi(*tzname);
6753 return 0;
6755 _ACEOF
6756 rm -f conftest.$ac_objext conftest$ac_exeext
6757 if { (eval echo "$as_me:6757: \"$ac_link\"") >&5
6758 (eval $ac_link) 2>&5
6759 ac_status=$?
6760 echo "$as_me:6760: \$? = $ac_status" >&5
6761 (exit $ac_status); } &&
6762 { ac_try='test -s conftest$ac_exeext'
6763 { (eval echo "$as_me:6763: \"$ac_try\"") >&5
6764 (eval $ac_try) 2>&5
6765 ac_status=$?
6766 echo "$as_me:6766: \$? = $ac_status" >&5
6767 (exit $ac_status); }; }; then
6768 ac_cv_var_tzname=yes
6769 else
6770 echo "$as_me: failed program was:" >&5
6771 cat conftest.$ac_ext >&5
6772 ac_cv_var_tzname=no
6774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6776 echo "$as_me:6776: result: $ac_cv_var_tzname" >&5
6777 echo "${ECHO_T}$ac_cv_var_tzname" >&6
6778 if test $ac_cv_var_tzname = yes; then
6780 cat >>confdefs.h <<\EOF
6781 #define HAVE_TZNAME 1
6787 for ac_func in strftime
6789 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6790 echo "$as_me:6790: checking for $ac_func" >&5
6791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6792 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795 cat >conftest.$ac_ext <<_ACEOF
6796 #line 6796 "configure"
6797 #include "confdefs.h"
6798 /* System header to define __stub macros and hopefully few prototypes,
6799 which can conflict with char $ac_func (); below. */
6800 #include <assert.h>
6801 /* Override any gcc2 internal prototype to avoid an error. */
6802 #ifdef __cplusplus
6803 extern "C"
6804 #endif
6805 /* We use char because int might match the return type of a gcc2
6806 builtin and then its argument prototype would still apply. */
6807 char $ac_func ();
6808 char (*f) ();
6811 main ()
6813 /* The GNU C library defines this for functions which it implements
6814 to always fail with ENOSYS. Some functions are actually named
6815 something starting with __ and the normal name is an alias. */
6816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6817 choke me
6818 #else
6819 f = $ac_func;
6820 #endif
6823 return 0;
6825 _ACEOF
6826 rm -f conftest.$ac_objext conftest$ac_exeext
6827 if { (eval echo "$as_me:6827: \"$ac_link\"") >&5
6828 (eval $ac_link) 2>&5
6829 ac_status=$?
6830 echo "$as_me:6830: \$? = $ac_status" >&5
6831 (exit $ac_status); } &&
6832 { ac_try='test -s conftest$ac_exeext'
6833 { (eval echo "$as_me:6833: \"$ac_try\"") >&5
6834 (eval $ac_try) 2>&5
6835 ac_status=$?
6836 echo "$as_me:6836: \$? = $ac_status" >&5
6837 (exit $ac_status); }; }; then
6838 eval "$ac_ac_var=yes"
6839 else
6840 echo "$as_me: failed program was:" >&5
6841 cat conftest.$ac_ext >&5
6842 eval "$ac_ac_var=no"
6844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6846 echo "$as_me:6846: result: `eval echo '${'$ac_ac_var'}'`" >&5
6847 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
6848 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6849 cat >>confdefs.h <<EOF
6850 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6853 else
6854 # strftime is in -lintl on SCO UNIX.
6855 echo "$as_me:6855: checking for strftime in -lintl" >&5
6856 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
6857 if test "${ac_cv_lib_intl_strftime+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860 ac_check_lib_save_LIBS=$LIBS
6861 LIBS="-lintl $LIBS"
6862 cat >conftest.$ac_ext <<_ACEOF
6863 #line 6863 "configure"
6864 #include "confdefs.h"
6866 /* Override any gcc2 internal prototype to avoid an error. */
6867 #ifdef __cplusplus
6868 extern "C"
6869 #endif
6870 /* We use char because int might match the return type of a gcc2
6871 builtin and then its argument prototype would still apply. */
6872 char strftime ();
6874 main ()
6876 strftime ();
6878 return 0;
6880 _ACEOF
6881 rm -f conftest.$ac_objext conftest$ac_exeext
6882 if { (eval echo "$as_me:6882: \"$ac_link\"") >&5
6883 (eval $ac_link) 2>&5
6884 ac_status=$?
6885 echo "$as_me:6885: \$? = $ac_status" >&5
6886 (exit $ac_status); } &&
6887 { ac_try='test -s conftest$ac_exeext'
6888 { (eval echo "$as_me:6888: \"$ac_try\"") >&5
6889 (eval $ac_try) 2>&5
6890 ac_status=$?
6891 echo "$as_me:6891: \$? = $ac_status" >&5
6892 (exit $ac_status); }; }; then
6893 ac_cv_lib_intl_strftime=yes
6894 else
6895 echo "$as_me: failed program was:" >&5
6896 cat conftest.$ac_ext >&5
6897 ac_cv_lib_intl_strftime=no
6899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6900 LIBS=$ac_check_lib_save_LIBS
6902 echo "$as_me:6902: result: $ac_cv_lib_intl_strftime" >&5
6903 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
6904 if test $ac_cv_lib_intl_strftime = yes; then
6905 cat >>confdefs.h <<\EOF
6906 #define HAVE_STRFTIME 1
6909 LIBS="-lintl $LIBS"
6913 done
6915 for ac_func in memcmp memset stpcpy strdup strftime strspn strstr \
6916 strtol strtoul waitpid
6918 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6919 echo "$as_me:6919: checking for $ac_func" >&5
6920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6921 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 else
6924 cat >conftest.$ac_ext <<_ACEOF
6925 #line 6925 "configure"
6926 #include "confdefs.h"
6927 /* System header to define __stub macros and hopefully few prototypes,
6928 which can conflict with char $ac_func (); below. */
6929 #include <assert.h>
6930 /* Override any gcc2 internal prototype to avoid an error. */
6931 #ifdef __cplusplus
6932 extern "C"
6933 #endif
6934 /* We use char because int might match the return type of a gcc2
6935 builtin and then its argument prototype would still apply. */
6936 char $ac_func ();
6937 char (*f) ();
6940 main ()
6942 /* The GNU C library defines this for functions which it implements
6943 to always fail with ENOSYS. Some functions are actually named
6944 something starting with __ and the normal name is an alias. */
6945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6946 choke me
6947 #else
6948 f = $ac_func;
6949 #endif
6952 return 0;
6954 _ACEOF
6955 rm -f conftest.$ac_objext conftest$ac_exeext
6956 if { (eval echo "$as_me:6956: \"$ac_link\"") >&5
6957 (eval $ac_link) 2>&5
6958 ac_status=$?
6959 echo "$as_me:6959: \$? = $ac_status" >&5
6960 (exit $ac_status); } &&
6961 { ac_try='test -s conftest$ac_exeext'
6962 { (eval echo "$as_me:6962: \"$ac_try\"") >&5
6963 (eval $ac_try) 2>&5
6964 ac_status=$?
6965 echo "$as_me:6965: \$? = $ac_status" >&5
6966 (exit $ac_status); }; }; then
6967 eval "$ac_ac_var=yes"
6968 else
6969 echo "$as_me: failed program was:" >&5
6970 cat conftest.$ac_ext >&5
6971 eval "$ac_ac_var=no"
6973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6975 echo "$as_me:6975: result: `eval echo '${'$ac_ac_var'}'`" >&5
6976 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
6977 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6978 cat >>confdefs.h <<EOF
6979 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6982 else
6983 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6985 done
6987 echo "$as_me:6987: checking whether to enable assertions" >&5
6988 echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6
6989 # Check whether --enable-assert or --disable-assert was given.
6990 if test "${enable_assert+set}" = set; then
6991 enableval="$enable_assert"
6992 echo "$as_me:6992: result: no" >&5
6993 echo "${ECHO_T}no" >&6
6995 cat >>confdefs.h <<\EOF
6996 #define NDEBUG 1
6999 else
7000 echo "$as_me:7000: result: yes" >&5
7001 echo "${ECHO_T}yes" >&6
7005 echo "$as_me:7005: checking for d_type member in directory struct" >&5
7006 echo $ECHO_N "checking for d_type member in directory struct... $ECHO_C" >&6
7007 if test "${jm_cv_struct_dirent_d_type+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 else
7010 cat >conftest.$ac_ext <<_ACEOF
7011 #line 7011 "configure"
7012 #include "confdefs.h"
7014 #include <sys/types.h>
7015 #ifdef HAVE_DIRENT_H
7016 # include <dirent.h>
7017 #else /* not HAVE_DIRENT_H */
7018 # define dirent direct
7019 # ifdef HAVE_SYS_NDIR_H
7020 # include <sys/ndir.h>
7021 # endif /* HAVE_SYS_NDIR_H */
7022 # ifdef HAVE_SYS_DIR_H
7023 # include <sys/dir.h>
7024 # endif /* HAVE_SYS_DIR_H */
7025 # ifdef HAVE_NDIR_H
7026 # include <ndir.h>
7027 # endif /* HAVE_NDIR_H */
7028 #endif /* HAVE_DIRENT_H */
7031 main ()
7033 struct dirent dp; dp.d_type = 0;
7035 return 0;
7037 _ACEOF
7038 rm -f conftest.$ac_objext conftest$ac_exeext
7039 if { (eval echo "$as_me:7039: \"$ac_link\"") >&5
7040 (eval $ac_link) 2>&5
7041 ac_status=$?
7042 echo "$as_me:7042: \$? = $ac_status" >&5
7043 (exit $ac_status); } &&
7044 { ac_try='test -s conftest$ac_exeext'
7045 { (eval echo "$as_me:7045: \"$ac_try\"") >&5
7046 (eval $ac_try) 2>&5
7047 ac_status=$?
7048 echo "$as_me:7048: \$? = $ac_status" >&5
7049 (exit $ac_status); }; }; then
7050 jm_cv_struct_dirent_d_type=yes
7051 else
7052 echo "$as_me: failed program was:" >&5
7053 cat conftest.$ac_ext >&5
7054 jm_cv_struct_dirent_d_type=no
7056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7059 echo "$as_me:7059: result: $jm_cv_struct_dirent_d_type" >&5
7060 echo "${ECHO_T}$jm_cv_struct_dirent_d_type" >&6
7061 if test $jm_cv_struct_dirent_d_type = yes; then
7063 cat >>confdefs.h <<\EOF
7064 #define D_TYPE_IN_DIRENT 1
7069 echo "$as_me:7069: checking for d_ino member in directory struct" >&5
7070 echo $ECHO_N "checking for d_ino member in directory struct... $ECHO_C" >&6
7071 if test "${jm_cv_struct_dirent_d_ino+set}" = set; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 else
7074 cat >conftest.$ac_ext <<_ACEOF
7075 #line 7075 "configure"
7076 #include "confdefs.h"
7078 #include <sys/types.h>
7079 #ifdef HAVE_DIRENT_H
7080 # include <dirent.h>
7081 #else /* not HAVE_DIRENT_H */
7082 # define dirent direct
7083 # ifdef HAVE_SYS_NDIR_H
7084 # include <sys/ndir.h>
7085 # endif /* HAVE_SYS_NDIR_H */
7086 # ifdef HAVE_SYS_DIR_H
7087 # include <sys/dir.h>
7088 # endif /* HAVE_SYS_DIR_H */
7089 # ifdef HAVE_NDIR_H
7090 # include <ndir.h>
7091 # endif /* HAVE_NDIR_H */
7092 #endif /* HAVE_DIRENT_H */
7095 main ()
7097 struct dirent dp; dp.d_ino = 0;
7099 return 0;
7101 _ACEOF
7102 rm -f conftest.$ac_objext conftest$ac_exeext
7103 if { (eval echo "$as_me:7103: \"$ac_link\"") >&5
7104 (eval $ac_link) 2>&5
7105 ac_status=$?
7106 echo "$as_me:7106: \$? = $ac_status" >&5
7107 (exit $ac_status); } &&
7108 { ac_try='test -s conftest$ac_exeext'
7109 { (eval echo "$as_me:7109: \"$ac_try\"") >&5
7110 (eval $ac_try) 2>&5
7111 ac_status=$?
7112 echo "$as_me:7112: \$? = $ac_status" >&5
7113 (exit $ac_status); }; }; then
7114 jm_cv_struct_dirent_d_ino=yes
7115 else
7116 echo "$as_me: failed program was:" >&5
7117 cat conftest.$ac_ext >&5
7118 jm_cv_struct_dirent_d_ino=no
7120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7123 echo "$as_me:7123: result: $jm_cv_struct_dirent_d_ino" >&5
7124 echo "${ECHO_T}$jm_cv_struct_dirent_d_ino" >&6
7125 if test $jm_cv_struct_dirent_d_ino = yes; then
7127 cat >>confdefs.h <<\EOF
7128 #define D_INO_IN_DIRENT 1
7133 for ac_header in memory.h string.h strings.h stdlib.h unistd.h sys/time.h \
7134 utmp.h utmpx.h
7136 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
7137 echo "$as_me:7137: checking for $ac_header" >&5
7138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7139 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 else
7142 cat >conftest.$ac_ext <<_ACEOF
7143 #line 7143 "configure"
7144 #include "confdefs.h"
7145 #include <$ac_header>
7146 _ACEOF
7147 if { (eval echo "$as_me:7147: \"$ac_cpp conftest.$ac_ext\"") >&5
7148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7149 ac_status=$?
7150 egrep -v '^ *\+' conftest.er1 >conftest.err
7151 rm -f conftest.er1
7152 cat conftest.err >&5
7153 echo "$as_me:7153: \$? = $ac_status" >&5
7154 (exit $ac_status); } >/dev/null; then
7155 if test -s conftest.err; then
7156 ac_cpp_err=$ac_c_preproc_warn_flag
7157 else
7158 ac_cpp_err=
7160 else
7161 ac_cpp_err=yes
7163 if test -z "$ac_cpp_err"; then
7164 eval "$ac_ac_Header=yes"
7165 else
7166 echo "$as_me: failed program was:" >&5
7167 cat conftest.$ac_ext >&5
7168 eval "$ac_ac_Header=no"
7170 rm -f conftest.err conftest.$ac_ext
7172 echo "$as_me:7172: result: `eval echo '${'$ac_ac_Header'}'`" >&5
7173 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
7174 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
7175 cat >>confdefs.h <<EOF
7176 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
7180 done
7182 headers='
7183 #include <stdio.h>
7184 #if HAVE_STRING_H
7185 # if !STDC_HEADERS && HAVE_MEMORY_H
7186 # include <memory.h>
7187 # endif
7188 # include <string.h>
7189 #else
7190 # if HAVE_STRINGS_H
7191 # include <strings.h>
7192 # endif
7193 #endif
7194 #if HAVE_STDLIB_H
7195 # include <stdlib.h>
7196 #endif
7197 #if HAVE_UNISTD_H
7198 # include <unistd.h>
7199 #endif
7201 #include <sys/types.h>
7202 #if TIME_WITH_SYS_TIME
7203 # include <sys/time.h>
7204 # include <time.h>
7205 #else
7206 # if HAVE_SYS_TIME_H
7207 # include <sys/time.h>
7208 # else
7209 # include <time.h>
7210 # endif
7211 #endif
7213 #if HAVE_UTMP_H
7214 # include <utmp.h>
7215 #endif
7218 echo "$as_me:7218: checking whether free is declared" >&5
7219 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
7220 if test "${ac_cv_have_decl_free+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223 cat >conftest.$ac_ext <<_ACEOF
7224 #line 7224 "configure"
7225 #include "confdefs.h"
7226 $headers
7229 main ()
7231 #ifndef free
7232 char *p = (char *) free;
7233 #endif
7236 return 0;
7238 _ACEOF
7239 rm -f conftest.$ac_objext
7240 if { (eval echo "$as_me:7240: \"$ac_compile\"") >&5
7241 (eval $ac_compile) 2>&5
7242 ac_status=$?
7243 echo "$as_me:7243: \$? = $ac_status" >&5
7244 (exit $ac_status); } &&
7245 { ac_try='test -s conftest.$ac_objext'
7246 { (eval echo "$as_me:7246: \"$ac_try\"") >&5
7247 (eval $ac_try) 2>&5
7248 ac_status=$?
7249 echo "$as_me:7249: \$? = $ac_status" >&5
7250 (exit $ac_status); }; }; then
7251 ac_cv_have_decl_free=yes
7252 else
7253 echo "$as_me: failed program was:" >&5
7254 cat conftest.$ac_ext >&5
7255 ac_cv_have_decl_free=no
7257 rm -f conftest.$ac_objext conftest.$ac_ext
7259 echo "$as_me:7259: result: $ac_cv_have_decl_free" >&5
7260 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
7261 if test $ac_cv_have_decl_free = yes; then
7263 cat >>confdefs.h <<EOF
7264 #define HAVE_DECL_FREE 1
7267 else
7268 cat >>confdefs.h <<EOF
7269 #define HAVE_DECL_FREE 0
7273 echo "$as_me:7273: checking whether getenv is declared" >&5
7274 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
7275 if test "${ac_cv_have_decl_getenv+set}" = set; then
7276 echo $ECHO_N "(cached) $ECHO_C" >&6
7277 else
7278 cat >conftest.$ac_ext <<_ACEOF
7279 #line 7279 "configure"
7280 #include "confdefs.h"
7281 $headers
7284 main ()
7286 #ifndef getenv
7287 char *p = (char *) getenv;
7288 #endif
7291 return 0;
7293 _ACEOF
7294 rm -f conftest.$ac_objext
7295 if { (eval echo "$as_me:7295: \"$ac_compile\"") >&5
7296 (eval $ac_compile) 2>&5
7297 ac_status=$?
7298 echo "$as_me:7298: \$? = $ac_status" >&5
7299 (exit $ac_status); } &&
7300 { ac_try='test -s conftest.$ac_objext'
7301 { (eval echo "$as_me:7301: \"$ac_try\"") >&5
7302 (eval $ac_try) 2>&5
7303 ac_status=$?
7304 echo "$as_me:7304: \$? = $ac_status" >&5
7305 (exit $ac_status); }; }; then
7306 ac_cv_have_decl_getenv=yes
7307 else
7308 echo "$as_me: failed program was:" >&5
7309 cat conftest.$ac_ext >&5
7310 ac_cv_have_decl_getenv=no
7312 rm -f conftest.$ac_objext conftest.$ac_ext
7314 echo "$as_me:7314: result: $ac_cv_have_decl_getenv" >&5
7315 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
7316 if test $ac_cv_have_decl_getenv = yes; then
7318 cat >>confdefs.h <<EOF
7319 #define HAVE_DECL_GETENV 1
7322 else
7323 cat >>confdefs.h <<EOF
7324 #define HAVE_DECL_GETENV 0
7328 echo "$as_me:7328: checking whether geteuid is declared" >&5
7329 echo $ECHO_N "checking whether geteuid is declared... $ECHO_C" >&6
7330 if test "${ac_cv_have_decl_geteuid+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333 cat >conftest.$ac_ext <<_ACEOF
7334 #line 7334 "configure"
7335 #include "confdefs.h"
7336 $headers
7339 main ()
7341 #ifndef geteuid
7342 char *p = (char *) geteuid;
7343 #endif
7346 return 0;
7348 _ACEOF
7349 rm -f conftest.$ac_objext
7350 if { (eval echo "$as_me:7350: \"$ac_compile\"") >&5
7351 (eval $ac_compile) 2>&5
7352 ac_status=$?
7353 echo "$as_me:7353: \$? = $ac_status" >&5
7354 (exit $ac_status); } &&
7355 { ac_try='test -s conftest.$ac_objext'
7356 { (eval echo "$as_me:7356: \"$ac_try\"") >&5
7357 (eval $ac_try) 2>&5
7358 ac_status=$?
7359 echo "$as_me:7359: \$? = $ac_status" >&5
7360 (exit $ac_status); }; }; then
7361 ac_cv_have_decl_geteuid=yes
7362 else
7363 echo "$as_me: failed program was:" >&5
7364 cat conftest.$ac_ext >&5
7365 ac_cv_have_decl_geteuid=no
7367 rm -f conftest.$ac_objext conftest.$ac_ext
7369 echo "$as_me:7369: result: $ac_cv_have_decl_geteuid" >&5
7370 echo "${ECHO_T}$ac_cv_have_decl_geteuid" >&6
7371 if test $ac_cv_have_decl_geteuid = yes; then
7373 cat >>confdefs.h <<EOF
7374 #define HAVE_DECL_GETEUID 1
7377 else
7378 cat >>confdefs.h <<EOF
7379 #define HAVE_DECL_GETEUID 0
7383 echo "$as_me:7383: checking whether getgrgid is declared" >&5
7384 echo $ECHO_N "checking whether getgrgid is declared... $ECHO_C" >&6
7385 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388 cat >conftest.$ac_ext <<_ACEOF
7389 #line 7389 "configure"
7390 #include "confdefs.h"
7391 $headers
7394 main ()
7396 #ifndef getgrgid
7397 char *p = (char *) getgrgid;
7398 #endif
7401 return 0;
7403 _ACEOF
7404 rm -f conftest.$ac_objext
7405 if { (eval echo "$as_me:7405: \"$ac_compile\"") >&5
7406 (eval $ac_compile) 2>&5
7407 ac_status=$?
7408 echo "$as_me:7408: \$? = $ac_status" >&5
7409 (exit $ac_status); } &&
7410 { ac_try='test -s conftest.$ac_objext'
7411 { (eval echo "$as_me:7411: \"$ac_try\"") >&5
7412 (eval $ac_try) 2>&5
7413 ac_status=$?
7414 echo "$as_me:7414: \$? = $ac_status" >&5
7415 (exit $ac_status); }; }; then
7416 ac_cv_have_decl_getgrgid=yes
7417 else
7418 echo "$as_me: failed program was:" >&5
7419 cat conftest.$ac_ext >&5
7420 ac_cv_have_decl_getgrgid=no
7422 rm -f conftest.$ac_objext conftest.$ac_ext
7424 echo "$as_me:7424: result: $ac_cv_have_decl_getgrgid" >&5
7425 echo "${ECHO_T}$ac_cv_have_decl_getgrgid" >&6
7426 if test $ac_cv_have_decl_getgrgid = yes; then
7428 cat >>confdefs.h <<EOF
7429 #define HAVE_DECL_GETGRGID 1
7432 else
7433 cat >>confdefs.h <<EOF
7434 #define HAVE_DECL_GETGRGID 0
7438 echo "$as_me:7438: checking whether getlogin is declared" >&5
7439 echo $ECHO_N "checking whether getlogin is declared... $ECHO_C" >&6
7440 if test "${ac_cv_have_decl_getlogin+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 else
7443 cat >conftest.$ac_ext <<_ACEOF
7444 #line 7444 "configure"
7445 #include "confdefs.h"
7446 $headers
7449 main ()
7451 #ifndef getlogin
7452 char *p = (char *) getlogin;
7453 #endif
7456 return 0;
7458 _ACEOF
7459 rm -f conftest.$ac_objext
7460 if { (eval echo "$as_me:7460: \"$ac_compile\"") >&5
7461 (eval $ac_compile) 2>&5
7462 ac_status=$?
7463 echo "$as_me:7463: \$? = $ac_status" >&5
7464 (exit $ac_status); } &&
7465 { ac_try='test -s conftest.$ac_objext'
7466 { (eval echo "$as_me:7466: \"$ac_try\"") >&5
7467 (eval $ac_try) 2>&5
7468 ac_status=$?
7469 echo "$as_me:7469: \$? = $ac_status" >&5
7470 (exit $ac_status); }; }; then
7471 ac_cv_have_decl_getlogin=yes
7472 else
7473 echo "$as_me: failed program was:" >&5
7474 cat conftest.$ac_ext >&5
7475 ac_cv_have_decl_getlogin=no
7477 rm -f conftest.$ac_objext conftest.$ac_ext
7479 echo "$as_me:7479: result: $ac_cv_have_decl_getlogin" >&5
7480 echo "${ECHO_T}$ac_cv_have_decl_getlogin" >&6
7481 if test $ac_cv_have_decl_getlogin = yes; then
7483 cat >>confdefs.h <<EOF
7484 #define HAVE_DECL_GETLOGIN 1
7487 else
7488 cat >>confdefs.h <<EOF
7489 #define HAVE_DECL_GETLOGIN 0
7493 echo "$as_me:7493: checking whether getpwuid is declared" >&5
7494 echo $ECHO_N "checking whether getpwuid is declared... $ECHO_C" >&6
7495 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7497 else
7498 cat >conftest.$ac_ext <<_ACEOF
7499 #line 7499 "configure"
7500 #include "confdefs.h"
7501 $headers
7504 main ()
7506 #ifndef getpwuid
7507 char *p = (char *) getpwuid;
7508 #endif
7511 return 0;
7513 _ACEOF
7514 rm -f conftest.$ac_objext
7515 if { (eval echo "$as_me:7515: \"$ac_compile\"") >&5
7516 (eval $ac_compile) 2>&5
7517 ac_status=$?
7518 echo "$as_me:7518: \$? = $ac_status" >&5
7519 (exit $ac_status); } &&
7520 { ac_try='test -s conftest.$ac_objext'
7521 { (eval echo "$as_me:7521: \"$ac_try\"") >&5
7522 (eval $ac_try) 2>&5
7523 ac_status=$?
7524 echo "$as_me:7524: \$? = $ac_status" >&5
7525 (exit $ac_status); }; }; then
7526 ac_cv_have_decl_getpwuid=yes
7527 else
7528 echo "$as_me: failed program was:" >&5
7529 cat conftest.$ac_ext >&5
7530 ac_cv_have_decl_getpwuid=no
7532 rm -f conftest.$ac_objext conftest.$ac_ext
7534 echo "$as_me:7534: result: $ac_cv_have_decl_getpwuid" >&5
7535 echo "${ECHO_T}$ac_cv_have_decl_getpwuid" >&6
7536 if test $ac_cv_have_decl_getpwuid = yes; then
7538 cat >>confdefs.h <<EOF
7539 #define HAVE_DECL_GETPWUID 1
7542 else
7543 cat >>confdefs.h <<EOF
7544 #define HAVE_DECL_GETPWUID 0
7548 echo "$as_me:7548: checking whether getuid is declared" >&5
7549 echo $ECHO_N "checking whether getuid is declared... $ECHO_C" >&6
7550 if test "${ac_cv_have_decl_getuid+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 else
7553 cat >conftest.$ac_ext <<_ACEOF
7554 #line 7554 "configure"
7555 #include "confdefs.h"
7556 $headers
7559 main ()
7561 #ifndef getuid
7562 char *p = (char *) getuid;
7563 #endif
7566 return 0;
7568 _ACEOF
7569 rm -f conftest.$ac_objext
7570 if { (eval echo "$as_me:7570: \"$ac_compile\"") >&5
7571 (eval $ac_compile) 2>&5
7572 ac_status=$?
7573 echo "$as_me:7573: \$? = $ac_status" >&5
7574 (exit $ac_status); } &&
7575 { ac_try='test -s conftest.$ac_objext'
7576 { (eval echo "$as_me:7576: \"$ac_try\"") >&5
7577 (eval $ac_try) 2>&5
7578 ac_status=$?
7579 echo "$as_me:7579: \$? = $ac_status" >&5
7580 (exit $ac_status); }; }; then
7581 ac_cv_have_decl_getuid=yes
7582 else
7583 echo "$as_me: failed program was:" >&5
7584 cat conftest.$ac_ext >&5
7585 ac_cv_have_decl_getuid=no
7587 rm -f conftest.$ac_objext conftest.$ac_ext
7589 echo "$as_me:7589: result: $ac_cv_have_decl_getuid" >&5
7590 echo "${ECHO_T}$ac_cv_have_decl_getuid" >&6
7591 if test $ac_cv_have_decl_getuid = yes; then
7593 cat >>confdefs.h <<EOF
7594 #define HAVE_DECL_GETUID 1
7597 else
7598 cat >>confdefs.h <<EOF
7599 #define HAVE_DECL_GETUID 0
7603 echo "$as_me:7603: checking whether getutent is declared" >&5
7604 echo $ECHO_N "checking whether getutent is declared... $ECHO_C" >&6
7605 if test "${ac_cv_have_decl_getutent+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7607 else
7608 cat >conftest.$ac_ext <<_ACEOF
7609 #line 7609 "configure"
7610 #include "confdefs.h"
7611 $headers
7614 main ()
7616 #ifndef getutent
7617 char *p = (char *) getutent;
7618 #endif
7621 return 0;
7623 _ACEOF
7624 rm -f conftest.$ac_objext
7625 if { (eval echo "$as_me:7625: \"$ac_compile\"") >&5
7626 (eval $ac_compile) 2>&5
7627 ac_status=$?
7628 echo "$as_me:7628: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try='test -s conftest.$ac_objext'
7631 { (eval echo "$as_me:7631: \"$ac_try\"") >&5
7632 (eval $ac_try) 2>&5
7633 ac_status=$?
7634 echo "$as_me:7634: \$? = $ac_status" >&5
7635 (exit $ac_status); }; }; then
7636 ac_cv_have_decl_getutent=yes
7637 else
7638 echo "$as_me: failed program was:" >&5
7639 cat conftest.$ac_ext >&5
7640 ac_cv_have_decl_getutent=no
7642 rm -f conftest.$ac_objext conftest.$ac_ext
7644 echo "$as_me:7644: result: $ac_cv_have_decl_getutent" >&5
7645 echo "${ECHO_T}$ac_cv_have_decl_getutent" >&6
7646 if test $ac_cv_have_decl_getutent = yes; then
7648 cat >>confdefs.h <<EOF
7649 #define HAVE_DECL_GETUTENT 1
7652 else
7653 cat >>confdefs.h <<EOF
7654 #define HAVE_DECL_GETUTENT 0
7658 echo "$as_me:7658: checking whether lseek is declared" >&5
7659 echo $ECHO_N "checking whether lseek is declared... $ECHO_C" >&6
7660 if test "${ac_cv_have_decl_lseek+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663 cat >conftest.$ac_ext <<_ACEOF
7664 #line 7664 "configure"
7665 #include "confdefs.h"
7666 $headers
7669 main ()
7671 #ifndef lseek
7672 char *p = (char *) lseek;
7673 #endif
7676 return 0;
7678 _ACEOF
7679 rm -f conftest.$ac_objext
7680 if { (eval echo "$as_me:7680: \"$ac_compile\"") >&5
7681 (eval $ac_compile) 2>&5
7682 ac_status=$?
7683 echo "$as_me:7683: \$? = $ac_status" >&5
7684 (exit $ac_status); } &&
7685 { ac_try='test -s conftest.$ac_objext'
7686 { (eval echo "$as_me:7686: \"$ac_try\"") >&5
7687 (eval $ac_try) 2>&5
7688 ac_status=$?
7689 echo "$as_me:7689: \$? = $ac_status" >&5
7690 (exit $ac_status); }; }; then
7691 ac_cv_have_decl_lseek=yes
7692 else
7693 echo "$as_me: failed program was:" >&5
7694 cat conftest.$ac_ext >&5
7695 ac_cv_have_decl_lseek=no
7697 rm -f conftest.$ac_objext conftest.$ac_ext
7699 echo "$as_me:7699: result: $ac_cv_have_decl_lseek" >&5
7700 echo "${ECHO_T}$ac_cv_have_decl_lseek" >&6
7701 if test $ac_cv_have_decl_lseek = yes; then
7703 cat >>confdefs.h <<EOF
7704 #define HAVE_DECL_LSEEK 1
7707 else
7708 cat >>confdefs.h <<EOF
7709 #define HAVE_DECL_LSEEK 0
7713 echo "$as_me:7713: checking whether malloc is declared" >&5
7714 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
7715 if test "${ac_cv_have_decl_malloc+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7717 else
7718 cat >conftest.$ac_ext <<_ACEOF
7719 #line 7719 "configure"
7720 #include "confdefs.h"
7721 $headers
7724 main ()
7726 #ifndef malloc
7727 char *p = (char *) malloc;
7728 #endif
7731 return 0;
7733 _ACEOF
7734 rm -f conftest.$ac_objext
7735 if { (eval echo "$as_me:7735: \"$ac_compile\"") >&5
7736 (eval $ac_compile) 2>&5
7737 ac_status=$?
7738 echo "$as_me:7738: \$? = $ac_status" >&5
7739 (exit $ac_status); } &&
7740 { ac_try='test -s conftest.$ac_objext'
7741 { (eval echo "$as_me:7741: \"$ac_try\"") >&5
7742 (eval $ac_try) 2>&5
7743 ac_status=$?
7744 echo "$as_me:7744: \$? = $ac_status" >&5
7745 (exit $ac_status); }; }; then
7746 ac_cv_have_decl_malloc=yes
7747 else
7748 echo "$as_me: failed program was:" >&5
7749 cat conftest.$ac_ext >&5
7750 ac_cv_have_decl_malloc=no
7752 rm -f conftest.$ac_objext conftest.$ac_ext
7754 echo "$as_me:7754: result: $ac_cv_have_decl_malloc" >&5
7755 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
7756 if test $ac_cv_have_decl_malloc = yes; then
7758 cat >>confdefs.h <<EOF
7759 #define HAVE_DECL_MALLOC 1
7762 else
7763 cat >>confdefs.h <<EOF
7764 #define HAVE_DECL_MALLOC 0
7768 echo "$as_me:7768: checking whether memchr is declared" >&5
7769 echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6
7770 if test "${ac_cv_have_decl_memchr+set}" = set; then
7771 echo $ECHO_N "(cached) $ECHO_C" >&6
7772 else
7773 cat >conftest.$ac_ext <<_ACEOF
7774 #line 7774 "configure"
7775 #include "confdefs.h"
7776 $headers
7779 main ()
7781 #ifndef memchr
7782 char *p = (char *) memchr;
7783 #endif
7786 return 0;
7788 _ACEOF
7789 rm -f conftest.$ac_objext
7790 if { (eval echo "$as_me:7790: \"$ac_compile\"") >&5
7791 (eval $ac_compile) 2>&5
7792 ac_status=$?
7793 echo "$as_me:7793: \$? = $ac_status" >&5
7794 (exit $ac_status); } &&
7795 { ac_try='test -s conftest.$ac_objext'
7796 { (eval echo "$as_me:7796: \"$ac_try\"") >&5
7797 (eval $ac_try) 2>&5
7798 ac_status=$?
7799 echo "$as_me:7799: \$? = $ac_status" >&5
7800 (exit $ac_status); }; }; then
7801 ac_cv_have_decl_memchr=yes
7802 else
7803 echo "$as_me: failed program was:" >&5
7804 cat conftest.$ac_ext >&5
7805 ac_cv_have_decl_memchr=no
7807 rm -f conftest.$ac_objext conftest.$ac_ext
7809 echo "$as_me:7809: result: $ac_cv_have_decl_memchr" >&5
7810 echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6
7811 if test $ac_cv_have_decl_memchr = yes; then
7813 cat >>confdefs.h <<EOF
7814 #define HAVE_DECL_MEMCHR 1
7817 else
7818 cat >>confdefs.h <<EOF
7819 #define HAVE_DECL_MEMCHR 0
7823 echo "$as_me:7823: checking whether memrchr is declared" >&5
7824 echo $ECHO_N "checking whether memrchr is declared... $ECHO_C" >&6
7825 if test "${ac_cv_have_decl_memrchr+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 else
7828 cat >conftest.$ac_ext <<_ACEOF
7829 #line 7829 "configure"
7830 #include "confdefs.h"
7831 $headers
7834 main ()
7836 #ifndef memrchr
7837 char *p = (char *) memrchr;
7838 #endif
7841 return 0;
7843 _ACEOF
7844 rm -f conftest.$ac_objext
7845 if { (eval echo "$as_me:7845: \"$ac_compile\"") >&5
7846 (eval $ac_compile) 2>&5
7847 ac_status=$?
7848 echo "$as_me:7848: \$? = $ac_status" >&5
7849 (exit $ac_status); } &&
7850 { ac_try='test -s conftest.$ac_objext'
7851 { (eval echo "$as_me:7851: \"$ac_try\"") >&5
7852 (eval $ac_try) 2>&5
7853 ac_status=$?
7854 echo "$as_me:7854: \$? = $ac_status" >&5
7855 (exit $ac_status); }; }; then
7856 ac_cv_have_decl_memrchr=yes
7857 else
7858 echo "$as_me: failed program was:" >&5
7859 cat conftest.$ac_ext >&5
7860 ac_cv_have_decl_memrchr=no
7862 rm -f conftest.$ac_objext conftest.$ac_ext
7864 echo "$as_me:7864: result: $ac_cv_have_decl_memrchr" >&5
7865 echo "${ECHO_T}$ac_cv_have_decl_memrchr" >&6
7866 if test $ac_cv_have_decl_memrchr = yes; then
7868 cat >>confdefs.h <<EOF
7869 #define HAVE_DECL_MEMRCHR 1
7872 else
7873 cat >>confdefs.h <<EOF
7874 #define HAVE_DECL_MEMRCHR 0
7878 echo "$as_me:7878: checking whether realloc is declared" >&5
7879 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
7880 if test "${ac_cv_have_decl_realloc+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7882 else
7883 cat >conftest.$ac_ext <<_ACEOF
7884 #line 7884 "configure"
7885 #include "confdefs.h"
7886 $headers
7889 main ()
7891 #ifndef realloc
7892 char *p = (char *) realloc;
7893 #endif
7896 return 0;
7898 _ACEOF
7899 rm -f conftest.$ac_objext
7900 if { (eval echo "$as_me:7900: \"$ac_compile\"") >&5
7901 (eval $ac_compile) 2>&5
7902 ac_status=$?
7903 echo "$as_me:7903: \$? = $ac_status" >&5
7904 (exit $ac_status); } &&
7905 { ac_try='test -s conftest.$ac_objext'
7906 { (eval echo "$as_me:7906: \"$ac_try\"") >&5
7907 (eval $ac_try) 2>&5
7908 ac_status=$?
7909 echo "$as_me:7909: \$? = $ac_status" >&5
7910 (exit $ac_status); }; }; then
7911 ac_cv_have_decl_realloc=yes
7912 else
7913 echo "$as_me: failed program was:" >&5
7914 cat conftest.$ac_ext >&5
7915 ac_cv_have_decl_realloc=no
7917 rm -f conftest.$ac_objext conftest.$ac_ext
7919 echo "$as_me:7919: result: $ac_cv_have_decl_realloc" >&5
7920 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
7921 if test $ac_cv_have_decl_realloc = yes; then
7923 cat >>confdefs.h <<EOF
7924 #define HAVE_DECL_REALLOC 1
7927 else
7928 cat >>confdefs.h <<EOF
7929 #define HAVE_DECL_REALLOC 0
7933 echo "$as_me:7933: checking whether stpcpy is declared" >&5
7934 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
7935 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 else
7938 cat >conftest.$ac_ext <<_ACEOF
7939 #line 7939 "configure"
7940 #include "confdefs.h"
7941 $headers
7944 main ()
7946 #ifndef stpcpy
7947 char *p = (char *) stpcpy;
7948 #endif
7951 return 0;
7953 _ACEOF
7954 rm -f conftest.$ac_objext
7955 if { (eval echo "$as_me:7955: \"$ac_compile\"") >&5
7956 (eval $ac_compile) 2>&5
7957 ac_status=$?
7958 echo "$as_me:7958: \$? = $ac_status" >&5
7959 (exit $ac_status); } &&
7960 { ac_try='test -s conftest.$ac_objext'
7961 { (eval echo "$as_me:7961: \"$ac_try\"") >&5
7962 (eval $ac_try) 2>&5
7963 ac_status=$?
7964 echo "$as_me:7964: \$? = $ac_status" >&5
7965 (exit $ac_status); }; }; then
7966 ac_cv_have_decl_stpcpy=yes
7967 else
7968 echo "$as_me: failed program was:" >&5
7969 cat conftest.$ac_ext >&5
7970 ac_cv_have_decl_stpcpy=no
7972 rm -f conftest.$ac_objext conftest.$ac_ext
7974 echo "$as_me:7974: result: $ac_cv_have_decl_stpcpy" >&5
7975 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
7976 if test $ac_cv_have_decl_stpcpy = yes; then
7978 cat >>confdefs.h <<EOF
7979 #define HAVE_DECL_STPCPY 1
7982 else
7983 cat >>confdefs.h <<EOF
7984 #define HAVE_DECL_STPCPY 0
7988 echo "$as_me:7988: checking whether strndup is declared" >&5
7989 echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6
7990 if test "${ac_cv_have_decl_strndup+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 else
7993 cat >conftest.$ac_ext <<_ACEOF
7994 #line 7994 "configure"
7995 #include "confdefs.h"
7996 $headers
7999 main ()
8001 #ifndef strndup
8002 char *p = (char *) strndup;
8003 #endif
8006 return 0;
8008 _ACEOF
8009 rm -f conftest.$ac_objext
8010 if { (eval echo "$as_me:8010: \"$ac_compile\"") >&5
8011 (eval $ac_compile) 2>&5
8012 ac_status=$?
8013 echo "$as_me:8013: \$? = $ac_status" >&5
8014 (exit $ac_status); } &&
8015 { ac_try='test -s conftest.$ac_objext'
8016 { (eval echo "$as_me:8016: \"$ac_try\"") >&5
8017 (eval $ac_try) 2>&5
8018 ac_status=$?
8019 echo "$as_me:8019: \$? = $ac_status" >&5
8020 (exit $ac_status); }; }; then
8021 ac_cv_have_decl_strndup=yes
8022 else
8023 echo "$as_me: failed program was:" >&5
8024 cat conftest.$ac_ext >&5
8025 ac_cv_have_decl_strndup=no
8027 rm -f conftest.$ac_objext conftest.$ac_ext
8029 echo "$as_me:8029: result: $ac_cv_have_decl_strndup" >&5
8030 echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6
8031 if test $ac_cv_have_decl_strndup = yes; then
8033 cat >>confdefs.h <<EOF
8034 #define HAVE_DECL_STRNDUP 1
8037 else
8038 cat >>confdefs.h <<EOF
8039 #define HAVE_DECL_STRNDUP 0
8043 echo "$as_me:8043: checking whether strnlen is declared" >&5
8044 echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6
8045 if test "${ac_cv_have_decl_strnlen+set}" = set; then
8046 echo $ECHO_N "(cached) $ECHO_C" >&6
8047 else
8048 cat >conftest.$ac_ext <<_ACEOF
8049 #line 8049 "configure"
8050 #include "confdefs.h"
8051 $headers
8054 main ()
8056 #ifndef strnlen
8057 char *p = (char *) strnlen;
8058 #endif
8061 return 0;
8063 _ACEOF
8064 rm -f conftest.$ac_objext
8065 if { (eval echo "$as_me:8065: \"$ac_compile\"") >&5
8066 (eval $ac_compile) 2>&5
8067 ac_status=$?
8068 echo "$as_me:8068: \$? = $ac_status" >&5
8069 (exit $ac_status); } &&
8070 { ac_try='test -s conftest.$ac_objext'
8071 { (eval echo "$as_me:8071: \"$ac_try\"") >&5
8072 (eval $ac_try) 2>&5
8073 ac_status=$?
8074 echo "$as_me:8074: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8076 ac_cv_have_decl_strnlen=yes
8077 else
8078 echo "$as_me: failed program was:" >&5
8079 cat conftest.$ac_ext >&5
8080 ac_cv_have_decl_strnlen=no
8082 rm -f conftest.$ac_objext conftest.$ac_ext
8084 echo "$as_me:8084: result: $ac_cv_have_decl_strnlen" >&5
8085 echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6
8086 if test $ac_cv_have_decl_strnlen = yes; then
8088 cat >>confdefs.h <<EOF
8089 #define HAVE_DECL_STRNLEN 1
8092 else
8093 cat >>confdefs.h <<EOF
8094 #define HAVE_DECL_STRNLEN 0
8098 echo "$as_me:8098: checking whether strstr is declared" >&5
8099 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
8100 if test "${ac_cv_have_decl_strstr+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8102 else
8103 cat >conftest.$ac_ext <<_ACEOF
8104 #line 8104 "configure"
8105 #include "confdefs.h"
8106 $headers
8109 main ()
8111 #ifndef strstr
8112 char *p = (char *) strstr;
8113 #endif
8116 return 0;
8118 _ACEOF
8119 rm -f conftest.$ac_objext
8120 if { (eval echo "$as_me:8120: \"$ac_compile\"") >&5
8121 (eval $ac_compile) 2>&5
8122 ac_status=$?
8123 echo "$as_me:8123: \$? = $ac_status" >&5
8124 (exit $ac_status); } &&
8125 { ac_try='test -s conftest.$ac_objext'
8126 { (eval echo "$as_me:8126: \"$ac_try\"") >&5
8127 (eval $ac_try) 2>&5
8128 ac_status=$?
8129 echo "$as_me:8129: \$? = $ac_status" >&5
8130 (exit $ac_status); }; }; then
8131 ac_cv_have_decl_strstr=yes
8132 else
8133 echo "$as_me: failed program was:" >&5
8134 cat conftest.$ac_ext >&5
8135 ac_cv_have_decl_strstr=no
8137 rm -f conftest.$ac_objext conftest.$ac_ext
8139 echo "$as_me:8139: result: $ac_cv_have_decl_strstr" >&5
8140 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
8141 if test $ac_cv_have_decl_strstr = yes; then
8143 cat >>confdefs.h <<EOF
8144 #define HAVE_DECL_STRSTR 1
8147 else
8148 cat >>confdefs.h <<EOF
8149 #define HAVE_DECL_STRSTR 0
8153 echo "$as_me:8153: checking whether strtoul is declared" >&5
8154 echo $ECHO_N "checking whether strtoul is declared... $ECHO_C" >&6
8155 if test "${ac_cv_have_decl_strtoul+set}" = set; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 else
8158 cat >conftest.$ac_ext <<_ACEOF
8159 #line 8159 "configure"
8160 #include "confdefs.h"
8161 $headers
8164 main ()
8166 #ifndef strtoul
8167 char *p = (char *) strtoul;
8168 #endif
8171 return 0;
8173 _ACEOF
8174 rm -f conftest.$ac_objext
8175 if { (eval echo "$as_me:8175: \"$ac_compile\"") >&5
8176 (eval $ac_compile) 2>&5
8177 ac_status=$?
8178 echo "$as_me:8178: \$? = $ac_status" >&5
8179 (exit $ac_status); } &&
8180 { ac_try='test -s conftest.$ac_objext'
8181 { (eval echo "$as_me:8181: \"$ac_try\"") >&5
8182 (eval $ac_try) 2>&5
8183 ac_status=$?
8184 echo "$as_me:8184: \$? = $ac_status" >&5
8185 (exit $ac_status); }; }; then
8186 ac_cv_have_decl_strtoul=yes
8187 else
8188 echo "$as_me: failed program was:" >&5
8189 cat conftest.$ac_ext >&5
8190 ac_cv_have_decl_strtoul=no
8192 rm -f conftest.$ac_objext conftest.$ac_ext
8194 echo "$as_me:8194: result: $ac_cv_have_decl_strtoul" >&5
8195 echo "${ECHO_T}$ac_cv_have_decl_strtoul" >&6
8196 if test $ac_cv_have_decl_strtoul = yes; then
8198 cat >>confdefs.h <<EOF
8199 #define HAVE_DECL_STRTOUL 1
8202 else
8203 cat >>confdefs.h <<EOF
8204 #define HAVE_DECL_STRTOUL 0
8208 echo "$as_me:8208: checking whether strtoull is declared" >&5
8209 echo $ECHO_N "checking whether strtoull is declared... $ECHO_C" >&6
8210 if test "${ac_cv_have_decl_strtoull+set}" = set; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 else
8213 cat >conftest.$ac_ext <<_ACEOF
8214 #line 8214 "configure"
8215 #include "confdefs.h"
8216 $headers
8219 main ()
8221 #ifndef strtoull
8222 char *p = (char *) strtoull;
8223 #endif
8226 return 0;
8228 _ACEOF
8229 rm -f conftest.$ac_objext
8230 if { (eval echo "$as_me:8230: \"$ac_compile\"") >&5
8231 (eval $ac_compile) 2>&5
8232 ac_status=$?
8233 echo "$as_me:8233: \$? = $ac_status" >&5
8234 (exit $ac_status); } &&
8235 { ac_try='test -s conftest.$ac_objext'
8236 { (eval echo "$as_me:8236: \"$ac_try\"") >&5
8237 (eval $ac_try) 2>&5
8238 ac_status=$?
8239 echo "$as_me:8239: \$? = $ac_status" >&5
8240 (exit $ac_status); }; }; then
8241 ac_cv_have_decl_strtoull=yes
8242 else
8243 echo "$as_me: failed program was:" >&5
8244 cat conftest.$ac_ext >&5
8245 ac_cv_have_decl_strtoull=no
8247 rm -f conftest.$ac_objext conftest.$ac_ext
8249 echo "$as_me:8249: result: $ac_cv_have_decl_strtoull" >&5
8250 echo "${ECHO_T}$ac_cv_have_decl_strtoull" >&6
8251 if test $ac_cv_have_decl_strtoull = yes; then
8253 cat >>confdefs.h <<EOF
8254 #define HAVE_DECL_STRTOULL 1
8257 else
8258 cat >>confdefs.h <<EOF
8259 #define HAVE_DECL_STRTOULL 0
8263 echo "$as_me:8263: checking whether ttyname is declared" >&5
8264 echo $ECHO_N "checking whether ttyname is declared... $ECHO_C" >&6
8265 if test "${ac_cv_have_decl_ttyname+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8267 else
8268 cat >conftest.$ac_ext <<_ACEOF
8269 #line 8269 "configure"
8270 #include "confdefs.h"
8271 $headers
8274 main ()
8276 #ifndef ttyname
8277 char *p = (char *) ttyname;
8278 #endif
8281 return 0;
8283 _ACEOF
8284 rm -f conftest.$ac_objext
8285 if { (eval echo "$as_me:8285: \"$ac_compile\"") >&5
8286 (eval $ac_compile) 2>&5
8287 ac_status=$?
8288 echo "$as_me:8288: \$? = $ac_status" >&5
8289 (exit $ac_status); } &&
8290 { ac_try='test -s conftest.$ac_objext'
8291 { (eval echo "$as_me:8291: \"$ac_try\"") >&5
8292 (eval $ac_try) 2>&5
8293 ac_status=$?
8294 echo "$as_me:8294: \$? = $ac_status" >&5
8295 (exit $ac_status); }; }; then
8296 ac_cv_have_decl_ttyname=yes
8297 else
8298 echo "$as_me: failed program was:" >&5
8299 cat conftest.$ac_ext >&5
8300 ac_cv_have_decl_ttyname=no
8302 rm -f conftest.$ac_objext conftest.$ac_ext
8304 echo "$as_me:8304: result: $ac_cv_have_decl_ttyname" >&5
8305 echo "${ECHO_T}$ac_cv_have_decl_ttyname" >&6
8306 if test $ac_cv_have_decl_ttyname = yes; then
8308 cat >>confdefs.h <<EOF
8309 #define HAVE_DECL_TTYNAME 1
8312 else
8313 cat >>confdefs.h <<EOF
8314 #define HAVE_DECL_TTYNAME 0
8319 echo "$as_me:8319: checking for long file names" >&5
8320 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8321 if test "${ac_cv_sys_long_file_names+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 else
8324 ac_cv_sys_long_file_names=yes
8325 # Test for long file names in all the places we know might matter:
8326 # . the current directory, where building will happen
8327 # $prefix/lib where we will be installing things
8328 # $exec_prefix/lib likewise
8329 # eval it to expand exec_prefix.
8330 # $TMPDIR if set, where it might want to write temporary files
8331 # if $TMPDIR is not set:
8332 # /tmp where it might want to write temporary files
8333 # /var/tmp likewise
8334 # /usr/tmp likewise
8335 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8336 ac_tmpdirs=$TMPDIR
8337 else
8338 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
8340 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8341 test -d $ac_dir || continue
8342 test -w $ac_dir || continue # It is less confusing to not echo anything here.
8343 ac_xdir=$ac_dir/cf$$
8344 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
8345 ac_tf1=$ac_xdir/conftest9012345
8346 ac_tf2=$ac_xdir/conftest9012346
8347 (echo 1 >$ac_tf1) 2>/dev/null
8348 (echo 2 >$ac_tf2) 2>/dev/null
8349 ac_val=`cat $ac_tf1 2>/dev/null`
8350 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
8351 ac_cv_sys_long_file_names=no
8352 rm -rf $ac_xdir 2>/dev/null
8353 break
8355 rm -rf $ac_xdir 2>/dev/null
8356 done
8358 echo "$as_me:8358: result: $ac_cv_sys_long_file_names" >&5
8359 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8360 if test $ac_cv_sys_long_file_names = yes; then
8362 cat >>confdefs.h <<\EOF
8363 #define HAVE_LONG_FILE_NAMES 1
8368 for ac_func in pathconf
8370 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8371 echo "$as_me:8371: checking for $ac_func" >&5
8372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8373 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8375 else
8376 cat >conftest.$ac_ext <<_ACEOF
8377 #line 8377 "configure"
8378 #include "confdefs.h"
8379 /* System header to define __stub macros and hopefully few prototypes,
8380 which can conflict with char $ac_func (); below. */
8381 #include <assert.h>
8382 /* Override any gcc2 internal prototype to avoid an error. */
8383 #ifdef __cplusplus
8384 extern "C"
8385 #endif
8386 /* We use char because int might match the return type of a gcc2
8387 builtin and then its argument prototype would still apply. */
8388 char $ac_func ();
8389 char (*f) ();
8392 main ()
8394 /* The GNU C library defines this for functions which it implements
8395 to always fail with ENOSYS. Some functions are actually named
8396 something starting with __ and the normal name is an alias. */
8397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8398 choke me
8399 #else
8400 f = $ac_func;
8401 #endif
8404 return 0;
8406 _ACEOF
8407 rm -f conftest.$ac_objext conftest$ac_exeext
8408 if { (eval echo "$as_me:8408: \"$ac_link\"") >&5
8409 (eval $ac_link) 2>&5
8410 ac_status=$?
8411 echo "$as_me:8411: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -s conftest$ac_exeext'
8414 { (eval echo "$as_me:8414: \"$ac_try\"") >&5
8415 (eval $ac_try) 2>&5
8416 ac_status=$?
8417 echo "$as_me:8417: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 eval "$ac_ac_var=yes"
8420 else
8421 echo "$as_me: failed program was:" >&5
8422 cat conftest.$ac_ext >&5
8423 eval "$ac_ac_var=no"
8425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8427 echo "$as_me:8427: result: `eval echo '${'$ac_ac_var'}'`" >&5
8428 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8429 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8430 cat >>confdefs.h <<EOF
8431 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8435 done
8437 for ac_header in limits.h string.h unistd.h
8439 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
8440 echo "$as_me:8440: checking for $ac_header" >&5
8441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8442 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8444 else
8445 cat >conftest.$ac_ext <<_ACEOF
8446 #line 8446 "configure"
8447 #include "confdefs.h"
8448 #include <$ac_header>
8449 _ACEOF
8450 if { (eval echo "$as_me:8450: \"$ac_cpp conftest.$ac_ext\"") >&5
8451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8452 ac_status=$?
8453 egrep -v '^ *\+' conftest.er1 >conftest.err
8454 rm -f conftest.er1
8455 cat conftest.err >&5
8456 echo "$as_me:8456: \$? = $ac_status" >&5
8457 (exit $ac_status); } >/dev/null; then
8458 if test -s conftest.err; then
8459 ac_cpp_err=$ac_c_preproc_warn_flag
8460 else
8461 ac_cpp_err=
8463 else
8464 ac_cpp_err=yes
8466 if test -z "$ac_cpp_err"; then
8467 eval "$ac_ac_Header=yes"
8468 else
8469 echo "$as_me: failed program was:" >&5
8470 cat conftest.$ac_ext >&5
8471 eval "$ac_ac_Header=no"
8473 rm -f conftest.err conftest.$ac_ext
8475 echo "$as_me:8475: result: `eval echo '${'$ac_ac_Header'}'`" >&5
8476 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
8477 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
8478 cat >>confdefs.h <<EOF
8479 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
8483 done
8485 echo "$as_me:8485: checking for library containing gethostbyname" >&5
8486 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
8487 if test "${ac_cv_search_gethostbyname+set}" = set; then
8488 echo $ECHO_N "(cached) $ECHO_C" >&6
8489 else
8490 ac_func_search_save_LIBS=$LIBS
8491 ac_cv_search_gethostbyname=no
8492 cat >conftest.$ac_ext <<_ACEOF
8493 #line 8493 "configure"
8494 #include "confdefs.h"
8496 /* Override any gcc2 internal prototype to avoid an error. */
8497 #ifdef __cplusplus
8498 extern "C"
8499 #endif
8500 /* We use char because int might match the return type of a gcc2
8501 builtin and then its argument prototype would still apply. */
8502 char gethostbyname ();
8504 main ()
8506 gethostbyname ();
8508 return 0;
8510 _ACEOF
8511 rm -f conftest.$ac_objext conftest$ac_exeext
8512 if { (eval echo "$as_me:8512: \"$ac_link\"") >&5
8513 (eval $ac_link) 2>&5
8514 ac_status=$?
8515 echo "$as_me:8515: \$? = $ac_status" >&5
8516 (exit $ac_status); } &&
8517 { ac_try='test -s conftest$ac_exeext'
8518 { (eval echo "$as_me:8518: \"$ac_try\"") >&5
8519 (eval $ac_try) 2>&5
8520 ac_status=$?
8521 echo "$as_me:8521: \$? = $ac_status" >&5
8522 (exit $ac_status); }; }; then
8523 ac_cv_search_gethostbyname="none required"
8524 else
8525 echo "$as_me: failed program was:" >&5
8526 cat conftest.$ac_ext >&5
8528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8529 test "$ac_cv_search_gethostbyname" = no && for ac_lib in inet nsl; do
8530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8531 cat >conftest.$ac_ext <<_ACEOF
8532 #line 8532 "configure"
8533 #include "confdefs.h"
8535 /* Override any gcc2 internal prototype to avoid an error. */
8536 #ifdef __cplusplus
8537 extern "C"
8538 #endif
8539 /* We use char because int might match the return type of a gcc2
8540 builtin and then its argument prototype would still apply. */
8541 char gethostbyname ();
8543 main ()
8545 gethostbyname ();
8547 return 0;
8549 _ACEOF
8550 rm -f conftest.$ac_objext conftest$ac_exeext
8551 if { (eval echo "$as_me:8551: \"$ac_link\"") >&5
8552 (eval $ac_link) 2>&5
8553 ac_status=$?
8554 echo "$as_me:8554: \$? = $ac_status" >&5
8555 (exit $ac_status); } &&
8556 { ac_try='test -s conftest$ac_exeext'
8557 { (eval echo "$as_me:8557: \"$ac_try\"") >&5
8558 (eval $ac_try) 2>&5
8559 ac_status=$?
8560 echo "$as_me:8560: \$? = $ac_status" >&5
8561 (exit $ac_status); }; }; then
8562 ac_cv_search_gethostbyname="-l$ac_lib"
8563 break
8564 else
8565 echo "$as_me: failed program was:" >&5
8566 cat conftest.$ac_ext >&5
8568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8569 done
8570 LIBS=$ac_func_search_save_LIBS
8572 echo "$as_me:8572: result: $ac_cv_search_gethostbyname" >&5
8573 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
8574 if test "$ac_cv_search_gethostbyname" != no; then
8575 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
8579 for ac_func in gethostbyname gethostbyaddr inet_ntoa
8581 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8582 echo "$as_me:8582: checking for $ac_func" >&5
8583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8584 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 else
8587 cat >conftest.$ac_ext <<_ACEOF
8588 #line 8588 "configure"
8589 #include "confdefs.h"
8590 /* System header to define __stub macros and hopefully few prototypes,
8591 which can conflict with char $ac_func (); below. */
8592 #include <assert.h>
8593 /* Override any gcc2 internal prototype to avoid an error. */
8594 #ifdef __cplusplus
8595 extern "C"
8596 #endif
8597 /* We use char because int might match the return type of a gcc2
8598 builtin and then its argument prototype would still apply. */
8599 char $ac_func ();
8600 char (*f) ();
8603 main ()
8605 /* The GNU C library defines this for functions which it implements
8606 to always fail with ENOSYS. Some functions are actually named
8607 something starting with __ and the normal name is an alias. */
8608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8609 choke me
8610 #else
8611 f = $ac_func;
8612 #endif
8615 return 0;
8617 _ACEOF
8618 rm -f conftest.$ac_objext conftest$ac_exeext
8619 if { (eval echo "$as_me:8619: \"$ac_link\"") >&5
8620 (eval $ac_link) 2>&5
8621 ac_status=$?
8622 echo "$as_me:8622: \$? = $ac_status" >&5
8623 (exit $ac_status); } &&
8624 { ac_try='test -s conftest$ac_exeext'
8625 { (eval echo "$as_me:8625: \"$ac_try\"") >&5
8626 (eval $ac_try) 2>&5
8627 ac_status=$?
8628 echo "$as_me:8628: \$? = $ac_status" >&5
8629 (exit $ac_status); }; }; then
8630 eval "$ac_ac_var=yes"
8631 else
8632 echo "$as_me: failed program was:" >&5
8633 cat conftest.$ac_ext >&5
8634 eval "$ac_ac_var=no"
8636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8638 echo "$as_me:8638: result: `eval echo '${'$ac_ac_var'}'`" >&5
8639 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8640 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8641 cat >>confdefs.h <<EOF
8642 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8646 done
8648 for ac_func in gethostbyname gethostbyaddr inet_ntoa
8650 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8651 echo "$as_me:8651: checking for $ac_func" >&5
8652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8653 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8654 echo $ECHO_N "(cached) $ECHO_C" >&6
8655 else
8656 cat >conftest.$ac_ext <<_ACEOF
8657 #line 8657 "configure"
8658 #include "confdefs.h"
8659 /* System header to define __stub macros and hopefully few prototypes,
8660 which can conflict with char $ac_func (); below. */
8661 #include <assert.h>
8662 /* Override any gcc2 internal prototype to avoid an error. */
8663 #ifdef __cplusplus
8664 extern "C"
8665 #endif
8666 /* We use char because int might match the return type of a gcc2
8667 builtin and then its argument prototype would still apply. */
8668 char $ac_func ();
8669 char (*f) ();
8672 main ()
8674 /* The GNU C library defines this for functions which it implements
8675 to always fail with ENOSYS. Some functions are actually named
8676 something starting with __ and the normal name is an alias. */
8677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8678 choke me
8679 #else
8680 f = $ac_func;
8681 #endif
8684 return 0;
8686 _ACEOF
8687 rm -f conftest.$ac_objext conftest$ac_exeext
8688 if { (eval echo "$as_me:8688: \"$ac_link\"") >&5
8689 (eval $ac_link) 2>&5
8690 ac_status=$?
8691 echo "$as_me:8691: \$? = $ac_status" >&5
8692 (exit $ac_status); } &&
8693 { ac_try='test -s conftest$ac_exeext'
8694 { (eval echo "$as_me:8694: \"$ac_try\"") >&5
8695 (eval $ac_try) 2>&5
8696 ac_status=$?
8697 echo "$as_me:8697: \$? = $ac_status" >&5
8698 (exit $ac_status); }; }; then
8699 eval "$ac_ac_var=yes"
8700 else
8701 echo "$as_me: failed program was:" >&5
8702 cat conftest.$ac_ext >&5
8703 eval "$ac_ac_var=no"
8705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8707 echo "$as_me:8707: result: `eval echo '${'$ac_ac_var'}'`" >&5
8708 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8709 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8710 cat >>confdefs.h <<EOF
8711 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8715 done
8717 for ac_header in unistd.h string.h netdb.h sys/socket.h \
8718 netinet/in.h arpa/inet.h
8720 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
8721 echo "$as_me:8721: checking for $ac_header" >&5
8722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8723 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
8724 echo $ECHO_N "(cached) $ECHO_C" >&6
8725 else
8726 cat >conftest.$ac_ext <<_ACEOF
8727 #line 8727 "configure"
8728 #include "confdefs.h"
8729 #include <$ac_header>
8730 _ACEOF
8731 if { (eval echo "$as_me:8731: \"$ac_cpp conftest.$ac_ext\"") >&5
8732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8733 ac_status=$?
8734 egrep -v '^ *\+' conftest.er1 >conftest.err
8735 rm -f conftest.er1
8736 cat conftest.err >&5
8737 echo "$as_me:8737: \$? = $ac_status" >&5
8738 (exit $ac_status); } >/dev/null; then
8739 if test -s conftest.err; then
8740 ac_cpp_err=$ac_c_preproc_warn_flag
8741 else
8742 ac_cpp_err=
8744 else
8745 ac_cpp_err=yes
8747 if test -z "$ac_cpp_err"; then
8748 eval "$ac_ac_Header=yes"
8749 else
8750 echo "$as_me: failed program was:" >&5
8751 cat conftest.$ac_ext >&5
8752 eval "$ac_ac_Header=no"
8754 rm -f conftest.err conftest.$ac_ext
8756 echo "$as_me:8756: result: `eval echo '${'$ac_ac_Header'}'`" >&5
8757 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
8758 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
8759 cat >>confdefs.h <<EOF
8760 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
8764 done
8766 for ac_func in strerror strerror_r vprintf doprnt
8768 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8769 echo "$as_me:8769: checking for $ac_func" >&5
8770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8771 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8773 else
8774 cat >conftest.$ac_ext <<_ACEOF
8775 #line 8775 "configure"
8776 #include "confdefs.h"
8777 /* System header to define __stub macros and hopefully few prototypes,
8778 which can conflict with char $ac_func (); below. */
8779 #include <assert.h>
8780 /* Override any gcc2 internal prototype to avoid an error. */
8781 #ifdef __cplusplus
8782 extern "C"
8783 #endif
8784 /* We use char because int might match the return type of a gcc2
8785 builtin and then its argument prototype would still apply. */
8786 char $ac_func ();
8787 char (*f) ();
8790 main ()
8792 /* The GNU C library defines this for functions which it implements
8793 to always fail with ENOSYS. Some functions are actually named
8794 something starting with __ and the normal name is an alias. */
8795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8796 choke me
8797 #else
8798 f = $ac_func;
8799 #endif
8802 return 0;
8804 _ACEOF
8805 rm -f conftest.$ac_objext conftest$ac_exeext
8806 if { (eval echo "$as_me:8806: \"$ac_link\"") >&5
8807 (eval $ac_link) 2>&5
8808 ac_status=$?
8809 echo "$as_me:8809: \$? = $ac_status" >&5
8810 (exit $ac_status); } &&
8811 { ac_try='test -s conftest$ac_exeext'
8812 { (eval echo "$as_me:8812: \"$ac_try\"") >&5
8813 (eval $ac_try) 2>&5
8814 ac_status=$?
8815 echo "$as_me:8815: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
8817 eval "$ac_ac_var=yes"
8818 else
8819 echo "$as_me: failed program was:" >&5
8820 cat conftest.$ac_ext >&5
8821 eval "$ac_ac_var=no"
8823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8825 echo "$as_me:8825: result: `eval echo '${'$ac_ac_var'}'`" >&5
8826 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8827 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8828 cat >>confdefs.h <<EOF
8829 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8833 done
8835 echo "$as_me:8835: checking for ANSI C header files" >&5
8836 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8837 if test "${ac_cv_header_stdc+set}" = set; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
8839 else
8840 cat >conftest.$ac_ext <<_ACEOF
8841 #line 8841 "configure"
8842 #include "confdefs.h"
8843 #include <stdlib.h>
8844 #include <stdarg.h>
8845 #include <string.h>
8846 #include <float.h>
8848 _ACEOF
8849 if { (eval echo "$as_me:8849: \"$ac_cpp conftest.$ac_ext\"") >&5
8850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8851 ac_status=$?
8852 egrep -v '^ *\+' conftest.er1 >conftest.err
8853 rm -f conftest.er1
8854 cat conftest.err >&5
8855 echo "$as_me:8855: \$? = $ac_status" >&5
8856 (exit $ac_status); } >/dev/null; then
8857 if test -s conftest.err; then
8858 ac_cpp_err=$ac_c_preproc_warn_flag
8859 else
8860 ac_cpp_err=
8862 else
8863 ac_cpp_err=yes
8865 if test -z "$ac_cpp_err"; then
8866 ac_cv_header_stdc=yes
8867 else
8868 echo "$as_me: failed program was:" >&5
8869 cat conftest.$ac_ext >&5
8870 ac_cv_header_stdc=no
8872 rm -f conftest.err conftest.$ac_ext
8874 if test $ac_cv_header_stdc = yes; then
8875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8876 cat >conftest.$ac_ext <<_ACEOF
8877 #line 8877 "configure"
8878 #include "confdefs.h"
8879 #include <string.h>
8881 _ACEOF
8882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8883 egrep "memchr" >/dev/null 2>&1; then
8885 else
8886 ac_cv_header_stdc=no
8888 rm -f conftest*
8892 if test $ac_cv_header_stdc = yes; then
8893 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8894 cat >conftest.$ac_ext <<_ACEOF
8895 #line 8895 "configure"
8896 #include "confdefs.h"
8897 #include <stdlib.h>
8899 _ACEOF
8900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8901 egrep "free" >/dev/null 2>&1; then
8903 else
8904 ac_cv_header_stdc=no
8906 rm -f conftest*
8910 if test $ac_cv_header_stdc = yes; then
8911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8912 if test "$cross_compiling" = yes; then
8914 else
8915 cat >conftest.$ac_ext <<_ACEOF
8916 #line 8916 "configure"
8917 #include "confdefs.h"
8918 #include <ctype.h>
8919 #if ((' ' & 0x0FF) == 0x020)
8920 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8921 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8922 #else
8923 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8924 || ('j' <= (c) && (c) <= 'r') \
8925 || ('s' <= (c) && (c) <= 'z'))
8926 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8927 #endif
8929 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8931 main ()
8933 int i;
8934 for (i = 0; i < 256; i++)
8935 if (XOR (islower (i), ISLOWER (i))
8936 || toupper (i) != TOUPPER (i))
8937 exit(2);
8938 exit (0);
8940 _ACEOF
8941 rm -f conftest$ac_exeext
8942 if { (eval echo "$as_me:8942: \"$ac_link\"") >&5
8943 (eval $ac_link) 2>&5
8944 ac_status=$?
8945 echo "$as_me:8945: \$? = $ac_status" >&5
8946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8947 { (eval echo "$as_me:8947: \"$ac_try\"") >&5
8948 (eval $ac_try) 2>&5
8949 ac_status=$?
8950 echo "$as_me:8950: \$? = $ac_status" >&5
8951 (exit $ac_status); }; }; then
8953 else
8954 echo "$as_me: program exited with status $ac_status" >&5
8955 echo "$as_me: failed program was:" >&5
8956 cat conftest.$ac_ext >&5
8957 ac_cv_header_stdc=no
8959 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
8963 echo "$as_me:8963: result: $ac_cv_header_stdc" >&5
8964 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8965 if test $ac_cv_header_stdc = yes; then
8967 cat >>confdefs.h <<\EOF
8968 #define STDC_HEADERS 1
8973 for ac_func in isascii iswprint mbrtowc
8975 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8976 echo "$as_me:8976: checking for $ac_func" >&5
8977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8978 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8979 echo $ECHO_N "(cached) $ECHO_C" >&6
8980 else
8981 cat >conftest.$ac_ext <<_ACEOF
8982 #line 8982 "configure"
8983 #include "confdefs.h"
8984 /* System header to define __stub macros and hopefully few prototypes,
8985 which can conflict with char $ac_func (); below. */
8986 #include <assert.h>
8987 /* Override any gcc2 internal prototype to avoid an error. */
8988 #ifdef __cplusplus
8989 extern "C"
8990 #endif
8991 /* We use char because int might match the return type of a gcc2
8992 builtin and then its argument prototype would still apply. */
8993 char $ac_func ();
8994 char (*f) ();
8997 main ()
8999 /* The GNU C library defines this for functions which it implements
9000 to always fail with ENOSYS. Some functions are actually named
9001 something starting with __ and the normal name is an alias. */
9002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9003 choke me
9004 #else
9005 f = $ac_func;
9006 #endif
9009 return 0;
9011 _ACEOF
9012 rm -f conftest.$ac_objext conftest$ac_exeext
9013 if { (eval echo "$as_me:9013: \"$ac_link\"") >&5
9014 (eval $ac_link) 2>&5
9015 ac_status=$?
9016 echo "$as_me:9016: \$? = $ac_status" >&5
9017 (exit $ac_status); } &&
9018 { ac_try='test -s conftest$ac_exeext'
9019 { (eval echo "$as_me:9019: \"$ac_try\"") >&5
9020 (eval $ac_try) 2>&5
9021 ac_status=$?
9022 echo "$as_me:9022: \$? = $ac_status" >&5
9023 (exit $ac_status); }; }; then
9024 eval "$ac_ac_var=yes"
9025 else
9026 echo "$as_me: failed program was:" >&5
9027 cat conftest.$ac_ext >&5
9028 eval "$ac_ac_var=no"
9030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9032 echo "$as_me:9032: result: `eval echo '${'$ac_ac_var'}'`" >&5
9033 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9034 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9035 cat >>confdefs.h <<EOF
9036 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9040 done
9042 for ac_header in limits.h stdlib.h string.h wchar.h wctype.h
9044 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9045 echo "$as_me:9045: checking for $ac_header" >&5
9046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9047 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9049 else
9050 cat >conftest.$ac_ext <<_ACEOF
9051 #line 9051 "configure"
9052 #include "confdefs.h"
9053 #include <$ac_header>
9054 _ACEOF
9055 if { (eval echo "$as_me:9055: \"$ac_cpp conftest.$ac_ext\"") >&5
9056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9057 ac_status=$?
9058 egrep -v '^ *\+' conftest.er1 >conftest.err
9059 rm -f conftest.er1
9060 cat conftest.err >&5
9061 echo "$as_me:9061: \$? = $ac_status" >&5
9062 (exit $ac_status); } >/dev/null; then
9063 if test -s conftest.err; then
9064 ac_cpp_err=$ac_c_preproc_warn_flag
9065 else
9066 ac_cpp_err=
9068 else
9069 ac_cpp_err=yes
9071 if test -z "$ac_cpp_err"; then
9072 eval "$ac_ac_Header=yes"
9073 else
9074 echo "$as_me: failed program was:" >&5
9075 cat conftest.$ac_ext >&5
9076 eval "$ac_ac_Header=no"
9078 rm -f conftest.err conftest.$ac_ext
9080 echo "$as_me:9080: result: `eval echo '${'$ac_ac_Header'}'`" >&5
9081 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
9082 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9083 cat >>confdefs.h <<EOF
9084 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9088 done
9090 echo "$as_me:9090: checking for ANSI C header files" >&5
9091 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9092 if test "${ac_cv_header_stdc+set}" = set; then
9093 echo $ECHO_N "(cached) $ECHO_C" >&6
9094 else
9095 cat >conftest.$ac_ext <<_ACEOF
9096 #line 9096 "configure"
9097 #include "confdefs.h"
9098 #include <stdlib.h>
9099 #include <stdarg.h>
9100 #include <string.h>
9101 #include <float.h>
9103 _ACEOF
9104 if { (eval echo "$as_me:9104: \"$ac_cpp conftest.$ac_ext\"") >&5
9105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9106 ac_status=$?
9107 egrep -v '^ *\+' conftest.er1 >conftest.err
9108 rm -f conftest.er1
9109 cat conftest.err >&5
9110 echo "$as_me:9110: \$? = $ac_status" >&5
9111 (exit $ac_status); } >/dev/null; then
9112 if test -s conftest.err; then
9113 ac_cpp_err=$ac_c_preproc_warn_flag
9114 else
9115 ac_cpp_err=
9117 else
9118 ac_cpp_err=yes
9120 if test -z "$ac_cpp_err"; then
9121 ac_cv_header_stdc=yes
9122 else
9123 echo "$as_me: failed program was:" >&5
9124 cat conftest.$ac_ext >&5
9125 ac_cv_header_stdc=no
9127 rm -f conftest.err conftest.$ac_ext
9129 if test $ac_cv_header_stdc = yes; then
9130 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9131 cat >conftest.$ac_ext <<_ACEOF
9132 #line 9132 "configure"
9133 #include "confdefs.h"
9134 #include <string.h>
9136 _ACEOF
9137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9138 egrep "memchr" >/dev/null 2>&1; then
9140 else
9141 ac_cv_header_stdc=no
9143 rm -f conftest*
9147 if test $ac_cv_header_stdc = yes; then
9148 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9149 cat >conftest.$ac_ext <<_ACEOF
9150 #line 9150 "configure"
9151 #include "confdefs.h"
9152 #include <stdlib.h>
9154 _ACEOF
9155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9156 egrep "free" >/dev/null 2>&1; then
9158 else
9159 ac_cv_header_stdc=no
9161 rm -f conftest*
9165 if test $ac_cv_header_stdc = yes; then
9166 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9167 if test "$cross_compiling" = yes; then
9169 else
9170 cat >conftest.$ac_ext <<_ACEOF
9171 #line 9171 "configure"
9172 #include "confdefs.h"
9173 #include <ctype.h>
9174 #if ((' ' & 0x0FF) == 0x020)
9175 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9176 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9177 #else
9178 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9179 || ('j' <= (c) && (c) <= 'r') \
9180 || ('s' <= (c) && (c) <= 'z'))
9181 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9182 #endif
9184 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9186 main ()
9188 int i;
9189 for (i = 0; i < 256; i++)
9190 if (XOR (islower (i), ISLOWER (i))
9191 || toupper (i) != TOUPPER (i))
9192 exit(2);
9193 exit (0);
9195 _ACEOF
9196 rm -f conftest$ac_exeext
9197 if { (eval echo "$as_me:9197: \"$ac_link\"") >&5
9198 (eval $ac_link) 2>&5
9199 ac_status=$?
9200 echo "$as_me:9200: \$? = $ac_status" >&5
9201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9202 { (eval echo "$as_me:9202: \"$ac_try\"") >&5
9203 (eval $ac_try) 2>&5
9204 ac_status=$?
9205 echo "$as_me:9205: \$? = $ac_status" >&5
9206 (exit $ac_status); }; }; then
9208 else
9209 echo "$as_me: program exited with status $ac_status" >&5
9210 echo "$as_me: failed program was:" >&5
9211 cat conftest.$ac_ext >&5
9212 ac_cv_header_stdc=no
9214 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
9218 echo "$as_me:9218: result: $ac_cv_header_stdc" >&5
9219 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9220 if test $ac_cv_header_stdc = yes; then
9222 cat >>confdefs.h <<\EOF
9223 #define STDC_HEADERS 1
9228 echo "$as_me:9228: checking whether backslash-a works in strings" >&5
9229 echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6
9230 if test "${ac_cv_c_backslash_a+set}" = set; then
9231 echo $ECHO_N "(cached) $ECHO_C" >&6
9232 else
9233 cat >conftest.$ac_ext <<_ACEOF
9234 #line 9234 "configure"
9235 #include "confdefs.h"
9238 main ()
9241 #if '\a' == 'a'
9242 syntax error;
9243 #endif
9244 char buf['\a' == 'a' ? -1 : 1];
9245 buf[0] = '\a';
9246 return buf[0] != "\a"[0];
9249 return 0;
9251 _ACEOF
9252 rm -f conftest.$ac_objext
9253 if { (eval echo "$as_me:9253: \"$ac_compile\"") >&5
9254 (eval $ac_compile) 2>&5
9255 ac_status=$?
9256 echo "$as_me:9256: \$? = $ac_status" >&5
9257 (exit $ac_status); } &&
9258 { ac_try='test -s conftest.$ac_objext'
9259 { (eval echo "$as_me:9259: \"$ac_try\"") >&5
9260 (eval $ac_try) 2>&5
9261 ac_status=$?
9262 echo "$as_me:9262: \$? = $ac_status" >&5
9263 (exit $ac_status); }; }; then
9264 ac_cv_c_backslash_a=yes
9265 else
9266 echo "$as_me: failed program was:" >&5
9267 cat conftest.$ac_ext >&5
9268 ac_cv_c_backslash_a=no
9270 rm -f conftest.$ac_objext conftest.$ac_ext
9272 echo "$as_me:9272: result: $ac_cv_c_backslash_a" >&5
9273 echo "${ECHO_T}$ac_cv_c_backslash_a" >&6
9274 if test $ac_cv_c_backslash_a = yes; then
9276 cat >>confdefs.h <<\EOF
9277 #define HAVE_C_BACKSLASH_A 1
9282 echo "$as_me:9282: checking for mbstate_t object type" >&5
9283 echo $ECHO_N "checking for mbstate_t object type... $ECHO_C" >&6
9284 if test "${ac_cv_type_mbstate_t_object+set}" = set; then
9285 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 else
9287 cat >conftest.$ac_ext <<_ACEOF
9288 #line 9288 "configure"
9289 #include "confdefs.h"
9290 #include <wchar.h>
9292 main ()
9294 mbstate_t x; return sizeof x;
9296 return 0;
9298 _ACEOF
9299 rm -f conftest.$ac_objext
9300 if { (eval echo "$as_me:9300: \"$ac_compile\"") >&5
9301 (eval $ac_compile) 2>&5
9302 ac_status=$?
9303 echo "$as_me:9303: \$? = $ac_status" >&5
9304 (exit $ac_status); } &&
9305 { ac_try='test -s conftest.$ac_objext'
9306 { (eval echo "$as_me:9306: \"$ac_try\"") >&5
9307 (eval $ac_try) 2>&5
9308 ac_status=$?
9309 echo "$as_me:9309: \$? = $ac_status" >&5
9310 (exit $ac_status); }; }; then
9311 ac_cv_type_mbstate_t_object=yes
9312 else
9313 echo "$as_me: failed program was:" >&5
9314 cat conftest.$ac_ext >&5
9315 ac_cv_type_mbstate_t_object=no
9317 rm -f conftest.$ac_objext conftest.$ac_ext
9319 echo "$as_me:9319: result: $ac_cv_type_mbstate_t_object" >&5
9320 echo "${ECHO_T}$ac_cv_type_mbstate_t_object" >&6
9321 if test $ac_cv_type_mbstate_t_object = yes; then
9323 cat >>confdefs.h <<\EOF
9324 #define HAVE_MBSTATE_T_OBJECT 1
9329 echo "$as_me:9329: checking for function prototypes" >&5
9330 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
9331 if test "$am_cv_prog_cc_stdc" != no; then
9332 echo "$as_me:9332: result: yes" >&5
9333 echo "${ECHO_T}yes" >&6
9335 cat >>confdefs.h <<\EOF
9336 #define PROTOTYPES 1
9339 U= ANSI2KNR=
9340 else
9341 echo "$as_me:9341: result: no" >&5
9342 echo "${ECHO_T}no" >&6
9343 U=_ ANSI2KNR=./ansi2knr
9345 # Ensure some checks needed by ansi2knr itself.
9346 echo "$as_me:9346: checking for ANSI C header files" >&5
9347 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9348 if test "${ac_cv_header_stdc+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351 cat >conftest.$ac_ext <<_ACEOF
9352 #line 9352 "configure"
9353 #include "confdefs.h"
9354 #include <stdlib.h>
9355 #include <stdarg.h>
9356 #include <string.h>
9357 #include <float.h>
9359 _ACEOF
9360 if { (eval echo "$as_me:9360: \"$ac_cpp conftest.$ac_ext\"") >&5
9361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9362 ac_status=$?
9363 egrep -v '^ *\+' conftest.er1 >conftest.err
9364 rm -f conftest.er1
9365 cat conftest.err >&5
9366 echo "$as_me:9366: \$? = $ac_status" >&5
9367 (exit $ac_status); } >/dev/null; then
9368 if test -s conftest.err; then
9369 ac_cpp_err=$ac_c_preproc_warn_flag
9370 else
9371 ac_cpp_err=
9373 else
9374 ac_cpp_err=yes
9376 if test -z "$ac_cpp_err"; then
9377 ac_cv_header_stdc=yes
9378 else
9379 echo "$as_me: failed program was:" >&5
9380 cat conftest.$ac_ext >&5
9381 ac_cv_header_stdc=no
9383 rm -f conftest.err conftest.$ac_ext
9385 if test $ac_cv_header_stdc = yes; then
9386 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9387 cat >conftest.$ac_ext <<_ACEOF
9388 #line 9388 "configure"
9389 #include "confdefs.h"
9390 #include <string.h>
9392 _ACEOF
9393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9394 egrep "memchr" >/dev/null 2>&1; then
9396 else
9397 ac_cv_header_stdc=no
9399 rm -f conftest*
9403 if test $ac_cv_header_stdc = yes; then
9404 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9405 cat >conftest.$ac_ext <<_ACEOF
9406 #line 9406 "configure"
9407 #include "confdefs.h"
9408 #include <stdlib.h>
9410 _ACEOF
9411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9412 egrep "free" >/dev/null 2>&1; then
9414 else
9415 ac_cv_header_stdc=no
9417 rm -f conftest*
9421 if test $ac_cv_header_stdc = yes; then
9422 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9423 if test "$cross_compiling" = yes; then
9425 else
9426 cat >conftest.$ac_ext <<_ACEOF
9427 #line 9427 "configure"
9428 #include "confdefs.h"
9429 #include <ctype.h>
9430 #if ((' ' & 0x0FF) == 0x020)
9431 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9432 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9433 #else
9434 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9435 || ('j' <= (c) && (c) <= 'r') \
9436 || ('s' <= (c) && (c) <= 'z'))
9437 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9438 #endif
9440 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9442 main ()
9444 int i;
9445 for (i = 0; i < 256; i++)
9446 if (XOR (islower (i), ISLOWER (i))
9447 || toupper (i) != TOUPPER (i))
9448 exit(2);
9449 exit (0);
9451 _ACEOF
9452 rm -f conftest$ac_exeext
9453 if { (eval echo "$as_me:9453: \"$ac_link\"") >&5
9454 (eval $ac_link) 2>&5
9455 ac_status=$?
9456 echo "$as_me:9456: \$? = $ac_status" >&5
9457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9458 { (eval echo "$as_me:9458: \"$ac_try\"") >&5
9459 (eval $ac_try) 2>&5
9460 ac_status=$?
9461 echo "$as_me:9461: \$? = $ac_status" >&5
9462 (exit $ac_status); }; }; then
9464 else
9465 echo "$as_me: program exited with status $ac_status" >&5
9466 echo "$as_me: failed program was:" >&5
9467 cat conftest.$ac_ext >&5
9468 ac_cv_header_stdc=no
9470 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
9474 echo "$as_me:9474: result: $ac_cv_header_stdc" >&5
9475 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9476 if test $ac_cv_header_stdc = yes; then
9478 cat >>confdefs.h <<\EOF
9479 #define STDC_HEADERS 1
9484 for ac_header in string.h
9486 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9487 echo "$as_me:9487: checking for $ac_header" >&5
9488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9489 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9490 echo $ECHO_N "(cached) $ECHO_C" >&6
9491 else
9492 cat >conftest.$ac_ext <<_ACEOF
9493 #line 9493 "configure"
9494 #include "confdefs.h"
9495 #include <$ac_header>
9496 _ACEOF
9497 if { (eval echo "$as_me:9497: \"$ac_cpp conftest.$ac_ext\"") >&5
9498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9499 ac_status=$?
9500 egrep -v '^ *\+' conftest.er1 >conftest.err
9501 rm -f conftest.er1
9502 cat conftest.err >&5
9503 echo "$as_me:9503: \$? = $ac_status" >&5
9504 (exit $ac_status); } >/dev/null; then
9505 if test -s conftest.err; then
9506 ac_cpp_err=$ac_c_preproc_warn_flag
9507 else
9508 ac_cpp_err=
9510 else
9511 ac_cpp_err=yes
9513 if test -z "$ac_cpp_err"; then
9514 eval "$ac_ac_Header=yes"
9515 else
9516 echo "$as_me: failed program was:" >&5
9517 cat conftest.$ac_ext >&5
9518 eval "$ac_ac_Header=no"
9520 rm -f conftest.err conftest.$ac_ext
9522 echo "$as_me:9522: result: `eval echo '${'$ac_ac_Header'}'`" >&5
9523 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
9524 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9525 cat >>confdefs.h <<EOF
9526 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9530 done
9532 echo "$as_me:9532: checking for ANSI C header files" >&5
9533 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9534 if test "${ac_cv_header_stdc+set}" = set; then
9535 echo $ECHO_N "(cached) $ECHO_C" >&6
9536 else
9537 cat >conftest.$ac_ext <<_ACEOF
9538 #line 9538 "configure"
9539 #include "confdefs.h"
9540 #include <stdlib.h>
9541 #include <stdarg.h>
9542 #include <string.h>
9543 #include <float.h>
9545 _ACEOF
9546 if { (eval echo "$as_me:9546: \"$ac_cpp conftest.$ac_ext\"") >&5
9547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9548 ac_status=$?
9549 egrep -v '^ *\+' conftest.er1 >conftest.err
9550 rm -f conftest.er1
9551 cat conftest.err >&5
9552 echo "$as_me:9552: \$? = $ac_status" >&5
9553 (exit $ac_status); } >/dev/null; then
9554 if test -s conftest.err; then
9555 ac_cpp_err=$ac_c_preproc_warn_flag
9556 else
9557 ac_cpp_err=
9559 else
9560 ac_cpp_err=yes
9562 if test -z "$ac_cpp_err"; then
9563 ac_cv_header_stdc=yes
9564 else
9565 echo "$as_me: failed program was:" >&5
9566 cat conftest.$ac_ext >&5
9567 ac_cv_header_stdc=no
9569 rm -f conftest.err conftest.$ac_ext
9571 if test $ac_cv_header_stdc = yes; then
9572 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9573 cat >conftest.$ac_ext <<_ACEOF
9574 #line 9574 "configure"
9575 #include "confdefs.h"
9576 #include <string.h>
9578 _ACEOF
9579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9580 egrep "memchr" >/dev/null 2>&1; then
9582 else
9583 ac_cv_header_stdc=no
9585 rm -f conftest*
9589 if test $ac_cv_header_stdc = yes; then
9590 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9591 cat >conftest.$ac_ext <<_ACEOF
9592 #line 9592 "configure"
9593 #include "confdefs.h"
9594 #include <stdlib.h>
9596 _ACEOF
9597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9598 egrep "free" >/dev/null 2>&1; then
9600 else
9601 ac_cv_header_stdc=no
9603 rm -f conftest*
9607 if test $ac_cv_header_stdc = yes; then
9608 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9609 if test "$cross_compiling" = yes; then
9611 else
9612 cat >conftest.$ac_ext <<_ACEOF
9613 #line 9613 "configure"
9614 #include "confdefs.h"
9615 #include <ctype.h>
9616 #if ((' ' & 0x0FF) == 0x020)
9617 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9618 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9619 #else
9620 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9621 || ('j' <= (c) && (c) <= 'r') \
9622 || ('s' <= (c) && (c) <= 'z'))
9623 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9624 #endif
9626 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9628 main ()
9630 int i;
9631 for (i = 0; i < 256; i++)
9632 if (XOR (islower (i), ISLOWER (i))
9633 || toupper (i) != TOUPPER (i))
9634 exit(2);
9635 exit (0);
9637 _ACEOF
9638 rm -f conftest$ac_exeext
9639 if { (eval echo "$as_me:9639: \"$ac_link\"") >&5
9640 (eval $ac_link) 2>&5
9641 ac_status=$?
9642 echo "$as_me:9642: \$? = $ac_status" >&5
9643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9644 { (eval echo "$as_me:9644: \"$ac_try\"") >&5
9645 (eval $ac_try) 2>&5
9646 ac_status=$?
9647 echo "$as_me:9647: \$? = $ac_status" >&5
9648 (exit $ac_status); }; }; then
9650 else
9651 echo "$as_me: program exited with status $ac_status" >&5
9652 echo "$as_me: failed program was:" >&5
9653 cat conftest.$ac_ext >&5
9654 ac_cv_header_stdc=no
9656 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
9660 echo "$as_me:9660: result: $ac_cv_header_stdc" >&5
9661 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9662 if test $ac_cv_header_stdc = yes; then
9664 cat >>confdefs.h <<\EOF
9665 #define STDC_HEADERS 1
9670 for ac_header in string.h utmpx.h sys/param.h
9672 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
9673 echo "$as_me:9673: checking for $ac_header" >&5
9674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9675 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 else
9678 cat >conftest.$ac_ext <<_ACEOF
9679 #line 9679 "configure"
9680 #include "confdefs.h"
9681 #include <$ac_header>
9682 _ACEOF
9683 if { (eval echo "$as_me:9683: \"$ac_cpp conftest.$ac_ext\"") >&5
9684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9685 ac_status=$?
9686 egrep -v '^ *\+' conftest.er1 >conftest.err
9687 rm -f conftest.er1
9688 cat conftest.err >&5
9689 echo "$as_me:9689: \$? = $ac_status" >&5
9690 (exit $ac_status); } >/dev/null; then
9691 if test -s conftest.err; then
9692 ac_cpp_err=$ac_c_preproc_warn_flag
9693 else
9694 ac_cpp_err=
9696 else
9697 ac_cpp_err=yes
9699 if test -z "$ac_cpp_err"; then
9700 eval "$ac_ac_Header=yes"
9701 else
9702 echo "$as_me: failed program was:" >&5
9703 cat conftest.$ac_ext >&5
9704 eval "$ac_ac_Header=no"
9706 rm -f conftest.err conftest.$ac_ext
9708 echo "$as_me:9708: result: `eval echo '${'$ac_ac_Header'}'`" >&5
9709 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
9710 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
9711 cat >>confdefs.h <<EOF
9712 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
9716 done
9718 for ac_func in utmpname
9720 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9721 echo "$as_me:9721: checking for $ac_func" >&5
9722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9723 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726 cat >conftest.$ac_ext <<_ACEOF
9727 #line 9727 "configure"
9728 #include "confdefs.h"
9729 /* System header to define __stub macros and hopefully few prototypes,
9730 which can conflict with char $ac_func (); below. */
9731 #include <assert.h>
9732 /* Override any gcc2 internal prototype to avoid an error. */
9733 #ifdef __cplusplus
9734 extern "C"
9735 #endif
9736 /* We use char because int might match the return type of a gcc2
9737 builtin and then its argument prototype would still apply. */
9738 char $ac_func ();
9739 char (*f) ();
9742 main ()
9744 /* The GNU C library defines this for functions which it implements
9745 to always fail with ENOSYS. Some functions are actually named
9746 something starting with __ and the normal name is an alias. */
9747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9748 choke me
9749 #else
9750 f = $ac_func;
9751 #endif
9754 return 0;
9756 _ACEOF
9757 rm -f conftest.$ac_objext conftest$ac_exeext
9758 if { (eval echo "$as_me:9758: \"$ac_link\"") >&5
9759 (eval $ac_link) 2>&5
9760 ac_status=$?
9761 echo "$as_me:9761: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try='test -s conftest$ac_exeext'
9764 { (eval echo "$as_me:9764: \"$ac_try\"") >&5
9765 (eval $ac_try) 2>&5
9766 ac_status=$?
9767 echo "$as_me:9767: \$? = $ac_status" >&5
9768 (exit $ac_status); }; }; then
9769 eval "$ac_ac_var=yes"
9770 else
9771 echo "$as_me: failed program was:" >&5
9772 cat conftest.$ac_ext >&5
9773 eval "$ac_ac_var=no"
9775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9777 echo "$as_me:9777: result: `eval echo '${'$ac_ac_var'}'`" >&5
9778 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9779 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9780 cat >>confdefs.h <<EOF
9781 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9785 done
9787 for ac_func in utmpxname
9789 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
9790 echo "$as_me:9790: checking for $ac_func" >&5
9791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9792 if eval "test \"\${$ac_ac_var+set}\" = set"; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9794 else
9795 cat >conftest.$ac_ext <<_ACEOF
9796 #line 9796 "configure"
9797 #include "confdefs.h"
9798 /* System header to define __stub macros and hopefully few prototypes,
9799 which can conflict with char $ac_func (); below. */
9800 #include <assert.h>
9801 /* Override any gcc2 internal prototype to avoid an error. */
9802 #ifdef __cplusplus
9803 extern "C"
9804 #endif
9805 /* We use char because int might match the return type of a gcc2
9806 builtin and then its argument prototype would still apply. */
9807 char $ac_func ();
9808 char (*f) ();
9811 main ()
9813 /* The GNU C library defines this for functions which it implements
9814 to always fail with ENOSYS. Some functions are actually named
9815 something starting with __ and the normal name is an alias. */
9816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9817 choke me
9818 #else
9819 f = $ac_func;
9820 #endif
9823 return 0;
9825 _ACEOF
9826 rm -f conftest.$ac_objext conftest$ac_exeext
9827 if { (eval echo "$as_me:9827: \"$ac_link\"") >&5
9828 (eval $ac_link) 2>&5
9829 ac_status=$?
9830 echo "$as_me:9830: \$? = $ac_status" >&5
9831 (exit $ac_status); } &&
9832 { ac_try='test -s conftest$ac_exeext'
9833 { (eval echo "$as_me:9833: \"$ac_try\"") >&5
9834 (eval $ac_try) 2>&5
9835 ac_status=$?
9836 echo "$as_me:9836: \$? = $ac_status" >&5
9837 (exit $ac_status); }; }; then
9838 eval "$ac_ac_var=yes"
9839 else
9840 echo "$as_me: failed program was:" >&5
9841 cat conftest.$ac_ext >&5
9842 eval "$ac_ac_var=no"
9844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9846 echo "$as_me:9846: result: `eval echo '${'$ac_ac_var'}'`" >&5
9847 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
9848 if test `eval echo '${'$ac_ac_var'}'` = yes; then
9849 cat >>confdefs.h <<EOF
9850 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
9854 done
9856 echo "$as_me:9856: checking for function prototypes" >&5
9857 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
9858 if test "$am_cv_prog_cc_stdc" != no; then
9859 echo "$as_me:9859: result: yes" >&5
9860 echo "${ECHO_T}yes" >&6
9862 cat >>confdefs.h <<\EOF
9863 #define PROTOTYPES 1
9866 U= ANSI2KNR=
9867 else
9868 echo "$as_me:9868: result: no" >&5
9869 echo "${ECHO_T}no" >&6
9870 U=_ ANSI2KNR=./ansi2knr
9872 # Ensure some checks needed by ansi2knr itself.
9873 echo "$as_me:9873: checking for ANSI C header files" >&5
9874 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9875 if test "${ac_cv_header_stdc+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9877 else
9878 cat >conftest.$ac_ext <<_ACEOF
9879 #line 9879 "configure"
9880 #include "confdefs.h"
9881 #include <stdlib.h>
9882 #include <stdarg.h>
9883 #include <string.h>
9884 #include <float.h>
9886 _ACEOF
9887 if { (eval echo "$as_me:9887: \"$ac_cpp conftest.$ac_ext\"") >&5
9888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9889 ac_status=$?
9890 egrep -v '^ *\+' conftest.er1 >conftest.err
9891 rm -f conftest.er1
9892 cat conftest.err >&5
9893 echo "$as_me:9893: \$? = $ac_status" >&5
9894 (exit $ac_status); } >/dev/null; then
9895 if test -s conftest.err; then
9896 ac_cpp_err=$ac_c_preproc_warn_flag
9897 else
9898 ac_cpp_err=
9900 else
9901 ac_cpp_err=yes
9903 if test -z "$ac_cpp_err"; then
9904 ac_cv_header_stdc=yes
9905 else
9906 echo "$as_me: failed program was:" >&5
9907 cat conftest.$ac_ext >&5
9908 ac_cv_header_stdc=no
9910 rm -f conftest.err conftest.$ac_ext
9912 if test $ac_cv_header_stdc = yes; then
9913 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9914 cat >conftest.$ac_ext <<_ACEOF
9915 #line 9915 "configure"
9916 #include "confdefs.h"
9917 #include <string.h>
9919 _ACEOF
9920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9921 egrep "memchr" >/dev/null 2>&1; then
9923 else
9924 ac_cv_header_stdc=no
9926 rm -f conftest*
9930 if test $ac_cv_header_stdc = yes; then
9931 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9932 cat >conftest.$ac_ext <<_ACEOF
9933 #line 9933 "configure"
9934 #include "confdefs.h"
9935 #include <stdlib.h>
9937 _ACEOF
9938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9939 egrep "free" >/dev/null 2>&1; then
9941 else
9942 ac_cv_header_stdc=no
9944 rm -f conftest*
9948 if test $ac_cv_header_stdc = yes; then
9949 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9950 if test "$cross_compiling" = yes; then
9952 else
9953 cat >conftest.$ac_ext <<_ACEOF
9954 #line 9954 "configure"
9955 #include "confdefs.h"
9956 #include <ctype.h>
9957 #if ((' ' & 0x0FF) == 0x020)
9958 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9959 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9960 #else
9961 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9962 || ('j' <= (c) && (c) <= 'r') \
9963 || ('s' <= (c) && (c) <= 'z'))
9964 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9965 #endif
9967 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9969 main ()
9971 int i;
9972 for (i = 0; i < 256; i++)
9973 if (XOR (islower (i), ISLOWER (i))
9974 || toupper (i) != TOUPPER (i))
9975 exit(2);
9976 exit (0);
9978 _ACEOF
9979 rm -f conftest$ac_exeext
9980 if { (eval echo "$as_me:9980: \"$ac_link\"") >&5
9981 (eval $ac_link) 2>&5
9982 ac_status=$?
9983 echo "$as_me:9983: \$? = $ac_status" >&5
9984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9985 { (eval echo "$as_me:9985: \"$ac_try\"") >&5
9986 (eval $ac_try) 2>&5
9987 ac_status=$?
9988 echo "$as_me:9988: \$? = $ac_status" >&5
9989 (exit $ac_status); }; }; then
9991 else
9992 echo "$as_me: program exited with status $ac_status" >&5
9993 echo "$as_me: failed program was:" >&5
9994 cat conftest.$ac_ext >&5
9995 ac_cv_header_stdc=no
9997 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
10001 echo "$as_me:10001: result: $ac_cv_header_stdc" >&5
10002 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10003 if test $ac_cv_header_stdc = yes; then
10005 cat >>confdefs.h <<\EOF
10006 #define STDC_HEADERS 1
10011 for ac_header in string.h
10013 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
10014 echo "$as_me:10014: checking for $ac_header" >&5
10015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10016 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 else
10019 cat >conftest.$ac_ext <<_ACEOF
10020 #line 10020 "configure"
10021 #include "confdefs.h"
10022 #include <$ac_header>
10023 _ACEOF
10024 if { (eval echo "$as_me:10024: \"$ac_cpp conftest.$ac_ext\"") >&5
10025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10026 ac_status=$?
10027 egrep -v '^ *\+' conftest.er1 >conftest.err
10028 rm -f conftest.er1
10029 cat conftest.err >&5
10030 echo "$as_me:10030: \$? = $ac_status" >&5
10031 (exit $ac_status); } >/dev/null; then
10032 if test -s conftest.err; then
10033 ac_cpp_err=$ac_c_preproc_warn_flag
10034 else
10035 ac_cpp_err=
10037 else
10038 ac_cpp_err=yes
10040 if test -z "$ac_cpp_err"; then
10041 eval "$ac_ac_Header=yes"
10042 else
10043 echo "$as_me: failed program was:" >&5
10044 cat conftest.$ac_ext >&5
10045 eval "$ac_ac_Header=no"
10047 rm -f conftest.err conftest.$ac_ext
10049 echo "$as_me:10049: result: `eval echo '${'$ac_ac_Header'}'`" >&5
10050 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
10051 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
10052 cat >>confdefs.h <<EOF
10053 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10057 done
10059 utmp_includes="\
10060 $ac_includes_default
10061 #ifdef HAVE_UTMPX_H
10062 # include <utmpx.h>
10063 #else
10064 # include <utmp.h>
10065 #endif
10067 echo "$as_me:10067: checking for struct utmpx.ut_user" >&5
10068 echo $ECHO_N "checking for struct utmpx.ut_user... $ECHO_C" >&6
10069 if test "${ac_cv_member_struct_utmpx_ut_user+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072 cat >conftest.$ac_ext <<_ACEOF
10073 #line 10073 "configure"
10074 #include "confdefs.h"
10075 $utmp_includes
10078 main ()
10080 struct utmpx foo;
10081 foo.ut_user;
10083 return 0;
10085 _ACEOF
10086 rm -f conftest.$ac_objext
10087 if { (eval echo "$as_me:10087: \"$ac_compile\"") >&5
10088 (eval $ac_compile) 2>&5
10089 ac_status=$?
10090 echo "$as_me:10090: \$? = $ac_status" >&5
10091 (exit $ac_status); } &&
10092 { ac_try='test -s conftest.$ac_objext'
10093 { (eval echo "$as_me:10093: \"$ac_try\"") >&5
10094 (eval $ac_try) 2>&5
10095 ac_status=$?
10096 echo "$as_me:10096: \$? = $ac_status" >&5
10097 (exit $ac_status); }; }; then
10098 ac_cv_member_struct_utmpx_ut_user=yes
10099 else
10100 echo "$as_me: failed program was:" >&5
10101 cat conftest.$ac_ext >&5
10102 ac_cv_member_struct_utmpx_ut_user=no
10104 rm -f conftest.$ac_objext conftest.$ac_ext
10106 echo "$as_me:10106: result: $ac_cv_member_struct_utmpx_ut_user" >&5
10107 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_user" >&6
10108 if test $ac_cv_member_struct_utmpx_ut_user = yes; then
10110 cat >>confdefs.h <<EOF
10111 #define HAVE_STRUCT_UTMPX_UT_USER 1
10116 echo "$as_me:10116: checking for struct utmp.ut_user" >&5
10117 echo $ECHO_N "checking for struct utmp.ut_user... $ECHO_C" >&6
10118 if test "${ac_cv_member_struct_utmp_ut_user+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 else
10121 cat >conftest.$ac_ext <<_ACEOF
10122 #line 10122 "configure"
10123 #include "confdefs.h"
10124 $utmp_includes
10127 main ()
10129 struct utmp foo;
10130 foo.ut_user;
10132 return 0;
10134 _ACEOF
10135 rm -f conftest.$ac_objext
10136 if { (eval echo "$as_me:10136: \"$ac_compile\"") >&5
10137 (eval $ac_compile) 2>&5
10138 ac_status=$?
10139 echo "$as_me:10139: \$? = $ac_status" >&5
10140 (exit $ac_status); } &&
10141 { ac_try='test -s conftest.$ac_objext'
10142 { (eval echo "$as_me:10142: \"$ac_try\"") >&5
10143 (eval $ac_try) 2>&5
10144 ac_status=$?
10145 echo "$as_me:10145: \$? = $ac_status" >&5
10146 (exit $ac_status); }; }; then
10147 ac_cv_member_struct_utmp_ut_user=yes
10148 else
10149 echo "$as_me: failed program was:" >&5
10150 cat conftest.$ac_ext >&5
10151 ac_cv_member_struct_utmp_ut_user=no
10153 rm -f conftest.$ac_objext conftest.$ac_ext
10155 echo "$as_me:10155: result: $ac_cv_member_struct_utmp_ut_user" >&5
10156 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_user" >&6
10157 if test $ac_cv_member_struct_utmp_ut_user = yes; then
10159 cat >>confdefs.h <<EOF
10160 #define HAVE_STRUCT_UTMP_UT_USER 1
10165 echo "$as_me:10165: checking for struct utmpx.ut_name" >&5
10166 echo $ECHO_N "checking for struct utmpx.ut_name... $ECHO_C" >&6
10167 if test "${ac_cv_member_struct_utmpx_ut_name+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10169 else
10170 cat >conftest.$ac_ext <<_ACEOF
10171 #line 10171 "configure"
10172 #include "confdefs.h"
10173 $utmp_includes
10176 main ()
10178 struct utmpx foo;
10179 foo.ut_name;
10181 return 0;
10183 _ACEOF
10184 rm -f conftest.$ac_objext
10185 if { (eval echo "$as_me:10185: \"$ac_compile\"") >&5
10186 (eval $ac_compile) 2>&5
10187 ac_status=$?
10188 echo "$as_me:10188: \$? = $ac_status" >&5
10189 (exit $ac_status); } &&
10190 { ac_try='test -s conftest.$ac_objext'
10191 { (eval echo "$as_me:10191: \"$ac_try\"") >&5
10192 (eval $ac_try) 2>&5
10193 ac_status=$?
10194 echo "$as_me:10194: \$? = $ac_status" >&5
10195 (exit $ac_status); }; }; then
10196 ac_cv_member_struct_utmpx_ut_name=yes
10197 else
10198 echo "$as_me: failed program was:" >&5
10199 cat conftest.$ac_ext >&5
10200 ac_cv_member_struct_utmpx_ut_name=no
10202 rm -f conftest.$ac_objext conftest.$ac_ext
10204 echo "$as_me:10204: result: $ac_cv_member_struct_utmpx_ut_name" >&5
10205 echo "${ECHO_T}$ac_cv_member_struct_utmpx_ut_name" >&6
10206 if test $ac_cv_member_struct_utmpx_ut_name = yes; then
10208 cat >>confdefs.h <<EOF
10209 #define HAVE_STRUCT_UTMPX_UT_NAME 1
10214 echo "$as_me:10214: checking for struct utmp.ut_name" >&5
10215 echo $ECHO_N "checking for struct utmp.ut_name... $ECHO_C" >&6
10216 if test "${ac_cv_member_struct_utmp_ut_name+set}" = set; then
10217 echo $ECHO_N "(cached) $ECHO_C" >&6
10218 else
10219 cat >conftest.$ac_ext <<_ACEOF
10220 #line 10220 "configure"
10221 #include "confdefs.h"
10222 $utmp_includes
10225 main ()
10227 struct utmp foo;
10228 foo.ut_name;
10230 return 0;
10232 _ACEOF
10233 rm -f conftest.$ac_objext
10234 if { (eval echo "$as_me:10234: \"$ac_compile\"") >&5
10235 (eval $ac_compile) 2>&5
10236 ac_status=$?
10237 echo "$as_me:10237: \$? = $ac_status" >&5
10238 (exit $ac_status); } &&
10239 { ac_try='test -s conftest.$ac_objext'
10240 { (eval echo "$as_me:10240: \"$ac_try\"") >&5
10241 (eval $ac_try) 2>&5
10242 ac_status=$?
10243 echo "$as_me:10243: \$? = $ac_status" >&5
10244 (exit $ac_status); }; }; then
10245 ac_cv_member_struct_utmp_ut_name=yes
10246 else
10247 echo "$as_me: failed program was:" >&5
10248 cat conftest.$ac_ext >&5
10249 ac_cv_member_struct_utmp_ut_name=no
10251 rm -f conftest.$ac_objext conftest.$ac_ext
10253 echo "$as_me:10253: result: $ac_cv_member_struct_utmp_ut_name" >&5
10254 echo "${ECHO_T}$ac_cv_member_struct_utmp_ut_name" >&6
10255 if test $ac_cv_member_struct_utmp_ut_name = yes; then
10257 cat >>confdefs.h <<EOF
10258 #define HAVE_STRUCT_UTMP_UT_NAME 1
10263 for ac_func in bzero bcopy isascii btowc
10265 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10266 echo "$as_me:10266: checking for $ac_func" >&5
10267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10268 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 else
10271 cat >conftest.$ac_ext <<_ACEOF
10272 #line 10272 "configure"
10273 #include "confdefs.h"
10274 /* System header to define __stub macros and hopefully few prototypes,
10275 which can conflict with char $ac_func (); below. */
10276 #include <assert.h>
10277 /* Override any gcc2 internal prototype to avoid an error. */
10278 #ifdef __cplusplus
10279 extern "C"
10280 #endif
10281 /* We use char because int might match the return type of a gcc2
10282 builtin and then its argument prototype would still apply. */
10283 char $ac_func ();
10284 char (*f) ();
10287 main ()
10289 /* The GNU C library defines this for functions which it implements
10290 to always fail with ENOSYS. Some functions are actually named
10291 something starting with __ and the normal name is an alias. */
10292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10293 choke me
10294 #else
10295 f = $ac_func;
10296 #endif
10299 return 0;
10301 _ACEOF
10302 rm -f conftest.$ac_objext conftest$ac_exeext
10303 if { (eval echo "$as_me:10303: \"$ac_link\"") >&5
10304 (eval $ac_link) 2>&5
10305 ac_status=$?
10306 echo "$as_me:10306: \$? = $ac_status" >&5
10307 (exit $ac_status); } &&
10308 { ac_try='test -s conftest$ac_exeext'
10309 { (eval echo "$as_me:10309: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10311 ac_status=$?
10312 echo "$as_me:10312: \$? = $ac_status" >&5
10313 (exit $ac_status); }; }; then
10314 eval "$ac_ac_var=yes"
10315 else
10316 echo "$as_me: failed program was:" >&5
10317 cat conftest.$ac_ext >&5
10318 eval "$ac_ac_var=no"
10320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10322 echo "$as_me:10322: result: `eval echo '${'$ac_ac_var'}'`" >&5
10323 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
10324 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10325 cat >>confdefs.h <<EOF
10326 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10330 done
10332 for ac_header in alloca.h libintl.h wctype.h wchar.h
10334 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
10335 echo "$as_me:10335: checking for $ac_header" >&5
10336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10337 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10339 else
10340 cat >conftest.$ac_ext <<_ACEOF
10341 #line 10341 "configure"
10342 #include "confdefs.h"
10343 #include <$ac_header>
10344 _ACEOF
10345 if { (eval echo "$as_me:10345: \"$ac_cpp conftest.$ac_ext\"") >&5
10346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10347 ac_status=$?
10348 egrep -v '^ *\+' conftest.er1 >conftest.err
10349 rm -f conftest.er1
10350 cat conftest.err >&5
10351 echo "$as_me:10351: \$? = $ac_status" >&5
10352 (exit $ac_status); } >/dev/null; then
10353 if test -s conftest.err; then
10354 ac_cpp_err=$ac_c_preproc_warn_flag
10355 else
10356 ac_cpp_err=
10358 else
10359 ac_cpp_err=yes
10361 if test -z "$ac_cpp_err"; then
10362 eval "$ac_ac_Header=yes"
10363 else
10364 echo "$as_me: failed program was:" >&5
10365 cat conftest.$ac_ext >&5
10366 eval "$ac_ac_Header=no"
10368 rm -f conftest.err conftest.$ac_ext
10370 echo "$as_me:10370: result: `eval echo '${'$ac_ac_Header'}'`" >&5
10371 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
10372 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
10373 cat >>confdefs.h <<EOF
10374 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10378 done
10380 echo "$as_me:10380: checking for ANSI C header files" >&5
10381 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10382 if test "${ac_cv_header_stdc+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10384 else
10385 cat >conftest.$ac_ext <<_ACEOF
10386 #line 10386 "configure"
10387 #include "confdefs.h"
10388 #include <stdlib.h>
10389 #include <stdarg.h>
10390 #include <string.h>
10391 #include <float.h>
10393 _ACEOF
10394 if { (eval echo "$as_me:10394: \"$ac_cpp conftest.$ac_ext\"") >&5
10395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10396 ac_status=$?
10397 egrep -v '^ *\+' conftest.er1 >conftest.err
10398 rm -f conftest.er1
10399 cat conftest.err >&5
10400 echo "$as_me:10400: \$? = $ac_status" >&5
10401 (exit $ac_status); } >/dev/null; then
10402 if test -s conftest.err; then
10403 ac_cpp_err=$ac_c_preproc_warn_flag
10404 else
10405 ac_cpp_err=
10407 else
10408 ac_cpp_err=yes
10410 if test -z "$ac_cpp_err"; then
10411 ac_cv_header_stdc=yes
10412 else
10413 echo "$as_me: failed program was:" >&5
10414 cat conftest.$ac_ext >&5
10415 ac_cv_header_stdc=no
10417 rm -f conftest.err conftest.$ac_ext
10419 if test $ac_cv_header_stdc = yes; then
10420 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10421 cat >conftest.$ac_ext <<_ACEOF
10422 #line 10422 "configure"
10423 #include "confdefs.h"
10424 #include <string.h>
10426 _ACEOF
10427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10428 egrep "memchr" >/dev/null 2>&1; then
10430 else
10431 ac_cv_header_stdc=no
10433 rm -f conftest*
10437 if test $ac_cv_header_stdc = yes; then
10438 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10439 cat >conftest.$ac_ext <<_ACEOF
10440 #line 10440 "configure"
10441 #include "confdefs.h"
10442 #include <stdlib.h>
10444 _ACEOF
10445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10446 egrep "free" >/dev/null 2>&1; then
10448 else
10449 ac_cv_header_stdc=no
10451 rm -f conftest*
10455 if test $ac_cv_header_stdc = yes; then
10456 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10457 if test "$cross_compiling" = yes; then
10459 else
10460 cat >conftest.$ac_ext <<_ACEOF
10461 #line 10461 "configure"
10462 #include "confdefs.h"
10463 #include <ctype.h>
10464 #if ((' ' & 0x0FF) == 0x020)
10465 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10466 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10467 #else
10468 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10469 || ('j' <= (c) && (c) <= 'r') \
10470 || ('s' <= (c) && (c) <= 'z'))
10471 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10472 #endif
10474 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10476 main ()
10478 int i;
10479 for (i = 0; i < 256; i++)
10480 if (XOR (islower (i), ISLOWER (i))
10481 || toupper (i) != TOUPPER (i))
10482 exit(2);
10483 exit (0);
10485 _ACEOF
10486 rm -f conftest$ac_exeext
10487 if { (eval echo "$as_me:10487: \"$ac_link\"") >&5
10488 (eval $ac_link) 2>&5
10489 ac_status=$?
10490 echo "$as_me:10490: \$? = $ac_status" >&5
10491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10492 { (eval echo "$as_me:10492: \"$ac_try\"") >&5
10493 (eval $ac_try) 2>&5
10494 ac_status=$?
10495 echo "$as_me:10495: \$? = $ac_status" >&5
10496 (exit $ac_status); }; }; then
10498 else
10499 echo "$as_me: program exited with status $ac_status" >&5
10500 echo "$as_me: failed program was:" >&5
10501 cat conftest.$ac_ext >&5
10502 ac_cv_header_stdc=no
10504 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
10508 echo "$as_me:10508: result: $ac_cv_header_stdc" >&5
10509 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10510 if test $ac_cv_header_stdc = yes; then
10512 cat >>confdefs.h <<\EOF
10513 #define STDC_HEADERS 1
10518 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10519 # for constant arguments. Useless!
10520 echo "$as_me:10520: checking for working alloca.h" >&5
10521 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10522 if test "${ac_cv_working_alloca_h+set}" = set; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
10524 else
10525 cat >conftest.$ac_ext <<_ACEOF
10526 #line 10526 "configure"
10527 #include "confdefs.h"
10528 #include <alloca.h>
10530 main ()
10532 char *p = (char *) alloca (2 * sizeof (int));
10534 return 0;
10536 _ACEOF
10537 rm -f conftest.$ac_objext conftest$ac_exeext
10538 if { (eval echo "$as_me:10538: \"$ac_link\"") >&5
10539 (eval $ac_link) 2>&5
10540 ac_status=$?
10541 echo "$as_me:10541: \$? = $ac_status" >&5
10542 (exit $ac_status); } &&
10543 { ac_try='test -s conftest$ac_exeext'
10544 { (eval echo "$as_me:10544: \"$ac_try\"") >&5
10545 (eval $ac_try) 2>&5
10546 ac_status=$?
10547 echo "$as_me:10547: \$? = $ac_status" >&5
10548 (exit $ac_status); }; }; then
10549 ac_cv_working_alloca_h=yes
10550 else
10551 echo "$as_me: failed program was:" >&5
10552 cat conftest.$ac_ext >&5
10553 ac_cv_working_alloca_h=no
10555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10557 echo "$as_me:10557: result: $ac_cv_working_alloca_h" >&5
10558 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10559 if test $ac_cv_working_alloca_h = yes; then
10561 cat >>confdefs.h <<\EOF
10562 #define HAVE_ALLOCA_H 1
10567 echo "$as_me:10567: checking for alloca" >&5
10568 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10569 if test "${ac_cv_func_alloca_works+set}" = set; then
10570 echo $ECHO_N "(cached) $ECHO_C" >&6
10571 else
10572 cat >conftest.$ac_ext <<_ACEOF
10573 #line 10573 "configure"
10574 #include "confdefs.h"
10575 #ifdef __GNUC__
10576 # define alloca __builtin_alloca
10577 #else
10578 # ifdef _MSC_VER
10579 # include <malloc.h>
10580 # define alloca _alloca
10581 # else
10582 # if HAVE_ALLOCA_H
10583 # include <alloca.h>
10584 # else
10585 # ifdef _AIX
10586 #pragma alloca
10587 # else
10588 # ifndef alloca /* predefined by HP cc +Olibcalls */
10589 char *alloca ();
10590 # endif
10591 # endif
10592 # endif
10593 # endif
10594 #endif
10597 main ()
10599 char *p = (char *) alloca (1);
10601 return 0;
10603 _ACEOF
10604 rm -f conftest.$ac_objext conftest$ac_exeext
10605 if { (eval echo "$as_me:10605: \"$ac_link\"") >&5
10606 (eval $ac_link) 2>&5
10607 ac_status=$?
10608 echo "$as_me:10608: \$? = $ac_status" >&5
10609 (exit $ac_status); } &&
10610 { ac_try='test -s conftest$ac_exeext'
10611 { (eval echo "$as_me:10611: \"$ac_try\"") >&5
10612 (eval $ac_try) 2>&5
10613 ac_status=$?
10614 echo "$as_me:10614: \$? = $ac_status" >&5
10615 (exit $ac_status); }; }; then
10616 ac_cv_func_alloca_works=yes
10617 else
10618 echo "$as_me: failed program was:" >&5
10619 cat conftest.$ac_ext >&5
10620 ac_cv_func_alloca_works=no
10622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10624 echo "$as_me:10624: result: $ac_cv_func_alloca_works" >&5
10625 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10627 if test $ac_cv_func_alloca_works = yes; then
10629 cat >>confdefs.h <<\EOF
10630 #define HAVE_ALLOCA 1
10633 else
10634 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10635 # that cause trouble. Some versions do not even contain alloca or
10636 # contain a buggy version. If you still want to use their alloca,
10637 # use ar to extract alloca.o from them instead of compiling alloca.c.
10639 ALLOCA=alloca.$ac_objext
10641 cat >>confdefs.h <<\EOF
10642 #define C_ALLOCA 1
10645 echo "$as_me:10645: checking whether \`alloca.c' needs Cray hooks" >&5
10646 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10647 if test "${ac_cv_os_cray+set}" = set; then
10648 echo $ECHO_N "(cached) $ECHO_C" >&6
10649 else
10650 cat >conftest.$ac_ext <<_ACEOF
10651 #line 10651 "configure"
10652 #include "confdefs.h"
10653 #if defined(CRAY) && ! defined(CRAY2)
10654 webecray
10655 #else
10656 wenotbecray
10657 #endif
10659 _ACEOF
10660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10661 egrep "webecray" >/dev/null 2>&1; then
10662 ac_cv_os_cray=yes
10663 else
10664 ac_cv_os_cray=no
10666 rm -f conftest*
10669 echo "$as_me:10669: result: $ac_cv_os_cray" >&5
10670 echo "${ECHO_T}$ac_cv_os_cray" >&6
10671 if test $ac_cv_os_cray = yes; then
10672 for ac_func in _getb67 GETB67 getb67; do
10673 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10674 echo "$as_me:10674: checking for $ac_func" >&5
10675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10676 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10678 else
10679 cat >conftest.$ac_ext <<_ACEOF
10680 #line 10680 "configure"
10681 #include "confdefs.h"
10682 /* System header to define __stub macros and hopefully few prototypes,
10683 which can conflict with char $ac_func (); below. */
10684 #include <assert.h>
10685 /* Override any gcc2 internal prototype to avoid an error. */
10686 #ifdef __cplusplus
10687 extern "C"
10688 #endif
10689 /* We use char because int might match the return type of a gcc2
10690 builtin and then its argument prototype would still apply. */
10691 char $ac_func ();
10692 char (*f) ();
10695 main ()
10697 /* The GNU C library defines this for functions which it implements
10698 to always fail with ENOSYS. Some functions are actually named
10699 something starting with __ and the normal name is an alias. */
10700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10701 choke me
10702 #else
10703 f = $ac_func;
10704 #endif
10707 return 0;
10709 _ACEOF
10710 rm -f conftest.$ac_objext conftest$ac_exeext
10711 if { (eval echo "$as_me:10711: \"$ac_link\"") >&5
10712 (eval $ac_link) 2>&5
10713 ac_status=$?
10714 echo "$as_me:10714: \$? = $ac_status" >&5
10715 (exit $ac_status); } &&
10716 { ac_try='test -s conftest$ac_exeext'
10717 { (eval echo "$as_me:10717: \"$ac_try\"") >&5
10718 (eval $ac_try) 2>&5
10719 ac_status=$?
10720 echo "$as_me:10720: \$? = $ac_status" >&5
10721 (exit $ac_status); }; }; then
10722 eval "$ac_ac_var=yes"
10723 else
10724 echo "$as_me: failed program was:" >&5
10725 cat conftest.$ac_ext >&5
10726 eval "$ac_ac_var=no"
10728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10730 echo "$as_me:10730: result: `eval echo '${'$ac_ac_var'}'`" >&5
10731 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
10732 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10734 cat >>confdefs.h <<EOF
10735 #define CRAY_STACKSEG_END $ac_func
10738 break
10741 done
10744 echo "$as_me:10744: checking stack direction for C alloca" >&5
10745 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10746 if test "${ac_cv_c_stack_direction+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10748 else
10749 if test "$cross_compiling" = yes; then
10750 ac_cv_c_stack_direction=0
10751 else
10752 cat >conftest.$ac_ext <<_ACEOF
10753 #line 10753 "configure"
10754 #include "confdefs.h"
10756 find_stack_direction ()
10758 static char *addr = 0;
10759 auto char dummy;
10760 if (addr == 0)
10762 addr = &dummy;
10763 return find_stack_direction ();
10765 else
10766 return (&dummy > addr) ? 1 : -1;
10770 main ()
10772 exit (find_stack_direction () < 0);
10774 _ACEOF
10775 rm -f conftest$ac_exeext
10776 if { (eval echo "$as_me:10776: \"$ac_link\"") >&5
10777 (eval $ac_link) 2>&5
10778 ac_status=$?
10779 echo "$as_me:10779: \$? = $ac_status" >&5
10780 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10781 { (eval echo "$as_me:10781: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10783 ac_status=$?
10784 echo "$as_me:10784: \$? = $ac_status" >&5
10785 (exit $ac_status); }; }; then
10786 ac_cv_c_stack_direction=1
10787 else
10788 echo "$as_me: program exited with status $ac_status" >&5
10789 echo "$as_me: failed program was:" >&5
10790 cat conftest.$ac_ext >&5
10791 ac_cv_c_stack_direction=-1
10793 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
10796 echo "$as_me:10796: result: $ac_cv_c_stack_direction" >&5
10797 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
10799 cat >>confdefs.h <<EOF
10800 #define STACK_DIRECTION $ac_cv_c_stack_direction
10805 for ac_header in sys/time.h unistd.h
10807 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
10808 echo "$as_me:10808: checking for $ac_header" >&5
10809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10810 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10812 else
10813 cat >conftest.$ac_ext <<_ACEOF
10814 #line 10814 "configure"
10815 #include "confdefs.h"
10816 #include <$ac_header>
10817 _ACEOF
10818 if { (eval echo "$as_me:10818: \"$ac_cpp conftest.$ac_ext\"") >&5
10819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10820 ac_status=$?
10821 egrep -v '^ *\+' conftest.er1 >conftest.err
10822 rm -f conftest.er1
10823 cat conftest.err >&5
10824 echo "$as_me:10824: \$? = $ac_status" >&5
10825 (exit $ac_status); } >/dev/null; then
10826 if test -s conftest.err; then
10827 ac_cpp_err=$ac_c_preproc_warn_flag
10828 else
10829 ac_cpp_err=
10831 else
10832 ac_cpp_err=yes
10834 if test -z "$ac_cpp_err"; then
10835 eval "$ac_ac_Header=yes"
10836 else
10837 echo "$as_me: failed program was:" >&5
10838 cat conftest.$ac_ext >&5
10839 eval "$ac_ac_Header=no"
10841 rm -f conftest.err conftest.$ac_ext
10843 echo "$as_me:10843: result: `eval echo '${'$ac_ac_Header'}'`" >&5
10844 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
10845 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
10846 cat >>confdefs.h <<EOF
10847 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
10851 done
10853 for ac_func in alarm
10855 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
10856 echo "$as_me:10856: checking for $ac_func" >&5
10857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10858 if eval "test \"\${$ac_ac_var+set}\" = set"; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10860 else
10861 cat >conftest.$ac_ext <<_ACEOF
10862 #line 10862 "configure"
10863 #include "confdefs.h"
10864 /* System header to define __stub macros and hopefully few prototypes,
10865 which can conflict with char $ac_func (); below. */
10866 #include <assert.h>
10867 /* Override any gcc2 internal prototype to avoid an error. */
10868 #ifdef __cplusplus
10869 extern "C"
10870 #endif
10871 /* We use char because int might match the return type of a gcc2
10872 builtin and then its argument prototype would still apply. */
10873 char $ac_func ();
10874 char (*f) ();
10877 main ()
10879 /* The GNU C library defines this for functions which it implements
10880 to always fail with ENOSYS. Some functions are actually named
10881 something starting with __ and the normal name is an alias. */
10882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10883 choke me
10884 #else
10885 f = $ac_func;
10886 #endif
10889 return 0;
10891 _ACEOF
10892 rm -f conftest.$ac_objext conftest$ac_exeext
10893 if { (eval echo "$as_me:10893: \"$ac_link\"") >&5
10894 (eval $ac_link) 2>&5
10895 ac_status=$?
10896 echo "$as_me:10896: \$? = $ac_status" >&5
10897 (exit $ac_status); } &&
10898 { ac_try='test -s conftest$ac_exeext'
10899 { (eval echo "$as_me:10899: \"$ac_try\"") >&5
10900 (eval $ac_try) 2>&5
10901 ac_status=$?
10902 echo "$as_me:10902: \$? = $ac_status" >&5
10903 (exit $ac_status); }; }; then
10904 eval "$ac_ac_var=yes"
10905 else
10906 echo "$as_me: failed program was:" >&5
10907 cat conftest.$ac_ext >&5
10908 eval "$ac_ac_var=no"
10910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10912 echo "$as_me:10912: result: `eval echo '${'$ac_ac_var'}'`" >&5
10913 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
10914 if test `eval echo '${'$ac_ac_var'}'` = yes; then
10915 cat >>confdefs.h <<EOF
10916 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
10920 done
10922 echo "$as_me:10922: checking for working mktime" >&5
10923 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
10924 if test "${ac_cv_func_working_mktime+set}" = set; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10926 else
10927 if test "$cross_compiling" = yes; then
10928 ac_cv_func_working_mktime=no
10929 else
10930 cat >conftest.$ac_ext <<_ACEOF
10931 #line 10931 "configure"
10932 #include "confdefs.h"
10933 /* Test program from Paul Eggert and Tony Leneis. */
10934 #if TIME_WITH_SYS_TIME
10935 # include <sys/time.h>
10936 # include <time.h>
10937 #else
10938 # if HAVE_SYS_TIME_H
10939 # include <sys/time.h>
10940 # else
10941 # include <time.h>
10942 # endif
10943 #endif
10945 #if HAVE_UNISTD_H
10946 # include <unistd.h>
10947 #endif
10949 #if !HAVE_ALARM
10950 # define alarm(X) /* empty */
10951 #endif
10953 /* Work around redefinition to rpl_putenv by other config tests. */
10954 #undef putenv
10956 static time_t time_t_max;
10958 /* Values we'll use to set the TZ environment variable. */
10959 static const char *const tz_strings[] = {
10960 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10961 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10963 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10965 /* Fail if mktime fails to convert a date in the spring-forward gap.
10966 Based on a problem report from Andreas Jaeger. */
10967 static void
10968 spring_forward_gap ()
10970 /* glibc (up to about 1998-10-07) failed this test. */
10971 struct tm tm;
10973 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10974 instead of "TZ=America/Vancouver" in order to detect the bug even
10975 on systems that don't support the Olson extension, or don't have the
10976 full zoneinfo tables installed. */
10977 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10979 tm.tm_year = 98;
10980 tm.tm_mon = 3;
10981 tm.tm_mday = 5;
10982 tm.tm_hour = 2;
10983 tm.tm_min = 0;
10984 tm.tm_sec = 0;
10985 tm.tm_isdst = -1;
10986 if (mktime (&tm) == (time_t)-1)
10987 exit (1);
10990 static void
10991 mktime_test (now)
10992 time_t now;
10994 struct tm *lt;
10995 if ((lt = localtime (&now)) && mktime (lt) != now)
10996 exit (1);
10997 now = time_t_max - now;
10998 if ((lt = localtime (&now)) && mktime (lt) != now)
10999 exit (1);
11002 static void
11003 irix_6_4_bug ()
11005 /* Based on code from Ariel Faigon. */
11006 struct tm tm;
11007 tm.tm_year = 96;
11008 tm.tm_mon = 3;
11009 tm.tm_mday = 0;
11010 tm.tm_hour = 0;
11011 tm.tm_min = 0;
11012 tm.tm_sec = 0;
11013 tm.tm_isdst = -1;
11014 mktime (&tm);
11015 if (tm.tm_mon != 2 || tm.tm_mday != 31)
11016 exit (1);
11019 static void
11020 bigtime_test (j)
11021 int j;
11023 struct tm tm;
11024 time_t now;
11025 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11026 now = mktime (&tm);
11027 if (now != (time_t) -1)
11029 struct tm *lt = localtime (&now);
11030 if (! (lt
11031 && lt->tm_year == tm.tm_year
11032 && lt->tm_mon == tm.tm_mon
11033 && lt->tm_mday == tm.tm_mday
11034 && lt->tm_hour == tm.tm_hour
11035 && lt->tm_min == tm.tm_min
11036 && lt->tm_sec == tm.tm_sec
11037 && lt->tm_yday == tm.tm_yday
11038 && lt->tm_wday == tm.tm_wday
11039 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11040 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11041 exit (1);
11046 main ()
11048 time_t t, delta;
11049 int i, j;
11051 /* This test makes some buggy mktime implementations loop.
11052 Give up after 60 seconds; a mktime slower than that
11053 isn't worth using anyway. */
11054 alarm (60);
11056 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11057 continue;
11058 time_t_max--;
11059 delta = time_t_max / 997; /* a suitable prime number */
11060 for (i = 0; i < N_STRINGS; i++)
11062 if (tz_strings[i])
11063 putenv (tz_strings[i]);
11065 for (t = 0; t <= time_t_max - delta; t += delta)
11066 mktime_test (t);
11067 mktime_test ((time_t) 60 * 60);
11068 mktime_test ((time_t) 60 * 60 * 24);
11070 for (j = 1; 0 < j; j *= 2)
11071 bigtime_test (j);
11072 bigtime_test (j - 1);
11074 irix_6_4_bug ();
11075 spring_forward_gap ();
11076 exit (0);
11078 _ACEOF
11079 rm -f conftest$ac_exeext
11080 if { (eval echo "$as_me:11080: \"$ac_link\"") >&5
11081 (eval $ac_link) 2>&5
11082 ac_status=$?
11083 echo "$as_me:11083: \$? = $ac_status" >&5
11084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11085 { (eval echo "$as_me:11085: \"$ac_try\"") >&5
11086 (eval $ac_try) 2>&5
11087 ac_status=$?
11088 echo "$as_me:11088: \$? = $ac_status" >&5
11089 (exit $ac_status); }; }; then
11090 ac_cv_func_working_mktime=yes
11091 else
11092 echo "$as_me: program exited with status $ac_status" >&5
11093 echo "$as_me: failed program was:" >&5
11094 cat conftest.$ac_ext >&5
11095 ac_cv_func_working_mktime=no
11097 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11100 echo "$as_me:11100: result: $ac_cv_func_working_mktime" >&5
11101 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11102 if test $ac_cv_func_working_mktime = no; then
11103 LIBOBJS="$LIBOBJS mktime.$ac_objext"
11106 for ac_func in localtime_r
11108 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11109 echo "$as_me:11109: checking for $ac_func" >&5
11110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11111 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11112 echo $ECHO_N "(cached) $ECHO_C" >&6
11113 else
11114 cat >conftest.$ac_ext <<_ACEOF
11115 #line 11115 "configure"
11116 #include "confdefs.h"
11117 /* System header to define __stub macros and hopefully few prototypes,
11118 which can conflict with char $ac_func (); below. */
11119 #include <assert.h>
11120 /* Override any gcc2 internal prototype to avoid an error. */
11121 #ifdef __cplusplus
11122 extern "C"
11123 #endif
11124 /* We use char because int might match the return type of a gcc2
11125 builtin and then its argument prototype would still apply. */
11126 char $ac_func ();
11127 char (*f) ();
11130 main ()
11132 /* The GNU C library defines this for functions which it implements
11133 to always fail with ENOSYS. Some functions are actually named
11134 something starting with __ and the normal name is an alias. */
11135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11136 choke me
11137 #else
11138 f = $ac_func;
11139 #endif
11142 return 0;
11144 _ACEOF
11145 rm -f conftest.$ac_objext conftest$ac_exeext
11146 if { (eval echo "$as_me:11146: \"$ac_link\"") >&5
11147 (eval $ac_link) 2>&5
11148 ac_status=$?
11149 echo "$as_me:11149: \$? = $ac_status" >&5
11150 (exit $ac_status); } &&
11151 { ac_try='test -s conftest$ac_exeext'
11152 { (eval echo "$as_me:11152: \"$ac_try\"") >&5
11153 (eval $ac_try) 2>&5
11154 ac_status=$?
11155 echo "$as_me:11155: \$? = $ac_status" >&5
11156 (exit $ac_status); }; }; then
11157 eval "$ac_ac_var=yes"
11158 else
11159 echo "$as_me: failed program was:" >&5
11160 cat conftest.$ac_ext >&5
11161 eval "$ac_ac_var=no"
11163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11165 echo "$as_me:11165: result: `eval echo '${'$ac_ac_var'}'`" >&5
11166 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
11167 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11168 cat >>confdefs.h <<EOF
11169 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11173 done
11175 if test $ac_cv_func_working_mktime = no; then
11177 cat >>confdefs.h <<EOF
11178 #define mktime rpl_mktime
11183 echo "$as_me:11183: checking whether lstat accepts an empty string" >&5
11184 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
11185 if test "${jm_cv_func_lstat_empty_string_bug+set}" = set; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11187 else
11188 if test "$cross_compiling" = yes; then
11189 jm_cv_func_lstat_empty_string_bug=yes
11190 else
11191 cat >conftest.$ac_ext <<_ACEOF
11192 #line 11192 "configure"
11193 #include "confdefs.h"
11195 # include <sys/types.h>
11196 # include <sys/stat.h>
11199 main ()
11201 struct stat sbuf;
11202 exit (lstat ("", &sbuf) ? 1 : 0);
11205 _ACEOF
11206 rm -f conftest$ac_exeext
11207 if { (eval echo "$as_me:11207: \"$ac_link\"") >&5
11208 (eval $ac_link) 2>&5
11209 ac_status=$?
11210 echo "$as_me:11210: \$? = $ac_status" >&5
11211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11212 { (eval echo "$as_me:11212: \"$ac_try\"") >&5
11213 (eval $ac_try) 2>&5
11214 ac_status=$?
11215 echo "$as_me:11215: \$? = $ac_status" >&5
11216 (exit $ac_status); }; }; then
11217 jm_cv_func_lstat_empty_string_bug=yes
11218 else
11219 echo "$as_me: program exited with status $ac_status" >&5
11220 echo "$as_me: failed program was:" >&5
11221 cat conftest.$ac_ext >&5
11222 jm_cv_func_lstat_empty_string_bug=no
11224 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11228 echo "$as_me:11228: result: $jm_cv_func_lstat_empty_string_bug" >&5
11229 echo "${ECHO_T}$jm_cv_func_lstat_empty_string_bug" >&6
11230 if test $jm_cv_func_lstat_empty_string_bug = yes; then
11232 LIBOBJS="$LIBOBJS lstat.$ac_objext"
11234 cat >>confdefs.h <<EOF
11235 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
11240 echo "$as_me:11240: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
11241 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
11242 if test "${jm_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
11244 else
11246 rm -f conftest.sym conftest.file
11247 : > conftest.file
11248 if ln -s conftest.file conftest.sym; then
11249 if test "$cross_compiling" = yes; then
11250 jm_cv_func_lstat_dereferences_slashed_symlink=no
11252 else
11253 cat >conftest.$ac_ext <<_ACEOF
11254 #line 11254 "configure"
11255 #include "confdefs.h"
11257 # include <sys/types.h>
11258 # include <sys/stat.h>
11261 main ()
11263 struct stat sbuf;
11264 /* Linux will dereference the symlink and fail.
11265 That is better in the sense that it means we will not
11266 have to compile and use the lstat wrapper. */
11267 exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
11270 _ACEOF
11271 rm -f conftest$ac_exeext
11272 if { (eval echo "$as_me:11272: \"$ac_link\"") >&5
11273 (eval $ac_link) 2>&5
11274 ac_status=$?
11275 echo "$as_me:11275: \$? = $ac_status" >&5
11276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11277 { (eval echo "$as_me:11277: \"$ac_try\"") >&5
11278 (eval $ac_try) 2>&5
11279 ac_status=$?
11280 echo "$as_me:11280: \$? = $ac_status" >&5
11281 (exit $ac_status); }; }; then
11282 jm_cv_func_lstat_dereferences_slashed_symlink=yes
11283 else
11284 echo "$as_me: program exited with status $ac_status" >&5
11285 echo "$as_me: failed program was:" >&5
11286 cat conftest.$ac_ext >&5
11287 jm_cv_func_lstat_dereferences_slashed_symlink=no
11289 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11291 else
11292 # If the `ln -s' command failed, then we probably don't even
11293 # have an lstat function.
11294 jm_cv_func_lstat_dereferences_slashed_symlink=no
11298 echo "$as_me:11298: result: $jm_cv_func_lstat_dereferences_slashed_symlink" >&5
11299 echo "${ECHO_T}$jm_cv_func_lstat_dereferences_slashed_symlink" >&6
11301 test $jm_cv_func_lstat_dereferences_slashed_symlink = yes \
11302 && zero_one=1 \
11303 || zero_one=0
11305 cat >>confdefs.h <<EOF
11306 #define LSTAT_FOLLOWS_SLASHED_SYMLINK $zero_one
11309 if test $jm_cv_func_lstat_dereferences_slashed_symlink = no; then
11311 # Append lstat.o if it's not already in $LIBOBJS.
11312 case "$LIBOBJS" in
11313 *lstat.$ac_objext*) ;;
11314 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
11315 esac
11318 echo "$as_me:11318: checking whether stat accepts an empty string" >&5
11319 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
11320 if test "${jm_cv_func_stat_empty_string_bug+set}" = set; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
11322 else
11323 if test "$cross_compiling" = yes; then
11324 jm_cv_func_stat_empty_string_bug=yes
11325 else
11326 cat >conftest.$ac_ext <<_ACEOF
11327 #line 11327 "configure"
11328 #include "confdefs.h"
11330 # include <sys/types.h>
11331 # include <sys/stat.h>
11334 main ()
11336 struct stat sbuf;
11337 exit (stat ("", &sbuf) ? 1 : 0);
11340 _ACEOF
11341 rm -f conftest$ac_exeext
11342 if { (eval echo "$as_me:11342: \"$ac_link\"") >&5
11343 (eval $ac_link) 2>&5
11344 ac_status=$?
11345 echo "$as_me:11345: \$? = $ac_status" >&5
11346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11347 { (eval echo "$as_me:11347: \"$ac_try\"") >&5
11348 (eval $ac_try) 2>&5
11349 ac_status=$?
11350 echo "$as_me:11350: \$? = $ac_status" >&5
11351 (exit $ac_status); }; }; then
11352 jm_cv_func_stat_empty_string_bug=yes
11353 else
11354 echo "$as_me: program exited with status $ac_status" >&5
11355 echo "$as_me: failed program was:" >&5
11356 cat conftest.$ac_ext >&5
11357 jm_cv_func_stat_empty_string_bug=no
11359 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11363 echo "$as_me:11363: result: $jm_cv_func_stat_empty_string_bug" >&5
11364 echo "${ECHO_T}$jm_cv_func_stat_empty_string_bug" >&6
11365 if test $jm_cv_func_stat_empty_string_bug = yes; then
11367 LIBOBJS="$LIBOBJS stat.$ac_objext"
11369 cat >>confdefs.h <<EOF
11370 #define HAVE_STAT_EMPTY_STRING_BUG 1
11375 cat >>confdefs.h <<EOF
11376 #define HAVE_DONE_WORKING_REALLOC_CHECK 1
11379 echo "$as_me:11379: checking for working realloc" >&5
11380 echo $ECHO_N "checking for working realloc... $ECHO_C" >&6
11381 if test "${jm_cv_func_working_realloc+set}" = set; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11383 else
11384 if test "$cross_compiling" = yes; then
11385 jm_cv_func_working_realloc=no
11386 else
11387 cat >conftest.$ac_ext <<_ACEOF
11388 #line 11388 "configure"
11389 #include "confdefs.h"
11391 char *realloc ();
11393 main ()
11395 exit (realloc (0, 0) ? 0 : 1);
11398 _ACEOF
11399 rm -f conftest$ac_exeext
11400 if { (eval echo "$as_me:11400: \"$ac_link\"") >&5
11401 (eval $ac_link) 2>&5
11402 ac_status=$?
11403 echo "$as_me:11403: \$? = $ac_status" >&5
11404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11405 { (eval echo "$as_me:11405: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11407 ac_status=$?
11408 echo "$as_me:11408: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }; then
11410 jm_cv_func_working_realloc=yes
11411 else
11412 echo "$as_me: program exited with status $ac_status" >&5
11413 echo "$as_me: failed program was:" >&5
11414 cat conftest.$ac_ext >&5
11415 jm_cv_func_working_realloc=no
11417 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11421 echo "$as_me:11421: result: $jm_cv_func_working_realloc" >&5
11422 echo "${ECHO_T}$jm_cv_func_working_realloc" >&6
11423 if test $jm_cv_func_working_realloc = no; then
11425 LIBOBJS="$LIBOBJS realloc.$ac_objext"
11427 cat >>confdefs.h <<EOF
11428 #define realloc rpl_realloc
11433 cat >>confdefs.h <<EOF
11434 #define HAVE_DONE_WORKING_MALLOC_CHECK 1
11437 echo "$as_me:11437: checking for working malloc" >&5
11438 echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
11439 if test "${jm_cv_func_working_malloc+set}" = set; then
11440 echo $ECHO_N "(cached) $ECHO_C" >&6
11441 else
11442 if test "$cross_compiling" = yes; then
11443 jm_cv_func_working_malloc=no
11444 else
11445 cat >conftest.$ac_ext <<_ACEOF
11446 #line 11446 "configure"
11447 #include "confdefs.h"
11449 char *malloc ();
11451 main ()
11453 exit (malloc (0) ? 0 : 1);
11456 _ACEOF
11457 rm -f conftest$ac_exeext
11458 if { (eval echo "$as_me:11458: \"$ac_link\"") >&5
11459 (eval $ac_link) 2>&5
11460 ac_status=$?
11461 echo "$as_me:11461: \$? = $ac_status" >&5
11462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11463 { (eval echo "$as_me:11463: \"$ac_try\"") >&5
11464 (eval $ac_try) 2>&5
11465 ac_status=$?
11466 echo "$as_me:11466: \$? = $ac_status" >&5
11467 (exit $ac_status); }; }; then
11468 jm_cv_func_working_malloc=yes
11469 else
11470 echo "$as_me: program exited with status $ac_status" >&5
11471 echo "$as_me: failed program was:" >&5
11472 cat conftest.$ac_ext >&5
11473 jm_cv_func_working_malloc=no
11475 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11479 echo "$as_me:11479: result: $jm_cv_func_working_malloc" >&5
11480 echo "${ECHO_T}$jm_cv_func_working_malloc" >&6
11481 if test $jm_cv_func_working_malloc = no; then
11483 LIBOBJS="$LIBOBJS malloc.$ac_objext"
11485 cat >>confdefs.h <<EOF
11486 #define malloc rpl_malloc
11491 echo "$as_me:11491: checking whether strerror_r is declared" >&5
11492 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
11493 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11495 else
11496 cat >conftest.$ac_ext <<_ACEOF
11497 #line 11497 "configure"
11498 #include "confdefs.h"
11499 $ac_includes_default
11501 main ()
11503 #ifndef strerror_r
11504 char *p = (char *) strerror_r;
11505 #endif
11508 return 0;
11510 _ACEOF
11511 rm -f conftest.$ac_objext
11512 if { (eval echo "$as_me:11512: \"$ac_compile\"") >&5
11513 (eval $ac_compile) 2>&5
11514 ac_status=$?
11515 echo "$as_me:11515: \$? = $ac_status" >&5
11516 (exit $ac_status); } &&
11517 { ac_try='test -s conftest.$ac_objext'
11518 { (eval echo "$as_me:11518: \"$ac_try\"") >&5
11519 (eval $ac_try) 2>&5
11520 ac_status=$?
11521 echo "$as_me:11521: \$? = $ac_status" >&5
11522 (exit $ac_status); }; }; then
11523 ac_cv_have_decl_strerror_r=yes
11524 else
11525 echo "$as_me: failed program was:" >&5
11526 cat conftest.$ac_ext >&5
11527 ac_cv_have_decl_strerror_r=no
11529 rm -f conftest.$ac_objext conftest.$ac_ext
11531 echo "$as_me:11531: result: $ac_cv_have_decl_strerror_r" >&5
11532 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
11533 if test $ac_cv_have_decl_strerror_r = yes; then
11535 cat >>confdefs.h <<EOF
11536 #define HAVE_DECL_STRERROR_R 1
11539 else
11540 cat >>confdefs.h <<EOF
11541 #define HAVE_DECL_STRERROR_R 0
11546 for ac_func in strerror_r
11548 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
11549 echo "$as_me:11549: checking for $ac_func" >&5
11550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11551 if eval "test \"\${$ac_ac_var+set}\" = set"; then
11552 echo $ECHO_N "(cached) $ECHO_C" >&6
11553 else
11554 cat >conftest.$ac_ext <<_ACEOF
11555 #line 11555 "configure"
11556 #include "confdefs.h"
11557 /* System header to define __stub macros and hopefully few prototypes,
11558 which can conflict with char $ac_func (); below. */
11559 #include <assert.h>
11560 /* Override any gcc2 internal prototype to avoid an error. */
11561 #ifdef __cplusplus
11562 extern "C"
11563 #endif
11564 /* We use char because int might match the return type of a gcc2
11565 builtin and then its argument prototype would still apply. */
11566 char $ac_func ();
11567 char (*f) ();
11570 main ()
11572 /* The GNU C library defines this for functions which it implements
11573 to always fail with ENOSYS. Some functions are actually named
11574 something starting with __ and the normal name is an alias. */
11575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11576 choke me
11577 #else
11578 f = $ac_func;
11579 #endif
11582 return 0;
11584 _ACEOF
11585 rm -f conftest.$ac_objext conftest$ac_exeext
11586 if { (eval echo "$as_me:11586: \"$ac_link\"") >&5
11587 (eval $ac_link) 2>&5
11588 ac_status=$?
11589 echo "$as_me:11589: \$? = $ac_status" >&5
11590 (exit $ac_status); } &&
11591 { ac_try='test -s conftest$ac_exeext'
11592 { (eval echo "$as_me:11592: \"$ac_try\"") >&5
11593 (eval $ac_try) 2>&5
11594 ac_status=$?
11595 echo "$as_me:11595: \$? = $ac_status" >&5
11596 (exit $ac_status); }; }; then
11597 eval "$ac_ac_var=yes"
11598 else
11599 echo "$as_me: failed program was:" >&5
11600 cat conftest.$ac_ext >&5
11601 eval "$ac_ac_var=no"
11603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11605 echo "$as_me:11605: result: `eval echo '${'$ac_ac_var'}'`" >&5
11606 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
11607 if test `eval echo '${'$ac_ac_var'}'` = yes; then
11608 cat >>confdefs.h <<EOF
11609 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
11613 done
11615 if test $ac_cv_func_strerror_r = yes; then
11617 for ac_header in string.h
11619 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
11620 echo "$as_me:11620: checking for $ac_header" >&5
11621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11622 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 else
11625 cat >conftest.$ac_ext <<_ACEOF
11626 #line 11626 "configure"
11627 #include "confdefs.h"
11628 #include <$ac_header>
11629 _ACEOF
11630 if { (eval echo "$as_me:11630: \"$ac_cpp conftest.$ac_ext\"") >&5
11631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11632 ac_status=$?
11633 egrep -v '^ *\+' conftest.er1 >conftest.err
11634 rm -f conftest.er1
11635 cat conftest.err >&5
11636 echo "$as_me:11636: \$? = $ac_status" >&5
11637 (exit $ac_status); } >/dev/null; then
11638 if test -s conftest.err; then
11639 ac_cpp_err=$ac_c_preproc_warn_flag
11640 else
11641 ac_cpp_err=
11643 else
11644 ac_cpp_err=yes
11646 if test -z "$ac_cpp_err"; then
11647 eval "$ac_ac_Header=yes"
11648 else
11649 echo "$as_me: failed program was:" >&5
11650 cat conftest.$ac_ext >&5
11651 eval "$ac_ac_Header=no"
11653 rm -f conftest.err conftest.$ac_ext
11655 echo "$as_me:11655: result: `eval echo '${'$ac_ac_Header'}'`" >&5
11656 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
11657 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
11658 cat >>confdefs.h <<EOF
11659 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
11663 done
11665 echo "$as_me:11665: checking for working strerror_r" >&5
11666 echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6
11667 if test "${ac_cv_func_strerror_r_works+set}" = set; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11669 else
11671 cat >conftest.$ac_ext <<_ACEOF
11672 #line 11672 "configure"
11673 #include "confdefs.h"
11675 # include <stdio.h>
11676 # if HAVE_STRING_H
11677 # include <string.h>
11678 # endif
11681 main ()
11684 char buf[100];
11685 char x = *strerror_r (0, buf, sizeof buf);
11688 return 0;
11690 _ACEOF
11691 rm -f conftest.$ac_objext
11692 if { (eval echo "$as_me:11692: \"$ac_compile\"") >&5
11693 (eval $ac_compile) 2>&5
11694 ac_status=$?
11695 echo "$as_me:11695: \$? = $ac_status" >&5
11696 (exit $ac_status); } &&
11697 { ac_try='test -s conftest.$ac_objext'
11698 { (eval echo "$as_me:11698: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11700 ac_status=$?
11701 echo "$as_me:11701: \$? = $ac_status" >&5
11702 (exit $ac_status); }; }; then
11703 ac_cv_func_strerror_r_works=yes
11704 else
11705 echo "$as_me: failed program was:" >&5
11706 cat conftest.$ac_ext >&5
11707 ac_cv_func_strerror_r_works=no
11710 rm -f conftest.$ac_objext conftest.$ac_ext
11711 if test $ac_cv_func_strerror_r_works = no; then
11712 # strerror_r seems not to work, but now we have to choose between
11713 # systems that have relatively inaccessible declarations for the
11714 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
11715 # former has a strerror_r that returns char*, while the latter
11716 # has a strerror_r that returns `int'.
11717 # This test should segfault on the DEC system.
11718 if test "$cross_compiling" = yes; then
11719 ac_cv_func_strerror_r_works=no
11720 else
11721 cat >conftest.$ac_ext <<_ACEOF
11722 #line 11722 "configure"
11723 #include "confdefs.h"
11725 # include <stdio.h>
11726 # include <string.h>
11727 # include <ctype.h>
11729 extern char *strerror_r ();
11732 main ()
11734 char buf[100];
11735 char x = *strerror_r (0, buf, sizeof buf);
11736 exit (!isalpha (x));
11739 _ACEOF
11740 rm -f conftest$ac_exeext
11741 if { (eval echo "$as_me:11741: \"$ac_link\"") >&5
11742 (eval $ac_link) 2>&5
11743 ac_status=$?
11744 echo "$as_me:11744: \$? = $ac_status" >&5
11745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11746 { (eval echo "$as_me:11746: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11748 ac_status=$?
11749 echo "$as_me:11749: \$? = $ac_status" >&5
11750 (exit $ac_status); }; }; then
11751 ac_cv_func_strerror_r_works=yes
11752 else
11753 echo "$as_me: program exited with status $ac_status" >&5
11754 echo "$as_me: failed program was:" >&5
11755 cat conftest.$ac_ext >&5
11756 ac_cv_func_strerror_r_works=no
11758 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11763 echo "$as_me:11763: result: $ac_cv_func_strerror_r_works" >&5
11764 echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6
11765 if test $ac_cv_func_strerror_r_works = yes; then
11767 cat >>confdefs.h <<EOF
11768 #define HAVE_WORKING_STRERROR_R 1
11774 for ac_header in string.h
11776 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
11777 echo "$as_me:11777: checking for $ac_header" >&5
11778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11779 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
11780 echo $ECHO_N "(cached) $ECHO_C" >&6
11781 else
11782 cat >conftest.$ac_ext <<_ACEOF
11783 #line 11783 "configure"
11784 #include "confdefs.h"
11785 #include <$ac_header>
11786 _ACEOF
11787 if { (eval echo "$as_me:11787: \"$ac_cpp conftest.$ac_ext\"") >&5
11788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11789 ac_status=$?
11790 egrep -v '^ *\+' conftest.er1 >conftest.err
11791 rm -f conftest.er1
11792 cat conftest.err >&5
11793 echo "$as_me:11793: \$? = $ac_status" >&5
11794 (exit $ac_status); } >/dev/null; then
11795 if test -s conftest.err; then
11796 ac_cpp_err=$ac_c_preproc_warn_flag
11797 else
11798 ac_cpp_err=
11800 else
11801 ac_cpp_err=yes
11803 if test -z "$ac_cpp_err"; then
11804 eval "$ac_ac_Header=yes"
11805 else
11806 echo "$as_me: failed program was:" >&5
11807 cat conftest.$ac_ext >&5
11808 eval "$ac_ac_Header=no"
11810 rm -f conftest.err conftest.$ac_ext
11812 echo "$as_me:11812: result: `eval echo '${'$ac_ac_Header'}'`" >&5
11813 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
11814 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
11815 cat >>confdefs.h <<EOF
11816 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
11820 done
11822 echo "$as_me:11822: checking for working readdir" >&5
11823 echo $ECHO_N "checking for working readdir... $ECHO_C" >&6
11824 if test "${jm_cv_func_working_readdir+set}" = set; then
11825 echo $ECHO_N "(cached) $ECHO_C" >&6
11826 else
11827 # Arrange for deletion of the temporary directory this test creates, in
11828 # case the test itself fails to delete everything -- as happens on Sunos.
11829 ac_clean_files="$ac_clean_files conf-dir"
11831 if test "$cross_compiling" = yes; then
11832 jm_cv_func_working_readdir=no
11833 else
11834 cat >conftest.$ac_ext <<_ACEOF
11835 #line 11835 "configure"
11836 #include "confdefs.h"
11837 # include <stdio.h>
11838 # include <sys/types.h>
11839 # if HAVE_STRING_H
11840 # include <string.h>
11841 # endif
11843 # ifdef HAVE_DIRENT_H
11844 # include <dirent.h>
11845 # define NLENGTH(direct) (strlen((direct)->d_name))
11846 # else /* not HAVE_DIRENT_H */
11847 # define dirent direct
11848 # define NLENGTH(direct) ((direct)->d_namlen)
11849 # ifdef HAVE_SYS_NDIR_H
11850 # include <sys/ndir.h>
11851 # endif /* HAVE_SYS_NDIR_H */
11852 # ifdef HAVE_SYS_DIR_H
11853 # include <sys/dir.h>
11854 # endif /* HAVE_SYS_DIR_H */
11855 # ifdef HAVE_NDIR_H
11856 # include <ndir.h>
11857 # endif /* HAVE_NDIR_H */
11858 # endif /* HAVE_DIRENT_H */
11860 # define DOT_OR_DOTDOT(Basename) \
11861 (Basename[0] == '.' && (Basename[1] == '\0' \
11862 || (Basename[1] == '.' && Basename[2] == '\0')))
11864 static void
11865 create_300_file_dir (const char *dir)
11867 int i;
11869 if (mkdir (dir, 0700))
11870 abort ();
11871 if (chdir (dir))
11872 abort ();
11874 for (i = 0; i < 300; i++)
11876 char file_name[4];
11877 FILE *out;
11879 sprintf (file_name, "%03d", i);
11880 out = fopen (file_name, "w");
11881 if (!out)
11882 abort ();
11883 if (fclose (out) == EOF)
11884 abort ();
11887 if (chdir (".."))
11888 abort ();
11891 static void
11892 remove_dir (const char *dir)
11894 DIR *dirp;
11896 if (chdir (dir))
11897 abort ();
11899 dirp = opendir (".");
11900 if (dirp == NULL)
11901 abort ();
11903 while (1)
11905 struct dirent *dp = readdir (dirp);
11906 if (dp == NULL)
11907 break;
11909 if (DOT_OR_DOTDOT (dp->d_name))
11910 continue;
11912 if (unlink (dp->d_name))
11913 abort ();
11915 closedir (dirp);
11917 if (chdir (".."))
11918 abort ();
11920 if (rmdir (dir))
11921 exit (1);
11925 main ()
11927 const char *dir = "conf-dir";
11928 create_300_file_dir (dir);
11929 remove_dir (dir);
11930 exit (0);
11932 _ACEOF
11933 rm -f conftest$ac_exeext
11934 if { (eval echo "$as_me:11934: \"$ac_link\"") >&5
11935 (eval $ac_link) 2>&5
11936 ac_status=$?
11937 echo "$as_me:11937: \$? = $ac_status" >&5
11938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11939 { (eval echo "$as_me:11939: \"$ac_try\"") >&5
11940 (eval $ac_try) 2>&5
11941 ac_status=$?
11942 echo "$as_me:11942: \$? = $ac_status" >&5
11943 (exit $ac_status); }; }; then
11944 jm_cv_func_working_readdir=yes
11945 else
11946 echo "$as_me: program exited with status $ac_status" >&5
11947 echo "$as_me: failed program was:" >&5
11948 cat conftest.$ac_ext >&5
11949 jm_cv_func_working_readdir=no
11951 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
11954 echo "$as_me:11954: result: $jm_cv_func_working_readdir" >&5
11955 echo "${ECHO_T}$jm_cv_func_working_readdir" >&6
11957 if test $jm_cv_func_working_readdir = yes; then
11959 cat >>confdefs.h <<EOF
11960 #define HAVE_WORKING_READDIR 1
11965 echo "$as_me:11965: checking for working memcmp" >&5
11966 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
11967 if test "${jm_cv_func_memcmp_working+set}" = set; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11969 else
11970 if test "$cross_compiling" = yes; then
11971 jm_cv_func_memcmp_working=no
11972 else
11973 cat >conftest.$ac_ext <<_ACEOF
11974 #line 11974 "configure"
11975 #include "confdefs.h"
11977 main ()
11979 /* Some versions of memcmp are not 8-bit clean. */
11980 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11981 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11982 exit (1);
11984 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11985 or more and with at least one buffer not starting on a 4-byte boundary.
11986 William Lewis provided this test program. */
11988 char foo[21];
11989 char bar[21];
11990 int i;
11991 for (i = 0; i < 4; i++)
11993 char *a = foo + i;
11994 char *b = bar + i;
11995 strcpy (a, "--------01111111");
11996 strcpy (b, "--------10000000");
11997 if (memcmp (a, b, 16) >= 0)
11998 exit (1);
12000 exit (0);
12003 _ACEOF
12004 rm -f conftest$ac_exeext
12005 if { (eval echo "$as_me:12005: \"$ac_link\"") >&5
12006 (eval $ac_link) 2>&5
12007 ac_status=$?
12008 echo "$as_me:12008: \$? = $ac_status" >&5
12009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12010 { (eval echo "$as_me:12010: \"$ac_try\"") >&5
12011 (eval $ac_try) 2>&5
12012 ac_status=$?
12013 echo "$as_me:12013: \$? = $ac_status" >&5
12014 (exit $ac_status); }; }; then
12015 jm_cv_func_memcmp_working=yes
12016 else
12017 echo "$as_me: program exited with status $ac_status" >&5
12018 echo "$as_me: failed program was:" >&5
12019 cat conftest.$ac_ext >&5
12020 jm_cv_func_memcmp_working=no
12022 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
12025 echo "$as_me:12025: result: $jm_cv_func_memcmp_working" >&5
12026 echo "${ECHO_T}$jm_cv_func_memcmp_working" >&6
12027 test $jm_cv_func_memcmp_working = no \
12028 && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
12030 if test $jm_cv_func_memcmp_working = no; then
12032 cat >>confdefs.h <<EOF
12033 #define memcmp rpl_memcmp
12038 # Kludge (not executed) to make autoheader do the right thing.
12039 if test a = b; then
12040 echo "$as_me:12040: checking whether clearerr_unlocked is declared" >&5
12041 echo $ECHO_N "checking whether clearerr_unlocked is declared... $ECHO_C" >&6
12042 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12044 else
12045 cat >conftest.$ac_ext <<_ACEOF
12046 #line 12046 "configure"
12047 #include "confdefs.h"
12048 $ac_includes_default
12050 main ()
12052 #ifndef clearerr_unlocked
12053 char *p = (char *) clearerr_unlocked;
12054 #endif
12057 return 0;
12059 _ACEOF
12060 rm -f conftest.$ac_objext
12061 if { (eval echo "$as_me:12061: \"$ac_compile\"") >&5
12062 (eval $ac_compile) 2>&5
12063 ac_status=$?
12064 echo "$as_me:12064: \$? = $ac_status" >&5
12065 (exit $ac_status); } &&
12066 { ac_try='test -s conftest.$ac_objext'
12067 { (eval echo "$as_me:12067: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12069 ac_status=$?
12070 echo "$as_me:12070: \$? = $ac_status" >&5
12071 (exit $ac_status); }; }; then
12072 ac_cv_have_decl_clearerr_unlocked=yes
12073 else
12074 echo "$as_me: failed program was:" >&5
12075 cat conftest.$ac_ext >&5
12076 ac_cv_have_decl_clearerr_unlocked=no
12078 rm -f conftest.$ac_objext conftest.$ac_ext
12080 echo "$as_me:12080: result: $ac_cv_have_decl_clearerr_unlocked" >&5
12081 echo "${ECHO_T}$ac_cv_have_decl_clearerr_unlocked" >&6
12082 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
12084 cat >>confdefs.h <<EOF
12085 #define HAVE_DECL_CLEARERR_UNLOCKED 1
12088 else
12089 cat >>confdefs.h <<EOF
12090 #define HAVE_DECL_CLEARERR_UNLOCKED 0
12094 echo "$as_me:12094: checking whether feof_unlocked is declared" >&5
12095 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
12096 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12098 else
12099 cat >conftest.$ac_ext <<_ACEOF
12100 #line 12100 "configure"
12101 #include "confdefs.h"
12102 $ac_includes_default
12104 main ()
12106 #ifndef feof_unlocked
12107 char *p = (char *) feof_unlocked;
12108 #endif
12111 return 0;
12113 _ACEOF
12114 rm -f conftest.$ac_objext
12115 if { (eval echo "$as_me:12115: \"$ac_compile\"") >&5
12116 (eval $ac_compile) 2>&5
12117 ac_status=$?
12118 echo "$as_me:12118: \$? = $ac_status" >&5
12119 (exit $ac_status); } &&
12120 { ac_try='test -s conftest.$ac_objext'
12121 { (eval echo "$as_me:12121: \"$ac_try\"") >&5
12122 (eval $ac_try) 2>&5
12123 ac_status=$?
12124 echo "$as_me:12124: \$? = $ac_status" >&5
12125 (exit $ac_status); }; }; then
12126 ac_cv_have_decl_feof_unlocked=yes
12127 else
12128 echo "$as_me: failed program was:" >&5
12129 cat conftest.$ac_ext >&5
12130 ac_cv_have_decl_feof_unlocked=no
12132 rm -f conftest.$ac_objext conftest.$ac_ext
12134 echo "$as_me:12134: result: $ac_cv_have_decl_feof_unlocked" >&5
12135 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
12136 if test $ac_cv_have_decl_feof_unlocked = yes; then
12138 cat >>confdefs.h <<EOF
12139 #define HAVE_DECL_FEOF_UNLOCKED 1
12142 else
12143 cat >>confdefs.h <<EOF
12144 #define HAVE_DECL_FEOF_UNLOCKED 0
12148 echo "$as_me:12148: checking whether ferror_unlocked is declared" >&5
12149 echo $ECHO_N "checking whether ferror_unlocked is declared... $ECHO_C" >&6
12150 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 else
12153 cat >conftest.$ac_ext <<_ACEOF
12154 #line 12154 "configure"
12155 #include "confdefs.h"
12156 $ac_includes_default
12158 main ()
12160 #ifndef ferror_unlocked
12161 char *p = (char *) ferror_unlocked;
12162 #endif
12165 return 0;
12167 _ACEOF
12168 rm -f conftest.$ac_objext
12169 if { (eval echo "$as_me:12169: \"$ac_compile\"") >&5
12170 (eval $ac_compile) 2>&5
12171 ac_status=$?
12172 echo "$as_me:12172: \$? = $ac_status" >&5
12173 (exit $ac_status); } &&
12174 { ac_try='test -s conftest.$ac_objext'
12175 { (eval echo "$as_me:12175: \"$ac_try\"") >&5
12176 (eval $ac_try) 2>&5
12177 ac_status=$?
12178 echo "$as_me:12178: \$? = $ac_status" >&5
12179 (exit $ac_status); }; }; then
12180 ac_cv_have_decl_ferror_unlocked=yes
12181 else
12182 echo "$as_me: failed program was:" >&5
12183 cat conftest.$ac_ext >&5
12184 ac_cv_have_decl_ferror_unlocked=no
12186 rm -f conftest.$ac_objext conftest.$ac_ext
12188 echo "$as_me:12188: result: $ac_cv_have_decl_ferror_unlocked" >&5
12189 echo "${ECHO_T}$ac_cv_have_decl_ferror_unlocked" >&6
12190 if test $ac_cv_have_decl_ferror_unlocked = yes; then
12192 cat >>confdefs.h <<EOF
12193 #define HAVE_DECL_FERROR_UNLOCKED 1
12196 else
12197 cat >>confdefs.h <<EOF
12198 #define HAVE_DECL_FERROR_UNLOCKED 0
12202 echo "$as_me:12202: checking whether fflush_unlocked is declared" >&5
12203 echo $ECHO_N "checking whether fflush_unlocked is declared... $ECHO_C" >&6
12204 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12206 else
12207 cat >conftest.$ac_ext <<_ACEOF
12208 #line 12208 "configure"
12209 #include "confdefs.h"
12210 $ac_includes_default
12212 main ()
12214 #ifndef fflush_unlocked
12215 char *p = (char *) fflush_unlocked;
12216 #endif
12219 return 0;
12221 _ACEOF
12222 rm -f conftest.$ac_objext
12223 if { (eval echo "$as_me:12223: \"$ac_compile\"") >&5
12224 (eval $ac_compile) 2>&5
12225 ac_status=$?
12226 echo "$as_me:12226: \$? = $ac_status" >&5
12227 (exit $ac_status); } &&
12228 { ac_try='test -s conftest.$ac_objext'
12229 { (eval echo "$as_me:12229: \"$ac_try\"") >&5
12230 (eval $ac_try) 2>&5
12231 ac_status=$?
12232 echo "$as_me:12232: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
12234 ac_cv_have_decl_fflush_unlocked=yes
12235 else
12236 echo "$as_me: failed program was:" >&5
12237 cat conftest.$ac_ext >&5
12238 ac_cv_have_decl_fflush_unlocked=no
12240 rm -f conftest.$ac_objext conftest.$ac_ext
12242 echo "$as_me:12242: result: $ac_cv_have_decl_fflush_unlocked" >&5
12243 echo "${ECHO_T}$ac_cv_have_decl_fflush_unlocked" >&6
12244 if test $ac_cv_have_decl_fflush_unlocked = yes; then
12246 cat >>confdefs.h <<EOF
12247 #define HAVE_DECL_FFLUSH_UNLOCKED 1
12250 else
12251 cat >>confdefs.h <<EOF
12252 #define HAVE_DECL_FFLUSH_UNLOCKED 0
12256 echo "$as_me:12256: checking whether fputc_unlocked is declared" >&5
12257 echo $ECHO_N "checking whether fputc_unlocked is declared... $ECHO_C" >&6
12258 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12260 else
12261 cat >conftest.$ac_ext <<_ACEOF
12262 #line 12262 "configure"
12263 #include "confdefs.h"
12264 $ac_includes_default
12266 main ()
12268 #ifndef fputc_unlocked
12269 char *p = (char *) fputc_unlocked;
12270 #endif
12273 return 0;
12275 _ACEOF
12276 rm -f conftest.$ac_objext
12277 if { (eval echo "$as_me:12277: \"$ac_compile\"") >&5
12278 (eval $ac_compile) 2>&5
12279 ac_status=$?
12280 echo "$as_me:12280: \$? = $ac_status" >&5
12281 (exit $ac_status); } &&
12282 { ac_try='test -s conftest.$ac_objext'
12283 { (eval echo "$as_me:12283: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12285 ac_status=$?
12286 echo "$as_me:12286: \$? = $ac_status" >&5
12287 (exit $ac_status); }; }; then
12288 ac_cv_have_decl_fputc_unlocked=yes
12289 else
12290 echo "$as_me: failed program was:" >&5
12291 cat conftest.$ac_ext >&5
12292 ac_cv_have_decl_fputc_unlocked=no
12294 rm -f conftest.$ac_objext conftest.$ac_ext
12296 echo "$as_me:12296: result: $ac_cv_have_decl_fputc_unlocked" >&5
12297 echo "${ECHO_T}$ac_cv_have_decl_fputc_unlocked" >&6
12298 if test $ac_cv_have_decl_fputc_unlocked = yes; then
12300 cat >>confdefs.h <<EOF
12301 #define HAVE_DECL_FPUTC_UNLOCKED 1
12304 else
12305 cat >>confdefs.h <<EOF
12306 #define HAVE_DECL_FPUTC_UNLOCKED 0
12310 echo "$as_me:12310: checking whether fread_unlocked is declared" >&5
12311 echo $ECHO_N "checking whether fread_unlocked is declared... $ECHO_C" >&6
12312 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12314 else
12315 cat >conftest.$ac_ext <<_ACEOF
12316 #line 12316 "configure"
12317 #include "confdefs.h"
12318 $ac_includes_default
12320 main ()
12322 #ifndef fread_unlocked
12323 char *p = (char *) fread_unlocked;
12324 #endif
12327 return 0;
12329 _ACEOF
12330 rm -f conftest.$ac_objext
12331 if { (eval echo "$as_me:12331: \"$ac_compile\"") >&5
12332 (eval $ac_compile) 2>&5
12333 ac_status=$?
12334 echo "$as_me:12334: \$? = $ac_status" >&5
12335 (exit $ac_status); } &&
12336 { ac_try='test -s conftest.$ac_objext'
12337 { (eval echo "$as_me:12337: \"$ac_try\"") >&5
12338 (eval $ac_try) 2>&5
12339 ac_status=$?
12340 echo "$as_me:12340: \$? = $ac_status" >&5
12341 (exit $ac_status); }; }; then
12342 ac_cv_have_decl_fread_unlocked=yes
12343 else
12344 echo "$as_me: failed program was:" >&5
12345 cat conftest.$ac_ext >&5
12346 ac_cv_have_decl_fread_unlocked=no
12348 rm -f conftest.$ac_objext conftest.$ac_ext
12350 echo "$as_me:12350: result: $ac_cv_have_decl_fread_unlocked" >&5
12351 echo "${ECHO_T}$ac_cv_have_decl_fread_unlocked" >&6
12352 if test $ac_cv_have_decl_fread_unlocked = yes; then
12354 cat >>confdefs.h <<EOF
12355 #define HAVE_DECL_FREAD_UNLOCKED 1
12358 else
12359 cat >>confdefs.h <<EOF
12360 #define HAVE_DECL_FREAD_UNLOCKED 0
12364 echo "$as_me:12364: checking whether fwrite_unlocked is declared" >&5
12365 echo $ECHO_N "checking whether fwrite_unlocked is declared... $ECHO_C" >&6
12366 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12368 else
12369 cat >conftest.$ac_ext <<_ACEOF
12370 #line 12370 "configure"
12371 #include "confdefs.h"
12372 $ac_includes_default
12374 main ()
12376 #ifndef fwrite_unlocked
12377 char *p = (char *) fwrite_unlocked;
12378 #endif
12381 return 0;
12383 _ACEOF
12384 rm -f conftest.$ac_objext
12385 if { (eval echo "$as_me:12385: \"$ac_compile\"") >&5
12386 (eval $ac_compile) 2>&5
12387 ac_status=$?
12388 echo "$as_me:12388: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
12390 { ac_try='test -s conftest.$ac_objext'
12391 { (eval echo "$as_me:12391: \"$ac_try\"") >&5
12392 (eval $ac_try) 2>&5
12393 ac_status=$?
12394 echo "$as_me:12394: \$? = $ac_status" >&5
12395 (exit $ac_status); }; }; then
12396 ac_cv_have_decl_fwrite_unlocked=yes
12397 else
12398 echo "$as_me: failed program was:" >&5
12399 cat conftest.$ac_ext >&5
12400 ac_cv_have_decl_fwrite_unlocked=no
12402 rm -f conftest.$ac_objext conftest.$ac_ext
12404 echo "$as_me:12404: result: $ac_cv_have_decl_fwrite_unlocked" >&5
12405 echo "${ECHO_T}$ac_cv_have_decl_fwrite_unlocked" >&6
12406 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
12408 cat >>confdefs.h <<EOF
12409 #define HAVE_DECL_FWRITE_UNLOCKED 1
12412 else
12413 cat >>confdefs.h <<EOF
12414 #define HAVE_DECL_FWRITE_UNLOCKED 0
12418 echo "$as_me:12418: checking whether getc_unlocked is declared" >&5
12419 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
12420 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12422 else
12423 cat >conftest.$ac_ext <<_ACEOF
12424 #line 12424 "configure"
12425 #include "confdefs.h"
12426 $ac_includes_default
12428 main ()
12430 #ifndef getc_unlocked
12431 char *p = (char *) getc_unlocked;
12432 #endif
12435 return 0;
12437 _ACEOF
12438 rm -f conftest.$ac_objext
12439 if { (eval echo "$as_me:12439: \"$ac_compile\"") >&5
12440 (eval $ac_compile) 2>&5
12441 ac_status=$?
12442 echo "$as_me:12442: \$? = $ac_status" >&5
12443 (exit $ac_status); } &&
12444 { ac_try='test -s conftest.$ac_objext'
12445 { (eval echo "$as_me:12445: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12447 ac_status=$?
12448 echo "$as_me:12448: \$? = $ac_status" >&5
12449 (exit $ac_status); }; }; then
12450 ac_cv_have_decl_getc_unlocked=yes
12451 else
12452 echo "$as_me: failed program was:" >&5
12453 cat conftest.$ac_ext >&5
12454 ac_cv_have_decl_getc_unlocked=no
12456 rm -f conftest.$ac_objext conftest.$ac_ext
12458 echo "$as_me:12458: result: $ac_cv_have_decl_getc_unlocked" >&5
12459 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
12460 if test $ac_cv_have_decl_getc_unlocked = yes; then
12462 cat >>confdefs.h <<EOF
12463 #define HAVE_DECL_GETC_UNLOCKED 1
12466 else
12467 cat >>confdefs.h <<EOF
12468 #define HAVE_DECL_GETC_UNLOCKED 0
12472 echo "$as_me:12472: checking whether getchar_unlocked is declared" >&5
12473 echo $ECHO_N "checking whether getchar_unlocked is declared... $ECHO_C" >&6
12474 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 else
12477 cat >conftest.$ac_ext <<_ACEOF
12478 #line 12478 "configure"
12479 #include "confdefs.h"
12480 $ac_includes_default
12482 main ()
12484 #ifndef getchar_unlocked
12485 char *p = (char *) getchar_unlocked;
12486 #endif
12489 return 0;
12491 _ACEOF
12492 rm -f conftest.$ac_objext
12493 if { (eval echo "$as_me:12493: \"$ac_compile\"") >&5
12494 (eval $ac_compile) 2>&5
12495 ac_status=$?
12496 echo "$as_me:12496: \$? = $ac_status" >&5
12497 (exit $ac_status); } &&
12498 { ac_try='test -s conftest.$ac_objext'
12499 { (eval echo "$as_me:12499: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12501 ac_status=$?
12502 echo "$as_me:12502: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12504 ac_cv_have_decl_getchar_unlocked=yes
12505 else
12506 echo "$as_me: failed program was:" >&5
12507 cat conftest.$ac_ext >&5
12508 ac_cv_have_decl_getchar_unlocked=no
12510 rm -f conftest.$ac_objext conftest.$ac_ext
12512 echo "$as_me:12512: result: $ac_cv_have_decl_getchar_unlocked" >&5
12513 echo "${ECHO_T}$ac_cv_have_decl_getchar_unlocked" >&6
12514 if test $ac_cv_have_decl_getchar_unlocked = yes; then
12516 cat >>confdefs.h <<EOF
12517 #define HAVE_DECL_GETCHAR_UNLOCKED 1
12520 else
12521 cat >>confdefs.h <<EOF
12522 #define HAVE_DECL_GETCHAR_UNLOCKED 0
12526 echo "$as_me:12526: checking whether putc_unlocked is declared" >&5
12527 echo $ECHO_N "checking whether putc_unlocked is declared... $ECHO_C" >&6
12528 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12530 else
12531 cat >conftest.$ac_ext <<_ACEOF
12532 #line 12532 "configure"
12533 #include "confdefs.h"
12534 $ac_includes_default
12536 main ()
12538 #ifndef putc_unlocked
12539 char *p = (char *) putc_unlocked;
12540 #endif
12543 return 0;
12545 _ACEOF
12546 rm -f conftest.$ac_objext
12547 if { (eval echo "$as_me:12547: \"$ac_compile\"") >&5
12548 (eval $ac_compile) 2>&5
12549 ac_status=$?
12550 echo "$as_me:12550: \$? = $ac_status" >&5
12551 (exit $ac_status); } &&
12552 { ac_try='test -s conftest.$ac_objext'
12553 { (eval echo "$as_me:12553: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12555 ac_status=$?
12556 echo "$as_me:12556: \$? = $ac_status" >&5
12557 (exit $ac_status); }; }; then
12558 ac_cv_have_decl_putc_unlocked=yes
12559 else
12560 echo "$as_me: failed program was:" >&5
12561 cat conftest.$ac_ext >&5
12562 ac_cv_have_decl_putc_unlocked=no
12564 rm -f conftest.$ac_objext conftest.$ac_ext
12566 echo "$as_me:12566: result: $ac_cv_have_decl_putc_unlocked" >&5
12567 echo "${ECHO_T}$ac_cv_have_decl_putc_unlocked" >&6
12568 if test $ac_cv_have_decl_putc_unlocked = yes; then
12570 cat >>confdefs.h <<EOF
12571 #define HAVE_DECL_PUTC_UNLOCKED 1
12574 else
12575 cat >>confdefs.h <<EOF
12576 #define HAVE_DECL_PUTC_UNLOCKED 0
12580 echo "$as_me:12580: checking whether putchar_unlocked is declared" >&5
12581 echo $ECHO_N "checking whether putchar_unlocked is declared... $ECHO_C" >&6
12582 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12584 else
12585 cat >conftest.$ac_ext <<_ACEOF
12586 #line 12586 "configure"
12587 #include "confdefs.h"
12588 $ac_includes_default
12590 main ()
12592 #ifndef putchar_unlocked
12593 char *p = (char *) putchar_unlocked;
12594 #endif
12597 return 0;
12599 _ACEOF
12600 rm -f conftest.$ac_objext
12601 if { (eval echo "$as_me:12601: \"$ac_compile\"") >&5
12602 (eval $ac_compile) 2>&5
12603 ac_status=$?
12604 echo "$as_me:12604: \$? = $ac_status" >&5
12605 (exit $ac_status); } &&
12606 { ac_try='test -s conftest.$ac_objext'
12607 { (eval echo "$as_me:12607: \"$ac_try\"") >&5
12608 (eval $ac_try) 2>&5
12609 ac_status=$?
12610 echo "$as_me:12610: \$? = $ac_status" >&5
12611 (exit $ac_status); }; }; then
12612 ac_cv_have_decl_putchar_unlocked=yes
12613 else
12614 echo "$as_me: failed program was:" >&5
12615 cat conftest.$ac_ext >&5
12616 ac_cv_have_decl_putchar_unlocked=no
12618 rm -f conftest.$ac_objext conftest.$ac_ext
12620 echo "$as_me:12620: result: $ac_cv_have_decl_putchar_unlocked" >&5
12621 echo "${ECHO_T}$ac_cv_have_decl_putchar_unlocked" >&6
12622 if test $ac_cv_have_decl_putchar_unlocked = yes; then
12624 cat >>confdefs.h <<EOF
12625 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
12628 else
12629 cat >>confdefs.h <<EOF
12630 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
12637 io_functions='clearerr_unlocked feof_unlocked ferror_unlocked
12638 fflush_unlocked fputc_unlocked fread_unlocked fwrite_unlocked
12639 getc_unlocked getchar_unlocked putc_unlocked putchar_unlocked'
12640 for jm_io_func in $io_functions; do
12641 # Check for the existence of each function only if its declared.
12642 # Otherwise, we'd get the Solaris5.5.1 functions that are not
12643 # declared, and that have been removed from Solaris5.6. The resulting
12644 # 5.5.1 binaries would not run on 5.6 due to shared library differences.
12645 ac_ac_Symbol=`echo "ac_cv_have_decl_$jm_io_func" | $ac_tr_sh`
12646 echo "$as_me:12646: checking whether $jm_io_func is declared" >&5
12647 echo $ECHO_N "checking whether $jm_io_func is declared... $ECHO_C" >&6
12648 if eval "test \"\${$ac_ac_Symbol+set}\" = set"; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12650 else
12651 cat >conftest.$ac_ext <<_ACEOF
12652 #line 12652 "configure"
12653 #include "confdefs.h"
12654 #include <stdio.h>
12657 main ()
12659 #ifndef $jm_io_func
12660 char *p = (char *) $jm_io_func;
12661 #endif
12664 return 0;
12666 _ACEOF
12667 rm -f conftest.$ac_objext
12668 if { (eval echo "$as_me:12668: \"$ac_compile\"") >&5
12669 (eval $ac_compile) 2>&5
12670 ac_status=$?
12671 echo "$as_me:12671: \$? = $ac_status" >&5
12672 (exit $ac_status); } &&
12673 { ac_try='test -s conftest.$ac_objext'
12674 { (eval echo "$as_me:12674: \"$ac_try\"") >&5
12675 (eval $ac_try) 2>&5
12676 ac_status=$?
12677 echo "$as_me:12677: \$? = $ac_status" >&5
12678 (exit $ac_status); }; }; then
12679 eval "$ac_ac_Symbol=yes"
12680 else
12681 echo "$as_me: failed program was:" >&5
12682 cat conftest.$ac_ext >&5
12683 eval "$ac_ac_Symbol=no"
12685 rm -f conftest.$ac_objext conftest.$ac_ext
12687 echo "$as_me:12687: result: `eval echo '${'$ac_ac_Symbol'}'`" >&5
12688 echo "${ECHO_T}`eval echo '${'$ac_ac_Symbol'}'`" >&6
12689 if test `eval echo '${'$ac_ac_Symbol'}'` = yes; then
12691 cat >>confdefs.h <<EOF
12692 #define `echo "HAVE_DECL_$jm_io_func" | $ac_tr_cpp` 1
12695 jm_declared=yes
12696 else
12697 cat >>confdefs.h <<EOF
12698 #define `echo "HAVE_DECL_$jm_io_func" | $ac_tr_cpp` 0
12701 jm_declared=no
12704 if test $jm_declared = yes; then
12706 for ac_func in $jm_io_func
12708 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
12709 echo "$as_me:12709: checking for $ac_func" >&5
12710 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12711 if eval "test \"\${$ac_ac_var+set}\" = set"; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 else
12714 cat >conftest.$ac_ext <<_ACEOF
12715 #line 12715 "configure"
12716 #include "confdefs.h"
12717 /* System header to define __stub macros and hopefully few prototypes,
12718 which can conflict with char $ac_func (); below. */
12719 #include <assert.h>
12720 /* Override any gcc2 internal prototype to avoid an error. */
12721 #ifdef __cplusplus
12722 extern "C"
12723 #endif
12724 /* We use char because int might match the return type of a gcc2
12725 builtin and then its argument prototype would still apply. */
12726 char $ac_func ();
12727 char (*f) ();
12730 main ()
12732 /* The GNU C library defines this for functions which it implements
12733 to always fail with ENOSYS. Some functions are actually named
12734 something starting with __ and the normal name is an alias. */
12735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12736 choke me
12737 #else
12738 f = $ac_func;
12739 #endif
12742 return 0;
12744 _ACEOF
12745 rm -f conftest.$ac_objext conftest$ac_exeext
12746 if { (eval echo "$as_me:12746: \"$ac_link\"") >&5
12747 (eval $ac_link) 2>&5
12748 ac_status=$?
12749 echo "$as_me:12749: \$? = $ac_status" >&5
12750 (exit $ac_status); } &&
12751 { ac_try='test -s conftest$ac_exeext'
12752 { (eval echo "$as_me:12752: \"$ac_try\"") >&5
12753 (eval $ac_try) 2>&5
12754 ac_status=$?
12755 echo "$as_me:12755: \$? = $ac_status" >&5
12756 (exit $ac_status); }; }; then
12757 eval "$ac_ac_var=yes"
12758 else
12759 echo "$as_me: failed program was:" >&5
12760 cat conftest.$ac_ext >&5
12761 eval "$ac_ac_var=no"
12763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12765 echo "$as_me:12765: result: `eval echo '${'$ac_ac_var'}'`" >&5
12766 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
12767 if test `eval echo '${'$ac_ac_var'}'` = yes; then
12768 cat >>confdefs.h <<EOF
12769 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
12773 done
12776 done
12778 echo "$as_me:12778: checking whether we are using the GNU C Library" >&5
12779 echo $ECHO_N "checking whether we are using the GNU C Library... $ECHO_C" >&6
12780 if test "${ac_cv_gnu_library+set}" = set; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 else
12783 cat >conftest.$ac_ext <<_ACEOF
12784 #line 12784 "configure"
12785 #include "confdefs.h"
12787 #include <features.h>
12788 #ifdef __GNU_LIBRARY__
12789 Thanks for using GNU
12790 #endif
12792 _ACEOF
12793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12794 egrep "Thanks for using GNU" >/dev/null 2>&1; then
12795 ac_cv_gnu_library=yes
12796 else
12797 ac_cv_gnu_library=no
12799 rm -f conftest*
12802 echo "$as_me:12802: result: $ac_cv_gnu_library" >&5
12803 echo "${ECHO_T}$ac_cv_gnu_library" >&6
12804 echo "$as_me:12804: checking for version 2 of the GNU C Library" >&5
12805 echo $ECHO_N "checking for version 2 of the GNU C Library... $ECHO_C" >&6
12806 if test "${ac_cv_glibc+set}" = set; then
12807 echo $ECHO_N "(cached) $ECHO_C" >&6
12808 else
12809 cat >conftest.$ac_ext <<_ACEOF
12810 #line 12810 "configure"
12811 #include "confdefs.h"
12813 #include <features.h>
12814 #ifdef __GLIBC__
12815 Thanks for using GNU too
12816 #endif
12818 _ACEOF
12819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12820 egrep "Thanks for using GNU too" >/dev/null 2>&1; then
12821 ac_cv_glibc=yes
12822 else
12823 ac_cv_glibc=no
12825 rm -f conftest*
12828 echo "$as_me:12828: result: $ac_cv_glibc" >&5
12829 echo "${ECHO_T}$ac_cv_glibc" >&6
12831 for ac_header in fnmatch.h
12833 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
12834 echo "$as_me:12834: checking for $ac_header" >&5
12835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12836 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
12837 echo $ECHO_N "(cached) $ECHO_C" >&6
12838 else
12839 cat >conftest.$ac_ext <<_ACEOF
12840 #line 12840 "configure"
12841 #include "confdefs.h"
12842 #include <$ac_header>
12843 _ACEOF
12844 if { (eval echo "$as_me:12844: \"$ac_cpp conftest.$ac_ext\"") >&5
12845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12846 ac_status=$?
12847 egrep -v '^ *\+' conftest.er1 >conftest.err
12848 rm -f conftest.er1
12849 cat conftest.err >&5
12850 echo "$as_me:12850: \$? = $ac_status" >&5
12851 (exit $ac_status); } >/dev/null; then
12852 if test -s conftest.err; then
12853 ac_cpp_err=$ac_c_preproc_warn_flag
12854 else
12855 ac_cpp_err=
12857 else
12858 ac_cpp_err=yes
12860 if test -z "$ac_cpp_err"; then
12861 eval "$ac_ac_Header=yes"
12862 else
12863 echo "$as_me: failed program was:" >&5
12864 cat conftest.$ac_ext >&5
12865 eval "$ac_ac_Header=no"
12867 rm -f conftest.err conftest.$ac_ext
12869 echo "$as_me:12869: result: `eval echo '${'$ac_ac_Header'}'`" >&5
12870 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
12871 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
12872 cat >>confdefs.h <<EOF
12873 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
12877 done
12879 echo "$as_me:12879: checking for working fnmatch with case folding" >&5
12880 echo $ECHO_N "checking for working fnmatch with case folding... $ECHO_C" >&6
12881 if test "${ac_cv_func_fnmatch_works+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12883 else
12884 # Some versions of Solaris or SCO have a broken fnmatch function.
12885 # So we run a test program. If we are cross-compiling, take no chance.
12886 # Also want FNM_CASEFOLD
12887 # Thanks to John Oleynick and Franc,ois Pinard for this test.
12888 if test "$cross_compiling" = yes; then
12889 ac_cv_func_fnmatch_works=no
12890 else
12891 cat >conftest.$ac_ext <<_ACEOF
12892 #line 12892 "configure"
12893 #include "confdefs.h"
12894 #include <stdio.h>
12895 #define _GNU_SOURCE
12896 #if HAVE_FNMATCH_H
12897 # include <fnmatch.h>
12898 #endif
12901 main ()
12903 exit (fnmatch ("A*", "abc", FNM_CASEFOLD) != 0);
12905 _ACEOF
12906 rm -f conftest$ac_exeext
12907 if { (eval echo "$as_me:12907: \"$ac_link\"") >&5
12908 (eval $ac_link) 2>&5
12909 ac_status=$?
12910 echo "$as_me:12910: \$? = $ac_status" >&5
12911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12912 { (eval echo "$as_me:12912: \"$ac_try\"") >&5
12913 (eval $ac_try) 2>&5
12914 ac_status=$?
12915 echo "$as_me:12915: \$? = $ac_status" >&5
12916 (exit $ac_status); }; }; then
12917 ac_cv_func_fnmatch_works=yes
12918 else
12919 echo "$as_me: program exited with status $ac_status" >&5
12920 echo "$as_me: failed program was:" >&5
12921 cat conftest.$ac_ext >&5
12922 ac_cv_func_fnmatch_works=no
12924 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
12927 echo "$as_me:12927: result: $ac_cv_func_fnmatch_works" >&5
12928 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
12929 if test $ac_cv_func_fnmatch_works = yes; then
12931 cat >>confdefs.h <<\EOF
12932 #define HAVE_FNMATCH 1
12937 if test $ac_cv_func_fnmatch_works = no \
12938 && test $ac_cv_gnu_library = no; then
12940 LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
12942 cat >>confdefs.h <<EOF
12943 #define fnmatch rpl_fnmatch
12948 echo "$as_me:12948: checking for AFS" >&5
12949 echo $ECHO_N "checking for AFS... $ECHO_C" >&6
12950 if test -d /afs; then
12952 cat >>confdefs.h <<\EOF
12953 #define AFS 1
12956 ac_result=yes
12957 else
12958 ac_result=no
12960 echo "$as_me:12960: result: $ac_result" >&5
12961 echo "${ECHO_T}$ac_result" >&6
12963 for ac_header in stdlib.h
12965 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
12966 echo "$as_me:12966: checking for $ac_header" >&5
12967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12968 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
12969 echo $ECHO_N "(cached) $ECHO_C" >&6
12970 else
12971 cat >conftest.$ac_ext <<_ACEOF
12972 #line 12972 "configure"
12973 #include "confdefs.h"
12974 #include <$ac_header>
12975 _ACEOF
12976 if { (eval echo "$as_me:12976: \"$ac_cpp conftest.$ac_ext\"") >&5
12977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12978 ac_status=$?
12979 egrep -v '^ *\+' conftest.er1 >conftest.err
12980 rm -f conftest.er1
12981 cat conftest.err >&5
12982 echo "$as_me:12982: \$? = $ac_status" >&5
12983 (exit $ac_status); } >/dev/null; then
12984 if test -s conftest.err; then
12985 ac_cpp_err=$ac_c_preproc_warn_flag
12986 else
12987 ac_cpp_err=
12989 else
12990 ac_cpp_err=yes
12992 if test -z "$ac_cpp_err"; then
12993 eval "$ac_ac_Header=yes"
12994 else
12995 echo "$as_me: failed program was:" >&5
12996 cat conftest.$ac_ext >&5
12997 eval "$ac_ac_Header=no"
12999 rm -f conftest.err conftest.$ac_ext
13001 echo "$as_me:13001: result: `eval echo '${'$ac_ac_Header'}'`" >&5
13002 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
13003 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
13004 cat >>confdefs.h <<EOF
13005 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
13009 done
13011 echo "$as_me:13011: checking whether <inttypes.h> defines strtoumax as a macro" >&5
13012 echo $ECHO_N "checking whether <inttypes.h> defines strtoumax as a macro... $ECHO_C" >&6
13013 if test "${jm_cv_func_strtoumax_macro+set}" = set; then
13014 echo $ECHO_N "(cached) $ECHO_C" >&6
13015 else
13016 cat >conftest.$ac_ext <<_ACEOF
13017 #line 13017 "configure"
13018 #include "confdefs.h"
13019 #include <inttypes.h>
13020 #ifdef strtoumax
13021 inttypes_h_defines_strtoumax
13022 #endif
13023 _ACEOF
13024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13025 egrep "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
13026 jm_cv_func_strtoumax_macro=yes
13027 else
13028 jm_cv_func_strtoumax_macro=no
13030 rm -f conftest*
13033 echo "$as_me:13033: result: $jm_cv_func_strtoumax_macro" >&5
13034 echo "${ECHO_T}$jm_cv_func_strtoumax_macro" >&6
13036 if test "$jm_cv_func_strtoumax_macro" != yes; then
13038 for ac_func in strtoumax
13040 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13041 echo "$as_me:13041: checking for $ac_func" >&5
13042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13043 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13044 echo $ECHO_N "(cached) $ECHO_C" >&6
13045 else
13046 cat >conftest.$ac_ext <<_ACEOF
13047 #line 13047 "configure"
13048 #include "confdefs.h"
13049 /* System header to define __stub macros and hopefully few prototypes,
13050 which can conflict with char $ac_func (); below. */
13051 #include <assert.h>
13052 /* Override any gcc2 internal prototype to avoid an error. */
13053 #ifdef __cplusplus
13054 extern "C"
13055 #endif
13056 /* We use char because int might match the return type of a gcc2
13057 builtin and then its argument prototype would still apply. */
13058 char $ac_func ();
13059 char (*f) ();
13062 main ()
13064 /* The GNU C library defines this for functions which it implements
13065 to always fail with ENOSYS. Some functions are actually named
13066 something starting with __ and the normal name is an alias. */
13067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13068 choke me
13069 #else
13070 f = $ac_func;
13071 #endif
13074 return 0;
13076 _ACEOF
13077 rm -f conftest.$ac_objext conftest$ac_exeext
13078 if { (eval echo "$as_me:13078: \"$ac_link\"") >&5
13079 (eval $ac_link) 2>&5
13080 ac_status=$?
13081 echo "$as_me:13081: \$? = $ac_status" >&5
13082 (exit $ac_status); } &&
13083 { ac_try='test -s conftest$ac_exeext'
13084 { (eval echo "$as_me:13084: \"$ac_try\"") >&5
13085 (eval $ac_try) 2>&5
13086 ac_status=$?
13087 echo "$as_me:13087: \$? = $ac_status" >&5
13088 (exit $ac_status); }; }; then
13089 eval "$ac_ac_var=yes"
13090 else
13091 echo "$as_me: failed program was:" >&5
13092 cat conftest.$ac_ext >&5
13093 eval "$ac_ac_var=no"
13095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13097 echo "$as_me:13097: result: `eval echo '${'$ac_ac_var'}'`" >&5
13098 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13099 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13100 cat >>confdefs.h <<EOF
13101 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13104 else
13105 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13107 done
13111 case "$ac_cv_type_unsigned_long_long,$jm_cv_func_strtoumax_macro,$ac_cv_func_strtoumax" in
13112 yes,no,no)
13114 for ac_func in strtoull
13116 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13117 echo "$as_me:13117: checking for $ac_func" >&5
13118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13119 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13120 echo $ECHO_N "(cached) $ECHO_C" >&6
13121 else
13122 cat >conftest.$ac_ext <<_ACEOF
13123 #line 13123 "configure"
13124 #include "confdefs.h"
13125 /* System header to define __stub macros and hopefully few prototypes,
13126 which can conflict with char $ac_func (); below. */
13127 #include <assert.h>
13128 /* Override any gcc2 internal prototype to avoid an error. */
13129 #ifdef __cplusplus
13130 extern "C"
13131 #endif
13132 /* We use char because int might match the return type of a gcc2
13133 builtin and then its argument prototype would still apply. */
13134 char $ac_func ();
13135 char (*f) ();
13138 main ()
13140 /* The GNU C library defines this for functions which it implements
13141 to always fail with ENOSYS. Some functions are actually named
13142 something starting with __ and the normal name is an alias. */
13143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13144 choke me
13145 #else
13146 f = $ac_func;
13147 #endif
13150 return 0;
13152 _ACEOF
13153 rm -f conftest.$ac_objext conftest$ac_exeext
13154 if { (eval echo "$as_me:13154: \"$ac_link\"") >&5
13155 (eval $ac_link) 2>&5
13156 ac_status=$?
13157 echo "$as_me:13157: \$? = $ac_status" >&5
13158 (exit $ac_status); } &&
13159 { ac_try='test -s conftest$ac_exeext'
13160 { (eval echo "$as_me:13160: \"$ac_try\"") >&5
13161 (eval $ac_try) 2>&5
13162 ac_status=$?
13163 echo "$as_me:13163: \$? = $ac_status" >&5
13164 (exit $ac_status); }; }; then
13165 eval "$ac_ac_var=yes"
13166 else
13167 echo "$as_me: failed program was:" >&5
13168 cat conftest.$ac_ext >&5
13169 eval "$ac_ac_var=no"
13171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13173 echo "$as_me:13173: result: `eval echo '${'$ac_ac_var'}'`" >&5
13174 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13175 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13176 cat >>confdefs.h <<EOF
13177 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13180 else
13181 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
13183 done
13186 esac
13188 echo "$as_me:13188: checking whether link(2) follows symlinks" >&5
13189 echo $ECHO_N "checking whether link(2) follows symlinks... $ECHO_C" >&6
13190 if test "${jm_ac_cv_func_link_follows_symlink+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 else
13194 test -z "$ac_cv_header_unistd_h" \
13196 for ac_header in unistd.h
13198 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
13199 echo "$as_me:13199: checking for $ac_header" >&5
13200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13201 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
13202 echo $ECHO_N "(cached) $ECHO_C" >&6
13203 else
13204 cat >conftest.$ac_ext <<_ACEOF
13205 #line 13205 "configure"
13206 #include "confdefs.h"
13207 #include <$ac_header>
13208 _ACEOF
13209 if { (eval echo "$as_me:13209: \"$ac_cpp conftest.$ac_ext\"") >&5
13210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13211 ac_status=$?
13212 egrep -v '^ *\+' conftest.er1 >conftest.err
13213 rm -f conftest.er1
13214 cat conftest.err >&5
13215 echo "$as_me:13215: \$? = $ac_status" >&5
13216 (exit $ac_status); } >/dev/null; then
13217 if test -s conftest.err; then
13218 ac_cpp_err=$ac_c_preproc_warn_flag
13219 else
13220 ac_cpp_err=
13222 else
13223 ac_cpp_err=yes
13225 if test -z "$ac_cpp_err"; then
13226 eval "$ac_ac_Header=yes"
13227 else
13228 echo "$as_me: failed program was:" >&5
13229 cat conftest.$ac_ext >&5
13230 eval "$ac_ac_Header=no"
13232 rm -f conftest.err conftest.$ac_ext
13234 echo "$as_me:13234: result: `eval echo '${'$ac_ac_Header'}'`" >&5
13235 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
13236 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
13237 cat >>confdefs.h <<EOF
13238 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
13242 done
13244 # Create a regular file.
13245 echo > conftest.file
13246 if test "$cross_compiling" = yes; then
13247 jm_ac_cv_func_link_follows_symlink=yes
13248 else
13249 cat >conftest.$ac_ext <<_ACEOF
13250 #line 13250 "configure"
13251 #include "confdefs.h"
13253 # include <sys/types.h>
13254 # include <sys/stat.h>
13255 # ifdef HAVE_UNISTD_H
13256 # include <unistd.h>
13257 # endif
13259 # define SAME_INODE(Stat_buf_1, Stat_buf_2) \
13260 ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
13261 && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
13264 main ()
13266 const char *file = "conftest.file";
13267 const char *sym = "conftest.sym";
13268 const char *hard = "conftest.hard";
13269 struct stat sb_file, sb_hard;
13271 /* Create a symlink to the regular file. */
13272 if (symlink (file, sym))
13273 abort ();
13275 /* Create a hard link to that symlink. */
13276 if (link (sym, hard))
13277 abort ();
13279 if (lstat (hard, &sb_hard))
13280 abort ();
13281 if (lstat (file, &sb_file))
13282 abort ();
13284 /* If the dev/inode of hard and file are the same, then
13285 the link call followed the symlink. */
13286 return SAME_INODE (sb_hard, sb_file) ? 0 : 1;
13289 _ACEOF
13290 rm -f conftest$ac_exeext
13291 if { (eval echo "$as_me:13291: \"$ac_link\"") >&5
13292 (eval $ac_link) 2>&5
13293 ac_status=$?
13294 echo "$as_me:13294: \$? = $ac_status" >&5
13295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13296 { (eval echo "$as_me:13296: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13298 ac_status=$?
13299 echo "$as_me:13299: \$? = $ac_status" >&5
13300 (exit $ac_status); }; }; then
13301 jm_ac_cv_func_link_follows_symlink=yes
13302 else
13303 echo "$as_me: program exited with status $ac_status" >&5
13304 echo "$as_me: failed program was:" >&5
13305 cat conftest.$ac_ext >&5
13306 jm_ac_cv_func_link_follows_symlink=no
13308 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
13312 echo "$as_me:13312: result: $jm_ac_cv_func_link_follows_symlink" >&5
13313 echo "${ECHO_T}$jm_ac_cv_func_link_follows_symlink" >&6
13314 if test $jm_ac_cv_func_link_follows_symlink = yes; then
13316 cat >>confdefs.h <<\EOF
13317 #define LINK_FOLLOWS_SYMLINKS 1
13322 echo "$as_me:13322: checking for error_at_line" >&5
13323 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
13324 if test "${am_cv_lib_error_at_line+set}" = set; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13326 else
13327 cat >conftest.$ac_ext <<_ACEOF
13328 #line 13328 "configure"
13329 #include "confdefs.h"
13332 main ()
13334 error_at_line(0, 0, "", 0, "");
13336 return 0;
13338 _ACEOF
13339 rm -f conftest.$ac_objext conftest$ac_exeext
13340 if { (eval echo "$as_me:13340: \"$ac_link\"") >&5
13341 (eval $ac_link) 2>&5
13342 ac_status=$?
13343 echo "$as_me:13343: \$? = $ac_status" >&5
13344 (exit $ac_status); } &&
13345 { ac_try='test -s conftest$ac_exeext'
13346 { (eval echo "$as_me:13346: \"$ac_try\"") >&5
13347 (eval $ac_try) 2>&5
13348 ac_status=$?
13349 echo "$as_me:13349: \$? = $ac_status" >&5
13350 (exit $ac_status); }; }; then
13351 am_cv_lib_error_at_line=yes
13352 else
13353 echo "$as_me: failed program was:" >&5
13354 cat conftest.$ac_ext >&5
13355 am_cv_lib_error_at_line=no
13357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13359 echo "$as_me:13359: result: $am_cv_lib_error_at_line" >&5
13360 echo "${ECHO_T}$am_cv_lib_error_at_line" >&6
13361 if test $am_cv_lib_error_at_line = no; then
13362 LIBOBJS="$LIBOBJS error.$ac_objext"
13365 for ac_func in localtime_r
13367 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13368 echo "$as_me:13368: checking for $ac_func" >&5
13369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13370 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
13372 else
13373 cat >conftest.$ac_ext <<_ACEOF
13374 #line 13374 "configure"
13375 #include "confdefs.h"
13376 /* System header to define __stub macros and hopefully few prototypes,
13377 which can conflict with char $ac_func (); below. */
13378 #include <assert.h>
13379 /* Override any gcc2 internal prototype to avoid an error. */
13380 #ifdef __cplusplus
13381 extern "C"
13382 #endif
13383 /* We use char because int might match the return type of a gcc2
13384 builtin and then its argument prototype would still apply. */
13385 char $ac_func ();
13386 char (*f) ();
13389 main ()
13391 /* The GNU C library defines this for functions which it implements
13392 to always fail with ENOSYS. Some functions are actually named
13393 something starting with __ and the normal name is an alias. */
13394 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13395 choke me
13396 #else
13397 f = $ac_func;
13398 #endif
13401 return 0;
13403 _ACEOF
13404 rm -f conftest.$ac_objext conftest$ac_exeext
13405 if { (eval echo "$as_me:13405: \"$ac_link\"") >&5
13406 (eval $ac_link) 2>&5
13407 ac_status=$?
13408 echo "$as_me:13408: \$? = $ac_status" >&5
13409 (exit $ac_status); } &&
13410 { ac_try='test -s conftest$ac_exeext'
13411 { (eval echo "$as_me:13411: \"$ac_try\"") >&5
13412 (eval $ac_try) 2>&5
13413 ac_status=$?
13414 echo "$as_me:13414: \$? = $ac_status" >&5
13415 (exit $ac_status); }; }; then
13416 eval "$ac_ac_var=yes"
13417 else
13418 echo "$as_me: failed program was:" >&5
13419 cat conftest.$ac_ext >&5
13420 eval "$ac_ac_var=no"
13422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13424 echo "$as_me:13424: result: `eval echo '${'$ac_ac_var'}'`" >&5
13425 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13426 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13427 cat >>confdefs.h <<EOF
13428 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13432 done
13434 for ac_header in limits.h
13436 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
13437 echo "$as_me:13437: checking for $ac_header" >&5
13438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13439 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
13440 echo $ECHO_N "(cached) $ECHO_C" >&6
13441 else
13442 cat >conftest.$ac_ext <<_ACEOF
13443 #line 13443 "configure"
13444 #include "confdefs.h"
13445 #include <$ac_header>
13446 _ACEOF
13447 if { (eval echo "$as_me:13447: \"$ac_cpp conftest.$ac_ext\"") >&5
13448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13449 ac_status=$?
13450 egrep -v '^ *\+' conftest.er1 >conftest.err
13451 rm -f conftest.er1
13452 cat conftest.err >&5
13453 echo "$as_me:13453: \$? = $ac_status" >&5
13454 (exit $ac_status); } >/dev/null; then
13455 if test -s conftest.err; then
13456 ac_cpp_err=$ac_c_preproc_warn_flag
13457 else
13458 ac_cpp_err=
13460 else
13461 ac_cpp_err=yes
13463 if test -z "$ac_cpp_err"; then
13464 eval "$ac_ac_Header=yes"
13465 else
13466 echo "$as_me: failed program was:" >&5
13467 cat conftest.$ac_ext >&5
13468 eval "$ac_ac_Header=no"
13470 rm -f conftest.err conftest.$ac_ext
13472 echo "$as_me:13472: result: `eval echo '${'$ac_ac_Header'}'`" >&5
13473 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
13474 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
13475 cat >>confdefs.h <<EOF
13476 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
13480 done
13482 for ac_func in bcopy tzset mempcpy memcpy memset
13484 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13485 echo "$as_me:13485: checking for $ac_func" >&5
13486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13487 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13489 else
13490 cat >conftest.$ac_ext <<_ACEOF
13491 #line 13491 "configure"
13492 #include "confdefs.h"
13493 /* System header to define __stub macros and hopefully few prototypes,
13494 which can conflict with char $ac_func (); below. */
13495 #include <assert.h>
13496 /* Override any gcc2 internal prototype to avoid an error. */
13497 #ifdef __cplusplus
13498 extern "C"
13499 #endif
13500 /* We use char because int might match the return type of a gcc2
13501 builtin and then its argument prototype would still apply. */
13502 char $ac_func ();
13503 char (*f) ();
13506 main ()
13508 /* The GNU C library defines this for functions which it implements
13509 to always fail with ENOSYS. Some functions are actually named
13510 something starting with __ and the normal name is an alias. */
13511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13512 choke me
13513 #else
13514 f = $ac_func;
13515 #endif
13518 return 0;
13520 _ACEOF
13521 rm -f conftest.$ac_objext conftest$ac_exeext
13522 if { (eval echo "$as_me:13522: \"$ac_link\"") >&5
13523 (eval $ac_link) 2>&5
13524 ac_status=$?
13525 echo "$as_me:13525: \$? = $ac_status" >&5
13526 (exit $ac_status); } &&
13527 { ac_try='test -s conftest$ac_exeext'
13528 { (eval echo "$as_me:13528: \"$ac_try\"") >&5
13529 (eval $ac_try) 2>&5
13530 ac_status=$?
13531 echo "$as_me:13531: \$? = $ac_status" >&5
13532 (exit $ac_status); }; }; then
13533 eval "$ac_ac_var=yes"
13534 else
13535 echo "$as_me: failed program was:" >&5
13536 cat conftest.$ac_ext >&5
13537 eval "$ac_ac_var=no"
13539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13541 echo "$as_me:13541: result: `eval echo '${'$ac_ac_var'}'`" >&5
13542 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13543 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13544 cat >>confdefs.h <<EOF
13545 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13549 done
13551 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
13552 echo "$as_me:13552: checking for struct tm.tm_zone" >&5
13553 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
13554 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13556 else
13557 cat >conftest.$ac_ext <<_ACEOF
13558 #line 13558 "configure"
13559 #include "confdefs.h"
13560 #include <sys/types.h>
13561 #include <$ac_cv_struct_tm>
13564 main ()
13566 struct tm foo;
13567 foo.tm_zone;
13569 return 0;
13571 _ACEOF
13572 rm -f conftest.$ac_objext
13573 if { (eval echo "$as_me:13573: \"$ac_compile\"") >&5
13574 (eval $ac_compile) 2>&5
13575 ac_status=$?
13576 echo "$as_me:13576: \$? = $ac_status" >&5
13577 (exit $ac_status); } &&
13578 { ac_try='test -s conftest.$ac_objext'
13579 { (eval echo "$as_me:13579: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13581 ac_status=$?
13582 echo "$as_me:13582: \$? = $ac_status" >&5
13583 (exit $ac_status); }; }; then
13584 ac_cv_member_struct_tm_tm_zone=yes
13585 else
13586 echo "$as_me: failed program was:" >&5
13587 cat conftest.$ac_ext >&5
13588 ac_cv_member_struct_tm_tm_zone=no
13590 rm -f conftest.$ac_objext conftest.$ac_ext
13592 echo "$as_me:13592: result: $ac_cv_member_struct_tm_tm_zone" >&5
13593 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
13594 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13596 cat >>confdefs.h <<EOF
13597 #define HAVE_STRUCT_TM_TM_ZONE 1
13602 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13604 cat >>confdefs.h <<\EOF
13605 #define HAVE_TM_ZONE 1
13608 else
13609 echo "$as_me:13609: checking for tzname" >&5
13610 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
13611 if test "${ac_cv_var_tzname+set}" = set; then
13612 echo $ECHO_N "(cached) $ECHO_C" >&6
13613 else
13614 cat >conftest.$ac_ext <<_ACEOF
13615 #line 13615 "configure"
13616 #include "confdefs.h"
13617 #include <time.h>
13618 #ifndef tzname /* For SGI. */
13619 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
13620 #endif
13623 main ()
13625 atoi(*tzname);
13627 return 0;
13629 _ACEOF
13630 rm -f conftest.$ac_objext conftest$ac_exeext
13631 if { (eval echo "$as_me:13631: \"$ac_link\"") >&5
13632 (eval $ac_link) 2>&5
13633 ac_status=$?
13634 echo "$as_me:13634: \$? = $ac_status" >&5
13635 (exit $ac_status); } &&
13636 { ac_try='test -s conftest$ac_exeext'
13637 { (eval echo "$as_me:13637: \"$ac_try\"") >&5
13638 (eval $ac_try) 2>&5
13639 ac_status=$?
13640 echo "$as_me:13640: \$? = $ac_status" >&5
13641 (exit $ac_status); }; }; then
13642 ac_cv_var_tzname=yes
13643 else
13644 echo "$as_me: failed program was:" >&5
13645 cat conftest.$ac_ext >&5
13646 ac_cv_var_tzname=no
13648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13650 echo "$as_me:13650: result: $ac_cv_var_tzname" >&5
13651 echo "${ECHO_T}$ac_cv_var_tzname" >&6
13652 if test $ac_cv_var_tzname = yes; then
13654 cat >>confdefs.h <<\EOF
13655 #define HAVE_TZNAME 1
13661 for ac_func in mblen mbrlen
13663 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13664 echo "$as_me:13664: checking for $ac_func" >&5
13665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13666 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 else
13669 cat >conftest.$ac_ext <<_ACEOF
13670 #line 13670 "configure"
13671 #include "confdefs.h"
13672 /* System header to define __stub macros and hopefully few prototypes,
13673 which can conflict with char $ac_func (); below. */
13674 #include <assert.h>
13675 /* Override any gcc2 internal prototype to avoid an error. */
13676 #ifdef __cplusplus
13677 extern "C"
13678 #endif
13679 /* We use char because int might match the return type of a gcc2
13680 builtin and then its argument prototype would still apply. */
13681 char $ac_func ();
13682 char (*f) ();
13685 main ()
13687 /* The GNU C library defines this for functions which it implements
13688 to always fail with ENOSYS. Some functions are actually named
13689 something starting with __ and the normal name is an alias. */
13690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13691 choke me
13692 #else
13693 f = $ac_func;
13694 #endif
13697 return 0;
13699 _ACEOF
13700 rm -f conftest.$ac_objext conftest$ac_exeext
13701 if { (eval echo "$as_me:13701: \"$ac_link\"") >&5
13702 (eval $ac_link) 2>&5
13703 ac_status=$?
13704 echo "$as_me:13704: \$? = $ac_status" >&5
13705 (exit $ac_status); } &&
13706 { ac_try='test -s conftest$ac_exeext'
13707 { (eval echo "$as_me:13707: \"$ac_try\"") >&5
13708 (eval $ac_try) 2>&5
13709 ac_status=$?
13710 echo "$as_me:13710: \$? = $ac_status" >&5
13711 (exit $ac_status); }; }; then
13712 eval "$ac_ac_var=yes"
13713 else
13714 echo "$as_me: failed program was:" >&5
13715 cat conftest.$ac_ext >&5
13716 eval "$ac_ac_var=no"
13718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13720 echo "$as_me:13720: result: `eval echo '${'$ac_ac_var'}'`" >&5
13721 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
13722 if test `eval echo '${'$ac_ac_var'}'` = yes; then
13723 cat >>confdefs.h <<EOF
13724 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
13728 done
13730 echo "$as_me:13730: checking for struct tm.tm_gmtoff" >&5
13731 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
13732 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
13733 echo $ECHO_N "(cached) $ECHO_C" >&6
13734 else
13735 cat >conftest.$ac_ext <<_ACEOF
13736 #line 13736 "configure"
13737 #include "confdefs.h"
13738 #include <time.h>
13741 main ()
13743 struct tm foo;
13744 foo.tm_gmtoff;
13746 return 0;
13748 _ACEOF
13749 rm -f conftest.$ac_objext
13750 if { (eval echo "$as_me:13750: \"$ac_compile\"") >&5
13751 (eval $ac_compile) 2>&5
13752 ac_status=$?
13753 echo "$as_me:13753: \$? = $ac_status" >&5
13754 (exit $ac_status); } &&
13755 { ac_try='test -s conftest.$ac_objext'
13756 { (eval echo "$as_me:13756: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13758 ac_status=$?
13759 echo "$as_me:13759: \$? = $ac_status" >&5
13760 (exit $ac_status); }; }; then
13761 ac_cv_member_struct_tm_tm_gmtoff=yes
13762 else
13763 echo "$as_me: failed program was:" >&5
13764 cat conftest.$ac_ext >&5
13765 ac_cv_member_struct_tm_tm_gmtoff=no
13767 rm -f conftest.$ac_objext conftest.$ac_ext
13769 echo "$as_me:13769: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
13770 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
13771 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
13773 cat >>confdefs.h <<\EOF
13774 #define HAVE_TM_GMTOFF 1
13779 for ac_header in sys/time.h
13781 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
13782 echo "$as_me:13782: checking for $ac_header" >&5
13783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13784 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13786 else
13787 cat >conftest.$ac_ext <<_ACEOF
13788 #line 13788 "configure"
13789 #include "confdefs.h"
13790 #include <$ac_header>
13791 _ACEOF
13792 if { (eval echo "$as_me:13792: \"$ac_cpp conftest.$ac_ext\"") >&5
13793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13794 ac_status=$?
13795 egrep -v '^ *\+' conftest.er1 >conftest.err
13796 rm -f conftest.er1
13797 cat conftest.err >&5
13798 echo "$as_me:13798: \$? = $ac_status" >&5
13799 (exit $ac_status); } >/dev/null; then
13800 if test -s conftest.err; then
13801 ac_cpp_err=$ac_c_preproc_warn_flag
13802 else
13803 ac_cpp_err=
13805 else
13806 ac_cpp_err=yes
13808 if test -z "$ac_cpp_err"; then
13809 eval "$ac_ac_Header=yes"
13810 else
13811 echo "$as_me: failed program was:" >&5
13812 cat conftest.$ac_ext >&5
13813 eval "$ac_ac_Header=no"
13815 rm -f conftest.err conftest.$ac_ext
13817 echo "$as_me:13817: result: `eval echo '${'$ac_ac_Header'}'`" >&5
13818 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
13819 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
13820 cat >>confdefs.h <<EOF
13821 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
13825 done
13827 echo "$as_me:13827: checking for working GNU strftime" >&5
13828 echo $ECHO_N "checking for working GNU strftime... $ECHO_C" >&6
13829 if test "${jm_cv_func_working_gnu_strftime+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13831 else
13832 # Set TZ to GMT0 to make strftime give consistent results during the test.
13833 ac_save_TZ="${TZ-GMT0}"
13834 TZ=GMT0
13835 export TZ
13836 if test "$cross_compiling" = yes; then
13837 jm_cv_func_working_gnu_strftime=no
13838 else
13839 cat >conftest.$ac_ext <<_ACEOF
13840 #line 13840 "configure"
13841 #include "confdefs.h"
13842 /* Ulrich Drepper provided parts of the test program. */
13843 #if STDC_HEADERS
13844 # include <stdlib.h>
13845 #endif
13847 #if TIME_WITH_SYS_TIME
13848 # include <sys/time.h>
13849 # include <time.h>
13850 #else
13851 # if HAVE_SYS_TIME_H
13852 # include <sys/time.h>
13853 # else
13854 # include <time.h>
13855 # endif
13856 #endif
13858 static int
13859 compare (const char *fmt, const struct tm *tm, const char *expected)
13861 char buf[99];
13862 strftime (buf, 99, fmt, tm);
13863 if (strcmp (buf, expected))
13865 #ifdef SHOW_FAILURES
13866 printf ("fmt: \"%s\", expected \"%s\", got \"%s\"\n",
13867 fmt, expected, buf);
13868 #endif
13869 return 1;
13871 return 0;
13875 main ()
13877 int n_fail = 0;
13878 struct tm *tm;
13879 time_t t = 738367; /* Fri Jan 9 13:06:07 1970 */
13880 tm = gmtime (&t);
13882 #undef CMP
13883 #define CMP(Fmt, Expected) n_fail += compare ((Fmt), tm, (Expected))
13885 CMP ("%-m", "1"); /* GNU */
13886 CMP ("%A", "Friday");
13887 CMP ("%^A", "FRIDAY"); /* The ^ is a GNU extension. */
13888 CMP ("%B", "January");
13889 CMP ("%^B", "JANUARY");
13890 CMP ("%C", "19"); /* POSIX.2 */
13891 CMP ("%D", "01/09/70"); /* POSIX.2 */
13892 CMP ("%F", "1970-01-09");
13893 CMP ("%G", "1970"); /* GNU */
13894 CMP ("%H", "13");
13895 CMP ("%I", "01");
13896 CMP ("%M", "06");
13897 CMP ("%M", "06");
13898 CMP ("%R", "13:06"); /* POSIX.2 */
13899 CMP ("%S", "07");
13900 CMP ("%T", "13:06:07"); /* POSIX.2 */
13901 CMP ("%U", "01");
13902 CMP ("%V", "02");
13903 CMP ("%W", "01");
13904 CMP ("%X", "13:06:07");
13905 CMP ("%Y", "1970");
13906 CMP ("%Z", "GMT");
13907 CMP ("%_m", " 1"); /* GNU */
13908 CMP ("%a", "Fri");
13909 CMP ("%^a", "FRI");
13910 CMP ("%b", "Jan");
13911 CMP ("%^b", "JAN");
13912 CMP ("%c", "Fri Jan 9 13:06:07 1970");
13913 CMP ("%^c", "FRI JAN 9 13:06:07 1970");
13914 CMP ("%d", "09");
13915 CMP ("%e", " 9"); /* POSIX.2 */
13916 CMP ("%g", "70"); /* GNU */
13917 CMP ("%h", "Jan"); /* POSIX.2 */
13918 CMP ("%^h", "JAN");
13919 CMP ("%j", "009");
13920 CMP ("%k", "13"); /* GNU */
13921 CMP ("%l", " 1"); /* GNU */
13922 CMP ("%m", "01");
13923 CMP ("%n", "\n"); /* POSIX.2 */
13924 CMP ("%p", "PM");
13925 CMP ("%r", "01:06:07 PM"); /* POSIX.2 */
13926 CMP ("%s", "738367"); /* GNU */
13927 CMP ("%t", "\t"); /* POSIX.2 */
13928 CMP ("%u", "5"); /* POSIX.2 */
13929 CMP ("%w", "5");
13930 CMP ("%x", "01/09/70");
13931 CMP ("%y", "70");
13932 CMP ("%z", "+0000"); /* GNU */
13934 exit (n_fail ? 1 : 0);
13936 _ACEOF
13937 rm -f conftest$ac_exeext
13938 if { (eval echo "$as_me:13938: \"$ac_link\"") >&5
13939 (eval $ac_link) 2>&5
13940 ac_status=$?
13941 echo "$as_me:13941: \$? = $ac_status" >&5
13942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13943 { (eval echo "$as_me:13943: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13945 ac_status=$?
13946 echo "$as_me:13946: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13948 jm_cv_func_working_gnu_strftime=yes
13949 else
13950 echo "$as_me: program exited with status $ac_status" >&5
13951 echo "$as_me: failed program was:" >&5
13952 cat conftest.$ac_ext >&5
13953 jm_cv_func_working_gnu_strftime=no
13955 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
13957 TZ="$ac_save_TZ"
13960 echo "$as_me:13960: result: $jm_cv_func_working_gnu_strftime" >&5
13961 echo "${ECHO_T}$jm_cv_func_working_gnu_strftime" >&6
13962 if test $jm_cv_func_working_gnu_strftime = no; then
13964 LIBOBJS="$LIBOBJS strftime.$ac_objext"
13966 cat >>confdefs.h <<EOF
13967 #define strftime gnu_strftime
13972 for ac_func in vprintf
13974 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
13975 echo "$as_me:13975: checking for $ac_func" >&5
13976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13977 if eval "test \"\${$ac_ac_var+set}\" = set"; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
13979 else
13980 cat >conftest.$ac_ext <<_ACEOF
13981 #line 13981 "configure"
13982 #include "confdefs.h"
13983 /* System header to define __stub macros and hopefully few prototypes,
13984 which can conflict with char $ac_func (); below. */
13985 #include <assert.h>
13986 /* Override any gcc2 internal prototype to avoid an error. */
13987 #ifdef __cplusplus
13988 extern "C"
13989 #endif
13990 /* We use char because int might match the return type of a gcc2
13991 builtin and then its argument prototype would still apply. */
13992 char $ac_func ();
13993 char (*f) ();
13996 main ()
13998 /* The GNU C library defines this for functions which it implements
13999 to always fail with ENOSYS. Some functions are actually named
14000 something starting with __ and the normal name is an alias. */
14001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14002 choke me
14003 #else
14004 f = $ac_func;
14005 #endif
14008 return 0;
14010 _ACEOF
14011 rm -f conftest.$ac_objext conftest$ac_exeext
14012 if { (eval echo "$as_me:14012: \"$ac_link\"") >&5
14013 (eval $ac_link) 2>&5
14014 ac_status=$?
14015 echo "$as_me:14015: \$? = $ac_status" >&5
14016 (exit $ac_status); } &&
14017 { ac_try='test -s conftest$ac_exeext'
14018 { (eval echo "$as_me:14018: \"$ac_try\"") >&5
14019 (eval $ac_try) 2>&5
14020 ac_status=$?
14021 echo "$as_me:14021: \$? = $ac_status" >&5
14022 (exit $ac_status); }; }; then
14023 eval "$ac_ac_var=yes"
14024 else
14025 echo "$as_me: failed program was:" >&5
14026 cat conftest.$ac_ext >&5
14027 eval "$ac_ac_var=no"
14029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14031 echo "$as_me:14031: result: `eval echo '${'$ac_ac_var'}'`" >&5
14032 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14033 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14034 cat >>confdefs.h <<EOF
14035 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14038 echo "$as_me:14038: checking for _doprnt" >&5
14039 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
14040 if test "${ac_cv_func__doprnt+set}" = set; then
14041 echo $ECHO_N "(cached) $ECHO_C" >&6
14042 else
14043 cat >conftest.$ac_ext <<_ACEOF
14044 #line 14044 "configure"
14045 #include "confdefs.h"
14046 /* System header to define __stub macros and hopefully few prototypes,
14047 which can conflict with char _doprnt (); below. */
14048 #include <assert.h>
14049 /* Override any gcc2 internal prototype to avoid an error. */
14050 #ifdef __cplusplus
14051 extern "C"
14052 #endif
14053 /* We use char because int might match the return type of a gcc2
14054 builtin and then its argument prototype would still apply. */
14055 char _doprnt ();
14056 char (*f) ();
14059 main ()
14061 /* The GNU C library defines this for functions which it implements
14062 to always fail with ENOSYS. Some functions are actually named
14063 something starting with __ and the normal name is an alias. */
14064 #if defined (__stub__doprnt) || defined (__stub____doprnt)
14065 choke me
14066 #else
14067 f = _doprnt;
14068 #endif
14071 return 0;
14073 _ACEOF
14074 rm -f conftest.$ac_objext conftest$ac_exeext
14075 if { (eval echo "$as_me:14075: \"$ac_link\"") >&5
14076 (eval $ac_link) 2>&5
14077 ac_status=$?
14078 echo "$as_me:14078: \$? = $ac_status" >&5
14079 (exit $ac_status); } &&
14080 { ac_try='test -s conftest$ac_exeext'
14081 { (eval echo "$as_me:14081: \"$ac_try\"") >&5
14082 (eval $ac_try) 2>&5
14083 ac_status=$?
14084 echo "$as_me:14084: \$? = $ac_status" >&5
14085 (exit $ac_status); }; }; then
14086 ac_cv_func__doprnt=yes
14087 else
14088 echo "$as_me: failed program was:" >&5
14089 cat conftest.$ac_ext >&5
14090 ac_cv_func__doprnt=no
14092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14094 echo "$as_me:14094: result: $ac_cv_func__doprnt" >&5
14095 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
14096 if test $ac_cv_func__doprnt = yes; then
14098 cat >>confdefs.h <<\EOF
14099 #define HAVE_DOPRNT 1
14105 done
14107 echo "$as_me:14107: checking whether closedir returns void" >&5
14108 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
14109 if test "${ac_cv_func_closedir_void+set}" = set; then
14110 echo $ECHO_N "(cached) $ECHO_C" >&6
14111 else
14112 if test "$cross_compiling" = yes; then
14113 ac_cv_func_closedir_void=yes
14114 else
14115 cat >conftest.$ac_ext <<_ACEOF
14116 #line 14116 "configure"
14117 #include "confdefs.h"
14118 #include <sys/types.h>
14119 #include <$ac_header_dirent>
14121 int closedir ();
14123 main ()
14125 exit (closedir (opendir (".")) != 0);
14127 _ACEOF
14128 rm -f conftest$ac_exeext
14129 if { (eval echo "$as_me:14129: \"$ac_link\"") >&5
14130 (eval $ac_link) 2>&5
14131 ac_status=$?
14132 echo "$as_me:14132: \$? = $ac_status" >&5
14133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14134 { (eval echo "$as_me:14134: \"$ac_try\"") >&5
14135 (eval $ac_try) 2>&5
14136 ac_status=$?
14137 echo "$as_me:14137: \$? = $ac_status" >&5
14138 (exit $ac_status); }; }; then
14139 ac_cv_func_closedir_void=no
14140 else
14141 echo "$as_me: program exited with status $ac_status" >&5
14142 echo "$as_me: failed program was:" >&5
14143 cat conftest.$ac_ext >&5
14144 ac_cv_func_closedir_void=yes
14146 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
14149 echo "$as_me:14149: result: $ac_cv_func_closedir_void" >&5
14150 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
14151 if test $ac_cv_func_closedir_void = yes; then
14153 cat >>confdefs.h <<\EOF
14154 #define CLOSEDIR_VOID 1
14159 GNU_PACKAGE="GNU $PACKAGE"
14161 cat >>confdefs.h <<EOF
14162 #define GNU_PACKAGE "$GNU_PACKAGE"
14165 for ac_header in \
14166 errno.h \
14167 fcntl.h \
14168 fenv.h \
14169 float.h \
14170 limits.h \
14171 memory.h \
14172 mntent.h \
14173 mnttab.h \
14174 netdb.h \
14175 paths.h \
14176 stdlib.h \
14177 stddef.h \
14178 string.h \
14179 sys/acl.h \
14180 sys/filsys.h \
14181 sys/fs/s5param.h \
14182 sys/fs_types.h \
14183 sys/fstyp.h \
14184 sys/ioctl.h \
14185 sys/mntent.h \
14186 sys/mount.h \
14187 sys/param.h \
14188 sys/socket.h \
14189 sys/statfs.h \
14190 sys/statvfs.h \
14191 sys/systeminfo.h \
14192 sys/time.h \
14193 sys/timeb.h \
14194 sys/vfs.h \
14195 sys/wait.h \
14196 syslog.h \
14197 termios.h \
14198 unistd.h \
14199 values.h \
14202 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
14203 echo "$as_me:14203: checking for $ac_header" >&5
14204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14205 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
14206 echo $ECHO_N "(cached) $ECHO_C" >&6
14207 else
14208 cat >conftest.$ac_ext <<_ACEOF
14209 #line 14209 "configure"
14210 #include "confdefs.h"
14211 #include <$ac_header>
14212 _ACEOF
14213 if { (eval echo "$as_me:14213: \"$ac_cpp conftest.$ac_ext\"") >&5
14214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14215 ac_status=$?
14216 egrep -v '^ *\+' conftest.er1 >conftest.err
14217 rm -f conftest.er1
14218 cat conftest.err >&5
14219 echo "$as_me:14219: \$? = $ac_status" >&5
14220 (exit $ac_status); } >/dev/null; then
14221 if test -s conftest.err; then
14222 ac_cpp_err=$ac_c_preproc_warn_flag
14223 else
14224 ac_cpp_err=
14226 else
14227 ac_cpp_err=yes
14229 if test -z "$ac_cpp_err"; then
14230 eval "$ac_ac_Header=yes"
14231 else
14232 echo "$as_me: failed program was:" >&5
14233 cat conftest.$ac_ext >&5
14234 eval "$ac_ac_Header=no"
14236 rm -f conftest.err conftest.$ac_ext
14238 echo "$as_me:14238: result: `eval echo '${'$ac_ac_Header'}'`" >&5
14239 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
14240 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
14241 cat >>confdefs.h <<EOF
14242 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
14246 done
14248 # Assume we'll default to using the included regex.c.
14249 ac_use_included_regex=yes
14251 # However, if the system regex support is good enough that it passes the
14252 # the following run test, then default to *not* using the included regex.c.
14253 # If cross compiling, assume the test would fail and use the included
14254 # regex.c. The first failing regular expression is from `Spencer ere
14255 # test #75' in grep-2.3.
14256 echo "$as_me:14256: checking for working re_compile_pattern" >&5
14257 echo $ECHO_N "checking for working re_compile_pattern... $ECHO_C" >&6
14258 if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
14259 echo $ECHO_N "(cached) $ECHO_C" >&6
14260 else
14261 if test "$cross_compiling" = yes; then
14262 jm_cv_func_working_re_compile_pattern=no
14263 else
14264 cat >conftest.$ac_ext <<_ACEOF
14265 #line 14265 "configure"
14266 #include "confdefs.h"
14267 #include <stdio.h>
14268 #include <regex.h>
14270 main ()
14272 static struct re_pattern_buffer regex;
14273 const char *s;
14274 re_set_syntax (RE_SYNTAX_POSIX_EGREP);
14275 /* Add this third left square bracket, , to balance the
14276 three right ones below. Otherwise autoconf-2.14 chokes. */
14277 s = re_compile_pattern ("a[[:]:]b\n", 9, &regex);
14278 /* This should fail with _Invalid character class name_ error. */
14279 if (!s)
14280 exit (1);
14282 /* This should succeed, but doesn't for e.g. glibc-2.1.3. */
14283 s = re_compile_pattern ("{1", 2, &regex);
14285 exit (s ? 1 : 0);
14288 _ACEOF
14289 rm -f conftest$ac_exeext
14290 if { (eval echo "$as_me:14290: \"$ac_link\"") >&5
14291 (eval $ac_link) 2>&5
14292 ac_status=$?
14293 echo "$as_me:14293: \$? = $ac_status" >&5
14294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14295 { (eval echo "$as_me:14295: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14297 ac_status=$?
14298 echo "$as_me:14298: \$? = $ac_status" >&5
14299 (exit $ac_status); }; }; then
14300 jm_cv_func_working_re_compile_pattern=yes
14301 else
14302 echo "$as_me: program exited with status $ac_status" >&5
14303 echo "$as_me: failed program was:" >&5
14304 cat conftest.$ac_ext >&5
14305 jm_cv_func_working_re_compile_pattern=no
14307 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
14310 echo "$as_me:14310: result: $jm_cv_func_working_re_compile_pattern" >&5
14311 echo "${ECHO_T}$jm_cv_func_working_re_compile_pattern" >&6
14312 if test $jm_cv_func_working_re_compile_pattern = yes; then
14313 ac_use_included_regex=no
14316 test -n "lib/regex.c" || { { echo "$as_me:14316: error: missing argument" >&5
14317 echo "$as_me: error: missing argument" >&2;}
14318 { (exit 1); exit 1; }; }
14320 # Check whether --with-included-regex or --without-included-regex was given.
14321 if test "${with_included_regex+set}" = set; then
14322 withval="$with_included_regex"
14323 jm_with_regex=$withval
14324 else
14325 jm_with_regex=$ac_use_included_regex
14327 if test "$jm_with_regex" = yes; then
14329 LIBOBJS="$LIBOBJS regex.$ac_objext"
14332 for ac_func in strncasecmp
14334 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14335 echo "$as_me:14335: checking for $ac_func" >&5
14336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14337 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14338 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 else
14340 cat >conftest.$ac_ext <<_ACEOF
14341 #line 14341 "configure"
14342 #include "confdefs.h"
14343 /* System header to define __stub macros and hopefully few prototypes,
14344 which can conflict with char $ac_func (); below. */
14345 #include <assert.h>
14346 /* Override any gcc2 internal prototype to avoid an error. */
14347 #ifdef __cplusplus
14348 extern "C"
14349 #endif
14350 /* We use char because int might match the return type of a gcc2
14351 builtin and then its argument prototype would still apply. */
14352 char $ac_func ();
14353 char (*f) ();
14356 main ()
14358 /* The GNU C library defines this for functions which it implements
14359 to always fail with ENOSYS. Some functions are actually named
14360 something starting with __ and the normal name is an alias. */
14361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14362 choke me
14363 #else
14364 f = $ac_func;
14365 #endif
14368 return 0;
14370 _ACEOF
14371 rm -f conftest.$ac_objext conftest$ac_exeext
14372 if { (eval echo "$as_me:14372: \"$ac_link\"") >&5
14373 (eval $ac_link) 2>&5
14374 ac_status=$?
14375 echo "$as_me:14375: \$? = $ac_status" >&5
14376 (exit $ac_status); } &&
14377 { ac_try='test -s conftest$ac_exeext'
14378 { (eval echo "$as_me:14378: \"$ac_try\"") >&5
14379 (eval $ac_try) 2>&5
14380 ac_status=$?
14381 echo "$as_me:14381: \$? = $ac_status" >&5
14382 (exit $ac_status); }; }; then
14383 eval "$ac_ac_var=yes"
14384 else
14385 echo "$as_me: failed program was:" >&5
14386 cat conftest.$ac_ext >&5
14387 eval "$ac_ac_var=no"
14389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14391 echo "$as_me:14391: result: `eval echo '${'$ac_ac_var'}'`" >&5
14392 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14393 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14394 cat >>confdefs.h <<EOF
14395 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14398 else
14399 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14401 done
14403 for ac_func in stpcpy strstr strtol strtoul
14405 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14406 echo "$as_me:14406: checking for $ac_func" >&5
14407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14408 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14409 echo $ECHO_N "(cached) $ECHO_C" >&6
14410 else
14411 cat >conftest.$ac_ext <<_ACEOF
14412 #line 14412 "configure"
14413 #include "confdefs.h"
14414 /* System header to define __stub macros and hopefully few prototypes,
14415 which can conflict with char $ac_func (); below. */
14416 #include <assert.h>
14417 /* Override any gcc2 internal prototype to avoid an error. */
14418 #ifdef __cplusplus
14419 extern "C"
14420 #endif
14421 /* We use char because int might match the return type of a gcc2
14422 builtin and then its argument prototype would still apply. */
14423 char $ac_func ();
14424 char (*f) ();
14427 main ()
14429 /* The GNU C library defines this for functions which it implements
14430 to always fail with ENOSYS. Some functions are actually named
14431 something starting with __ and the normal name is an alias. */
14432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14433 choke me
14434 #else
14435 f = $ac_func;
14436 #endif
14439 return 0;
14441 _ACEOF
14442 rm -f conftest.$ac_objext conftest$ac_exeext
14443 if { (eval echo "$as_me:14443: \"$ac_link\"") >&5
14444 (eval $ac_link) 2>&5
14445 ac_status=$?
14446 echo "$as_me:14446: \$? = $ac_status" >&5
14447 (exit $ac_status); } &&
14448 { ac_try='test -s conftest$ac_exeext'
14449 { (eval echo "$as_me:14449: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14451 ac_status=$?
14452 echo "$as_me:14452: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14454 eval "$ac_ac_var=yes"
14455 else
14456 echo "$as_me: failed program was:" >&5
14457 cat conftest.$ac_ext >&5
14458 eval "$ac_ac_var=no"
14460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14462 echo "$as_me:14462: result: `eval echo '${'$ac_ac_var'}'`" >&5
14463 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14464 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14465 cat >>confdefs.h <<EOF
14466 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14469 else
14470 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14472 done
14474 for ac_func in memcmp rpmatch
14476 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14477 echo "$as_me:14477: checking for $ac_func" >&5
14478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14479 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
14481 else
14482 cat >conftest.$ac_ext <<_ACEOF
14483 #line 14483 "configure"
14484 #include "confdefs.h"
14485 /* System header to define __stub macros and hopefully few prototypes,
14486 which can conflict with char $ac_func (); below. */
14487 #include <assert.h>
14488 /* Override any gcc2 internal prototype to avoid an error. */
14489 #ifdef __cplusplus
14490 extern "C"
14491 #endif
14492 /* We use char because int might match the return type of a gcc2
14493 builtin and then its argument prototype would still apply. */
14494 char $ac_func ();
14495 char (*f) ();
14498 main ()
14500 /* The GNU C library defines this for functions which it implements
14501 to always fail with ENOSYS. Some functions are actually named
14502 something starting with __ and the normal name is an alias. */
14503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14504 choke me
14505 #else
14506 f = $ac_func;
14507 #endif
14510 return 0;
14512 _ACEOF
14513 rm -f conftest.$ac_objext conftest$ac_exeext
14514 if { (eval echo "$as_me:14514: \"$ac_link\"") >&5
14515 (eval $ac_link) 2>&5
14516 ac_status=$?
14517 echo "$as_me:14517: \$? = $ac_status" >&5
14518 (exit $ac_status); } &&
14519 { ac_try='test -s conftest$ac_exeext'
14520 { (eval echo "$as_me:14520: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14522 ac_status=$?
14523 echo "$as_me:14523: \$? = $ac_status" >&5
14524 (exit $ac_status); }; }; then
14525 eval "$ac_ac_var=yes"
14526 else
14527 echo "$as_me: failed program was:" >&5
14528 cat conftest.$ac_ext >&5
14529 eval "$ac_ac_var=no"
14531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14533 echo "$as_me:14533: result: `eval echo '${'$ac_ac_var'}'`" >&5
14534 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14535 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14536 cat >>confdefs.h <<EOF
14537 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14540 else
14541 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14543 done
14545 for ac_func in strdup
14547 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14548 echo "$as_me:14548: checking for $ac_func" >&5
14549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14550 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14551 echo $ECHO_N "(cached) $ECHO_C" >&6
14552 else
14553 cat >conftest.$ac_ext <<_ACEOF
14554 #line 14554 "configure"
14555 #include "confdefs.h"
14556 /* System header to define __stub macros and hopefully few prototypes,
14557 which can conflict with char $ac_func (); below. */
14558 #include <assert.h>
14559 /* Override any gcc2 internal prototype to avoid an error. */
14560 #ifdef __cplusplus
14561 extern "C"
14562 #endif
14563 /* We use char because int might match the return type of a gcc2
14564 builtin and then its argument prototype would still apply. */
14565 char $ac_func ();
14566 char (*f) ();
14569 main ()
14571 /* The GNU C library defines this for functions which it implements
14572 to always fail with ENOSYS. Some functions are actually named
14573 something starting with __ and the normal name is an alias. */
14574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14575 choke me
14576 #else
14577 f = $ac_func;
14578 #endif
14581 return 0;
14583 _ACEOF
14584 rm -f conftest.$ac_objext conftest$ac_exeext
14585 if { (eval echo "$as_me:14585: \"$ac_link\"") >&5
14586 (eval $ac_link) 2>&5
14587 ac_status=$?
14588 echo "$as_me:14588: \$? = $ac_status" >&5
14589 (exit $ac_status); } &&
14590 { ac_try='test -s conftest$ac_exeext'
14591 { (eval echo "$as_me:14591: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5
14593 ac_status=$?
14594 echo "$as_me:14594: \$? = $ac_status" >&5
14595 (exit $ac_status); }; }; then
14596 eval "$ac_ac_var=yes"
14597 else
14598 echo "$as_me: failed program was:" >&5
14599 cat conftest.$ac_ext >&5
14600 eval "$ac_ac_var=no"
14602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14604 echo "$as_me:14604: result: `eval echo '${'$ac_ac_var'}'`" >&5
14605 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14606 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14607 cat >>confdefs.h <<EOF
14608 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14611 else
14612 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14614 done
14616 for ac_func in memcpy memset
14618 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14619 echo "$as_me:14619: checking for $ac_func" >&5
14620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14621 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14622 echo $ECHO_N "(cached) $ECHO_C" >&6
14623 else
14624 cat >conftest.$ac_ext <<_ACEOF
14625 #line 14625 "configure"
14626 #include "confdefs.h"
14627 /* System header to define __stub macros and hopefully few prototypes,
14628 which can conflict with char $ac_func (); below. */
14629 #include <assert.h>
14630 /* Override any gcc2 internal prototype to avoid an error. */
14631 #ifdef __cplusplus
14632 extern "C"
14633 #endif
14634 /* We use char because int might match the return type of a gcc2
14635 builtin and then its argument prototype would still apply. */
14636 char $ac_func ();
14637 char (*f) ();
14640 main ()
14642 /* The GNU C library defines this for functions which it implements
14643 to always fail with ENOSYS. Some functions are actually named
14644 something starting with __ and the normal name is an alias. */
14645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14646 choke me
14647 #else
14648 f = $ac_func;
14649 #endif
14652 return 0;
14654 _ACEOF
14655 rm -f conftest.$ac_objext conftest$ac_exeext
14656 if { (eval echo "$as_me:14656: \"$ac_link\"") >&5
14657 (eval $ac_link) 2>&5
14658 ac_status=$?
14659 echo "$as_me:14659: \$? = $ac_status" >&5
14660 (exit $ac_status); } &&
14661 { ac_try='test -s conftest$ac_exeext'
14662 { (eval echo "$as_me:14662: \"$ac_try\"") >&5
14663 (eval $ac_try) 2>&5
14664 ac_status=$?
14665 echo "$as_me:14665: \$? = $ac_status" >&5
14666 (exit $ac_status); }; }; then
14667 eval "$ac_ac_var=yes"
14668 else
14669 echo "$as_me: failed program was:" >&5
14670 cat conftest.$ac_ext >&5
14671 eval "$ac_ac_var=no"
14673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14675 echo "$as_me:14675: result: `eval echo '${'$ac_ac_var'}'`" >&5
14676 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14677 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14678 cat >>confdefs.h <<EOF
14679 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14682 else
14683 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
14685 done
14687 for ac_func in getpagesize
14689 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14690 echo "$as_me:14690: checking for $ac_func" >&5
14691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14692 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14693 echo $ECHO_N "(cached) $ECHO_C" >&6
14694 else
14695 cat >conftest.$ac_ext <<_ACEOF
14696 #line 14696 "configure"
14697 #include "confdefs.h"
14698 /* System header to define __stub macros and hopefully few prototypes,
14699 which can conflict with char $ac_func (); below. */
14700 #include <assert.h>
14701 /* Override any gcc2 internal prototype to avoid an error. */
14702 #ifdef __cplusplus
14703 extern "C"
14704 #endif
14705 /* We use char because int might match the return type of a gcc2
14706 builtin and then its argument prototype would still apply. */
14707 char $ac_func ();
14708 char (*f) ();
14711 main ()
14713 /* The GNU C library defines this for functions which it implements
14714 to always fail with ENOSYS. Some functions are actually named
14715 something starting with __ and the normal name is an alias. */
14716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14717 choke me
14718 #else
14719 f = $ac_func;
14720 #endif
14723 return 0;
14725 _ACEOF
14726 rm -f conftest.$ac_objext conftest$ac_exeext
14727 if { (eval echo "$as_me:14727: \"$ac_link\"") >&5
14728 (eval $ac_link) 2>&5
14729 ac_status=$?
14730 echo "$as_me:14730: \$? = $ac_status" >&5
14731 (exit $ac_status); } &&
14732 { ac_try='test -s conftest$ac_exeext'
14733 { (eval echo "$as_me:14733: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 echo "$as_me:14736: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14738 eval "$ac_ac_var=yes"
14739 else
14740 echo "$as_me: failed program was:" >&5
14741 cat conftest.$ac_ext >&5
14742 eval "$ac_ac_var=no"
14744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14746 echo "$as_me:14746: result: `eval echo '${'$ac_ac_var'}'`" >&5
14747 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14748 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14749 cat >>confdefs.h <<EOF
14750 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14754 done
14756 # By default, argmatch should fail calling usage (1).
14758 cat >>confdefs.h <<\EOF
14759 #define ARGMATCH_DIE usage (1)
14762 cat >>confdefs.h <<\EOF
14763 #define ARGMATCH_DIE_DECL extern void usage ()
14766 echo "$as_me:14766: checking whether setvbuf arguments are reversed" >&5
14767 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
14768 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14770 else
14771 if test "$cross_compiling" = yes; then
14772 { { echo "$as_me:14772: error: cannot run test program while cross compiling" >&5
14773 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14774 { (exit 1); exit 1; }; }
14775 else
14776 cat >conftest.$ac_ext <<_ACEOF
14777 #line 14777 "configure"
14778 #include "confdefs.h"
14779 #include <stdio.h>
14780 /* If setvbuf has the reversed format, exit 0. */
14782 main ()
14784 /* This call has the arguments reversed.
14785 A reversed system may check and see that the address of main
14786 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
14787 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
14788 exit(1);
14789 putc('\r', stdout);
14790 exit(0); /* Non-reversed systems segv here. */
14792 _ACEOF
14793 rm -f conftest$ac_exeext
14794 if { (eval echo "$as_me:14794: \"$ac_link\"") >&5
14795 (eval $ac_link) 2>&5
14796 ac_status=$?
14797 echo "$as_me:14797: \$? = $ac_status" >&5
14798 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14799 { (eval echo "$as_me:14799: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14801 ac_status=$?
14802 echo "$as_me:14802: \$? = $ac_status" >&5
14803 (exit $ac_status); }; }; then
14804 ac_cv_func_setvbuf_reversed=yes
14805 else
14806 echo "$as_me: program exited with status $ac_status" >&5
14807 echo "$as_me: failed program was:" >&5
14808 cat conftest.$ac_ext >&5
14809 ac_cv_func_setvbuf_reversed=no
14811 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
14813 rm -f core core.* *.core
14815 echo "$as_me:14815: result: $ac_cv_func_setvbuf_reversed" >&5
14816 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
14817 if test $ac_cv_func_setvbuf_reversed = yes; then
14819 cat >>confdefs.h <<\EOF
14820 #define SETVBUF_REVERSED 1
14825 for ac_func in getdelim
14827 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14828 echo "$as_me:14828: checking for $ac_func" >&5
14829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14830 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14832 else
14833 cat >conftest.$ac_ext <<_ACEOF
14834 #line 14834 "configure"
14835 #include "confdefs.h"
14836 /* System header to define __stub macros and hopefully few prototypes,
14837 which can conflict with char $ac_func (); below. */
14838 #include <assert.h>
14839 /* Override any gcc2 internal prototype to avoid an error. */
14840 #ifdef __cplusplus
14841 extern "C"
14842 #endif
14843 /* We use char because int might match the return type of a gcc2
14844 builtin and then its argument prototype would still apply. */
14845 char $ac_func ();
14846 char (*f) ();
14849 main ()
14851 /* The GNU C library defines this for functions which it implements
14852 to always fail with ENOSYS. Some functions are actually named
14853 something starting with __ and the normal name is an alias. */
14854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14855 choke me
14856 #else
14857 f = $ac_func;
14858 #endif
14861 return 0;
14863 _ACEOF
14864 rm -f conftest.$ac_objext conftest$ac_exeext
14865 if { (eval echo "$as_me:14865: \"$ac_link\"") >&5
14866 (eval $ac_link) 2>&5
14867 ac_status=$?
14868 echo "$as_me:14868: \$? = $ac_status" >&5
14869 (exit $ac_status); } &&
14870 { ac_try='test -s conftest$ac_exeext'
14871 { (eval echo "$as_me:14871: \"$ac_try\"") >&5
14872 (eval $ac_try) 2>&5
14873 ac_status=$?
14874 echo "$as_me:14874: \$? = $ac_status" >&5
14875 (exit $ac_status); }; }; then
14876 eval "$ac_ac_var=yes"
14877 else
14878 echo "$as_me: failed program was:" >&5
14879 cat conftest.$ac_ext >&5
14880 eval "$ac_ac_var=no"
14882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14884 echo "$as_me:14884: result: `eval echo '${'$ac_ac_var'}'`" >&5
14885 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14886 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14887 cat >>confdefs.h <<EOF
14888 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14892 done
14894 for ac_func in \
14895 acl \
14896 bcopy \
14897 endgrent \
14898 endpwent \
14899 fchdir \
14900 fdatasync \
14901 fseeko \
14902 ftime \
14903 getcwd \
14904 gethrtime \
14905 getmntinfo \
14906 hasmntopt \
14907 isascii \
14908 listmntent \
14909 localeconv \
14910 memcpy \
14911 mempcpy \
14912 mkfifo \
14913 realpath \
14914 resolvepath \
14915 sethostname \
14916 strchr \
14917 strerror \
14918 strrchr \
14919 sysinfo \
14920 tzset \
14923 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
14924 echo "$as_me:14924: checking for $ac_func" >&5
14925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14926 if eval "test \"\${$ac_ac_var+set}\" = set"; then
14927 echo $ECHO_N "(cached) $ECHO_C" >&6
14928 else
14929 cat >conftest.$ac_ext <<_ACEOF
14930 #line 14930 "configure"
14931 #include "confdefs.h"
14932 /* System header to define __stub macros and hopefully few prototypes,
14933 which can conflict with char $ac_func (); below. */
14934 #include <assert.h>
14935 /* Override any gcc2 internal prototype to avoid an error. */
14936 #ifdef __cplusplus
14937 extern "C"
14938 #endif
14939 /* We use char because int might match the return type of a gcc2
14940 builtin and then its argument prototype would still apply. */
14941 char $ac_func ();
14942 char (*f) ();
14945 main ()
14947 /* The GNU C library defines this for functions which it implements
14948 to always fail with ENOSYS. Some functions are actually named
14949 something starting with __ and the normal name is an alias. */
14950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14951 choke me
14952 #else
14953 f = $ac_func;
14954 #endif
14957 return 0;
14959 _ACEOF
14960 rm -f conftest.$ac_objext conftest$ac_exeext
14961 if { (eval echo "$as_me:14961: \"$ac_link\"") >&5
14962 (eval $ac_link) 2>&5
14963 ac_status=$?
14964 echo "$as_me:14964: \$? = $ac_status" >&5
14965 (exit $ac_status); } &&
14966 { ac_try='test -s conftest$ac_exeext'
14967 { (eval echo "$as_me:14967: \"$ac_try\"") >&5
14968 (eval $ac_try) 2>&5
14969 ac_status=$?
14970 echo "$as_me:14970: \$? = $ac_status" >&5
14971 (exit $ac_status); }; }; then
14972 eval "$ac_ac_var=yes"
14973 else
14974 echo "$as_me: failed program was:" >&5
14975 cat conftest.$ac_ext >&5
14976 eval "$ac_ac_var=no"
14978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14980 echo "$as_me:14980: result: `eval echo '${'$ac_ac_var'}'`" >&5
14981 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
14982 if test `eval echo '${'$ac_ac_var'}'` = yes; then
14983 cat >>confdefs.h <<EOF
14984 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
14988 done
14990 am_getline_needs_run_time_check=no
14991 echo "$as_me:14991: checking for getline" >&5
14992 echo $ECHO_N "checking for getline... $ECHO_C" >&6
14993 if test "${ac_cv_func_getline+set}" = set; then
14994 echo $ECHO_N "(cached) $ECHO_C" >&6
14995 else
14996 cat >conftest.$ac_ext <<_ACEOF
14997 #line 14997 "configure"
14998 #include "confdefs.h"
14999 /* System header to define __stub macros and hopefully few prototypes,
15000 which can conflict with char getline (); below. */
15001 #include <assert.h>
15002 /* Override any gcc2 internal prototype to avoid an error. */
15003 #ifdef __cplusplus
15004 extern "C"
15005 #endif
15006 /* We use char because int might match the return type of a gcc2
15007 builtin and then its argument prototype would still apply. */
15008 char getline ();
15009 char (*f) ();
15012 main ()
15014 /* The GNU C library defines this for functions which it implements
15015 to always fail with ENOSYS. Some functions are actually named
15016 something starting with __ and the normal name is an alias. */
15017 #if defined (__stub_getline) || defined (__stub___getline)
15018 choke me
15019 #else
15020 f = getline;
15021 #endif
15024 return 0;
15026 _ACEOF
15027 rm -f conftest.$ac_objext conftest$ac_exeext
15028 if { (eval echo "$as_me:15028: \"$ac_link\"") >&5
15029 (eval $ac_link) 2>&5
15030 ac_status=$?
15031 echo "$as_me:15031: \$? = $ac_status" >&5
15032 (exit $ac_status); } &&
15033 { ac_try='test -s conftest$ac_exeext'
15034 { (eval echo "$as_me:15034: \"$ac_try\"") >&5
15035 (eval $ac_try) 2>&5
15036 ac_status=$?
15037 echo "$as_me:15037: \$? = $ac_status" >&5
15038 (exit $ac_status); }; }; then
15039 ac_cv_func_getline=yes
15040 else
15041 echo "$as_me: failed program was:" >&5
15042 cat conftest.$ac_ext >&5
15043 ac_cv_func_getline=no
15045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15047 echo "$as_me:15047: result: $ac_cv_func_getline" >&5
15048 echo "${ECHO_T}$ac_cv_func_getline" >&6
15049 if test $ac_cv_func_getline = yes; then
15050 am_getline_needs_run_time_check=yes
15051 else
15052 am_cv_func_working_getline=no
15055 if test $am_getline_needs_run_time_check = yes; then
15057 for ac_header in string.h
15059 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
15060 echo "$as_me:15060: checking for $ac_header" >&5
15061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15062 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
15063 echo $ECHO_N "(cached) $ECHO_C" >&6
15064 else
15065 cat >conftest.$ac_ext <<_ACEOF
15066 #line 15066 "configure"
15067 #include "confdefs.h"
15068 #include <$ac_header>
15069 _ACEOF
15070 if { (eval echo "$as_me:15070: \"$ac_cpp conftest.$ac_ext\"") >&5
15071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15072 ac_status=$?
15073 egrep -v '^ *\+' conftest.er1 >conftest.err
15074 rm -f conftest.er1
15075 cat conftest.err >&5
15076 echo "$as_me:15076: \$? = $ac_status" >&5
15077 (exit $ac_status); } >/dev/null; then
15078 if test -s conftest.err; then
15079 ac_cpp_err=$ac_c_preproc_warn_flag
15080 else
15081 ac_cpp_err=
15083 else
15084 ac_cpp_err=yes
15086 if test -z "$ac_cpp_err"; then
15087 eval "$ac_ac_Header=yes"
15088 else
15089 echo "$as_me: failed program was:" >&5
15090 cat conftest.$ac_ext >&5
15091 eval "$ac_ac_Header=no"
15093 rm -f conftest.err conftest.$ac_ext
15095 echo "$as_me:15095: result: `eval echo '${'$ac_ac_Header'}'`" >&5
15096 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
15097 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
15098 cat >>confdefs.h <<EOF
15099 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
15103 done
15105 echo "$as_me:15105: checking for working getline function" >&5
15106 echo $ECHO_N "checking for working getline function... $ECHO_C" >&6
15107 if test "${am_cv_func_working_getline+set}" = set; then
15108 echo $ECHO_N "(cached) $ECHO_C" >&6
15109 else
15110 echo fooN |tr -d '\012'|tr N '\012' > conftest.data
15111 if test "$cross_compiling" = yes; then
15112 am_cv_func_working_getline=no
15113 else
15114 cat >conftest.$ac_ext <<_ACEOF
15115 #line 15115 "configure"
15116 #include "confdefs.h"
15118 # include <stdio.h>
15119 # include <sys/types.h>
15120 # if HAVE_STRING_H
15121 # include <string.h>
15122 # endif
15123 int foo()
15125 char *path;
15126 size_t n;
15127 FILE *stream;
15128 char terminator;
15129 size_t offset;
15130 getstr(&path, &n, stream, terminator, offset);
15133 int main ()
15134 { /* Based on a test program from Karl Heuer. */
15135 char *line = NULL;
15136 size_t siz = 0;
15137 int len;
15138 FILE *in = fopen ("./conftest.data", "r");
15139 if (!in)
15140 return 1;
15141 len = getline (&line, &siz, in);
15142 nread = getstr (&path, &pathsize, fp, '\0', count);
15144 exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
15147 _ACEOF
15148 rm -f conftest$ac_exeext
15149 if { (eval echo "$as_me:15149: \"$ac_link\"") >&5
15150 (eval $ac_link) 2>&5
15151 ac_status=$?
15152 echo "$as_me:15152: \$? = $ac_status" >&5
15153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15154 { (eval echo "$as_me:15154: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5
15156 ac_status=$?
15157 echo "$as_me:15157: \$? = $ac_status" >&5
15158 (exit $ac_status); }; }; then
15159 am_cv_func_working_getline=yes
15160 else
15161 echo "$as_me: program exited with status $ac_status" >&5
15162 echo "$as_me: failed program was:" >&5
15163 cat conftest.$ac_ext >&5
15164 am_cv_func_working_getline=no
15166 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
15169 echo "$as_me:15169: result: $am_cv_func_working_getline" >&5
15170 echo "${ECHO_T}$am_cv_func_working_getline" >&6
15173 if test $am_cv_func_working_getline = no; then
15174 LIBOBJS="$LIBOBJS getline.$ac_objext"
15177 if test $am_cv_func_working_getline != yes; then
15179 for ac_func in getdelim
15181 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15182 echo "$as_me:15182: checking for $ac_func" >&5
15183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15184 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15186 else
15187 cat >conftest.$ac_ext <<_ACEOF
15188 #line 15188 "configure"
15189 #include "confdefs.h"
15190 /* System header to define __stub macros and hopefully few prototypes,
15191 which can conflict with char $ac_func (); below. */
15192 #include <assert.h>
15193 /* Override any gcc2 internal prototype to avoid an error. */
15194 #ifdef __cplusplus
15195 extern "C"
15196 #endif
15197 /* We use char because int might match the return type of a gcc2
15198 builtin and then its argument prototype would still apply. */
15199 char $ac_func ();
15200 char (*f) ();
15203 main ()
15205 /* The GNU C library defines this for functions which it implements
15206 to always fail with ENOSYS. Some functions are actually named
15207 something starting with __ and the normal name is an alias. */
15208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15209 choke me
15210 #else
15211 f = $ac_func;
15212 #endif
15215 return 0;
15217 _ACEOF
15218 rm -f conftest.$ac_objext conftest$ac_exeext
15219 if { (eval echo "$as_me:15219: \"$ac_link\"") >&5
15220 (eval $ac_link) 2>&5
15221 ac_status=$?
15222 echo "$as_me:15222: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
15224 { ac_try='test -s conftest$ac_exeext'
15225 { (eval echo "$as_me:15225: \"$ac_try\"") >&5
15226 (eval $ac_try) 2>&5
15227 ac_status=$?
15228 echo "$as_me:15228: \$? = $ac_status" >&5
15229 (exit $ac_status); }; }; then
15230 eval "$ac_ac_var=yes"
15231 else
15232 echo "$as_me: failed program was:" >&5
15233 cat conftest.$ac_ext >&5
15234 eval "$ac_ac_var=no"
15236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15238 echo "$as_me:15238: result: `eval echo '${'$ac_ac_var'}'`" >&5
15239 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15240 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15241 cat >>confdefs.h <<EOF
15242 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15246 done
15250 echo "$as_me:15250: checking whether we are using the GNU C Library 2.1 or newer" >&5
15251 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15252 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15253 echo $ECHO_N "(cached) $ECHO_C" >&6
15254 else
15255 cat >conftest.$ac_ext <<_ACEOF
15256 #line 15256 "configure"
15257 #include "confdefs.h"
15259 #include <features.h>
15260 #ifdef __GNU_LIBRARY__
15261 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15262 Lucky GNU user
15263 #endif
15264 #endif
15266 _ACEOF
15267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15268 egrep "Lucky GNU user" >/dev/null 2>&1; then
15269 ac_cv_gnu_library_2_1=yes
15270 else
15271 ac_cv_gnu_library_2_1=no
15273 rm -f conftest*
15276 echo "$as_me:15276: result: $ac_cv_gnu_library_2_1" >&5
15277 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15279 GLIBC21="$ac_cv_gnu_library_2_1"
15281 echo "$as_me:15281: checking for iconv" >&5
15282 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
15283 if test "${jm_cv_func_iconv+set}" = set; then
15284 echo $ECHO_N "(cached) $ECHO_C" >&6
15285 else
15287 jm_cv_func_iconv="no, consider installing libiconv"
15288 jm_cv_lib_iconv=no
15289 cat >conftest.$ac_ext <<_ACEOF
15290 #line 15290 "configure"
15291 #include "confdefs.h"
15292 #include <stdlib.h>
15293 #include <iconv.h>
15295 main ()
15297 iconv_t cd = iconv_open("","");
15298 iconv(cd,NULL,NULL,NULL,NULL);
15299 iconv_close(cd);
15301 return 0;
15303 _ACEOF
15304 rm -f conftest.$ac_objext conftest$ac_exeext
15305 if { (eval echo "$as_me:15305: \"$ac_link\"") >&5
15306 (eval $ac_link) 2>&5
15307 ac_status=$?
15308 echo "$as_me:15308: \$? = $ac_status" >&5
15309 (exit $ac_status); } &&
15310 { ac_try='test -s conftest$ac_exeext'
15311 { (eval echo "$as_me:15311: \"$ac_try\"") >&5
15312 (eval $ac_try) 2>&5
15313 ac_status=$?
15314 echo "$as_me:15314: \$? = $ac_status" >&5
15315 (exit $ac_status); }; }; then
15316 jm_cv_func_iconv=yes
15317 else
15318 echo "$as_me: failed program was:" >&5
15319 cat conftest.$ac_ext >&5
15321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15322 if test "$jm_cv_func_iconv" != yes; then
15323 jm_save_LIBS="$LIBS"
15324 LIBS="$LIBS -liconv"
15325 cat >conftest.$ac_ext <<_ACEOF
15326 #line 15326 "configure"
15327 #include "confdefs.h"
15328 #include <stdlib.h>
15329 #include <iconv.h>
15331 main ()
15333 iconv_t cd = iconv_open("","");
15334 iconv(cd,NULL,NULL,NULL,NULL);
15335 iconv_close(cd);
15337 return 0;
15339 _ACEOF
15340 rm -f conftest.$ac_objext conftest$ac_exeext
15341 if { (eval echo "$as_me:15341: \"$ac_link\"") >&5
15342 (eval $ac_link) 2>&5
15343 ac_status=$?
15344 echo "$as_me:15344: \$? = $ac_status" >&5
15345 (exit $ac_status); } &&
15346 { ac_try='test -s conftest$ac_exeext'
15347 { (eval echo "$as_me:15347: \"$ac_try\"") >&5
15348 (eval $ac_try) 2>&5
15349 ac_status=$?
15350 echo "$as_me:15350: \$? = $ac_status" >&5
15351 (exit $ac_status); }; }; then
15352 jm_cv_lib_iconv=yes
15353 jm_cv_func_iconv=yes
15354 else
15355 echo "$as_me: failed program was:" >&5
15356 cat conftest.$ac_ext >&5
15358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15359 LIBS="$jm_save_LIBS"
15363 echo "$as_me:15363: result: $jm_cv_func_iconv" >&5
15364 echo "${ECHO_T}$jm_cv_func_iconv" >&6
15365 if test "$jm_cv_func_iconv" = yes; then
15367 cat >>confdefs.h <<\EOF
15368 #define HAVE_ICONV 1
15372 LIBICONV=
15373 if test "$jm_cv_lib_iconv" = yes; then
15374 LIBICONV="-liconv"
15377 # These tests are for df.
15379 echo "$as_me:15379: checking for f_fstypename in struct statfs" >&5
15380 echo $ECHO_N "checking for f_fstypename in struct statfs... $ECHO_C" >&6
15381 if test "${fu_cv_sys_f_fstypename_in_statfs+set}" = set; then
15382 echo $ECHO_N "(cached) $ECHO_C" >&6
15383 else
15385 cat >conftest.$ac_ext <<_ACEOF
15386 #line 15386 "configure"
15387 #include "confdefs.h"
15389 #include <sys/param.h>
15390 #include <sys/types.h>
15391 #include <sys/mount.h>
15394 main ()
15396 struct statfs s; int i = sizeof s.f_fstypename;
15398 return 0;
15400 _ACEOF
15401 rm -f conftest.$ac_objext
15402 if { (eval echo "$as_me:15402: \"$ac_compile\"") >&5
15403 (eval $ac_compile) 2>&5
15404 ac_status=$?
15405 echo "$as_me:15405: \$? = $ac_status" >&5
15406 (exit $ac_status); } &&
15407 { ac_try='test -s conftest.$ac_objext'
15408 { (eval echo "$as_me:15408: \"$ac_try\"") >&5
15409 (eval $ac_try) 2>&5
15410 ac_status=$?
15411 echo "$as_me:15411: \$? = $ac_status" >&5
15412 (exit $ac_status); }; }; then
15413 fu_cv_sys_f_fstypename_in_statfs=yes
15414 else
15415 echo "$as_me: failed program was:" >&5
15416 cat conftest.$ac_ext >&5
15417 fu_cv_sys_f_fstypename_in_statfs=no
15420 rm -f conftest.$ac_objext conftest.$ac_ext
15423 echo "$as_me:15423: result: $fu_cv_sys_f_fstypename_in_statfs" >&5
15424 echo "${ECHO_T}$fu_cv_sys_f_fstypename_in_statfs" >&6
15426 if test $fu_cv_sys_f_fstypename_in_statfs = yes; then
15428 cat >>confdefs.h <<EOF
15429 #define HAVE_F_FSTYPENAME_IN_STATFS 1
15434 for ac_func in fchdir getcwd strerror endgrent endpwent
15436 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15437 echo "$as_me:15437: checking for $ac_func" >&5
15438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15439 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15440 echo $ECHO_N "(cached) $ECHO_C" >&6
15441 else
15442 cat >conftest.$ac_ext <<_ACEOF
15443 #line 15443 "configure"
15444 #include "confdefs.h"
15445 /* System header to define __stub macros and hopefully few prototypes,
15446 which can conflict with char $ac_func (); below. */
15447 #include <assert.h>
15448 /* Override any gcc2 internal prototype to avoid an error. */
15449 #ifdef __cplusplus
15450 extern "C"
15451 #endif
15452 /* We use char because int might match the return type of a gcc2
15453 builtin and then its argument prototype would still apply. */
15454 char $ac_func ();
15455 char (*f) ();
15458 main ()
15460 /* The GNU C library defines this for functions which it implements
15461 to always fail with ENOSYS. Some functions are actually named
15462 something starting with __ and the normal name is an alias. */
15463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15464 choke me
15465 #else
15466 f = $ac_func;
15467 #endif
15470 return 0;
15472 _ACEOF
15473 rm -f conftest.$ac_objext conftest$ac_exeext
15474 if { (eval echo "$as_me:15474: \"$ac_link\"") >&5
15475 (eval $ac_link) 2>&5
15476 ac_status=$?
15477 echo "$as_me:15477: \$? = $ac_status" >&5
15478 (exit $ac_status); } &&
15479 { ac_try='test -s conftest$ac_exeext'
15480 { (eval echo "$as_me:15480: \"$ac_try\"") >&5
15481 (eval $ac_try) 2>&5
15482 ac_status=$?
15483 echo "$as_me:15483: \$? = $ac_status" >&5
15484 (exit $ac_status); }; }; then
15485 eval "$ac_ac_var=yes"
15486 else
15487 echo "$as_me: failed program was:" >&5
15488 cat conftest.$ac_ext >&5
15489 eval "$ac_ac_var=no"
15491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15493 echo "$as_me:15493: result: `eval echo '${'$ac_ac_var'}'`" >&5
15494 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15495 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15496 cat >>confdefs.h <<EOF
15497 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15501 done
15503 for ac_func in vprintf
15505 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15506 echo "$as_me:15506: checking for $ac_func" >&5
15507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15508 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15509 echo $ECHO_N "(cached) $ECHO_C" >&6
15510 else
15511 cat >conftest.$ac_ext <<_ACEOF
15512 #line 15512 "configure"
15513 #include "confdefs.h"
15514 /* System header to define __stub macros and hopefully few prototypes,
15515 which can conflict with char $ac_func (); below. */
15516 #include <assert.h>
15517 /* Override any gcc2 internal prototype to avoid an error. */
15518 #ifdef __cplusplus
15519 extern "C"
15520 #endif
15521 /* We use char because int might match the return type of a gcc2
15522 builtin and then its argument prototype would still apply. */
15523 char $ac_func ();
15524 char (*f) ();
15527 main ()
15529 /* The GNU C library defines this for functions which it implements
15530 to always fail with ENOSYS. Some functions are actually named
15531 something starting with __ and the normal name is an alias. */
15532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15533 choke me
15534 #else
15535 f = $ac_func;
15536 #endif
15539 return 0;
15541 _ACEOF
15542 rm -f conftest.$ac_objext conftest$ac_exeext
15543 if { (eval echo "$as_me:15543: \"$ac_link\"") >&5
15544 (eval $ac_link) 2>&5
15545 ac_status=$?
15546 echo "$as_me:15546: \$? = $ac_status" >&5
15547 (exit $ac_status); } &&
15548 { ac_try='test -s conftest$ac_exeext'
15549 { (eval echo "$as_me:15549: \"$ac_try\"") >&5
15550 (eval $ac_try) 2>&5
15551 ac_status=$?
15552 echo "$as_me:15552: \$? = $ac_status" >&5
15553 (exit $ac_status); }; }; then
15554 eval "$ac_ac_var=yes"
15555 else
15556 echo "$as_me: failed program was:" >&5
15557 cat conftest.$ac_ext >&5
15558 eval "$ac_ac_var=no"
15560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15562 echo "$as_me:15562: result: `eval echo '${'$ac_ac_var'}'`" >&5
15563 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15564 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15565 cat >>confdefs.h <<EOF
15566 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
15569 echo "$as_me:15569: checking for _doprnt" >&5
15570 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
15571 if test "${ac_cv_func__doprnt+set}" = set; then
15572 echo $ECHO_N "(cached) $ECHO_C" >&6
15573 else
15574 cat >conftest.$ac_ext <<_ACEOF
15575 #line 15575 "configure"
15576 #include "confdefs.h"
15577 /* System header to define __stub macros and hopefully few prototypes,
15578 which can conflict with char _doprnt (); below. */
15579 #include <assert.h>
15580 /* Override any gcc2 internal prototype to avoid an error. */
15581 #ifdef __cplusplus
15582 extern "C"
15583 #endif
15584 /* We use char because int might match the return type of a gcc2
15585 builtin and then its argument prototype would still apply. */
15586 char _doprnt ();
15587 char (*f) ();
15590 main ()
15592 /* The GNU C library defines this for functions which it implements
15593 to always fail with ENOSYS. Some functions are actually named
15594 something starting with __ and the normal name is an alias. */
15595 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15596 choke me
15597 #else
15598 f = _doprnt;
15599 #endif
15602 return 0;
15604 _ACEOF
15605 rm -f conftest.$ac_objext conftest$ac_exeext
15606 if { (eval echo "$as_me:15606: \"$ac_link\"") >&5
15607 (eval $ac_link) 2>&5
15608 ac_status=$?
15609 echo "$as_me:15609: \$? = $ac_status" >&5
15610 (exit $ac_status); } &&
15611 { ac_try='test -s conftest$ac_exeext'
15612 { (eval echo "$as_me:15612: \"$ac_try\"") >&5
15613 (eval $ac_try) 2>&5
15614 ac_status=$?
15615 echo "$as_me:15615: \$? = $ac_status" >&5
15616 (exit $ac_status); }; }; then
15617 ac_cv_func__doprnt=yes
15618 else
15619 echo "$as_me: failed program was:" >&5
15620 cat conftest.$ac_ext >&5
15621 ac_cv_func__doprnt=no
15623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15625 echo "$as_me:15625: result: $ac_cv_func__doprnt" >&5
15626 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
15627 if test $ac_cv_func__doprnt = yes; then
15629 cat >>confdefs.h <<\EOF
15630 #define HAVE_DOPRNT 1
15636 done
15638 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15639 # for constant arguments. Useless!
15640 echo "$as_me:15640: checking for working alloca.h" >&5
15641 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15642 if test "${ac_cv_working_alloca_h+set}" = set; then
15643 echo $ECHO_N "(cached) $ECHO_C" >&6
15644 else
15645 cat >conftest.$ac_ext <<_ACEOF
15646 #line 15646 "configure"
15647 #include "confdefs.h"
15648 #include <alloca.h>
15650 main ()
15652 char *p = (char *) alloca (2 * sizeof (int));
15654 return 0;
15656 _ACEOF
15657 rm -f conftest.$ac_objext conftest$ac_exeext
15658 if { (eval echo "$as_me:15658: \"$ac_link\"") >&5
15659 (eval $ac_link) 2>&5
15660 ac_status=$?
15661 echo "$as_me:15661: \$? = $ac_status" >&5
15662 (exit $ac_status); } &&
15663 { ac_try='test -s conftest$ac_exeext'
15664 { (eval echo "$as_me:15664: \"$ac_try\"") >&5
15665 (eval $ac_try) 2>&5
15666 ac_status=$?
15667 echo "$as_me:15667: \$? = $ac_status" >&5
15668 (exit $ac_status); }; }; then
15669 ac_cv_working_alloca_h=yes
15670 else
15671 echo "$as_me: failed program was:" >&5
15672 cat conftest.$ac_ext >&5
15673 ac_cv_working_alloca_h=no
15675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15677 echo "$as_me:15677: result: $ac_cv_working_alloca_h" >&5
15678 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15679 if test $ac_cv_working_alloca_h = yes; then
15681 cat >>confdefs.h <<\EOF
15682 #define HAVE_ALLOCA_H 1
15687 echo "$as_me:15687: checking for alloca" >&5
15688 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15689 if test "${ac_cv_func_alloca_works+set}" = set; then
15690 echo $ECHO_N "(cached) $ECHO_C" >&6
15691 else
15692 cat >conftest.$ac_ext <<_ACEOF
15693 #line 15693 "configure"
15694 #include "confdefs.h"
15695 #ifdef __GNUC__
15696 # define alloca __builtin_alloca
15697 #else
15698 # ifdef _MSC_VER
15699 # include <malloc.h>
15700 # define alloca _alloca
15701 # else
15702 # if HAVE_ALLOCA_H
15703 # include <alloca.h>
15704 # else
15705 # ifdef _AIX
15706 #pragma alloca
15707 # else
15708 # ifndef alloca /* predefined by HP cc +Olibcalls */
15709 char *alloca ();
15710 # endif
15711 # endif
15712 # endif
15713 # endif
15714 #endif
15717 main ()
15719 char *p = (char *) alloca (1);
15721 return 0;
15723 _ACEOF
15724 rm -f conftest.$ac_objext conftest$ac_exeext
15725 if { (eval echo "$as_me:15725: \"$ac_link\"") >&5
15726 (eval $ac_link) 2>&5
15727 ac_status=$?
15728 echo "$as_me:15728: \$? = $ac_status" >&5
15729 (exit $ac_status); } &&
15730 { ac_try='test -s conftest$ac_exeext'
15731 { (eval echo "$as_me:15731: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15733 ac_status=$?
15734 echo "$as_me:15734: \$? = $ac_status" >&5
15735 (exit $ac_status); }; }; then
15736 ac_cv_func_alloca_works=yes
15737 else
15738 echo "$as_me: failed program was:" >&5
15739 cat conftest.$ac_ext >&5
15740 ac_cv_func_alloca_works=no
15742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15744 echo "$as_me:15744: result: $ac_cv_func_alloca_works" >&5
15745 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15747 if test $ac_cv_func_alloca_works = yes; then
15749 cat >>confdefs.h <<\EOF
15750 #define HAVE_ALLOCA 1
15753 else
15754 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15755 # that cause trouble. Some versions do not even contain alloca or
15756 # contain a buggy version. If you still want to use their alloca,
15757 # use ar to extract alloca.o from them instead of compiling alloca.c.
15759 ALLOCA=alloca.$ac_objext
15761 cat >>confdefs.h <<\EOF
15762 #define C_ALLOCA 1
15765 echo "$as_me:15765: checking whether \`alloca.c' needs Cray hooks" >&5
15766 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15767 if test "${ac_cv_os_cray+set}" = set; then
15768 echo $ECHO_N "(cached) $ECHO_C" >&6
15769 else
15770 cat >conftest.$ac_ext <<_ACEOF
15771 #line 15771 "configure"
15772 #include "confdefs.h"
15773 #if defined(CRAY) && ! defined(CRAY2)
15774 webecray
15775 #else
15776 wenotbecray
15777 #endif
15779 _ACEOF
15780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15781 egrep "webecray" >/dev/null 2>&1; then
15782 ac_cv_os_cray=yes
15783 else
15784 ac_cv_os_cray=no
15786 rm -f conftest*
15789 echo "$as_me:15789: result: $ac_cv_os_cray" >&5
15790 echo "${ECHO_T}$ac_cv_os_cray" >&6
15791 if test $ac_cv_os_cray = yes; then
15792 for ac_func in _getb67 GETB67 getb67; do
15793 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
15794 echo "$as_me:15794: checking for $ac_func" >&5
15795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15796 if eval "test \"\${$ac_ac_var+set}\" = set"; then
15797 echo $ECHO_N "(cached) $ECHO_C" >&6
15798 else
15799 cat >conftest.$ac_ext <<_ACEOF
15800 #line 15800 "configure"
15801 #include "confdefs.h"
15802 /* System header to define __stub macros and hopefully few prototypes,
15803 which can conflict with char $ac_func (); below. */
15804 #include <assert.h>
15805 /* Override any gcc2 internal prototype to avoid an error. */
15806 #ifdef __cplusplus
15807 extern "C"
15808 #endif
15809 /* We use char because int might match the return type of a gcc2
15810 builtin and then its argument prototype would still apply. */
15811 char $ac_func ();
15812 char (*f) ();
15815 main ()
15817 /* The GNU C library defines this for functions which it implements
15818 to always fail with ENOSYS. Some functions are actually named
15819 something starting with __ and the normal name is an alias. */
15820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15821 choke me
15822 #else
15823 f = $ac_func;
15824 #endif
15827 return 0;
15829 _ACEOF
15830 rm -f conftest.$ac_objext conftest$ac_exeext
15831 if { (eval echo "$as_me:15831: \"$ac_link\"") >&5
15832 (eval $ac_link) 2>&5
15833 ac_status=$?
15834 echo "$as_me:15834: \$? = $ac_status" >&5
15835 (exit $ac_status); } &&
15836 { ac_try='test -s conftest$ac_exeext'
15837 { (eval echo "$as_me:15837: \"$ac_try\"") >&5
15838 (eval $ac_try) 2>&5
15839 ac_status=$?
15840 echo "$as_me:15840: \$? = $ac_status" >&5
15841 (exit $ac_status); }; }; then
15842 eval "$ac_ac_var=yes"
15843 else
15844 echo "$as_me: failed program was:" >&5
15845 cat conftest.$ac_ext >&5
15846 eval "$ac_ac_var=no"
15848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15850 echo "$as_me:15850: result: `eval echo '${'$ac_ac_var'}'`" >&5
15851 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
15852 if test `eval echo '${'$ac_ac_var'}'` = yes; then
15854 cat >>confdefs.h <<EOF
15855 #define CRAY_STACKSEG_END $ac_func
15858 break
15861 done
15864 echo "$as_me:15864: checking stack direction for C alloca" >&5
15865 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15866 if test "${ac_cv_c_stack_direction+set}" = set; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15868 else
15869 if test "$cross_compiling" = yes; then
15870 ac_cv_c_stack_direction=0
15871 else
15872 cat >conftest.$ac_ext <<_ACEOF
15873 #line 15873 "configure"
15874 #include "confdefs.h"
15876 find_stack_direction ()
15878 static char *addr = 0;
15879 auto char dummy;
15880 if (addr == 0)
15882 addr = &dummy;
15883 return find_stack_direction ();
15885 else
15886 return (&dummy > addr) ? 1 : -1;
15890 main ()
15892 exit (find_stack_direction () < 0);
15894 _ACEOF
15895 rm -f conftest$ac_exeext
15896 if { (eval echo "$as_me:15896: \"$ac_link\"") >&5
15897 (eval $ac_link) 2>&5
15898 ac_status=$?
15899 echo "$as_me:15899: \$? = $ac_status" >&5
15900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15901 { (eval echo "$as_me:15901: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15903 ac_status=$?
15904 echo "$as_me:15904: \$? = $ac_status" >&5
15905 (exit $ac_status); }; }; then
15906 ac_cv_c_stack_direction=1
15907 else
15908 echo "$as_me: program exited with status $ac_status" >&5
15909 echo "$as_me: failed program was:" >&5
15910 cat conftest.$ac_ext >&5
15911 ac_cv_c_stack_direction=-1
15913 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
15916 echo "$as_me:15916: result: $ac_cv_c_stack_direction" >&5
15917 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15919 cat >>confdefs.h <<EOF
15920 #define STACK_DIRECTION $ac_cv_c_stack_direction
15925 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
15926 echo "$as_me:15926: checking for getmntent in -lsun" >&5
15927 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
15928 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
15929 echo $ECHO_N "(cached) $ECHO_C" >&6
15930 else
15931 ac_check_lib_save_LIBS=$LIBS
15932 LIBS="-lsun $LIBS"
15933 cat >conftest.$ac_ext <<_ACEOF
15934 #line 15934 "configure"
15935 #include "confdefs.h"
15937 /* Override any gcc2 internal prototype to avoid an error. */
15938 #ifdef __cplusplus
15939 extern "C"
15940 #endif
15941 /* We use char because int might match the return type of a gcc2
15942 builtin and then its argument prototype would still apply. */
15943 char getmntent ();
15945 main ()
15947 getmntent ();
15949 return 0;
15951 _ACEOF
15952 rm -f conftest.$ac_objext conftest$ac_exeext
15953 if { (eval echo "$as_me:15953: \"$ac_link\"") >&5
15954 (eval $ac_link) 2>&5
15955 ac_status=$?
15956 echo "$as_me:15956: \$? = $ac_status" >&5
15957 (exit $ac_status); } &&
15958 { ac_try='test -s conftest$ac_exeext'
15959 { (eval echo "$as_me:15959: \"$ac_try\"") >&5
15960 (eval $ac_try) 2>&5
15961 ac_status=$?
15962 echo "$as_me:15962: \$? = $ac_status" >&5
15963 (exit $ac_status); }; }; then
15964 ac_cv_lib_sun_getmntent=yes
15965 else
15966 echo "$as_me: failed program was:" >&5
15967 cat conftest.$ac_ext >&5
15968 ac_cv_lib_sun_getmntent=no
15970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15971 LIBS=$ac_check_lib_save_LIBS
15973 echo "$as_me:15973: result: $ac_cv_lib_sun_getmntent" >&5
15974 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
15975 if test $ac_cv_lib_sun_getmntent = yes; then
15976 LIBS="-lsun $LIBS"
15977 else
15978 echo "$as_me:15978: checking for getmntent in -lseq" >&5
15979 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
15980 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6
15982 else
15983 ac_check_lib_save_LIBS=$LIBS
15984 LIBS="-lseq $LIBS"
15985 cat >conftest.$ac_ext <<_ACEOF
15986 #line 15986 "configure"
15987 #include "confdefs.h"
15989 /* Override any gcc2 internal prototype to avoid an error. */
15990 #ifdef __cplusplus
15991 extern "C"
15992 #endif
15993 /* We use char because int might match the return type of a gcc2
15994 builtin and then its argument prototype would still apply. */
15995 char getmntent ();
15997 main ()
15999 getmntent ();
16001 return 0;
16003 _ACEOF
16004 rm -f conftest.$ac_objext conftest$ac_exeext
16005 if { (eval echo "$as_me:16005: \"$ac_link\"") >&5
16006 (eval $ac_link) 2>&5
16007 ac_status=$?
16008 echo "$as_me:16008: \$? = $ac_status" >&5
16009 (exit $ac_status); } &&
16010 { ac_try='test -s conftest$ac_exeext'
16011 { (eval echo "$as_me:16011: \"$ac_try\"") >&5
16012 (eval $ac_try) 2>&5
16013 ac_status=$?
16014 echo "$as_me:16014: \$? = $ac_status" >&5
16015 (exit $ac_status); }; }; then
16016 ac_cv_lib_seq_getmntent=yes
16017 else
16018 echo "$as_me: failed program was:" >&5
16019 cat conftest.$ac_ext >&5
16020 ac_cv_lib_seq_getmntent=no
16022 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16023 LIBS=$ac_check_lib_save_LIBS
16025 echo "$as_me:16025: result: $ac_cv_lib_seq_getmntent" >&5
16026 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16027 if test $ac_cv_lib_seq_getmntent = yes; then
16028 LIBS="-lseq $LIBS"
16029 else
16030 echo "$as_me:16030: checking for getmntent in -lgen" >&5
16031 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16032 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16033 echo $ECHO_N "(cached) $ECHO_C" >&6
16034 else
16035 ac_check_lib_save_LIBS=$LIBS
16036 LIBS="-lgen $LIBS"
16037 cat >conftest.$ac_ext <<_ACEOF
16038 #line 16038 "configure"
16039 #include "confdefs.h"
16041 /* Override any gcc2 internal prototype to avoid an error. */
16042 #ifdef __cplusplus
16043 extern "C"
16044 #endif
16045 /* We use char because int might match the return type of a gcc2
16046 builtin and then its argument prototype would still apply. */
16047 char getmntent ();
16049 main ()
16051 getmntent ();
16053 return 0;
16055 _ACEOF
16056 rm -f conftest.$ac_objext conftest$ac_exeext
16057 if { (eval echo "$as_me:16057: \"$ac_link\"") >&5
16058 (eval $ac_link) 2>&5
16059 ac_status=$?
16060 echo "$as_me:16060: \$? = $ac_status" >&5
16061 (exit $ac_status); } &&
16062 { ac_try='test -s conftest$ac_exeext'
16063 { (eval echo "$as_me:16063: \"$ac_try\"") >&5
16064 (eval $ac_try) 2>&5
16065 ac_status=$?
16066 echo "$as_me:16066: \$? = $ac_status" >&5
16067 (exit $ac_status); }; }; then
16068 ac_cv_lib_gen_getmntent=yes
16069 else
16070 echo "$as_me: failed program was:" >&5
16071 cat conftest.$ac_ext >&5
16072 ac_cv_lib_gen_getmntent=no
16074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16075 LIBS=$ac_check_lib_save_LIBS
16077 echo "$as_me:16077: result: $ac_cv_lib_gen_getmntent" >&5
16078 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16079 if test $ac_cv_lib_gen_getmntent = yes; then
16080 LIBS="-lgen $LIBS"
16087 echo "$as_me:16087: checking for getmntent" >&5
16088 echo $ECHO_N "checking for getmntent... $ECHO_C" >&6
16089 if test "${ac_cv_func_getmntent+set}" = set; then
16090 echo $ECHO_N "(cached) $ECHO_C" >&6
16091 else
16092 cat >conftest.$ac_ext <<_ACEOF
16093 #line 16093 "configure"
16094 #include "confdefs.h"
16095 /* System header to define __stub macros and hopefully few prototypes,
16096 which can conflict with char getmntent (); below. */
16097 #include <assert.h>
16098 /* Override any gcc2 internal prototype to avoid an error. */
16099 #ifdef __cplusplus
16100 extern "C"
16101 #endif
16102 /* We use char because int might match the return type of a gcc2
16103 builtin and then its argument prototype would still apply. */
16104 char getmntent ();
16105 char (*f) ();
16108 main ()
16110 /* The GNU C library defines this for functions which it implements
16111 to always fail with ENOSYS. Some functions are actually named
16112 something starting with __ and the normal name is an alias. */
16113 #if defined (__stub_getmntent) || defined (__stub___getmntent)
16114 choke me
16115 #else
16116 f = getmntent;
16117 #endif
16120 return 0;
16122 _ACEOF
16123 rm -f conftest.$ac_objext conftest$ac_exeext
16124 if { (eval echo "$as_me:16124: \"$ac_link\"") >&5
16125 (eval $ac_link) 2>&5
16126 ac_status=$?
16127 echo "$as_me:16127: \$? = $ac_status" >&5
16128 (exit $ac_status); } &&
16129 { ac_try='test -s conftest$ac_exeext'
16130 { (eval echo "$as_me:16130: \"$ac_try\"") >&5
16131 (eval $ac_try) 2>&5
16132 ac_status=$?
16133 echo "$as_me:16133: \$? = $ac_status" >&5
16134 (exit $ac_status); }; }; then
16135 ac_cv_func_getmntent=yes
16136 else
16137 echo "$as_me: failed program was:" >&5
16138 cat conftest.$ac_ext >&5
16139 ac_cv_func_getmntent=no
16141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16143 echo "$as_me:16143: result: $ac_cv_func_getmntent" >&5
16144 echo "${ECHO_T}$ac_cv_func_getmntent" >&6
16145 if test $ac_cv_func_getmntent = yes; then
16147 cat >>confdefs.h <<\EOF
16148 #define HAVE_GETMNTENT 1
16153 echo "$as_me:16153: checking whether closedir returns void" >&5
16154 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16155 if test "${ac_cv_func_closedir_void+set}" = set; then
16156 echo $ECHO_N "(cached) $ECHO_C" >&6
16157 else
16158 if test "$cross_compiling" = yes; then
16159 ac_cv_func_closedir_void=yes
16160 else
16161 cat >conftest.$ac_ext <<_ACEOF
16162 #line 16162 "configure"
16163 #include "confdefs.h"
16164 #include <sys/types.h>
16165 #include <$ac_header_dirent>
16167 int closedir ();
16169 main ()
16171 exit (closedir (opendir (".")) != 0);
16173 _ACEOF
16174 rm -f conftest$ac_exeext
16175 if { (eval echo "$as_me:16175: \"$ac_link\"") >&5
16176 (eval $ac_link) 2>&5
16177 ac_status=$?
16178 echo "$as_me:16178: \$? = $ac_status" >&5
16179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16180 { (eval echo "$as_me:16180: \"$ac_try\"") >&5
16181 (eval $ac_try) 2>&5
16182 ac_status=$?
16183 echo "$as_me:16183: \$? = $ac_status" >&5
16184 (exit $ac_status); }; }; then
16185 ac_cv_func_closedir_void=no
16186 else
16187 echo "$as_me: program exited with status $ac_status" >&5
16188 echo "$as_me: failed program was:" >&5
16189 cat conftest.$ac_ext >&5
16190 ac_cv_func_closedir_void=yes
16192 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
16195 echo "$as_me:16195: result: $ac_cv_func_closedir_void" >&5
16196 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
16197 if test $ac_cv_func_closedir_void = yes; then
16199 cat >>confdefs.h <<\EOF
16200 #define CLOSEDIR_VOID 1
16205 for ac_header in stdlib.h unistd.h
16207 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
16208 echo "$as_me:16208: checking for $ac_header" >&5
16209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16210 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
16211 echo $ECHO_N "(cached) $ECHO_C" >&6
16212 else
16213 cat >conftest.$ac_ext <<_ACEOF
16214 #line 16214 "configure"
16215 #include "confdefs.h"
16216 #include <$ac_header>
16217 _ACEOF
16218 if { (eval echo "$as_me:16218: \"$ac_cpp conftest.$ac_ext\"") >&5
16219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16220 ac_status=$?
16221 egrep -v '^ *\+' conftest.er1 >conftest.err
16222 rm -f conftest.er1
16223 cat conftest.err >&5
16224 echo "$as_me:16224: \$? = $ac_status" >&5
16225 (exit $ac_status); } >/dev/null; then
16226 if test -s conftest.err; then
16227 ac_cpp_err=$ac_c_preproc_warn_flag
16228 else
16229 ac_cpp_err=
16231 else
16232 ac_cpp_err=yes
16234 if test -z "$ac_cpp_err"; then
16235 eval "$ac_ac_Header=yes"
16236 else
16237 echo "$as_me: failed program was:" >&5
16238 cat conftest.$ac_ext >&5
16239 eval "$ac_ac_Header=no"
16241 rm -f conftest.err conftest.$ac_ext
16243 echo "$as_me:16243: result: `eval echo '${'$ac_ac_Header'}'`" >&5
16244 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
16245 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
16246 cat >>confdefs.h <<EOF
16247 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
16251 done
16253 for ac_func in getpagesize
16255 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
16256 echo "$as_me:16256: checking for $ac_func" >&5
16257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16258 if eval "test \"\${$ac_ac_var+set}\" = set"; then
16259 echo $ECHO_N "(cached) $ECHO_C" >&6
16260 else
16261 cat >conftest.$ac_ext <<_ACEOF
16262 #line 16262 "configure"
16263 #include "confdefs.h"
16264 /* System header to define __stub macros and hopefully few prototypes,
16265 which can conflict with char $ac_func (); below. */
16266 #include <assert.h>
16267 /* Override any gcc2 internal prototype to avoid an error. */
16268 #ifdef __cplusplus
16269 extern "C"
16270 #endif
16271 /* We use char because int might match the return type of a gcc2
16272 builtin and then its argument prototype would still apply. */
16273 char $ac_func ();
16274 char (*f) ();
16277 main ()
16279 /* The GNU C library defines this for functions which it implements
16280 to always fail with ENOSYS. Some functions are actually named
16281 something starting with __ and the normal name is an alias. */
16282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16283 choke me
16284 #else
16285 f = $ac_func;
16286 #endif
16289 return 0;
16291 _ACEOF
16292 rm -f conftest.$ac_objext conftest$ac_exeext
16293 if { (eval echo "$as_me:16293: \"$ac_link\"") >&5
16294 (eval $ac_link) 2>&5
16295 ac_status=$?
16296 echo "$as_me:16296: \$? = $ac_status" >&5
16297 (exit $ac_status); } &&
16298 { ac_try='test -s conftest$ac_exeext'
16299 { (eval echo "$as_me:16299: \"$ac_try\"") >&5
16300 (eval $ac_try) 2>&5
16301 ac_status=$?
16302 echo "$as_me:16302: \$? = $ac_status" >&5
16303 (exit $ac_status); }; }; then
16304 eval "$ac_ac_var=yes"
16305 else
16306 echo "$as_me: failed program was:" >&5
16307 cat conftest.$ac_ext >&5
16308 eval "$ac_ac_var=no"
16310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16312 echo "$as_me:16312: result: `eval echo '${'$ac_ac_var'}'`" >&5
16313 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16314 if test `eval echo '${'$ac_ac_var'}'` = yes; then
16315 cat >>confdefs.h <<EOF
16316 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16320 done
16322 echo "$as_me:16322: checking for working mmap" >&5
16323 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
16324 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16325 echo $ECHO_N "(cached) $ECHO_C" >&6
16326 else
16327 if test "$cross_compiling" = yes; then
16328 ac_cv_func_mmap_fixed_mapped=no
16329 else
16330 cat >conftest.$ac_ext <<_ACEOF
16331 #line 16331 "configure"
16332 #include "confdefs.h"
16333 /* Thanks to Mike Haertel and Jim Avera for this test.
16334 Here is a matrix of mmap possibilities:
16335 mmap private not fixed
16336 mmap private fixed at somewhere currently unmapped
16337 mmap private fixed at somewhere already mapped
16338 mmap shared not fixed
16339 mmap shared fixed at somewhere currently unmapped
16340 mmap shared fixed at somewhere already mapped
16341 For private mappings, we should verify that changes cannot be read()
16342 back from the file, nor mmap's back from the file at a different
16343 address. (There have been systems where private was not correctly
16344 implemented like the infamous i386 svr4.0, and systems where the
16345 VM page cache was not coherent with the file system buffer cache
16346 like early versions of FreeBSD and possibly contemporary NetBSD.)
16347 For shared mappings, we should conversely verify that changes get
16348 propogated back to all the places they're supposed to be.
16350 Grep wants private fixed already mapped.
16351 The main things grep needs to know about mmap are:
16352 * does it exist and is it safe to write into the mmap'd area
16353 * how to use it (BSD variants) */
16354 #include <sys/types.h>
16355 #include <fcntl.h>
16356 #include <sys/mman.h>
16358 #if STDC_HEADERS || HAVE_STDLIB_H
16359 # include <stdlib.h>
16360 #else
16361 char *malloc ();
16362 #endif
16363 #if HAVE_UNISTD_H
16364 # include <unistd.h>
16365 #endif
16366 #include <sys/stat.h>
16368 /* This mess was copied from the GNU getpagesize.h. */
16369 #if !HAVE_GETPAGESIZE
16370 /* Assume that all systems that can run configure have sys/param.h. */
16371 # if !HAVE_SYS_PARAM_H
16372 # define HAVE_SYS_PARAM_H 1
16373 # endif
16375 # ifdef _SC_PAGESIZE
16376 # define getpagesize() sysconf(_SC_PAGESIZE)
16377 # else /* no _SC_PAGESIZE */
16378 # if HAVE_SYS_PARAM_H
16379 # include <sys/param.h>
16380 # ifdef EXEC_PAGESIZE
16381 # define getpagesize() EXEC_PAGESIZE
16382 # else /* no EXEC_PAGESIZE */
16383 # ifdef NBPG
16384 # define getpagesize() NBPG * CLSIZE
16385 # ifndef CLSIZE
16386 # define CLSIZE 1
16387 # endif /* no CLSIZE */
16388 # else /* no NBPG */
16389 # ifdef NBPC
16390 # define getpagesize() NBPC
16391 # else /* no NBPC */
16392 # ifdef PAGESIZE
16393 # define getpagesize() PAGESIZE
16394 # endif /* PAGESIZE */
16395 # endif /* no NBPC */
16396 # endif /* no NBPG */
16397 # endif /* no EXEC_PAGESIZE */
16398 # else /* no HAVE_SYS_PARAM_H */
16399 # define getpagesize() 8192 /* punt totally */
16400 # endif /* no HAVE_SYS_PARAM_H */
16401 # endif /* no _SC_PAGESIZE */
16403 #endif /* no HAVE_GETPAGESIZE */
16406 main ()
16408 char *data, *data2, *data3;
16409 int i, pagesize;
16410 int fd;
16412 pagesize = getpagesize ();
16414 /* First, make a file with some known garbage in it. */
16415 data = (char *) malloc (pagesize);
16416 if (!data)
16417 exit (1);
16418 for (i = 0; i < pagesize; ++i)
16419 *(data + i) = rand ();
16420 umask (0);
16421 fd = creat ("conftest.mmap", 0600);
16422 if (fd < 0)
16423 exit (1);
16424 if (write (fd, data, pagesize) != pagesize)
16425 exit (1);
16426 close (fd);
16428 /* Next, try to mmap the file at a fixed address which already has
16429 something else allocated at it. If we can, also make sure that
16430 we see the same garbage. */
16431 fd = open ("conftest.mmap", O_RDWR);
16432 if (fd < 0)
16433 exit (1);
16434 data2 = (char *) malloc (2 * pagesize);
16435 if (!data2)
16436 exit (1);
16437 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
16438 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16439 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16440 exit (1);
16441 for (i = 0; i < pagesize; ++i)
16442 if (*(data + i) != *(data2 + i))
16443 exit (1);
16445 /* Finally, make sure that changes to the mapped area do not
16446 percolate back to the file as seen by read(). (This is a bug on
16447 some variants of i386 svr4.0.) */
16448 for (i = 0; i < pagesize; ++i)
16449 *(data2 + i) = *(data2 + i) + 1;
16450 data3 = (char *) malloc (pagesize);
16451 if (!data3)
16452 exit (1);
16453 if (read (fd, data3, pagesize) != pagesize)
16454 exit (1);
16455 for (i = 0; i < pagesize; ++i)
16456 if (*(data + i) != *(data3 + i))
16457 exit (1);
16458 close (fd);
16459 exit (0);
16461 _ACEOF
16462 rm -f conftest$ac_exeext
16463 if { (eval echo "$as_me:16463: \"$ac_link\"") >&5
16464 (eval $ac_link) 2>&5
16465 ac_status=$?
16466 echo "$as_me:16466: \$? = $ac_status" >&5
16467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16468 { (eval echo "$as_me:16468: \"$ac_try\"") >&5
16469 (eval $ac_try) 2>&5
16470 ac_status=$?
16471 echo "$as_me:16471: \$? = $ac_status" >&5
16472 (exit $ac_status); }; }; then
16473 ac_cv_func_mmap_fixed_mapped=yes
16474 else
16475 echo "$as_me: program exited with status $ac_status" >&5
16476 echo "$as_me: failed program was:" >&5
16477 cat conftest.$ac_ext >&5
16478 ac_cv_func_mmap_fixed_mapped=no
16480 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
16483 echo "$as_me:16483: result: $ac_cv_func_mmap_fixed_mapped" >&5
16484 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16485 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16487 cat >>confdefs.h <<\EOF
16488 #define HAVE_MMAP 1
16492 rm -f conftest.mmap
16494 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
16495 unistd.h sys/param.h
16497 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
16498 echo "$as_me:16498: checking for $ac_header" >&5
16499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16500 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
16501 echo $ECHO_N "(cached) $ECHO_C" >&6
16502 else
16503 cat >conftest.$ac_ext <<_ACEOF
16504 #line 16504 "configure"
16505 #include "confdefs.h"
16506 #include <$ac_header>
16507 _ACEOF
16508 if { (eval echo "$as_me:16508: \"$ac_cpp conftest.$ac_ext\"") >&5
16509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16510 ac_status=$?
16511 egrep -v '^ *\+' conftest.er1 >conftest.err
16512 rm -f conftest.er1
16513 cat conftest.err >&5
16514 echo "$as_me:16514: \$? = $ac_status" >&5
16515 (exit $ac_status); } >/dev/null; then
16516 if test -s conftest.err; then
16517 ac_cpp_err=$ac_c_preproc_warn_flag
16518 else
16519 ac_cpp_err=
16521 else
16522 ac_cpp_err=yes
16524 if test -z "$ac_cpp_err"; then
16525 eval "$ac_ac_Header=yes"
16526 else
16527 echo "$as_me: failed program was:" >&5
16528 cat conftest.$ac_ext >&5
16529 eval "$ac_ac_Header=no"
16531 rm -f conftest.err conftest.$ac_ext
16533 echo "$as_me:16533: result: `eval echo '${'$ac_ac_Header'}'`" >&5
16534 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
16535 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
16536 cat >>confdefs.h <<EOF
16537 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
16541 done
16543 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
16544 strdup __argz_count __argz_stringify __argz_next
16546 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
16547 echo "$as_me:16547: checking for $ac_func" >&5
16548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16549 if eval "test \"\${$ac_ac_var+set}\" = set"; then
16550 echo $ECHO_N "(cached) $ECHO_C" >&6
16551 else
16552 cat >conftest.$ac_ext <<_ACEOF
16553 #line 16553 "configure"
16554 #include "confdefs.h"
16555 /* System header to define __stub macros and hopefully few prototypes,
16556 which can conflict with char $ac_func (); below. */
16557 #include <assert.h>
16558 /* Override any gcc2 internal prototype to avoid an error. */
16559 #ifdef __cplusplus
16560 extern "C"
16561 #endif
16562 /* We use char because int might match the return type of a gcc2
16563 builtin and then its argument prototype would still apply. */
16564 char $ac_func ();
16565 char (*f) ();
16568 main ()
16570 /* The GNU C library defines this for functions which it implements
16571 to always fail with ENOSYS. Some functions are actually named
16572 something starting with __ and the normal name is an alias. */
16573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16574 choke me
16575 #else
16576 f = $ac_func;
16577 #endif
16580 return 0;
16582 _ACEOF
16583 rm -f conftest.$ac_objext conftest$ac_exeext
16584 if { (eval echo "$as_me:16584: \"$ac_link\"") >&5
16585 (eval $ac_link) 2>&5
16586 ac_status=$?
16587 echo "$as_me:16587: \$? = $ac_status" >&5
16588 (exit $ac_status); } &&
16589 { ac_try='test -s conftest$ac_exeext'
16590 { (eval echo "$as_me:16590: \"$ac_try\"") >&5
16591 (eval $ac_try) 2>&5
16592 ac_status=$?
16593 echo "$as_me:16593: \$? = $ac_status" >&5
16594 (exit $ac_status); }; }; then
16595 eval "$ac_ac_var=yes"
16596 else
16597 echo "$as_me: failed program was:" >&5
16598 cat conftest.$ac_ext >&5
16599 eval "$ac_ac_var=no"
16601 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16603 echo "$as_me:16603: result: `eval echo '${'$ac_ac_var'}'`" >&5
16604 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16605 if test `eval echo '${'$ac_ac_var'}'` = yes; then
16606 cat >>confdefs.h <<EOF
16607 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16611 done
16613 if test "${ac_cv_func_stpcpy+set}" != "set"; then
16615 for ac_func in stpcpy
16617 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
16618 echo "$as_me:16618: checking for $ac_func" >&5
16619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16620 if eval "test \"\${$ac_ac_var+set}\" = set"; then
16621 echo $ECHO_N "(cached) $ECHO_C" >&6
16622 else
16623 cat >conftest.$ac_ext <<_ACEOF
16624 #line 16624 "configure"
16625 #include "confdefs.h"
16626 /* System header to define __stub macros and hopefully few prototypes,
16627 which can conflict with char $ac_func (); below. */
16628 #include <assert.h>
16629 /* Override any gcc2 internal prototype to avoid an error. */
16630 #ifdef __cplusplus
16631 extern "C"
16632 #endif
16633 /* We use char because int might match the return type of a gcc2
16634 builtin and then its argument prototype would still apply. */
16635 char $ac_func ();
16636 char (*f) ();
16639 main ()
16641 /* The GNU C library defines this for functions which it implements
16642 to always fail with ENOSYS. Some functions are actually named
16643 something starting with __ and the normal name is an alias. */
16644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16645 choke me
16646 #else
16647 f = $ac_func;
16648 #endif
16651 return 0;
16653 _ACEOF
16654 rm -f conftest.$ac_objext conftest$ac_exeext
16655 if { (eval echo "$as_me:16655: \"$ac_link\"") >&5
16656 (eval $ac_link) 2>&5
16657 ac_status=$?
16658 echo "$as_me:16658: \$? = $ac_status" >&5
16659 (exit $ac_status); } &&
16660 { ac_try='test -s conftest$ac_exeext'
16661 { (eval echo "$as_me:16661: \"$ac_try\"") >&5
16662 (eval $ac_try) 2>&5
16663 ac_status=$?
16664 echo "$as_me:16664: \$? = $ac_status" >&5
16665 (exit $ac_status); }; }; then
16666 eval "$ac_ac_var=yes"
16667 else
16668 echo "$as_me: failed program was:" >&5
16669 cat conftest.$ac_ext >&5
16670 eval "$ac_ac_var=no"
16672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16674 echo "$as_me:16674: result: `eval echo '${'$ac_ac_var'}'`" >&5
16675 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
16676 if test `eval echo '${'$ac_ac_var'}'` = yes; then
16677 cat >>confdefs.h <<EOF
16678 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
16682 done
16685 if test "${ac_cv_func_stpcpy}" = "yes"; then
16687 cat >>confdefs.h <<\EOF
16688 #define HAVE_STPCPY 1
16693 if test $ac_cv_header_locale_h = yes; then
16694 echo "$as_me:16694: checking for LC_MESSAGES" >&5
16695 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
16696 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
16697 echo $ECHO_N "(cached) $ECHO_C" >&6
16698 else
16699 cat >conftest.$ac_ext <<_ACEOF
16700 #line 16700 "configure"
16701 #include "confdefs.h"
16702 #include <locale.h>
16704 main ()
16706 return LC_MESSAGES
16708 return 0;
16710 _ACEOF
16711 rm -f conftest.$ac_objext conftest$ac_exeext
16712 if { (eval echo "$as_me:16712: \"$ac_link\"") >&5
16713 (eval $ac_link) 2>&5
16714 ac_status=$?
16715 echo "$as_me:16715: \$? = $ac_status" >&5
16716 (exit $ac_status); } &&
16717 { ac_try='test -s conftest$ac_exeext'
16718 { (eval echo "$as_me:16718: \"$ac_try\"") >&5
16719 (eval $ac_try) 2>&5
16720 ac_status=$?
16721 echo "$as_me:16721: \$? = $ac_status" >&5
16722 (exit $ac_status); }; }; then
16723 am_cv_val_LC_MESSAGES=yes
16724 else
16725 echo "$as_me: failed program was:" >&5
16726 cat conftest.$ac_ext >&5
16727 am_cv_val_LC_MESSAGES=no
16729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16731 echo "$as_me:16731: result: $am_cv_val_LC_MESSAGES" >&5
16732 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
16733 if test $am_cv_val_LC_MESSAGES = yes; then
16735 cat >>confdefs.h <<\EOF
16736 #define HAVE_LC_MESSAGES 1
16741 echo "$as_me:16741: checking whether NLS is requested" >&5
16742 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
16743 # Check whether --enable-nls or --disable-nls was given.
16744 if test "${enable_nls+set}" = set; then
16745 enableval="$enable_nls"
16746 USE_NLS=$enableval
16747 else
16748 USE_NLS=yes
16750 echo "$as_me:16750: result: $USE_NLS" >&5
16751 echo "${ECHO_T}$USE_NLS" >&6
16753 USE_INCLUDED_LIBINTL=no
16755 if test "$USE_NLS" = "yes"; then
16757 cat >>confdefs.h <<\EOF
16758 #define ENABLE_NLS 1
16761 echo "$as_me:16761: checking whether included gettext is requested" >&5
16762 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
16764 # Check whether --with-included-gettext or --without-included-gettext was given.
16765 if test "${with_included_gettext+set}" = set; then
16766 withval="$with_included_gettext"
16767 nls_cv_force_use_gnu_gettext=$withval
16768 else
16769 nls_cv_force_use_gnu_gettext=no
16771 echo "$as_me:16771: result: $nls_cv_force_use_gnu_gettext" >&5
16772 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
16774 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
16775 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
16776 nls_cv_header_intl=
16777 nls_cv_header_libgt=
16778 CATOBJEXT=NONE
16780 echo "$as_me:16780: checking for libintl.h" >&5
16781 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
16782 if test "${ac_cv_header_libintl_h+set}" = set; then
16783 echo $ECHO_N "(cached) $ECHO_C" >&6
16784 else
16785 cat >conftest.$ac_ext <<_ACEOF
16786 #line 16786 "configure"
16787 #include "confdefs.h"
16788 #include <libintl.h>
16789 _ACEOF
16790 if { (eval echo "$as_me:16790: \"$ac_cpp conftest.$ac_ext\"") >&5
16791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16792 ac_status=$?
16793 egrep -v '^ *\+' conftest.er1 >conftest.err
16794 rm -f conftest.er1
16795 cat conftest.err >&5
16796 echo "$as_me:16796: \$? = $ac_status" >&5
16797 (exit $ac_status); } >/dev/null; then
16798 if test -s conftest.err; then
16799 ac_cpp_err=$ac_c_preproc_warn_flag
16800 else
16801 ac_cpp_err=
16803 else
16804 ac_cpp_err=yes
16806 if test -z "$ac_cpp_err"; then
16807 ac_cv_header_libintl_h=yes
16808 else
16809 echo "$as_me: failed program was:" >&5
16810 cat conftest.$ac_ext >&5
16811 ac_cv_header_libintl_h=no
16813 rm -f conftest.err conftest.$ac_ext
16815 echo "$as_me:16815: result: $ac_cv_header_libintl_h" >&5
16816 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
16817 if test $ac_cv_header_libintl_h = yes; then
16818 echo "$as_me:16818: checking for gettext in libc" >&5
16819 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
16820 if test "${gt_cv_func_gettext_libc+set}" = set; then
16821 echo $ECHO_N "(cached) $ECHO_C" >&6
16822 else
16823 cat >conftest.$ac_ext <<_ACEOF
16824 #line 16824 "configure"
16825 #include "confdefs.h"
16826 #include <libintl.h>
16828 main ()
16830 return (int) gettext ("")
16832 return 0;
16834 _ACEOF
16835 rm -f conftest.$ac_objext conftest$ac_exeext
16836 if { (eval echo "$as_me:16836: \"$ac_link\"") >&5
16837 (eval $ac_link) 2>&5
16838 ac_status=$?
16839 echo "$as_me:16839: \$? = $ac_status" >&5
16840 (exit $ac_status); } &&
16841 { ac_try='test -s conftest$ac_exeext'
16842 { (eval echo "$as_me:16842: \"$ac_try\"") >&5
16843 (eval $ac_try) 2>&5
16844 ac_status=$?
16845 echo "$as_me:16845: \$? = $ac_status" >&5
16846 (exit $ac_status); }; }; then
16847 gt_cv_func_gettext_libc=yes
16848 else
16849 echo "$as_me: failed program was:" >&5
16850 cat conftest.$ac_ext >&5
16851 gt_cv_func_gettext_libc=no
16853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16855 echo "$as_me:16855: result: $gt_cv_func_gettext_libc" >&5
16856 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
16858 if test "$gt_cv_func_gettext_libc" != "yes"; then
16859 echo "$as_me:16859: checking for bindtextdomain in -lintl" >&5
16860 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
16861 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
16862 echo $ECHO_N "(cached) $ECHO_C" >&6
16863 else
16864 ac_check_lib_save_LIBS=$LIBS
16865 LIBS="-lintl $LIBS"
16866 cat >conftest.$ac_ext <<_ACEOF
16867 #line 16867 "configure"
16868 #include "confdefs.h"
16870 /* Override any gcc2 internal prototype to avoid an error. */
16871 #ifdef __cplusplus
16872 extern "C"
16873 #endif
16874 /* We use char because int might match the return type of a gcc2
16875 builtin and then its argument prototype would still apply. */
16876 char bindtextdomain ();
16878 main ()
16880 bindtextdomain ();
16882 return 0;
16884 _ACEOF
16885 rm -f conftest.$ac_objext conftest$ac_exeext
16886 if { (eval echo "$as_me:16886: \"$ac_link\"") >&5
16887 (eval $ac_link) 2>&5
16888 ac_status=$?
16889 echo "$as_me:16889: \$? = $ac_status" >&5
16890 (exit $ac_status); } &&
16891 { ac_try='test -s conftest$ac_exeext'
16892 { (eval echo "$as_me:16892: \"$ac_try\"") >&5
16893 (eval $ac_try) 2>&5
16894 ac_status=$?
16895 echo "$as_me:16895: \$? = $ac_status" >&5
16896 (exit $ac_status); }; }; then
16897 ac_cv_lib_intl_bindtextdomain=yes
16898 else
16899 echo "$as_me: failed program was:" >&5
16900 cat conftest.$ac_ext >&5
16901 ac_cv_lib_intl_bindtextdomain=no
16903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16904 LIBS=$ac_check_lib_save_LIBS
16906 echo "$as_me:16906: result: $ac_cv_lib_intl_bindtextdomain" >&5
16907 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
16908 if test $ac_cv_lib_intl_bindtextdomain = yes; then
16910 echo "$as_me:16910: checking for gettext in -lintl" >&5
16911 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
16912 if test "${ac_cv_lib_intl_gettext+set}" = set; then
16913 echo $ECHO_N "(cached) $ECHO_C" >&6
16914 else
16915 ac_check_lib_save_LIBS=$LIBS
16916 LIBS="-lintl $LIBS"
16917 cat >conftest.$ac_ext <<_ACEOF
16918 #line 16918 "configure"
16919 #include "confdefs.h"
16921 /* Override any gcc2 internal prototype to avoid an error. */
16922 #ifdef __cplusplus
16923 extern "C"
16924 #endif
16925 /* We use char because int might match the return type of a gcc2
16926 builtin and then its argument prototype would still apply. */
16927 char gettext ();
16929 main ()
16931 gettext ();
16933 return 0;
16935 _ACEOF
16936 rm -f conftest.$ac_objext conftest$ac_exeext
16937 if { (eval echo "$as_me:16937: \"$ac_link\"") >&5
16938 (eval $ac_link) 2>&5
16939 ac_status=$?
16940 echo "$as_me:16940: \$? = $ac_status" >&5
16941 (exit $ac_status); } &&
16942 { ac_try='test -s conftest$ac_exeext'
16943 { (eval echo "$as_me:16943: \"$ac_try\"") >&5
16944 (eval $ac_try) 2>&5
16945 ac_status=$?
16946 echo "$as_me:16946: \$? = $ac_status" >&5
16947 (exit $ac_status); }; }; then
16948 ac_cv_lib_intl_gettext=yes
16949 else
16950 echo "$as_me: failed program was:" >&5
16951 cat conftest.$ac_ext >&5
16952 ac_cv_lib_intl_gettext=no
16954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16955 LIBS=$ac_check_lib_save_LIBS
16957 echo "$as_me:16957: result: $ac_cv_lib_intl_gettext" >&5
16958 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
16959 if test $ac_cv_lib_intl_gettext = yes; then
16960 cat >>confdefs.h <<EOF
16961 #define HAVE_LIBINTL 1
16964 LIBS="-lintl $LIBS"
16972 if test "$gt_cv_func_gettext_libc" = "yes" \
16973 || test "$ac_cv_lib_intl_gettext" = "yes"; then
16975 cat >>confdefs.h <<\EOF
16976 #define HAVE_GETTEXT 1
16979 # Extract the first word of "msgfmt", so it can be a program name with args.
16980 set dummy msgfmt; ac_word=$2
16981 echo "$as_me:16981: checking for $ac_word" >&5
16982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16983 if test "${ac_cv_path_MSGFMT+set}" = set; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16985 else
16986 case "$MSGFMT" in
16988 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16991 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16992 for ac_dir in $PATH; do
16993 test -z "$ac_dir" && ac_dir=.
16994 if test -f $ac_dir/$ac_word; then
16995 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
16996 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
16997 break
17000 done
17001 IFS="$ac_save_ifs"
17002 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
17004 esac
17006 MSGFMT="$ac_cv_path_MSGFMT"
17007 if test -n "$MSGFMT"; then
17008 echo "$as_me:17008: result: $MSGFMT" >&5
17009 echo "${ECHO_T}$MSGFMT" >&6
17010 else
17011 echo "$as_me:17011: result: no" >&5
17012 echo "${ECHO_T}no" >&6
17014 if test "$MSGFMT" != "no"; then
17016 for ac_func in dcgettext
17018 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
17019 echo "$as_me:17019: checking for $ac_func" >&5
17020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17021 if eval "test \"\${$ac_ac_var+set}\" = set"; then
17022 echo $ECHO_N "(cached) $ECHO_C" >&6
17023 else
17024 cat >conftest.$ac_ext <<_ACEOF
17025 #line 17025 "configure"
17026 #include "confdefs.h"
17027 /* System header to define __stub macros and hopefully few prototypes,
17028 which can conflict with char $ac_func (); below. */
17029 #include <assert.h>
17030 /* Override any gcc2 internal prototype to avoid an error. */
17031 #ifdef __cplusplus
17032 extern "C"
17033 #endif
17034 /* We use char because int might match the return type of a gcc2
17035 builtin and then its argument prototype would still apply. */
17036 char $ac_func ();
17037 char (*f) ();
17040 main ()
17042 /* The GNU C library defines this for functions which it implements
17043 to always fail with ENOSYS. Some functions are actually named
17044 something starting with __ and the normal name is an alias. */
17045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17046 choke me
17047 #else
17048 f = $ac_func;
17049 #endif
17052 return 0;
17054 _ACEOF
17055 rm -f conftest.$ac_objext conftest$ac_exeext
17056 if { (eval echo "$as_me:17056: \"$ac_link\"") >&5
17057 (eval $ac_link) 2>&5
17058 ac_status=$?
17059 echo "$as_me:17059: \$? = $ac_status" >&5
17060 (exit $ac_status); } &&
17061 { ac_try='test -s conftest$ac_exeext'
17062 { (eval echo "$as_me:17062: \"$ac_try\"") >&5
17063 (eval $ac_try) 2>&5
17064 ac_status=$?
17065 echo "$as_me:17065: \$? = $ac_status" >&5
17066 (exit $ac_status); }; }; then
17067 eval "$ac_ac_var=yes"
17068 else
17069 echo "$as_me: failed program was:" >&5
17070 cat conftest.$ac_ext >&5
17071 eval "$ac_ac_var=no"
17073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17075 echo "$as_me:17075: result: `eval echo '${'$ac_ac_var'}'`" >&5
17076 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
17077 if test `eval echo '${'$ac_ac_var'}'` = yes; then
17078 cat >>confdefs.h <<EOF
17079 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
17083 done
17085 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17086 set dummy gmsgfmt; ac_word=$2
17087 echo "$as_me:17087: checking for $ac_word" >&5
17088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17089 if test "${ac_cv_path_GMSGFMT+set}" = set; then
17090 echo $ECHO_N "(cached) $ECHO_C" >&6
17091 else
17092 case $GMSGFMT in
17093 [\\/]* | ?:[\\/]*)
17094 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17097 ac_save_IFS=$IFS; IFS=$ac_path_separator
17098 ac_dummy="$PATH"
17099 for ac_dir in $ac_dummy; do
17100 IFS=$ac_save_IFS
17101 test -z "$ac_dir" && ac_dir=.
17102 if $as_executable_p "$ac_dir/$ac_word"; then
17103 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
17104 echo "$as_me:17104: found $ac_dir/$ac_word" >&5
17105 break
17107 done
17109 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17111 esac
17113 GMSGFMT=$ac_cv_path_GMSGFMT
17115 if test -n "$GMSGFMT"; then
17116 echo "$as_me:17116: result: $GMSGFMT" >&5
17117 echo "${ECHO_T}$GMSGFMT" >&6
17118 else
17119 echo "$as_me:17119: result: no" >&5
17120 echo "${ECHO_T}no" >&6
17123 # Extract the first word of "xgettext", so it can be a program name with args.
17124 set dummy xgettext; ac_word=$2
17125 echo "$as_me:17125: checking for $ac_word" >&5
17126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17127 if test "${ac_cv_path_XGETTEXT+set}" = set; then
17128 echo $ECHO_N "(cached) $ECHO_C" >&6
17129 else
17130 case "$XGETTEXT" in
17132 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17135 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
17136 for ac_dir in $PATH; do
17137 test -z "$ac_dir" && ac_dir=.
17138 if test -f $ac_dir/$ac_word; then
17139 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
17140 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
17141 break
17144 done
17145 IFS="$ac_save_ifs"
17146 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17148 esac
17150 XGETTEXT="$ac_cv_path_XGETTEXT"
17151 if test -n "$XGETTEXT"; then
17152 echo "$as_me:17152: result: $XGETTEXT" >&5
17153 echo "${ECHO_T}$XGETTEXT" >&6
17154 else
17155 echo "$as_me:17155: result: no" >&5
17156 echo "${ECHO_T}no" >&6
17159 cat >conftest.$ac_ext <<_ACEOF
17160 #line 17160 "configure"
17161 #include "confdefs.h"
17164 main ()
17166 extern int _nl_msg_cat_cntr;
17167 return _nl_msg_cat_cntr
17169 return 0;
17171 _ACEOF
17172 rm -f conftest.$ac_objext conftest$ac_exeext
17173 if { (eval echo "$as_me:17173: \"$ac_link\"") >&5
17174 (eval $ac_link) 2>&5
17175 ac_status=$?
17176 echo "$as_me:17176: \$? = $ac_status" >&5
17177 (exit $ac_status); } &&
17178 { ac_try='test -s conftest$ac_exeext'
17179 { (eval echo "$as_me:17179: \"$ac_try\"") >&5
17180 (eval $ac_try) 2>&5
17181 ac_status=$?
17182 echo "$as_me:17182: \$? = $ac_status" >&5
17183 (exit $ac_status); }; }; then
17184 CATOBJEXT=.gmo
17185 DATADIRNAME=share
17186 else
17187 echo "$as_me: failed program was:" >&5
17188 cat conftest.$ac_ext >&5
17189 CATOBJEXT=.mo
17190 DATADIRNAME=lib
17192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17193 INSTOBJEXT=.mo
17199 if test "$CATOBJEXT" = "NONE"; then
17200 echo "$as_me:17200: checking whether catgets can be used" >&5
17201 echo $ECHO_N "checking whether catgets can be used... $ECHO_C" >&6
17203 # Check whether --with-catgets or --without-catgets was given.
17204 if test "${with_catgets+set}" = set; then
17205 withval="$with_catgets"
17206 nls_cv_use_catgets=$withval
17207 else
17208 nls_cv_use_catgets=no
17210 echo "$as_me:17210: result: $nls_cv_use_catgets" >&5
17211 echo "${ECHO_T}$nls_cv_use_catgets" >&6
17213 if test "$nls_cv_use_catgets" = "yes"; then
17215 echo "$as_me:17215: checking for main in -li" >&5
17216 echo $ECHO_N "checking for main in -li... $ECHO_C" >&6
17217 if test "${ac_cv_lib_i_main+set}" = set; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17219 else
17220 ac_check_lib_save_LIBS=$LIBS
17221 LIBS="-li $LIBS"
17222 cat >conftest.$ac_ext <<_ACEOF
17223 #line 17223 "configure"
17224 #include "confdefs.h"
17227 main ()
17229 main ();
17231 return 0;
17233 _ACEOF
17234 rm -f conftest.$ac_objext conftest$ac_exeext
17235 if { (eval echo "$as_me:17235: \"$ac_link\"") >&5
17236 (eval $ac_link) 2>&5
17237 ac_status=$?
17238 echo "$as_me:17238: \$? = $ac_status" >&5
17239 (exit $ac_status); } &&
17240 { ac_try='test -s conftest$ac_exeext'
17241 { (eval echo "$as_me:17241: \"$ac_try\"") >&5
17242 (eval $ac_try) 2>&5
17243 ac_status=$?
17244 echo "$as_me:17244: \$? = $ac_status" >&5
17245 (exit $ac_status); }; }; then
17246 ac_cv_lib_i_main=yes
17247 else
17248 echo "$as_me: failed program was:" >&5
17249 cat conftest.$ac_ext >&5
17250 ac_cv_lib_i_main=no
17252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17253 LIBS=$ac_check_lib_save_LIBS
17255 echo "$as_me:17255: result: $ac_cv_lib_i_main" >&5
17256 echo "${ECHO_T}$ac_cv_lib_i_main" >&6
17257 if test $ac_cv_lib_i_main = yes; then
17258 cat >>confdefs.h <<EOF
17259 #define HAVE_LIBI 1
17262 LIBS="-li $LIBS"
17266 echo "$as_me:17266: checking for catgets" >&5
17267 echo $ECHO_N "checking for catgets... $ECHO_C" >&6
17268 if test "${ac_cv_func_catgets+set}" = set; then
17269 echo $ECHO_N "(cached) $ECHO_C" >&6
17270 else
17271 cat >conftest.$ac_ext <<_ACEOF
17272 #line 17272 "configure"
17273 #include "confdefs.h"
17274 /* System header to define __stub macros and hopefully few prototypes,
17275 which can conflict with char catgets (); below. */
17276 #include <assert.h>
17277 /* Override any gcc2 internal prototype to avoid an error. */
17278 #ifdef __cplusplus
17279 extern "C"
17280 #endif
17281 /* We use char because int might match the return type of a gcc2
17282 builtin and then its argument prototype would still apply. */
17283 char catgets ();
17284 char (*f) ();
17287 main ()
17289 /* The GNU C library defines this for functions which it implements
17290 to always fail with ENOSYS. Some functions are actually named
17291 something starting with __ and the normal name is an alias. */
17292 #if defined (__stub_catgets) || defined (__stub___catgets)
17293 choke me
17294 #else
17295 f = catgets;
17296 #endif
17299 return 0;
17301 _ACEOF
17302 rm -f conftest.$ac_objext conftest$ac_exeext
17303 if { (eval echo "$as_me:17303: \"$ac_link\"") >&5
17304 (eval $ac_link) 2>&5
17305 ac_status=$?
17306 echo "$as_me:17306: \$? = $ac_status" >&5
17307 (exit $ac_status); } &&
17308 { ac_try='test -s conftest$ac_exeext'
17309 { (eval echo "$as_me:17309: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17311 ac_status=$?
17312 echo "$as_me:17312: \$? = $ac_status" >&5
17313 (exit $ac_status); }; }; then
17314 ac_cv_func_catgets=yes
17315 else
17316 echo "$as_me: failed program was:" >&5
17317 cat conftest.$ac_ext >&5
17318 ac_cv_func_catgets=no
17320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17322 echo "$as_me:17322: result: $ac_cv_func_catgets" >&5
17323 echo "${ECHO_T}$ac_cv_func_catgets" >&6
17324 if test $ac_cv_func_catgets = yes; then
17326 cat >>confdefs.h <<\EOF
17327 #define HAVE_CATGETS 1
17330 INTLOBJS="\$(CATOBJS)"
17331 # Extract the first word of "gencat", so it can be a program name with args.
17332 set dummy gencat; ac_word=$2
17333 echo "$as_me:17333: checking for $ac_word" >&5
17334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17335 if test "${ac_cv_path_GENCAT+set}" = set; then
17336 echo $ECHO_N "(cached) $ECHO_C" >&6
17337 else
17338 case $GENCAT in
17339 [\\/]* | ?:[\\/]*)
17340 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
17343 ac_save_IFS=$IFS; IFS=$ac_path_separator
17344 ac_dummy="$PATH"
17345 for ac_dir in $ac_dummy; do
17346 IFS=$ac_save_IFS
17347 test -z "$ac_dir" && ac_dir=.
17348 if $as_executable_p "$ac_dir/$ac_word"; then
17349 ac_cv_path_GENCAT="$ac_dir/$ac_word"
17350 echo "$as_me:17350: found $ac_dir/$ac_word" >&5
17351 break
17353 done
17355 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
17357 esac
17359 GENCAT=$ac_cv_path_GENCAT
17361 if test -n "$GENCAT"; then
17362 echo "$as_me:17362: result: $GENCAT" >&5
17363 echo "${ECHO_T}$GENCAT" >&6
17364 else
17365 echo "$as_me:17365: result: no" >&5
17366 echo "${ECHO_T}no" >&6
17368 if test "$GENCAT" != "no"; then
17369 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17370 set dummy gmsgfmt; ac_word=$2
17371 echo "$as_me:17371: checking for $ac_word" >&5
17372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17373 if test "${ac_cv_path_GMSGFMT+set}" = set; then
17374 echo $ECHO_N "(cached) $ECHO_C" >&6
17375 else
17376 case $GMSGFMT in
17377 [\\/]* | ?:[\\/]*)
17378 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17381 ac_save_IFS=$IFS; IFS=$ac_path_separator
17382 ac_dummy="$PATH"
17383 for ac_dir in $ac_dummy; do
17384 IFS=$ac_save_IFS
17385 test -z "$ac_dir" && ac_dir=.
17386 if $as_executable_p "$ac_dir/$ac_word"; then
17387 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
17388 echo "$as_me:17388: found $ac_dir/$ac_word" >&5
17389 break
17391 done
17393 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
17395 esac
17397 GMSGFMT=$ac_cv_path_GMSGFMT
17399 if test -n "$GMSGFMT"; then
17400 echo "$as_me:17400: result: $GMSGFMT" >&5
17401 echo "${ECHO_T}$GMSGFMT" >&6
17402 else
17403 echo "$as_me:17403: result: no" >&5
17404 echo "${ECHO_T}no" >&6
17407 if test "$GMSGFMT" = "no"; then
17408 # Extract the first word of "msgfmt", so it can be a program name with args.
17409 set dummy msgfmt; ac_word=$2
17410 echo "$as_me:17410: checking for $ac_word" >&5
17411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17412 if test "${ac_cv_path_GMSGFMT+set}" = set; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17414 else
17415 case "$GMSGFMT" in
17417 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
17421 for ac_dir in $PATH; do
17422 test -z "$ac_dir" && ac_dir=.
17423 if test -f $ac_dir/$ac_word; then
17424 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
17425 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
17426 break
17429 done
17430 IFS="$ac_save_ifs"
17431 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
17433 esac
17435 GMSGFMT="$ac_cv_path_GMSGFMT"
17436 if test -n "$GMSGFMT"; then
17437 echo "$as_me:17437: result: $GMSGFMT" >&5
17438 echo "${ECHO_T}$GMSGFMT" >&6
17439 else
17440 echo "$as_me:17440: result: no" >&5
17441 echo "${ECHO_T}no" >&6
17445 # Extract the first word of "xgettext", so it can be a program name with args.
17446 set dummy xgettext; ac_word=$2
17447 echo "$as_me:17447: checking for $ac_word" >&5
17448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17449 if test "${ac_cv_path_XGETTEXT+set}" = set; then
17450 echo $ECHO_N "(cached) $ECHO_C" >&6
17451 else
17452 case "$XGETTEXT" in
17454 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
17458 for ac_dir in $PATH; do
17459 test -z "$ac_dir" && ac_dir=.
17460 if test -f $ac_dir/$ac_word; then
17461 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
17462 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
17463 break
17466 done
17467 IFS="$ac_save_ifs"
17468 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17470 esac
17472 XGETTEXT="$ac_cv_path_XGETTEXT"
17473 if test -n "$XGETTEXT"; then
17474 echo "$as_me:17474: result: $XGETTEXT" >&5
17475 echo "${ECHO_T}$XGETTEXT" >&6
17476 else
17477 echo "$as_me:17477: result: no" >&5
17478 echo "${ECHO_T}no" >&6
17481 USE_INCLUDED_LIBINTL=yes
17482 CATOBJEXT=.cat
17483 INSTOBJEXT=.cat
17484 DATADIRNAME=lib
17485 INTLDEPS='$(top_builddir)/intl/libintl.a'
17486 INTLLIBS=$INTLDEPS
17487 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
17488 nls_cv_header_intl=intl/libintl.h
17489 nls_cv_header_libgt=intl/libgettext.h
17496 if test "$CATOBJEXT" = "NONE"; then
17497 nls_cv_use_gnu_gettext=yes
17501 if test "$nls_cv_use_gnu_gettext" = "yes"; then
17502 INTLOBJS="\$(GETTOBJS)"
17503 # Extract the first word of "msgfmt", so it can be a program name with args.
17504 set dummy msgfmt; ac_word=$2
17505 echo "$as_me:17505: checking for $ac_word" >&5
17506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17507 if test "${ac_cv_path_MSGFMT+set}" = set; then
17508 echo $ECHO_N "(cached) $ECHO_C" >&6
17509 else
17510 case "$MSGFMT" in
17512 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17515 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
17516 for ac_dir in $PATH; do
17517 test -z "$ac_dir" && ac_dir=.
17518 if test -f $ac_dir/$ac_word; then
17519 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
17520 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
17521 break
17524 done
17525 IFS="$ac_save_ifs"
17526 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
17528 esac
17530 MSGFMT="$ac_cv_path_MSGFMT"
17531 if test -n "$MSGFMT"; then
17532 echo "$as_me:17532: result: $MSGFMT" >&5
17533 echo "${ECHO_T}$MSGFMT" >&6
17534 else
17535 echo "$as_me:17535: result: no" >&5
17536 echo "${ECHO_T}no" >&6
17539 # Extract the first word of "gmsgfmt", so it can be a program name with args.
17540 set dummy gmsgfmt; ac_word=$2
17541 echo "$as_me:17541: checking for $ac_word" >&5
17542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17543 if test "${ac_cv_path_GMSGFMT+set}" = set; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
17545 else
17546 case $GMSGFMT in
17547 [\\/]* | ?:[\\/]*)
17548 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17551 ac_save_IFS=$IFS; IFS=$ac_path_separator
17552 ac_dummy="$PATH"
17553 for ac_dir in $ac_dummy; do
17554 IFS=$ac_save_IFS
17555 test -z "$ac_dir" && ac_dir=.
17556 if $as_executable_p "$ac_dir/$ac_word"; then
17557 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
17558 echo "$as_me:17558: found $ac_dir/$ac_word" >&5
17559 break
17561 done
17563 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17565 esac
17567 GMSGFMT=$ac_cv_path_GMSGFMT
17569 if test -n "$GMSGFMT"; then
17570 echo "$as_me:17570: result: $GMSGFMT" >&5
17571 echo "${ECHO_T}$GMSGFMT" >&6
17572 else
17573 echo "$as_me:17573: result: no" >&5
17574 echo "${ECHO_T}no" >&6
17577 # Extract the first word of "xgettext", so it can be a program name with args.
17578 set dummy xgettext; ac_word=$2
17579 echo "$as_me:17579: checking for $ac_word" >&5
17580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17581 if test "${ac_cv_path_XGETTEXT+set}" = set; then
17582 echo $ECHO_N "(cached) $ECHO_C" >&6
17583 else
17584 case "$XGETTEXT" in
17586 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17589 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
17590 for ac_dir in $PATH; do
17591 test -z "$ac_dir" && ac_dir=.
17592 if test -f $ac_dir/$ac_word; then
17593 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
17594 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
17595 break
17598 done
17599 IFS="$ac_save_ifs"
17600 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17602 esac
17604 XGETTEXT="$ac_cv_path_XGETTEXT"
17605 if test -n "$XGETTEXT"; then
17606 echo "$as_me:17606: result: $XGETTEXT" >&5
17607 echo "${ECHO_T}$XGETTEXT" >&6
17608 else
17609 echo "$as_me:17609: result: no" >&5
17610 echo "${ECHO_T}no" >&6
17613 USE_INCLUDED_LIBINTL=yes
17614 CATOBJEXT=.gmo
17615 INSTOBJEXT=.mo
17616 DATADIRNAME=share
17617 INTLDEPS='$(top_builddir)/intl/libintl.a'
17618 INTLLIBS=$INTLDEPS
17619 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
17620 nls_cv_header_intl=intl/libintl.h
17621 nls_cv_header_libgt=intl/libgettext.h
17624 if test "$XGETTEXT" != ":"; then
17625 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
17627 else
17628 echo "$as_me:17628: result: found xgettext program is not GNU xgettext; ignore it" >&5
17629 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
17630 XGETTEXT=":"
17634 # We need to process the po/ directory.
17635 POSUB=po
17636 else
17637 DATADIRNAME=share
17638 nls_cv_header_intl=intl/libintl.h
17639 nls_cv_header_libgt=intl/libgettext.h
17641 if test -z "$nls_cv_header_intl"; then
17642 # Clean out junk possibly left behind by a previous configuration.
17643 rm -f intl/libintl.h
17645 ac_config_links="$ac_config_links $nls_cv_header_intl:$nls_cv_header_libgt"
17647 ac_config_commands="$ac_config_commands default-3"
17649 # If this is used in GNU gettext we have to set USE_NLS to `yes'
17650 # because some of the sources are only built for this goal.
17651 if test "$PACKAGE" = gettext; then
17652 USE_NLS=yes
17653 USE_INCLUDED_LIBINTL=yes
17656 for lang in $ALL_LINGUAS; do
17657 GMOFILES="$GMOFILES $lang.gmo"
17658 POFILES="$POFILES $lang.po"
17659 done
17661 if test "x$CATOBJEXT" != "x"; then
17662 if test "x$ALL_LINGUAS" = "x"; then
17663 LINGUAS=
17664 else
17665 echo "$as_me:17665: checking for catalogs to be installed" >&5
17666 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
17667 NEW_LINGUAS=
17668 for lang in ${LINGUAS=$ALL_LINGUAS}; do
17669 case "$ALL_LINGUAS" in
17670 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
17671 esac
17672 done
17673 LINGUAS=$NEW_LINGUAS
17674 echo "$as_me:17674: result: $LINGUAS" >&5
17675 echo "${ECHO_T}$LINGUAS" >&6
17678 if test -n "$LINGUAS"; then
17679 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
17683 if test $ac_cv_header_locale_h = yes; then
17684 INCLUDE_LOCALE_H="#include <locale.h>"
17685 else
17686 INCLUDE_LOCALE_H="\
17687 /* The system does not provide the header <locale.h>. Take care yourself. */"
17690 test -d intl || mkdir intl
17691 if test "$CATOBJEXT" = ".cat"; then
17692 echo "$as_me:17692: checking for linux/version.h" >&5
17693 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
17694 if test "${ac_cv_header_linux_version_h+set}" = set; then
17695 echo $ECHO_N "(cached) $ECHO_C" >&6
17696 else
17697 cat >conftest.$ac_ext <<_ACEOF
17698 #line 17698 "configure"
17699 #include "confdefs.h"
17700 #include <linux/version.h>
17701 _ACEOF
17702 if { (eval echo "$as_me:17702: \"$ac_cpp conftest.$ac_ext\"") >&5
17703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17704 ac_status=$?
17705 egrep -v '^ *\+' conftest.er1 >conftest.err
17706 rm -f conftest.er1
17707 cat conftest.err >&5
17708 echo "$as_me:17708: \$? = $ac_status" >&5
17709 (exit $ac_status); } >/dev/null; then
17710 if test -s conftest.err; then
17711 ac_cpp_err=$ac_c_preproc_warn_flag
17712 else
17713 ac_cpp_err=
17715 else
17716 ac_cpp_err=yes
17718 if test -z "$ac_cpp_err"; then
17719 ac_cv_header_linux_version_h=yes
17720 else
17721 echo "$as_me: failed program was:" >&5
17722 cat conftest.$ac_ext >&5
17723 ac_cv_header_linux_version_h=no
17725 rm -f conftest.err conftest.$ac_ext
17727 echo "$as_me:17727: result: $ac_cv_header_linux_version_h" >&5
17728 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
17729 if test $ac_cv_header_linux_version_h = yes; then
17730 msgformat=linux
17731 else
17732 msgformat=xopen
17735 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
17737 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
17738 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
17740 if test "$PACKAGE" = "gettext"; then
17741 GT_NO="#NO#"
17742 GT_YES=
17743 else
17744 GT_NO=
17745 GT_YES="#YES#"
17748 MKINSTALLDIRS=
17749 if test -n "$ac_aux_dir"; then
17750 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
17752 if test -z "$MKINSTALLDIRS"; then
17753 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17758 test -d po || mkdir po
17759 case "$srcdir" in
17761 posrcprefix="../" ;;
17762 /* | [A-Za-z]:*)
17763 posrcprefix="$srcdir/" ;;
17765 posrcprefix="../$srcdir/" ;;
17766 esac
17767 rm -f po/POTFILES
17768 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
17769 < $srcdir/po/POTFILES.in > po/POTFILES
17771 # These no-op lines work around a bug in automake 1.4:
17772 # it doesn't recognize the assignments to LIBOBJS in m4/*.m4.
17773 : LIBOBJS="$LIBOBJS fnmatch.o lstat.o"
17774 : LIBOBJS="$LIBOBJS malloc.o memcmp.o mktime.o"
17775 : LIBOBJS="$LIBOBJS realloc.o regex.o stat.o strftime.o"
17777 # This is necessary so that .o files in LIBOBJS are also built via
17778 # the ANSI2KNR-filtering rules.
17779 LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'`
17780 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"
17781 cat >confcache <<\_ACEOF
17782 # This file is a shell script that caches the results of configure
17783 # tests run on this system so they can be shared between configure
17784 # scripts and configure runs, see configure's option --config-cache.
17785 # It is not useful on other systems. If it contains results you don't
17786 # want to keep, you may remove or edit it.
17788 # config.status only pays attention to the cache file if you give it
17789 # the --recheck option to rerun configure.
17791 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17792 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17793 # following values.
17795 _ACEOF
17797 # The following way of writing the cache mishandles newlines in values,
17798 # but we know of no workaround that is simple, portable, and efficient.
17799 # So, don't put newlines in cache variables' values.
17800 # Ultrix sh set writes to stderr and can't be redirected directly,
17801 # and sets the high bit in the cache file unless we assign to the vars.
17803 (set) 2>&1 |
17804 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17805 *ac_space=\ *)
17806 # `set' does not quote correctly, so add quotes (double-quote
17807 # substitution turns \\\\ into \\, and sed turns \\ into \).
17808 sed -n \
17809 "s/'/'\\\\''/g;
17810 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17813 # `set' quotes correctly as required by POSIX, so do not add quotes.
17814 sed -n \
17815 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17817 esac;
17819 sed '
17820 t clear
17821 : clear
17822 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17823 t end
17824 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17825 : end' >>confcache
17826 if cmp -s $cache_file confcache; then :; else
17827 if test -w $cache_file; then
17828 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17829 cat confcache >$cache_file
17830 else
17831 echo "not updating unwritable cache $cache_file"
17834 rm -f confcache
17836 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17837 # Let make expand exec_prefix.
17838 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17840 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17841 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17842 # trailing colons and then remove the whole line if VPATH becomes empty
17843 # (actually we leave an empty line to preserve line numbers).
17844 if test "x$srcdir" = x.; then
17845 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17846 s/:*\$(srcdir):*/:/;
17847 s/:*\${srcdir}:*/:/;
17848 s/:*@srcdir@:*/:/;
17849 s/^\([^=]*=[ ]*\):*/\1/;
17850 s/:*$//;
17851 s/^[^=]*=[ ]*$//;
17855 DEFS=-DHAVE_CONFIG_H
17857 : ${CONFIG_STATUS=./config.status}
17858 ac_clean_files_save=$ac_clean_files
17859 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17860 { echo "$as_me:17860: creating $CONFIG_STATUS" >&5
17861 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17862 cat >$CONFIG_STATUS <<_ACEOF
17863 #! $SHELL
17864 # Generated automatically by configure.
17865 # Run this file to recreate the current configuration.
17866 # Compiler output produced by configure, useful for debugging
17867 # configure, is in config.log if it exists.
17869 debug=false
17870 SHELL=\${CONFIG_SHELL-$SHELL}
17871 ac_cs_invocation="\$0 \$@"
17873 _ACEOF
17875 cat >>$CONFIG_STATUS <<\_ACEOF
17876 # Be Bourne compatible
17877 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17878 emulate sh
17879 NULLCMD=:
17880 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17881 set -o posix
17884 # Name of the executable.
17885 as_me=`echo "$0" |sed 's,.*[\\/],,'`
17887 if expr a : '\(a\)' >/dev/null 2>&1; then
17888 as_expr=expr
17889 else
17890 as_expr=false
17893 rm -f conf$$ conf$$.exe conf$$.file
17894 echo >conf$$.file
17895 if ln -s conf$$.file conf$$ 2>/dev/null; then
17896 # We could just check for DJGPP; but this test a) works b) is more generic
17897 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17898 if test -f conf$$.exe; then
17899 # Don't use ln at all; we don't have any links
17900 as_ln_s='cp -p'
17901 else
17902 as_ln_s='ln -s'
17904 elif ln conf$$.file conf$$ 2>/dev/null; then
17905 as_ln_s=ln
17906 else
17907 as_ln_s='cp -p'
17909 rm -f conf$$ conf$$.exe conf$$.file
17911 as_executable_p="test -f"
17913 # Support unset when possible.
17914 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17915 as_unset=unset
17916 else
17917 as_unset=false
17920 # NLS nuisances.
17921 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
17922 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
17923 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
17924 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
17925 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
17926 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
17927 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
17928 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
17930 # IFS
17931 # We need space, tab and new line, in precisely that order.
17932 as_nl='
17934 IFS=" $as_nl"
17936 # CDPATH.
17937 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
17939 exec 6>&1
17941 _ACEOF
17943 # Files that config.status was made for.
17944 if test -n "$ac_config_files"; then
17945 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17948 if test -n "$ac_config_headers"; then
17949 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17952 if test -n "$ac_config_links"; then
17953 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17956 if test -n "$ac_config_commands"; then
17957 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17960 cat >>$CONFIG_STATUS <<\EOF
17962 ac_cs_usage="\
17963 \`$as_me' instantiates files from templates according to the
17964 current configuration.
17966 Usage: $0 [OPTIONS] [FILE]...
17968 -h, --help print this help, then exit
17969 -V, --version print version number, then exit
17970 -d, --debug don't remove temporary files
17971 --recheck update $as_me by reconfiguring in the same conditions
17972 --file=FILE[:TEMPLATE]
17973 instantiate the configuration file FILE
17974 --header=FILE[:TEMPLATE]
17975 instantiate the configuration header FILE
17977 Configuration files:
17978 $config_files
17980 Configuration headers:
17981 $config_headers
17983 Configuration links:
17984 $config_links
17986 Configuration commands:
17987 $config_commands
17989 Report bugs to <bug-autoconf@gnu.org>."
17992 cat >>$CONFIG_STATUS <<EOF
17993 ac_cs_version="\\
17994 config.status
17995 configured by $0, generated by GNU Autoconf 2.49f,
17996 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17998 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17999 Free Software Foundation, Inc.
18000 This config.status script is free software; the Free Software Foundation
18001 gives unlimited permission to copy, distribute and modify it."
18002 srcdir=$srcdir
18003 INSTALL="$INSTALL"
18006 cat >>$CONFIG_STATUS <<\EOF
18007 # If no file are specified by the user, then we need to provide default
18008 # value. By we need to know if files were specified by the user.
18009 ac_need_defaults=:
18010 while test $# != 0
18012 case $1 in
18013 --*=*)
18014 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18015 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18016 shift
18017 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18018 shift
18020 -*);;
18021 *) # This is not an option, so the user has probably given explicit
18022 # arguments.
18023 ac_need_defaults=false;;
18024 esac
18026 case $1 in
18027 # Handling of the options.
18029 cat >>$CONFIG_STATUS <<EOF
18030 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18031 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18032 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18034 cat >>$CONFIG_STATUS <<\EOF
18035 --version | --vers* | -V )
18036 echo "$ac_cs_version"; exit 0 ;;
18037 --he | --h)
18038 # Conflict between --help and --header
18039 { { echo "$as_me:18039: error: ambiguous option: $1
18040 Try \`$0 --help' for more information." >&5
18041 echo "$as_me: error: ambiguous option: $1
18042 Try \`$0 --help' for more information." >&2;}
18043 { (exit 1); exit 1; }; };;
18044 --help | --hel | -h )
18045 echo "$ac_cs_usage"; exit 0 ;;
18046 --debug | --d* | -d )
18047 debug=: ;;
18048 --file | --fil | --fi | --f )
18049 shift
18050 CONFIG_FILES="$CONFIG_FILES $1"
18051 ac_need_defaults=false;;
18052 --header | --heade | --head | --hea )
18053 shift
18054 CONFIG_HEADERS="$CONFIG_HEADERS $1"
18055 ac_need_defaults=false;;
18057 # Handling of arguments.
18058 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18059 'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18060 'lib/posix/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/posix/Makefile" ;;
18061 'find/Makefile' ) CONFIG_FILES="$CONFIG_FILES find/Makefile" ;;
18062 'find/testsuite/Makefile' ) CONFIG_FILES="$CONFIG_FILES find/testsuite/Makefile" ;;
18063 'xargs/Makefile' ) CONFIG_FILES="$CONFIG_FILES xargs/Makefile" ;;
18064 'xargs/testsuite/Makefile' ) CONFIG_FILES="$CONFIG_FILES xargs/testsuite/Makefile" ;;
18065 'locate/Makefile' ) CONFIG_FILES="$CONFIG_FILES locate/Makefile" ;;
18066 'locate/testsuite/Makefile' ) CONFIG_FILES="$CONFIG_FILES locate/testsuite/Makefile" ;;
18067 'intl/Makefile' ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
18068 'po/Makefile.in' ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18069 'doc/Makefile' ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18070 'm4/Makefile' ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
18071 '$nls_cv_header_intl' ) CONFIG_LINKS="$CONFIG_LINKS $nls_cv_header_intl:$nls_cv_header_libgt" ;;
18072 'default-1' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18073 'default-2' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
18074 'default-3' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-3" ;;
18075 'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18077 # This is an error.
18078 -*) { { echo "$as_me:18078: error: unrecognized option: $1
18079 Try \`$0 --help' for more information." >&5
18080 echo "$as_me: error: unrecognized option: $1
18081 Try \`$0 --help' for more information." >&2;}
18082 { (exit 1); exit 1; }; } ;;
18083 *) { { echo "$as_me:18083: error: invalid argument: $1" >&5
18084 echo "$as_me: error: invalid argument: $1" >&2;}
18085 { (exit 1); exit 1; }; };;
18086 esac
18087 shift
18088 done
18090 exec 5>>config.log
18091 cat >&5 << _ACEOF
18093 ## ----------------------- ##
18094 ## Running config.status. ##
18095 ## ----------------------- ##
18097 This file was extended by $as_me 2.49f, executed with
18098 > $ac_cs_invocation
18099 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18101 _ACEOF
18104 cat >>$CONFIG_STATUS <<\EOF
18105 # If the user did not use the arguments to specify the items to instantiate,
18106 # then the envvar interface is used. Set only those that are not.
18107 # We use the long form for the default assignment because of an extremely
18108 # bizarre bug on SunOS 4.1.3.
18109 if $ac_need_defaults; then
18110 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18111 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18112 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18113 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18116 # Create a temporary directory, and hook for its removal unless debugging.
18117 $debug ||
18119 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18120 trap '{ (exit $?); exit $?; }' 1 2 13 15
18123 # Create a (secure) tmp directory for tmp files.
18124 : ${TMPDIR=/tmp}
18126 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18127 test -n "$tmp" && test -d "$tmp"
18128 } ||
18130 tmp=$TMPDIR/cs$$-$RANDOM
18131 (umask 077 && mkdir $tmp)
18132 } ||
18134 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18135 { (exit 1); exit 1; }
18140 cat >>$CONFIG_STATUS <<EOF
18142 # INIT-COMMANDS section.
18145 am_indx=1
18146 for am_file in config.h; do
18147 case " $CONFIG_HEADERS " in
18148 *" $am_file "*)
18149 echo timestamp > `echo $am_file | sed 's%:.*%%;s%[^/]*$%%'`stamp-h$am_indx
18151 esac
18152 am_indx=\`expr \$am_indx + 1\`
18153 done
18154 AMDEP="$AMDEP"
18155 ac_aux_dir="$ac_aux_dir"
18159 cat >>$CONFIG_STATUS <<EOF
18162 # CONFIG_FILES section.
18165 # No need to generate the scripts if there are no CONFIG_FILES.
18166 # This happens for instance when ./config.status config.h
18167 if test -n "\$CONFIG_FILES"; then
18168 # Protect against being on the right side of a sed subst in config.status.
18169 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18170 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18171 s,@SHELL@,$SHELL,;t t
18172 s,@exec_prefix@,$exec_prefix,;t t
18173 s,@prefix@,$prefix,;t t
18174 s,@program_transform_name@,$program_transform_name,;t t
18175 s,@bindir@,$bindir,;t t
18176 s,@sbindir@,$sbindir,;t t
18177 s,@libexecdir@,$libexecdir,;t t
18178 s,@datadir@,$datadir,;t t
18179 s,@sysconfdir@,$sysconfdir,;t t
18180 s,@sharedstatedir@,$sharedstatedir,;t t
18181 s,@localstatedir@,$localstatedir,;t t
18182 s,@libdir@,$libdir,;t t
18183 s,@includedir@,$includedir,;t t
18184 s,@oldincludedir@,$oldincludedir,;t t
18185 s,@infodir@,$infodir,;t t
18186 s,@mandir@,$mandir,;t t
18187 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18188 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18189 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18190 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18191 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18192 s,@ECHO_C@,$ECHO_C,;t t
18193 s,@ECHO_N@,$ECHO_N,;t t
18194 s,@ECHO_T@,$ECHO_T,;t t
18195 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18196 s,@DEFS@,$DEFS,;t t
18197 s,@LIBS@,$LIBS,;t t
18198 s,@build@,$build,;t t
18199 s,@build_cpu@,$build_cpu,;t t
18200 s,@build_vendor@,$build_vendor,;t t
18201 s,@build_os@,$build_os,;t t
18202 s,@host@,$host,;t t
18203 s,@host_cpu@,$host_cpu,;t t
18204 s,@host_vendor@,$host_vendor,;t t
18205 s,@host_os@,$host_os,;t t
18206 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18207 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18208 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18209 s,@PACKAGE@,$PACKAGE,;t t
18210 s,@VERSION@,$VERSION,;t t
18211 s,@ACLOCAL@,$ACLOCAL,;t t
18212 s,@AUTOCONF@,$AUTOCONF,;t t
18213 s,@AUTOMAKE@,$AUTOMAKE,;t t
18214 s,@AUTOHEADER@,$AUTOHEADER,;t t
18215 s,@MAKEINFO@,$MAKEINFO,;t t
18216 s,@AMTAR@,$AMTAR,;t t
18217 s,@install_sh@,$install_sh,;t t
18218 s,@AWK@,$AWK,;t t
18219 s,@SET_MAKE@,$SET_MAKE,;t t
18220 s,@AMDEP@,$AMDEP,;t t
18221 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18222 s,@DEPDIR@,$DEPDIR,;t t
18223 s,@INCLUDES@,$INCLUDES,;t t
18224 s,@CC@,$CC,;t t
18225 s,@CFLAGS@,$CFLAGS,;t t
18226 s,@LDFLAGS@,$LDFLAGS,;t t
18227 s,@CPPFLAGS@,$CPPFLAGS,;t t
18228 s,@ac_ct_CC@,$ac_ct_CC,;t t
18229 s,@EXEEXT@,$EXEEXT,;t t
18230 s,@OBJEXT@,$OBJEXT,;t t
18231 s,@CPP@,$CPP,;t t
18232 s,@_am_include@,$_am_include,;t t
18233 s,@CCDEPMODE@,$CCDEPMODE,;t t
18234 s,@U@,$U,;t t
18235 s,@ANSI2KNR@,$ANSI2KNR,;t t
18236 s,@RANLIB@,$RANLIB,;t t
18237 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18238 s,@LIBOBJS@,$LIBOBJS,;t t
18239 s,@GNU_PACKAGE@,$GNU_PACKAGE,;t t
18240 s,@OPTIONAL_BIN_PROGS@,$OPTIONAL_BIN_PROGS,;t t
18241 s,@OPTIONAL_BIN_ZCRIPTS@,$OPTIONAL_BIN_ZCRIPTS,;t t
18242 s,@MAN@,$MAN,;t t
18243 s,@DF_PROG@,$DF_PROG,;t t
18244 s,@ALLOCA@,$ALLOCA,;t t
18245 s,@GLIBC21@,$GLIBC21,;t t
18246 s,@LIBICONV@,$LIBICONV,;t t
18247 s,@USE_NLS@,$USE_NLS,;t t
18248 s,@MSGFMT@,$MSGFMT,;t t
18249 s,@GMSGFMT@,$GMSGFMT,;t t
18250 s,@XGETTEXT@,$XGETTEXT,;t t
18251 s,@GENCAT@,$GENCAT,;t t
18252 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
18253 s,@CATALOGS@,$CATALOGS,;t t
18254 s,@CATOBJEXT@,$CATOBJEXT,;t t
18255 s,@DATADIRNAME@,$DATADIRNAME,;t t
18256 s,@GMOFILES@,$GMOFILES,;t t
18257 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
18258 s,@INTLDEPS@,$INTLDEPS,;t t
18259 s,@INTLLIBS@,$INTLLIBS,;t t
18260 s,@INTLOBJS@,$INTLOBJS,;t t
18261 s,@POFILES@,$POFILES,;t t
18262 s,@POSUB@,$POSUB,;t t
18263 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
18264 s,@GT_NO@,$GT_NO,;t t
18265 s,@GT_YES@,$GT_YES,;t t
18266 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
18267 s,@l@,$l,;t t
18268 CEOF
18272 cat >>$CONFIG_STATUS <<\EOF
18273 # Split the substitutions into bite-sized pieces for seds with
18274 # small command number limits, like on Digital OSF/1 and HP-UX.
18275 ac_max_sed_lines=48
18276 ac_sed_frag=1 # Number of current file.
18277 ac_beg=1 # First line for current file.
18278 ac_end=$ac_max_sed_lines # Line after last line for current file.
18279 ac_more_lines=:
18280 ac_sed_cmds=
18281 while $ac_more_lines; do
18282 if test $ac_beg -gt 1; then
18283 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18284 else
18285 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18287 if test ! -s $tmp/subs.frag; then
18288 ac_more_lines=false
18289 else
18290 # The purpose of the label and of the branching condition is to
18291 # speed up the sed processing (if there are no `@' at all, there
18292 # is no need to browse any of the substitutions).
18293 # These are the two extra sed commands mentioned above.
18294 (echo ':t
18295 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18296 if test -z "$ac_sed_cmds"; then
18297 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18298 else
18299 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18301 ac_sed_frag=`expr $ac_sed_frag + 1`
18302 ac_beg=$ac_end
18303 ac_end=`expr $ac_end + $ac_max_sed_lines`
18305 done
18306 if test -z "$ac_sed_cmds"; then
18307 ac_sed_cmds=cat
18309 fi # test -n "$CONFIG_FILES"
18312 cat >>$CONFIG_STATUS <<\EOF
18313 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18314 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18315 case $ac_file in
18316 - | *:- | *:-:* ) # input from stdin
18317 cat >$tmp/stdin
18318 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18319 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18320 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18321 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18322 * ) ac_file_in=$ac_file.in ;;
18323 esac
18325 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18326 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18327 X"$ac_file" : 'X\(//\)[^/]' \| \
18328 X"$ac_file" : 'X\(//\)$' \| \
18329 X"$ac_file" : 'X\(/\)' \| \
18330 . : '\(.\)' 2>/dev/null ||
18331 echo X"$ac_file" |
18332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18334 /^X\(\/\/\)$/{ s//\1/; q; }
18335 /^X\(\/\).*/{ s//\1/; q; }
18336 s/.*/./; q'`
18337 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18338 { case "$ac_dir" in
18339 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18340 *) as_incr_dir=.;;
18341 esac
18342 as_dummy="$ac_dir"
18343 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18344 case $as_mkdir_dir in
18345 # Skip DOS drivespec
18346 ?:) as_incr_dir=$as_mkdir_dir ;;
18348 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18349 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
18351 esac
18352 done; }
18354 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
18355 # A "../" for each directory in $ac_dir_suffix.
18356 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
18357 else
18358 ac_dir_suffix= ac_dots=
18361 case $srcdir in
18362 .) ac_srcdir=.
18363 if test -z "$ac_dots"; then
18364 ac_top_srcdir=.
18365 else
18366 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
18367 fi ;;
18368 [\\/]* | ?:[\\/]* )
18369 ac_srcdir=$srcdir$ac_dir_suffix;
18370 ac_top_srcdir=$srcdir ;;
18371 *) # Relative path.
18372 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
18373 ac_top_srcdir=$ac_dots$srcdir ;;
18374 esac
18376 case $INSTALL in
18377 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18378 *) ac_INSTALL=$ac_dots$INSTALL ;;
18379 esac
18381 if test x"$ac_file" != x-; then
18382 { echo "$as_me:18382: creating $ac_file" >&5
18383 echo "$as_me: creating $ac_file" >&6;}
18384 rm -f "$ac_file"
18386 # Let's still pretend it is `configure' which instantiates (i.e., don't
18387 # use $as_me), people would be surprised to read:
18388 # /* config.h. Generated automatically by config.status. */
18389 configure_input="Generated automatically from `echo $ac_file_in |
18390 sed 's,.*/,,'` by configure."
18392 # First look for the input files in the build tree, otherwise in the
18393 # src tree.
18394 ac_file_inputs=`IFS=:
18395 for f in $ac_file_in; do
18396 case $f in
18397 -) echo $tmp/stdin ;;
18398 [\\/$]*)
18399 # Absolute (can't be DOS-style, as IFS=:)
18400 test -f "$f" || { { echo "$as_me:18400: error: cannot find input file: $f" >&5
18401 echo "$as_me: error: cannot find input file: $f" >&2;}
18402 { (exit 1); exit 1; }; }
18403 echo $f;;
18404 *) # Relative
18405 if test -f "$f"; then
18406 # Build tree
18407 echo $f
18408 elif test -f "$srcdir/$f"; then
18409 # Source tree
18410 echo $srcdir/$f
18411 else
18412 # /dev/null tree
18413 { { echo "$as_me:18413: error: cannot find input file: $f" >&5
18414 echo "$as_me: error: cannot find input file: $f" >&2;}
18415 { (exit 1); exit 1; }; }
18416 fi;;
18417 esac
18418 done` || { (exit 1); exit 1; }
18420 cat >>$CONFIG_STATUS <<EOF
18421 sed "$ac_vpsub
18422 $extrasub
18424 cat >>$CONFIG_STATUS <<\EOF
18426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18427 s,@configure_input@,$configure_input,;t t
18428 s,@srcdir@,$ac_srcdir,;t t
18429 s,@top_srcdir@,$ac_top_srcdir,;t t
18430 s,@INSTALL@,$ac_INSTALL,;t t
18431 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18432 rm -f $tmp/stdin
18433 if test x"$ac_file" != x-; then
18434 mv $tmp/out $ac_file
18435 else
18436 cat $tmp/out
18437 rm -f $tmp/out
18440 done
18442 cat >>$CONFIG_STATUS <<\EOF
18445 # CONFIG_HEADER section.
18448 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18449 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18451 # ac_d sets the value in "#define NAME VALUE" lines.
18452 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18453 ac_dB='[ ].*$,\1#\2'
18454 ac_dC=' '
18455 ac_dD=',;t'
18456 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18457 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18458 ac_uB='$,\1#\2define\3'
18459 ac_uC=' '
18460 ac_uD=',;t'
18462 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18463 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18464 case $ac_file in
18465 - | *:- | *:-:* ) # input from stdin
18466 cat >$tmp/stdin
18467 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18468 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18469 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18470 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18471 * ) ac_file_in=$ac_file.in ;;
18472 esac
18474 test x"$ac_file" != x- && { echo "$as_me:18474: creating $ac_file" >&5
18475 echo "$as_me: creating $ac_file" >&6;}
18477 # First look for the input files in the build tree, otherwise in the
18478 # src tree.
18479 ac_file_inputs=`IFS=:
18480 for f in $ac_file_in; do
18481 case $f in
18482 -) echo $tmp/stdin ;;
18483 [\\/$]*)
18484 # Absolute (can't be DOS-style, as IFS=:)
18485 test -f "$f" || { { echo "$as_me:18485: error: cannot find input file: $f" >&5
18486 echo "$as_me: error: cannot find input file: $f" >&2;}
18487 { (exit 1); exit 1; }; }
18488 echo $f;;
18489 *) # Relative
18490 if test -f "$f"; then
18491 # Build tree
18492 echo $f
18493 elif test -f "$srcdir/$f"; then
18494 # Source tree
18495 echo $srcdir/$f
18496 else
18497 # /dev/null tree
18498 { { echo "$as_me:18498: error: cannot find input file: $f" >&5
18499 echo "$as_me: error: cannot find input file: $f" >&2;}
18500 { (exit 1); exit 1; }; }
18501 fi;;
18502 esac
18503 done` || { (exit 1); exit 1; }
18504 # Remove the trailing spaces.
18505 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18509 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18510 # `conftest.undefs', that substitutes the proper values into
18511 # config.h.in to produce config.h. The first handles `#define'
18512 # templates, and the second `#undef' templates.
18513 # And first: Protect against being on the right side of a sed subst in
18514 # config.status. Protect against being in an unquoted here document
18515 # in config.status.
18516 rm -f conftest.defines conftest.undefs
18517 # Using a here document instead of a string reduces the quoting nightmare.
18518 # Putting comments in sed scripts is not portable.
18520 # `end' is used to avoid that the second main sed command (meant for
18521 # 0-ary CPP macros) applies to n-ary macro definitions.
18522 # See the Autoconf documentation for `clear'.
18523 cat >confdef2sed.sed <<\EOF
18524 s/[\\&,]/\\&/g
18525 s,[\\$`],\\&,g
18526 t clear
18527 : clear
18528 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
18529 t end
18530 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18531 : end
18533 # If some macros were called several times there might be several times
18534 # the same #defines, which is useless. Nevertheless, we may not want to
18535 # sort them, since we want the *last* AC-DEFINE to be honored.
18536 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18537 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18538 rm -f confdef2sed.sed
18540 # This sed command replaces #undef with comments. This is necessary, for
18541 # example, in the case of _POSIX_SOURCE, which is predefined and required
18542 # on some systems where configure will not decide to define it.
18543 cat >>conftest.undefs <<\EOF
18544 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18547 # Break up conftest.defines because some shells have a limit on the size
18548 # of here documents, and old seds have small limits too (100 cmds).
18549 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18550 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18551 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18552 echo ' :' >>$CONFIG_STATUS
18553 rm -f conftest.tail
18554 while grep . conftest.defines >/dev/null
18556 # Write a limited-size here document to $tmp/defines.sed.
18557 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18558 # Speed up: don't consider the non `#define' lines.
18559 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18560 # Work around the forget-to-reset-the-flag bug.
18561 echo 't clr' >>$CONFIG_STATUS
18562 echo ': clr' >>$CONFIG_STATUS
18563 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18564 echo 'CEOF
18565 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18566 rm -f $tmp/in
18567 mv $tmp/out $tmp/in
18568 ' >>$CONFIG_STATUS
18569 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18570 rm -f conftest.defines
18571 mv conftest.tail conftest.defines
18572 done
18573 rm -f conftest.defines
18574 echo ' fi # egrep' >>$CONFIG_STATUS
18575 echo >>$CONFIG_STATUS
18577 # Break up conftest.undefs because some shells have a limit on the size
18578 # of here documents, and old seds have small limits too (100 cmds).
18579 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18580 rm -f conftest.tail
18581 while grep . conftest.undefs >/dev/null
18583 # Write a limited-size here document to $tmp/undefs.sed.
18584 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18585 # Speed up: don't consider the non `#undef'
18586 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18587 # Work around the forget-to-reset-the-flag bug.
18588 echo 't clr' >>$CONFIG_STATUS
18589 echo ': clr' >>$CONFIG_STATUS
18590 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18591 echo 'CEOF
18592 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18593 rm -f $tmp/in
18594 mv $tmp/out $tmp/in
18595 ' >>$CONFIG_STATUS
18596 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18597 rm -f conftest.undefs
18598 mv conftest.tail conftest.undefs
18599 done
18600 rm -f conftest.undefs
18602 cat >>$CONFIG_STATUS <<\EOF
18603 # Let's still pretend it is `configure' which instantiates (i.e., don't
18604 # use $as_me), people would be surprised to read:
18605 # /* config.h. Generated automatically by config.status. */
18606 if test x"$ac_file" = x-; then
18607 echo "/* Generated automatically by configure. */" >$tmp/config.h
18608 else
18609 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
18611 cat $tmp/in >>$tmp/config.h
18612 rm -f $tmp/in
18613 if test x"$ac_file" != x-; then
18614 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18615 { echo "$as_me:18615: $ac_file is unchanged" >&5
18616 echo "$as_me: $ac_file is unchanged" >&6;}
18617 else
18618 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18619 X"$ac_file" : 'X\(//\)[^/]' \| \
18620 X"$ac_file" : 'X\(//\)$' \| \
18621 X"$ac_file" : 'X\(/\)' \| \
18622 . : '\(.\)' 2>/dev/null ||
18623 echo X"$ac_file" |
18624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18625 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18626 /^X\(\/\/\)$/{ s//\1/; q; }
18627 /^X\(\/\).*/{ s//\1/; q; }
18628 s/.*/./; q'`
18629 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18630 { case "$ac_dir" in
18631 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18632 *) as_incr_dir=.;;
18633 esac
18634 as_dummy="$ac_dir"
18635 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18636 case $as_mkdir_dir in
18637 # Skip DOS drivespec
18638 ?:) as_incr_dir=$as_mkdir_dir ;;
18640 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18641 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
18643 esac
18644 done; }
18647 rm -f $ac_file
18648 mv $tmp/config.h $ac_file
18650 else
18651 cat $tmp/config.h
18652 rm -f $tmp/config.h
18654 done
18656 cat >>$CONFIG_STATUS <<\EOF
18659 # CONFIG_LINKS section.
18662 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
18663 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18664 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18666 { echo "$as_me:18666: linking $srcdir/$ac_source to $ac_dest" >&5
18667 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
18669 if test ! -r $srcdir/$ac_source; then
18670 { { echo "$as_me:18670: error: $srcdir/$ac_source: File not found" >&5
18671 echo "$as_me: error: $srcdir/$ac_source: File not found" >&2;}
18672 { (exit 1); exit 1; }; }
18674 rm -f $ac_dest
18676 # Make relative symlinks.
18677 ac_dest_dir=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18678 X"$ac_dest" : 'X\(//\)[^/]' \| \
18679 X"$ac_dest" : 'X\(//\)$' \| \
18680 X"$ac_dest" : 'X\(/\)' \| \
18681 . : '\(.\)' 2>/dev/null ||
18682 echo X"$ac_dest" |
18683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18684 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18685 /^X\(\/\/\)$/{ s//\1/; q; }
18686 /^X\(\/\).*/{ s//\1/; q; }
18687 s/.*/./; q'`
18688 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
18689 { case "$ac_dest_dir" in
18690 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18691 *) as_incr_dir=.;;
18692 esac
18693 as_dummy="$ac_dest_dir"
18694 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18695 case $as_mkdir_dir in
18696 # Skip DOS drivespec
18697 ?:) as_incr_dir=$as_mkdir_dir ;;
18699 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18700 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
18702 esac
18703 done; }
18705 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's,^\./,,'`"
18706 # A "../" for each directory in $ac_dest_dir_suffix.
18707 ac_dots=`echo $ac_dest_dir_suffix|sed 's,/[^/]*,../,g'`
18708 else
18709 ac_dest_dir_suffix= ac_dots=
18712 case $srcdir in
18713 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
18714 *) ac_rel_source=$ac_dots$srcdir/$ac_source ;;
18715 esac
18717 # Make a symlink if possible; otherwise try a hard link.
18718 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
18719 ln $srcdir/$ac_source $ac_dest ||
18720 { { echo "$as_me:18720: error: cannot link $ac_dest to $srcdir/$ac_source" >&5
18721 echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;}
18722 { (exit 1); exit 1; }; }
18723 done
18725 cat >>$CONFIG_STATUS <<\EOF
18728 # CONFIG_COMMANDS section.
18730 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18731 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18732 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18734 case $ac_dest in
18735 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
18736 default-2 )
18737 test x"$AMDEP" != x"" ||
18738 for mf in $CONFIG_FILES; do
18739 case "$mf" in
18740 Makefile) dirpart=.;;
18741 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
18742 *) continue;;
18743 esac
18744 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
18745 # Extract the definition of DEP_FILES from the Makefile without
18746 # running `make'.
18747 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
18748 test -z "$DEPDIR" && continue
18749 # When using ansi2knr, U may be empty or an underscore; expand it
18750 U=`sed -n -e '/^U = / s///p' < "$mf"`
18751 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
18752 # We invoke sed twice because it is the simplest approach to
18753 # changing $(DEPDIR) to its actual value in the expansion.
18754 for file in `sed -n -e '
18755 /^DEP_FILES = .*\\\\$/ {
18756 s/^DEP_FILES = //
18757 :loop
18758 s/\\\\$//
18761 /\\\\$/ b loop
18764 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
18765 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18766 # Make sure the directory exists.
18767 test -f "$dirpart/$file" && continue
18768 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
18769 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
18770 # echo "creating $dirpart/$file"
18771 echo '# dummy' > "$dirpart/$file"
18772 done
18773 done
18775 default-3 ) case "$CONFIG_FILES" in *po/Makefile.in*)
18776 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
18777 esac ;;
18778 esac
18779 done
18782 cat >>$CONFIG_STATUS <<\EOF
18784 { (exit 0); exit 0; }
18786 chmod +x $CONFIG_STATUS
18787 ac_clean_files=$ac_clean_files_save
18789 # configure is writing to config.log, and then calls config.status.
18790 # config.status does its own redirection, appending to config.log.
18791 # Unfortunately, on DOS this fails, as config.log is still kept open
18792 # by configure, so config.status won't be able to write to it; its
18793 # output is simply discarded. So we exec the FD to /dev/null,
18794 # effectively closing config.log, so it can be properly (re)opened and
18795 # appended to by config.status. When coming back to configure, we
18796 # need to make the FD available again.
18797 if test "$no_create" != yes; then
18798 ac_cs_success=:
18799 exec 5>/dev/null
18800 $SHELL $CONFIG_STATUS || ac_cs_success=false
18801 exec 5>>config.log
18802 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18803 # would make configure fail if this is the last instruction.
18804 $ac_cs_success || { (exit 1); exit 1; }