2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
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 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.file conf$$ 2>/dev/null; then
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix=/usr/local
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="version.h"
108 # Factoring default headers for most tests.
109 ac_includes_default="\
112 # include <sys/types.h>
115 # include <sys/stat.h>
126 # if !STDC_HEADERS && HAVE_MEMORY_H
132 # include <strings.h>
135 # include <inttypes.h>
145 # Initialize some variables set by options.
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
157 program_transform_name=s,x,x,
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir='${exec_prefix}/bin'
171 sbindir='${exec_prefix}/sbin'
172 libexecdir='${exec_prefix}/libexec'
173 datadir='${prefix}/share'
174 sysconfdir='${prefix}/etc'
175 sharedstatedir='${prefix}/com'
176 localstatedir='${prefix}/var'
177 libdir='${exec_prefix}/lib'
178 includedir='${prefix}/include'
179 oldincludedir='/usr/include'
180 infodir='${prefix}/info'
181 mandir='${prefix}/man'
183 # Identity of this package.
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 # Accept the important Cygnus configure options, so we can diagnose typos.
206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
211 -build | --build | --buil | --bui | --bu)
212 ac_prev=build_alias ;;
213 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214 build_alias=$ac_optarg ;;
216 -cache-file | --cache-file | --cache-fil | --cache-fi \
217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218 ac_prev=cache_file ;;
219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221 cache_file=$ac_optarg ;;
224 cache_file=config.cache ;;
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230 datadir=$ac_optarg ;;
232 -disable-* | --disable-*)
233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
241 -enable-* | --enable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252 eval "enable_$ac_feature='$ac_optarg'" ;;
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256 | --exec | --exe | --ex)
257 ac_prev=exec_prefix ;;
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260 | --exec=* | --exe=* | --ex=*)
261 exec_prefix=$ac_optarg ;;
263 -gas | --gas | --ga | --g)
264 # Obsolete; use --with-gas.
267 -help | --help | --hel | --he | -h)
269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270 ac_init_help=recursive ;;
271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272 ac_init_help=short ;;
274 -host | --host | --hos | --ho)
275 ac_prev=host_alias ;;
276 -host=* | --host=* | --hos=* | --ho=*)
277 host_alias=$ac_optarg ;;
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir=$ac_optarg ;;
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir=$ac_optarg ;;
291 -libdir | --libdir | --libdi | --libd)
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
301 libexecdir=$ac_optarg ;;
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir=$ac_optarg ;;
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
318 # Obsolete; use --without-fp.
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir=$ac_optarg ;;
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix=$ac_optarg ;;
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix=$ac_optarg ;;
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name=$ac_optarg ;;
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 sbindir=$ac_optarg ;;
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 sharedstatedir=$ac_optarg ;;
395 -site | --site | --sit)
397 -site=* | --site=* | --sit=*)
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir=$ac_optarg ;;
412 -target | --target | --targe | --targ | --tar | --ta | --t)
413 ac_prev=target_alias ;;
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target_alias=$ac_optarg ;;
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
420 -version | --version | --versio | --versi | --vers | -V)
424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
434 eval "with_$ac_package='$ac_optarg'" ;;
436 -without-* | --without-*)
437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
446 # Obsolete; use --with-x.
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 | --x-incl | --x-inc | --x-in | --x-i)
451 ac_prev=x_includes ;;
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454 x_includes=$ac_optarg ;;
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 ac_prev=x_libraries ;;
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461 x_libraries=$ac_optarg ;;
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
489 if test -n "$ac_prev"; then
490 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
495 # Be sure to have absolute paths.
496 for ac_var in exec_prefix prefix
498 eval ac_val=$`echo $ac_var`
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
506 # Be sure to have absolute paths.
507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
510 eval ac_val=$`echo $ac_var`
512 [\\/$]* | ?:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x; then
526 if test "x$build_alias" = x; then
527 cross_compiling=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
536 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538 test "$silent" = yes && exec 6>/dev/null
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent.
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548 if test ! -r $srcdir/$ac_unique_file; then
552 ac_srcdir_defaulted=no
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set=${build_alias+set}
565 ac_env_build_alias_value=$build_alias
566 ac_cv_env_build_alias_set=${build_alias+set}
567 ac_cv_env_build_alias_value=$build_alias
568 ac_env_host_alias_set=${host_alias+set}
569 ac_env_host_alias_value=$host_alias
570 ac_cv_env_host_alias_set=${host_alias+set}
571 ac_cv_env_host_alias_value=$host_alias
572 ac_env_target_alias_set=${target_alias+set}
573 ac_env_target_alias_value=$target_alias
574 ac_cv_env_target_alias_set=${target_alias+set}
575 ac_cv_env_target_alias_value=$target_alias
576 ac_env_CC_set=${CC+set}
578 ac_cv_env_CC_set=${CC+set}
579 ac_cv_env_CC_value=$CC
580 ac_env_CFLAGS_set=${CFLAGS+set}
581 ac_env_CFLAGS_value=$CFLAGS
582 ac_cv_env_CFLAGS_set=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value=$CFLAGS
584 ac_env_LDFLAGS_set=${LDFLAGS+set}
585 ac_env_LDFLAGS_value=$LDFLAGS
586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value=$LDFLAGS
588 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592 ac_env_CPP_set=${CPP+set}
593 ac_env_CPP_value=$CPP
594 ac_cv_env_CPP_set=${CPP+set}
595 ac_cv_env_CPP_value=$CPP
598 # Report the --help message.
600 if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
604 \`configure' configures this package to adapt to many kinds of systems.
606 Usage: $0 [OPTION]... [VAR=VALUE]...
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 VAR=VALUE. See below for descriptions of some of the useful variables.
611 Defaults for the options are specified in brackets.
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
627 Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
633 By default, \`make install' will install all the files in
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 for instance \`--prefix=\$HOME'.
638 For better control, use the options below.
640 Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
658 --build=BUILD configure for building on BUILD [guessed]
659 --host=HOST build programs to run on HOST [BUILD]
663 if test -n "$ac_init_help"; then
668 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
669 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
670 --enable-compression enable EXPERIMENTAL compression support
671 --enable-htree enable EXPERIMENTAL htree directory support
672 --enable-htree-clear clear htree because we don't trust e2fsck
673 --disable-evms don't build EVMS plugin
674 --enable-evms-10 use EVMS 1.0 ABI (instead of EVMS 1.2)
675 --enable-evms-11 use EVMS 1.1 ABI (instead of EVMS 1.2)
676 --enable-dll-shlibs select DLL libraries
677 --enable-elf-shlibs select ELF shared libraries
678 --enable-bsd-shlibs select BSD shared libraries
679 --enable-profile build profiling libraries
680 --enable-checker build checker libraries
681 --enable-jbd-debug enable journal debugging
682 --enable-blkid-debug enable blkid debugging
683 --enable-testio-debug enable the use of the test I/O manager for debugging
684 --disable-swapfs disable support of legacy byte-swapped filesystems
685 --disable-debugfs disable support of debugfs program
686 --disable-imager disable support of e2image program
687 --disable-resizer disable support of e2resize program
688 --enable-dynamic-e2fsck build e2fsck dynamically
689 --enable-fsck build fsck wrapper program
690 --enable-old-bitops Use old (non-standard but native) bitmask operations
691 --disable-rpath do not hardcode runtime library paths
692 --disable-nls do not use Native Language Support
695 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
696 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
697 --with-diet-libc Use diet libc
698 --with-cc=COMPILER select compiler to use
699 --with-linker=LINKER select linker to use
700 --with-ccopts=CCOPTS select compiler command line options
701 --with-ldopts=LDOPTS select linker command line options
702 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
703 --with-gnu-ld assume the C compiler uses GNU ld default=no
704 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
705 --without-libiconv-prefix don't search for libiconv in includedir and libdir
706 --with-included-gettext use the GNU gettext library included here
707 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib
708 --without-libintl-prefix don't search for libintl in includedir and libdir
710 Some influential environment variables:
711 CC C compiler command
712 CFLAGS C compiler flags
713 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
714 nonstandard directory <lib dir>
715 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
716 headers in a nonstandard directory <include dir>
719 Use these variables to override the choices made by `configure' or to help
720 it to find libraries and programs with nonstandard names/locations.
725 if test "$ac_init_help" = "recursive"; then
726 # If there are subdirs, report their specific --help.
728 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
730 # A "../" for each directory in /$ac_subdir.
731 ac_dots=`echo $ac_subdir |
732 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
735 .) # No --srcdir option. We are building in place.
736 ac_sub_srcdir=$srcdir ;;
737 [\\/]* | ?:[\\/]* ) # Absolute path.
738 ac_sub_srcdir=$srcdir/$ac_subdir ;;
740 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
743 # Check for guested configure; otherwise get Cygnus style configure.
744 if test -f $ac_sub_srcdir/configure.gnu; then
746 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
747 elif test -f $ac_sub_srcdir/configure; then
749 $SHELL $ac_sub_srcdir/configure --help=recursive
750 elif test -f $ac_sub_srcdir/configure.ac ||
751 test -f $ac_sub_srcdir/configure.in; then
755 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
761 test -n "$ac_init_help" && exit 0
762 if $ac_init_version; then
765 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
766 Free Software Foundation, Inc.
767 This configure script is free software; the Free Software Foundation
768 gives unlimited permission to copy, distribute and modify it.
774 This file contains any messages produced by compilers while
775 running configure, to aid debugging if configure makes a mistake.
777 It was created by $as_me, which was
778 generated by GNU Autoconf 2.52. Invocation command line was
789 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
790 uname -m = `(uname -m) 2>/dev/null || echo unknown`
791 uname -r = `(uname -r) 2>/dev/null || echo unknown`
792 uname -s = `(uname -s) 2>/dev/null || echo unknown`
793 uname -v = `(uname -v) 2>/dev/null || echo unknown`
795 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
796 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
798 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
799 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
800 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
801 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
802 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
803 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
804 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
818 # Keep a trace of the command line.
819 # Strip out --no-create and --no-recursion so they do not pile up.
820 # Also quote any args containing shell meta-characters.
826 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
827 | --no-cr | --no-c) ;;
828 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
829 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
830 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
831 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
832 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
834 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
837 # Get rid of the leading space.
840 # When interrupted or exit'd, cleanup temporary files, and complete
841 # config.log. We remove comments because anyway the quotes in there
842 # would cause problems or look ugly.
844 # Save into config.log some information that might help in debugging.
846 echo "## ----------------- ##" >&5
847 echo "## Cache variables. ##" >&5
848 echo "## ----------------- ##" >&5
850 # The following way of writing the cache mishandles newlines in values,
853 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
856 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
861 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
865 sed "/^$/d" confdefs.h >conftest.log
866 if test -s conftest.log; then
868 echo "## ------------ ##" >&5
869 echo "## confdefs.h. ##" >&5
870 echo "## ------------ ##" >&5
875 test "$ac_signal" != 0 &&
876 echo "$as_me: caught signal $ac_signal" >&5
877 echo "$as_me: exit $exit_status" >&5
878 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
881 for ac_signal in 1 2 13 15; do
882 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
886 # confdefs.h avoids OS command line length limits that DEFS can exceed.
887 rm -rf conftest* confdefs.h
888 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
891 # Let the site file select an alternate cache file if it wants to.
892 # Prefer explicitly selected file to automatically selected ones.
893 if test -z "$CONFIG_SITE"; then
894 if test "x$prefix" != xNONE; then
895 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
897 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
900 for ac_site_file in $CONFIG_SITE; do
901 if test -r "$ac_site_file"; then
902 { echo "$as_me:902: loading site script $ac_site_file" >&5
903 echo "$as_me: loading site script $ac_site_file" >&6;}
904 cat "$ac_site_file" >&5
909 if test -r "$cache_file"; then
910 # Some versions of bash will fail to source /dev/null (special
911 # files actually), so we avoid doing that.
912 if test -f "$cache_file"; then
913 { echo "$as_me:913: loading cache $cache_file" >&5
914 echo "$as_me: loading cache $cache_file" >&6;}
916 [\\/]* | ?:[\\/]* ) . $cache_file;;
921 { echo "$as_me:921: creating cache $cache_file" >&5
922 echo "$as_me: creating cache $cache_file" >&6;}
926 # Check that the precious variables saved in the cache have kept the same
928 ac_cache_corrupted=false
929 for ac_var in `(set) 2>&1 |
930 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
931 eval ac_old_set=\$ac_cv_env_${ac_var}_set
932 eval ac_new_set=\$ac_env_${ac_var}_set
933 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
934 eval ac_new_val="\$ac_env_${ac_var}_value"
935 case $ac_old_set,$ac_new_set in
937 { echo "$as_me:937: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
938 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
939 ac_cache_corrupted=: ;;
941 { echo "$as_me:941: error: \`$ac_var' was not set in the previous run" >&5
942 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
943 ac_cache_corrupted=: ;;
946 if test "x$ac_old_val" != "x$ac_new_val"; then
947 { echo "$as_me:947: error: \`$ac_var' has changed since the previous run:" >&5
948 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
949 { echo "$as_me:949: former value: $ac_old_val" >&5
950 echo "$as_me: former value: $ac_old_val" >&2;}
951 { echo "$as_me:951: current value: $ac_new_val" >&5
952 echo "$as_me: current value: $ac_new_val" >&2;}
956 # Pass precious variables to config.status. It doesn't matter if
957 # we pass some twice (in addition to the command line arguments).
958 if test "$ac_new_set" = set; then
960 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
961 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
962 ac_configure_args="$ac_configure_args '$ac_arg'"
964 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
969 if $ac_cache_corrupted; then
970 { echo "$as_me:970: error: changes in the environment can compromise the build" >&5
971 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
972 { { echo "$as_me:972: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
973 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
974 { (exit 1); exit 1; }; }
978 ac_cpp='$CPP $CPPFLAGS'
979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
983 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
984 *c*,-n*) ECHO_N= ECHO_C='
986 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
987 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
989 echo "#! $SHELL" >conftest.sh
990 echo "exit 0" >>conftest.sh
992 if { (echo "$as_me:992: PATH=\".;.\"; conftest.sh") >&5
993 (PATH=".;."; conftest.sh) 2>&5
995 echo "$as_me:995: \$? = $ac_status" >&5
996 (exit $ac_status); }; then
997 ac_path_separator=';'
1001 PATH_SEPARATOR="$ac_path_separator"
1007 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1008 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1009 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1011 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1012 MONTH=`echo $DATE | awk -F- '{print $2}'`
1013 YEAR=`echo $DATE | awk -F- '{print $3}'`
1015 if expr $YEAR ">" 1900 > /dev/null ; then
1016 E2FSPROGS_YEAR=$YEAR
1017 elif expr $YEAR ">" 90 >/dev/null ; then
1018 E2FSPROGS_YEAR=19$YEAR
1020 E2FSPROGS_YEAR=20$YEAR
1024 Jan) E2FSPROGS_MONTH="January" ;;
1025 Feb) E2FSPROGS_MONTH="February" ;;
1026 Mar) E2FSPROGS_MONTH="March" ;;
1027 Apr) E2FSPROGS_MONTH="April" ;;
1028 May) E2FSPROGS_MONTH="May" ;;
1029 Jun) E2FSPROGS_MONTH="June" ;;
1030 Jul) E2FSPROGS_MONTH="July" ;;
1031 Aug) E2FSPROGS_MONTH="August" ;;
1032 Sep) E2FSPROGS_MONTH="September" ;;
1033 Oct) E2FSPROGS_MONTH="October" ;;
1034 Nov) E2FSPROGS_MONTH="November" ;;
1035 Dec) E2FSPROGS_MONTH="December" ;;
1036 *) echo "Unknown month $MONTH??" ;;
1039 unset DATE MONTH YEAR
1040 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1041 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1044 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1045 if test -f $ac_dir/install-sh; then
1047 ac_install_sh="$ac_aux_dir/install-sh -c"
1049 elif test -f $ac_dir/install.sh; then
1051 ac_install_sh="$ac_aux_dir/install.sh -c"
1053 elif test -f $ac_dir/shtool; then
1055 ac_install_sh="$ac_aux_dir/shtool install -c"
1059 if test -z "$ac_aux_dir"; then
1060 { { echo "$as_me:1060: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1061 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1062 { (exit 1); exit 1; }; }
1064 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1065 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1066 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1068 # Make sure we can run config.sub.
1069 $ac_config_sub sun4 >/dev/null 2>&1 ||
1070 { { echo "$as_me:1070: error: cannot run $ac_config_sub" >&5
1071 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1072 { (exit 1); exit 1; }; }
1074 echo "$as_me:1074: checking build system type" >&5
1075 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1076 if test "${ac_cv_build+set}" = set; then
1077 echo $ECHO_N "(cached) $ECHO_C" >&6
1079 ac_cv_build_alias=$build_alias
1080 test -z "$ac_cv_build_alias" &&
1081 ac_cv_build_alias=`$ac_config_guess`
1082 test -z "$ac_cv_build_alias" &&
1083 { { echo "$as_me:1083: error: cannot guess build type; you must specify one" >&5
1084 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1085 { (exit 1); exit 1; }; }
1086 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1087 { { echo "$as_me:1087: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1088 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1089 { (exit 1); exit 1; }; }
1092 echo "$as_me:1092: result: $ac_cv_build" >&5
1093 echo "${ECHO_T}$ac_cv_build" >&6
1095 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1096 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1097 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1099 echo "$as_me:1099: checking host system type" >&5
1100 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1101 if test "${ac_cv_host+set}" = set; then
1102 echo $ECHO_N "(cached) $ECHO_C" >&6
1104 ac_cv_host_alias=$host_alias
1105 test -z "$ac_cv_host_alias" &&
1106 ac_cv_host_alias=$ac_cv_build_alias
1107 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1108 { { echo "$as_me:1108: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1109 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1110 { (exit 1); exit 1; }; }
1113 echo "$as_me:1113: result: $ac_cv_host" >&5
1114 echo "${ECHO_T}$ac_cv_host" >&6
1116 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1117 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1118 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1122 # Check whether --with-diet-libc or --without-diet-libc was given.
1123 if test "${with_diet_libc+set}" = set; then
1124 withval="$with_diet_libc"
1125 CC="diet cc -nostdinc"
1127 echo "$as_me:1127: result: CC=$CC" >&5
1128 echo "${ECHO_T}CC=$CC" >&6
1130 # Check whether --with-cc or --without-cc was given.
1131 if test "${with_cc+set}" = set; then
1133 echo "$as_me:1133: result: CC=$withval" >&5
1134 echo "${ECHO_T}CC=$withval" >&6
1137 if test -z "$CC" ; then CC=cc; fi
1138 echo "$as_me:1138: result: CC defaults to $CC" >&5
1139 echo "${ECHO_T}CC defaults to $CC" >&6
1143 ac_cpp='$CPP $CPPFLAGS'
1144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1147 if test -n "$ac_tool_prefix"; then
1148 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1149 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1150 echo "$as_me:1150: checking for $ac_word" >&5
1151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1152 if test "${ac_cv_prog_CC+set}" = set; then
1153 echo $ECHO_N "(cached) $ECHO_C" >&6
1155 if test -n "$CC"; then
1156 ac_cv_prog_CC="$CC" # Let the user override the test.
1158 ac_save_IFS=$IFS; IFS=$ac_path_separator
1160 for ac_dir in $ac_dummy; do
1162 test -z "$ac_dir" && ac_dir=.
1163 $as_executable_p "$ac_dir/$ac_word" || continue
1164 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1165 echo "$as_me:1165: found $ac_dir/$ac_word" >&5
1172 if test -n "$CC"; then
1173 echo "$as_me:1173: result: $CC" >&5
1174 echo "${ECHO_T}$CC" >&6
1176 echo "$as_me:1176: result: no" >&5
1177 echo "${ECHO_T}no" >&6
1181 if test -z "$ac_cv_prog_CC"; then
1183 # Extract the first word of "gcc", so it can be a program name with args.
1184 set dummy gcc; ac_word=$2
1185 echo "$as_me:1185: checking for $ac_word" >&5
1186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1187 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1188 echo $ECHO_N "(cached) $ECHO_C" >&6
1190 if test -n "$ac_ct_CC"; then
1191 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1193 ac_save_IFS=$IFS; IFS=$ac_path_separator
1195 for ac_dir in $ac_dummy; do
1197 test -z "$ac_dir" && ac_dir=.
1198 $as_executable_p "$ac_dir/$ac_word" || continue
1199 ac_cv_prog_ac_ct_CC="gcc"
1200 echo "$as_me:1200: found $ac_dir/$ac_word" >&5
1206 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1207 if test -n "$ac_ct_CC"; then
1208 echo "$as_me:1208: result: $ac_ct_CC" >&5
1209 echo "${ECHO_T}$ac_ct_CC" >&6
1211 echo "$as_me:1211: result: no" >&5
1212 echo "${ECHO_T}no" >&6
1220 if test -z "$CC"; then
1221 if test -n "$ac_tool_prefix"; then
1222 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1223 set dummy ${ac_tool_prefix}cc; ac_word=$2
1224 echo "$as_me:1224: checking for $ac_word" >&5
1225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1226 if test "${ac_cv_prog_CC+set}" = set; then
1227 echo $ECHO_N "(cached) $ECHO_C" >&6
1229 if test -n "$CC"; then
1230 ac_cv_prog_CC="$CC" # Let the user override the test.
1232 ac_save_IFS=$IFS; IFS=$ac_path_separator
1234 for ac_dir in $ac_dummy; do
1236 test -z "$ac_dir" && ac_dir=.
1237 $as_executable_p "$ac_dir/$ac_word" || continue
1238 ac_cv_prog_CC="${ac_tool_prefix}cc"
1239 echo "$as_me:1239: found $ac_dir/$ac_word" >&5
1246 if test -n "$CC"; then
1247 echo "$as_me:1247: result: $CC" >&5
1248 echo "${ECHO_T}$CC" >&6
1250 echo "$as_me:1250: result: no" >&5
1251 echo "${ECHO_T}no" >&6
1255 if test -z "$ac_cv_prog_CC"; then
1257 # Extract the first word of "cc", so it can be a program name with args.
1258 set dummy cc; ac_word=$2
1259 echo "$as_me:1259: checking for $ac_word" >&5
1260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1261 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1262 echo $ECHO_N "(cached) $ECHO_C" >&6
1264 if test -n "$ac_ct_CC"; then
1265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1267 ac_save_IFS=$IFS; IFS=$ac_path_separator
1269 for ac_dir in $ac_dummy; do
1271 test -z "$ac_dir" && ac_dir=.
1272 $as_executable_p "$ac_dir/$ac_word" || continue
1273 ac_cv_prog_ac_ct_CC="cc"
1274 echo "$as_me:1274: found $ac_dir/$ac_word" >&5
1280 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1281 if test -n "$ac_ct_CC"; then
1282 echo "$as_me:1282: result: $ac_ct_CC" >&5
1283 echo "${ECHO_T}$ac_ct_CC" >&6
1285 echo "$as_me:1285: result: no" >&5
1286 echo "${ECHO_T}no" >&6
1295 if test -z "$CC"; then
1296 # Extract the first word of "cc", so it can be a program name with args.
1297 set dummy cc; ac_word=$2
1298 echo "$as_me:1298: checking for $ac_word" >&5
1299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1300 if test "${ac_cv_prog_CC+set}" = set; then
1301 echo $ECHO_N "(cached) $ECHO_C" >&6
1303 if test -n "$CC"; then
1304 ac_cv_prog_CC="$CC" # Let the user override the test.
1307 ac_save_IFS=$IFS; IFS=$ac_path_separator
1309 for ac_dir in $ac_dummy; do
1311 test -z "$ac_dir" && ac_dir=.
1312 $as_executable_p "$ac_dir/$ac_word" || continue
1313 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1314 ac_prog_rejected=yes
1318 echo "$as_me:1318: found $ac_dir/$ac_word" >&5
1322 if test $ac_prog_rejected = yes; then
1323 # We found a bogon in the path, so make sure we never use it.
1324 set dummy $ac_cv_prog_CC
1326 if test $# != 0; then
1327 # We chose a different compiler from the bogus one.
1328 # However, it has the same basename, so the bogon will be chosen
1329 # first if we set CC to just the basename; use the full file name.
1331 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1339 if test -n "$CC"; then
1340 echo "$as_me:1340: result: $CC" >&5
1341 echo "${ECHO_T}$CC" >&6
1343 echo "$as_me:1343: result: no" >&5
1344 echo "${ECHO_T}no" >&6
1348 if test -z "$CC"; then
1349 if test -n "$ac_tool_prefix"; then
1352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1353 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1354 echo "$as_me:1354: checking for $ac_word" >&5
1355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1356 if test "${ac_cv_prog_CC+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
1359 if test -n "$CC"; then
1360 ac_cv_prog_CC="$CC" # Let the user override the test.
1362 ac_save_IFS=$IFS; IFS=$ac_path_separator
1364 for ac_dir in $ac_dummy; do
1366 test -z "$ac_dir" && ac_dir=.
1367 $as_executable_p "$ac_dir/$ac_word" || continue
1368 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1369 echo "$as_me:1369: found $ac_dir/$ac_word" >&5
1376 if test -n "$CC"; then
1377 echo "$as_me:1377: result: $CC" >&5
1378 echo "${ECHO_T}$CC" >&6
1380 echo "$as_me:1380: result: no" >&5
1381 echo "${ECHO_T}no" >&6
1384 test -n "$CC" && break
1387 if test -z "$CC"; then
1391 # Extract the first word of "$ac_prog", so it can be a program name with args.
1392 set dummy $ac_prog; ac_word=$2
1393 echo "$as_me:1393: checking for $ac_word" >&5
1394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1395 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1396 echo $ECHO_N "(cached) $ECHO_C" >&6
1398 if test -n "$ac_ct_CC"; then
1399 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1401 ac_save_IFS=$IFS; IFS=$ac_path_separator
1403 for ac_dir in $ac_dummy; do
1405 test -z "$ac_dir" && ac_dir=.
1406 $as_executable_p "$ac_dir/$ac_word" || continue
1407 ac_cv_prog_ac_ct_CC="$ac_prog"
1408 echo "$as_me:1408: found $ac_dir/$ac_word" >&5
1414 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1415 if test -n "$ac_ct_CC"; then
1416 echo "$as_me:1416: result: $ac_ct_CC" >&5
1417 echo "${ECHO_T}$ac_ct_CC" >&6
1419 echo "$as_me:1419: result: no" >&5
1420 echo "${ECHO_T}no" >&6
1423 test -n "$ac_ct_CC" && break
1431 test -z "$CC" && { { echo "$as_me:1431: error: no acceptable cc found in \$PATH" >&5
1432 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1433 { (exit 1); exit 1; }; }
1435 # Provide some information about the compiler.
1436 echo "$as_me:1436:" \
1437 "checking for C compiler version" >&5
1438 ac_compiler=`set X $ac_compile; echo $2`
1439 { (eval echo "$as_me:1439: \"$ac_compiler --version </dev/null >&5\"") >&5
1440 (eval $ac_compiler --version </dev/null >&5) 2>&5
1442 echo "$as_me:1442: \$? = $ac_status" >&5
1443 (exit $ac_status); }
1444 { (eval echo "$as_me:1444: \"$ac_compiler -v </dev/null >&5\"") >&5
1445 (eval $ac_compiler -v </dev/null >&5) 2>&5
1447 echo "$as_me:1447: \$? = $ac_status" >&5
1448 (exit $ac_status); }
1449 { (eval echo "$as_me:1449: \"$ac_compiler -V </dev/null >&5\"") >&5
1450 (eval $ac_compiler -V </dev/null >&5) 2>&5
1452 echo "$as_me:1452: \$? = $ac_status" >&5
1453 (exit $ac_status); }
1455 cat >conftest.$ac_ext <<_ACEOF
1456 #line 1456 "configure"
1457 #include "confdefs.h"
1467 ac_clean_files_save=$ac_clean_files
1468 ac_clean_files="$ac_clean_files a.out a.exe"
1469 # Try to create an executable without -o first, disregard a.out.
1470 # It will help us diagnose broken compilers, and finding out an intuition
1472 echo "$as_me:1472: checking for C compiler default output" >&5
1473 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1474 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1475 if { (eval echo "$as_me:1475: \"$ac_link_default\"") >&5
1476 (eval $ac_link_default) 2>&5
1478 echo "$as_me:1478: \$? = $ac_status" >&5
1479 (exit $ac_status); }; then
1480 # Find the output, starting from the most likely. This scheme is
1481 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1483 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1484 ls a.out conftest 2>/dev/null;
1485 ls a.* conftest.* 2>/dev/null`; do
1487 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1488 a.out ) # We found the default executable, but exeext='' is most
1491 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1492 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1499 echo "$as_me: failed program was:" >&5
1500 cat conftest.$ac_ext >&5
1501 { { echo "$as_me:1501: error: C compiler cannot create executables" >&5
1502 echo "$as_me: error: C compiler cannot create executables" >&2;}
1503 { (exit 77); exit 77; }; }
1506 ac_exeext=$ac_cv_exeext
1507 echo "$as_me:1507: result: $ac_file" >&5
1508 echo "${ECHO_T}$ac_file" >&6
1510 # Check the compiler produces executables we can run. If not, either
1511 # the compiler is broken, or we cross compile.
1512 echo "$as_me:1512: checking whether the C compiler works" >&5
1513 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1514 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1515 # If not cross compiling, check that we can run a simple program.
1516 if test "$cross_compiling" != yes; then
1517 if { ac_try='./$ac_file'
1518 { (eval echo "$as_me:1518: \"$ac_try\"") >&5
1521 echo "$as_me:1521: \$? = $ac_status" >&5
1522 (exit $ac_status); }; }; then
1525 if test "$cross_compiling" = maybe; then
1528 { { echo "$as_me:1528: error: cannot run C compiled programs.
1529 If you meant to cross compile, use \`--host'." >&5
1530 echo "$as_me: error: cannot run C compiled programs.
1531 If you meant to cross compile, use \`--host'." >&2;}
1532 { (exit 1); exit 1; }; }
1536 echo "$as_me:1536: result: yes" >&5
1537 echo "${ECHO_T}yes" >&6
1539 rm -f a.out a.exe conftest$ac_cv_exeext
1540 ac_clean_files=$ac_clean_files_save
1541 # Check the compiler produces executables we can run. If not, either
1542 # the compiler is broken, or we cross compile.
1543 echo "$as_me:1543: checking whether we are cross compiling" >&5
1544 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1545 echo "$as_me:1545: result: $cross_compiling" >&5
1546 echo "${ECHO_T}$cross_compiling" >&6
1548 echo "$as_me:1548: checking for executable suffix" >&5
1549 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1550 if { (eval echo "$as_me:1550: \"$ac_link\"") >&5
1551 (eval $ac_link) 2>&5
1553 echo "$as_me:1553: \$? = $ac_status" >&5
1554 (exit $ac_status); }; then
1555 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1556 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1557 # work properly (i.e., refer to `conftest.exe'), while it won't with
1559 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1561 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1562 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1569 { { echo "$as_me:1569: error: cannot compute EXEEXT: cannot compile and link" >&5
1570 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1571 { (exit 1); exit 1; }; }
1574 rm -f conftest$ac_cv_exeext
1575 echo "$as_me:1575: result: $ac_cv_exeext" >&5
1576 echo "${ECHO_T}$ac_cv_exeext" >&6
1578 rm -f conftest.$ac_ext
1579 EXEEXT=$ac_cv_exeext
1581 echo "$as_me:1581: checking for object suffix" >&5
1582 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1583 if test "${ac_cv_objext+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 cat >conftest.$ac_ext <<_ACEOF
1587 #line 1587 "configure"
1588 #include "confdefs.h"
1598 rm -f conftest.o conftest.obj
1599 if { (eval echo "$as_me:1599: \"$ac_compile\"") >&5
1600 (eval $ac_compile) 2>&5
1602 echo "$as_me:1602: \$? = $ac_status" >&5
1603 (exit $ac_status); }; then
1604 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1607 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1612 echo "$as_me: failed program was:" >&5
1613 cat conftest.$ac_ext >&5
1614 { { echo "$as_me:1614: error: cannot compute OBJEXT: cannot compile" >&5
1615 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1616 { (exit 1); exit 1; }; }
1619 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1621 echo "$as_me:1621: result: $ac_cv_objext" >&5
1622 echo "${ECHO_T}$ac_cv_objext" >&6
1623 OBJEXT=$ac_cv_objext
1625 echo "$as_me:1625: checking whether we are using the GNU C compiler" >&5
1626 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1627 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1630 cat >conftest.$ac_ext <<_ACEOF
1631 #line 1631 "configure"
1632 #include "confdefs.h"
1645 rm -f conftest.$ac_objext
1646 if { (eval echo "$as_me:1646: \"$ac_compile\"") >&5
1647 (eval $ac_compile) 2>&5
1649 echo "$as_me:1649: \$? = $ac_status" >&5
1650 (exit $ac_status); } &&
1651 { ac_try='test -s conftest.$ac_objext'
1652 { (eval echo "$as_me:1652: \"$ac_try\"") >&5
1655 echo "$as_me:1655: \$? = $ac_status" >&5
1656 (exit $ac_status); }; }; then
1659 echo "$as_me: failed program was:" >&5
1660 cat conftest.$ac_ext >&5
1663 rm -f conftest.$ac_objext conftest.$ac_ext
1664 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1667 echo "$as_me:1667: result: $ac_cv_c_compiler_gnu" >&5
1668 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1669 GCC=`test $ac_compiler_gnu = yes && echo yes`
1670 ac_test_CFLAGS=${CFLAGS+set}
1671 ac_save_CFLAGS=$CFLAGS
1673 echo "$as_me:1673: checking whether $CC accepts -g" >&5
1674 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1675 if test "${ac_cv_prog_cc_g+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1678 cat >conftest.$ac_ext <<_ACEOF
1679 #line 1679 "configure"
1680 #include "confdefs.h"
1690 rm -f conftest.$ac_objext
1691 if { (eval echo "$as_me:1691: \"$ac_compile\"") >&5
1692 (eval $ac_compile) 2>&5
1694 echo "$as_me:1694: \$? = $ac_status" >&5
1695 (exit $ac_status); } &&
1696 { ac_try='test -s conftest.$ac_objext'
1697 { (eval echo "$as_me:1697: \"$ac_try\"") >&5
1700 echo "$as_me:1700: \$? = $ac_status" >&5
1701 (exit $ac_status); }; }; then
1704 echo "$as_me: failed program was:" >&5
1705 cat conftest.$ac_ext >&5
1708 rm -f conftest.$ac_objext conftest.$ac_ext
1710 echo "$as_me:1710: result: $ac_cv_prog_cc_g" >&5
1711 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1712 if test "$ac_test_CFLAGS" = set; then
1713 CFLAGS=$ac_save_CFLAGS
1714 elif test $ac_cv_prog_cc_g = yes; then
1715 if test "$GCC" = yes; then
1721 if test "$GCC" = yes; then
1727 # Some people use a C++ compiler to compile C. Since we use `exit',
1728 # in C++ we need to declare it. In case someone uses the same compiler
1729 # for both compiling C and C++ we need to have the C++ compiler decide
1730 # the declaration of exit, since it's the most demanding environment.
1731 cat >conftest.$ac_ext <<_ACEOF
1736 rm -f conftest.$ac_objext
1737 if { (eval echo "$as_me:1737: \"$ac_compile\"") >&5
1738 (eval $ac_compile) 2>&5
1740 echo "$as_me:1740: \$? = $ac_status" >&5
1741 (exit $ac_status); } &&
1742 { ac_try='test -s conftest.$ac_objext'
1743 { (eval echo "$as_me:1743: \"$ac_try\"") >&5
1746 echo "$as_me:1746: \$? = $ac_status" >&5
1747 (exit $ac_status); }; }; then
1748 for ac_declaration in \
1750 '#include <stdlib.h>' \
1751 'extern "C" void std::exit (int) throw (); using std::exit;' \
1752 'extern "C" void std::exit (int); using std::exit;' \
1753 'extern "C" void exit (int) throw ();' \
1754 'extern "C" void exit (int);' \
1757 cat >conftest.$ac_ext <<_ACEOF
1758 #line 1758 "configure"
1759 #include "confdefs.h"
1770 rm -f conftest.$ac_objext
1771 if { (eval echo "$as_me:1771: \"$ac_compile\"") >&5
1772 (eval $ac_compile) 2>&5
1774 echo "$as_me:1774: \$? = $ac_status" >&5
1775 (exit $ac_status); } &&
1776 { ac_try='test -s conftest.$ac_objext'
1777 { (eval echo "$as_me:1777: \"$ac_try\"") >&5
1780 echo "$as_me:1780: \$? = $ac_status" >&5
1781 (exit $ac_status); }; }; then
1784 echo "$as_me: failed program was:" >&5
1785 cat conftest.$ac_ext >&5
1788 rm -f conftest.$ac_objext conftest.$ac_ext
1789 cat >conftest.$ac_ext <<_ACEOF
1790 #line 1790 "configure"
1791 #include "confdefs.h"
1801 rm -f conftest.$ac_objext
1802 if { (eval echo "$as_me:1802: \"$ac_compile\"") >&5
1803 (eval $ac_compile) 2>&5
1805 echo "$as_me:1805: \$? = $ac_status" >&5
1806 (exit $ac_status); } &&
1807 { ac_try='test -s conftest.$ac_objext'
1808 { (eval echo "$as_me:1808: \"$ac_try\"") >&5
1811 echo "$as_me:1811: \$? = $ac_status" >&5
1812 (exit $ac_status); }; }; then
1815 echo "$as_me: failed program was:" >&5
1816 cat conftest.$ac_ext >&5
1818 rm -f conftest.$ac_objext conftest.$ac_ext
1821 if test -n "$ac_declaration"; then
1822 echo '#ifdef __cplusplus' >>confdefs.h
1823 echo $ac_declaration >>confdefs.h
1824 echo '#endif' >>confdefs.h
1828 echo "$as_me: failed program was:" >&5
1829 cat conftest.$ac_ext >&5
1831 rm -f conftest.$ac_objext conftest.$ac_ext
1833 ac_cpp='$CPP $CPPFLAGS'
1834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1838 # Check whether --with-linker or --without-linker was given.
1839 if test "${with_linker+set}" = set; then
1840 withval="$with_linker"
1841 echo "$as_me:1841: result: LD=$withval" >&5
1842 echo "${ECHO_T}LD=$withval" >&6
1845 if test -z "$LD" ; then LD=$CC; fi
1846 echo "$as_me:1846: result: LD defaults to $LD" >&5
1847 echo "${ECHO_T}LD defaults to $LD" >&6
1850 # Check whether --with-ccopts or --without-ccopts was given.
1851 if test "${with_ccopts+set}" = set; then
1852 withval="$with_ccopts"
1853 echo "$as_me:1853: result: CCOPTS is $withval" >&5
1854 echo "${ECHO_T}CCOPTS is $withval" >&6
1858 ac_cpp='$CPP $CPPFLAGS'
1859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1862 echo "$as_me:1862: checking how to run the C preprocessor" >&5
1863 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1864 # On Suns, sometimes $CPP names a directory.
1865 if test -n "$CPP" && test -d "$CPP"; then
1868 if test -z "$CPP"; then
1869 if test "${ac_cv_prog_CPP+set}" = set; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1872 # Double quotes because CPP needs to be expanded
1873 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1876 for ac_c_preproc_warn_flag in '' yes
1878 # Use a header file that comes with gcc, so configuring glibc
1879 # with a fresh cross-compiler works.
1880 # On the NeXT, cc -E runs the code through the compiler's parser,
1881 # not just through cpp. "Syntax error" is here to catch this case.
1882 cat >conftest.$ac_ext <<_ACEOF
1883 #line 1883 "configure"
1884 #include "confdefs.h"
1888 if { (eval echo "$as_me:1888: \"$ac_cpp conftest.$ac_ext\"") >&5
1889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1891 egrep -v '^ *\+' conftest.er1 >conftest.err
1893 cat conftest.err >&5
1894 echo "$as_me:1894: \$? = $ac_status" >&5
1895 (exit $ac_status); } >/dev/null; then
1896 if test -s conftest.err; then
1897 ac_cpp_err=$ac_c_preproc_warn_flag
1904 if test -z "$ac_cpp_err"; then
1907 echo "$as_me: failed program was:" >&5
1908 cat conftest.$ac_ext >&5
1909 # Broken: fails on valid input.
1912 rm -f conftest.err conftest.$ac_ext
1914 # OK, works on sane cases. Now check whether non-existent headers
1915 # can be detected and how.
1916 cat >conftest.$ac_ext <<_ACEOF
1917 #line 1917 "configure"
1918 #include "confdefs.h"
1919 #include <ac_nonexistent.h>
1921 if { (eval echo "$as_me:1921: \"$ac_cpp conftest.$ac_ext\"") >&5
1922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1924 egrep -v '^ *\+' conftest.er1 >conftest.err
1926 cat conftest.err >&5
1927 echo "$as_me:1927: \$? = $ac_status" >&5
1928 (exit $ac_status); } >/dev/null; then
1929 if test -s conftest.err; then
1930 ac_cpp_err=$ac_c_preproc_warn_flag
1937 if test -z "$ac_cpp_err"; then
1938 # Broken: success on invalid input.
1941 echo "$as_me: failed program was:" >&5
1942 cat conftest.$ac_ext >&5
1943 # Passes both tests.
1947 rm -f conftest.err conftest.$ac_ext
1950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1951 rm -f conftest.err conftest.$ac_ext
1952 if $ac_preproc_ok; then
1964 echo "$as_me:1964: result: $CPP" >&5
1965 echo "${ECHO_T}$CPP" >&6
1967 for ac_c_preproc_warn_flag in '' yes
1969 # Use a header file that comes with gcc, so configuring glibc
1970 # with a fresh cross-compiler works.
1971 # On the NeXT, cc -E runs the code through the compiler's parser,
1972 # not just through cpp. "Syntax error" is here to catch this case.
1973 cat >conftest.$ac_ext <<_ACEOF
1974 #line 1974 "configure"
1975 #include "confdefs.h"
1979 if { (eval echo "$as_me:1979: \"$ac_cpp conftest.$ac_ext\"") >&5
1980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1982 egrep -v '^ *\+' conftest.er1 >conftest.err
1984 cat conftest.err >&5
1985 echo "$as_me:1985: \$? = $ac_status" >&5
1986 (exit $ac_status); } >/dev/null; then
1987 if test -s conftest.err; then
1988 ac_cpp_err=$ac_c_preproc_warn_flag
1995 if test -z "$ac_cpp_err"; then
1998 echo "$as_me: failed program was:" >&5
1999 cat conftest.$ac_ext >&5
2000 # Broken: fails on valid input.
2003 rm -f conftest.err conftest.$ac_ext
2005 # OK, works on sane cases. Now check whether non-existent headers
2006 # can be detected and how.
2007 cat >conftest.$ac_ext <<_ACEOF
2008 #line 2008 "configure"
2009 #include "confdefs.h"
2010 #include <ac_nonexistent.h>
2012 if { (eval echo "$as_me:2012: \"$ac_cpp conftest.$ac_ext\"") >&5
2013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2015 egrep -v '^ *\+' conftest.er1 >conftest.err
2017 cat conftest.err >&5
2018 echo "$as_me:2018: \$? = $ac_status" >&5
2019 (exit $ac_status); } >/dev/null; then
2020 if test -s conftest.err; then
2021 ac_cpp_err=$ac_c_preproc_warn_flag
2028 if test -z "$ac_cpp_err"; then
2029 # Broken: success on invalid input.
2032 echo "$as_me: failed program was:" >&5
2033 cat conftest.$ac_ext >&5
2034 # Passes both tests.
2038 rm -f conftest.err conftest.$ac_ext
2041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2042 rm -f conftest.err conftest.$ac_ext
2043 if $ac_preproc_ok; then
2046 { { echo "$as_me:2046: error: C preprocessor \"$CPP\" fails sanity check" >&5
2047 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2048 { (exit 1); exit 1; }; }
2052 ac_cpp='$CPP $CPPFLAGS'
2053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2057 echo "$as_me:2057: checking for linux/fs.h" >&5
2058 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
2059 if test "${ac_cv_header_linux_fs_h+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 cat >conftest.$ac_ext <<_ACEOF
2063 #line 2063 "configure"
2064 #include "confdefs.h"
2065 #include <linux/fs.h>
2067 if { (eval echo "$as_me:2067: \"$ac_cpp conftest.$ac_ext\"") >&5
2068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2070 egrep -v '^ *\+' conftest.er1 >conftest.err
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
2083 if test -z "$ac_cpp_err"; then
2084 ac_cv_header_linux_fs_h=yes
2086 echo "$as_me: failed program was:" >&5
2087 cat conftest.$ac_ext >&5
2088 ac_cv_header_linux_fs_h=no
2090 rm -f conftest.err conftest.$ac_ext
2092 echo "$as_me:2092: result: $ac_cv_header_linux_fs_h" >&5
2093 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
2094 if test $ac_cv_header_linux_fs_h = yes; then
2100 if test "$linux_headers" != yes; then
2101 LINUX_INCLUDE='-I$(top_builddir)/include'
2108 # Check whether --with-ldopts or --without-ldopts was given.
2109 if test "${with_ldopts+set}" = set; then
2110 withval="$with_ldopts"
2111 echo "$as_me:2111: result: LDFLAGS is $withval" >&5
2112 echo "${ECHO_T}LDFLAGS is $withval" >&6
2118 # Check whether --with-root-prefix or --without-root-prefix was given.
2119 if test "${with_root_prefix+set}" = set; then
2120 withval="$with_root_prefix"
2121 root_prefix=$withval
2124 fi; # Check whether --enable-compression or --disable-compression was given.
2125 if test "${enable_compression+set}" = set; then
2126 enableval="$enable_compression"
2127 if test "$enableval" = "no"
2129 echo "Disabling compression support"
2131 cat >>confdefs.h <<\EOF
2132 #define ENABLE_COMPRESSION 1
2135 echo "Enabling compression support"
2136 echo "WARNING: Compression support is experimental"
2140 echo "Disabling compression support by default"
2143 # Check whether --enable-htree or --disable-htree was given.
2144 if test "${enable_htree+set}" = set; then
2145 enableval="$enable_htree"
2146 if test "$enableval" = "no"
2149 echo "Disabling htree directory support"
2152 cat >>confdefs.h <<\EOF
2153 #define ENABLE_HTREE 1
2156 echo "Enabling htree directory support"
2161 cat >>confdefs.h <<\EOF
2162 #define ENABLE_HTREE 1
2165 echo "Enabling htree directory support by default"
2169 # Check whether --enable-htree-clear or --disable-htree-clear was given.
2170 if test "${enable_htree_clear+set}" = set; then
2171 enableval="$enable_htree_clear"
2172 if test "$enableval" = "no"
2175 echo "Disabling htree clearing"
2178 cat >>confdefs.h <<\EOF
2179 #define ENABLE_HTREE_CLEAR 1
2182 echo "Enabling htree clearing"
2187 echo "Disabling htree clearing by default"
2191 # Check whether --enable-evms or --disable-evms was given.
2192 if test "${enable_evms+set}" = set; then
2193 enableval="$enable_evms"
2194 if test "$enableval" == "no"
2197 echo "Disabling EVMS plugin"
2202 # Check whether --enable-evms-10 or --disable-evms-10 was given.
2203 if test "${enable_evms_10+set}" = set; then
2204 enableval="$enable_evms_10"
2205 if test "$enableval" != "no"
2208 echo "Enabling EVMS 1.0.0 ABI"
2212 # Check whether --enable-evms-11 or --disable-evms-11 was given.
2213 if test "${enable_evms_11+set}" = set; then
2214 enableval="$enable_evms_11"
2215 if test "$enableval" != "no"
2218 echo "Enabling EVMS 1.1.0 ABI"
2222 if test "$EVMS_ABI_CODE" = "120"
2224 echo "Using EVMS 1.2.0 ABI by default"
2227 # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
2228 if test "${enable_dll_shlibs+set}" = set; then
2229 enableval="$enable_dll_shlibs"
2230 if test "$enableval" = "no"
2233 MAKEFILE_DLL=/dev/null
2234 echo "Disabling DLL shared libraries"
2237 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
2240 echo "Enabling DLL shared libraries"
2244 MAKEFILE_DLL=/dev/null
2246 echo "Disabling DLL shared libraries by default"
2250 # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
2251 if test "${enable_elf_shlibs+set}" = set; then
2252 enableval="$enable_elf_shlibs"
2253 if test "$enableval" = "no"
2256 MAKEFILE_ELF=/dev/null
2257 echo "Disabling ELF shared libraries"
2260 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
2263 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
2268 echo "Enabling ELF shared libraries"
2272 MAKEFILE_ELF=/dev/null
2274 echo "Disabling ELF shared libraries by default"
2278 # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
2279 if test "${enable_bsd_shlibs+set}" = set; then
2280 enableval="$enable_bsd_shlibs"
2281 if test "$enableval" = "no"
2284 MAKEFILE_BSDLIB=/dev/null
2285 echo "Disabling BSD shared libraries"
2288 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
2292 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
2296 echo "Enabling BSD shared libraries"
2300 MAKEFILE_BSDLIB=/dev/null
2302 echo "Disabling BSD shared libraries by default"
2306 # Check whether --enable-profile or --disable-profile was given.
2307 if test "${enable_profile+set}" = set; then
2308 enableval="$enable_profile"
2309 if test "$enableval" = "no"
2312 MAKEFILE_PROFILE=/dev/null
2313 echo "Disabling profiling libraries"
2316 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
2317 PROFILED_LIB_EXT=_p.a
2318 echo "Building profiling libraries"
2323 MAKEFILE_PROFILE=/dev/null
2324 echo "Disabling profiling libraries by default"
2328 # Check whether --enable-checker or --disable-checker was given.
2329 if test "${enable_checker+set}" = set; then
2330 enableval="$enable_checker"
2331 if test "$enableval" = "no"
2334 MAKEFILE_CHECKER=/dev/null
2335 echo "Disabling checker libraries"
2338 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
2339 echo "Building checker libraries"
2344 MAKEFILE_CHECKER=/dev/null
2345 echo "Disabling checker libraries by default"
2349 # Check whether --enable-jbd-debug or --disable-jbd-debug was given.
2350 if test "${enable_jbd_debug+set}" = set; then
2351 enableval="$enable_jbd_debug"
2352 if test "$enableval" = "no"
2354 echo "Disabling journal debugging"
2356 cat >>confdefs.h <<\EOF
2357 #define CONFIG_JBD_DEBUG 1
2360 echo "Enabling journal debugging"
2364 echo "Disabling journal debugging by default"
2367 # Check whether --enable-blkid-debug or --disable-blkid-debug was given.
2368 if test "${enable_blkid_debug+set}" = set; then
2369 enableval="$enable_blkid_debug"
2370 if test "$enableval" = "no"
2372 echo "Disabling blkid debugging"
2374 cat >>confdefs.h <<\EOF
2375 #define CONFIG_BLKID_DEBUG 1
2378 echo "Enabling blkid debugging"
2382 echo "Disabling blkid debugging by default"
2385 # Check whether --enable-testio-debug or --disable-testio-debug was given.
2386 if test "${enable_testio_debug+set}" = set; then
2387 enableval="$enable_testio_debug"
2388 if test "$enableval" = "no"
2390 echo "Disabling testio debugging"
2392 cat >>confdefs.h <<\EOF
2393 #define CONFIG_TESTIO_DEBUG 1
2396 echo "Enabling testio debugging"
2400 echo "Disabling testio debugging by default"
2403 # Check whether --enable-swapfs or --disable-swapfs was given.
2404 if test "${enable_swapfs+set}" = set; then
2405 enableval="$enable_swapfs"
2406 if test "$enableval" = "no"
2409 echo "Disabling swapfs support"
2412 cat >>confdefs.h <<\EOF
2413 #define ENABLE_SWAPFS 1
2416 echo "Enabling swapfs support"
2421 echo "Enabling swapfs support by default"
2422 cat >>confdefs.h <<\EOF
2423 #define ENABLE_SWAPFS 1
2428 # Check whether --enable-debugfs or --disable-debugfs was given.
2429 if test "${enable_debugfs+set}" = set; then
2430 enableval="$enable_debugfs"
2431 if test "$enableval" = "no"
2433 echo "Disabling debugfs support"
2437 echo "Enabling debugfs support"
2441 echo "Enabling debugfs support by default"
2446 # Check whether --enable-imager or --disable-imager was given.
2447 if test "${enable_imager+set}" = set; then
2448 enableval="$enable_imager"
2449 if test "$enableval" = "no"
2451 echo "Disabling e2image support"
2455 echo "Enabling e2image support"
2459 echo "Enabling e2image support by default"
2464 # Check whether --enable-resizer or --disable-resizer was given.
2465 if test "${enable_resizer+set}" = set; then
2466 enableval="$enable_resizer"
2467 if test "$enableval" = "no"
2469 echo "Disabling e2resize support"
2473 echo "Enabling e2resize support"
2477 echo "Enabling e2resize support by default"
2482 # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
2483 if test "${enable_dynamic_e2fsck+set}" = set; then
2484 enableval="$enable_dynamic_e2fsck"
2485 if test "$enableval" = "no"
2488 echo "Building e2fsck statically"
2491 echo "Building e2fsck dynamically"
2496 echo "Building e2fsck statically by default"
2500 # Check whether --enable-fsck or --disable-fsck was given.
2501 if test "${enable_fsck+set}" = set; then
2502 enableval="$enable_fsck"
2503 if test "$enableval" = "no"
2505 FSCK_PROG='' FSCK_MAN=''
2506 echo "Not building fsck wrapper"
2508 FSCK_PROG=fsck FSCK_MAN=fsck.8
2509 echo "Building fsck wrapper"
2514 gnu* | freebsd*-gnu*)
2515 FSCK_PROG='' FSCK_MAN=''
2516 echo "Not building fsck wrapper by default"
2519 FSCK_PROG=fsck FSCK_MAN=fsck.8
2520 echo "Building fsck wrapper by default"
2525 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
2527 # Check whether --enable-old-bitops or --disable-old-bitops was given.
2528 if test "${enable_old_bitops+set}" = set; then
2529 enableval="$enable_old_bitops"
2530 if test "$enableval" = "no"
2532 echo "Using new (standard) bitmask operations"
2534 cat >>confdefs.h <<\EOF
2535 #define EXT2_OLD_BITOPS 1
2538 echo "Using old (native) bitmask operations"
2543 echo "Using standard bitmask operations by default"
2547 VERSION="$E2FSPROGS_VERSION"
2548 cat >>confdefs.h <<EOF
2549 #define PACKAGE "$PACKAGE"
2552 cat >>confdefs.h <<EOF
2553 #define VERSION "$VERSION"
2556 echo "$as_me:2556: checking whether ${MAKE-make} sets \${MAKE}" >&5
2557 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2558 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2559 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2562 cat >conftest.make <<\EOF
2564 @echo 'ac_maketemp="${MAKE}"'
2566 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2567 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2568 if test -n "$ac_maketemp"; then
2569 eval ac_cv_prog_make_${ac_make}_set=yes
2571 eval ac_cv_prog_make_${ac_make}_set=no
2575 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2576 echo "$as_me:2576: result: yes" >&5
2577 echo "${ECHO_T}yes" >&6
2580 echo "$as_me:2580: result: no" >&5
2581 echo "${ECHO_T}no" >&6
2582 SET_MAKE="MAKE=${MAKE-make}"
2585 # Find a good install program. We prefer a C program (faster),
2586 # so one script is as good as another. But avoid the broken or
2587 # incompatible versions:
2588 # SysV /etc/install, /usr/sbin/install
2589 # SunOS /usr/etc/install
2590 # IRIX /sbin/install
2592 # AmigaOS /C/install, which installs bootblocks on floppy discs
2593 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2594 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2595 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2596 # ./install, which can be erroneously created by make from ./install.sh.
2597 echo "$as_me:2597: checking for a BSD compatible install" >&5
2598 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2599 if test -z "$INSTALL"; then
2600 if test "${ac_cv_path_install+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 ac_save_IFS=$IFS; IFS=$ac_path_separator
2604 for ac_dir in $PATH; do
2606 # Account for people who put trailing slashes in PATH elements.
2608 / | ./ | .// | /cC/* \
2609 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2612 # OSF1 and SCO ODT 3.0 have their own names for install.
2613 # Don't use installbsd from OSF since it installs stuff as root
2615 for ac_prog in ginstall scoinst install; do
2616 if $as_executable_p "$ac_dir/$ac_prog"; then
2617 if test $ac_prog = install &&
2618 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2619 # AIX install. It has an incompatible calling convention.
2621 elif test $ac_prog = install &&
2622 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2623 # program-specific install script used by HP pwplus--don't use.
2626 ac_cv_path_install="$ac_dir/$ac_prog -c"
2636 if test "${ac_cv_path_install+set}" = set; then
2637 INSTALL=$ac_cv_path_install
2639 # As a last resort, use the slow shell script. We don't cache a
2640 # path for INSTALL within a source directory, because that will
2641 # break other packages using the cache if that directory is
2642 # removed, or if the path is relative.
2643 INSTALL=$ac_install_sh
2646 echo "$as_me:2646: result: $INSTALL" >&5
2647 echo "${ECHO_T}$INSTALL" >&6
2649 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2650 # It thinks the first close brace ends the variable substitution.
2651 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2653 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2655 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2658 if test -n "$ac_aux_dir"; then
2659 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2661 if test -z "$MKINSTALLDIRS"; then
2662 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2665 # Extract the first word of "msgfmt", so it can be a program name with args.
2666 set dummy msgfmt; ac_word=$2
2667 echo "$as_me:2667: checking for $ac_word" >&5
2668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2669 if test "${ac_cv_path_MSGFMT+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2678 for ac_dir in $PATH; do
2679 test -z "$ac_dir" && ac_dir=.
2680 if test -f $ac_dir/$ac_word; then
2681 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
2682 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2683 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2689 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2693 MSGFMT="$ac_cv_path_MSGFMT"
2694 if test "$MSGFMT" != ":"; then
2695 echo "$as_me:2695: result: $MSGFMT" >&5
2696 echo "${ECHO_T}$MSGFMT" >&6
2698 echo "$as_me:2698: result: no" >&5
2699 echo "${ECHO_T}no" >&6
2702 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2703 set dummy gmsgfmt; ac_word=$2
2704 echo "$as_me:2704: checking for $ac_word" >&5
2705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2706 if test "${ac_cv_path_GMSGFMT+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2714 ac_save_IFS=$IFS; IFS=$ac_path_separator
2716 for ac_dir in $ac_dummy; do
2718 test -z "$ac_dir" && ac_dir=.
2719 if $as_executable_p "$ac_dir/$ac_word"; then
2720 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2721 echo "$as_me:2721: found $ac_dir/$ac_word" >&5
2726 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2730 GMSGFMT=$ac_cv_path_GMSGFMT
2732 if test -n "$GMSGFMT"; then
2733 echo "$as_me:2733: result: $GMSGFMT" >&5
2734 echo "${ECHO_T}$GMSGFMT" >&6
2736 echo "$as_me:2736: result: no" >&5
2737 echo "${ECHO_T}no" >&6
2740 # Extract the first word of "xgettext", so it can be a program name with args.
2741 set dummy xgettext; ac_word=$2
2742 echo "$as_me:2742: checking for $ac_word" >&5
2743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2744 if test "${ac_cv_path_XGETTEXT+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2749 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2753 for ac_dir in $PATH; do
2754 test -z "$ac_dir" && ac_dir=.
2755 if test -f $ac_dir/$ac_word; then
2756 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
2757 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2758 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2764 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2768 XGETTEXT="$ac_cv_path_XGETTEXT"
2769 if test "$XGETTEXT" != ":"; then
2770 echo "$as_me:2770: result: $XGETTEXT" >&5
2771 echo "${ECHO_T}$XGETTEXT" >&6
2773 echo "$as_me:2773: result: no" >&5
2774 echo "${ECHO_T}no" >&6
2779 # Extract the first word of "msgmerge", so it can be a program name with args.
2780 set dummy msgmerge; ac_word=$2
2781 echo "$as_me:2781: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2783 if test "${ac_cv_path_MSGMERGE+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2792 for ac_dir in $PATH; do
2793 test -z "$ac_dir" && ac_dir=.
2794 if test -f $ac_dir/$ac_word; then
2795 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
2796 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
2802 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2806 MSGMERGE="$ac_cv_path_MSGMERGE"
2807 if test "$MSGMERGE" != ":"; then
2808 echo "$as_me:2808: result: $MSGMERGE" >&5
2809 echo "${ECHO_T}$MSGMERGE" >&6
2811 echo "$as_me:2811: result: no" >&5
2812 echo "${ECHO_T}no" >&6
2815 if test "$GMSGFMT" != ":"; then
2816 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
2817 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2820 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
2821 echo "$as_me:2821: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
2822 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
2827 if test "$XGETTEXT" != ":"; then
2828 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
2829 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2832 echo "$as_me:2832: result: found xgettext program is not GNU xgettext; ignore it" >&5
2833 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
2839 ac_config_commands="$ac_config_commands default-1"
2841 if test -n "$ac_tool_prefix"; then
2842 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2843 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2844 echo "$as_me:2844: checking for $ac_word" >&5
2845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846 if test "${ac_cv_prog_RANLIB+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 if test -n "$RANLIB"; then
2850 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2852 ac_save_IFS=$IFS; IFS=$ac_path_separator
2854 for ac_dir in $ac_dummy; do
2856 test -z "$ac_dir" && ac_dir=.
2857 $as_executable_p "$ac_dir/$ac_word" || continue
2858 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2859 echo "$as_me:2859: found $ac_dir/$ac_word" >&5
2865 RANLIB=$ac_cv_prog_RANLIB
2866 if test -n "$RANLIB"; then
2867 echo "$as_me:2867: result: $RANLIB" >&5
2868 echo "${ECHO_T}$RANLIB" >&6
2870 echo "$as_me:2870: result: no" >&5
2871 echo "${ECHO_T}no" >&6
2875 if test -z "$ac_cv_prog_RANLIB"; then
2876 ac_ct_RANLIB=$RANLIB
2877 # Extract the first word of "ranlib", so it can be a program name with args.
2878 set dummy ranlib; ac_word=$2
2879 echo "$as_me:2879: checking for $ac_word" >&5
2880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2881 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 if test -n "$ac_ct_RANLIB"; then
2885 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2887 ac_save_IFS=$IFS; IFS=$ac_path_separator
2889 for ac_dir in $ac_dummy; do
2891 test -z "$ac_dir" && ac_dir=.
2892 $as_executable_p "$ac_dir/$ac_word" || continue
2893 ac_cv_prog_ac_ct_RANLIB="ranlib"
2894 echo "$as_me:2894: found $ac_dir/$ac_word" >&5
2898 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2901 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2902 if test -n "$ac_ct_RANLIB"; then
2903 echo "$as_me:2903: result: $ac_ct_RANLIB" >&5
2904 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2906 echo "$as_me:2906: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2910 RANLIB=$ac_ct_RANLIB
2912 RANLIB="$ac_cv_prog_RANLIB"
2915 echo "$as_me:2915: checking for strerror in -lcposix" >&5
2916 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2917 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 ac_check_lib_save_LIBS=$LIBS
2921 LIBS="-lcposix $LIBS"
2922 cat >conftest.$ac_ext <<_ACEOF
2923 #line 2923 "configure"
2924 #include "confdefs.h"
2926 /* Override any gcc2 internal prototype to avoid an error. */
2930 /* We use char because int might match the return type of a gcc2
2931 builtin and then its argument prototype would still apply. */
2941 rm -f conftest.$ac_objext conftest$ac_exeext
2942 if { (eval echo "$as_me:2942: \"$ac_link\"") >&5
2943 (eval $ac_link) 2>&5
2945 echo "$as_me:2945: \$? = $ac_status" >&5
2946 (exit $ac_status); } &&
2947 { ac_try='test -s conftest$ac_exeext'
2948 { (eval echo "$as_me:2948: \"$ac_try\"") >&5
2951 echo "$as_me:2951: \$? = $ac_status" >&5
2952 (exit $ac_status); }; }; then
2953 ac_cv_lib_cposix_strerror=yes
2955 echo "$as_me: failed program was:" >&5
2956 cat conftest.$ac_ext >&5
2957 ac_cv_lib_cposix_strerror=no
2959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2960 LIBS=$ac_check_lib_save_LIBS
2962 echo "$as_me:2962: result: $ac_cv_lib_cposix_strerror" >&5
2963 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2964 if test $ac_cv_lib_cposix_strerror = yes; then
2965 LIBS="$LIBS -lcposix"
2968 echo "$as_me:2968: checking for ANSI C header files" >&5
2969 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2970 if test "${ac_cv_header_stdc+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 cat >conftest.$ac_ext <<_ACEOF
2974 #line 2974 "configure"
2975 #include "confdefs.h"
2982 if { (eval echo "$as_me:2982: \"$ac_cpp conftest.$ac_ext\"") >&5
2983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2985 egrep -v '^ *\+' conftest.er1 >conftest.err
2987 cat conftest.err >&5
2988 echo "$as_me:2988: \$? = $ac_status" >&5
2989 (exit $ac_status); } >/dev/null; then
2990 if test -s conftest.err; then
2991 ac_cpp_err=$ac_c_preproc_warn_flag
2998 if test -z "$ac_cpp_err"; then
2999 ac_cv_header_stdc=yes
3001 echo "$as_me: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3003 ac_cv_header_stdc=no
3005 rm -f conftest.err conftest.$ac_ext
3007 if test $ac_cv_header_stdc = yes; then
3008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3009 cat >conftest.$ac_ext <<_ACEOF
3010 #line 3010 "configure"
3011 #include "confdefs.h"
3015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3016 egrep "memchr" >/dev/null 2>&1; then
3019 ac_cv_header_stdc=no
3025 if test $ac_cv_header_stdc = yes; then
3026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3027 cat >conftest.$ac_ext <<_ACEOF
3028 #line 3028 "configure"
3029 #include "confdefs.h"
3033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3034 egrep "free" >/dev/null 2>&1; then
3037 ac_cv_header_stdc=no
3043 if test $ac_cv_header_stdc = yes; then
3044 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3045 if test "$cross_compiling" = yes; then
3048 cat >conftest.$ac_ext <<_ACEOF
3049 #line 3049 "configure"
3050 #include "confdefs.h"
3052 #if ((' ' & 0x0FF) == 0x020)
3053 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3054 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3056 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3057 || ('j' <= (c) && (c) <= 'r') \
3058 || ('s' <= (c) && (c) <= 'z'))
3059 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3062 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3067 for (i = 0; i < 256; i++)
3068 if (XOR (islower (i), ISLOWER (i))
3069 || toupper (i) != TOUPPER (i))
3074 rm -f conftest$ac_exeext
3075 if { (eval echo "$as_me:3075: \"$ac_link\"") >&5
3076 (eval $ac_link) 2>&5
3078 echo "$as_me:3078: \$? = $ac_status" >&5
3079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3080 { (eval echo "$as_me:3080: \"$ac_try\"") >&5
3083 echo "$as_me:3083: \$? = $ac_status" >&5
3084 (exit $ac_status); }; }; then
3087 echo "$as_me: program exited with status $ac_status" >&5
3088 echo "$as_me: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3090 ac_cv_header_stdc=no
3092 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3096 echo "$as_me:3096: result: $ac_cv_header_stdc" >&5
3097 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3098 if test $ac_cv_header_stdc = yes; then
3100 cat >>confdefs.h <<\EOF
3101 #define STDC_HEADERS 1
3106 echo "$as_me:3106: checking for $CC option to accept ANSI C" >&5
3107 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3108 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 ac_cv_prog_cc_stdc=no
3113 cat >conftest.$ac_ext <<_ACEOF
3114 #line 3114 "configure"
3115 #include "confdefs.h"
3118 #include <sys/types.h>
3119 #include <sys/stat.h>
3120 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3121 struct buf { int x; };
3122 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3123 static char *e (p, i)
3129 static char *f (char * (*g) (char **, int), char **p, ...)
3134 s = g (p, va_arg (v,int));
3138 int test (int i, double x);
3139 struct s1 {int (*f) (int a);};
3140 struct s2 {int (*f) (double a);};
3141 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3147 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3152 # Don't try gcc -ansi; that turns off useful extensions and
3153 # breaks some systems' header files.
3154 # AIX -qlanglvl=ansi
3155 # Ultrix and OSF/1 -std1
3156 # HP-UX 10.20 and later -Ae
3157 # HP-UX older versions -Aa -D_HPUX_SOURCE
3158 # SVR4 -Xc -D__EXTENSIONS__
3159 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3161 CC="$ac_save_CC $ac_arg"
3162 rm -f conftest.$ac_objext
3163 if { (eval echo "$as_me:3163: \"$ac_compile\"") >&5
3164 (eval $ac_compile) 2>&5
3166 echo "$as_me:3166: \$? = $ac_status" >&5
3167 (exit $ac_status); } &&
3168 { ac_try='test -s conftest.$ac_objext'
3169 { (eval echo "$as_me:3169: \"$ac_try\"") >&5
3172 echo "$as_me:3172: \$? = $ac_status" >&5
3173 (exit $ac_status); }; }; then
3174 ac_cv_prog_cc_stdc=$ac_arg
3177 echo "$as_me: failed program was:" >&5
3178 cat conftest.$ac_ext >&5
3180 rm -f conftest.$ac_objext
3182 rm -f conftest.$ac_ext conftest.$ac_objext
3187 case "x$ac_cv_prog_cc_stdc" in
3189 echo "$as_me:3189: result: none needed" >&5
3190 echo "${ECHO_T}none needed" >&6 ;;
3192 echo "$as_me:3192: result: $ac_cv_prog_cc_stdc" >&5
3193 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3194 CC="$CC $ac_cv_prog_cc_stdc" ;;
3197 echo "$as_me:3197: checking for an ANSI C-conforming const" >&5
3198 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3199 if test "${ac_cv_c_const+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 cat >conftest.$ac_ext <<_ACEOF
3203 #line 3203 "configure"
3204 #include "confdefs.h"
3209 /* FIXME: Include the comments suggested by Paul. */
3211 /* Ultrix mips cc rejects this. */
3212 typedef int charset[2];
3214 /* SunOS 4.1.1 cc rejects this. */
3215 char const *const *ccp;
3217 /* NEC SVR4.0.2 mips cc rejects this. */
3218 struct point {int x, y;};
3219 static struct point const zero = {0,0};
3220 /* AIX XL C 1.02.0.0 rejects this.
3221 It does not let you subtract one const X* pointer from another in
3222 an arm of an if-expression whose if-part is not a constant
3224 const char *g = "string";
3225 ccp = &g + (g ? g-g : 0);
3226 /* HPUX 7.0 cc rejects these. */
3229 ccp = (char const *const *) p;
3230 { /* SCO 3.2v4 cc rejects this. */
3232 char const *s = 0 ? (char *) 0 : (char const *) 0;
3236 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3238 const int *foo = &x[0];
3241 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3242 typedef const int *iptr;
3246 { /* AIX XL C 1.02.0.0 rejects this saying
3247 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3248 struct s { int j; const int *ap[3]; };
3249 struct s *b; b->j = 5;
3251 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3260 rm -f conftest.$ac_objext
3261 if { (eval echo "$as_me:3261: \"$ac_compile\"") >&5
3262 (eval $ac_compile) 2>&5
3264 echo "$as_me:3264: \$? = $ac_status" >&5
3265 (exit $ac_status); } &&
3266 { ac_try='test -s conftest.$ac_objext'
3267 { (eval echo "$as_me:3267: \"$ac_try\"") >&5
3270 echo "$as_me:3270: \$? = $ac_status" >&5
3271 (exit $ac_status); }; }; then
3274 echo "$as_me: failed program was:" >&5
3275 cat conftest.$ac_ext >&5
3278 rm -f conftest.$ac_objext conftest.$ac_ext
3280 echo "$as_me:3280: result: $ac_cv_c_const" >&5
3281 echo "${ECHO_T}$ac_cv_c_const" >&6
3282 if test $ac_cv_c_const = no; then
3284 cat >>confdefs.h <<\EOF
3290 echo "$as_me:3290: checking for inline" >&5
3291 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3292 if test "${ac_cv_c_inline+set}" = set; then
3293 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 for ac_kw in inline __inline__ __inline; do
3297 cat >conftest.$ac_ext <<_ACEOF
3298 #line 3298 "configure"
3299 #include "confdefs.h"
3301 static $ac_kw int static_foo () {return 0; }
3302 $ac_kw int foo () {return 0; }
3306 rm -f conftest.$ac_objext
3307 if { (eval echo "$as_me:3307: \"$ac_compile\"") >&5
3308 (eval $ac_compile) 2>&5
3310 echo "$as_me:3310: \$? = $ac_status" >&5
3311 (exit $ac_status); } &&
3312 { ac_try='test -s conftest.$ac_objext'
3313 { (eval echo "$as_me:3313: \"$ac_try\"") >&5
3316 echo "$as_me:3316: \$? = $ac_status" >&5
3317 (exit $ac_status); }; }; then
3318 ac_cv_c_inline=$ac_kw; break
3320 echo "$as_me: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3323 rm -f conftest.$ac_objext conftest.$ac_ext
3327 echo "$as_me:3327: result: $ac_cv_c_inline" >&5
3328 echo "${ECHO_T}$ac_cv_c_inline" >&6
3329 case $ac_cv_c_inline in
3332 cat >>confdefs.h <<\EOF
3336 *) cat >>confdefs.h <<EOF
3337 #define inline $ac_cv_c_inline
3342 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3344 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3345 inttypes.h stdint.h unistd.h
3347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3348 echo "$as_me:3348: checking for $ac_header" >&5
3349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 cat >conftest.$ac_ext <<_ACEOF
3354 #line 3354 "configure"
3355 #include "confdefs.h"
3356 $ac_includes_default
3357 #include <$ac_header>
3359 rm -f conftest.$ac_objext
3360 if { (eval echo "$as_me:3360: \"$ac_compile\"") >&5
3361 (eval $ac_compile) 2>&5
3363 echo "$as_me:3363: \$? = $ac_status" >&5
3364 (exit $ac_status); } &&
3365 { ac_try='test -s conftest.$ac_objext'
3366 { (eval echo "$as_me:3366: \"$ac_try\"") >&5
3369 echo "$as_me:3369: \$? = $ac_status" >&5
3370 (exit $ac_status); }; }; then
3371 eval "$as_ac_Header=yes"
3373 echo "$as_me: failed program was:" >&5
3374 cat conftest.$ac_ext >&5
3375 eval "$as_ac_Header=no"
3377 rm -f conftest.$ac_objext conftest.$ac_ext
3379 echo "$as_me:3379: result: `eval echo '${'$as_ac_Header'}'`" >&5
3380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3382 cat >>confdefs.h <<EOF
3383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3389 echo "$as_me:3389: checking for off_t" >&5
3390 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3391 if test "${ac_cv_type_off_t+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 cat >conftest.$ac_ext <<_ACEOF
3395 #line 3395 "configure"
3396 #include "confdefs.h"
3397 $ac_includes_default
3409 rm -f conftest.$ac_objext
3410 if { (eval echo "$as_me:3410: \"$ac_compile\"") >&5
3411 (eval $ac_compile) 2>&5
3413 echo "$as_me:3413: \$? = $ac_status" >&5
3414 (exit $ac_status); } &&
3415 { ac_try='test -s conftest.$ac_objext'
3416 { (eval echo "$as_me:3416: \"$ac_try\"") >&5
3419 echo "$as_me:3419: \$? = $ac_status" >&5
3420 (exit $ac_status); }; }; then
3421 ac_cv_type_off_t=yes
3423 echo "$as_me: failed program was:" >&5
3424 cat conftest.$ac_ext >&5
3427 rm -f conftest.$ac_objext conftest.$ac_ext
3429 echo "$as_me:3429: result: $ac_cv_type_off_t" >&5
3430 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3431 if test $ac_cv_type_off_t = yes; then
3435 cat >>confdefs.h <<EOF
3441 echo "$as_me:3441: checking for size_t" >&5
3442 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3443 if test "${ac_cv_type_size_t+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 cat >conftest.$ac_ext <<_ACEOF
3447 #line 3447 "configure"
3448 #include "confdefs.h"
3449 $ac_includes_default
3455 if (sizeof (size_t))
3461 rm -f conftest.$ac_objext
3462 if { (eval echo "$as_me:3462: \"$ac_compile\"") >&5
3463 (eval $ac_compile) 2>&5
3465 echo "$as_me:3465: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try='test -s conftest.$ac_objext'
3468 { (eval echo "$as_me:3468: \"$ac_try\"") >&5
3471 echo "$as_me:3471: \$? = $ac_status" >&5
3472 (exit $ac_status); }; }; then
3473 ac_cv_type_size_t=yes
3475 echo "$as_me: failed program was:" >&5
3476 cat conftest.$ac_ext >&5
3477 ac_cv_type_size_t=no
3479 rm -f conftest.$ac_objext conftest.$ac_ext
3481 echo "$as_me:3481: result: $ac_cv_type_size_t" >&5
3482 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3483 if test $ac_cv_type_size_t = yes; then
3487 cat >>confdefs.h <<EOF
3488 #define size_t unsigned
3493 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3494 # for constant arguments. Useless!
3495 echo "$as_me:3495: checking for working alloca.h" >&5
3496 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3497 if test "${ac_cv_working_alloca_h+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 cat >conftest.$ac_ext <<_ACEOF
3501 #line 3501 "configure"
3502 #include "confdefs.h"
3507 char *p = (char *) alloca (2 * sizeof (int));
3512 rm -f conftest.$ac_objext conftest$ac_exeext
3513 if { (eval echo "$as_me:3513: \"$ac_link\"") >&5
3514 (eval $ac_link) 2>&5
3516 echo "$as_me:3516: \$? = $ac_status" >&5
3517 (exit $ac_status); } &&
3518 { ac_try='test -s conftest$ac_exeext'
3519 { (eval echo "$as_me:3519: \"$ac_try\"") >&5
3522 echo "$as_me:3522: \$? = $ac_status" >&5
3523 (exit $ac_status); }; }; then
3524 ac_cv_working_alloca_h=yes
3526 echo "$as_me: failed program was:" >&5
3527 cat conftest.$ac_ext >&5
3528 ac_cv_working_alloca_h=no
3530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3532 echo "$as_me:3532: result: $ac_cv_working_alloca_h" >&5
3533 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3534 if test $ac_cv_working_alloca_h = yes; then
3536 cat >>confdefs.h <<\EOF
3537 #define HAVE_ALLOCA_H 1
3542 echo "$as_me:3542: checking for alloca" >&5
3543 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3544 if test "${ac_cv_func_alloca_works+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 cat >conftest.$ac_ext <<_ACEOF
3548 #line 3548 "configure"
3549 #include "confdefs.h"
3551 # define alloca __builtin_alloca
3554 # include <malloc.h>
3555 # define alloca _alloca
3558 # include <alloca.h>
3563 # ifndef alloca /* predefined by HP cc +Olibcalls */
3574 char *p = (char *) alloca (1);
3579 rm -f conftest.$ac_objext conftest$ac_exeext
3580 if { (eval echo "$as_me:3580: \"$ac_link\"") >&5
3581 (eval $ac_link) 2>&5
3583 echo "$as_me:3583: \$? = $ac_status" >&5
3584 (exit $ac_status); } &&
3585 { ac_try='test -s conftest$ac_exeext'
3586 { (eval echo "$as_me:3586: \"$ac_try\"") >&5
3589 echo "$as_me:3589: \$? = $ac_status" >&5
3590 (exit $ac_status); }; }; then
3591 ac_cv_func_alloca_works=yes
3593 echo "$as_me: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3595 ac_cv_func_alloca_works=no
3597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3599 echo "$as_me:3599: result: $ac_cv_func_alloca_works" >&5
3600 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3602 if test $ac_cv_func_alloca_works = yes; then
3604 cat >>confdefs.h <<\EOF
3605 #define HAVE_ALLOCA 1
3609 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3610 # that cause trouble. Some versions do not even contain alloca or
3611 # contain a buggy version. If you still want to use their alloca,
3612 # use ar to extract alloca.o from them instead of compiling alloca.c.
3614 ALLOCA=alloca.$ac_objext
3616 cat >>confdefs.h <<\EOF
3620 echo "$as_me:3620: checking whether \`alloca.c' needs Cray hooks" >&5
3621 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3622 if test "${ac_cv_os_cray+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 cat >conftest.$ac_ext <<_ACEOF
3626 #line 3626 "configure"
3627 #include "confdefs.h"
3628 #if defined(CRAY) && ! defined(CRAY2)
3635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3636 egrep "webecray" >/dev/null 2>&1; then
3644 echo "$as_me:3644: result: $ac_cv_os_cray" >&5
3645 echo "${ECHO_T}$ac_cv_os_cray" >&6
3646 if test $ac_cv_os_cray = yes; then
3647 for ac_func in _getb67 GETB67 getb67; do
3648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3649 echo "$as_me:3649: checking for $ac_func" >&5
3650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3651 if eval "test \"\${$as_ac_var+set}\" = set"; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 cat >conftest.$ac_ext <<_ACEOF
3655 #line 3655 "configure"
3656 #include "confdefs.h"
3657 /* System header to define __stub macros and hopefully few prototypes,
3658 which can conflict with char $ac_func (); below. */
3660 /* Override any gcc2 internal prototype to avoid an error. */
3664 /* We use char because int might match the return type of a gcc2
3665 builtin and then its argument prototype would still apply. */
3672 /* The GNU C library defines this for functions which it implements
3673 to always fail with ENOSYS. Some functions are actually named
3674 something starting with __ and the normal name is an alias. */
3675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3685 rm -f conftest.$ac_objext conftest$ac_exeext
3686 if { (eval echo "$as_me:3686: \"$ac_link\"") >&5
3687 (eval $ac_link) 2>&5
3689 echo "$as_me:3689: \$? = $ac_status" >&5
3690 (exit $ac_status); } &&
3691 { ac_try='test -s conftest$ac_exeext'
3692 { (eval echo "$as_me:3692: \"$ac_try\"") >&5
3695 echo "$as_me:3695: \$? = $ac_status" >&5
3696 (exit $ac_status); }; }; then
3697 eval "$as_ac_var=yes"
3699 echo "$as_me: failed program was:" >&5
3700 cat conftest.$ac_ext >&5
3701 eval "$as_ac_var=no"
3703 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3705 echo "$as_me:3705: result: `eval echo '${'$as_ac_var'}'`" >&5
3706 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3707 if test `eval echo '${'$as_ac_var'}'` = yes; then
3709 cat >>confdefs.h <<EOF
3710 #define CRAY_STACKSEG_END $ac_func
3719 echo "$as_me:3719: checking stack direction for C alloca" >&5
3720 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3721 if test "${ac_cv_c_stack_direction+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 if test "$cross_compiling" = yes; then
3725 ac_cv_c_stack_direction=0
3727 cat >conftest.$ac_ext <<_ACEOF
3728 #line 3728 "configure"
3729 #include "confdefs.h"
3731 find_stack_direction ()
3733 static char *addr = 0;
3738 return find_stack_direction ();
3741 return (&dummy > addr) ? 1 : -1;
3747 exit (find_stack_direction () < 0);
3750 rm -f conftest$ac_exeext
3751 if { (eval echo "$as_me:3751: \"$ac_link\"") >&5
3752 (eval $ac_link) 2>&5
3754 echo "$as_me:3754: \$? = $ac_status" >&5
3755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3756 { (eval echo "$as_me:3756: \"$ac_try\"") >&5
3759 echo "$as_me:3759: \$? = $ac_status" >&5
3760 (exit $ac_status); }; }; then
3761 ac_cv_c_stack_direction=1
3763 echo "$as_me: program exited with status $ac_status" >&5
3764 echo "$as_me: failed program was:" >&5
3765 cat conftest.$ac_ext >&5
3766 ac_cv_c_stack_direction=-1
3768 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3771 echo "$as_me:3771: result: $ac_cv_c_stack_direction" >&5
3772 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3774 cat >>confdefs.h <<EOF
3775 #define STACK_DIRECTION $ac_cv_c_stack_direction
3780 for ac_header in stdlib.h unistd.h
3782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3783 echo "$as_me:3783: checking for $ac_header" >&5
3784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3788 cat >conftest.$ac_ext <<_ACEOF
3789 #line 3789 "configure"
3790 #include "confdefs.h"
3791 #include <$ac_header>
3793 if { (eval echo "$as_me:3793: \"$ac_cpp conftest.$ac_ext\"") >&5
3794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3796 egrep -v '^ *\+' conftest.er1 >conftest.err
3798 cat conftest.err >&5
3799 echo "$as_me:3799: \$? = $ac_status" >&5
3800 (exit $ac_status); } >/dev/null; then
3801 if test -s conftest.err; then
3802 ac_cpp_err=$ac_c_preproc_warn_flag
3809 if test -z "$ac_cpp_err"; then
3810 eval "$as_ac_Header=yes"
3812 echo "$as_me: failed program was:" >&5
3813 cat conftest.$ac_ext >&5
3814 eval "$as_ac_Header=no"
3816 rm -f conftest.err conftest.$ac_ext
3818 echo "$as_me:3818: result: `eval echo '${'$as_ac_Header'}'`" >&5
3819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3821 cat >>confdefs.h <<EOF
3822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3828 for ac_func in getpagesize
3830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3831 echo "$as_me:3831: checking for $ac_func" >&5
3832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3833 if eval "test \"\${$as_ac_var+set}\" = set"; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 cat >conftest.$ac_ext <<_ACEOF
3837 #line 3837 "configure"
3838 #include "confdefs.h"
3839 /* System header to define __stub macros and hopefully few prototypes,
3840 which can conflict with char $ac_func (); below. */
3842 /* Override any gcc2 internal prototype to avoid an error. */
3846 /* We use char because int might match the return type of a gcc2
3847 builtin and then its argument prototype would still apply. */
3854 /* The GNU C library defines this for functions which it implements
3855 to always fail with ENOSYS. Some functions are actually named
3856 something starting with __ and the normal name is an alias. */
3857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3867 rm -f conftest.$ac_objext conftest$ac_exeext
3868 if { (eval echo "$as_me:3868: \"$ac_link\"") >&5
3869 (eval $ac_link) 2>&5
3871 echo "$as_me:3871: \$? = $ac_status" >&5
3872 (exit $ac_status); } &&
3873 { ac_try='test -s conftest$ac_exeext'
3874 { (eval echo "$as_me:3874: \"$ac_try\"") >&5
3877 echo "$as_me:3877: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 eval "$as_ac_var=yes"
3881 echo "$as_me: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3883 eval "$as_ac_var=no"
3885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3887 echo "$as_me:3887: result: `eval echo '${'$as_ac_var'}'`" >&5
3888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3889 if test `eval echo '${'$as_ac_var'}'` = yes; then
3890 cat >>confdefs.h <<EOF
3891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3897 echo "$as_me:3897: checking for working mmap" >&5
3898 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
3899 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 if test "$cross_compiling" = yes; then
3903 ac_cv_func_mmap_fixed_mapped=no
3905 cat >conftest.$ac_ext <<_ACEOF
3906 #line 3906 "configure"
3907 #include "confdefs.h"
3908 $ac_includes_default
3909 /* Thanks to Mike Haertel and Jim Avera for this test.
3910 Here is a matrix of mmap possibilities:
3911 mmap private not fixed
3912 mmap private fixed at somewhere currently unmapped
3913 mmap private fixed at somewhere already mapped
3914 mmap shared not fixed
3915 mmap shared fixed at somewhere currently unmapped
3916 mmap shared fixed at somewhere already mapped
3917 For private mappings, we should verify that changes cannot be read()
3918 back from the file, nor mmap's back from the file at a different
3919 address. (There have been systems where private was not correctly
3920 implemented like the infamous i386 svr4.0, and systems where the
3921 VM page cache was not coherent with the file system buffer cache
3922 like early versions of FreeBSD and possibly contemporary NetBSD.)
3923 For shared mappings, we should conversely verify that changes get
3924 propogated back to all the places they're supposed to be.
3926 Grep wants private fixed already mapped.
3927 The main things grep needs to know about mmap are:
3928 * does it exist and is it safe to write into the mmap'd area
3929 * how to use it (BSD variants) */
3932 #include <sys/mman.h>
3934 #if !STDC_HEADERS && !HAVE_STDLIB_H
3938 /* This mess was copied from the GNU getpagesize.h. */
3939 #if !HAVE_GETPAGESIZE
3940 /* Assume that all systems that can run configure have sys/param.h. */
3941 # if !HAVE_SYS_PARAM_H
3942 # define HAVE_SYS_PARAM_H 1
3945 # ifdef _SC_PAGESIZE
3946 # define getpagesize() sysconf(_SC_PAGESIZE)
3947 # else /* no _SC_PAGESIZE */
3948 # if HAVE_SYS_PARAM_H
3949 # include <sys/param.h>
3950 # ifdef EXEC_PAGESIZE
3951 # define getpagesize() EXEC_PAGESIZE
3952 # else /* no EXEC_PAGESIZE */
3954 # define getpagesize() NBPG * CLSIZE
3957 # endif /* no CLSIZE */
3958 # else /* no NBPG */
3960 # define getpagesize() NBPC
3961 # else /* no NBPC */
3963 # define getpagesize() PAGESIZE
3964 # endif /* PAGESIZE */
3965 # endif /* no NBPC */
3966 # endif /* no NBPG */
3967 # endif /* no EXEC_PAGESIZE */
3968 # else /* no HAVE_SYS_PARAM_H */
3969 # define getpagesize() 8192 /* punt totally */
3970 # endif /* no HAVE_SYS_PARAM_H */
3971 # endif /* no _SC_PAGESIZE */
3973 #endif /* no HAVE_GETPAGESIZE */
3978 char *data, *data2, *data3;
3982 pagesize = getpagesize ();
3984 /* First, make a file with some known garbage in it. */
3985 data = (char *) malloc (pagesize);
3988 for (i = 0; i < pagesize; ++i)
3989 *(data + i) = rand ();
3991 fd = creat ("conftest.mmap", 0600);
3994 if (write (fd, data, pagesize) != pagesize)
3998 /* Next, try to mmap the file at a fixed address which already has
3999 something else allocated at it. If we can, also make sure that
4000 we see the same garbage. */
4001 fd = open ("conftest.mmap", O_RDWR);
4004 data2 = (char *) malloc (2 * pagesize);
4007 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4008 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4009 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4011 for (i = 0; i < pagesize; ++i)
4012 if (*(data + i) != *(data2 + i))
4015 /* Finally, make sure that changes to the mapped area do not
4016 percolate back to the file as seen by read(). (This is a bug on
4017 some variants of i386 svr4.0.) */
4018 for (i = 0; i < pagesize; ++i)
4019 *(data2 + i) = *(data2 + i) + 1;
4020 data3 = (char *) malloc (pagesize);
4023 if (read (fd, data3, pagesize) != pagesize)
4025 for (i = 0; i < pagesize; ++i)
4026 if (*(data + i) != *(data3 + i))
4032 rm -f conftest$ac_exeext
4033 if { (eval echo "$as_me:4033: \"$ac_link\"") >&5
4034 (eval $ac_link) 2>&5
4036 echo "$as_me:4036: \$? = $ac_status" >&5
4037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4038 { (eval echo "$as_me:4038: \"$ac_try\"") >&5
4041 echo "$as_me:4041: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
4043 ac_cv_func_mmap_fixed_mapped=yes
4045 echo "$as_me: program exited with status $ac_status" >&5
4046 echo "$as_me: failed program was:" >&5
4047 cat conftest.$ac_ext >&5
4048 ac_cv_func_mmap_fixed_mapped=no
4050 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4053 echo "$as_me:4053: result: $ac_cv_func_mmap_fixed_mapped" >&5
4054 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4055 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4057 cat >>confdefs.h <<\EOF
4064 echo "$as_me:4064: checking whether we are using the GNU C Library 2.1 or newer" >&5
4065 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
4066 if test "${ac_cv_gnu_library_2_1+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 cat >conftest.$ac_ext <<_ACEOF
4070 #line 4070 "configure"
4071 #include "confdefs.h"
4073 #include <features.h>
4074 #ifdef __GNU_LIBRARY__
4075 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
4081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4082 egrep "Lucky GNU user" >/dev/null 2>&1; then
4083 ac_cv_gnu_library_2_1=yes
4085 ac_cv_gnu_library_2_1=no
4090 echo "$as_me:4090: result: $ac_cv_gnu_library_2_1" >&5
4091 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
4093 GLIBC21="$ac_cv_gnu_library_2_1"
4095 echo "$as_me:4095: checking whether integer division by zero raises SIGFPE" >&5
4096 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
4097 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 if test "$cross_compiling" = yes; then
4103 # Guess based on the CPU.
4105 alpha* | i3456786 | m68k | s390*)
4106 gt_cv_int_divbyzero_sigfpe="guessing yes";;
4108 gt_cv_int_divbyzero_sigfpe="guessing no";;
4112 cat >conftest.$ac_ext <<_ACEOF
4113 #line 4113 "configure"
4114 #include "confdefs.h"
4121 sigfpe_handler (int sig)
4123 sigfpe_handler (sig) int sig;
4126 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
4127 exit (sig != SIGFPE);
4137 signal (SIGFPE, sigfpe_handler);
4138 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
4139 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
4140 signal (SIGTRAP, sigfpe_handler);
4142 /* Linux/SPARC yields signal SIGILL. */
4143 #if defined (__sparc__) && defined (__linux__)
4144 signal (SIGILL, sigfpe_handler);
4153 rm -f conftest$ac_exeext
4154 if { (eval echo "$as_me:4154: \"$ac_link\"") >&5
4155 (eval $ac_link) 2>&5
4157 echo "$as_me:4157: \$? = $ac_status" >&5
4158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4159 { (eval echo "$as_me:4159: \"$ac_try\"") >&5
4162 echo "$as_me:4162: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
4164 gt_cv_int_divbyzero_sigfpe=yes
4166 echo "$as_me: program exited with status $ac_status" >&5
4167 echo "$as_me: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4169 gt_cv_int_divbyzero_sigfpe=no
4171 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4175 echo "$as_me:4175: result: $gt_cv_int_divbyzero_sigfpe" >&5
4176 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
4177 case "$gt_cv_int_divbyzero_sigfpe" in
4182 cat >>confdefs.h <<EOF
4183 #define INTDIV0_RAISES_SIGFPE $value
4186 echo "$as_me:4186: checking for inttypes.h" >&5
4187 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4188 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 cat >conftest.$ac_ext <<_ACEOF
4192 #line 4192 "configure"
4193 #include "confdefs.h"
4194 #include <sys/types.h>
4195 #include <inttypes.h>
4199 uintmax_t i = (uintmax_t) -1;
4204 rm -f conftest.$ac_objext
4205 if { (eval echo "$as_me:4205: \"$ac_compile\"") >&5
4206 (eval $ac_compile) 2>&5
4208 echo "$as_me:4208: \$? = $ac_status" >&5
4209 (exit $ac_status); } &&
4210 { ac_try='test -s conftest.$ac_objext'
4211 { (eval echo "$as_me:4211: \"$ac_try\"") >&5
4214 echo "$as_me:4214: \$? = $ac_status" >&5
4215 (exit $ac_status); }; }; then
4216 jm_ac_cv_header_inttypes_h=yes
4218 echo "$as_me: failed program was:" >&5
4219 cat conftest.$ac_ext >&5
4220 jm_ac_cv_header_inttypes_h=no
4222 rm -f conftest.$ac_objext conftest.$ac_ext
4224 echo "$as_me:4224: result: $jm_ac_cv_header_inttypes_h" >&5
4225 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4226 if test $jm_ac_cv_header_inttypes_h = yes; then
4228 cat >>confdefs.h <<EOF
4229 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4234 echo "$as_me:4234: checking for stdint.h" >&5
4235 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4236 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4239 cat >conftest.$ac_ext <<_ACEOF
4240 #line 4240 "configure"
4241 #include "confdefs.h"
4242 #include <sys/types.h>
4247 uintmax_t i = (uintmax_t) -1;
4252 rm -f conftest.$ac_objext
4253 if { (eval echo "$as_me:4253: \"$ac_compile\"") >&5
4254 (eval $ac_compile) 2>&5
4256 echo "$as_me:4256: \$? = $ac_status" >&5
4257 (exit $ac_status); } &&
4258 { ac_try='test -s conftest.$ac_objext'
4259 { (eval echo "$as_me:4259: \"$ac_try\"") >&5
4262 echo "$as_me:4262: \$? = $ac_status" >&5
4263 (exit $ac_status); }; }; then
4264 jm_ac_cv_header_stdint_h=yes
4266 echo "$as_me: failed program was:" >&5
4267 cat conftest.$ac_ext >&5
4268 jm_ac_cv_header_stdint_h=no
4270 rm -f conftest.$ac_objext conftest.$ac_ext
4272 echo "$as_me:4272: result: $jm_ac_cv_header_stdint_h" >&5
4273 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
4274 if test $jm_ac_cv_header_stdint_h = yes; then
4276 cat >>confdefs.h <<EOF
4277 #define HAVE_STDINT_H_WITH_UINTMAX 1
4282 echo "$as_me:4282: checking for unsigned long long" >&5
4283 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
4284 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 cat >conftest.$ac_ext <<_ACEOF
4288 #line 4288 "configure"
4289 #include "confdefs.h"
4290 unsigned long long ull = 1; int i = 63;
4294 unsigned long long ullmax = (unsigned long long) -1;
4295 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4300 rm -f conftest.$ac_objext conftest$ac_exeext
4301 if { (eval echo "$as_me:4301: \"$ac_link\"") >&5
4302 (eval $ac_link) 2>&5
4304 echo "$as_me:4304: \$? = $ac_status" >&5
4305 (exit $ac_status); } &&
4306 { ac_try='test -s conftest$ac_exeext'
4307 { (eval echo "$as_me:4307: \"$ac_try\"") >&5
4310 echo "$as_me:4310: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4312 ac_cv_type_unsigned_long_long=yes
4314 echo "$as_me: failed program was:" >&5
4315 cat conftest.$ac_ext >&5
4316 ac_cv_type_unsigned_long_long=no
4318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4320 echo "$as_me:4320: result: $ac_cv_type_unsigned_long_long" >&5
4321 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
4322 if test $ac_cv_type_unsigned_long_long = yes; then
4324 cat >>confdefs.h <<\EOF
4325 #define HAVE_UNSIGNED_LONG_LONG 1
4330 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
4332 test $ac_cv_type_unsigned_long_long = yes \
4333 && ac_type='unsigned long long' \
4334 || ac_type='unsigned long'
4336 cat >>confdefs.h <<EOF
4337 #define uintmax_t $ac_type
4342 echo "$as_me:4342: checking for inttypes.h" >&5
4343 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4344 if test "${gt_cv_header_inttypes_h+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4348 cat >conftest.$ac_ext <<_ACEOF
4349 #line 4349 "configure"
4350 #include "confdefs.h"
4351 #include <sys/types.h>
4352 #include <inttypes.h>
4361 rm -f conftest.$ac_objext
4362 if { (eval echo "$as_me:4362: \"$ac_compile\"") >&5
4363 (eval $ac_compile) 2>&5
4365 echo "$as_me:4365: \$? = $ac_status" >&5
4366 (exit $ac_status); } &&
4367 { ac_try='test -s conftest.$ac_objext'
4368 { (eval echo "$as_me:4368: \"$ac_try\"") >&5
4371 echo "$as_me:4371: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then
4373 gt_cv_header_inttypes_h=yes
4375 echo "$as_me: failed program was:" >&5
4376 cat conftest.$ac_ext >&5
4377 gt_cv_header_inttypes_h=no
4379 rm -f conftest.$ac_objext conftest.$ac_ext
4382 echo "$as_me:4382: result: $gt_cv_header_inttypes_h" >&5
4383 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
4384 if test $gt_cv_header_inttypes_h = yes; then
4386 cat >>confdefs.h <<EOF
4387 #define HAVE_INTTYPES_H 1
4392 if test $gt_cv_header_inttypes_h = yes; then
4393 echo "$as_me:4393: checking whether the inttypes.h PRIxNN macros are broken" >&5
4394 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
4395 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 cat >conftest.$ac_ext <<_ACEOF
4400 #line 4400 "configure"
4401 #include "confdefs.h"
4402 #include <inttypes.h>
4415 rm -f conftest.$ac_objext
4416 if { (eval echo "$as_me:4416: \"$ac_compile\"") >&5
4417 (eval $ac_compile) 2>&5
4419 echo "$as_me:4419: \$? = $ac_status" >&5
4420 (exit $ac_status); } &&
4421 { ac_try='test -s conftest.$ac_objext'
4422 { (eval echo "$as_me:4422: \"$ac_try\"") >&5
4425 echo "$as_me:4425: \$? = $ac_status" >&5
4426 (exit $ac_status); }; }; then
4427 gt_cv_inttypes_pri_broken=no
4429 echo "$as_me: failed program was:" >&5
4430 cat conftest.$ac_ext >&5
4431 gt_cv_inttypes_pri_broken=yes
4433 rm -f conftest.$ac_objext conftest.$ac_ext
4436 echo "$as_me:4436: result: $gt_cv_inttypes_pri_broken" >&5
4437 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
4439 if test "$gt_cv_inttypes_pri_broken" = yes; then
4441 cat >>confdefs.h <<EOF
4442 #define PRI_MACROS_BROKEN 1
4447 if test "X$prefix" = "XNONE"; then
4448 acl_final_prefix="$ac_default_prefix"
4450 acl_final_prefix="$prefix"
4452 if test "X$exec_prefix" = "XNONE"; then
4453 acl_final_exec_prefix='${prefix}'
4455 acl_final_exec_prefix="$exec_prefix"
4457 acl_save_prefix="$prefix"
4458 prefix="$acl_final_prefix"
4459 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4460 prefix="$acl_save_prefix"
4462 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4463 if test "${with_gnu_ld+set}" = set; then
4464 withval="$with_gnu_ld"
4465 test "$withval" = no || with_gnu_ld=yes
4470 if test "$GCC" = yes; then
4471 # Check if gcc -print-prog-name=ld gives a path.
4472 echo "$as_me:4472: checking for ld used by GCC" >&5
4473 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4476 # gcc leaves a trailing carriage return which upsets mingw
4477 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4479 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4482 # Accept absolute paths.
4483 [\\/]* | [A-Za-z]:[\\/]*)
4484 re_direlt='/[^/][^/]*/\.\./'
4485 # Canonicalize the path of ld
4486 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4487 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4488 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4490 test -z "$LD" && LD="$ac_prog"
4493 # If it fails, then pretend we aren't using GCC.
4497 # If it is relative, then search for the first ld in PATH.
4501 elif test "$with_gnu_ld" = yes; then
4502 echo "$as_me:4502: checking for GNU ld" >&5
4503 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4505 echo "$as_me:4505: checking for non-GNU ld" >&5
4506 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4508 if test "${acl_cv_path_LD+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 if test -z "$LD"; then
4512 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4513 for ac_dir in $PATH; do
4514 test -z "$ac_dir" && ac_dir=.
4515 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4516 acl_cv_path_LD="$ac_dir/$ac_prog"
4517 # Check to see if the program is GNU ld. I'd rather use --version,
4518 # but apparently some GNU ld's only accept -v.
4519 # Break only if it was the GNU/non-GNU ld that we prefer.
4520 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4521 test "$with_gnu_ld" != no && break
4523 test "$with_gnu_ld" != yes && break
4529 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4533 LD="$acl_cv_path_LD"
4534 if test -n "$LD"; then
4535 echo "$as_me:4535: result: $LD" >&5
4536 echo "${ECHO_T}$LD" >&6
4538 echo "$as_me:4538: result: no" >&5
4539 echo "${ECHO_T}no" >&6
4541 test -z "$LD" && { { echo "$as_me:4541: error: no acceptable ld found in \$PATH" >&5
4542 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4543 { (exit 1); exit 1; }; }
4544 echo "$as_me:4544: checking if the linker ($LD) is GNU ld" >&5
4545 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4546 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4550 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4551 acl_cv_prog_gnu_ld=yes
4553 acl_cv_prog_gnu_ld=no
4556 echo "$as_me:4556: result: $acl_cv_prog_gnu_ld" >&5
4557 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4558 with_gnu_ld=$acl_cv_prog_gnu_ld
4560 echo "$as_me:4560: checking for shared library run path origin" >&5
4561 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
4562 if test "${acl_cv_rpath+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4567 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4573 echo "$as_me:4573: result: $acl_cv_rpath" >&5
4574 echo "${ECHO_T}$acl_cv_rpath" >&6
4576 libext="$acl_cv_libext"
4577 shlibext="$acl_cv_shlibext"
4578 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4579 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4580 hardcode_direct="$acl_cv_hardcode_direct"
4581 hardcode_minus_L="$acl_cv_hardcode_minus_L"
4582 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
4583 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
4584 # Check whether --enable-rpath or --disable-rpath was given.
4585 if test "${enable_rpath+set}" = set; then
4586 enableval="$enable_rpath"
4594 acl_save_prefix="$prefix"
4595 prefix="$acl_final_prefix"
4596 acl_save_exec_prefix="$exec_prefix"
4597 exec_prefix="$acl_final_exec_prefix"
4599 eval additional_includedir=\"$includedir\"
4600 eval additional_libdir=\"$libdir\"
4602 exec_prefix="$acl_save_exec_prefix"
4603 prefix="$acl_save_prefix"
4605 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
4606 if test "${with_libiconv_prefix+set}" = set; then
4607 withval="$with_libiconv_prefix"
4609 if test "X$withval" = "Xno"; then
4612 if test "X$withval" = "X"; then
4614 acl_save_prefix="$prefix"
4615 prefix="$acl_final_prefix"
4616 acl_save_exec_prefix="$exec_prefix"
4617 exec_prefix="$acl_final_exec_prefix"
4619 eval additional_includedir=\"$includedir\"
4620 eval additional_libdir=\"$libdir\"
4622 exec_prefix="$acl_save_exec_prefix"
4623 prefix="$acl_save_prefix"
4626 additional_includedir="$withval/include"
4627 additional_libdir="$withval/lib"
4637 names_already_handled=
4638 names_next_round='iconv '
4639 while test -n "$names_next_round"; do
4640 names_this_round="$names_next_round"
4642 for name in $names_this_round; do
4644 for n in $names_already_handled; do
4645 if test "$n" = "$name"; then
4650 if test -z "$already_handled"; then
4651 names_already_handled="$names_already_handled $name"
4652 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4653 eval value=\"\$HAVE_LIB$uppername\"
4654 if test -n "$value"; then
4655 if test "$value" = yes; then
4656 eval value=\"\$LIB$uppername\"
4657 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4658 eval value=\"\$LTLIB$uppername\"
4659 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4668 if test $use_additional = yes; then
4669 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4670 found_dir="$additional_libdir"
4671 found_so="$additional_libdir/lib$name.$shlibext"
4672 if test -f "$additional_libdir/lib$name.la"; then
4673 found_la="$additional_libdir/lib$name.la"
4676 if test -f "$additional_libdir/lib$name.$libext"; then
4677 found_dir="$additional_libdir"
4678 found_a="$additional_libdir/lib$name.$libext"
4679 if test -f "$additional_libdir/lib$name.la"; then
4680 found_la="$additional_libdir/lib$name.la"
4685 if test "X$found_dir" = "X"; then
4686 for x in $LDFLAGS $LTLIBICONV; do
4688 acl_save_prefix="$prefix"
4689 prefix="$acl_final_prefix"
4690 acl_save_exec_prefix="$exec_prefix"
4691 exec_prefix="$acl_final_exec_prefix"
4693 exec_prefix="$acl_save_exec_prefix"
4694 prefix="$acl_save_prefix"
4698 dir=`echo "X$x" | sed -e 's/^X-L//'`
4699 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4701 found_so="$dir/lib$name.$shlibext"
4702 if test -f "$dir/lib$name.la"; then
4703 found_la="$dir/lib$name.la"
4706 if test -f "$dir/lib$name.$libext"; then
4708 found_a="$dir/lib$name.$libext"
4709 if test -f "$dir/lib$name.la"; then
4710 found_la="$dir/lib$name.la"
4716 if test "X$found_dir" != "X"; then
4721 if test "X$found_dir" != "X"; then
4722 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4723 if test "X$found_so" != "X"; then
4724 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4725 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4728 for x in $ltrpathdirs; do
4729 if test "X$x" = "X$found_dir"; then
4734 if test -z "$haveit"; then
4735 ltrpathdirs="$ltrpathdirs $found_dir"
4737 if test "$hardcode_direct" = yes; then
4738 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4740 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4741 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4743 for x in $rpathdirs; do
4744 if test "X$x" = "X$found_dir"; then
4749 if test -z "$haveit"; then
4750 rpathdirs="$rpathdirs $found_dir"
4754 for x in $LDFLAGS $LIBICONV; do
4756 acl_save_prefix="$prefix"
4757 prefix="$acl_final_prefix"
4758 acl_save_exec_prefix="$exec_prefix"
4759 exec_prefix="$acl_final_exec_prefix"
4761 exec_prefix="$acl_save_exec_prefix"
4762 prefix="$acl_save_prefix"
4764 if test "X$x" = "X-L$found_dir"; then
4769 if test -z "$haveit"; then
4770 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4772 if test "$hardcode_minus_L" != no; then
4773 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4775 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4781 if test "X$found_a" != "X"; then
4782 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4784 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4787 additional_includedir=
4788 case "$found_dir" in
4790 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4791 additional_includedir="$basedir/include"
4794 if test "X$additional_includedir" != "X"; then
4795 if test "X$additional_includedir" != "X/usr/include"; then
4797 if test "X$additional_includedir" = "X/usr/local/include"; then
4798 if test -n "$GCC"; then
4800 linux*) haveit=yes;;
4804 if test -z "$haveit"; then
4805 for x in $CPPFLAGS $INCICONV; do
4807 acl_save_prefix="$prefix"
4808 prefix="$acl_final_prefix"
4809 acl_save_exec_prefix="$exec_prefix"
4810 exec_prefix="$acl_final_exec_prefix"
4812 exec_prefix="$acl_save_exec_prefix"
4813 prefix="$acl_save_prefix"
4815 if test "X$x" = "X-I$additional_includedir"; then
4820 if test -z "$haveit"; then
4821 if test -d "$additional_includedir"; then
4822 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4828 if test -n "$found_la"; then
4829 save_libdir="$libdir"
4831 */* | *\\*) . "$found_la" ;;
4832 *) . "./$found_la" ;;
4834 libdir="$save_libdir"
4835 for dep in $dependency_libs; do
4838 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4839 if test "X$additional_libdir" != "X/usr/lib"; then
4841 if test "X$additional_libdir" = "X/usr/local/lib"; then
4842 if test -n "$GCC"; then
4844 linux*) haveit=yes;;
4848 if test -z "$haveit"; then
4850 for x in $LDFLAGS $LIBICONV; do
4852 acl_save_prefix="$prefix"
4853 prefix="$acl_final_prefix"
4854 acl_save_exec_prefix="$exec_prefix"
4855 exec_prefix="$acl_final_exec_prefix"
4857 exec_prefix="$acl_save_exec_prefix"
4858 prefix="$acl_save_prefix"
4860 if test "X$x" = "X-L$additional_libdir"; then
4865 if test -z "$haveit"; then
4866 if test -d "$additional_libdir"; then
4867 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4871 for x in $LDFLAGS $LTLIBICONV; do
4873 acl_save_prefix="$prefix"
4874 prefix="$acl_final_prefix"
4875 acl_save_exec_prefix="$exec_prefix"
4876 exec_prefix="$acl_final_exec_prefix"
4878 exec_prefix="$acl_save_exec_prefix"
4879 prefix="$acl_save_prefix"
4881 if test "X$x" = "X-L$additional_libdir"; then
4886 if test -z "$haveit"; then
4887 if test -d "$additional_libdir"; then
4888 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4895 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4896 if test "$enable_rpath" != no; then
4898 for x in $rpathdirs; do
4899 if test "X$x" = "X$dir"; then
4904 if test -z "$haveit"; then
4905 rpathdirs="$rpathdirs $dir"
4908 for x in $ltrpathdirs; do
4909 if test "X$x" = "X$dir"; then
4914 if test -z "$haveit"; then
4915 ltrpathdirs="$ltrpathdirs $dir"
4920 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4923 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4926 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4927 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4933 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4934 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4940 if test "X$rpathdirs" != "X"; then
4941 if test -n "$hardcode_libdir_separator"; then
4943 for found_dir in $rpathdirs; do
4944 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4946 acl_save_libdir="$libdir"
4948 eval flag=\"$hardcode_libdir_flag_spec\"
4949 libdir="$acl_save_libdir"
4950 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4952 for found_dir in $rpathdirs; do
4953 acl_save_libdir="$libdir"
4955 eval flag=\"$hardcode_libdir_flag_spec\"
4956 libdir="$acl_save_libdir"
4957 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4961 if test "X$ltrpathdirs" != "X"; then
4962 for found_dir in $ltrpathdirs; do
4963 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4967 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
4968 stdlib.h string.h unistd.h sys/param.h
4970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4971 echo "$as_me:4971: checking for $ac_header" >&5
4972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4976 cat >conftest.$ac_ext <<_ACEOF
4977 #line 4977 "configure"
4978 #include "confdefs.h"
4979 #include <$ac_header>
4981 if { (eval echo "$as_me:4981: \"$ac_cpp conftest.$ac_ext\"") >&5
4982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4984 egrep -v '^ *\+' conftest.er1 >conftest.err
4986 cat conftest.err >&5
4987 echo "$as_me:4987: \$? = $ac_status" >&5
4988 (exit $ac_status); } >/dev/null; then
4989 if test -s conftest.err; then
4990 ac_cpp_err=$ac_c_preproc_warn_flag
4997 if test -z "$ac_cpp_err"; then
4998 eval "$as_ac_Header=yes"
5000 echo "$as_me: failed program was:" >&5
5001 cat conftest.$ac_ext >&5
5002 eval "$as_ac_Header=no"
5004 rm -f conftest.err conftest.$ac_ext
5006 echo "$as_me:5006: result: `eval echo '${'$as_ac_Header'}'`" >&5
5007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5009 cat >>confdefs.h <<EOF
5010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5016 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
5017 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
5018 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
5020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5021 echo "$as_me:5021: checking for $ac_func" >&5
5022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5023 if eval "test \"\${$as_ac_var+set}\" = set"; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 cat >conftest.$ac_ext <<_ACEOF
5027 #line 5027 "configure"
5028 #include "confdefs.h"
5029 /* System header to define __stub macros and hopefully few prototypes,
5030 which can conflict with char $ac_func (); below. */
5032 /* Override any gcc2 internal prototype to avoid an error. */
5036 /* We use char because int might match the return type of a gcc2
5037 builtin and then its argument prototype would still apply. */
5044 /* The GNU C library defines this for functions which it implements
5045 to always fail with ENOSYS. Some functions are actually named
5046 something starting with __ and the normal name is an alias. */
5047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5057 rm -f conftest.$ac_objext conftest$ac_exeext
5058 if { (eval echo "$as_me:5058: \"$ac_link\"") >&5
5059 (eval $ac_link) 2>&5
5061 echo "$as_me:5061: \$? = $ac_status" >&5
5062 (exit $ac_status); } &&
5063 { ac_try='test -s conftest$ac_exeext'
5064 { (eval echo "$as_me:5064: \"$ac_try\"") >&5
5067 echo "$as_me:5067: \$? = $ac_status" >&5
5068 (exit $ac_status); }; }; then
5069 eval "$as_ac_var=yes"
5071 echo "$as_me: failed program was:" >&5
5072 cat conftest.$ac_ext >&5
5073 eval "$as_ac_var=no"
5075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5077 echo "$as_me:5077: result: `eval echo '${'$as_ac_var'}'`" >&5
5078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5079 if test `eval echo '${'$as_ac_var'}'` = yes; then
5080 cat >>confdefs.h <<EOF
5081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5087 am_save_CPPFLAGS="$CPPFLAGS"
5089 for element in $INCICONV; do
5091 for x in $CPPFLAGS; do
5093 acl_save_prefix="$prefix"
5094 prefix="$acl_final_prefix"
5095 acl_save_exec_prefix="$exec_prefix"
5096 exec_prefix="$acl_final_exec_prefix"
5098 exec_prefix="$acl_save_exec_prefix"
5099 prefix="$acl_save_prefix"
5101 if test "X$x" = "X$element"; then
5106 if test -z "$haveit"; then
5107 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5111 echo "$as_me:5111: checking for iconv" >&5
5112 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5113 if test "${am_cv_func_iconv+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 am_cv_func_iconv="no, consider installing GNU libiconv"
5119 cat >conftest.$ac_ext <<_ACEOF
5120 #line 5120 "configure"
5121 #include "confdefs.h"
5127 iconv_t cd = iconv_open("","");
5128 iconv(cd,NULL,NULL,NULL,NULL);
5134 rm -f conftest.$ac_objext conftest$ac_exeext
5135 if { (eval echo "$as_me:5135: \"$ac_link\"") >&5
5136 (eval $ac_link) 2>&5
5138 echo "$as_me:5138: \$? = $ac_status" >&5
5139 (exit $ac_status); } &&
5140 { ac_try='test -s conftest$ac_exeext'
5141 { (eval echo "$as_me:5141: \"$ac_try\"") >&5
5144 echo "$as_me:5144: \$? = $ac_status" >&5
5145 (exit $ac_status); }; }; then
5146 am_cv_func_iconv=yes
5148 echo "$as_me: failed program was:" >&5
5149 cat conftest.$ac_ext >&5
5151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5152 if test "$am_cv_func_iconv" != yes; then
5153 am_save_LIBS="$LIBS"
5154 LIBS="$LIBS $LIBICONV"
5155 cat >conftest.$ac_ext <<_ACEOF
5156 #line 5156 "configure"
5157 #include "confdefs.h"
5163 iconv_t cd = iconv_open("","");
5164 iconv(cd,NULL,NULL,NULL,NULL);
5170 rm -f conftest.$ac_objext conftest$ac_exeext
5171 if { (eval echo "$as_me:5171: \"$ac_link\"") >&5
5172 (eval $ac_link) 2>&5
5174 echo "$as_me:5174: \$? = $ac_status" >&5
5175 (exit $ac_status); } &&
5176 { ac_try='test -s conftest$ac_exeext'
5177 { (eval echo "$as_me:5177: \"$ac_try\"") >&5
5180 echo "$as_me:5180: \$? = $ac_status" >&5
5181 (exit $ac_status); }; }; then
5183 am_cv_func_iconv=yes
5185 echo "$as_me: failed program was:" >&5
5186 cat conftest.$ac_ext >&5
5188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5189 LIBS="$am_save_LIBS"
5193 echo "$as_me:5193: result: $am_cv_func_iconv" >&5
5194 echo "${ECHO_T}$am_cv_func_iconv" >&6
5195 if test "$am_cv_func_iconv" = yes; then
5197 cat >>confdefs.h <<\EOF
5198 #define HAVE_ICONV 1
5202 if test "$am_cv_lib_iconv" = yes; then
5203 echo "$as_me:5203: checking how to link with libiconv" >&5
5204 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
5205 echo "$as_me:5205: result: $LIBICONV" >&5
5206 echo "${ECHO_T}$LIBICONV" >&6
5208 CPPFLAGS="$am_save_CPPFLAGS"
5213 if test "$am_cv_func_iconv" = yes; then
5214 echo "$as_me:5214: checking for iconv declaration" >&5
5215 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
5216 if test "${am_cv_proto_iconv+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 cat >conftest.$ac_ext <<_ACEOF
5221 #line 5221 "configure"
5222 #include "confdefs.h"
5230 #if defined(__STDC__) || defined(__cplusplus)
5231 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5244 rm -f conftest.$ac_objext
5245 if { (eval echo "$as_me:5245: \"$ac_compile\"") >&5
5246 (eval $ac_compile) 2>&5
5248 echo "$as_me:5248: \$? = $ac_status" >&5
5249 (exit $ac_status); } &&
5250 { ac_try='test -s conftest.$ac_objext'
5251 { (eval echo "$as_me:5251: \"$ac_try\"") >&5
5254 echo "$as_me:5254: \$? = $ac_status" >&5
5255 (exit $ac_status); }; }; then
5256 am_cv_proto_iconv_arg1=""
5258 echo "$as_me: failed program was:" >&5
5259 cat conftest.$ac_ext >&5
5260 am_cv_proto_iconv_arg1="const"
5262 rm -f conftest.$ac_objext conftest.$ac_ext
5263 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
5266 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5267 echo "$as_me:5267: result: ${ac_t:-
5268 }$am_cv_proto_iconv" >&5
5269 echo "${ECHO_T}${ac_t:-
5270 }$am_cv_proto_iconv" >&6
5272 cat >>confdefs.h <<EOF
5273 #define ICONV_CONST $am_cv_proto_iconv_arg1
5278 echo "$as_me:5278: checking for nl_langinfo and CODESET" >&5
5279 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
5280 if test "${am_cv_langinfo_codeset+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 cat >conftest.$ac_ext <<_ACEOF
5284 #line 5284 "configure"
5285 #include "confdefs.h"
5286 #include <langinfo.h>
5290 char* cs = nl_langinfo(CODESET);
5295 rm -f conftest.$ac_objext conftest$ac_exeext
5296 if { (eval echo "$as_me:5296: \"$ac_link\"") >&5
5297 (eval $ac_link) 2>&5
5299 echo "$as_me:5299: \$? = $ac_status" >&5
5300 (exit $ac_status); } &&
5301 { ac_try='test -s conftest$ac_exeext'
5302 { (eval echo "$as_me:5302: \"$ac_try\"") >&5
5305 echo "$as_me:5305: \$? = $ac_status" >&5
5306 (exit $ac_status); }; }; then
5307 am_cv_langinfo_codeset=yes
5309 echo "$as_me: failed program was:" >&5
5310 cat conftest.$ac_ext >&5
5311 am_cv_langinfo_codeset=no
5313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5316 echo "$as_me:5316: result: $am_cv_langinfo_codeset" >&5
5317 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
5318 if test $am_cv_langinfo_codeset = yes; then
5320 cat >>confdefs.h <<\EOF
5321 #define HAVE_LANGINFO_CODESET 1
5326 if test $ac_cv_header_locale_h = yes; then
5328 echo "$as_me:5328: checking for LC_MESSAGES" >&5
5329 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
5330 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5333 cat >conftest.$ac_ext <<_ACEOF
5334 #line 5334 "configure"
5335 #include "confdefs.h"
5345 rm -f conftest.$ac_objext conftest$ac_exeext
5346 if { (eval echo "$as_me:5346: \"$ac_link\"") >&5
5347 (eval $ac_link) 2>&5
5349 echo "$as_me:5349: \$? = $ac_status" >&5
5350 (exit $ac_status); } &&
5351 { ac_try='test -s conftest$ac_exeext'
5352 { (eval echo "$as_me:5352: \"$ac_try\"") >&5
5355 echo "$as_me:5355: \$? = $ac_status" >&5
5356 (exit $ac_status); }; }; then
5357 am_cv_val_LC_MESSAGES=yes
5359 echo "$as_me: failed program was:" >&5
5360 cat conftest.$ac_ext >&5
5361 am_cv_val_LC_MESSAGES=no
5363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5365 echo "$as_me:5365: result: $am_cv_val_LC_MESSAGES" >&5
5366 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
5367 if test $am_cv_val_LC_MESSAGES = yes; then
5369 cat >>confdefs.h <<\EOF
5370 #define HAVE_LC_MESSAGES 1
5377 for ac_prog in bison
5379 # Extract the first word of "$ac_prog", so it can be a program name with args.
5380 set dummy $ac_prog; ac_word=$2
5381 echo "$as_me:5381: checking for $ac_word" >&5
5382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5383 if test "${ac_cv_prog_INTLBISON+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 if test -n "$INTLBISON"; then
5387 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
5389 ac_save_IFS=$IFS; IFS=$ac_path_separator
5391 for ac_dir in $ac_dummy; do
5393 test -z "$ac_dir" && ac_dir=.
5394 $as_executable_p "$ac_dir/$ac_word" || continue
5395 ac_cv_prog_INTLBISON="$ac_prog"
5396 echo "$as_me:5396: found $ac_dir/$ac_word" >&5
5402 INTLBISON=$ac_cv_prog_INTLBISON
5403 if test -n "$INTLBISON"; then
5404 echo "$as_me:5404: result: $INTLBISON" >&5
5405 echo "${ECHO_T}$INTLBISON" >&6
5407 echo "$as_me:5407: result: no" >&5
5408 echo "${ECHO_T}no" >&6
5411 test -n "$INTLBISON" && break
5414 if test -z "$INTLBISON"; then
5417 echo "$as_me:5417: checking version of bison" >&5
5418 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
5419 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5420 case $ac_prog_version in
5421 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5422 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
5423 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5424 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5426 echo "$as_me:5426: result: $ac_prog_version" >&5
5427 echo "${ECHO_T}$ac_prog_version" >&6
5429 if test $ac_verc_fail = yes; then
5433 echo "$as_me:5433: checking whether NLS is requested" >&5
5434 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5435 # Check whether --enable-nls or --disable-nls was given.
5436 if test "${enable_nls+set}" = set; then
5437 enableval="$enable_nls"
5442 echo "$as_me:5442: result: $USE_NLS" >&5
5443 echo "${ECHO_T}$USE_NLS" >&6
5445 BUILD_INCLUDED_LIBINTL=no
5446 USE_INCLUDED_LIBINTL=no
5452 if test "$USE_NLS" = "yes"; then
5453 gt_use_preinstalled_gnugettext=no
5455 echo "$as_me:5455: checking whether included gettext is requested" >&5
5456 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
5458 # Check whether --with-included-gettext or --without-included-gettext was given.
5459 if test "${with_included_gettext+set}" = set; then
5460 withval="$with_included_gettext"
5461 nls_cv_force_use_gnu_gettext=$withval
5463 nls_cv_force_use_gnu_gettext=no
5465 echo "$as_me:5465: result: $nls_cv_force_use_gnu_gettext" >&5
5466 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
5468 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
5469 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5471 echo "$as_me:5471: checking for GNU gettext in libc" >&5
5472 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5473 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 cat >conftest.$ac_ext <<_ACEOF
5477 #line 5477 "configure"
5478 #include "confdefs.h"
5479 #include <libintl.h>
5480 extern int _nl_msg_cat_cntr;
5481 extern int *_nl_domain_bindings;
5485 bindtextdomain ("", "");
5486 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5491 rm -f conftest.$ac_objext conftest$ac_exeext
5492 if { (eval echo "$as_me:5492: \"$ac_link\"") >&5
5493 (eval $ac_link) 2>&5
5495 echo "$as_me:5495: \$? = $ac_status" >&5
5496 (exit $ac_status); } &&
5497 { ac_try='test -s conftest$ac_exeext'
5498 { (eval echo "$as_me:5498: \"$ac_try\"") >&5
5501 echo "$as_me:5501: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
5503 gt_cv_func_gnugettext1_libc=yes
5505 echo "$as_me: failed program was:" >&5
5506 cat conftest.$ac_ext >&5
5507 gt_cv_func_gnugettext1_libc=no
5509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5511 echo "$as_me:5511: result: $gt_cv_func_gnugettext1_libc" >&5
5512 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5514 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5518 acl_save_prefix="$prefix"
5519 prefix="$acl_final_prefix"
5520 acl_save_exec_prefix="$exec_prefix"
5521 exec_prefix="$acl_final_exec_prefix"
5523 eval additional_includedir=\"$includedir\"
5524 eval additional_libdir=\"$libdir\"
5526 exec_prefix="$acl_save_exec_prefix"
5527 prefix="$acl_save_prefix"
5529 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
5530 if test "${with_libintl_prefix+set}" = set; then
5531 withval="$with_libintl_prefix"
5533 if test "X$withval" = "Xno"; then
5536 if test "X$withval" = "X"; then
5538 acl_save_prefix="$prefix"
5539 prefix="$acl_final_prefix"
5540 acl_save_exec_prefix="$exec_prefix"
5541 exec_prefix="$acl_final_exec_prefix"
5543 eval additional_includedir=\"$includedir\"
5544 eval additional_libdir=\"$libdir\"
5546 exec_prefix="$acl_save_exec_prefix"
5547 prefix="$acl_save_prefix"
5550 additional_includedir="$withval/include"
5551 additional_libdir="$withval/lib"
5561 names_already_handled=
5562 names_next_round='intl '
5563 while test -n "$names_next_round"; do
5564 names_this_round="$names_next_round"
5566 for name in $names_this_round; do
5568 for n in $names_already_handled; do
5569 if test "$n" = "$name"; then
5574 if test -z "$already_handled"; then
5575 names_already_handled="$names_already_handled $name"
5576 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5577 eval value=\"\$HAVE_LIB$uppername\"
5578 if test -n "$value"; then
5579 if test "$value" = yes; then
5580 eval value=\"\$LIB$uppername\"
5581 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5582 eval value=\"\$LTLIB$uppername\"
5583 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5592 if test $use_additional = yes; then
5593 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5594 found_dir="$additional_libdir"
5595 found_so="$additional_libdir/lib$name.$shlibext"
5596 if test -f "$additional_libdir/lib$name.la"; then
5597 found_la="$additional_libdir/lib$name.la"
5600 if test -f "$additional_libdir/lib$name.$libext"; then
5601 found_dir="$additional_libdir"
5602 found_a="$additional_libdir/lib$name.$libext"
5603 if test -f "$additional_libdir/lib$name.la"; then
5604 found_la="$additional_libdir/lib$name.la"
5609 if test "X$found_dir" = "X"; then
5610 for x in $LDFLAGS $LTLIBINTL; do
5612 acl_save_prefix="$prefix"
5613 prefix="$acl_final_prefix"
5614 acl_save_exec_prefix="$exec_prefix"
5615 exec_prefix="$acl_final_exec_prefix"
5617 exec_prefix="$acl_save_exec_prefix"
5618 prefix="$acl_save_prefix"
5622 dir=`echo "X$x" | sed -e 's/^X-L//'`
5623 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5625 found_so="$dir/lib$name.$shlibext"
5626 if test -f "$dir/lib$name.la"; then
5627 found_la="$dir/lib$name.la"
5630 if test -f "$dir/lib$name.$libext"; then
5632 found_a="$dir/lib$name.$libext"
5633 if test -f "$dir/lib$name.la"; then
5634 found_la="$dir/lib$name.la"
5640 if test "X$found_dir" != "X"; then
5645 if test "X$found_dir" != "X"; then
5646 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5647 if test "X$found_so" != "X"; then
5648 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5649 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5652 for x in $ltrpathdirs; do
5653 if test "X$x" = "X$found_dir"; then
5658 if test -z "$haveit"; then
5659 ltrpathdirs="$ltrpathdirs $found_dir"
5661 if test "$hardcode_direct" = yes; then
5662 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5664 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5665 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5667 for x in $rpathdirs; do
5668 if test "X$x" = "X$found_dir"; then
5673 if test -z "$haveit"; then
5674 rpathdirs="$rpathdirs $found_dir"
5678 for x in $LDFLAGS $LIBINTL; do
5680 acl_save_prefix="$prefix"
5681 prefix="$acl_final_prefix"
5682 acl_save_exec_prefix="$exec_prefix"
5683 exec_prefix="$acl_final_exec_prefix"
5685 exec_prefix="$acl_save_exec_prefix"
5686 prefix="$acl_save_prefix"
5688 if test "X$x" = "X-L$found_dir"; then
5693 if test -z "$haveit"; then
5694 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5696 if test "$hardcode_minus_L" != no; then
5697 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5699 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5705 if test "X$found_a" != "X"; then
5706 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5708 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5711 additional_includedir=
5712 case "$found_dir" in
5714 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5715 additional_includedir="$basedir/include"
5718 if test "X$additional_includedir" != "X"; then
5719 if test "X$additional_includedir" != "X/usr/include"; then
5721 if test "X$additional_includedir" = "X/usr/local/include"; then
5722 if test -n "$GCC"; then
5724 linux*) haveit=yes;;
5728 if test -z "$haveit"; then
5729 for x in $CPPFLAGS $INCINTL; do
5731 acl_save_prefix="$prefix"
5732 prefix="$acl_final_prefix"
5733 acl_save_exec_prefix="$exec_prefix"
5734 exec_prefix="$acl_final_exec_prefix"
5736 exec_prefix="$acl_save_exec_prefix"
5737 prefix="$acl_save_prefix"
5739 if test "X$x" = "X-I$additional_includedir"; then
5744 if test -z "$haveit"; then
5745 if test -d "$additional_includedir"; then
5746 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5752 if test -n "$found_la"; then
5753 save_libdir="$libdir"
5755 */* | *\\*) . "$found_la" ;;
5756 *) . "./$found_la" ;;
5758 libdir="$save_libdir"
5759 for dep in $dependency_libs; do
5762 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5763 if test "X$additional_libdir" != "X/usr/lib"; then
5765 if test "X$additional_libdir" = "X/usr/local/lib"; then
5766 if test -n "$GCC"; then
5768 linux*) haveit=yes;;
5772 if test -z "$haveit"; then
5774 for x in $LDFLAGS $LIBINTL; do
5776 acl_save_prefix="$prefix"
5777 prefix="$acl_final_prefix"
5778 acl_save_exec_prefix="$exec_prefix"
5779 exec_prefix="$acl_final_exec_prefix"
5781 exec_prefix="$acl_save_exec_prefix"
5782 prefix="$acl_save_prefix"
5784 if test "X$x" = "X-L$additional_libdir"; then
5789 if test -z "$haveit"; then
5790 if test -d "$additional_libdir"; then
5791 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5795 for x in $LDFLAGS $LTLIBINTL; do
5797 acl_save_prefix="$prefix"
5798 prefix="$acl_final_prefix"
5799 acl_save_exec_prefix="$exec_prefix"
5800 exec_prefix="$acl_final_exec_prefix"
5802 exec_prefix="$acl_save_exec_prefix"
5803 prefix="$acl_save_prefix"
5805 if test "X$x" = "X-L$additional_libdir"; then
5810 if test -z "$haveit"; then
5811 if test -d "$additional_libdir"; then
5812 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5819 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5820 if test "$enable_rpath" != no; then
5822 for x in $rpathdirs; do
5823 if test "X$x" = "X$dir"; then
5828 if test -z "$haveit"; then
5829 rpathdirs="$rpathdirs $dir"
5832 for x in $ltrpathdirs; do
5833 if test "X$x" = "X$dir"; then
5838 if test -z "$haveit"; then
5839 ltrpathdirs="$ltrpathdirs $dir"
5844 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5847 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5850 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5851 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5857 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5858 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5864 if test "X$rpathdirs" != "X"; then
5865 if test -n "$hardcode_libdir_separator"; then
5867 for found_dir in $rpathdirs; do
5868 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5870 acl_save_libdir="$libdir"
5872 eval flag=\"$hardcode_libdir_flag_spec\"
5873 libdir="$acl_save_libdir"
5874 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5876 for found_dir in $rpathdirs; do
5877 acl_save_libdir="$libdir"
5879 eval flag=\"$hardcode_libdir_flag_spec\"
5880 libdir="$acl_save_libdir"
5881 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5885 if test "X$ltrpathdirs" != "X"; then
5886 for found_dir in $ltrpathdirs; do
5887 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5891 echo "$as_me:5891: checking for GNU gettext in libintl" >&5
5892 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
5893 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 gt_save_CPPFLAGS="$CPPFLAGS"
5897 CPPFLAGS="$CPPFLAGS $INCINTL"
5898 gt_save_LIBS="$LIBS"
5899 LIBS="$LIBS $LIBINTL"
5900 cat >conftest.$ac_ext <<_ACEOF
5901 #line 5901 "configure"
5902 #include "confdefs.h"
5903 #include <libintl.h>
5904 extern int _nl_msg_cat_cntr;
5909 const char *_nl_expand_alias ();
5913 bindtextdomain ("", "");
5914 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5919 rm -f conftest.$ac_objext conftest$ac_exeext
5920 if { (eval echo "$as_me:5920: \"$ac_link\"") >&5
5921 (eval $ac_link) 2>&5
5923 echo "$as_me:5923: \$? = $ac_status" >&5
5924 (exit $ac_status); } &&
5925 { ac_try='test -s conftest$ac_exeext'
5926 { (eval echo "$as_me:5926: \"$ac_try\"") >&5
5929 echo "$as_me:5929: \$? = $ac_status" >&5
5930 (exit $ac_status); }; }; then
5931 gt_cv_func_gnugettext1_libintl=yes
5933 echo "$as_me: failed program was:" >&5
5934 cat conftest.$ac_ext >&5
5935 gt_cv_func_gnugettext1_libintl=no
5937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5938 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5939 LIBS="$LIBS $LIBICONV"
5940 cat >conftest.$ac_ext <<_ACEOF
5941 #line 5941 "configure"
5942 #include "confdefs.h"
5943 #include <libintl.h>
5944 extern int _nl_msg_cat_cntr;
5949 const char *_nl_expand_alias ();
5953 bindtextdomain ("", "");
5954 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5959 rm -f conftest.$ac_objext conftest$ac_exeext
5960 if { (eval echo "$as_me:5960: \"$ac_link\"") >&5
5961 (eval $ac_link) 2>&5
5963 echo "$as_me:5963: \$? = $ac_status" >&5
5964 (exit $ac_status); } &&
5965 { ac_try='test -s conftest$ac_exeext'
5966 { (eval echo "$as_me:5966: \"$ac_try\"") >&5
5969 echo "$as_me:5969: \$? = $ac_status" >&5
5970 (exit $ac_status); }; }; then
5971 LIBINTL="$LIBINTL $LIBICONV"
5972 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5973 gt_cv_func_gnugettext1_libintl=yes
5976 echo "$as_me: failed program was:" >&5
5977 cat conftest.$ac_ext >&5
5979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5981 CPPFLAGS="$gt_save_CPPFLAGS"
5982 LIBS="$gt_save_LIBS"
5984 echo "$as_me:5984: result: $gt_cv_func_gnugettext1_libintl" >&5
5985 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
5988 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5989 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5990 && test "$PACKAGE" != gettext; }; then
5991 gt_use_preinstalled_gnugettext=yes
5998 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
5999 nls_cv_use_gnu_gettext=yes
6003 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6004 INTLOBJS="\$(GETTOBJS)"
6005 BUILD_INCLUDED_LIBINTL=yes
6006 USE_INCLUDED_LIBINTL=yes
6007 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
6008 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
6009 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6012 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6013 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6017 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6018 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6020 cat >>confdefs.h <<\EOF
6021 #define ENABLE_NLS 1
6029 if test "$USE_NLS" = "yes"; then
6031 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6032 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6033 echo "$as_me:6033: checking how to link with libintl" >&5
6034 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6035 echo "$as_me:6035: result: $LIBINTL" >&5
6036 echo "${ECHO_T}$LIBINTL" >&6
6038 for element in $INCINTL; do
6040 for x in $CPPFLAGS; do
6042 acl_save_prefix="$prefix"
6043 prefix="$acl_final_prefix"
6044 acl_save_exec_prefix="$exec_prefix"
6045 exec_prefix="$acl_final_exec_prefix"
6047 exec_prefix="$acl_save_exec_prefix"
6048 prefix="$acl_save_prefix"
6050 if test "X$x" = "X$element"; then
6055 if test -z "$haveit"; then
6056 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6062 cat >>confdefs.h <<\EOF
6063 #define HAVE_GETTEXT 1
6066 cat >>confdefs.h <<\EOF
6067 #define HAVE_DCGETTEXT 1
6075 if test "$PACKAGE" = gettext; then
6076 BUILD_INCLUDED_LIBINTL=yes
6080 nls_cv_header_libgt=
6088 INTL_LIBTOOL_SUFFIX_PREFIX=
6092 echo "$as_me:6092: checking whether ${MAKE-make} sets \${MAKE}" >&5
6093 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
6094 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
6095 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 cat >conftest.make <<\EOF
6100 @echo 'ac_maketemp="${MAKE}"'
6102 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6103 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6104 if test -n "$ac_maketemp"; then
6105 eval ac_cv_prog_make_${ac_make}_set=yes
6107 eval ac_cv_prog_make_${ac_make}_set=no
6111 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6112 echo "$as_me:6112: result: yes" >&5
6113 echo "${ECHO_T}yes" >&6
6116 echo "$as_me:6116: result: no" >&5
6117 echo "${ECHO_T}no" >&6
6118 SET_MAKE="MAKE=${MAKE-make}"
6121 # Extract the first word of "ln", so it can be a program name with args.
6122 set dummy ln; ac_word=$2
6123 echo "$as_me:6123: checking for $ac_word" >&5
6124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6125 if test "${ac_cv_path_LN+set}" = set; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 ac_cv_path_LN="$LN" # Let the user override the test with a path.
6133 ac_save_IFS=$IFS; IFS=$ac_path_separator
6135 for ac_dir in $ac_dummy; do
6137 test -z "$ac_dir" && ac_dir=.
6138 if $as_executable_p "$ac_dir/$ac_word"; then
6139 ac_cv_path_LN="$ac_dir/$ac_word"
6140 echo "$as_me:6140: found $ac_dir/$ac_word" >&5
6145 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
6151 if test -n "$LN"; then
6152 echo "$as_me:6152: result: $LN" >&5
6153 echo "${ECHO_T}$LN" >&6
6155 echo "$as_me:6155: result: no" >&5
6156 echo "${ECHO_T}no" >&6
6159 echo "$as_me:6159: checking whether ln -s works" >&5
6160 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6162 if test "$LN_S" = "ln -s"; then
6163 echo "$as_me:6163: result: yes" >&5
6164 echo "${ECHO_T}yes" >&6
6166 echo "$as_me:6166: result: no, using $LN_S" >&5
6167 echo "${ECHO_T}no, using $LN_S" >&6
6170 # Extract the first word of "mv", so it can be a program name with args.
6171 set dummy mv; ac_word=$2
6172 echo "$as_me:6172: checking for $ac_word" >&5
6173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6174 if test "${ac_cv_path_MV+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6182 ac_save_IFS=$IFS; IFS=$ac_path_separator
6184 for ac_dir in $ac_dummy; do
6186 test -z "$ac_dir" && ac_dir=.
6187 if $as_executable_p "$ac_dir/$ac_word"; then
6188 ac_cv_path_MV="$ac_dir/$ac_word"
6189 echo "$as_me:6189: found $ac_dir/$ac_word" >&5
6194 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6200 if test -n "$MV"; then
6201 echo "$as_me:6201: result: $MV" >&5
6202 echo "${ECHO_T}$MV" >&6
6204 echo "$as_me:6204: result: no" >&5
6205 echo "${ECHO_T}no" >&6
6208 # Extract the first word of "cp", so it can be a program name with args.
6209 set dummy cp; ac_word=$2
6210 echo "$as_me:6210: checking for $ac_word" >&5
6211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6212 if test "${ac_cv_path_CP+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6220 ac_save_IFS=$IFS; IFS=$ac_path_separator
6222 for ac_dir in $ac_dummy; do
6224 test -z "$ac_dir" && ac_dir=.
6225 if $as_executable_p "$ac_dir/$ac_word"; then
6226 ac_cv_path_CP="$ac_dir/$ac_word"
6227 echo "$as_me:6227: found $ac_dir/$ac_word" >&5
6232 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6238 if test -n "$CP"; then
6239 echo "$as_me:6239: result: $CP" >&5
6240 echo "${ECHO_T}$CP" >&6
6242 echo "$as_me:6242: result: no" >&5
6243 echo "${ECHO_T}no" >&6
6246 # Extract the first word of "rm", so it can be a program name with args.
6247 set dummy rm; ac_word=$2
6248 echo "$as_me:6248: checking for $ac_word" >&5
6249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6250 if test "${ac_cv_path_RM+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6258 ac_save_IFS=$IFS; IFS=$ac_path_separator
6260 for ac_dir in $ac_dummy; do
6262 test -z "$ac_dir" && ac_dir=.
6263 if $as_executable_p "$ac_dir/$ac_word"; then
6264 ac_cv_path_RM="$ac_dir/$ac_word"
6265 echo "$as_me:6265: found $ac_dir/$ac_word" >&5
6270 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6276 if test -n "$RM"; then
6277 echo "$as_me:6277: result: $RM" >&5
6278 echo "${ECHO_T}$RM" >&6
6280 echo "$as_me:6280: result: no" >&5
6281 echo "${ECHO_T}no" >&6
6284 # Extract the first word of "chmod", so it can be a program name with args.
6285 set dummy chmod; ac_word=$2
6286 echo "$as_me:6286: checking for $ac_word" >&5
6287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6288 if test "${ac_cv_path_CHMOD+set}" = set; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
6296 ac_save_IFS=$IFS; IFS=$ac_path_separator
6298 for ac_dir in $ac_dummy; do
6300 test -z "$ac_dir" && ac_dir=.
6301 if $as_executable_p "$ac_dir/$ac_word"; then
6302 ac_cv_path_CHMOD="$ac_dir/$ac_word"
6303 echo "$as_me:6303: found $ac_dir/$ac_word" >&5
6308 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
6312 CHMOD=$ac_cv_path_CHMOD
6314 if test -n "$CHMOD"; then
6315 echo "$as_me:6315: result: $CHMOD" >&5
6316 echo "${ECHO_T}$CHMOD" >&6
6318 echo "$as_me:6318: result: no" >&5
6319 echo "${ECHO_T}no" >&6
6322 # Extract the first word of "awk", so it can be a program name with args.
6323 set dummy awk; ac_word=$2
6324 echo "$as_me:6324: checking for $ac_word" >&5
6325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6326 if test "${ac_cv_path_AWK+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
6334 ac_save_IFS=$IFS; IFS=$ac_path_separator
6336 for ac_dir in $ac_dummy; do
6338 test -z "$ac_dir" && ac_dir=.
6339 if $as_executable_p "$ac_dir/$ac_word"; then
6340 ac_cv_path_AWK="$ac_dir/$ac_word"
6341 echo "$as_me:6341: found $ac_dir/$ac_word" >&5
6346 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
6352 if test -n "$AWK"; then
6353 echo "$as_me:6353: result: $AWK" >&5
6354 echo "${ECHO_T}$AWK" >&6
6356 echo "$as_me:6356: result: no" >&5
6357 echo "${ECHO_T}no" >&6
6360 # Extract the first word of "sed", so it can be a program name with args.
6361 set dummy sed; ac_word=$2
6362 echo "$as_me:6362: checking for $ac_word" >&5
6363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6364 if test "${ac_cv_path_SED+set}" = set; then
6365 echo $ECHO_N "(cached) $ECHO_C" >&6
6369 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6372 ac_save_IFS=$IFS; IFS=$ac_path_separator
6374 for ac_dir in $ac_dummy; do
6376 test -z "$ac_dir" && ac_dir=.
6377 if $as_executable_p "$ac_dir/$ac_word"; then
6378 ac_cv_path_SED="$ac_dir/$ac_word"
6379 echo "$as_me:6379: found $ac_dir/$ac_word" >&5
6384 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6390 if test -n "$SED"; then
6391 echo "$as_me:6391: result: $SED" >&5
6392 echo "${ECHO_T}$SED" >&6
6394 echo "$as_me:6394: result: no" >&5
6395 echo "${ECHO_T}no" >&6
6398 # Extract the first word of "perl", so it can be a program name with args.
6399 set dummy perl; ac_word=$2
6400 echo "$as_me:6400: checking for $ac_word" >&5
6401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6402 if test "${ac_cv_path_PERL+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6407 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6410 ac_save_IFS=$IFS; IFS=$ac_path_separator
6412 for ac_dir in $ac_dummy; do
6414 test -z "$ac_dir" && ac_dir=.
6415 if $as_executable_p "$ac_dir/$ac_word"; then
6416 ac_cv_path_PERL="$ac_dir/$ac_word"
6417 echo "$as_me:6417: found $ac_dir/$ac_word" >&5
6422 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
6426 PERL=$ac_cv_path_PERL
6428 if test -n "$PERL"; then
6429 echo "$as_me:6429: result: $PERL" >&5
6430 echo "${ECHO_T}$PERL" >&6
6432 echo "$as_me:6432: result: no" >&5
6433 echo "${ECHO_T}no" >&6
6436 # Extract the first word of "ldconfig", so it can be a program name with args.
6437 set dummy ldconfig; ac_word=$2
6438 echo "$as_me:6438: checking for $ac_word" >&5
6439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6440 if test "${ac_cv_path_LDCONFIG+set}" = set; then
6441 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
6448 ac_save_IFS=$IFS; IFS=$ac_path_separator
6450 for ac_dir in $ac_dummy; do
6452 test -z "$ac_dir" && ac_dir=.
6453 if $as_executable_p "$ac_dir/$ac_word"; then
6454 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
6455 echo "$as_me:6455: found $ac_dir/$ac_word" >&5
6460 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
6464 LDCONFIG=$ac_cv_path_LDCONFIG
6466 if test -n "$LDCONFIG"; then
6467 echo "$as_me:6467: result: $LDCONFIG" >&5
6468 echo "${ECHO_T}$LDCONFIG" >&6
6470 echo "$as_me:6470: result: no" >&5
6471 echo "${ECHO_T}no" >&6
6474 if test -n "$ac_tool_prefix"; then
6475 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6476 set dummy ${ac_tool_prefix}ar; ac_word=$2
6477 echo "$as_me:6477: checking for $ac_word" >&5
6478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6479 if test "${ac_cv_prog_AR+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 if test -n "$AR"; then
6483 ac_cv_prog_AR="$AR" # Let the user override the test.
6485 ac_save_IFS=$IFS; IFS=$ac_path_separator
6487 for ac_dir in $ac_dummy; do
6489 test -z "$ac_dir" && ac_dir=.
6490 $as_executable_p "$ac_dir/$ac_word" || continue
6491 ac_cv_prog_AR="${ac_tool_prefix}ar"
6492 echo "$as_me:6492: found $ac_dir/$ac_word" >&5
6499 if test -n "$AR"; then
6500 echo "$as_me:6500: result: $AR" >&5
6501 echo "${ECHO_T}$AR" >&6
6503 echo "$as_me:6503: result: no" >&5
6504 echo "${ECHO_T}no" >&6
6508 if test -z "$ac_cv_prog_AR"; then
6510 # Extract the first word of "ar", so it can be a program name with args.
6511 set dummy ar; ac_word=$2
6512 echo "$as_me:6512: checking for $ac_word" >&5
6513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6514 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6517 if test -n "$ac_ct_AR"; then
6518 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6520 ac_save_IFS=$IFS; IFS=$ac_path_separator
6522 for ac_dir in $ac_dummy; do
6524 test -z "$ac_dir" && ac_dir=.
6525 $as_executable_p "$ac_dir/$ac_word" || continue
6526 ac_cv_prog_ac_ct_AR="ar"
6527 echo "$as_me:6527: found $ac_dir/$ac_word" >&5
6531 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
6534 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6535 if test -n "$ac_ct_AR"; then
6536 echo "$as_me:6536: result: $ac_ct_AR" >&5
6537 echo "${ECHO_T}$ac_ct_AR" >&6
6539 echo "$as_me:6539: result: no" >&5
6540 echo "${ECHO_T}no" >&6
6548 if test -n "$ac_tool_prefix"; then
6549 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6550 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6551 echo "$as_me:6551: checking for $ac_word" >&5
6552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6553 if test "${ac_cv_prog_RANLIB+set}" = set; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 if test -n "$RANLIB"; then
6557 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6559 ac_save_IFS=$IFS; IFS=$ac_path_separator
6561 for ac_dir in $ac_dummy; do
6563 test -z "$ac_dir" && ac_dir=.
6564 $as_executable_p "$ac_dir/$ac_word" || continue
6565 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6566 echo "$as_me:6566: found $ac_dir/$ac_word" >&5
6572 RANLIB=$ac_cv_prog_RANLIB
6573 if test -n "$RANLIB"; then
6574 echo "$as_me:6574: result: $RANLIB" >&5
6575 echo "${ECHO_T}$RANLIB" >&6
6577 echo "$as_me:6577: result: no" >&5
6578 echo "${ECHO_T}no" >&6
6582 if test -z "$ac_cv_prog_RANLIB"; then
6583 ac_ct_RANLIB=$RANLIB
6584 # Extract the first word of "ranlib", so it can be a program name with args.
6585 set dummy ranlib; ac_word=$2
6586 echo "$as_me:6586: checking for $ac_word" >&5
6587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6588 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 if test -n "$ac_ct_RANLIB"; then
6592 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6594 ac_save_IFS=$IFS; IFS=$ac_path_separator
6596 for ac_dir in $ac_dummy; do
6598 test -z "$ac_dir" && ac_dir=.
6599 $as_executable_p "$ac_dir/$ac_word" || continue
6600 ac_cv_prog_ac_ct_RANLIB="ranlib"
6601 echo "$as_me:6601: found $ac_dir/$ac_word" >&5
6605 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6608 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6609 if test -n "$ac_ct_RANLIB"; then
6610 echo "$as_me:6610: result: $ac_ct_RANLIB" >&5
6611 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6613 echo "$as_me:6613: result: no" >&5
6614 echo "${ECHO_T}no" >&6
6617 RANLIB=$ac_ct_RANLIB
6619 RANLIB="$ac_cv_prog_RANLIB"
6622 if test -n "$ac_tool_prefix"; then
6623 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6624 set dummy ${ac_tool_prefix}strip; ac_word=$2
6625 echo "$as_me:6625: checking for $ac_word" >&5
6626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6627 if test "${ac_cv_prog_STRIP+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 if test -n "$STRIP"; then
6631 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6633 ac_save_IFS=$IFS; IFS=$ac_path_separator
6635 for ac_dir in $ac_dummy; do
6637 test -z "$ac_dir" && ac_dir=.
6638 $as_executable_p "$ac_dir/$ac_word" || continue
6639 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6640 echo "$as_me:6640: found $ac_dir/$ac_word" >&5
6646 STRIP=$ac_cv_prog_STRIP
6647 if test -n "$STRIP"; then
6648 echo "$as_me:6648: result: $STRIP" >&5
6649 echo "${ECHO_T}$STRIP" >&6
6651 echo "$as_me:6651: result: no" >&5
6652 echo "${ECHO_T}no" >&6
6656 if test -z "$ac_cv_prog_STRIP"; then
6658 # Extract the first word of "strip", so it can be a program name with args.
6659 set dummy strip; ac_word=$2
6660 echo "$as_me:6660: checking for $ac_word" >&5
6661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6662 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 if test -n "$ac_ct_STRIP"; then
6666 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6668 ac_save_IFS=$IFS; IFS=$ac_path_separator
6670 for ac_dir in $ac_dummy; do
6672 test -z "$ac_dir" && ac_dir=.
6673 $as_executable_p "$ac_dir/$ac_word" || continue
6674 ac_cv_prog_ac_ct_STRIP="strip"
6675 echo "$as_me:6675: found $ac_dir/$ac_word" >&5
6679 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6682 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6683 if test -n "$ac_ct_STRIP"; then
6684 echo "$as_me:6684: result: $ac_ct_STRIP" >&5
6685 echo "${ECHO_T}$ac_ct_STRIP" >&6
6687 echo "$as_me:6687: result: no" >&5
6688 echo "${ECHO_T}no" >&6
6693 STRIP="$ac_cv_prog_STRIP"
6696 # Find a good install program. We prefer a C program (faster),
6697 # so one script is as good as another. But avoid the broken or
6698 # incompatible versions:
6699 # SysV /etc/install, /usr/sbin/install
6700 # SunOS /usr/etc/install
6701 # IRIX /sbin/install
6703 # AmigaOS /C/install, which installs bootblocks on floppy discs
6704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6707 # ./install, which can be erroneously created by make from ./install.sh.
6708 echo "$as_me:6708: checking for a BSD compatible install" >&5
6709 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
6710 if test -z "$INSTALL"; then
6711 if test "${ac_cv_path_install+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 ac_save_IFS=$IFS; IFS=$ac_path_separator
6715 for ac_dir in $PATH; do
6717 # Account for people who put trailing slashes in PATH elements.
6719 / | ./ | .// | /cC/* \
6720 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
6723 # OSF1 and SCO ODT 3.0 have their own names for install.
6724 # Don't use installbsd from OSF since it installs stuff as root
6726 for ac_prog in ginstall scoinst install; do
6727 if $as_executable_p "$ac_dir/$ac_prog"; then
6728 if test $ac_prog = install &&
6729 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
6730 # AIX install. It has an incompatible calling convention.
6732 elif test $ac_prog = install &&
6733 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
6734 # program-specific install script used by HP pwplus--don't use.
6737 ac_cv_path_install="$ac_dir/$ac_prog -c"
6747 if test "${ac_cv_path_install+set}" = set; then
6748 INSTALL=$ac_cv_path_install
6750 # As a last resort, use the slow shell script. We don't cache a
6751 # path for INSTALL within a source directory, because that will
6752 # break other packages using the cache if that directory is
6753 # removed, or if the path is relative.
6754 INSTALL=$ac_install_sh
6757 echo "$as_me:6757: result: $INSTALL" >&5
6758 echo "${ECHO_T}$INSTALL" >&6
6760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6761 # It thinks the first close brace ends the variable substitution.
6762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6764 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6766 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6768 # See if we need a separate native compiler.
6769 if test $cross_compiling = no; then
6773 for ac_prog in gcc cc
6775 # Extract the first word of "$ac_prog", so it can be a program name with args.
6776 set dummy $ac_prog; ac_word=$2
6777 echo "$as_me:6777: checking for $ac_word" >&5
6778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6779 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6782 if test -n "$BUILD_CC"; then
6783 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
6785 ac_save_IFS=$IFS; IFS=$ac_path_separator
6787 for ac_dir in $ac_dummy; do
6789 test -z "$ac_dir" && ac_dir=.
6790 $as_executable_p "$ac_dir/$ac_word" || continue
6791 ac_cv_prog_BUILD_CC="$ac_prog"
6792 echo "$as_me:6792: found $ac_dir/$ac_word" >&5
6798 BUILD_CC=$ac_cv_prog_BUILD_CC
6799 if test -n "$BUILD_CC"; then
6800 echo "$as_me:6800: result: $BUILD_CC" >&5
6801 echo "${ECHO_T}$BUILD_CC" >&6
6803 echo "$as_me:6803: result: no" >&5
6804 echo "${ECHO_T}no" >&6
6807 test -n "$BUILD_CC" && break
6812 for ac_header in stdlib.h unistd.h stdarg.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if.h netinet/in.h
6814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6815 echo "$as_me:6815: checking for $ac_header" >&5
6816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 cat >conftest.$ac_ext <<_ACEOF
6821 #line 6821 "configure"
6822 #include "confdefs.h"
6823 #include <$ac_header>
6825 if { (eval echo "$as_me:6825: \"$ac_cpp conftest.$ac_ext\"") >&5
6826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6828 egrep -v '^ *\+' conftest.er1 >conftest.err
6830 cat conftest.err >&5
6831 echo "$as_me:6831: \$? = $ac_status" >&5
6832 (exit $ac_status); } >/dev/null; then
6833 if test -s conftest.err; then
6834 ac_cpp_err=$ac_c_preproc_warn_flag
6841 if test -z "$ac_cpp_err"; then
6842 eval "$as_ac_Header=yes"
6844 echo "$as_me: failed program was:" >&5
6845 cat conftest.$ac_ext >&5
6846 eval "$as_ac_Header=no"
6848 rm -f conftest.err conftest.$ac_ext
6850 echo "$as_me:6850: result: `eval echo '${'$as_ac_Header'}'`" >&5
6851 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6853 cat >>confdefs.h <<EOF
6854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6860 for ac_func in vprintf
6862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6863 echo "$as_me:6863: checking for $ac_func" >&5
6864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6865 if eval "test \"\${$as_ac_var+set}\" = set"; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 cat >conftest.$ac_ext <<_ACEOF
6869 #line 6869 "configure"
6870 #include "confdefs.h"
6871 /* System header to define __stub macros and hopefully few prototypes,
6872 which can conflict with char $ac_func (); below. */
6874 /* Override any gcc2 internal prototype to avoid an error. */
6878 /* We use char because int might match the return type of a gcc2
6879 builtin and then its argument prototype would still apply. */
6886 /* The GNU C library defines this for functions which it implements
6887 to always fail with ENOSYS. Some functions are actually named
6888 something starting with __ and the normal name is an alias. */
6889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6899 rm -f conftest.$ac_objext conftest$ac_exeext
6900 if { (eval echo "$as_me:6900: \"$ac_link\"") >&5
6901 (eval $ac_link) 2>&5
6903 echo "$as_me:6903: \$? = $ac_status" >&5
6904 (exit $ac_status); } &&
6905 { ac_try='test -s conftest$ac_exeext'
6906 { (eval echo "$as_me:6906: \"$ac_try\"") >&5
6909 echo "$as_me:6909: \$? = $ac_status" >&5
6910 (exit $ac_status); }; }; then
6911 eval "$as_ac_var=yes"
6913 echo "$as_me: failed program was:" >&5
6914 cat conftest.$ac_ext >&5
6915 eval "$as_ac_var=no"
6917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6919 echo "$as_me:6919: result: `eval echo '${'$as_ac_var'}'`" >&5
6920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6921 if test `eval echo '${'$as_ac_var'}'` = yes; then
6922 cat >>confdefs.h <<EOF
6923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6926 echo "$as_me:6926: checking for _doprnt" >&5
6927 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
6928 if test "${ac_cv_func__doprnt+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 cat >conftest.$ac_ext <<_ACEOF
6932 #line 6932 "configure"
6933 #include "confdefs.h"
6934 /* System header to define __stub macros and hopefully few prototypes,
6935 which can conflict with char _doprnt (); below. */
6937 /* Override any gcc2 internal prototype to avoid an error. */
6941 /* We use char because int might match the return type of a gcc2
6942 builtin and then its argument prototype would still apply. */
6949 /* The GNU C library defines this for functions which it implements
6950 to always fail with ENOSYS. Some functions are actually named
6951 something starting with __ and the normal name is an alias. */
6952 #if defined (__stub__doprnt) || defined (__stub____doprnt)
6962 rm -f conftest.$ac_objext conftest$ac_exeext
6963 if { (eval echo "$as_me:6963: \"$ac_link\"") >&5
6964 (eval $ac_link) 2>&5
6966 echo "$as_me:6966: \$? = $ac_status" >&5
6967 (exit $ac_status); } &&
6968 { ac_try='test -s conftest$ac_exeext'
6969 { (eval echo "$as_me:6969: \"$ac_try\"") >&5
6972 echo "$as_me:6972: \$? = $ac_status" >&5
6973 (exit $ac_status); }; }; then
6974 ac_cv_func__doprnt=yes
6976 echo "$as_me: failed program was:" >&5
6977 cat conftest.$ac_ext >&5
6978 ac_cv_func__doprnt=no
6980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6982 echo "$as_me:6982: result: $ac_cv_func__doprnt" >&5
6983 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
6984 if test $ac_cv_func__doprnt = yes; then
6986 cat >>confdefs.h <<\EOF
6987 #define HAVE_DOPRNT 1
6995 echo "$as_me:6995: checking whether d_reclen declared in dirent" >&5
6996 echo $ECHO_N "checking whether d_reclen declared in dirent... $ECHO_C" >&6
6997 if test "${e2fsprogs_cv_have_d_reclen_dirent+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
7000 cat >conftest.$ac_ext <<_ACEOF
7001 #line 7001 "configure"
7002 #include "confdefs.h"
7007 struct dirent de; de.d_reclen = 0;
7012 rm -f conftest.$ac_objext
7013 if { (eval echo "$as_me:7013: \"$ac_compile\"") >&5
7014 (eval $ac_compile) 2>&5
7016 echo "$as_me:7016: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
7018 { ac_try='test -s conftest.$ac_objext'
7019 { (eval echo "$as_me:7019: \"$ac_try\"") >&5
7022 echo "$as_me:7022: \$? = $ac_status" >&5
7023 (exit $ac_status); }; }; then
7024 e2fsprogs_cv_have_d_reclen_dirent=yes
7026 echo "$as_me: failed program was:" >&5
7027 cat conftest.$ac_ext >&5
7028 e2fsprogs_cv_have_d_reclen_dirent=no
7030 rm -f conftest.$ac_objext conftest.$ac_ext
7033 echo "$as_me:7033: result: $e2fsprogs_cv_have_d_reclen_dirent" >&5
7034 echo "${ECHO_T}$e2fsprogs_cv_have_d_reclen_dirent" >&6
7035 if test "$e2fsprogs_cv_have_d_reclen_dirent" = yes; then
7036 cat >>confdefs.h <<\EOF
7037 #define HAVE_RECLEN_DIRENT 1
7041 echo "$as_me:7041: checking whether ssize_t declared" >&5
7042 echo $ECHO_N "checking whether ssize_t declared... $ECHO_C" >&6
7043 if test "${e2fsprogs_cv_have_ssize_t+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 cat >conftest.$ac_ext <<_ACEOF
7047 #line 7047 "configure"
7048 #include "confdefs.h"
7049 #include <sys/types.h>
7058 rm -f conftest.$ac_objext
7059 if { (eval echo "$as_me:7059: \"$ac_compile\"") >&5
7060 (eval $ac_compile) 2>&5
7062 echo "$as_me:7062: \$? = $ac_status" >&5
7063 (exit $ac_status); } &&
7064 { ac_try='test -s conftest.$ac_objext'
7065 { (eval echo "$as_me:7065: \"$ac_try\"") >&5
7068 echo "$as_me:7068: \$? = $ac_status" >&5
7069 (exit $ac_status); }; }; then
7070 e2fsprogs_cv_have_ssize_t=yes
7072 echo "$as_me: failed program was:" >&5
7073 cat conftest.$ac_ext >&5
7074 e2fsprogs_cv_have_ssize_t=no
7076 rm -f conftest.$ac_objext conftest.$ac_ext
7079 echo "$as_me:7079: result: $e2fsprogs_cv_have_ssize_t" >&5
7080 echo "${ECHO_T}$e2fsprogs_cv_have_ssize_t" >&6
7081 if test "$e2fsprogs_cv_have_ssize_t" = yes; then
7082 cat >>confdefs.h <<\EOF
7083 #define HAVE_TYPE_SSIZE_T 1
7087 echo "$as_me:7087: checking whether llseek declared in unistd.h" >&5
7088 echo $ECHO_N "checking whether llseek declared in unistd.h... $ECHO_C" >&6
7089 if test "${e2fsprogs_cv_have_llseek_prototype+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 cat >conftest.$ac_ext <<_ACEOF
7093 #line 7093 "configure"
7094 #include "confdefs.h"
7099 extern int llseek(int);
7104 rm -f conftest.$ac_objext
7105 if { (eval echo "$as_me:7105: \"$ac_compile\"") >&5
7106 (eval $ac_compile) 2>&5
7108 echo "$as_me:7108: \$? = $ac_status" >&5
7109 (exit $ac_status); } &&
7110 { ac_try='test -s conftest.$ac_objext'
7111 { (eval echo "$as_me:7111: \"$ac_try\"") >&5
7114 echo "$as_me:7114: \$? = $ac_status" >&5
7115 (exit $ac_status); }; }; then
7116 e2fsprogs_cv_have_llseek_prototype=no
7118 echo "$as_me: failed program was:" >&5
7119 cat conftest.$ac_ext >&5
7120 e2fsprogs_cv_have_llseek_prototype=yes
7122 rm -f conftest.$ac_objext conftest.$ac_ext
7125 echo "$as_me:7125: result: $e2fsprogs_cv_have_llseek_prototype" >&5
7126 echo "${ECHO_T}$e2fsprogs_cv_have_llseek_prototype" >&6
7127 if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
7128 cat >>confdefs.h <<\EOF
7129 #define HAVE_LLSEEK_PROTOTYPE 1
7133 echo "$as_me:7133: checking whether lseek64 declared in unistd.h" >&5
7134 echo $ECHO_N "checking whether lseek64 declared in unistd.h... $ECHO_C" >&6
7135 if test "${e2fsprogs_cv_have_lseek64_prototype+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 cat >conftest.$ac_ext <<_ACEOF
7139 #line 7139 "configure"
7140 #include "confdefs.h"
7141 #define _LARGEFILE_SOURCE
7142 #define _LARGEFILE64_SOURCE
7147 extern int lseek64(int);
7152 rm -f conftest.$ac_objext
7153 if { (eval echo "$as_me:7153: \"$ac_compile\"") >&5
7154 (eval $ac_compile) 2>&5
7156 echo "$as_me:7156: \$? = $ac_status" >&5
7157 (exit $ac_status); } &&
7158 { ac_try='test -s conftest.$ac_objext'
7159 { (eval echo "$as_me:7159: \"$ac_try\"") >&5
7162 echo "$as_me:7162: \$? = $ac_status" >&5
7163 (exit $ac_status); }; }; then
7164 e2fsprogs_cv_have_lseek64_prototype=no
7166 echo "$as_me: failed program was:" >&5
7167 cat conftest.$ac_ext >&5
7168 e2fsprogs_cv_have_lseek64_prototype=yes
7170 rm -f conftest.$ac_objext conftest.$ac_ext
7173 echo "$as_me:7173: result: $e2fsprogs_cv_have_lseek64_prototype" >&5
7174 echo "${ECHO_T}$e2fsprogs_cv_have_lseek64_prototype" >&6
7175 if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
7176 cat >>confdefs.h <<\EOF
7177 #define HAVE_LSEEK64_PROTOTYPE 1
7181 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
7182 # if cross-compiling, with no cached values, just assume something common.
7183 ac_cv_sizeof_short=2
7186 ac_cv_sizeof_long_long=8
7187 { echo "$as_me:7187: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
7188 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
7190 echo "$as_me:7190: checking for short" >&5
7191 echo $ECHO_N "checking for short... $ECHO_C" >&6
7192 if test "${ac_cv_type_short+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7195 cat >conftest.$ac_ext <<_ACEOF
7196 #line 7196 "configure"
7197 #include "confdefs.h"
7198 $ac_includes_default
7210 rm -f conftest.$ac_objext
7211 if { (eval echo "$as_me:7211: \"$ac_compile\"") >&5
7212 (eval $ac_compile) 2>&5
7214 echo "$as_me:7214: \$? = $ac_status" >&5
7215 (exit $ac_status); } &&
7216 { ac_try='test -s conftest.$ac_objext'
7217 { (eval echo "$as_me:7217: \"$ac_try\"") >&5
7220 echo "$as_me:7220: \$? = $ac_status" >&5
7221 (exit $ac_status); }; }; then
7222 ac_cv_type_short=yes
7224 echo "$as_me: failed program was:" >&5
7225 cat conftest.$ac_ext >&5
7228 rm -f conftest.$ac_objext conftest.$ac_ext
7230 echo "$as_me:7230: result: $ac_cv_type_short" >&5
7231 echo "${ECHO_T}$ac_cv_type_short" >&6
7233 echo "$as_me:7233: checking size of short" >&5
7234 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7235 if test "${ac_cv_sizeof_short+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 if test "$ac_cv_type_short" = yes; then
7239 if test "$cross_compiling" = yes; then
7240 # Depending upon the size, compute the lo and hi bounds.
7241 cat >conftest.$ac_ext <<_ACEOF
7242 #line 7242 "configure"
7243 #include "confdefs.h"
7244 $ac_includes_default
7248 int _array_ [1 - 2 * !((sizeof (short)) >= 0)]
7253 rm -f conftest.$ac_objext
7254 if { (eval echo "$as_me:7254: \"$ac_compile\"") >&5
7255 (eval $ac_compile) 2>&5
7257 echo "$as_me:7257: \$? = $ac_status" >&5
7258 (exit $ac_status); } &&
7259 { ac_try='test -s conftest.$ac_objext'
7260 { (eval echo "$as_me:7260: \"$ac_try\"") >&5
7263 echo "$as_me:7263: \$? = $ac_status" >&5
7264 (exit $ac_status); }; }; then
7267 cat >conftest.$ac_ext <<_ACEOF
7268 #line 7268 "configure"
7269 #include "confdefs.h"
7270 $ac_includes_default
7274 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
7279 rm -f conftest.$ac_objext
7280 if { (eval echo "$as_me:7280: \"$ac_compile\"") >&5
7281 (eval $ac_compile) 2>&5
7283 echo "$as_me:7283: \$? = $ac_status" >&5
7284 (exit $ac_status); } &&
7285 { ac_try='test -s conftest.$ac_objext'
7286 { (eval echo "$as_me:7286: \"$ac_try\"") >&5
7289 echo "$as_me:7289: \$? = $ac_status" >&5
7290 (exit $ac_status); }; }; then
7291 ac_hi=$ac_mid; break
7293 echo "$as_me: failed program was:" >&5
7294 cat conftest.$ac_ext >&5
7295 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7297 rm -f conftest.$ac_objext conftest.$ac_ext
7300 echo "$as_me: failed program was:" >&5
7301 cat conftest.$ac_ext >&5
7304 cat >conftest.$ac_ext <<_ACEOF
7305 #line 7305 "configure"
7306 #include "confdefs.h"
7307 $ac_includes_default
7311 int _array_ [1 - 2 * !((sizeof (short)) >= $ac_mid)]
7316 rm -f conftest.$ac_objext
7317 if { (eval echo "$as_me:7317: \"$ac_compile\"") >&5
7318 (eval $ac_compile) 2>&5
7320 echo "$as_me:7320: \$? = $ac_status" >&5
7321 (exit $ac_status); } &&
7322 { ac_try='test -s conftest.$ac_objext'
7323 { (eval echo "$as_me:7323: \"$ac_try\"") >&5
7326 echo "$as_me:7326: \$? = $ac_status" >&5
7327 (exit $ac_status); }; }; then
7328 ac_lo=$ac_mid; break
7330 echo "$as_me: failed program was:" >&5
7331 cat conftest.$ac_ext >&5
7332 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7334 rm -f conftest.$ac_objext conftest.$ac_ext
7337 rm -f conftest.$ac_objext conftest.$ac_ext
7338 # Binary search between lo and hi bounds.
7339 while test "x$ac_lo" != "x$ac_hi"; do
7340 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7341 cat >conftest.$ac_ext <<_ACEOF
7342 #line 7342 "configure"
7343 #include "confdefs.h"
7344 $ac_includes_default
7348 int _array_ [1 - 2 * !((sizeof (short)) <= $ac_mid)]
7353 rm -f conftest.$ac_objext
7354 if { (eval echo "$as_me:7354: \"$ac_compile\"") >&5
7355 (eval $ac_compile) 2>&5
7357 echo "$as_me:7357: \$? = $ac_status" >&5
7358 (exit $ac_status); } &&
7359 { ac_try='test -s conftest.$ac_objext'
7360 { (eval echo "$as_me:7360: \"$ac_try\"") >&5
7363 echo "$as_me:7363: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7367 echo "$as_me: failed program was:" >&5
7368 cat conftest.$ac_ext >&5
7369 ac_lo=`expr $ac_mid + 1`
7371 rm -f conftest.$ac_objext conftest.$ac_ext
7373 ac_cv_sizeof_short=$ac_lo
7375 if test "$cross_compiling" = yes; then
7376 { { echo "$as_me:7376: error: cannot run test program while cross compiling" >&5
7377 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7378 { (exit 1); exit 1; }; }
7380 cat >conftest.$ac_ext <<_ACEOF
7381 #line 7381 "configure"
7382 #include "confdefs.h"
7383 $ac_includes_default
7387 FILE *f = fopen ("conftest.val", "w");
7390 fprintf (f, "%d", (sizeof (short)));
7396 rm -f conftest$ac_exeext
7397 if { (eval echo "$as_me:7397: \"$ac_link\"") >&5
7398 (eval $ac_link) 2>&5
7400 echo "$as_me:7400: \$? = $ac_status" >&5
7401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7402 { (eval echo "$as_me:7402: \"$ac_try\"") >&5
7405 echo "$as_me:7405: \$? = $ac_status" >&5
7406 (exit $ac_status); }; }; then
7407 ac_cv_sizeof_short=`cat conftest.val`
7409 echo "$as_me: program exited with status $ac_status" >&5
7410 echo "$as_me: failed program was:" >&5
7411 cat conftest.$ac_ext >&5
7413 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7418 ac_cv_sizeof_short=0
7421 echo "$as_me:7421: result: $ac_cv_sizeof_short" >&5
7422 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7423 cat >>confdefs.h <<EOF
7424 #define SIZEOF_SHORT $ac_cv_sizeof_short
7427 echo "$as_me:7427: checking for int" >&5
7428 echo $ECHO_N "checking for int... $ECHO_C" >&6
7429 if test "${ac_cv_type_int+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 cat >conftest.$ac_ext <<_ACEOF
7433 #line 7433 "configure"
7434 #include "confdefs.h"
7435 $ac_includes_default
7447 rm -f conftest.$ac_objext
7448 if { (eval echo "$as_me:7448: \"$ac_compile\"") >&5
7449 (eval $ac_compile) 2>&5
7451 echo "$as_me:7451: \$? = $ac_status" >&5
7452 (exit $ac_status); } &&
7453 { ac_try='test -s conftest.$ac_objext'
7454 { (eval echo "$as_me:7454: \"$ac_try\"") >&5
7457 echo "$as_me:7457: \$? = $ac_status" >&5
7458 (exit $ac_status); }; }; then
7461 echo "$as_me: failed program was:" >&5
7462 cat conftest.$ac_ext >&5
7465 rm -f conftest.$ac_objext conftest.$ac_ext
7467 echo "$as_me:7467: result: $ac_cv_type_int" >&5
7468 echo "${ECHO_T}$ac_cv_type_int" >&6
7470 echo "$as_me:7470: checking size of int" >&5
7471 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7472 if test "${ac_cv_sizeof_int+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 if test "$ac_cv_type_int" = yes; then
7476 if test "$cross_compiling" = yes; then
7477 # Depending upon the size, compute the lo and hi bounds.
7478 cat >conftest.$ac_ext <<_ACEOF
7479 #line 7479 "configure"
7480 #include "confdefs.h"
7481 $ac_includes_default
7485 int _array_ [1 - 2 * !((sizeof (int)) >= 0)]
7490 rm -f conftest.$ac_objext
7491 if { (eval echo "$as_me:7491: \"$ac_compile\"") >&5
7492 (eval $ac_compile) 2>&5
7494 echo "$as_me:7494: \$? = $ac_status" >&5
7495 (exit $ac_status); } &&
7496 { ac_try='test -s conftest.$ac_objext'
7497 { (eval echo "$as_me:7497: \"$ac_try\"") >&5
7500 echo "$as_me:7500: \$? = $ac_status" >&5
7501 (exit $ac_status); }; }; then
7504 cat >conftest.$ac_ext <<_ACEOF
7505 #line 7505 "configure"
7506 #include "confdefs.h"
7507 $ac_includes_default
7511 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
7516 rm -f conftest.$ac_objext
7517 if { (eval echo "$as_me:7517: \"$ac_compile\"") >&5
7518 (eval $ac_compile) 2>&5
7520 echo "$as_me:7520: \$? = $ac_status" >&5
7521 (exit $ac_status); } &&
7522 { ac_try='test -s conftest.$ac_objext'
7523 { (eval echo "$as_me:7523: \"$ac_try\"") >&5
7526 echo "$as_me:7526: \$? = $ac_status" >&5
7527 (exit $ac_status); }; }; then
7528 ac_hi=$ac_mid; break
7530 echo "$as_me: failed program was:" >&5
7531 cat conftest.$ac_ext >&5
7532 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7534 rm -f conftest.$ac_objext conftest.$ac_ext
7537 echo "$as_me: failed program was:" >&5
7538 cat conftest.$ac_ext >&5
7541 cat >conftest.$ac_ext <<_ACEOF
7542 #line 7542 "configure"
7543 #include "confdefs.h"
7544 $ac_includes_default
7548 int _array_ [1 - 2 * !((sizeof (int)) >= $ac_mid)]
7553 rm -f conftest.$ac_objext
7554 if { (eval echo "$as_me:7554: \"$ac_compile\"") >&5
7555 (eval $ac_compile) 2>&5
7557 echo "$as_me:7557: \$? = $ac_status" >&5
7558 (exit $ac_status); } &&
7559 { ac_try='test -s conftest.$ac_objext'
7560 { (eval echo "$as_me:7560: \"$ac_try\"") >&5
7563 echo "$as_me:7563: \$? = $ac_status" >&5
7564 (exit $ac_status); }; }; then
7565 ac_lo=$ac_mid; break
7567 echo "$as_me: failed program was:" >&5
7568 cat conftest.$ac_ext >&5
7569 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7571 rm -f conftest.$ac_objext conftest.$ac_ext
7574 rm -f conftest.$ac_objext conftest.$ac_ext
7575 # Binary search between lo and hi bounds.
7576 while test "x$ac_lo" != "x$ac_hi"; do
7577 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7578 cat >conftest.$ac_ext <<_ACEOF
7579 #line 7579 "configure"
7580 #include "confdefs.h"
7581 $ac_includes_default
7585 int _array_ [1 - 2 * !((sizeof (int)) <= $ac_mid)]
7590 rm -f conftest.$ac_objext
7591 if { (eval echo "$as_me:7591: \"$ac_compile\"") >&5
7592 (eval $ac_compile) 2>&5
7594 echo "$as_me:7594: \$? = $ac_status" >&5
7595 (exit $ac_status); } &&
7596 { ac_try='test -s conftest.$ac_objext'
7597 { (eval echo "$as_me:7597: \"$ac_try\"") >&5
7600 echo "$as_me:7600: \$? = $ac_status" >&5
7601 (exit $ac_status); }; }; then
7604 echo "$as_me: failed program was:" >&5
7605 cat conftest.$ac_ext >&5
7606 ac_lo=`expr $ac_mid + 1`
7608 rm -f conftest.$ac_objext conftest.$ac_ext
7610 ac_cv_sizeof_int=$ac_lo
7612 if test "$cross_compiling" = yes; then
7613 { { echo "$as_me:7613: error: cannot run test program while cross compiling" >&5
7614 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7615 { (exit 1); exit 1; }; }
7617 cat >conftest.$ac_ext <<_ACEOF
7618 #line 7618 "configure"
7619 #include "confdefs.h"
7620 $ac_includes_default
7624 FILE *f = fopen ("conftest.val", "w");
7627 fprintf (f, "%d", (sizeof (int)));
7633 rm -f conftest$ac_exeext
7634 if { (eval echo "$as_me:7634: \"$ac_link\"") >&5
7635 (eval $ac_link) 2>&5
7637 echo "$as_me:7637: \$? = $ac_status" >&5
7638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7639 { (eval echo "$as_me:7639: \"$ac_try\"") >&5
7642 echo "$as_me:7642: \$? = $ac_status" >&5
7643 (exit $ac_status); }; }; then
7644 ac_cv_sizeof_int=`cat conftest.val`
7646 echo "$as_me: program exited with status $ac_status" >&5
7647 echo "$as_me: failed program was:" >&5
7648 cat conftest.$ac_ext >&5
7650 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7658 echo "$as_me:7658: result: $ac_cv_sizeof_int" >&5
7659 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7660 cat >>confdefs.h <<EOF
7661 #define SIZEOF_INT $ac_cv_sizeof_int
7664 echo "$as_me:7664: checking for long" >&5
7665 echo $ECHO_N "checking for long... $ECHO_C" >&6
7666 if test "${ac_cv_type_long+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 cat >conftest.$ac_ext <<_ACEOF
7670 #line 7670 "configure"
7671 #include "confdefs.h"
7672 $ac_includes_default
7684 rm -f conftest.$ac_objext
7685 if { (eval echo "$as_me:7685: \"$ac_compile\"") >&5
7686 (eval $ac_compile) 2>&5
7688 echo "$as_me:7688: \$? = $ac_status" >&5
7689 (exit $ac_status); } &&
7690 { ac_try='test -s conftest.$ac_objext'
7691 { (eval echo "$as_me:7691: \"$ac_try\"") >&5
7694 echo "$as_me:7694: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7698 echo "$as_me: failed program was:" >&5
7699 cat conftest.$ac_ext >&5
7702 rm -f conftest.$ac_objext conftest.$ac_ext
7704 echo "$as_me:7704: result: $ac_cv_type_long" >&5
7705 echo "${ECHO_T}$ac_cv_type_long" >&6
7707 echo "$as_me:7707: checking size of long" >&5
7708 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7709 if test "${ac_cv_sizeof_long+set}" = set; then
7710 echo $ECHO_N "(cached) $ECHO_C" >&6
7712 if test "$ac_cv_type_long" = yes; then
7713 if test "$cross_compiling" = yes; then
7714 # Depending upon the size, compute the lo and hi bounds.
7715 cat >conftest.$ac_ext <<_ACEOF
7716 #line 7716 "configure"
7717 #include "confdefs.h"
7718 $ac_includes_default
7722 int _array_ [1 - 2 * !((sizeof (long)) >= 0)]
7727 rm -f conftest.$ac_objext
7728 if { (eval echo "$as_me:7728: \"$ac_compile\"") >&5
7729 (eval $ac_compile) 2>&5
7731 echo "$as_me:7731: \$? = $ac_status" >&5
7732 (exit $ac_status); } &&
7733 { ac_try='test -s conftest.$ac_objext'
7734 { (eval echo "$as_me:7734: \"$ac_try\"") >&5
7737 echo "$as_me:7737: \$? = $ac_status" >&5
7738 (exit $ac_status); }; }; then
7741 cat >conftest.$ac_ext <<_ACEOF
7742 #line 7742 "configure"
7743 #include "confdefs.h"
7744 $ac_includes_default
7748 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
7753 rm -f conftest.$ac_objext
7754 if { (eval echo "$as_me:7754: \"$ac_compile\"") >&5
7755 (eval $ac_compile) 2>&5
7757 echo "$as_me:7757: \$? = $ac_status" >&5
7758 (exit $ac_status); } &&
7759 { ac_try='test -s conftest.$ac_objext'
7760 { (eval echo "$as_me:7760: \"$ac_try\"") >&5
7763 echo "$as_me:7763: \$? = $ac_status" >&5
7764 (exit $ac_status); }; }; then
7765 ac_hi=$ac_mid; break
7767 echo "$as_me: failed program was:" >&5
7768 cat conftest.$ac_ext >&5
7769 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
7771 rm -f conftest.$ac_objext conftest.$ac_ext
7774 echo "$as_me: failed program was:" >&5
7775 cat conftest.$ac_ext >&5
7778 cat >conftest.$ac_ext <<_ACEOF
7779 #line 7779 "configure"
7780 #include "confdefs.h"
7781 $ac_includes_default
7785 int _array_ [1 - 2 * !((sizeof (long)) >= $ac_mid)]
7790 rm -f conftest.$ac_objext
7791 if { (eval echo "$as_me:7791: \"$ac_compile\"") >&5
7792 (eval $ac_compile) 2>&5
7794 echo "$as_me:7794: \$? = $ac_status" >&5
7795 (exit $ac_status); } &&
7796 { ac_try='test -s conftest.$ac_objext'
7797 { (eval echo "$as_me:7797: \"$ac_try\"") >&5
7800 echo "$as_me:7800: \$? = $ac_status" >&5
7801 (exit $ac_status); }; }; then
7802 ac_lo=$ac_mid; break
7804 echo "$as_me: failed program was:" >&5
7805 cat conftest.$ac_ext >&5
7806 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
7808 rm -f conftest.$ac_objext conftest.$ac_ext
7811 rm -f conftest.$ac_objext conftest.$ac_ext
7812 # Binary search between lo and hi bounds.
7813 while test "x$ac_lo" != "x$ac_hi"; do
7814 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7815 cat >conftest.$ac_ext <<_ACEOF
7816 #line 7816 "configure"
7817 #include "confdefs.h"
7818 $ac_includes_default
7822 int _array_ [1 - 2 * !((sizeof (long)) <= $ac_mid)]
7827 rm -f conftest.$ac_objext
7828 if { (eval echo "$as_me:7828: \"$ac_compile\"") >&5
7829 (eval $ac_compile) 2>&5
7831 echo "$as_me:7831: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
7833 { ac_try='test -s conftest.$ac_objext'
7834 { (eval echo "$as_me:7834: \"$ac_try\"") >&5
7837 echo "$as_me:7837: \$? = $ac_status" >&5
7838 (exit $ac_status); }; }; then
7841 echo "$as_me: failed program was:" >&5
7842 cat conftest.$ac_ext >&5
7843 ac_lo=`expr $ac_mid + 1`
7845 rm -f conftest.$ac_objext conftest.$ac_ext
7847 ac_cv_sizeof_long=$ac_lo
7849 if test "$cross_compiling" = yes; then
7850 { { echo "$as_me:7850: error: cannot run test program while cross compiling" >&5
7851 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7852 { (exit 1); exit 1; }; }
7854 cat >conftest.$ac_ext <<_ACEOF
7855 #line 7855 "configure"
7856 #include "confdefs.h"
7857 $ac_includes_default
7861 FILE *f = fopen ("conftest.val", "w");
7864 fprintf (f, "%d", (sizeof (long)));
7870 rm -f conftest$ac_exeext
7871 if { (eval echo "$as_me:7871: \"$ac_link\"") >&5
7872 (eval $ac_link) 2>&5
7874 echo "$as_me:7874: \$? = $ac_status" >&5
7875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7876 { (eval echo "$as_me:7876: \"$ac_try\"") >&5
7879 echo "$as_me:7879: \$? = $ac_status" >&5
7880 (exit $ac_status); }; }; then
7881 ac_cv_sizeof_long=`cat conftest.val`
7883 echo "$as_me: program exited with status $ac_status" >&5
7884 echo "$as_me: failed program was:" >&5
7885 cat conftest.$ac_ext >&5
7887 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7895 echo "$as_me:7895: result: $ac_cv_sizeof_long" >&5
7896 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7897 cat >>confdefs.h <<EOF
7898 #define SIZEOF_LONG $ac_cv_sizeof_long
7901 echo "$as_me:7901: checking for long long" >&5
7902 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7903 if test "${ac_cv_type_long_long+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7906 cat >conftest.$ac_ext <<_ACEOF
7907 #line 7907 "configure"
7908 #include "confdefs.h"
7909 $ac_includes_default
7913 if ((long long *) 0)
7915 if (sizeof (long long))
7921 rm -f conftest.$ac_objext
7922 if { (eval echo "$as_me:7922: \"$ac_compile\"") >&5
7923 (eval $ac_compile) 2>&5
7925 echo "$as_me:7925: \$? = $ac_status" >&5
7926 (exit $ac_status); } &&
7927 { ac_try='test -s conftest.$ac_objext'
7928 { (eval echo "$as_me:7928: \"$ac_try\"") >&5
7931 echo "$as_me:7931: \$? = $ac_status" >&5
7932 (exit $ac_status); }; }; then
7933 ac_cv_type_long_long=yes
7935 echo "$as_me: failed program was:" >&5
7936 cat conftest.$ac_ext >&5
7937 ac_cv_type_long_long=no
7939 rm -f conftest.$ac_objext conftest.$ac_ext
7941 echo "$as_me:7941: result: $ac_cv_type_long_long" >&5
7942 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7944 echo "$as_me:7944: checking size of long long" >&5
7945 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
7946 if test "${ac_cv_sizeof_long_long+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 if test "$ac_cv_type_long_long" = yes; then
7950 if test "$cross_compiling" = yes; then
7951 # Depending upon the size, compute the lo and hi bounds.
7952 cat >conftest.$ac_ext <<_ACEOF
7953 #line 7953 "configure"
7954 #include "confdefs.h"
7955 $ac_includes_default
7959 int _array_ [1 - 2 * !((sizeof (long long)) >= 0)]
7964 rm -f conftest.$ac_objext
7965 if { (eval echo "$as_me:7965: \"$ac_compile\"") >&5
7966 (eval $ac_compile) 2>&5
7968 echo "$as_me:7968: \$? = $ac_status" >&5
7969 (exit $ac_status); } &&
7970 { ac_try='test -s conftest.$ac_objext'
7971 { (eval echo "$as_me:7971: \"$ac_try\"") >&5
7974 echo "$as_me:7974: \$? = $ac_status" >&5
7975 (exit $ac_status); }; }; then
7978 cat >conftest.$ac_ext <<_ACEOF
7979 #line 7979 "configure"
7980 #include "confdefs.h"
7981 $ac_includes_default
7985 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
7990 rm -f conftest.$ac_objext
7991 if { (eval echo "$as_me:7991: \"$ac_compile\"") >&5
7992 (eval $ac_compile) 2>&5
7994 echo "$as_me:7994: \$? = $ac_status" >&5
7995 (exit $ac_status); } &&
7996 { ac_try='test -s conftest.$ac_objext'
7997 { (eval echo "$as_me:7997: \"$ac_try\"") >&5
8000 echo "$as_me:8000: \$? = $ac_status" >&5
8001 (exit $ac_status); }; }; then
8002 ac_hi=$ac_mid; break
8004 echo "$as_me: failed program was:" >&5
8005 cat conftest.$ac_ext >&5
8006 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
8008 rm -f conftest.$ac_objext conftest.$ac_ext
8011 echo "$as_me: failed program was:" >&5
8012 cat conftest.$ac_ext >&5
8015 cat >conftest.$ac_ext <<_ACEOF
8016 #line 8016 "configure"
8017 #include "confdefs.h"
8018 $ac_includes_default
8022 int _array_ [1 - 2 * !((sizeof (long long)) >= $ac_mid)]
8027 rm -f conftest.$ac_objext
8028 if { (eval echo "$as_me:8028: \"$ac_compile\"") >&5
8029 (eval $ac_compile) 2>&5
8031 echo "$as_me:8031: \$? = $ac_status" >&5
8032 (exit $ac_status); } &&
8033 { ac_try='test -s conftest.$ac_objext'
8034 { (eval echo "$as_me:8034: \"$ac_try\"") >&5
8037 echo "$as_me:8037: \$? = $ac_status" >&5
8038 (exit $ac_status); }; }; then
8039 ac_lo=$ac_mid; break
8041 echo "$as_me: failed program was:" >&5
8042 cat conftest.$ac_ext >&5
8043 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
8045 rm -f conftest.$ac_objext conftest.$ac_ext
8048 rm -f conftest.$ac_objext conftest.$ac_ext
8049 # Binary search between lo and hi bounds.
8050 while test "x$ac_lo" != "x$ac_hi"; do
8051 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8052 cat >conftest.$ac_ext <<_ACEOF
8053 #line 8053 "configure"
8054 #include "confdefs.h"
8055 $ac_includes_default
8059 int _array_ [1 - 2 * !((sizeof (long long)) <= $ac_mid)]
8064 rm -f conftest.$ac_objext
8065 if { (eval echo "$as_me:8065: \"$ac_compile\"") >&5
8066 (eval $ac_compile) 2>&5
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
8074 echo "$as_me:8074: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8078 echo "$as_me: failed program was:" >&5
8079 cat conftest.$ac_ext >&5
8080 ac_lo=`expr $ac_mid + 1`
8082 rm -f conftest.$ac_objext conftest.$ac_ext
8084 ac_cv_sizeof_long_long=$ac_lo
8086 if test "$cross_compiling" = yes; then
8087 { { echo "$as_me:8087: error: cannot run test program while cross compiling" >&5
8088 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8089 { (exit 1); exit 1; }; }
8091 cat >conftest.$ac_ext <<_ACEOF
8092 #line 8092 "configure"
8093 #include "confdefs.h"
8094 $ac_includes_default
8098 FILE *f = fopen ("conftest.val", "w");
8101 fprintf (f, "%d", (sizeof (long long)));
8107 rm -f conftest$ac_exeext
8108 if { (eval echo "$as_me:8108: \"$ac_link\"") >&5
8109 (eval $ac_link) 2>&5
8111 echo "$as_me:8111: \$? = $ac_status" >&5
8112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8113 { (eval echo "$as_me:8113: \"$ac_try\"") >&5
8116 echo "$as_me:8116: \$? = $ac_status" >&5
8117 (exit $ac_status); }; }; then
8118 ac_cv_sizeof_long_long=`cat conftest.val`
8120 echo "$as_me: program exited with status $ac_status" >&5
8121 echo "$as_me: failed program was:" >&5
8122 cat conftest.$ac_ext >&5
8124 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8129 ac_cv_sizeof_long_long=0
8132 echo "$as_me:8132: result: $ac_cv_sizeof_long_long" >&5
8133 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8134 cat >>confdefs.h <<EOF
8135 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8138 SIZEOF_SHORT=$ac_cv_sizeof_short
8139 SIZEOF_INT=$ac_cv_sizeof_int
8140 SIZEOF_LONG=$ac_cv_sizeof_long
8141 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
8143 echo "$as_me:8143: checking whether byte ordering is bigendian" >&5
8144 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8145 if test "${ac_cv_c_bigendian+set}" = set; then
8146 echo $ECHO_N "(cached) $ECHO_C" >&6
8148 ac_cv_c_bigendian=unknown
8149 # See if sys/param.h defines the BYTE_ORDER macro.
8150 cat >conftest.$ac_ext <<_ACEOF
8151 #line 8151 "configure"
8152 #include "confdefs.h"
8153 #include <sys/types.h>
8154 #include <sys/param.h>
8159 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8167 rm -f conftest.$ac_objext
8168 if { (eval echo "$as_me:8168: \"$ac_compile\"") >&5
8169 (eval $ac_compile) 2>&5
8171 echo "$as_me:8171: \$? = $ac_status" >&5
8172 (exit $ac_status); } &&
8173 { ac_try='test -s conftest.$ac_objext'
8174 { (eval echo "$as_me:8174: \"$ac_try\"") >&5
8177 echo "$as_me:8177: \$? = $ac_status" >&5
8178 (exit $ac_status); }; }; then
8179 # It does; now see whether it defined to BIG_ENDIAN or not.
8180 cat >conftest.$ac_ext <<_ACEOF
8181 #line 8181 "configure"
8182 #include "confdefs.h"
8183 #include <sys/types.h>
8184 #include <sys/param.h>
8189 #if BYTE_ORDER != BIG_ENDIAN
8197 rm -f conftest.$ac_objext
8198 if { (eval echo "$as_me:8198: \"$ac_compile\"") >&5
8199 (eval $ac_compile) 2>&5
8201 echo "$as_me:8201: \$? = $ac_status" >&5
8202 (exit $ac_status); } &&
8203 { ac_try='test -s conftest.$ac_objext'
8204 { (eval echo "$as_me:8204: \"$ac_try\"") >&5
8207 echo "$as_me:8207: \$? = $ac_status" >&5
8208 (exit $ac_status); }; }; then
8209 ac_cv_c_bigendian=yes
8211 echo "$as_me: failed program was:" >&5
8212 cat conftest.$ac_ext >&5
8213 ac_cv_c_bigendian=no
8215 rm -f conftest.$ac_objext conftest.$ac_ext
8217 echo "$as_me: failed program was:" >&5
8218 cat conftest.$ac_ext >&5
8220 rm -f conftest.$ac_objext conftest.$ac_ext
8221 if test $ac_cv_c_bigendian = unknown; then
8222 if test "$cross_compiling" = yes; then
8223 { { echo "$as_me:8223: error: cannot run test program while cross compiling" >&5
8224 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8225 { (exit 1); exit 1; }; }
8227 cat >conftest.$ac_ext <<_ACEOF
8228 #line 8228 "configure"
8229 #include "confdefs.h"
8233 /* Are we little or big endian? From Harbison&Steele. */
8237 char c[sizeof (long)];
8240 exit (u.c[sizeof (long) - 1] == 1);
8243 rm -f conftest$ac_exeext
8244 if { (eval echo "$as_me:8244: \"$ac_link\"") >&5
8245 (eval $ac_link) 2>&5
8247 echo "$as_me:8247: \$? = $ac_status" >&5
8248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8249 { (eval echo "$as_me:8249: \"$ac_try\"") >&5
8252 echo "$as_me:8252: \$? = $ac_status" >&5
8253 (exit $ac_status); }; }; then
8254 ac_cv_c_bigendian=no
8256 echo "$as_me: program exited with status $ac_status" >&5
8257 echo "$as_me: failed program was:" >&5
8258 cat conftest.$ac_ext >&5
8259 ac_cv_c_bigendian=yes
8261 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8265 echo "$as_me:8265: result: $ac_cv_c_bigendian" >&5
8266 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8267 if test $ac_cv_c_bigendian = yes; then
8269 cat >>confdefs.h <<\EOF
8270 #define WORDS_BIGENDIAN 1
8275 echo "$as_me:8275: checking whether struct stat has a st_flags field" >&5
8276 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6
8277 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
8278 echo $ECHO_N "(cached) $ECHO_C" >&6
8280 cat >conftest.$ac_ext <<_ACEOF
8281 #line 8281 "configure"
8282 #include "confdefs.h"
8283 #include <sys/stat.h>
8287 struct stat stat; stat.st_flags = 0;
8292 rm -f conftest.$ac_objext
8293 if { (eval echo "$as_me:8293: \"$ac_compile\"") >&5
8294 (eval $ac_compile) 2>&5
8296 echo "$as_me:8296: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
8298 { ac_try='test -s conftest.$ac_objext'
8299 { (eval echo "$as_me:8299: \"$ac_try\"") >&5
8302 echo "$as_me:8302: \$? = $ac_status" >&5
8303 (exit $ac_status); }; }; then
8304 e2fsprogs_cv_struct_st_flags=yes
8306 echo "$as_me: failed program was:" >&5
8307 cat conftest.$ac_ext >&5
8308 e2fsprogs_cv_struct_st_flags=no
8310 rm -f conftest.$ac_objext conftest.$ac_ext
8313 echo "$as_me:8313: result: $e2fsprogs_cv_struct_st_flags" >&5
8314 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6
8315 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
8316 echo "$as_me:8316: checking whether st_flags field is useful" >&5
8317 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6
8318 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8321 cat >conftest.$ac_ext <<_ACEOF
8322 #line 8322 "configure"
8323 #include "confdefs.h"
8324 #include <sys/stat.h>
8328 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
8333 rm -f conftest.$ac_objext
8334 if { (eval echo "$as_me:8334: \"$ac_compile\"") >&5
8335 (eval $ac_compile) 2>&5
8337 echo "$as_me:8337: \$? = $ac_status" >&5
8338 (exit $ac_status); } &&
8339 { ac_try='test -s conftest.$ac_objext'
8340 { (eval echo "$as_me:8340: \"$ac_try\"") >&5
8343 echo "$as_me:8343: \$? = $ac_status" >&5
8344 (exit $ac_status); }; }; then
8345 e2fsprogs_cv_struct_st_flags_immut=yes
8347 echo "$as_me: failed program was:" >&5
8348 cat conftest.$ac_ext >&5
8349 e2fsprogs_cv_struct_st_flags_immut=no
8351 rm -f conftest.$ac_objext conftest.$ac_ext
8354 echo "$as_me:8354: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
8355 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6
8356 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
8357 cat >>confdefs.h <<\EOF
8358 #define HAVE_STAT_FLAGS 1
8364 for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf
8366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8367 echo "$as_me:8367: checking for $ac_func" >&5
8368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8369 if eval "test \"\${$as_ac_var+set}\" = set"; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
8372 cat >conftest.$ac_ext <<_ACEOF
8373 #line 8373 "configure"
8374 #include "confdefs.h"
8375 /* System header to define __stub macros and hopefully few prototypes,
8376 which can conflict with char $ac_func (); below. */
8378 /* Override any gcc2 internal prototype to avoid an error. */
8382 /* We use char because int might match the return type of a gcc2
8383 builtin and then its argument prototype would still apply. */
8390 /* The GNU C library defines this for functions which it implements
8391 to always fail with ENOSYS. Some functions are actually named
8392 something starting with __ and the normal name is an alias. */
8393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8403 rm -f conftest.$ac_objext conftest$ac_exeext
8404 if { (eval echo "$as_me:8404: \"$ac_link\"") >&5
8405 (eval $ac_link) 2>&5
8407 echo "$as_me:8407: \$? = $ac_status" >&5
8408 (exit $ac_status); } &&
8409 { ac_try='test -s conftest$ac_exeext'
8410 { (eval echo "$as_me:8410: \"$ac_try\"") >&5
8413 echo "$as_me:8413: \$? = $ac_status" >&5
8414 (exit $ac_status); }; }; then
8415 eval "$as_ac_var=yes"
8417 echo "$as_me: failed program was:" >&5
8418 cat conftest.$ac_ext >&5
8419 eval "$as_ac_var=no"
8421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8423 echo "$as_me:8423: result: `eval echo '${'$as_ac_var'}'`" >&5
8424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8425 if test `eval echo '${'$as_ac_var'}'` = yes; then
8426 cat >>confdefs.h <<EOF
8427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8434 echo "$as_me:8434: checking for socket in -lsocket" >&5
8435 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
8436 if test "${ac_cv_lib_socket_socket+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8439 ac_check_lib_save_LIBS=$LIBS
8440 LIBS="-lsocket $LIBS"
8441 cat >conftest.$ac_ext <<_ACEOF
8442 #line 8442 "configure"
8443 #include "confdefs.h"
8445 /* Override any gcc2 internal prototype to avoid an error. */
8449 /* We use char because int might match the return type of a gcc2
8450 builtin and then its argument prototype would still apply. */
8460 rm -f conftest.$ac_objext conftest$ac_exeext
8461 if { (eval echo "$as_me:8461: \"$ac_link\"") >&5
8462 (eval $ac_link) 2>&5
8464 echo "$as_me:8464: \$? = $ac_status" >&5
8465 (exit $ac_status); } &&
8466 { ac_try='test -s conftest$ac_exeext'
8467 { (eval echo "$as_me:8467: \"$ac_try\"") >&5
8470 echo "$as_me:8470: \$? = $ac_status" >&5
8471 (exit $ac_status); }; }; then
8472 ac_cv_lib_socket_socket=yes
8474 echo "$as_me: failed program was:" >&5
8475 cat conftest.$ac_ext >&5
8476 ac_cv_lib_socket_socket=no
8478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8479 LIBS=$ac_check_lib_save_LIBS
8481 echo "$as_me:8481: result: $ac_cv_lib_socket_socket" >&5
8482 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8483 if test $ac_cv_lib_socket_socket = yes; then
8488 echo "$as_me:8488: checking for dlopen in -ldl" >&5
8489 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8490 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
8493 ac_check_lib_save_LIBS=$LIBS
8495 cat >conftest.$ac_ext <<_ACEOF
8496 #line 8496 "configure"
8497 #include "confdefs.h"
8499 /* Override any gcc2 internal prototype to avoid an error. */
8503 /* We use char because int might match the return type of a gcc2
8504 builtin and then its argument prototype would still apply. */
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (eval echo "$as_me:8515: \"$ac_link\"") >&5
8516 (eval $ac_link) 2>&5
8518 echo "$as_me:8518: \$? = $ac_status" >&5
8519 (exit $ac_status); } &&
8520 { ac_try='test -s conftest$ac_exeext'
8521 { (eval echo "$as_me:8521: \"$ac_try\"") >&5
8524 echo "$as_me:8524: \$? = $ac_status" >&5
8525 (exit $ac_status); }; }; then
8526 ac_cv_lib_dl_dlopen=yes
8528 echo "$as_me: failed program was:" >&5
8529 cat conftest.$ac_ext >&5
8530 ac_cv_lib_dl_dlopen=no
8532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8533 LIBS=$ac_check_lib_save_LIBS
8535 echo "$as_me:8535: result: $ac_cv_lib_dl_dlopen" >&5
8536 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8537 if test $ac_cv_lib_dl_dlopen = yes; then
8539 cat >>confdefs.h <<\EOF
8540 #define HAVE_DLOPEN 1
8545 echo "$as_me:8545: checking for optreset" >&5
8546 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
8547 if test "${ac_cv_have_optreset+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 cat >conftest.$ac_ext <<_ACEOF
8551 #line 8551 "configure"
8552 #include "confdefs.h"
8556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8557 egrep "optreset" >/dev/null 2>&1; then
8558 ac_cv_have_optreset=yes
8560 ac_cv_have_optreset=no
8565 echo "$as_me:8565: result: $ac_cv_have_optreset" >&5
8566 echo "${ECHO_T}$ac_cv_have_optreset" >&6
8567 if test $ac_cv_have_optreset = yes; then
8568 cat >>confdefs.h <<\EOF
8569 #define HAVE_OPTRESET 1
8575 cat >>confdefs.h <<\EOF
8576 #define HAVE_EXT2_IOCTLS 1
8598 linux* | gnu* | freebsd*-gnu*)
8599 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
8601 echo "On $host_os systems, root_prefix defaults to ''"
8606 linux* | gnu* | freebsd*-gnu*)
8607 if test "$prefix" = NONE ; then
8609 echo "On $host_os systems, prefix defaults to /usr"
8610 if test "$mandir" = '${prefix}/man' ; then
8611 echo "...and mandir defaults to /usr/share/man"
8612 mandir=/usr/share/man
8617 if test "$root_prefix" = NONE ; then
8618 if test "$prefix" = NONE ; then
8619 root_prefix="$ac_default_prefix"
8621 root_prefix="$prefix"
8624 root_sbindir=$sbindir
8626 root_sysconfdir=$sysconfdir
8628 root_bindir='${root_prefix}/bin'
8629 root_sbindir='${root_prefix}/sbin'
8630 root_libdir='${root_prefix}/lib'
8631 root_sysconfdir='${root_prefix}/etc'
8634 echo "$as_me:8634: checking whether linker accepts -static" >&5
8635 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6
8636 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
8640 cat >conftest.$ac_ext <<_ACEOF
8641 #line 8641 "configure"
8642 #include "confdefs.h"
8652 rm -f conftest.$ac_objext conftest$ac_exeext
8653 if { (eval echo "$as_me:8653: \"$ac_link\"") >&5
8654 (eval $ac_link) 2>&5
8656 echo "$as_me:8656: \$? = $ac_status" >&5
8657 (exit $ac_status); } &&
8658 { ac_try='test -s conftest$ac_exeext'
8659 { (eval echo "$as_me:8659: \"$ac_try\"") >&5
8662 echo "$as_me:8662: \$? = $ac_status" >&5
8663 (exit $ac_status); }; }; then
8664 ac_cv_e2fsprogs_use_static=yes
8666 echo "$as_me: failed program was:" >&5
8667 cat conftest.$ac_ext >&5
8668 ac_cv_e2fsprogs_use_static=no
8670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8671 LDFLAGS=$SAVE_LDFLAGS
8676 ac_cv_e2fsprogs_use_static=no
8679 echo "$as_me:8679: result: $ac_cv_e2fsprogs_use_static" >&5
8680 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6
8682 if test $ac_cv_e2fsprogs_use_static = yes; then
8683 LDFLAG_STATIC=-static
8688 echo "Using Apple Darwin / GNU libintl workaround"
8689 cat >>confdefs.h <<\EOF
8690 #define _INTL_REDIRECT_MACROS 1
8695 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
8696 ET_DIR=`cd ${srcdir}/lib/et; pwd`
8698 if test "$cross_compiling" = yes ; then
8705 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
8706 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
8709 test -d lib || mkdir lib
8710 test -d include || mkdir include
8711 test -d include/linux || mkdir include/linux
8712 test -d include/asm || mkdir include/asm
8713 for i in MCONFIG Makefile e2fsprogs.spec \
8714 util/Makefile util/subst.conf util/gen-tarball \
8715 lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \
8716 lib/uuid/Makefile lib/uuid/uuid_types.h \
8717 lib/blkid/Makefile lib/blkid/blkid_types.h \
8718 lib/evms/Makefile misc/Makefile ext2ed/Makefile e2fsck/Makefile \
8719 debugfs/Makefile tests/Makefile tests/progs/Makefile \
8720 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
8721 if test -d `dirname ${srcdir}/$i` ; then
8722 outlist="$outlist $i"
8725 ac_config_files="$ac_config_files $outlist"
8726 cat >confcache <<\_ACEOF
8727 # This file is a shell script that caches the results of configure
8728 # tests run on this system so they can be shared between configure
8729 # scripts and configure runs, see configure's option --config-cache.
8730 # It is not useful on other systems. If it contains results you don't
8731 # want to keep, you may remove or edit it.
8733 # config.status only pays attention to the cache file if you give it
8734 # the --recheck option to rerun configure.
8736 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8737 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8742 # The following way of writing the cache mishandles newlines in values,
8743 # but we know of no workaround that is simple, portable, and efficient.
8744 # So, don't put newlines in cache variables' values.
8745 # Ultrix sh set writes to stderr and can't be redirected directly,
8746 # and sets the high bit in the cache file unless we assign to the vars.
8749 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8751 # `set' does not quote correctly, so add quotes (double-quote
8752 # substitution turns \\\\ into \\, and sed turns \\ into \).
8755 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8758 # `set' quotes correctly as required by POSIX, so do not add quotes.
8760 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8767 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8769 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8771 if cmp -s $cache_file confcache; then :; else
8772 if test -w $cache_file; then
8773 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8774 cat confcache >$cache_file
8776 echo "not updating unwritable cache $cache_file"
8781 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8782 # Let make expand exec_prefix.
8783 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8785 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8786 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8787 # trailing colons and then remove the whole line if VPATH becomes empty
8788 # (actually we leave an empty line to preserve line numbers).
8789 if test "x$srcdir" = x.; then
8790 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8791 s/:*\$(srcdir):*/:/;
8792 s/:*\${srcdir}:*/:/;
8794 s/^\([^=]*=[ ]*\):*/\1/;
8800 # Transform confdefs.h into DEFS.
8801 # Protect against shell expansion while executing Makefile rules.
8802 # Protect against Makefile macro expansion.
8804 # If the first sed substitution is executed (which looks for macros that
8805 # take arguments), then we branch to the quote section. Otherwise,
8806 # look for a macro that doesn't take arguments.
8807 cat >confdef2opt.sed <<\EOF
8810 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
8812 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
8816 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
8822 # We use echo to avoid assuming a particular line-breaking character.
8823 # The extra dot is to prevent the shell from consuming trailing
8824 # line-breaks from the sub-command output. A line-break within
8825 # single-quotes doesn't work because, if this script is created in a
8826 # platform that uses two characters for line-breaks (e.g., DOS), tr
8828 ac_LF_and_DOT=`echo; echo .`
8829 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
8830 rm -f confdef2opt.sed
8832 : ${CONFIG_STATUS=./config.status}
8833 ac_clean_files_save=$ac_clean_files
8834 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8835 { echo "$as_me:8835: creating $CONFIG_STATUS" >&5
8836 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8837 cat >$CONFIG_STATUS <<_ACEOF
8839 # Generated automatically by configure.
8840 # Run this file to recreate the current configuration.
8841 # Compiler output produced by configure, useful for debugging
8842 # configure, is in config.log if it exists.
8845 SHELL=\${CONFIG_SHELL-$SHELL}
8846 ac_cs_invocation="\$0 \$@"
8850 cat >>$CONFIG_STATUS <<\_ACEOF
8851 # Be Bourne compatible
8852 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8855 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8859 # Name of the executable.
8860 as_me=`echo "$0" |sed 's,.*[\\/],,'`
8862 if expr a : '\(a\)' >/dev/null 2>&1; then
8868 rm -f conf$$ conf$$.exe conf$$.file
8870 if ln -s conf$$.file conf$$ 2>/dev/null; then
8871 # We could just check for DJGPP; but this test a) works b) is more generic
8872 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8873 if test -f conf$$.exe; then
8874 # Don't use ln at all; we don't have any links
8879 elif ln conf$$.file conf$$ 2>/dev/null; then
8884 rm -f conf$$ conf$$.exe conf$$.file
8886 as_executable_p="test -f"
8888 # Support unset when possible.
8889 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8896 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
8897 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
8898 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
8899 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
8900 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
8901 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
8902 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
8903 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
8906 # We need space, tab and new line, in precisely that order.
8912 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
8918 # Files that config.status was made for.
8919 if test -n "$ac_config_files"; then
8920 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8923 if test -n "$ac_config_headers"; then
8924 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8927 if test -n "$ac_config_links"; then
8928 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8931 if test -n "$ac_config_commands"; then
8932 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8935 cat >>$CONFIG_STATUS <<\EOF
8938 \`$as_me' instantiates files from templates according to the
8939 current configuration.
8941 Usage: $0 [OPTIONS] [FILE]...
8943 -h, --help print this help, then exit
8944 -V, --version print version number, then exit
8945 -d, --debug don't remove temporary files
8946 --recheck update $as_me by reconfiguring in the same conditions
8947 --file=FILE[:TEMPLATE]
8948 instantiate the configuration file FILE
8950 Configuration files:
8953 Configuration commands:
8956 Report bugs to <bug-autoconf@gnu.org>."
8959 cat >>$CONFIG_STATUS <<EOF
8962 configured by $0, generated by GNU Autoconf 2.52,
8963 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8965 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8966 Free Software Foundation, Inc.
8967 This config.status script is free software; the Free Software Foundation
8968 gives unlimited permission to copy, distribute and modify it."
8973 cat >>$CONFIG_STATUS <<\EOF
8974 # If no file are specified by the user, then we need to provide default
8975 # value. By we need to know if files were specified by the user.
8981 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8982 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8984 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
8988 *) # This is not an option, so the user has probably given explicit
8990 ac_need_defaults=false;;
8994 # Handling of the options.
8996 cat >>$CONFIG_STATUS <<EOF
8997 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8998 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8999 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9001 cat >>$CONFIG_STATUS <<\EOF
9002 --version | --vers* | -V )
9003 echo "$ac_cs_version"; exit 0 ;;
9005 # Conflict between --help and --header
9006 { { echo "$as_me:9006: error: ambiguous option: $1
9007 Try \`$0 --help' for more information." >&5
9008 echo "$as_me: error: ambiguous option: $1
9009 Try \`$0 --help' for more information." >&2;}
9010 { (exit 1); exit 1; }; };;
9011 --help | --hel | -h )
9012 echo "$ac_cs_usage"; exit 0 ;;
9013 --debug | --d* | -d )
9015 --file | --fil | --fi | --f )
9017 CONFIG_FILES="$CONFIG_FILES $1"
9018 ac_need_defaults=false;;
9019 --header | --heade | --head | --hea )
9021 CONFIG_HEADERS="$CONFIG_HEADERS $1"
9022 ac_need_defaults=false;;
9025 -*) { { echo "$as_me:9025: error: unrecognized option: $1
9026 Try \`$0 --help' for more information." >&5
9027 echo "$as_me: error: unrecognized option: $1
9028 Try \`$0 --help' for more information." >&2;}
9029 { (exit 1); exit 1; }; } ;;
9031 *) ac_config_targets="$ac_config_targets $1" ;;
9040 ## ----------------------- ##
9041 ## Running config.status. ##
9042 ## ----------------------- ##
9044 This file was extended by $as_me 2.52, executed with
9045 CONFIG_FILES = $CONFIG_FILES
9046 CONFIG_HEADERS = $CONFIG_HEADERS
9047 CONFIG_LINKS = $CONFIG_LINKS
9048 CONFIG_COMMANDS = $CONFIG_COMMANDS
9050 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9055 cat >>$CONFIG_STATUS <<EOF
9057 # INIT-COMMANDS section.
9060 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9061 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9063 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
9064 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9065 LINGUAS="${LINGUAS-%UNSET%}"
9069 cat >>$CONFIG_STATUS <<\EOF
9070 for ac_config_target in $ac_config_targets
9072 case "$ac_config_target" in
9073 # Handling of arguments.
9074 "$outlist" ) CONFIG_FILES="$CONFIG_FILES $outlist" ;;
9075 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9076 *) { { echo "$as_me:9076: error: invalid argument: $ac_config_target" >&5
9077 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9078 { (exit 1); exit 1; }; };;
9082 # If the user did not use the arguments to specify the items to instantiate,
9083 # then the envvar interface is used. Set only those that are not.
9084 # We use the long form for the default assignment because of an extremely
9085 # bizarre bug on SunOS 4.1.3.
9086 if $ac_need_defaults; then
9087 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9088 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9091 # Create a temporary directory, and hook for its removal unless debugging.
9094 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9095 trap '{ (exit 1); exit 1; }' 1 2 13 15
9098 # Create a (secure) tmp directory for tmp files.
9101 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
9102 test -n "$tmp" && test -d "$tmp"
9105 tmp=$TMPDIR/cs$$-$RANDOM
9106 (umask 077 && mkdir $tmp)
9109 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
9110 { (exit 1); exit 1; }
9115 cat >>$CONFIG_STATUS <<EOF
9118 # CONFIG_FILES section.
9121 # No need to generate the scripts if there are no CONFIG_FILES.
9122 # This happens for instance when ./config.status config.h
9123 if test -n "\$CONFIG_FILES"; then
9124 # Protect against being on the right side of a sed subst in config.status.
9125 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9126 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9127 s,@SHELL@,$SHELL,;t t
9128 s,@exec_prefix@,$exec_prefix,;t t
9129 s,@prefix@,$prefix,;t t
9130 s,@program_transform_name@,$program_transform_name,;t t
9131 s,@bindir@,$bindir,;t t
9132 s,@sbindir@,$sbindir,;t t
9133 s,@libexecdir@,$libexecdir,;t t
9134 s,@datadir@,$datadir,;t t
9135 s,@sysconfdir@,$sysconfdir,;t t
9136 s,@sharedstatedir@,$sharedstatedir,;t t
9137 s,@localstatedir@,$localstatedir,;t t
9138 s,@libdir@,$libdir,;t t
9139 s,@includedir@,$includedir,;t t
9140 s,@oldincludedir@,$oldincludedir,;t t
9141 s,@infodir@,$infodir,;t t
9142 s,@mandir@,$mandir,;t t
9143 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9144 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9145 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9146 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9147 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9148 s,@build_alias@,$build_alias,;t t
9149 s,@host_alias@,$host_alias,;t t
9150 s,@target_alias@,$target_alias,;t t
9151 s,@ECHO_C@,$ECHO_C,;t t
9152 s,@ECHO_N@,$ECHO_N,;t t
9153 s,@ECHO_T@,$ECHO_T,;t t
9154 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9157 /@MCONFIG@/r $MCONFIG
9159 s,@E2FSPROGS_YEAR@,$E2FSPROGS_YEAR,;t t
9160 s,@E2FSPROGS_MONTH@,$E2FSPROGS_MONTH,;t t
9161 s,@E2FSPROGS_DAY@,$E2FSPROGS_DAY,;t t
9162 s,@E2FSPROGS_VERSION@,$E2FSPROGS_VERSION,;t t
9163 s,@build@,$build,;t t
9164 s,@build_cpu@,$build_cpu,;t t
9165 s,@build_vendor@,$build_vendor,;t t
9166 s,@build_os@,$build_os,;t t
9168 s,@host_cpu@,$host_cpu,;t t
9169 s,@host_vendor@,$host_vendor,;t t
9170 s,@host_os@,$host_os,;t t
9172 s,@CFLAGS@,$CFLAGS,;t t
9173 s,@LDFLAGS@,$LDFLAGS,;t t
9174 s,@CPPFLAGS@,$CPPFLAGS,;t t
9175 s,@ac_ct_CC@,$ac_ct_CC,;t t
9176 s,@EXEEXT@,$EXEEXT,;t t
9177 s,@OBJEXT@,$OBJEXT,;t t
9180 s,@LINUX_INCLUDE@,$LINUX_INCLUDE,;t t
9181 s,@HTREE_CMT@,$HTREE_CMT,;t t
9182 s,@HTREE_CLR_CMT@,$HTREE_CLR_CMT,;t t
9183 s,@EVMS_ABI_CODE@,$EVMS_ABI_CODE,;t t
9184 s,@DLL_CMT@,$DLL_CMT,;t t
9185 /@MAKEFILE_DLL@/r $MAKEFILE_DLL
9186 s,@MAKEFILE_DLL@,,;t t
9187 s,@ELF_CMT@,$ELF_CMT,;t t
9188 /@MAKEFILE_ELF@/r $MAKEFILE_ELF
9189 s,@MAKEFILE_ELF@,,;t t
9190 s,@BSDLIB_CMT@,$BSDLIB_CMT,;t t
9191 /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
9192 s,@MAKEFILE_BSDLIB@,,;t t
9193 s,@PROFILE_CMT@,$PROFILE_CMT,;t t
9194 /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
9195 s,@MAKEFILE_PROFILE@,,;t t
9196 s,@CHECKER_CMT@,$CHECKER_CMT,;t t
9197 /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
9198 s,@MAKEFILE_CHECKER@,,;t t
9199 s,@LIB_EXT@,$LIB_EXT,;t t
9200 s,@STATIC_LIB_EXT@,$STATIC_LIB_EXT,;t t
9201 s,@PROFILED_LIB_EXT@,$PROFILED_LIB_EXT,;t t
9202 s,@SWAPFS_CMT@,$SWAPFS_CMT,;t t
9203 s,@DEBUGFS_CMT@,$DEBUGFS_CMT,;t t
9204 s,@IMAGER_CMT@,$IMAGER_CMT,;t t
9205 s,@RESIZER_CMT@,$RESIZER_CMT,;t t
9206 s,@E2FSCK_TYPE@,$E2FSCK_TYPE,;t t
9207 s,@FSCK_PROG@,$FSCK_PROG,;t t
9208 s,@FSCK_MAN@,$FSCK_MAN,;t t
9209 /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
9210 s,@MAKEFILE_LIBRARY@,,;t t
9211 s,@PACKAGE@,$PACKAGE,;t t
9212 s,@VERSION@,$VERSION,;t t
9213 s,@SET_MAKE@,$SET_MAKE,;t t
9214 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9215 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9216 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9217 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9218 s,@MSGFMT@,$MSGFMT,;t t
9219 s,@GMSGFMT@,$GMSGFMT,;t t
9220 s,@XGETTEXT@,$XGETTEXT,;t t
9221 s,@MSGMERGE@,$MSGMERGE,;t t
9222 s,@RANLIB@,$RANLIB,;t t
9223 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9224 s,@ALLOCA@,$ALLOCA,;t t
9225 s,@GLIBC21@,$GLIBC21,;t t
9226 s,@LIBICONV@,$LIBICONV,;t t
9227 s,@LTLIBICONV@,$LTLIBICONV,;t t
9228 s,@INTLBISON@,$INTLBISON,;t t
9229 s,@USE_NLS@,$USE_NLS,;t t
9230 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
9231 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9232 s,@CATOBJEXT@,$CATOBJEXT,;t t
9233 s,@INTLOBJS@,$INTLOBJS,;t t
9234 s,@DATADIRNAME@,$DATADIRNAME,;t t
9235 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9236 s,@GENCAT@,$GENCAT,;t t
9237 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
9238 s,@INTLLIBS@,$INTLLIBS,;t t
9239 s,@LIBINTL@,$LIBINTL,;t t
9240 s,@LTLIBINTL@,$LTLIBINTL,;t t
9241 s,@POSUB@,$POSUB,;t t
9242 s,@BINARY_TYPE@,$BINARY_TYPE,;t t
9248 s,@CHMOD@,$CHMOD,;t t
9252 s,@LDCONFIG@,$LDCONFIG,;t t
9254 s,@ac_ct_AR@,$ac_ct_AR,;t t
9255 s,@STRIP@,$STRIP,;t t
9256 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9257 s,@BUILD_CC@,$BUILD_CC,;t t
9258 s,@SIZEOF_SHORT@,$SIZEOF_SHORT,;t t
9259 s,@SIZEOF_INT@,$SIZEOF_INT,;t t
9260 s,@SIZEOF_LONG@,$SIZEOF_LONG,;t t
9261 s,@SIZEOF_LONG_LONG@,$SIZEOF_LONG_LONG,;t t
9262 s,@SOCKET_LIB@,$SOCKET_LIB,;t t
9263 s,@DLOPEN_LIB@,$DLOPEN_LIB,;t t
9264 s,@LINUX_CMT@,$LINUX_CMT,;t t
9265 s,@CYGWIN_CMT@,$CYGWIN_CMT,;t t
9266 s,@UNIX_CMT@,$UNIX_CMT,;t t
9267 s,@EVMS_CMT@,$EVMS_CMT,;t t
9268 s,@root_prefix@,$root_prefix,;t t
9269 s,@root_bindir@,$root_bindir,;t t
9270 s,@root_sbindir@,$root_sbindir,;t t
9271 s,@root_libdir@,$root_libdir,;t t
9272 s,@root_sysconfdir@,$root_sysconfdir,;t t
9273 s,@LDFLAG_STATIC@,$LDFLAG_STATIC,;t t
9274 s,@SS_DIR@,$SS_DIR,;t t
9275 s,@ET_DIR@,$ET_DIR,;t t
9276 s,@DO_TEST_SUITE@,$DO_TEST_SUITE,;t t
9277 s,@INTL_FLAGS@,$INTL_FLAGS,;t t
9282 cat >>$CONFIG_STATUS <<\EOF
9283 # Split the substitutions into bite-sized pieces for seds with
9284 # small command number limits, like on Digital OSF/1 and HP-UX.
9286 ac_sed_frag=1 # Number of current file.
9287 ac_beg=1 # First line for current file.
9288 ac_end=$ac_max_sed_lines # Line after last line for current file.
9291 while $ac_more_lines; do
9292 if test $ac_beg -gt 1; then
9293 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9295 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9297 if test ! -s $tmp/subs.frag; then
9300 # The purpose of the label and of the branching condition is to
9301 # speed up the sed processing (if there are no `@' at all, there
9302 # is no need to browse any of the substitutions).
9303 # These are the two extra sed commands mentioned above.
9305 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9306 if test -z "$ac_sed_cmds"; then
9307 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9309 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9311 ac_sed_frag=`expr $ac_sed_frag + 1`
9313 ac_end=`expr $ac_end + $ac_max_sed_lines`
9316 if test -z "$ac_sed_cmds"; then
9319 fi # test -n "$CONFIG_FILES"
9322 cat >>$CONFIG_STATUS <<\EOF
9323 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9324 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9326 - | *:- | *:-:* ) # input from stdin
9328 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9329 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9330 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9331 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9332 * ) ac_file_in=$ac_file.in ;;
9335 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9336 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9337 X"$ac_file" : 'X\(//\)[^/]' \| \
9338 X"$ac_file" : 'X\(//\)$' \| \
9339 X"$ac_file" : 'X\(/\)' \| \
9340 . : '\(.\)' 2>/dev/null ||
9342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9343 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9344 /^X\(\/\/\)$/{ s//\1/; q; }
9345 /^X\(\/\).*/{ s//\1/; q; }
9347 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9349 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9353 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9354 case $as_mkdir_dir in
9355 # Skip DOS drivespec
9356 ?:) as_incr_dir=$as_mkdir_dir ;;
9358 as_incr_dir=$as_incr_dir/$as_mkdir_dir
9359 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
9364 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
9365 # A "../" for each directory in $ac_dir_suffix.
9366 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
9368 ac_dir_suffix= ac_dots=
9373 if test -z "$ac_dots"; then
9376 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
9379 ac_srcdir=$srcdir$ac_dir_suffix;
9380 ac_top_srcdir=$srcdir ;;
9382 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
9383 ac_top_srcdir=$ac_dots$srcdir ;;
9387 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9388 *) ac_INSTALL=$ac_dots$INSTALL ;;
9391 if test x"$ac_file" != x-; then
9392 { echo "$as_me:9392: creating $ac_file" >&5
9393 echo "$as_me: creating $ac_file" >&6;}
9396 # Let's still pretend it is `configure' which instantiates (i.e., don't
9397 # use $as_me), people would be surprised to read:
9398 # /* config.h. Generated automatically by config.status. */
9399 configure_input="Generated automatically from `echo $ac_file_in |
9400 sed 's,.*/,,'` by configure."
9402 # First look for the input files in the build tree, otherwise in the
9404 ac_file_inputs=`IFS=:
9405 for f in $ac_file_in; do
9407 -) echo $tmp/stdin ;;
9409 # Absolute (can't be DOS-style, as IFS=:)
9410 test -f "$f" || { { echo "$as_me:9410: error: cannot find input file: $f" >&5
9411 echo "$as_me: error: cannot find input file: $f" >&2;}
9412 { (exit 1); exit 1; }; }
9415 if test -f "$f"; then
9418 elif test -f "$srcdir/$f"; then
9423 { { echo "$as_me:9423: error: cannot find input file: $f" >&5
9424 echo "$as_me: error: cannot find input file: $f" >&2;}
9425 { (exit 1); exit 1; }; }
9428 done` || { (exit 1); exit 1; }
9430 cat >>$CONFIG_STATUS <<EOF
9434 cat >>$CONFIG_STATUS <<\EOF
9436 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9437 s,@configure_input@,$configure_input,;t t
9438 s,@srcdir@,$ac_srcdir,;t t
9439 s,@top_srcdir@,$ac_top_srcdir,;t t
9440 s,@INSTALL@,$ac_INSTALL,;t t
9441 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9443 if test x"$ac_file" != x-; then
9444 mv $tmp/out $ac_file
9452 cat >>$CONFIG_STATUS <<\EOF
9455 # CONFIG_COMMANDS section.
9457 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9458 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9459 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9463 for ac_file in $CONFIG_FILES; do
9464 # Support "outfile[:infile[:infile...]]"
9466 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9468 # PO directories have a Makefile.in generated from Makefile.in.in.
9469 case "$ac_file" in */Makefile.in)
9470 # Adjust a relative srcdir.
9471 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9472 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9473 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9474 # In autoconf-2.13 it is called $ac_given_srcdir.
9475 # In autoconf-2.50 it is called $srcdir.
9476 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9477 case "$ac_given_srcdir" in
9478 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9479 /*) top_srcdir="$ac_given_srcdir" ;;
9480 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9482 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9483 rm -f "$ac_dir/POTFILES"
9484 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9485 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9486 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
9487 # on $ac_dir but don't depend on user-specified configuration
9489 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9490 # The LINGUAS file contains the set of available languages.
9491 if test -n "$ALL_LINGUAS"; then
9492 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9494 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9495 # Hide the ALL_LINGUAS assigment from automake.
9496 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9498 case "$ac_given_srcdir" in
9500 *) srcdirpre='$(srcdir)/' ;;
9506 for lang in $ALL_LINGUAS; do
9507 POFILES="$POFILES $srcdirpre$lang.po"
9508 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9509 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9510 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9512 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9513 # environment variable.
9515 if test -n "$ALL_LINGUAS"; then
9516 for presentlang in $ALL_LINGUAS; do
9518 if test "%UNSET%" != "$LINGUAS"; then
9519 desiredlanguages="$LINGUAS"
9521 desiredlanguages="$ALL_LINGUAS"
9523 for desiredlang in $desiredlanguages; do
9524 # Use the presentlang catalog if desiredlang is
9525 # a. equal to presentlang, or
9526 # b. a variant of presentlang (because in this case,
9527 # presentlang can be used as a fallback for messages
9528 # which are not translated in the desiredlang catalog).
9529 case "$desiredlang" in
9530 "$presentlang"*) useit=yes;;
9533 if test $useit = yes; then
9534 INST_LINGUAS="$INST_LINGUAS $presentlang"
9539 if test -n "$INST_LINGUAS"; then
9540 for lang in $INST_LINGUAS; do
9541 CATALOGS="$CATALOGS $lang.gmo"
9544 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9545 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9546 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9547 if test -f "$f"; then
9549 *.orig | *.bak | *~) ;;
9550 *) cat "$f" >> "$ac_dir/Makefile" ;;
9562 cat >>$CONFIG_STATUS <<\EOF
9564 { (exit 0); exit 0; }
9566 chmod +x $CONFIG_STATUS
9567 ac_clean_files=$ac_clean_files_save
9569 # configure is writing to config.log, and then calls config.status.
9570 # config.status does its own redirection, appending to config.log.
9571 # Unfortunately, on DOS this fails, as config.log is still kept open
9572 # by configure, so config.status won't be able to write to it; its
9573 # output is simply discarded. So we exec the FD to /dev/null,
9574 # effectively closing config.log, so it can be properly (re)opened and
9575 # appended to by config.status. When coming back to configure, we
9576 # need to make the FD available again.
9577 if test "$no_create" != yes; then
9580 $SHELL $CONFIG_STATUS || ac_cs_success=false
9582 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9583 # would make configure fail if this is the last instruction.
9584 $ac_cs_success || { (exit 1); exit 1; }