3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 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.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-cc=COMPILER select compiler to use"
17 --with-linker=LINKER select linker to use"
19 --with-ccopts=CCOPTS select compiler command line options"
21 --with-ldopts=LDOPTS select linker command line options"
23 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
25 --enable-compression enable EXPERIMENTAL compression support"
27 --enable-htree enable EXPERIMENTAL htree directory support"
29 --enable-htree-clear clear htree because we don't trust e2fsck"
31 --enable-evms-10 use EVMS 1.0 ABI (instead of EVMS 1.2)"
33 --enable-evms-11 use EVMS 1.1 ABI (instead of EVMS 1.1)"
35 --enable-dll-shlibs select DLL libraries"
37 --enable-elf-shlibs select ELF shared libraries"
39 --enable-bsd-shlibs select BSD shared libraries"
41 --enable-profile build profiling libraries"
43 --enable-checker build checker libraries"
45 --enable-jbd-debug enable journal debugging"
47 --enable-blkid-debug enable blkid debugging"
49 --disable-swapfs disable support of legacy byte-swapped filesystems"
51 --disable-debugfs disable support of debugfs program"
53 --disable-imager disable support of e2image program"
55 --disable-resizer disable support of e2resize program"
57 --enable-dynamic-e2fsck build e2fsck dynamically"
59 --enable-fsck build fsck wrapper program"
61 --enable-old-bitops Use old (non-standard but native) bitmask operations"
63 --enable-nls Turn on Native Language Support"
65 --with-included-gettext use the GNU gettext library included here"
67 --with-catgets use catgets functions if available"
69 # Initialize some variables set by options.
70 # The variables have the same names as the options, with
71 # dashes changed to underlines.
73 cache_file=./config.cache
82 program_transform_name=s,x,x,
90 bindir='${exec_prefix}/bin'
91 sbindir='${exec_prefix}/sbin'
92 libexecdir='${exec_prefix}/libexec'
93 datadir='${prefix}/share'
94 sysconfdir='${prefix}/etc'
95 sharedstatedir='${prefix}/com'
96 localstatedir='${prefix}/var'
97 libdir='${exec_prefix}/lib'
98 includedir='${prefix}/include'
99 oldincludedir='/usr/include'
100 infodir='${prefix}/info'
101 mandir='${prefix}/man'
103 # Initialize some other variables.
106 SHELL=${CONFIG_SHELL-/bin/sh}
107 # Maximum number of lines to put in a shell here document.
114 # If the previous option needs an argument, assign it.
115 if test -n "$ac_prev"; then
116 eval "$ac_prev=\$ac_option"
122 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126 # Accept the important Cygnus configure options, so we can diagnose typos.
130 -bindir | --bindir | --bindi | --bind | --bin | --bi)
132 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
133 bindir="$ac_optarg" ;;
135 -build | --build | --buil | --bui | --bu)
137 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
138 build="$ac_optarg" ;;
140 -cache-file | --cache-file | --cache-fil | --cache-fi \
141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
142 ac_prev=cache_file ;;
143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
145 cache_file="$ac_optarg" ;;
147 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
149 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
151 datadir="$ac_optarg" ;;
153 -disable-* | --disable-*)
154 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
155 # Reject names that are not valid shell variable names.
156 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
159 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}=no" ;;
162 -enable-* | --enable-*)
163 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164 # Reject names that are not valid shell variable names.
165 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
168 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
173 eval "enable_${ac_feature}='$ac_optarg'" ;;
175 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
176 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
177 | --exec | --exe | --ex)
178 ac_prev=exec_prefix ;;
179 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
180 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
181 | --exec=* | --exe=* | --ex=*)
182 exec_prefix="$ac_optarg" ;;
184 -gas | --gas | --ga | --g)
185 # Obsolete; use --with-gas.
188 -help | --help | --hel | --he)
189 # Omit some internal or obsolete options to make the list less imposing.
190 # This message is too long to be a string in the A/UX 3.1 sh.
192 Usage: configure [options] [host]
193 Options: [defaults in brackets after descriptions]
195 --cache-file=FILE cache test results in FILE
196 --help print this message
197 --no-create do not create output files
198 --quiet, --silent do not print \`checking...' messages
199 --version print the version of autoconf that created configure
200 Directory and file names:
201 --prefix=PREFIX install architecture-independent files in PREFIX
203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
205 --bindir=DIR user executables in DIR [EPREFIX/bin]
206 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
207 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
208 --datadir=DIR read-only architecture-independent data in DIR
210 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
211 --sharedstatedir=DIR modifiable architecture-independent data in DIR
213 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
214 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
215 --includedir=DIR C header files in DIR [PREFIX/include]
216 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
217 --infodir=DIR info documentation in DIR [PREFIX/info]
218 --mandir=DIR man documentation in DIR [PREFIX/man]
219 --srcdir=DIR find the sources in DIR [configure dir or ..]
220 --program-prefix=PREFIX prepend PREFIX to installed program names
221 --program-suffix=SUFFIX append SUFFIX to installed program names
222 --program-transform-name=PROGRAM
223 run sed PROGRAM on installed program names
227 --build=BUILD configure for building on BUILD [BUILD=HOST]
228 --host=HOST configure for HOST [guessed]
229 --target=TARGET configure for TARGET [TARGET=HOST]
230 Features and packages:
231 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
232 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
233 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
234 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
235 --x-includes=DIR X include files are in DIR
236 --x-libraries=DIR X library files are in DIR
238 if test -n "$ac_help"; then
239 echo "--enable and --with options recognized:$ac_help"
243 -host | --host | --hos | --ho)
245 -host=* | --host=* | --hos=* | --ho=*)
248 -includedir | --includedir | --includedi | --included | --include \
249 | --includ | --inclu | --incl | --inc)
250 ac_prev=includedir ;;
251 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
252 | --includ=* | --inclu=* | --incl=* | --inc=*)
253 includedir="$ac_optarg" ;;
255 -infodir | --infodir | --infodi | --infod | --info | --inf)
257 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
258 infodir="$ac_optarg" ;;
260 -libdir | --libdir | --libdi | --libd)
262 -libdir=* | --libdir=* | --libdi=* | --libd=*)
263 libdir="$ac_optarg" ;;
265 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
266 | --libexe | --libex | --libe)
267 ac_prev=libexecdir ;;
268 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
269 | --libexe=* | --libex=* | --libe=*)
270 libexecdir="$ac_optarg" ;;
272 -localstatedir | --localstatedir | --localstatedi | --localstated \
273 | --localstate | --localstat | --localsta | --localst \
274 | --locals | --local | --loca | --loc | --lo)
275 ac_prev=localstatedir ;;
276 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
277 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
278 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
279 localstatedir="$ac_optarg" ;;
281 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
283 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
284 mandir="$ac_optarg" ;;
287 # Obsolete; use --without-fp.
290 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
295 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
298 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
299 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
300 | --oldin | --oldi | --old | --ol | --o)
301 ac_prev=oldincludedir ;;
302 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
303 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
304 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
305 oldincludedir="$ac_optarg" ;;
307 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
309 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
310 prefix="$ac_optarg" ;;
312 -program-prefix | --program-prefix | --program-prefi | --program-pref \
313 | --program-pre | --program-pr | --program-p)
314 ac_prev=program_prefix ;;
315 -program-prefix=* | --program-prefix=* | --program-prefi=* \
316 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
317 program_prefix="$ac_optarg" ;;
319 -program-suffix | --program-suffix | --program-suffi | --program-suff \
320 | --program-suf | --program-su | --program-s)
321 ac_prev=program_suffix ;;
322 -program-suffix=* | --program-suffix=* | --program-suffi=* \
323 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
324 program_suffix="$ac_optarg" ;;
326 -program-transform-name | --program-transform-name \
327 | --program-transform-nam | --program-transform-na \
328 | --program-transform-n | --program-transform- \
329 | --program-transform | --program-transfor \
330 | --program-transfo | --program-transf \
331 | --program-trans | --program-tran \
332 | --progr-tra | --program-tr | --program-t)
333 ac_prev=program_transform_name ;;
334 -program-transform-name=* | --program-transform-name=* \
335 | --program-transform-nam=* | --program-transform-na=* \
336 | --program-transform-n=* | --program-transform-=* \
337 | --program-transform=* | --program-transfor=* \
338 | --program-transfo=* | --program-transf=* \
339 | --program-trans=* | --program-tran=* \
340 | --progr-tra=* | --program-tr=* | --program-t=*)
341 program_transform_name="$ac_optarg" ;;
343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
344 | -silent | --silent | --silen | --sile | --sil)
347 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
349 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
351 sbindir="$ac_optarg" ;;
353 -sharedstatedir | --sharedstatedir | --sharedstatedi \
354 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
355 | --sharedst | --shareds | --shared | --share | --shar \
357 ac_prev=sharedstatedir ;;
358 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
359 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
360 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
362 sharedstatedir="$ac_optarg" ;;
364 -site | --site | --sit)
366 -site=* | --site=* | --sit=*)
369 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
371 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
372 srcdir="$ac_optarg" ;;
374 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
375 | --syscon | --sysco | --sysc | --sys | --sy)
376 ac_prev=sysconfdir ;;
377 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
378 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
379 sysconfdir="$ac_optarg" ;;
381 -target | --target | --targe | --targ | --tar | --ta | --t)
383 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
384 target="$ac_optarg" ;;
386 -v | -verbose | --verbose | --verbos | --verbo | --verb)
389 -version | --version | --versio | --versi | --vers)
390 echo "configure generated by autoconf version 2.13"
394 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 eval "with_${ac_package}='$ac_optarg'" ;;
406 -without-* | --without-*)
407 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
408 # Reject names that are not valid shell variable names.
409 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
412 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 eval "with_${ac_package}=no" ;;
416 # Obsolete; use --with-x.
419 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
420 | --x-incl | --x-inc | --x-in | --x-i)
421 ac_prev=x_includes ;;
422 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
423 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
424 x_includes="$ac_optarg" ;;
426 -x-libraries | --x-libraries | --x-librarie | --x-librari \
427 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
428 ac_prev=x_libraries ;;
429 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
430 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
431 x_libraries="$ac_optarg" ;;
433 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
437 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438 echo "configure: warning: $ac_option: invalid host type" 1>&2
440 if test "x$nonopt" != xNONE; then
441 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
449 if test -n "$ac_prev"; then
450 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
455 # File descriptor usage:
458 # 2 errors and warnings
459 # 3 some systems may open it to /dev/tty
460 # 4 used on the Kubota Titan
461 # 6 checking for... messages and results
462 # 5 compiler messages saved in config.log
463 if test "$silent" = yes; then
471 This file contains any messages produced by compilers while
472 running configure, to aid debugging if configure makes a mistake.
475 # Strip out --no-create and --no-recursion so they do not pile up.
476 # Also quote any args containing shell metacharacters.
481 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482 | --no-cr | --no-c) ;;
483 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
484 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
487 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
492 # Only set these to C if already set. These must not be set unconditionally
493 # because not all systems understand e.g. LANG=C (notably SCO).
494 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495 # Non-C LC_CTYPE values break the ctype check.
496 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
497 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
498 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
499 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
501 # confdefs.h avoids OS command line length limits that DEFS can exceed.
502 rm -rf conftest* confdefs.h
503 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
506 # A filename unique to this package, relative to the directory that
507 # configure is in, which we can look for to find out if srcdir is correct.
508 ac_unique_file=version.h
510 # Find the source files, if location was not specified.
511 if test -z "$srcdir"; then
512 ac_srcdir_defaulted=yes
513 # Try the directory containing this script, then its parent.
515 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
518 if test ! -r $srcdir/$ac_unique_file; then
522 ac_srcdir_defaulted=no
524 if test ! -r $srcdir/$ac_unique_file; then
525 if test "$ac_srcdir_defaulted" = yes; then
526 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
528 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
531 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
533 # Prefer explicitly selected file to automatically selected ones.
534 if test -z "$CONFIG_SITE"; then
535 if test "x$prefix" != xNONE; then
536 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
538 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
541 for ac_site_file in $CONFIG_SITE; do
542 if test -r "$ac_site_file"; then
543 echo "loading site script $ac_site_file"
548 if test -r "$cache_file"; then
549 echo "loading cache $cache_file"
552 echo "creating cache $cache_file"
557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
558 ac_cpp='$CPP $CPPFLAGS'
559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
561 cross_compiling=$ac_cv_prog_cc_cross
565 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
566 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
567 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574 ac_n= ac_c='\c' ac_t=
582 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
583 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
584 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
586 MONTH=`echo $DATE | awk -F- '{print $2}'`
587 YEAR=`echo $DATE | awk -F- '{print $3}'`
589 if expr $YEAR ">" 1900 > /dev/null ; then
591 elif expr $YEAR ">" 90 >/dev/null ; then
592 E2FSPROGS_YEAR=19$YEAR
594 E2FSPROGS_YEAR=20$YEAR
598 Jan) E2FSPROGS_MONTH="January" ;;
599 Feb) E2FSPROGS_MONTH="February" ;;
600 Mar) E2FSPROGS_MONTH="March" ;;
601 Apr) E2FSPROGS_MONTH="April" ;;
602 May) E2FSPROGS_MONTH="May" ;;
603 Jun) E2FSPROGS_MONTH="June" ;;
604 Jul) E2FSPROGS_MONTH="July" ;;
605 Aug) E2FSPROGS_MONTH="August" ;;
606 Sep) E2FSPROGS_MONTH="September" ;;
607 Oct) E2FSPROGS_MONTH="October" ;;
608 Nov) E2FSPROGS_MONTH="November" ;;
609 Dec) E2FSPROGS_MONTH="December" ;;
610 *) echo "Unknown month $MONTH??" ;;
613 unset DATE MONTH YEAR
614 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
615 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
620 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
621 if test -f $ac_dir/install-sh; then
623 ac_install_sh="$ac_aux_dir/install-sh -c"
625 elif test -f $ac_dir/install.sh; then
627 ac_install_sh="$ac_aux_dir/install.sh -c"
631 if test -z "$ac_aux_dir"; then
632 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
634 ac_config_guess=$ac_aux_dir/config.guess
635 ac_config_sub=$ac_aux_dir/config.sub
636 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
639 # Make sure we can run config.sub.
640 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
641 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
644 echo $ac_n "checking host system type""... $ac_c" 1>&6
645 echo "configure:646: checking host system type" >&5
648 case "$host_alias" in
652 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
653 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
655 *) host_alias=$nonopt ;;
659 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
660 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
661 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
662 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
663 echo "$ac_t""$host" 1>&6
665 # Check whether --with-cc or --without-cc was given.
666 if test "${with_cc+set}" = set; then
668 echo "$ac_t""CC=$withval" 1>&6
671 if test -z "$CC" ; then CC=cc; fi
672 echo "$ac_t""CC defaults to $CC" 1>&6
676 # Extract the first word of "gcc", so it can be a program name with args.
677 set dummy gcc; ac_word=$2
678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
679 echo "configure:680: checking for $ac_word" >&5
680 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
683 if test -n "$CC"; then
684 ac_cv_prog_CC="$CC" # Let the user override the test.
686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
688 for ac_dir in $ac_dummy; do
689 test -z "$ac_dir" && ac_dir=.
690 if test -f $ac_dir/$ac_word; then
699 if test -n "$CC"; then
700 echo "$ac_t""$CC" 1>&6
702 echo "$ac_t""no" 1>&6
705 if test -z "$CC"; then
706 # Extract the first word of "cc", so it can be a program name with args.
707 set dummy cc; ac_word=$2
708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
709 echo "configure:710: checking for $ac_word" >&5
710 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
711 echo $ac_n "(cached) $ac_c" 1>&6
713 if test -n "$CC"; then
714 ac_cv_prog_CC="$CC" # Let the user override the test.
716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
719 for ac_dir in $ac_dummy; do
720 test -z "$ac_dir" && ac_dir=.
721 if test -f $ac_dir/$ac_word; then
722 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
731 if test $ac_prog_rejected = yes; then
732 # We found a bogon in the path, so make sure we never use it.
733 set dummy $ac_cv_prog_CC
735 if test $# -gt 0; then
736 # We chose a different compiler from the bogus one.
737 # However, it has the same basename, so the bogon will be chosen
738 # first if we set CC to just the basename; use the full file name.
740 set dummy "$ac_dir/$ac_word" "$@"
748 if test -n "$CC"; then
749 echo "$ac_t""$CC" 1>&6
751 echo "$ac_t""no" 1>&6
754 if test -z "$CC"; then
757 # Extract the first word of "cl", so it can be a program name with args.
758 set dummy cl; ac_word=$2
759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
760 echo "configure:761: checking for $ac_word" >&5
761 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
762 echo $ac_n "(cached) $ac_c" 1>&6
764 if test -n "$CC"; then
765 ac_cv_prog_CC="$CC" # Let the user override the test.
767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
769 for ac_dir in $ac_dummy; do
770 test -z "$ac_dir" && ac_dir=.
771 if test -f $ac_dir/$ac_word; then
780 if test -n "$CC"; then
781 echo "$ac_t""$CC" 1>&6
783 echo "$ac_t""no" 1>&6
788 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
791 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
792 echo "configure:793: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
796 ac_cpp='$CPP $CPPFLAGS'
797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
799 cross_compiling=$ac_cv_prog_cc_cross
801 cat > conftest.$ac_ext << EOF
803 #line 804 "configure"
804 #include "confdefs.h"
808 if { (eval echo configure:809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
809 ac_cv_prog_cc_works=yes
810 # If we can't run a trivial program, we are probably using a cross compiler.
811 if (./conftest; exit) 2>/dev/null; then
812 ac_cv_prog_cc_cross=no
814 ac_cv_prog_cc_cross=yes
817 echo "configure: failed program was:" >&5
818 cat conftest.$ac_ext >&5
819 ac_cv_prog_cc_works=no
823 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
824 ac_cpp='$CPP $CPPFLAGS'
825 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
826 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
827 cross_compiling=$ac_cv_prog_cc_cross
829 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
830 if test $ac_cv_prog_cc_works = no; then
831 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
833 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
834 echo "configure:835: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
835 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
836 cross_compiling=$ac_cv_prog_cc_cross
838 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
839 echo "configure:840: checking whether we are using GNU C" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 cat > conftest.c <<EOF
848 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
855 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
857 if test $ac_cv_prog_gcc = yes; then
863 ac_test_CFLAGS="${CFLAGS+set}"
864 ac_save_CFLAGS="$CFLAGS"
866 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
867 echo "configure:868: checking whether ${CC-cc} accepts -g" >&5
868 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
869 echo $ac_n "(cached) $ac_c" 1>&6
871 echo 'void f(){}' > conftest.c
872 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
881 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
882 if test "$ac_test_CFLAGS" = set; then
883 CFLAGS="$ac_save_CFLAGS"
884 elif test $ac_cv_prog_cc_g = yes; then
885 if test "$GCC" = yes; then
891 if test "$GCC" = yes; then
898 # Check whether --with-linker or --without-linker was given.
899 if test "${with_linker+set}" = set; then
900 withval="$with_linker"
901 echo "$ac_t""LD=$withval" 1>&6
904 if test -z "$LD" ; then LD=$CC; fi
905 echo "$ac_t""LD defaults to $LD" 1>&6
909 # Check whether --with-ccopts or --without-ccopts was given.
910 if test "${with_ccopts+set}" = set; then
911 withval="$with_ccopts"
912 echo "$ac_t""CCOPTS is $withval" 1>&6
915 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
916 echo "configure:917: checking how to run the C preprocessor" >&5
917 # On Suns, sometimes $CPP names a directory.
918 if test -n "$CPP" && test -d "$CPP"; then
921 if test -z "$CPP"; then
922 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
925 # This must be in double quotes, not single quotes, because CPP may get
926 # substituted into the Makefile and "${CC-cc}" will confuse make.
928 # On the NeXT, cc -E runs the code through the compiler's parser,
929 # not just through cpp.
930 cat > conftest.$ac_ext <<EOF
931 #line 932 "configure"
932 #include "confdefs.h"
936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
937 { (eval echo configure:938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
939 if test -z "$ac_err"; then
943 echo "configure: failed program was:" >&5
944 cat conftest.$ac_ext >&5
946 CPP="${CC-cc} -E -traditional-cpp"
947 cat > conftest.$ac_ext <<EOF
948 #line 949 "configure"
949 #include "confdefs.h"
953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
954 { (eval echo configure:955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
956 if test -z "$ac_err"; then
960 echo "configure: failed program was:" >&5
961 cat conftest.$ac_ext >&5
963 CPP="${CC-cc} -nologo -E"
964 cat > conftest.$ac_ext <<EOF
965 #line 966 "configure"
966 #include "confdefs.h"
970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
971 { (eval echo configure:972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
973 if test -z "$ac_err"; then
977 echo "configure: failed program was:" >&5
978 cat conftest.$ac_ext >&5
987 ac_cv_prog_CPP="$CPP"
989 CPP="$ac_cv_prog_CPP"
991 ac_cv_prog_CPP="$CPP"
993 echo "$ac_t""$CPP" 1>&6
995 ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
996 echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
997 echo "configure:998: checking for linux/fs.h" >&5
998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1001 cat > conftest.$ac_ext <<EOF
1002 #line 1003 "configure"
1003 #include "confdefs.h"
1004 #include <linux/fs.h>
1006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1007 { (eval echo configure:1008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1008 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1009 if test -z "$ac_err"; then
1011 eval "ac_cv_header_$ac_safe=yes"
1014 echo "configure: failed program was:" >&5
1015 cat conftest.$ac_ext >&5
1017 eval "ac_cv_header_$ac_safe=no"
1021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1022 echo "$ac_t""yes" 1>&6
1025 echo "$ac_t""no" 1>&6
1029 if test "$linux_headers" != yes; then
1030 LINUX_INCLUDE='-I$(top_builddir)/include'
1036 # Check whether --with-ldopts or --without-ldopts was given.
1037 if test "${with_ldopts+set}" = set; then
1038 withval="$with_ldopts"
1039 echo "$ac_t""LDFLAGS is $withval" 1>&6
1045 # Check whether --with-root-prefix or --without-root-prefix was given.
1046 if test "${with_root_prefix+set}" = set; then
1047 withval="$with_root_prefix"
1048 root_prefix=$withval
1052 # Check whether --enable-compression or --disable-compression was given.
1053 if test "${enable_compression+set}" = set; then
1054 enableval="$enable_compression"
1055 if test "$enableval" = "no"
1057 echo "Disabling compression support"
1059 cat >> confdefs.h <<\EOF
1060 #define ENABLE_COMPRESSION 1
1063 echo "Enabling compression support"
1064 echo "WARNING: Compression support is experimental"
1068 echo "Disabling compression support by default"
1072 # Check whether --enable-htree or --disable-htree was given.
1073 if test "${enable_htree+set}" = set; then
1074 enableval="$enable_htree"
1075 if test "$enableval" = "no"
1078 echo "Disabling htree directory support"
1081 cat >> confdefs.h <<\EOF
1082 #define ENABLE_HTREE 1
1085 echo "Enabling htree directory support"
1090 cat >> confdefs.h <<\EOF
1091 #define ENABLE_HTREE 1
1094 echo "Enabling htree directory support by default"
1099 # Check whether --enable-htree-clear or --disable-htree-clear was given.
1100 if test "${enable_htree_clear+set}" = set; then
1101 enableval="$enable_htree_clear"
1102 if test "$enableval" = "no"
1105 echo "Disabling htree clearing"
1108 cat >> confdefs.h <<\EOF
1109 #define ENABLE_HTREE_CLEAR 1
1112 echo "Enabling htree clearing"
1117 echo "Disabling htree clearing by default"
1123 # Check whether --enable-evms-10 or --disable-evms-10 was given.
1124 if test "${enable_evms_10+set}" = set; then
1125 enableval="$enable_evms_10"
1126 if test "$enableval" != "no"
1129 echo "Enabling EVMS 1.0.0 ABI"
1134 # Check whether --enable-evms-11 or --disable-evms-11 was given.
1135 if test "${enable_evms_11+set}" = set; then
1136 enableval="$enable_evms_11"
1137 if test "$enableval" != "no"
1140 echo "Enabling EVMS 1.1.0 ABI"
1145 if test "$EVMS_ABI_CODE" = "120"
1147 echo "Using EVMS 1.2.0 ABI by default"
1150 # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
1151 if test "${enable_dll_shlibs+set}" = set; then
1152 enableval="$enable_dll_shlibs"
1153 if test "$enableval" = "no"
1156 MAKEFILE_DLL=/dev/null
1157 echo "Disabling DLL shared libraries"
1160 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
1163 echo "Enabling DLL shared libraries"
1167 MAKEFILE_DLL=/dev/null
1169 echo "Disabling DLL shared libraries by default"
1175 # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
1176 if test "${enable_elf_shlibs+set}" = set; then
1177 enableval="$enable_elf_shlibs"
1178 if test "$enableval" = "no"
1181 MAKEFILE_ELF=/dev/null
1182 echo "Disabling ELF shared libraries"
1185 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
1188 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1193 echo "Enabling ELF shared libraries"
1197 MAKEFILE_ELF=/dev/null
1199 echo "Disabling ELF shared libraries by default"
1205 # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
1206 if test "${enable_bsd_shlibs+set}" = set; then
1207 enableval="$enable_bsd_shlibs"
1208 if test "$enableval" = "no"
1211 MAKEFILE_BSDLIB=/dev/null
1212 echo "Disabling BSD shared libraries"
1215 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
1217 echo "Enabling BSD shared libraries"
1221 MAKEFILE_BSDLIB=/dev/null
1223 echo "Disabling BSD shared libraries by default"
1229 # Check whether --enable-profile or --disable-profile was given.
1230 if test "${enable_profile+set}" = set; then
1231 enableval="$enable_profile"
1232 if test "$enableval" = "no"
1235 MAKEFILE_PROFILE=/dev/null
1236 echo "Disabling profiling libraries"
1239 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
1240 PROFILED_LIB_EXT=_p.a
1241 echo "Building profiling libraries"
1246 MAKEFILE_PROFILE=/dev/null
1247 echo "Disabling profiling libraries by default"
1253 # Check whether --enable-checker or --disable-checker was given.
1254 if test "${enable_checker+set}" = set; then
1255 enableval="$enable_checker"
1256 if test "$enableval" = "no"
1259 MAKEFILE_CHECKER=/dev/null
1260 echo "Disabling checker libraries"
1263 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
1264 echo "Building checker libraries"
1269 MAKEFILE_CHECKER=/dev/null
1270 echo "Disabling checker libraries by default"
1279 # Check whether --enable-jbd-debug or --disable-jbd-debug was given.
1280 if test "${enable_jbd_debug+set}" = set; then
1281 enableval="$enable_jbd_debug"
1282 if test "$enableval" = "no"
1284 echo "Disabling journal debugging"
1286 cat >> confdefs.h <<\EOF
1287 #define CONFIG_JBD_DEBUG 1
1290 echo "Enabling journal debugging"
1294 echo "Disabling journal debugging by default"
1298 # Check whether --enable-blkid-debug or --disable-blkid-debug was given.
1299 if test "${enable_blkid_debug+set}" = set; then
1300 enableval="$enable_blkid_debug"
1301 if test "$enableval" = "no"
1303 echo "Disabling blkid debugging"
1305 cat >> confdefs.h <<\EOF
1306 #define CONFIG_BLKID_DEBUG 1
1309 echo "Enabling blkid debugging"
1313 echo "Disabling blkid debugging by default"
1317 # Check whether --enable-swapfs or --disable-swapfs was given.
1318 if test "${enable_swapfs+set}" = set; then
1319 enableval="$enable_swapfs"
1320 if test "$enableval" = "no"
1323 echo "Disabling swapfs support"
1326 cat >> confdefs.h <<\EOF
1327 #define ENABLE_SWAPFS 1
1330 echo "Enabling swapfs support"
1335 echo "Enabling swapfs support by default"
1336 cat >> confdefs.h <<\EOF
1337 #define ENABLE_SWAPFS 1
1344 # Check whether --enable-debugfs or --disable-debugfs was given.
1345 if test "${enable_debugfs+set}" = set; then
1346 enableval="$enable_debugfs"
1347 if test "$enableval" = "no"
1349 echo "Disabling debugfs support"
1353 echo "Enabling debugfs support"
1357 echo "Enabling debugfs support by default"
1363 # Check whether --enable-imager or --disable-imager was given.
1364 if test "${enable_imager+set}" = set; then
1365 enableval="$enable_imager"
1366 if test "$enableval" = "no"
1368 echo "Disabling e2image support"
1372 echo "Enabling e2image support"
1376 echo "Enabling e2image support by default"
1382 # Check whether --enable-resizer or --disable-resizer was given.
1383 if test "${enable_resizer+set}" = set; then
1384 enableval="$enable_resizer"
1385 if test "$enableval" = "no"
1387 echo "Disabling e2resize support"
1391 echo "Enabling e2resize support"
1395 echo "Enabling e2resize support by default"
1401 # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
1402 if test "${enable_dynamic_e2fsck+set}" = set; then
1403 enableval="$enable_dynamic_e2fsck"
1404 if test "$enableval" = "no"
1407 echo "Building e2fsck statically"
1410 echo "Building e2fsck dynamically"
1415 echo "Building e2fsck statically by default"
1420 # Check whether --enable-fsck or --disable-fsck was given.
1421 if test "${enable_fsck+set}" = set; then
1422 enableval="$enable_fsck"
1423 if test "$enableval" = "no"
1425 FSCK_PROG='' FSCK_MAN=''
1426 echo "Not building fsck wrapper"
1428 FSCK_PROG=fsck FSCK_MAN=fsck.8
1429 echo "Building fsck wrapper"
1435 FSCK_PROG='' FSCK_MAN=''
1436 echo "Not building fsck wrapper by default"
1439 FSCK_PROG=fsck FSCK_MAN=fsck.8
1440 echo "Building fsck wrapper by default"
1447 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1449 # Check whether --enable-old-bitops or --disable-old-bitops was given.
1450 if test "${enable_old_bitops+set}" = set; then
1451 enableval="$enable_old_bitops"
1452 if test "$enableval" = "no"
1454 echo "Using new (standard) bitmask operations"
1456 cat >> confdefs.h <<\EOF
1457 #define EXT2_OLD_BITOPS 1
1460 echo "Using old (native) bitmask operations"
1465 echo "Using standard bitmask operations by default"
1470 VERSION="$E2FSPROGS_VERSION"
1471 cat >> confdefs.h <<EOF
1472 #define PACKAGE "$PACKAGE"
1475 cat >> confdefs.h <<EOF
1476 #define VERSION "$VERSION"
1482 ALL_LINGUAS="it nyc tr de de-utf"
1483 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1484 echo "configure:1485: checking whether ${MAKE-make} sets \${MAKE}" >&5
1485 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1486 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1487 echo $ac_n "(cached) $ac_c" 1>&6
1489 cat > conftestmake <<\EOF
1491 @echo 'ac_maketemp="${MAKE}"'
1493 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1494 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1495 if test -n "$ac_maketemp"; then
1496 eval ac_cv_prog_make_${ac_make}_set=yes
1498 eval ac_cv_prog_make_${ac_make}_set=no
1502 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1503 echo "$ac_t""yes" 1>&6
1506 echo "$ac_t""no" 1>&6
1507 SET_MAKE="MAKE=${MAKE-make}"
1510 # Extract the first word of "ranlib", so it can be a program name with args.
1511 set dummy ranlib; ac_word=$2
1512 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1513 echo "configure:1514: checking for $ac_word" >&5
1514 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1515 echo $ac_n "(cached) $ac_c" 1>&6
1517 if test -n "$RANLIB"; then
1518 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1522 for ac_dir in $ac_dummy; do
1523 test -z "$ac_dir" && ac_dir=.
1524 if test -f $ac_dir/$ac_word; then
1525 ac_cv_prog_RANLIB="ranlib"
1530 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1533 RANLIB="$ac_cv_prog_RANLIB"
1534 if test -n "$RANLIB"; then
1535 echo "$ac_t""$RANLIB" 1>&6
1537 echo "$ac_t""no" 1>&6
1540 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1541 echo "configure:1542: checking for POSIXized ISC" >&5
1542 if test -d /etc/conf/kconfig.d &&
1543 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1545 echo "$ac_t""yes" 1>&6
1546 ISC=yes # If later tests want to check for ISC.
1547 cat >> confdefs.h <<\EOF
1548 #define _POSIX_SOURCE 1
1551 if test "$GCC" = yes; then
1557 echo "$ac_t""no" 1>&6
1561 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1562 echo "configure:1563: checking for ANSI C header files" >&5
1563 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1566 cat > conftest.$ac_ext <<EOF
1567 #line 1568 "configure"
1568 #include "confdefs.h"
1574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1575 { (eval echo configure:1576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1577 if test -z "$ac_err"; then
1579 ac_cv_header_stdc=yes
1582 echo "configure: failed program was:" >&5
1583 cat conftest.$ac_ext >&5
1585 ac_cv_header_stdc=no
1589 if test $ac_cv_header_stdc = yes; then
1590 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1591 cat > conftest.$ac_ext <<EOF
1592 #line 1593 "configure"
1593 #include "confdefs.h"
1596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1597 egrep "memchr" >/dev/null 2>&1; then
1601 ac_cv_header_stdc=no
1607 if test $ac_cv_header_stdc = yes; then
1608 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1609 cat > conftest.$ac_ext <<EOF
1610 #line 1611 "configure"
1611 #include "confdefs.h"
1614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1615 egrep "free" >/dev/null 2>&1; then
1619 ac_cv_header_stdc=no
1625 if test $ac_cv_header_stdc = yes; then
1626 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1627 if test "$cross_compiling" = yes; then
1630 cat > conftest.$ac_ext <<EOF
1631 #line 1632 "configure"
1632 #include "confdefs.h"
1634 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1635 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1636 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1637 int main () { int i; for (i = 0; i < 256; i++)
1638 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1642 if { (eval echo configure:1643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1646 echo "configure: failed program was:" >&5
1647 cat conftest.$ac_ext >&5
1649 ac_cv_header_stdc=no
1657 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1658 if test $ac_cv_header_stdc = yes; then
1659 cat >> confdefs.h <<\EOF
1660 #define STDC_HEADERS 1
1665 echo $ac_n "checking for working const""... $ac_c" 1>&6
1666 echo "configure:1667: checking for working const" >&5
1667 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1670 cat > conftest.$ac_ext <<EOF
1671 #line 1672 "configure"
1672 #include "confdefs.h"
1676 /* Ultrix mips cc rejects this. */
1677 typedef int charset[2]; const charset x;
1678 /* SunOS 4.1.1 cc rejects this. */
1679 char const *const *ccp;
1681 /* NEC SVR4.0.2 mips cc rejects this. */
1682 struct point {int x, y;};
1683 static struct point const zero = {0,0};
1684 /* AIX XL C 1.02.0.0 rejects this.
1685 It does not let you subtract one const X* pointer from another in an arm
1686 of an if-expression whose if-part is not a constant expression */
1687 const char *g = "string";
1688 ccp = &g + (g ? g-g : 0);
1689 /* HPUX 7.0 cc rejects these. */
1692 ccp = (char const *const *) p;
1693 { /* SCO 3.2v4 cc rejects this. */
1695 char const *s = 0 ? (char *) 0 : (char const *) 0;
1699 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1701 const int *foo = &x[0];
1704 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1705 typedef const int *iptr;
1709 { /* AIX XL C 1.02.0.0 rejects this saying
1710 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1711 struct s { int j; const int *ap[3]; };
1712 struct s *b; b->j = 5;
1714 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1720 if { (eval echo configure:1721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1724 echo "configure: failed program was:" >&5
1725 cat conftest.$ac_ext >&5
1732 echo "$ac_t""$ac_cv_c_const" 1>&6
1733 if test $ac_cv_c_const = no; then
1734 cat >> confdefs.h <<\EOF
1740 echo $ac_n "checking for inline""... $ac_c" 1>&6
1741 echo "configure:1742: checking for inline" >&5
1742 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1743 echo $ac_n "(cached) $ac_c" 1>&6
1746 for ac_kw in inline __inline__ __inline; do
1747 cat > conftest.$ac_ext <<EOF
1748 #line 1749 "configure"
1749 #include "confdefs.h"
1755 if { (eval echo configure:1756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1757 ac_cv_c_inline=$ac_kw; break
1759 echo "configure: failed program was:" >&5
1760 cat conftest.$ac_ext >&5
1767 echo "$ac_t""$ac_cv_c_inline" 1>&6
1768 case "$ac_cv_c_inline" in
1770 no) cat >> confdefs.h <<\EOF
1774 *) cat >> confdefs.h <<EOF
1775 #define inline $ac_cv_c_inline
1780 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1781 echo "configure:1782: checking for off_t" >&5
1782 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1785 cat > conftest.$ac_ext <<EOF
1786 #line 1787 "configure"
1787 #include "confdefs.h"
1788 #include <sys/types.h>
1794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1795 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1797 ac_cv_type_off_t=yes
1805 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1806 if test $ac_cv_type_off_t = no; then
1807 cat >> confdefs.h <<\EOF
1813 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1814 echo "configure:1815: checking for size_t" >&5
1815 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1818 cat > conftest.$ac_ext <<EOF
1819 #line 1820 "configure"
1820 #include "confdefs.h"
1821 #include <sys/types.h>
1827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1828 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1830 ac_cv_type_size_t=yes
1833 ac_cv_type_size_t=no
1838 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1839 if test $ac_cv_type_size_t = no; then
1840 cat >> confdefs.h <<\EOF
1841 #define size_t unsigned
1846 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1847 # for constant arguments. Useless!
1848 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1849 echo "configure:1850: checking for working alloca.h" >&5
1850 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 cat > conftest.$ac_ext <<EOF
1854 #line 1855 "configure"
1855 #include "confdefs.h"
1858 char *p = alloca(2 * sizeof(int));
1861 if { (eval echo configure:1862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1863 ac_cv_header_alloca_h=yes
1865 echo "configure: failed program was:" >&5
1866 cat conftest.$ac_ext >&5
1868 ac_cv_header_alloca_h=no
1873 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1874 if test $ac_cv_header_alloca_h = yes; then
1875 cat >> confdefs.h <<\EOF
1876 #define HAVE_ALLOCA_H 1
1881 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1882 echo "configure:1883: checking for alloca" >&5
1883 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1884 echo $ac_n "(cached) $ac_c" 1>&6
1886 cat > conftest.$ac_ext <<EOF
1887 #line 1888 "configure"
1888 #include "confdefs.h"
1891 # define alloca __builtin_alloca
1894 # include <malloc.h>
1895 # define alloca _alloca
1898 # include <alloca.h>
1903 # ifndef alloca /* predefined by HP cc +Olibcalls */
1912 char *p = (char *) alloca(1);
1915 if { (eval echo configure:1916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1917 ac_cv_func_alloca_works=yes
1919 echo "configure: failed program was:" >&5
1920 cat conftest.$ac_ext >&5
1922 ac_cv_func_alloca_works=no
1927 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1928 if test $ac_cv_func_alloca_works = yes; then
1929 cat >> confdefs.h <<\EOF
1930 #define HAVE_ALLOCA 1
1935 if test $ac_cv_func_alloca_works = no; then
1936 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1937 # that cause trouble. Some versions do not even contain alloca or
1938 # contain a buggy version. If you still want to use their alloca,
1939 # use ar to extract alloca.o from them instead of compiling alloca.c.
1940 ALLOCA=alloca.${ac_objext}
1941 cat >> confdefs.h <<\EOF
1946 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1947 echo "configure:1948: checking whether alloca needs Cray hooks" >&5
1948 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1951 cat > conftest.$ac_ext <<EOF
1952 #line 1953 "configure"
1953 #include "confdefs.h"
1954 #if defined(CRAY) && ! defined(CRAY2)
1961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1962 egrep "webecray" >/dev/null 2>&1; then
1973 echo "$ac_t""$ac_cv_os_cray" 1>&6
1974 if test $ac_cv_os_cray = yes; then
1975 for ac_func in _getb67 GETB67 getb67; do
1976 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1977 echo "configure:1978: checking for $ac_func" >&5
1978 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1979 echo $ac_n "(cached) $ac_c" 1>&6
1981 cat > conftest.$ac_ext <<EOF
1982 #line 1983 "configure"
1983 #include "confdefs.h"
1984 /* System header to define __stub macros and hopefully few prototypes,
1985 which can conflict with char $ac_func(); below. */
1987 /* Override any gcc2 internal prototype to avoid an error. */
1988 /* We use char because int might match the return type of a gcc2
1989 builtin and then its argument prototype would still apply. */
1994 /* The GNU C library defines this for functions which it implements
1995 to always fail with ENOSYS. Some functions are actually named
1996 something starting with __ and the normal name is an alias. */
1997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2005 if { (eval echo configure:2006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2007 eval "ac_cv_func_$ac_func=yes"
2009 echo "configure: failed program was:" >&5
2010 cat conftest.$ac_ext >&5
2012 eval "ac_cv_func_$ac_func=no"
2017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2018 echo "$ac_t""yes" 1>&6
2019 cat >> confdefs.h <<EOF
2020 #define CRAY_STACKSEG_END $ac_func
2025 echo "$ac_t""no" 1>&6
2031 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2032 echo "configure:2033: checking stack direction for C alloca" >&5
2033 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2034 echo $ac_n "(cached) $ac_c" 1>&6
2036 if test "$cross_compiling" = yes; then
2037 ac_cv_c_stack_direction=0
2039 cat > conftest.$ac_ext <<EOF
2040 #line 2041 "configure"
2041 #include "confdefs.h"
2042 find_stack_direction ()
2044 static char *addr = 0;
2049 return find_stack_direction ();
2052 return (&dummy > addr) ? 1 : -1;
2056 exit (find_stack_direction() < 0);
2059 if { (eval echo configure:2060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2061 ac_cv_c_stack_direction=1
2063 echo "configure: failed program was:" >&5
2064 cat conftest.$ac_ext >&5
2066 ac_cv_c_stack_direction=-1
2073 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2074 cat >> confdefs.h <<EOF
2075 #define STACK_DIRECTION $ac_cv_c_stack_direction
2080 for ac_hdr in unistd.h
2082 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2083 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2084 echo "configure:2085: checking for $ac_hdr" >&5
2085 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2088 cat > conftest.$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2094 { (eval echo configure:2095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2096 if test -z "$ac_err"; then
2098 eval "ac_cv_header_$ac_safe=yes"
2101 echo "configure: failed program was:" >&5
2102 cat conftest.$ac_ext >&5
2104 eval "ac_cv_header_$ac_safe=no"
2108 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2109 echo "$ac_t""yes" 1>&6
2110 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2111 cat >> confdefs.h <<EOF
2112 #define $ac_tr_hdr 1
2116 echo "$ac_t""no" 1>&6
2120 for ac_func in getpagesize
2122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2123 echo "configure:2124: checking for $ac_func" >&5
2124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2127 cat > conftest.$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2130 /* System header to define __stub macros and hopefully few prototypes,
2131 which can conflict with char $ac_func(); below. */
2133 /* Override any gcc2 internal prototype to avoid an error. */
2134 /* We use char because int might match the return type of a gcc2
2135 builtin and then its argument prototype would still apply. */
2140 /* The GNU C library defines this for functions which it implements
2141 to always fail with ENOSYS. Some functions are actually named
2142 something starting with __ and the normal name is an alias. */
2143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2151 if { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2153 eval "ac_cv_func_$ac_func=yes"
2155 echo "configure: failed program was:" >&5
2156 cat conftest.$ac_ext >&5
2158 eval "ac_cv_func_$ac_func=no"
2163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2164 echo "$ac_t""yes" 1>&6
2165 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2166 cat >> confdefs.h <<EOF
2167 #define $ac_tr_func 1
2171 echo "$ac_t""no" 1>&6
2175 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2176 echo "configure:2177: checking for working mmap" >&5
2177 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
2180 if test "$cross_compiling" = yes; then
2181 ac_cv_func_mmap_fixed_mapped=no
2183 cat > conftest.$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2187 /* Thanks to Mike Haertel and Jim Avera for this test.
2188 Here is a matrix of mmap possibilities:
2189 mmap private not fixed
2190 mmap private fixed at somewhere currently unmapped
2191 mmap private fixed at somewhere already mapped
2192 mmap shared not fixed
2193 mmap shared fixed at somewhere currently unmapped
2194 mmap shared fixed at somewhere already mapped
2195 For private mappings, we should verify that changes cannot be read()
2196 back from the file, nor mmap's back from the file at a different
2197 address. (There have been systems where private was not correctly
2198 implemented like the infamous i386 svr4.0, and systems where the
2199 VM page cache was not coherent with the filesystem buffer cache
2200 like early versions of FreeBSD and possibly contemporary NetBSD.)
2201 For shared mappings, we should conversely verify that changes get
2202 propogated back to all the places they're supposed to be.
2204 Grep wants private fixed already mapped.
2205 The main things grep needs to know about mmap are:
2206 * does it exist and is it safe to write into the mmap'd area
2207 * how to use it (BSD variants) */
2208 #include <sys/types.h>
2210 #include <sys/mman.h>
2212 /* This mess was copied from the GNU getpagesize.h. */
2213 #ifndef HAVE_GETPAGESIZE
2214 # ifdef HAVE_UNISTD_H
2215 # include <unistd.h>
2218 /* Assume that all systems that can run configure have sys/param.h. */
2219 # ifndef HAVE_SYS_PARAM_H
2220 # define HAVE_SYS_PARAM_H 1
2223 # ifdef _SC_PAGESIZE
2224 # define getpagesize() sysconf(_SC_PAGESIZE)
2225 # else /* no _SC_PAGESIZE */
2226 # ifdef HAVE_SYS_PARAM_H
2227 # include <sys/param.h>
2228 # ifdef EXEC_PAGESIZE
2229 # define getpagesize() EXEC_PAGESIZE
2230 # else /* no EXEC_PAGESIZE */
2232 # define getpagesize() NBPG * CLSIZE
2235 # endif /* no CLSIZE */
2236 # else /* no NBPG */
2238 # define getpagesize() NBPC
2239 # else /* no NBPC */
2241 # define getpagesize() PAGESIZE
2242 # endif /* PAGESIZE */
2243 # endif /* no NBPC */
2244 # endif /* no NBPG */
2245 # endif /* no EXEC_PAGESIZE */
2246 # else /* no HAVE_SYS_PARAM_H */
2247 # define getpagesize() 8192 /* punt totally */
2248 # endif /* no HAVE_SYS_PARAM_H */
2249 # endif /* no _SC_PAGESIZE */
2251 #endif /* no HAVE_GETPAGESIZE */
2254 extern "C" { void *malloc(unsigned); }
2262 char *data, *data2, *data3;
2266 pagesize = getpagesize();
2269 * First, make a file with some known garbage in it.
2271 data = malloc(pagesize);
2274 for (i = 0; i < pagesize; ++i)
2275 *(data + i) = rand();
2277 fd = creat("conftestmmap", 0600);
2280 if (write(fd, data, pagesize) != pagesize)
2285 * Next, try to mmap the file at a fixed address which
2286 * already has something else allocated at it. If we can,
2287 * also make sure that we see the same garbage.
2289 fd = open("conftestmmap", O_RDWR);
2292 data2 = malloc(2 * pagesize);
2295 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2296 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2297 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2299 for (i = 0; i < pagesize; ++i)
2300 if (*(data + i) != *(data2 + i))
2304 * Finally, make sure that changes to the mapped area
2305 * do not percolate back to the file as seen by read().
2306 * (This is a bug on some variants of i386 svr4.0.)
2308 for (i = 0; i < pagesize; ++i)
2309 *(data2 + i) = *(data2 + i) + 1;
2310 data3 = malloc(pagesize);
2313 if (read(fd, data3, pagesize) != pagesize)
2315 for (i = 0; i < pagesize; ++i)
2316 if (*(data + i) != *(data3 + i))
2319 unlink("conftestmmap");
2324 if { (eval echo configure:2325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2326 ac_cv_func_mmap_fixed_mapped=yes
2328 echo "configure: failed program was:" >&5
2329 cat conftest.$ac_ext >&5
2331 ac_cv_func_mmap_fixed_mapped=no
2338 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2339 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2340 cat >> confdefs.h <<\EOF
2347 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2348 unistd.h sys/param.h
2350 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2351 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2352 echo "configure:2353: checking for $ac_hdr" >&5
2353 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2356 cat > conftest.$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2362 { (eval echo configure:2363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2363 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2364 if test -z "$ac_err"; then
2366 eval "ac_cv_header_$ac_safe=yes"
2369 echo "configure: failed program was:" >&5
2370 cat conftest.$ac_ext >&5
2372 eval "ac_cv_header_$ac_safe=no"
2376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2377 echo "$ac_t""yes" 1>&6
2378 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2379 cat >> confdefs.h <<EOF
2380 #define $ac_tr_hdr 1
2384 echo "$ac_t""no" 1>&6
2388 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2389 strdup __argz_count __argz_stringify __argz_next
2391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2392 echo "configure:2393: checking for $ac_func" >&5
2393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2396 cat > conftest.$ac_ext <<EOF
2397 #line 2398 "configure"
2398 #include "confdefs.h"
2399 /* System header to define __stub macros and hopefully few prototypes,
2400 which can conflict with char $ac_func(); below. */
2402 /* Override any gcc2 internal prototype to avoid an error. */
2403 /* We use char because int might match the return type of a gcc2
2404 builtin and then its argument prototype would still apply. */
2409 /* The GNU C library defines this for functions which it implements
2410 to always fail with ENOSYS. Some functions are actually named
2411 something starting with __ and the normal name is an alias. */
2412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2420 if { (eval echo configure:2421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2422 eval "ac_cv_func_$ac_func=yes"
2424 echo "configure: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2427 eval "ac_cv_func_$ac_func=no"
2432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2433 echo "$ac_t""yes" 1>&6
2434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2435 cat >> confdefs.h <<EOF
2436 #define $ac_tr_func 1
2440 echo "$ac_t""no" 1>&6
2445 if test "${ac_cv_func_stpcpy+set}" != "set"; then
2446 for ac_func in stpcpy
2448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2449 echo "configure:2450: checking for $ac_func" >&5
2450 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2453 cat > conftest.$ac_ext <<EOF
2454 #line 2455 "configure"
2455 #include "confdefs.h"
2456 /* System header to define __stub macros and hopefully few prototypes,
2457 which can conflict with char $ac_func(); below. */
2459 /* Override any gcc2 internal prototype to avoid an error. */
2460 /* We use char because int might match the return type of a gcc2
2461 builtin and then its argument prototype would still apply. */
2466 /* The GNU C library defines this for functions which it implements
2467 to always fail with ENOSYS. Some functions are actually named
2468 something starting with __ and the normal name is an alias. */
2469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2477 if { (eval echo configure:2478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2479 eval "ac_cv_func_$ac_func=yes"
2481 echo "configure: failed program was:" >&5
2482 cat conftest.$ac_ext >&5
2484 eval "ac_cv_func_$ac_func=no"
2489 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2490 echo "$ac_t""yes" 1>&6
2491 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2492 cat >> confdefs.h <<EOF
2493 #define $ac_tr_func 1
2497 echo "$ac_t""no" 1>&6
2502 if test "${ac_cv_func_stpcpy}" = "yes"; then
2503 cat >> confdefs.h <<\EOF
2504 #define HAVE_STPCPY 1
2509 if test $ac_cv_header_locale_h = yes; then
2510 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2511 echo "configure:2512: checking for LC_MESSAGES" >&5
2512 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2515 cat > conftest.$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2523 if { (eval echo configure:2524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2525 am_cv_val_LC_MESSAGES=yes
2527 echo "configure: failed program was:" >&5
2528 cat conftest.$ac_ext >&5
2530 am_cv_val_LC_MESSAGES=no
2535 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2536 if test $am_cv_val_LC_MESSAGES = yes; then
2537 cat >> confdefs.h <<\EOF
2538 #define HAVE_LC_MESSAGES 1
2543 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2544 echo "configure:2545: checking whether NLS is requested" >&5
2545 # Check whether --enable-nls or --disable-nls was given.
2546 if test "${enable_nls+set}" = set; then
2547 enableval="$enable_nls"
2553 echo "$ac_t""$USE_NLS" 1>&6
2556 USE_INCLUDED_LIBINTL=no
2558 if test "$USE_NLS" = "yes"; then
2559 cat >> confdefs.h <<\EOF
2560 #define ENABLE_NLS 1
2563 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2564 echo "configure:2565: checking whether included gettext is requested" >&5
2565 # Check whether --with-included-gettext or --without-included-gettext was given.
2566 if test "${with_included_gettext+set}" = set; then
2567 withval="$with_included_gettext"
2568 nls_cv_force_use_gnu_gettext=$withval
2570 nls_cv_force_use_gnu_gettext=no
2573 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2575 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2576 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2578 nls_cv_header_libgt=
2581 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2582 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2583 echo "configure:2584: checking for libintl.h" >&5
2584 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2587 cat > conftest.$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2590 #include <libintl.h>
2592 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2593 { (eval echo configure:2594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2594 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2595 if test -z "$ac_err"; then
2597 eval "ac_cv_header_$ac_safe=yes"
2600 echo "configure: failed program was:" >&5
2601 cat conftest.$ac_ext >&5
2603 eval "ac_cv_header_$ac_safe=no"
2607 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2608 echo "$ac_t""yes" 1>&6
2609 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2610 echo "configure:2611: checking for gettext in libc" >&5
2611 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2614 cat > conftest.$ac_ext <<EOF
2615 #line 2616 "configure"
2616 #include "confdefs.h"
2617 #include <libintl.h>
2619 return (int) gettext ("")
2622 if { (eval echo configure:2623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2624 gt_cv_func_gettext_libc=yes
2626 echo "configure: failed program was:" >&5
2627 cat conftest.$ac_ext >&5
2629 gt_cv_func_gettext_libc=no
2634 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2636 if test "$gt_cv_func_gettext_libc" != "yes"; then
2637 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2638 echo "configure:2639: checking for bindtextdomain in -lintl" >&5
2639 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2640 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2641 echo $ac_n "(cached) $ac_c" 1>&6
2643 ac_save_LIBS="$LIBS"
2645 cat > conftest.$ac_ext <<EOF
2646 #line 2647 "configure"
2647 #include "confdefs.h"
2648 /* Override any gcc2 internal prototype to avoid an error. */
2649 /* We use char because int might match the return type of a gcc2
2650 builtin and then its argument prototype would still apply. */
2651 char bindtextdomain();
2657 if { (eval echo configure:2658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2659 eval "ac_cv_lib_$ac_lib_var=yes"
2661 echo "configure: failed program was:" >&5
2662 cat conftest.$ac_ext >&5
2664 eval "ac_cv_lib_$ac_lib_var=no"
2667 LIBS="$ac_save_LIBS"
2670 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2671 echo "$ac_t""yes" 1>&6
2672 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2673 echo "configure:2674: checking for gettext in libintl" >&5
2674 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2678 echo "configure:2679: checking for gettext in -lintl" >&5
2679 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2680 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2681 echo $ac_n "(cached) $ac_c" 1>&6
2683 ac_save_LIBS="$LIBS"
2685 cat > conftest.$ac_ext <<EOF
2686 #line 2687 "configure"
2687 #include "confdefs.h"
2688 /* Override any gcc2 internal prototype to avoid an error. */
2689 /* We use char because int might match the return type of a gcc2
2690 builtin and then its argument prototype would still apply. */
2697 if { (eval echo configure:2698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2699 eval "ac_cv_lib_$ac_lib_var=yes"
2701 echo "configure: failed program was:" >&5
2702 cat conftest.$ac_ext >&5
2704 eval "ac_cv_lib_$ac_lib_var=no"
2707 LIBS="$ac_save_LIBS"
2710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2711 echo "$ac_t""yes" 1>&6
2712 gt_cv_func_gettext_libintl=yes
2714 echo "$ac_t""no" 1>&6
2715 gt_cv_func_gettext_libintl=no
2720 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2722 echo "$ac_t""no" 1>&6
2727 if test "$gt_cv_func_gettext_libc" = "yes" \
2728 || test "$gt_cv_func_gettext_libintl" = "yes"; then
2729 cat >> confdefs.h <<\EOF
2730 #define HAVE_GETTEXT 1
2733 # Extract the first word of "msgfmt", so it can be a program name with args.
2734 set dummy msgfmt; ac_word=$2
2735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2736 echo "configure:2737: checking for $ac_word" >&5
2737 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2738 echo $ac_n "(cached) $ac_c" 1>&6
2742 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2746 for ac_dir in $PATH; do
2747 test -z "$ac_dir" && ac_dir=.
2748 if test -f $ac_dir/$ac_word; then
2749 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2750 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2756 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2760 MSGFMT="$ac_cv_path_MSGFMT"
2761 if test -n "$MSGFMT"; then
2762 echo "$ac_t""$MSGFMT" 1>&6
2764 echo "$ac_t""no" 1>&6
2766 if test "$MSGFMT" != "no"; then
2767 for ac_func in dcgettext
2769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2770 echo "configure:2771: checking for $ac_func" >&5
2771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2772 echo $ac_n "(cached) $ac_c" 1>&6
2774 cat > conftest.$ac_ext <<EOF
2775 #line 2776 "configure"
2776 #include "confdefs.h"
2777 /* System header to define __stub macros and hopefully few prototypes,
2778 which can conflict with char $ac_func(); below. */
2780 /* Override any gcc2 internal prototype to avoid an error. */
2781 /* We use char because int might match the return type of a gcc2
2782 builtin and then its argument prototype would still apply. */
2787 /* The GNU C library defines this for functions which it implements
2788 to always fail with ENOSYS. Some functions are actually named
2789 something starting with __ and the normal name is an alias. */
2790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2798 if { (eval echo configure:2799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2800 eval "ac_cv_func_$ac_func=yes"
2802 echo "configure: failed program was:" >&5
2803 cat conftest.$ac_ext >&5
2805 eval "ac_cv_func_$ac_func=no"
2810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2811 echo "$ac_t""yes" 1>&6
2812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2813 cat >> confdefs.h <<EOF
2814 #define $ac_tr_func 1
2818 echo "$ac_t""no" 1>&6
2822 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2823 set dummy gmsgfmt; ac_word=$2
2824 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2825 echo "configure:2826: checking for $ac_word" >&5
2826 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2831 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2834 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2839 for ac_dir in $ac_dummy; do
2840 test -z "$ac_dir" && ac_dir=.
2841 if test -f $ac_dir/$ac_word; then
2842 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2847 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2851 GMSGFMT="$ac_cv_path_GMSGFMT"
2852 if test -n "$GMSGFMT"; then
2853 echo "$ac_t""$GMSGFMT" 1>&6
2855 echo "$ac_t""no" 1>&6
2858 # Extract the first word of "xgettext", so it can be a program name with args.
2859 set dummy xgettext; ac_word=$2
2860 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2861 echo "configure:2862: checking for $ac_word" >&5
2862 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2863 echo $ac_n "(cached) $ac_c" 1>&6
2867 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2871 for ac_dir in $PATH; do
2872 test -z "$ac_dir" && ac_dir=.
2873 if test -f $ac_dir/$ac_word; then
2874 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2875 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2881 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2885 XGETTEXT="$ac_cv_path_XGETTEXT"
2886 if test -n "$XGETTEXT"; then
2887 echo "$ac_t""$XGETTEXT" 1>&6
2889 echo "$ac_t""no" 1>&6
2892 cat > conftest.$ac_ext <<EOF
2893 #line 2894 "configure"
2894 #include "confdefs.h"
2897 extern int _nl_msg_cat_cntr;
2898 return _nl_msg_cat_cntr
2901 if { (eval echo configure:2902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2906 echo "configure: failed program was:" >&5
2907 cat conftest.$ac_ext >&5
2918 echo "$ac_t""no" 1>&6
2922 if test "$CATOBJEXT" = "NONE"; then
2923 echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
2924 echo "configure:2925: checking whether catgets can be used" >&5
2925 # Check whether --with-catgets or --without-catgets was given.
2926 if test "${with_catgets+set}" = set; then
2927 withval="$with_catgets"
2928 nls_cv_use_catgets=$withval
2930 nls_cv_use_catgets=no
2933 echo "$ac_t""$nls_cv_use_catgets" 1>&6
2935 if test "$nls_cv_use_catgets" = "yes"; then
2936 echo $ac_n "checking for main in -li""... $ac_c" 1>&6
2937 echo "configure:2938: checking for main in -li" >&5
2938 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2939 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2940 echo $ac_n "(cached) $ac_c" 1>&6
2942 ac_save_LIBS="$LIBS"
2944 cat > conftest.$ac_ext <<EOF
2945 #line 2946 "configure"
2946 #include "confdefs.h"
2952 if { (eval echo configure:2953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2954 eval "ac_cv_lib_$ac_lib_var=yes"
2956 echo "configure: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2959 eval "ac_cv_lib_$ac_lib_var=no"
2962 LIBS="$ac_save_LIBS"
2965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2966 echo "$ac_t""yes" 1>&6
2967 ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2968 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2969 cat >> confdefs.h <<EOF
2970 #define $ac_tr_lib 1
2976 echo "$ac_t""no" 1>&6
2979 echo $ac_n "checking for catgets""... $ac_c" 1>&6
2980 echo "configure:2981: checking for catgets" >&5
2981 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2982 echo $ac_n "(cached) $ac_c" 1>&6
2984 cat > conftest.$ac_ext <<EOF
2985 #line 2986 "configure"
2986 #include "confdefs.h"
2987 /* System header to define __stub macros and hopefully few prototypes,
2988 which can conflict with char catgets(); below. */
2990 /* Override any gcc2 internal prototype to avoid an error. */
2991 /* We use char because int might match the return type of a gcc2
2992 builtin and then its argument prototype would still apply. */
2997 /* The GNU C library defines this for functions which it implements
2998 to always fail with ENOSYS. Some functions are actually named
2999 something starting with __ and the normal name is an alias. */
3000 #if defined (__stub_catgets) || defined (__stub___catgets)
3008 if { (eval echo configure:3009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3010 eval "ac_cv_func_catgets=yes"
3012 echo "configure: failed program was:" >&5
3013 cat conftest.$ac_ext >&5
3015 eval "ac_cv_func_catgets=no"
3020 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
3021 echo "$ac_t""yes" 1>&6
3022 cat >> confdefs.h <<\EOF
3023 #define HAVE_CATGETS 1
3026 INTLOBJS="\$(CATOBJS)"
3027 # Extract the first word of "gencat", so it can be a program name with args.
3028 set dummy gencat; ac_word=$2
3029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3030 echo "configure:3031: checking for $ac_word" >&5
3031 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3036 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
3039 ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
3042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3044 for ac_dir in $ac_dummy; do
3045 test -z "$ac_dir" && ac_dir=.
3046 if test -f $ac_dir/$ac_word; then
3047 ac_cv_path_GENCAT="$ac_dir/$ac_word"
3052 test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
3056 GENCAT="$ac_cv_path_GENCAT"
3057 if test -n "$GENCAT"; then
3058 echo "$ac_t""$GENCAT" 1>&6
3060 echo "$ac_t""no" 1>&6
3062 if test "$GENCAT" != "no"; then
3063 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3064 set dummy gmsgfmt; ac_word=$2
3065 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3066 echo "configure:3067: checking for $ac_word" >&5
3067 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3068 echo $ac_n "(cached) $ac_c" 1>&6
3072 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3075 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3080 for ac_dir in $ac_dummy; do
3081 test -z "$ac_dir" && ac_dir=.
3082 if test -f $ac_dir/$ac_word; then
3083 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3088 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3092 GMSGFMT="$ac_cv_path_GMSGFMT"
3093 if test -n "$GMSGFMT"; then
3094 echo "$ac_t""$GMSGFMT" 1>&6
3096 echo "$ac_t""no" 1>&6
3099 if test "$GMSGFMT" = "no"; then
3100 # Extract the first word of "msgfmt", so it can be a program name with args.
3101 set dummy msgfmt; ac_word=$2
3102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3103 echo "configure:3104: checking for $ac_word" >&5
3104 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3109 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3113 for ac_dir in $PATH; do
3114 test -z "$ac_dir" && ac_dir=.
3115 if test -f $ac_dir/$ac_word; then
3116 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3117 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3123 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3127 GMSGFMT="$ac_cv_path_GMSGFMT"
3128 if test -n "$GMSGFMT"; then
3129 echo "$ac_t""$GMSGFMT" 1>&6
3131 echo "$ac_t""no" 1>&6
3135 # Extract the first word of "xgettext", so it can be a program name with args.
3136 set dummy xgettext; ac_word=$2
3137 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3138 echo "configure:3139: checking for $ac_word" >&5
3139 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3140 echo $ac_n "(cached) $ac_c" 1>&6
3144 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3148 for ac_dir in $PATH; do
3149 test -z "$ac_dir" && ac_dir=.
3150 if test -f $ac_dir/$ac_word; then
3151 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3152 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3158 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3162 XGETTEXT="$ac_cv_path_XGETTEXT"
3163 if test -n "$XGETTEXT"; then
3164 echo "$ac_t""$XGETTEXT" 1>&6
3166 echo "$ac_t""no" 1>&6
3169 USE_INCLUDED_LIBINTL=yes
3173 INTLDEPS='$(top_builddir)/intl/libintl.a'
3175 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3176 nls_cv_header_intl=intl/libintl.h
3177 nls_cv_header_libgt=intl/libgettext.h
3180 echo "$ac_t""no" 1>&6
3186 if test "$CATOBJEXT" = "NONE"; then
3187 nls_cv_use_gnu_gettext=yes
3191 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3192 INTLOBJS="\$(GETTOBJS)"
3193 # Extract the first word of "msgfmt", so it can be a program name with args.
3194 set dummy msgfmt; ac_word=$2
3195 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3196 echo "configure:3197: checking for $ac_word" >&5
3197 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3198 echo $ac_n "(cached) $ac_c" 1>&6
3202 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3205 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3206 for ac_dir in $PATH; do
3207 test -z "$ac_dir" && ac_dir=.
3208 if test -f $ac_dir/$ac_word; then
3209 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3210 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3216 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3220 MSGFMT="$ac_cv_path_MSGFMT"
3221 if test -n "$MSGFMT"; then
3222 echo "$ac_t""$MSGFMT" 1>&6
3224 echo "$ac_t""no" 1>&6
3227 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3228 set dummy gmsgfmt; ac_word=$2
3229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3230 echo "configure:3231: checking for $ac_word" >&5
3231 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3232 echo $ac_n "(cached) $ac_c" 1>&6
3236 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3239 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3242 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3244 for ac_dir in $ac_dummy; do
3245 test -z "$ac_dir" && ac_dir=.
3246 if test -f $ac_dir/$ac_word; then
3247 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3252 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3256 GMSGFMT="$ac_cv_path_GMSGFMT"
3257 if test -n "$GMSGFMT"; then
3258 echo "$ac_t""$GMSGFMT" 1>&6
3260 echo "$ac_t""no" 1>&6
3263 # Extract the first word of "xgettext", so it can be a program name with args.
3264 set dummy xgettext; ac_word=$2
3265 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3266 echo "configure:3267: checking for $ac_word" >&5
3267 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3272 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3276 for ac_dir in $PATH; do
3277 test -z "$ac_dir" && ac_dir=.
3278 if test -f $ac_dir/$ac_word; then
3279 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3280 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3286 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3290 XGETTEXT="$ac_cv_path_XGETTEXT"
3291 if test -n "$XGETTEXT"; then
3292 echo "$ac_t""$XGETTEXT" 1>&6
3294 echo "$ac_t""no" 1>&6
3298 USE_INCLUDED_LIBINTL=yes
3302 INTLDEPS='$(top_builddir)/intl/libintl.a'
3304 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3305 nls_cv_header_intl=intl/libintl.h
3306 nls_cv_header_libgt=intl/libgettext.h
3309 if test "$XGETTEXT" != ":"; then
3310 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3313 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3318 # We need to process the po/ directory.
3322 nls_cv_header_intl=intl/libintl.h
3323 nls_cv_header_libgt=intl/libgettext.h
3329 # If this is used in GNU gettext we have to set USE_NLS to `yes'
3330 # because some of the sources are only built for this goal.
3331 if test "$PACKAGE" = gettext; then
3333 USE_INCLUDED_LIBINTL=yes
3336 for lang in $ALL_LINGUAS; do
3337 GMOFILES="$GMOFILES $lang.gmo"
3338 POFILES="$POFILES $lang.po"
3354 if test "x$CATOBJEXT" != "x"; then
3355 if test "x$ALL_LINGUAS" = "x"; then
3358 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3359 echo "configure:3360: checking for catalogs to be installed" >&5
3361 for lang in ${LINGUAS=$ALL_LINGUAS}; do
3362 case "$ALL_LINGUAS" in
3363 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3366 LINGUAS=$NEW_LINGUAS
3367 echo "$ac_t""$LINGUAS" 1>&6
3370 if test -n "$LINGUAS"; then
3371 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3375 if test $ac_cv_header_locale_h = yes; then
3376 INCLUDE_LOCALE_H="#include <locale.h>"
3379 /* The system does not provide the header <locale.h>. Take care yourself. */"
3383 test -d intl || mkdir intl
3384 if test "$CATOBJEXT" = ".cat"; then
3385 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3386 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3387 echo "configure:3388: checking for linux/version.h" >&5
3388 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3389 echo $ac_n "(cached) $ac_c" 1>&6
3391 cat > conftest.$ac_ext <<EOF
3392 #line 3393 "configure"
3393 #include "confdefs.h"
3394 #include <linux/version.h>
3396 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3397 { (eval echo configure:3398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3398 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3399 if test -z "$ac_err"; then
3401 eval "ac_cv_header_$ac_safe=yes"
3404 echo "configure: failed program was:" >&5
3405 cat conftest.$ac_ext >&5
3407 eval "ac_cv_header_$ac_safe=no"
3411 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3412 echo "$ac_t""yes" 1>&6
3415 echo "$ac_t""no" 1>&6
3420 sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3422 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3423 $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3425 if test "$PACKAGE" = "gettext"; then
3436 if test -n "$ac_aux_dir"; then
3437 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3439 if test -z "$MKINSTALLDIRS"; then
3440 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3447 test -d po || mkdir po
3448 if test "x$srcdir" != "x."; then
3449 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3450 posrcprefix="$srcdir/"
3452 posrcprefix="../$srcdir/"
3458 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3459 < $srcdir/po/POTFILES.in > po/POTFILES
3462 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3463 echo "configure:3464: checking whether ${MAKE-make} sets \${MAKE}" >&5
3464 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3465 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3466 echo $ac_n "(cached) $ac_c" 1>&6
3468 cat > conftestmake <<\EOF
3470 @echo 'ac_maketemp="${MAKE}"'
3472 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3473 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3474 if test -n "$ac_maketemp"; then
3475 eval ac_cv_prog_make_${ac_make}_set=yes
3477 eval ac_cv_prog_make_${ac_make}_set=no
3481 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3482 echo "$ac_t""yes" 1>&6
3485 echo "$ac_t""no" 1>&6
3486 SET_MAKE="MAKE=${MAKE-make}"
3489 # Extract the first word of "ln", so it can be a program name with args.
3490 set dummy ln; ac_word=$2
3491 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3492 echo "configure:3493: checking for $ac_word" >&5
3493 if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
3498 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3501 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3506 for ac_dir in $ac_dummy; do
3507 test -z "$ac_dir" && ac_dir=.
3508 if test -f $ac_dir/$ac_word; then
3509 ac_cv_path_LN="$ac_dir/$ac_word"
3514 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3519 if test -n "$LN"; then
3520 echo "$ac_t""$LN" 1>&6
3522 echo "$ac_t""no" 1>&6
3525 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3526 echo "configure:3527: checking whether ln -s works" >&5
3527 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3531 if ln -s X conftestdata 2>/dev/null
3534 ac_cv_prog_LN_S="ln -s"
3539 LN_S="$ac_cv_prog_LN_S"
3540 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3541 echo "$ac_t""yes" 1>&6
3543 echo "$ac_t""no" 1>&6
3546 # Extract the first word of "mv", so it can be a program name with args.
3547 set dummy mv; ac_word=$2
3548 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3549 echo "configure:3550: checking for $ac_word" >&5
3550 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3555 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3558 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3561 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3563 for ac_dir in $ac_dummy; do
3564 test -z "$ac_dir" && ac_dir=.
3565 if test -f $ac_dir/$ac_word; then
3566 ac_cv_path_MV="$ac_dir/$ac_word"
3571 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3576 if test -n "$MV"; then
3577 echo "$ac_t""$MV" 1>&6
3579 echo "$ac_t""no" 1>&6
3582 # Extract the first word of "cp", so it can be a program name with args.
3583 set dummy cp; ac_word=$2
3584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3585 echo "configure:3586: checking for $ac_word" >&5
3586 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3587 echo $ac_n "(cached) $ac_c" 1>&6
3591 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3594 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3597 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3599 for ac_dir in $ac_dummy; do
3600 test -z "$ac_dir" && ac_dir=.
3601 if test -f $ac_dir/$ac_word; then
3602 ac_cv_path_CP="$ac_dir/$ac_word"
3607 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3612 if test -n "$CP"; then
3613 echo "$ac_t""$CP" 1>&6
3615 echo "$ac_t""no" 1>&6
3618 # Extract the first word of "rm", so it can be a program name with args.
3619 set dummy rm; ac_word=$2
3620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3621 echo "configure:3622: checking for $ac_word" >&5
3622 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3623 echo $ac_n "(cached) $ac_c" 1>&6
3627 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3630 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3635 for ac_dir in $ac_dummy; do
3636 test -z "$ac_dir" && ac_dir=.
3637 if test -f $ac_dir/$ac_word; then
3638 ac_cv_path_RM="$ac_dir/$ac_word"
3643 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3648 if test -n "$RM"; then
3649 echo "$ac_t""$RM" 1>&6
3651 echo "$ac_t""no" 1>&6
3654 # Extract the first word of "chmod", so it can be a program name with args.
3655 set dummy chmod; ac_word=$2
3656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3657 echo "configure:3658: checking for $ac_word" >&5
3658 if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3659 echo $ac_n "(cached) $ac_c" 1>&6
3663 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3666 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3671 for ac_dir in $ac_dummy; do
3672 test -z "$ac_dir" && ac_dir=.
3673 if test -f $ac_dir/$ac_word; then
3674 ac_cv_path_CHMOD="$ac_dir/$ac_word"
3679 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3683 CHMOD="$ac_cv_path_CHMOD"
3684 if test -n "$CHMOD"; then
3685 echo "$ac_t""$CHMOD" 1>&6
3687 echo "$ac_t""no" 1>&6
3690 # Extract the first word of "awk", so it can be a program name with args.
3691 set dummy awk; ac_word=$2
3692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3693 echo "configure:3694: checking for $ac_word" >&5
3694 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3695 echo $ac_n "(cached) $ac_c" 1>&6
3699 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3702 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3707 for ac_dir in $ac_dummy; do
3708 test -z "$ac_dir" && ac_dir=.
3709 if test -f $ac_dir/$ac_word; then
3710 ac_cv_path_AWK="$ac_dir/$ac_word"
3715 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3719 AWK="$ac_cv_path_AWK"
3720 if test -n "$AWK"; then
3721 echo "$ac_t""$AWK" 1>&6
3723 echo "$ac_t""no" 1>&6
3726 # Extract the first word of "sed", so it can be a program name with args.
3727 set dummy sed; ac_word=$2
3728 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3729 echo "configure:3730: checking for $ac_word" >&5
3730 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3731 echo $ac_n "(cached) $ac_c" 1>&6
3735 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3738 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3743 for ac_dir in $ac_dummy; do
3744 test -z "$ac_dir" && ac_dir=.
3745 if test -f $ac_dir/$ac_word; then
3746 ac_cv_path_SED="$ac_dir/$ac_word"
3751 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3755 SED="$ac_cv_path_SED"
3756 if test -n "$SED"; then
3757 echo "$ac_t""$SED" 1>&6
3759 echo "$ac_t""no" 1>&6
3762 # Extract the first word of "perl", so it can be a program name with args.
3763 set dummy perl; ac_word=$2
3764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3765 echo "configure:3766: checking for $ac_word" >&5
3766 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3767 echo $ac_n "(cached) $ac_c" 1>&6
3771 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3774 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3777 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3779 for ac_dir in $ac_dummy; do
3780 test -z "$ac_dir" && ac_dir=.
3781 if test -f $ac_dir/$ac_word; then
3782 ac_cv_path_PERL="$ac_dir/$ac_word"
3787 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3791 PERL="$ac_cv_path_PERL"
3792 if test -n "$PERL"; then
3793 echo "$ac_t""$PERL" 1>&6
3795 echo "$ac_t""no" 1>&6
3798 # Extract the first word of "ldconfig", so it can be a program name with args.
3799 set dummy ldconfig; ac_word=$2
3800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3801 echo "configure:3802: checking for $ac_word" >&5
3802 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
3803 echo $ac_n "(cached) $ac_c" 1>&6
3807 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3810 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
3813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3815 for ac_dir in $ac_dummy; do
3816 test -z "$ac_dir" && ac_dir=.
3817 if test -f $ac_dir/$ac_word; then
3818 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3823 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
3827 LDCONFIG="$ac_cv_path_LDCONFIG"
3828 if test -n "$LDCONFIG"; then
3829 echo "$ac_t""$LDCONFIG" 1>&6
3831 echo "$ac_t""no" 1>&6
3834 echo $ac_n "checking build system type""... $ac_c" 1>&6
3835 echo "configure:3836: checking build system type" >&5
3838 case "$build_alias" in
3841 NONE) build_alias=$host_alias ;;
3842 *) build_alias=$nonopt ;;
3846 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
3847 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3848 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3849 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3850 echo "$ac_t""$build" 1>&6
3852 if test $host != $build; then
3853 ac_tool_prefix=${host_alias}-
3858 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3859 set dummy ${ac_tool_prefix}ar; ac_word=$2
3860 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3861 echo "configure:3862: checking for $ac_word" >&5
3862 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3863 echo $ac_n "(cached) $ac_c" 1>&6
3865 if test -n "$AR"; then
3866 ac_cv_prog_AR="$AR" # Let the user override the test.
3868 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3870 for ac_dir in $ac_dummy; do
3871 test -z "$ac_dir" && ac_dir=.
3872 if test -f $ac_dir/$ac_word; then
3873 ac_cv_prog_AR="${ac_tool_prefix}ar"
3881 if test -n "$AR"; then
3882 echo "$ac_t""$AR" 1>&6
3884 echo "$ac_t""no" 1>&6
3888 if test -z "$ac_cv_prog_AR"; then
3889 if test -n "$ac_tool_prefix"; then
3890 # Extract the first word of "ar", so it can be a program name with args.
3891 set dummy ar; ac_word=$2
3892 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3893 echo "configure:3894: checking for $ac_word" >&5
3894 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3895 echo $ac_n "(cached) $ac_c" 1>&6
3897 if test -n "$AR"; then
3898 ac_cv_prog_AR="$AR" # Let the user override the test.
3900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3902 for ac_dir in $ac_dummy; do
3903 test -z "$ac_dir" && ac_dir=.
3904 if test -f $ac_dir/$ac_word; then
3910 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3914 if test -n "$AR"; then
3915 echo "$ac_t""$AR" 1>&6
3917 echo "$ac_t""no" 1>&6
3925 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3926 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3928 echo "configure:3929: checking for $ac_word" >&5
3929 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3930 echo $ac_n "(cached) $ac_c" 1>&6
3932 if test -n "$RANLIB"; then
3933 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3937 for ac_dir in $ac_dummy; do
3938 test -z "$ac_dir" && ac_dir=.
3939 if test -f $ac_dir/$ac_word; then
3940 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3947 RANLIB="$ac_cv_prog_RANLIB"
3948 if test -n "$RANLIB"; then
3949 echo "$ac_t""$RANLIB" 1>&6
3951 echo "$ac_t""no" 1>&6
3955 if test -z "$ac_cv_prog_RANLIB"; then
3956 if test -n "$ac_tool_prefix"; then
3957 # Extract the first word of "ranlib", so it can be a program name with args.
3958 set dummy ranlib; ac_word=$2
3959 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3960 echo "configure:3961: checking for $ac_word" >&5
3961 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3962 echo $ac_n "(cached) $ac_c" 1>&6
3964 if test -n "$RANLIB"; then
3965 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3969 for ac_dir in $ac_dummy; do
3970 test -z "$ac_dir" && ac_dir=.
3971 if test -f $ac_dir/$ac_word; then
3972 ac_cv_prog_RANLIB="ranlib"
3977 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3980 RANLIB="$ac_cv_prog_RANLIB"
3981 if test -n "$RANLIB"; then
3982 echo "$ac_t""$RANLIB" 1>&6
3984 echo "$ac_t""no" 1>&6
3992 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3993 set dummy ${ac_tool_prefix}strip; ac_word=$2
3994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3995 echo "configure:3996: checking for $ac_word" >&5
3996 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
3999 if test -n "$STRIP"; then
4000 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4004 for ac_dir in $ac_dummy; do
4005 test -z "$ac_dir" && ac_dir=.
4006 if test -f $ac_dir/$ac_word; then
4007 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4014 STRIP="$ac_cv_prog_STRIP"
4015 if test -n "$STRIP"; then
4016 echo "$ac_t""$STRIP" 1>&6
4018 echo "$ac_t""no" 1>&6
4022 if test -z "$ac_cv_prog_STRIP"; then
4023 if test -n "$ac_tool_prefix"; then
4024 # Extract the first word of "strip", so it can be a program name with args.
4025 set dummy strip; ac_word=$2
4026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4027 echo "configure:4028: checking for $ac_word" >&5
4028 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4031 if test -n "$STRIP"; then
4032 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4036 for ac_dir in $ac_dummy; do
4037 test -z "$ac_dir" && ac_dir=.
4038 if test -f $ac_dir/$ac_word; then
4039 ac_cv_prog_STRIP="strip"
4044 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4047 STRIP="$ac_cv_prog_STRIP"
4048 if test -n "$STRIP"; then
4049 echo "$ac_t""$STRIP" 1>&6
4051 echo "$ac_t""no" 1>&6
4059 # Find a good install program. We prefer a C program (faster),
4060 # so one script is as good as another. But avoid the broken or
4061 # incompatible versions:
4062 # SysV /etc/install, /usr/sbin/install
4063 # SunOS /usr/etc/install
4064 # IRIX /sbin/install
4066 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4067 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4068 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4069 # ./install, which can be erroneously created by make from ./install.sh.
4070 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4071 echo "configure:4072: checking for a BSD compatible install" >&5
4072 if test -z "$INSTALL"; then
4073 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4074 echo $ac_n "(cached) $ac_c" 1>&6
4076 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
4077 for ac_dir in $PATH; do
4078 # Account for people who put trailing slashes in PATH elements.
4080 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4082 # OSF1 and SCO ODT 3.0 have their own names for install.
4083 # Don't use installbsd from OSF since it installs stuff as root
4085 for ac_prog in ginstall scoinst install; do
4086 if test -f $ac_dir/$ac_prog; then
4087 if test $ac_prog = install &&
4088 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4089 # AIX install. It has an incompatible calling convention.
4092 ac_cv_path_install="$ac_dir/$ac_prog -c"
4103 if test "${ac_cv_path_install+set}" = set; then
4104 INSTALL="$ac_cv_path_install"
4106 # As a last resort, use the slow shell script. We don't cache a
4107 # path for INSTALL within a source directory, because that will
4108 # break other packages using the cache if that directory is
4109 # removed, or if the path is relative.
4110 INSTALL="$ac_install_sh"
4113 echo "$ac_t""$INSTALL" 1>&6
4115 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4116 # It thinks the first close brace ends the variable substitution.
4117 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4119 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4121 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4123 # See if we need a separate native compiler.
4124 if test $cross_compiling = no; then
4128 for ac_prog in gcc cc
4130 # Extract the first word of "$ac_prog", so it can be a program name with args.
4131 set dummy $ac_prog; ac_word=$2
4132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4133 echo "configure:4134: checking for $ac_word" >&5
4134 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4137 if test -n "$BUILD_CC"; then
4138 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4142 for ac_dir in $ac_dummy; do
4143 test -z "$ac_dir" && ac_dir=.
4144 if test -f $ac_dir/$ac_word; then
4145 ac_cv_prog_BUILD_CC="$ac_prog"
4152 BUILD_CC="$ac_cv_prog_BUILD_CC"
4153 if test -n "$BUILD_CC"; then
4154 echo "$ac_t""$BUILD_CC" 1>&6
4156 echo "$ac_t""no" 1>&6
4159 test -n "$BUILD_CC" && break
4163 for ac_hdr 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/sysmacros.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h
4165 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4166 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4167 echo "configure:4168: checking for $ac_hdr" >&5
4168 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4169 echo $ac_n "(cached) $ac_c" 1>&6
4171 cat > conftest.$ac_ext <<EOF
4172 #line 4173 "configure"
4173 #include "confdefs.h"
4176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4177 { (eval echo configure:4178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4179 if test -z "$ac_err"; then
4181 eval "ac_cv_header_$ac_safe=yes"
4184 echo "configure: failed program was:" >&5
4185 cat conftest.$ac_ext >&5
4187 eval "ac_cv_header_$ac_safe=no"
4191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4192 echo "$ac_t""yes" 1>&6
4193 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4194 cat >> confdefs.h <<EOF
4195 #define $ac_tr_hdr 1
4199 echo "$ac_t""no" 1>&6
4203 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
4204 echo "configure:4205: checking for vprintf" >&5
4205 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
4206 echo $ac_n "(cached) $ac_c" 1>&6
4208 cat > conftest.$ac_ext <<EOF
4209 #line 4210 "configure"
4210 #include "confdefs.h"
4211 /* System header to define __stub macros and hopefully few prototypes,
4212 which can conflict with char vprintf(); below. */
4214 /* Override any gcc2 internal prototype to avoid an error. */
4215 /* We use char because int might match the return type of a gcc2
4216 builtin and then its argument prototype would still apply. */
4221 /* The GNU C library defines this for functions which it implements
4222 to always fail with ENOSYS. Some functions are actually named
4223 something starting with __ and the normal name is an alias. */
4224 #if defined (__stub_vprintf) || defined (__stub___vprintf)
4232 if { (eval echo configure:4233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4234 eval "ac_cv_func_vprintf=yes"
4236 echo "configure: failed program was:" >&5
4237 cat conftest.$ac_ext >&5
4239 eval "ac_cv_func_vprintf=no"
4244 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4245 echo "$ac_t""yes" 1>&6
4246 cat >> confdefs.h <<\EOF
4247 #define HAVE_VPRINTF 1
4251 echo "$ac_t""no" 1>&6
4254 if test "$ac_cv_func_vprintf" != yes; then
4255 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
4256 echo "configure:4257: checking for _doprnt" >&5
4257 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4258 echo $ac_n "(cached) $ac_c" 1>&6
4260 cat > conftest.$ac_ext <<EOF
4261 #line 4262 "configure"
4262 #include "confdefs.h"
4263 /* System header to define __stub macros and hopefully few prototypes,
4264 which can conflict with char _doprnt(); below. */
4266 /* Override any gcc2 internal prototype to avoid an error. */
4267 /* We use char because int might match the return type of a gcc2
4268 builtin and then its argument prototype would still apply. */
4273 /* The GNU C library defines this for functions which it implements
4274 to always fail with ENOSYS. Some functions are actually named
4275 something starting with __ and the normal name is an alias. */
4276 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4284 if { (eval echo configure:4285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4286 eval "ac_cv_func__doprnt=yes"
4288 echo "configure: failed program was:" >&5
4289 cat conftest.$ac_ext >&5
4291 eval "ac_cv_func__doprnt=no"
4296 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4297 echo "$ac_t""yes" 1>&6
4298 cat >> confdefs.h <<\EOF
4299 #define HAVE_DOPRNT 1
4303 echo "$ac_t""no" 1>&6
4308 echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
4309 echo "configure:4310: checking whether llseek declared in unistd.h" >&5
4310 if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4311 echo $ac_n "(cached) $ac_c" 1>&6
4313 cat > conftest.$ac_ext <<EOF
4314 #line 4315 "configure"
4315 #include "confdefs.h"
4318 extern int llseek(int);
4321 if { (eval echo configure:4322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4323 e2fsprogs_cv_have_llseek_prototype=no
4325 echo "configure: failed program was:" >&5
4326 cat conftest.$ac_ext >&5
4328 e2fsprogs_cv_have_llseek_prototype=yes
4333 echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4334 if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4335 cat >> confdefs.h <<\EOF
4336 #define HAVE_LLSEEK_PROTOTYPE 1
4340 echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
4341 echo "configure:4342: checking whether lseek64 declared in unistd.h" >&5
4342 if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4343 echo $ac_n "(cached) $ac_c" 1>&6
4345 cat > conftest.$ac_ext <<EOF
4346 #line 4347 "configure"
4347 #include "confdefs.h"
4348 #define _LARGEFILE_SOURCE
4349 #define _LARGEFILE64_SOURCE
4352 extern int lseek64(int);
4355 if { (eval echo configure:4356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4357 e2fsprogs_cv_have_lseek64_prototype=no
4359 echo "configure: failed program was:" >&5
4360 cat conftest.$ac_ext >&5
4362 e2fsprogs_cv_have_lseek64_prototype=yes
4367 echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4368 if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4369 cat >> confdefs.h <<\EOF
4370 #define HAVE_LSEEK64_PROTOTYPE 1
4374 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4375 # if cross-compiling, with no cached values, just assume something common.
4376 ac_cv_sizeof_short=2
4379 ac_cv_sizeof_long_long=8
4380 echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" 1>&2
4382 echo $ac_n "checking size of short""... $ac_c" 1>&6
4383 echo "configure:4384: checking size of short" >&5
4384 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4385 echo $ac_n "(cached) $ac_c" 1>&6
4387 if test "$cross_compiling" = yes; then
4388 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4390 cat > conftest.$ac_ext <<EOF
4391 #line 4392 "configure"
4392 #include "confdefs.h"
4394 #include <sys/types.h>
4397 FILE *f=fopen("conftestval", "w");
4399 fprintf(f, "%d\n", sizeof(short));
4403 if { (eval echo configure:4404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4405 ac_cv_sizeof_short=`cat conftestval`
4407 echo "configure: failed program was:" >&5
4408 cat conftest.$ac_ext >&5
4410 ac_cv_sizeof_short=0
4416 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4417 cat >> confdefs.h <<EOF
4418 #define SIZEOF_SHORT $ac_cv_sizeof_short
4422 echo $ac_n "checking size of int""... $ac_c" 1>&6
4423 echo "configure:4424: checking size of int" >&5
4424 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4425 echo $ac_n "(cached) $ac_c" 1>&6
4427 if test "$cross_compiling" = yes; then
4428 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4430 cat > conftest.$ac_ext <<EOF
4431 #line 4432 "configure"
4432 #include "confdefs.h"
4434 #include <sys/types.h>
4437 FILE *f=fopen("conftestval", "w");
4439 fprintf(f, "%d\n", sizeof(int));
4443 if { (eval echo configure:4444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4445 ac_cv_sizeof_int=`cat conftestval`
4447 echo "configure: failed program was:" >&5
4448 cat conftest.$ac_ext >&5
4456 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4457 cat >> confdefs.h <<EOF
4458 #define SIZEOF_INT $ac_cv_sizeof_int
4462 echo $ac_n "checking size of long""... $ac_c" 1>&6
4463 echo "configure:4464: checking size of long" >&5
4464 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4465 echo $ac_n "(cached) $ac_c" 1>&6
4467 if test "$cross_compiling" = yes; then
4468 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4470 cat > conftest.$ac_ext <<EOF
4471 #line 4472 "configure"
4472 #include "confdefs.h"
4474 #include <sys/types.h>
4477 FILE *f=fopen("conftestval", "w");
4479 fprintf(f, "%d\n", sizeof(long));
4483 if { (eval echo configure:4484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4485 ac_cv_sizeof_long=`cat conftestval`
4487 echo "configure: failed program was:" >&5
4488 cat conftest.$ac_ext >&5
4496 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4497 cat >> confdefs.h <<EOF
4498 #define SIZEOF_LONG $ac_cv_sizeof_long
4502 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4503 echo "configure:4504: checking size of long long" >&5
4504 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4505 echo $ac_n "(cached) $ac_c" 1>&6
4507 if test "$cross_compiling" = yes; then
4508 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4510 cat > conftest.$ac_ext <<EOF
4511 #line 4512 "configure"
4512 #include "confdefs.h"
4514 #include <sys/types.h>
4517 FILE *f=fopen("conftestval", "w");
4519 fprintf(f, "%d\n", sizeof(long long));
4523 if { (eval echo configure:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4525 ac_cv_sizeof_long_long=`cat conftestval`
4527 echo "configure: failed program was:" >&5
4528 cat conftest.$ac_ext >&5
4530 ac_cv_sizeof_long_long=0
4536 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4537 cat >> confdefs.h <<EOF
4538 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4542 SIZEOF_SHORT=$ac_cv_sizeof_short
4543 SIZEOF_INT=$ac_cv_sizeof_int
4544 SIZEOF_LONG=$ac_cv_sizeof_long
4545 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4550 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4551 echo "configure:4552: checking whether byte ordering is bigendian" >&5
4552 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4553 echo $ac_n "(cached) $ac_c" 1>&6
4555 ac_cv_c_bigendian=unknown
4556 # See if sys/param.h defines the BYTE_ORDER macro.
4557 cat > conftest.$ac_ext <<EOF
4558 #line 4559 "configure"
4559 #include "confdefs.h"
4560 #include <sys/types.h>
4561 #include <sys/param.h>
4564 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4569 if { (eval echo configure:4570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4571 # It does; now see whether it defined to BIG_ENDIAN or not.
4572 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4575 #include <sys/types.h>
4576 #include <sys/param.h>
4579 #if BYTE_ORDER != BIG_ENDIAN
4584 if { (eval echo configure:4585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4586 ac_cv_c_bigendian=yes
4588 echo "configure: failed program was:" >&5
4589 cat conftest.$ac_ext >&5
4591 ac_cv_c_bigendian=no
4595 echo "configure: failed program was:" >&5
4596 cat conftest.$ac_ext >&5
4599 if test $ac_cv_c_bigendian = unknown; then
4600 if test "$cross_compiling" = yes; then
4601 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4603 cat > conftest.$ac_ext <<EOF
4604 #line 4605 "configure"
4605 #include "confdefs.h"
4607 /* Are we little or big endian? From Harbison&Steele. */
4611 char c[sizeof (long)];
4614 exit (u.c[sizeof (long) - 1] == 1);
4617 if { (eval echo configure:4618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4619 ac_cv_c_bigendian=no
4621 echo "configure: failed program was:" >&5
4622 cat conftest.$ac_ext >&5
4624 ac_cv_c_bigendian=yes
4632 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4633 if test $ac_cv_c_bigendian = yes; then
4634 cat >> confdefs.h <<\EOF
4635 #define WORDS_BIGENDIAN 1
4640 echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
4641 echo "configure:4642: checking whether struct stat has a st_flags field" >&5
4642 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4643 echo $ac_n "(cached) $ac_c" 1>&6
4645 cat > conftest.$ac_ext <<EOF
4646 #line 4647 "configure"
4647 #include "confdefs.h"
4648 #include <sys/stat.h>
4650 struct stat stat; stat.st_flags = 0;
4653 if { (eval echo configure:4654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4655 e2fsprogs_cv_struct_st_flags=yes
4657 echo "configure: failed program was:" >&5
4658 cat conftest.$ac_ext >&5
4660 e2fsprogs_cv_struct_st_flags=no
4665 echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4666 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
4667 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
4668 echo "configure:4669: checking whether st_flags field is useful" >&5
4669 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4670 echo $ac_n "(cached) $ac_c" 1>&6
4672 cat > conftest.$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4675 #include <sys/stat.h>
4677 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4680 if { (eval echo configure:4681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4682 e2fsprogs_cv_struct_st_flags_immut=yes
4684 echo "configure: failed program was:" >&5
4685 cat conftest.$ac_ext >&5
4687 e2fsprogs_cv_struct_st_flags_immut=no
4692 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4693 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4694 cat >> confdefs.h <<\EOF
4695 #define HAVE_STAT_FLAGS 1
4700 for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen sysconf pathconf
4702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4703 echo "configure:4704: checking for $ac_func" >&5
4704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4705 echo $ac_n "(cached) $ac_c" 1>&6
4707 cat > conftest.$ac_ext <<EOF
4708 #line 4709 "configure"
4709 #include "confdefs.h"
4710 /* System header to define __stub macros and hopefully few prototypes,
4711 which can conflict with char $ac_func(); below. */
4713 /* Override any gcc2 internal prototype to avoid an error. */
4714 /* We use char because int might match the return type of a gcc2
4715 builtin and then its argument prototype would still apply. */
4720 /* The GNU C library defines this for functions which it implements
4721 to always fail with ENOSYS. Some functions are actually named
4722 something starting with __ and the normal name is an alias. */
4723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4731 if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4733 eval "ac_cv_func_$ac_func=yes"
4735 echo "configure: failed program was:" >&5
4736 cat conftest.$ac_ext >&5
4738 eval "ac_cv_func_$ac_func=no"
4743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4744 echo "$ac_t""yes" 1>&6
4745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4746 cat >> confdefs.h <<EOF
4747 #define $ac_tr_func 1
4751 echo "$ac_t""no" 1>&6
4756 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
4757 echo "configure:4758: checking for socket in -lsocket" >&5
4758 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4759 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4760 echo $ac_n "(cached) $ac_c" 1>&6
4762 ac_save_LIBS="$LIBS"
4763 LIBS="-lsocket $LIBS"
4764 cat > conftest.$ac_ext <<EOF
4765 #line 4766 "configure"
4766 #include "confdefs.h"
4767 /* Override any gcc2 internal prototype to avoid an error. */
4768 /* We use char because int might match the return type of a gcc2
4769 builtin and then its argument prototype would still apply. */
4776 if { (eval echo configure:4777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4778 eval "ac_cv_lib_$ac_lib_var=yes"
4780 echo "configure: failed program was:" >&5
4781 cat conftest.$ac_ext >&5
4783 eval "ac_cv_lib_$ac_lib_var=no"
4786 LIBS="$ac_save_LIBS"
4789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4790 echo "$ac_t""yes" 1>&6
4793 echo "$ac_t""no" 1>&6
4797 echo $ac_n "checking for optreset""... $ac_c" 1>&6
4798 echo "configure:4799: checking for optreset" >&5
4799 if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4800 echo $ac_n "(cached) $ac_c" 1>&6
4802 cat > conftest.$ac_ext <<EOF
4803 #line 4804 "configure"
4804 #include "confdefs.h"
4807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4808 egrep "optreset" >/dev/null 2>&1; then
4810 ac_cv_have_optreset=yes
4813 ac_cv_have_optreset=no
4818 echo "$ac_t""$ac_cv_have_optreset" 1>&6
4819 if test $ac_cv_have_optreset = yes; then
4820 cat >> confdefs.h <<\EOF
4821 #define HAVE_OPTRESET 1
4827 cat >> confdefs.h <<\EOF
4828 #define HAVE_EXT2_IOCTLS 1
4842 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4844 echo "On $host_os systems, root_prefix defaults to ''"
4850 if test "$prefix" = NONE ; then
4852 echo "On $host_os systems, prefix defaults to /usr"
4853 if test "$mandir" = '${prefix}/man' ; then
4854 echo "...and mandir defaults to /usr/share/man"
4855 mandir=/usr/share/man
4860 if test "$root_prefix" = NONE ; then
4861 if test "$prefix" = NONE ; then
4862 root_prefix="$ac_default_prefix"
4864 root_prefix="$prefix"
4867 root_sbindir=$sbindir
4869 root_sysconfdir=$sysconfdir
4871 root_bindir='${root_prefix}/bin'
4872 root_sbindir='${root_prefix}/sbin'
4873 root_libdir='${root_prefix}/lib'
4874 root_sysconfdir='${root_prefix}/etc'
4881 echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
4882 echo "configure:4883: checking whether linker accepts -static" >&5
4883 if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4884 echo $ac_n "(cached) $ac_c" 1>&6
4886 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4887 cat > conftest.$ac_ext <<EOF
4888 #line 4889 "configure"
4889 #include "confdefs.h"
4895 if { (eval echo configure:4896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4897 ac_cv_e2fsprogs_use_static=yes
4899 echo "configure: failed program was:" >&5
4900 cat conftest.$ac_ext >&5
4902 ac_cv_e2fsprogs_use_static=no
4905 LDFLAGS=$SAVE_LDFLAGS
4910 ac_cv_e2fsprogs_use_static=no
4913 echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
4915 if test $ac_cv_e2fsprogs_use_static = yes; then
4916 LDFLAG_STATIC=-static
4919 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4920 ET_DIR=`cd ${srcdir}/lib/et; pwd`
4923 if test "$cross_compiling" = yes ; then
4929 test -d lib || mkdir lib
4930 test -d include || mkdir include
4931 test -d include/linux || mkdir include/linux
4932 test -d include/asm || mkdir include/asm
4934 if test -d ${srcdir}/resize ; then
4935 rmakefile=resize/Makefile
4938 cat > confcache <<\EOF
4939 # This file is a shell script that caches the results of configure
4940 # tests run on this system so they can be shared between configure
4941 # scripts and configure runs. It is not useful on other systems.
4942 # If it contains results you don't want to keep, you may remove or edit it.
4944 # By default, configure uses ./config.cache as the cache file,
4945 # creating it if it does not exist already. You can give configure
4946 # the --cache-file=FILE option to use a different cache file; that is
4947 # what configure does when it calls configure scripts in
4948 # subdirectories, so they share the cache.
4949 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4950 # config.status only pays attention to the cache file if you give it the
4951 # --recheck option to rerun configure.
4954 # The following way of writing the cache mishandles newlines in values,
4955 # but we know of no workaround that is simple, portable, and efficient.
4956 # So, don't put newlines in cache variables' values.
4957 # Ultrix sh set writes to stderr and can't be redirected directly,
4958 # and sets the high bit in the cache file unless we assign to the vars.
4960 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4962 # `set' does not quote correctly, so add quotes (double-quote substitution
4963 # turns \\\\ into \\, and sed turns \\ into \).
4965 -e "s/'/'\\\\''/g" \
4966 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4969 # `set' quotes correctly as required by POSIX, so do not add quotes.
4970 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4973 if cmp -s $cache_file confcache; then
4976 if test -w $cache_file; then
4977 echo "updating cache $cache_file"
4978 cat confcache > $cache_file
4980 echo "not updating unwritable cache $cache_file"
4985 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4987 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4988 # Let make expand exec_prefix.
4989 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4991 # Any assignment to VPATH causes Sun make to only execute
4992 # the first set of double-colon rules, so remove it if not needed.
4993 # If there is a colon in the path, we need to keep it.
4994 if test "x$srcdir" = x.; then
4995 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4998 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5000 # Transform confdefs.h into DEFS.
5001 # Protect against shell expansion while executing Makefile rules.
5002 # Protect against Makefile macro expansion.
5003 cat > conftest.defs <<\EOF
5004 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
5005 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
5010 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
5014 # Without the "./", some shells look in PATH for config.status.
5015 : ${CONFIG_STATUS=./config.status}
5017 echo creating $CONFIG_STATUS
5018 rm -f $CONFIG_STATUS
5019 cat > $CONFIG_STATUS <<EOF
5021 # Generated automatically by configure.
5022 # Run this file to recreate the current configuration.
5023 # This directory was configured as follows,
5024 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5026 # $0 $ac_configure_args
5028 # Compiler output produced by configure, useful for debugging
5029 # configure, is in ./config.log if it exists.
5031 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5034 case "\$ac_option" in
5035 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5036 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5037 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5038 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5039 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5041 -help | --help | --hel | --he | --h)
5042 echo "\$ac_cs_usage"; exit 0 ;;
5043 *) echo "\$ac_cs_usage"; exit 1 ;;
5047 ac_given_srcdir=$srcdir
5048 ac_given_INSTALL="$INSTALL"
5050 trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
5051 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
5052 lib/blkid/Makefile lib/blkid/blkid_types.h lib/evms/Makefile
5053 misc/Makefile ext2ed/Makefile e2fsck/Makefile debugfs/Makefile \
5054 tests/Makefile tests/progs/Makefile $rmakefile doc/Makefile
5055 intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5057 cat >> $CONFIG_STATUS <<EOF
5059 # Protect against being on the right side of a sed subst in config.status.
5060 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5061 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5065 s%@CFLAGS@%$CFLAGS%g
5066 s%@CPPFLAGS@%$CPPFLAGS%g
5067 s%@CXXFLAGS@%$CXXFLAGS%g
5068 s%@FFLAGS@%$FFLAGS%g
5070 s%@LDFLAGS@%$LDFLAGS%g
5072 s%@exec_prefix@%$exec_prefix%g
5073 s%@prefix@%$prefix%g
5074 s%@program_transform_name@%$program_transform_name%g
5075 s%@bindir@%$bindir%g
5076 s%@sbindir@%$sbindir%g
5077 s%@libexecdir@%$libexecdir%g
5078 s%@datadir@%$datadir%g
5079 s%@sysconfdir@%$sysconfdir%g
5080 s%@sharedstatedir@%$sharedstatedir%g
5081 s%@localstatedir@%$localstatedir%g
5082 s%@libdir@%$libdir%g
5083 s%@includedir@%$includedir%g
5084 s%@oldincludedir@%$oldincludedir%g
5085 s%@infodir@%$infodir%g
5086 s%@mandir@%$mandir%g
5087 /@MCONFIG@/r $MCONFIG
5089 s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
5090 s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
5091 s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
5093 s%@host_alias@%$host_alias%g
5094 s%@host_cpu@%$host_cpu%g
5095 s%@host_vendor@%$host_vendor%g
5096 s%@host_os@%$host_os%g
5100 s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
5101 s%@HTREE_CMT@%$HTREE_CMT%g
5102 s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g
5103 s%@EVMS_ABI_CODE@%$EVMS_ABI_CODE%g
5104 s%@DLL_CMT@%$DLL_CMT%g
5105 /@MAKEFILE_DLL@/r $MAKEFILE_DLL
5107 s%@ELF_CMT@%$ELF_CMT%g
5108 /@MAKEFILE_ELF@/r $MAKEFILE_ELF
5110 s%@BSDLIB_CMT@%$BSDLIB_CMT%g
5111 /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
5112 s%@MAKEFILE_BSDLIB@%%g
5113 s%@PROFILE_CMT@%$PROFILE_CMT%g
5114 /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
5115 s%@MAKEFILE_PROFILE@%%g
5116 s%@CHECKER_CMT@%$CHECKER_CMT%g
5117 /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
5118 s%@MAKEFILE_CHECKER@%%g
5119 s%@LIB_EXT@%$LIB_EXT%g
5120 s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
5121 s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
5122 s%@SWAPFS_CMT@%$SWAPFS_CMT%g
5123 s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g
5124 s%@IMAGER_CMT@%$IMAGER_CMT%g
5125 s%@RESIZER_CMT@%$RESIZER_CMT%g
5126 s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
5127 s%@FSCK_PROG@%$FSCK_PROG%g
5128 s%@FSCK_MAN@%$FSCK_MAN%g
5129 /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
5130 s%@MAKEFILE_LIBRARY@%%g
5131 s%@PACKAGE@%$PACKAGE%g
5132 s%@VERSION@%$VERSION%g
5133 s%@SET_MAKE@%$SET_MAKE%g
5134 s%@RANLIB@%$RANLIB%g
5135 s%@ALLOCA@%$ALLOCA%g
5136 s%@USE_NLS@%$USE_NLS%g
5137 s%@MSGFMT@%$MSGFMT%g
5138 s%@GMSGFMT@%$GMSGFMT%g
5139 s%@XGETTEXT@%$XGETTEXT%g
5140 s%@GENCAT@%$GENCAT%g
5141 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5142 s%@CATALOGS@%$CATALOGS%g
5143 s%@CATOBJEXT@%$CATOBJEXT%g
5144 s%@DATADIRNAME@%$DATADIRNAME%g
5145 s%@GMOFILES@%$GMOFILES%g
5146 s%@INSTOBJEXT@%$INSTOBJEXT%g
5147 s%@INTLDEPS@%$INTLDEPS%g
5148 s%@INTLLIBS@%$INTLLIBS%g
5149 s%@INTLOBJS@%$INTLOBJS%g
5150 s%@POFILES@%$POFILES%g
5152 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5154 s%@GT_YES@%$GT_YES%g
5155 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5157 s%@BINARY_TYPE@%$BINARY_TYPE%g
5167 s%@LDCONFIG@%$LDCONFIG%g
5169 s%@build_alias@%$build_alias%g
5170 s%@build_cpu@%$build_cpu%g
5171 s%@build_vendor@%$build_vendor%g
5172 s%@build_os@%$build_os%g
5175 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5176 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5177 s%@INSTALL_DATA@%$INSTALL_DATA%g
5178 s%@BUILD_CC@%$BUILD_CC%g
5179 s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
5180 s%@SIZEOF_INT@%$SIZEOF_INT%g
5181 s%@SIZEOF_LONG@%$SIZEOF_LONG%g
5182 s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
5183 s%@SOCKET_LIB@%$SOCKET_LIB%g
5184 s%@LINUX_CMT@%$LINUX_CMT%g
5185 s%@root_prefix@%$root_prefix%g
5186 s%@root_bindir@%$root_bindir%g
5187 s%@root_sbindir@%$root_sbindir%g
5188 s%@root_libdir@%$root_libdir%g
5189 s%@root_sysconfdir@%$root_sysconfdir%g
5190 s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
5191 s%@SS_DIR@%$SS_DIR%g
5192 s%@ET_DIR@%$ET_DIR%g
5193 s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
5198 cat >> $CONFIG_STATUS <<\EOF
5200 # Split the substitutions into bite-sized pieces for seds with
5201 # small command number limits, like on Digital OSF/1 and HP-UX.
5202 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5203 ac_file=1 # Number of current file.
5204 ac_beg=1 # First line for current file.
5205 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5208 while $ac_more_lines; do
5209 if test $ac_beg -gt 1; then
5210 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5212 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5214 if test ! -s conftest.s$ac_file; then
5216 rm -f conftest.s$ac_file
5218 if test -z "$ac_sed_cmds"; then
5219 ac_sed_cmds="sed -f conftest.s$ac_file"
5221 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5223 ac_file=`expr $ac_file + 1`
5225 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5228 if test -z "$ac_sed_cmds"; then
5233 cat >> $CONFIG_STATUS <<EOF
5235 CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
5236 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
5237 lib/blkid/Makefile lib/blkid/blkid_types.h lib/evms/Makefile
5238 misc/Makefile ext2ed/Makefile e2fsck/Makefile debugfs/Makefile \
5239 tests/Makefile tests/progs/Makefile $rmakefile doc/Makefile
5240 intl/Makefile po/Makefile.in"}
5242 cat >> $CONFIG_STATUS <<\EOF
5243 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5244 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5246 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5247 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5248 *) ac_file_in="${ac_file}.in" ;;
5251 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5253 # Remove last slash and all that follows it. Not all systems have dirname.
5254 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5255 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5256 # The file is in a subdirectory.
5257 test ! -d "$ac_dir" && mkdir "$ac_dir"
5258 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5259 # A "../" for each directory in $ac_dir_suffix.
5260 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5262 ac_dir_suffix= ac_dots=
5265 case "$ac_given_srcdir" in
5267 if test -z "$ac_dots"; then top_srcdir=.
5268 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5269 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5271 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5272 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5275 case "$ac_given_INSTALL" in
5276 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5277 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5280 echo creating "$ac_file"
5282 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5284 *Makefile*) ac_comsub="1i\\
5285 # $configure_input" ;;
5289 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5291 s%@configure_input@%$configure_input%g
5292 s%@srcdir@%$srcdir%g
5293 s%@top_srcdir@%$top_srcdir%g
5294 s%@INSTALL@%$INSTALL%g
5295 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5301 cat >> $CONFIG_STATUS <<EOF
5302 ac_sources="$nls_cv_header_libgt"
5303 ac_dests="$nls_cv_header_intl"
5306 cat >> $CONFIG_STATUS <<\EOF
5307 srcdir=$ac_given_srcdir
5308 while test -n "$ac_sources"; do
5309 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5310 set $ac_sources; ac_source=$1; shift; ac_sources=$*
5312 echo "linking $srcdir/$ac_source to $ac_dest"
5314 if test ! -r $srcdir/$ac_source; then
5315 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5319 # Make relative symlinks.
5320 # Remove last slash and all that follows it. Not all systems have dirname.
5321 ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5322 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5323 # The dest file is in a subdirectory.
5324 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5325 ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5326 # A "../" for each directory in $ac_dest_dir_suffix.
5327 ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5329 ac_dest_dir_suffix= ac_dots=
5333 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5334 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5337 # Make a symlink if possible; otherwise try a hard link.
5338 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5339 ln $srcdir/$ac_source $ac_dest; then :
5341 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5345 cat >> $CONFIG_STATUS <<EOF
5349 cat >> $CONFIG_STATUS <<\EOF
5350 case "$CONFIG_FILES" in *po/Makefile.in*)
5351 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5356 chmod +x $CONFIG_STATUS
5357 rm -fr confdefs* $ac_clean_files
5358 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1