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-dll-shlibs select DLL libraries"
27 --enable-elf-shlibs select ELF shared libraries"
29 --enable-bsd-shlibs select BSD shared libraries"
31 --enable-profile build profiling libraries"
33 --enable-checker build checker libraries"
35 --enable-gcc-wall enable GCC anal warnings (DON'T USE IN PRODUCTION)"
37 --enable-dynamic-e2fsck build e2fsck dynamically"
39 --enable-fsck build fsck wrapper program"
41 --enable-old-bitops Use old (non-standard but native) bitmask operations"
43 # Initialize some variables set by options.
44 # The variables have the same names as the options, with
45 # dashes changed to underlines.
47 cache_file=./config.cache
56 program_transform_name=s,x,x,
64 bindir='${exec_prefix}/bin'
65 sbindir='${exec_prefix}/sbin'
66 libexecdir='${exec_prefix}/libexec'
67 datadir='${prefix}/share'
68 sysconfdir='${prefix}/etc'
69 sharedstatedir='${prefix}/com'
70 localstatedir='${prefix}/var'
71 libdir='${exec_prefix}/lib'
72 includedir='${prefix}/include'
73 oldincludedir='/usr/include'
74 infodir='${prefix}/info'
75 mandir='${prefix}/man'
77 # Initialize some other variables.
80 SHELL=${CONFIG_SHELL-/bin/sh}
81 # Maximum number of lines to put in a shell here document.
88 # If the previous option needs an argument, assign it.
89 if test -n "$ac_prev"; then
90 eval "$ac_prev=\$ac_option"
96 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100 # Accept the important Cygnus configure options, so we can diagnose typos.
104 -bindir | --bindir | --bindi | --bind | --bin | --bi)
106 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
107 bindir="$ac_optarg" ;;
109 -build | --build | --buil | --bui | --bu)
111 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
112 build="$ac_optarg" ;;
114 -cache-file | --cache-file | --cache-fil | --cache-fi \
115 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
116 ac_prev=cache_file ;;
117 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
118 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
119 cache_file="$ac_optarg" ;;
121 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
123 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
125 datadir="$ac_optarg" ;;
127 -disable-* | --disable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}=no" ;;
136 -enable-* | --enable-*)
137 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
138 # Reject names that are not valid shell variable names.
139 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
147 eval "enable_${ac_feature}='$ac_optarg'" ;;
149 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
150 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
151 | --exec | --exe | --ex)
152 ac_prev=exec_prefix ;;
153 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
154 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
155 | --exec=* | --exe=* | --ex=*)
156 exec_prefix="$ac_optarg" ;;
158 -gas | --gas | --ga | --g)
159 # Obsolete; use --with-gas.
162 -help | --help | --hel | --he)
163 # Omit some internal or obsolete options to make the list less imposing.
164 # This message is too long to be a string in the A/UX 3.1 sh.
166 Usage: configure [options] [host]
167 Options: [defaults in brackets after descriptions]
169 --cache-file=FILE cache test results in FILE
170 --help print this message
171 --no-create do not create output files
172 --quiet, --silent do not print \`checking...' messages
173 --version print the version of autoconf that created configure
174 Directory and file names:
175 --prefix=PREFIX install architecture-independent files in PREFIX
177 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
179 --bindir=DIR user executables in DIR [EPREFIX/bin]
180 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
181 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
182 --datadir=DIR read-only architecture-independent data in DIR
184 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
185 --sharedstatedir=DIR modifiable architecture-independent data in DIR
187 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
188 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
189 --includedir=DIR C header files in DIR [PREFIX/include]
190 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
191 --infodir=DIR info documentation in DIR [PREFIX/info]
192 --mandir=DIR man documentation in DIR [PREFIX/man]
193 --srcdir=DIR find the sources in DIR [configure dir or ..]
194 --program-prefix=PREFIX prepend PREFIX to installed program names
195 --program-suffix=SUFFIX append SUFFIX to installed program names
196 --program-transform-name=PROGRAM
197 run sed PROGRAM on installed program names
201 --build=BUILD configure for building on BUILD [BUILD=HOST]
202 --host=HOST configure for HOST [guessed]
203 --target=TARGET configure for TARGET [TARGET=HOST]
204 Features and packages:
205 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
206 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
207 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
208 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
209 --x-includes=DIR X include files are in DIR
210 --x-libraries=DIR X library files are in DIR
212 if test -n "$ac_help"; then
213 echo "--enable and --with options recognized:$ac_help"
217 -host | --host | --hos | --ho)
219 -host=* | --host=* | --hos=* | --ho=*)
222 -includedir | --includedir | --includedi | --included | --include \
223 | --includ | --inclu | --incl | --inc)
224 ac_prev=includedir ;;
225 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
226 | --includ=* | --inclu=* | --incl=* | --inc=*)
227 includedir="$ac_optarg" ;;
229 -infodir | --infodir | --infodi | --infod | --info | --inf)
231 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
232 infodir="$ac_optarg" ;;
234 -libdir | --libdir | --libdi | --libd)
236 -libdir=* | --libdir=* | --libdi=* | --libd=*)
237 libdir="$ac_optarg" ;;
239 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
240 | --libexe | --libex | --libe)
241 ac_prev=libexecdir ;;
242 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
243 | --libexe=* | --libex=* | --libe=*)
244 libexecdir="$ac_optarg" ;;
246 -localstatedir | --localstatedir | --localstatedi | --localstated \
247 | --localstate | --localstat | --localsta | --localst \
248 | --locals | --local | --loca | --loc | --lo)
249 ac_prev=localstatedir ;;
250 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
251 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
252 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
253 localstatedir="$ac_optarg" ;;
255 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
257 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
258 mandir="$ac_optarg" ;;
261 # Obsolete; use --without-fp.
264 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
268 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
269 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
272 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
273 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
274 | --oldin | --oldi | --old | --ol | --o)
275 ac_prev=oldincludedir ;;
276 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
277 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
278 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
279 oldincludedir="$ac_optarg" ;;
281 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
283 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
284 prefix="$ac_optarg" ;;
286 -program-prefix | --program-prefix | --program-prefi | --program-pref \
287 | --program-pre | --program-pr | --program-p)
288 ac_prev=program_prefix ;;
289 -program-prefix=* | --program-prefix=* | --program-prefi=* \
290 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
291 program_prefix="$ac_optarg" ;;
293 -program-suffix | --program-suffix | --program-suffi | --program-suff \
294 | --program-suf | --program-su | --program-s)
295 ac_prev=program_suffix ;;
296 -program-suffix=* | --program-suffix=* | --program-suffi=* \
297 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
298 program_suffix="$ac_optarg" ;;
300 -program-transform-name | --program-transform-name \
301 | --program-transform-nam | --program-transform-na \
302 | --program-transform-n | --program-transform- \
303 | --program-transform | --program-transfor \
304 | --program-transfo | --program-transf \
305 | --program-trans | --program-tran \
306 | --progr-tra | --program-tr | --program-t)
307 ac_prev=program_transform_name ;;
308 -program-transform-name=* | --program-transform-name=* \
309 | --program-transform-nam=* | --program-transform-na=* \
310 | --program-transform-n=* | --program-transform-=* \
311 | --program-transform=* | --program-transfor=* \
312 | --program-transfo=* | --program-transf=* \
313 | --program-trans=* | --program-tran=* \
314 | --progr-tra=* | --program-tr=* | --program-t=*)
315 program_transform_name="$ac_optarg" ;;
317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
318 | -silent | --silent | --silen | --sile | --sil)
321 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
323 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
325 sbindir="$ac_optarg" ;;
327 -sharedstatedir | --sharedstatedir | --sharedstatedi \
328 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
329 | --sharedst | --shareds | --shared | --share | --shar \
331 ac_prev=sharedstatedir ;;
332 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
333 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
334 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
336 sharedstatedir="$ac_optarg" ;;
338 -site | --site | --sit)
340 -site=* | --site=* | --sit=*)
343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
346 srcdir="$ac_optarg" ;;
348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
349 | --syscon | --sysco | --sysc | --sys | --sy)
350 ac_prev=sysconfdir ;;
351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
353 sysconfdir="$ac_optarg" ;;
355 -target | --target | --targe | --targ | --tar | --ta | --t)
357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
358 target="$ac_optarg" ;;
360 -v | -verbose | --verbose | --verbos | --verbo | --verb)
363 -version | --version | --versio | --versi | --vers)
364 echo "configure generated by autoconf version 2.13"
368 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}='$ac_optarg'" ;;
380 -without-* | --without-*)
381 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}=no" ;;
390 # Obsolete; use --with-x.
393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
394 | --x-incl | --x-inc | --x-in | --x-i)
395 ac_prev=x_includes ;;
396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
398 x_includes="$ac_optarg" ;;
400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
402 ac_prev=x_libraries ;;
403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
405 x_libraries="$ac_optarg" ;;
407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412 echo "configure: warning: $ac_option: invalid host type" 1>&2
414 if test "x$nonopt" != xNONE; then
415 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
423 if test -n "$ac_prev"; then
424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
429 # File descriptor usage:
432 # 2 errors and warnings
433 # 3 some systems may open it to /dev/tty
434 # 4 used on the Kubota Titan
435 # 6 checking for... messages and results
436 # 5 compiler messages saved in config.log
437 if test "$silent" = yes; then
445 This file contains any messages produced by compilers while
446 running configure, to aid debugging if configure makes a mistake.
449 # Strip out --no-create and --no-recursion so they do not pile up.
450 # Also quote any args containing shell metacharacters.
455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
456 | --no-cr | --no-c) ;;
457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
461 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
466 # Only set these to C if already set. These must not be set unconditionally
467 # because not all systems understand e.g. LANG=C (notably SCO).
468 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469 # Non-C LC_CTYPE values break the ctype check.
470 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
471 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
472 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
473 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
475 # confdefs.h avoids OS command line length limits that DEFS can exceed.
476 rm -rf conftest* confdefs.h
477 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
480 # A filename unique to this package, relative to the directory that
481 # configure is in, which we can look for to find out if srcdir is correct.
482 ac_unique_file=version.h
484 # Find the source files, if location was not specified.
485 if test -z "$srcdir"; then
486 ac_srcdir_defaulted=yes
487 # Try the directory containing this script, then its parent.
489 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
492 if test ! -r $srcdir/$ac_unique_file; then
496 ac_srcdir_defaulted=no
498 if test ! -r $srcdir/$ac_unique_file; then
499 if test "$ac_srcdir_defaulted" = yes; then
500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
505 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
507 # Prefer explicitly selected file to automatically selected ones.
508 if test -z "$CONFIG_SITE"; then
509 if test "x$prefix" != xNONE; then
510 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
512 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
515 for ac_site_file in $CONFIG_SITE; do
516 if test -r "$ac_site_file"; then
517 echo "loading site script $ac_site_file"
522 if test -r "$cache_file"; then
523 echo "loading cache $cache_file"
526 echo "creating cache $cache_file"
531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
532 ac_cpp='$CPP $CPPFLAGS'
533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
535 cross_compiling=$ac_cv_prog_cc_cross
539 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
540 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
541 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
548 ac_n= ac_c='\c' ac_t=
556 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
557 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
558 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
560 MONTH=`echo $DATE | awk -F- '{print $2}'`
561 YEAR=`echo $DATE | awk -F- '{print $3}'`
563 if expr $YEAR ">" 1900 > /dev/null ; then
565 elif expr $YEAR ">" 90 >/dev/null ; then
566 E2FSPROGS_YEAR=19$YEAR
568 E2FSPROGS_YEAR=20$YEAR
572 Jan) E2FSPROGS_MONTH="January" ;;
573 Feb) E2FSPROGS_MONTH="February" ;;
574 Mar) E2FSPROGS_MONTH="March" ;;
575 Apr) E2FSPROGS_MONTH="April" ;;
576 May) E2FSPROGS_MONTH="May" ;;
577 Jun) E2FSPROGS_MONTH="June" ;;
578 Jul) E2FSPROGS_MONTH="July" ;;
579 Aug) E2FSPROGS_MONTH="August" ;;
580 Sep) E2FSPROGS_MONTH="September" ;;
581 Oct) E2FSPROGS_MONTH="October" ;;
582 Nov) E2FSPROGS_MONTH="November" ;;
583 Dec) E2FSPROGS_MONTH="December" ;;
584 *) echo "Unknown month $MONTH??" ;;
587 unset DATE MONTH YEAR
588 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
589 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
595 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
596 if test -f $ac_dir/install-sh; then
598 ac_install_sh="$ac_aux_dir/install-sh -c"
600 elif test -f $ac_dir/install.sh; then
602 ac_install_sh="$ac_aux_dir/install.sh -c"
606 if test -z "$ac_aux_dir"; then
607 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
609 ac_config_guess=$ac_aux_dir/config.guess
610 ac_config_sub=$ac_aux_dir/config.sub
611 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
614 # Make sure we can run config.sub.
615 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
616 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
619 echo $ac_n "checking host system type""... $ac_c" 1>&6
620 echo "configure:621: checking host system type" >&5
623 case "$host_alias" in
627 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
628 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
630 *) host_alias=$nonopt ;;
634 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
635 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
636 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
637 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
638 echo "$ac_t""$host" 1>&6
640 # Check whether --with-cc or --without-cc was given.
641 if test "${with_cc+set}" = set; then
643 echo "$ac_t""CC=$withval" 1>&6
646 if test -z "$CC" ; then CC=cc; fi
647 echo "$ac_t""CC defaults to $CC" 1>&6
651 # Extract the first word of "gcc", so it can be a program name with args.
652 set dummy gcc; ac_word=$2
653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
654 echo "configure:655: checking for $ac_word" >&5
655 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
656 echo $ac_n "(cached) $ac_c" 1>&6
658 if test -n "$CC"; then
659 ac_cv_prog_CC="$CC" # Let the user override the test.
661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
663 for ac_dir in $ac_dummy; do
664 test -z "$ac_dir" && ac_dir=.
665 if test -f $ac_dir/$ac_word; then
674 if test -n "$CC"; then
675 echo "$ac_t""$CC" 1>&6
677 echo "$ac_t""no" 1>&6
680 if test -z "$CC"; then
681 # Extract the first word of "cc", so it can be a program name with args.
682 set dummy cc; ac_word=$2
683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
684 echo "configure:685: checking for $ac_word" >&5
685 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
686 echo $ac_n "(cached) $ac_c" 1>&6
688 if test -n "$CC"; then
689 ac_cv_prog_CC="$CC" # Let the user override the test.
691 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
694 for ac_dir in $ac_dummy; do
695 test -z "$ac_dir" && ac_dir=.
696 if test -f $ac_dir/$ac_word; then
697 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
706 if test $ac_prog_rejected = yes; then
707 # We found a bogon in the path, so make sure we never use it.
708 set dummy $ac_cv_prog_CC
710 if test $# -gt 0; then
711 # We chose a different compiler from the bogus one.
712 # However, it has the same basename, so the bogon will be chosen
713 # first if we set CC to just the basename; use the full file name.
715 set dummy "$ac_dir/$ac_word" "$@"
723 if test -n "$CC"; then
724 echo "$ac_t""$CC" 1>&6
726 echo "$ac_t""no" 1>&6
729 if test -z "$CC"; then
732 # Extract the first word of "cl", so it can be a program name with args.
733 set dummy cl; ac_word=$2
734 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
735 echo "configure:736: checking for $ac_word" >&5
736 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
737 echo $ac_n "(cached) $ac_c" 1>&6
739 if test -n "$CC"; then
740 ac_cv_prog_CC="$CC" # Let the user override the test.
742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
744 for ac_dir in $ac_dummy; do
745 test -z "$ac_dir" && ac_dir=.
746 if test -f $ac_dir/$ac_word; then
755 if test -n "$CC"; then
756 echo "$ac_t""$CC" 1>&6
758 echo "$ac_t""no" 1>&6
763 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
766 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
767 echo "configure:768: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
770 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
771 ac_cpp='$CPP $CPPFLAGS'
772 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
773 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
774 cross_compiling=$ac_cv_prog_cc_cross
776 cat > conftest.$ac_ext << EOF
778 #line 779 "configure"
779 #include "confdefs.h"
783 if { (eval echo configure:784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
784 ac_cv_prog_cc_works=yes
785 # If we can't run a trivial program, we are probably using a cross compiler.
786 if (./conftest; exit) 2>/dev/null; then
787 ac_cv_prog_cc_cross=no
789 ac_cv_prog_cc_cross=yes
792 echo "configure: failed program was:" >&5
793 cat conftest.$ac_ext >&5
794 ac_cv_prog_cc_works=no
798 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
799 ac_cpp='$CPP $CPPFLAGS'
800 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
801 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
802 cross_compiling=$ac_cv_prog_cc_cross
804 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
805 if test $ac_cv_prog_cc_works = no; then
806 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
808 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
809 echo "configure:810: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
810 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
811 cross_compiling=$ac_cv_prog_cc_cross
813 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
814 echo "configure:815: checking whether we are using GNU C" >&5
815 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
816 echo $ac_n "(cached) $ac_c" 1>&6
818 cat > conftest.c <<EOF
823 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
830 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
832 if test $ac_cv_prog_gcc = yes; then
838 ac_test_CFLAGS="${CFLAGS+set}"
839 ac_save_CFLAGS="$CFLAGS"
841 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
842 echo "configure:843: checking whether ${CC-cc} accepts -g" >&5
843 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
844 echo $ac_n "(cached) $ac_c" 1>&6
846 echo 'void f(){}' > conftest.c
847 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
856 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
857 if test "$ac_test_CFLAGS" = set; then
858 CFLAGS="$ac_save_CFLAGS"
859 elif test $ac_cv_prog_cc_g = yes; then
860 if test "$GCC" = yes; then
866 if test "$GCC" = yes; then
873 # Check whether --with-linker or --without-linker was given.
874 if test "${with_linker+set}" = set; then
875 withval="$with_linker"
876 echo "$ac_t""LD=$withval" 1>&6
879 if test -z "$LD" ; then LD=$CC; fi
880 echo "$ac_t""LD defaults to $LD" 1>&6
884 # Check whether --with-ccopts or --without-ccopts was given.
885 if test "${with_ccopts+set}" = set; then
886 withval="$with_ccopts"
887 echo "$ac_t""CCOPTS is $withval" 1>&6
889 CFLAGS="$CFLAGS $withval"
894 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
895 echo "configure:896: checking how to run the C preprocessor" >&5
896 # On Suns, sometimes $CPP names a directory.
897 if test -n "$CPP" && test -d "$CPP"; then
900 if test -z "$CPP"; then
901 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
902 echo $ac_n "(cached) $ac_c" 1>&6
904 # This must be in double quotes, not single quotes, because CPP may get
905 # substituted into the Makefile and "${CC-cc}" will confuse make.
907 # On the NeXT, cc -E runs the code through the compiler's parser,
908 # not just through cpp.
909 cat > conftest.$ac_ext <<EOF
910 #line 911 "configure"
911 #include "confdefs.h"
915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
916 { (eval echo configure:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
918 if test -z "$ac_err"; then
922 echo "configure: failed program was:" >&5
923 cat conftest.$ac_ext >&5
925 CPP="${CC-cc} -E -traditional-cpp"
926 cat > conftest.$ac_ext <<EOF
927 #line 928 "configure"
928 #include "confdefs.h"
932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
933 { (eval echo configure:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
935 if test -z "$ac_err"; then
939 echo "configure: failed program was:" >&5
940 cat conftest.$ac_ext >&5
942 CPP="${CC-cc} -nologo -E"
943 cat > conftest.$ac_ext <<EOF
944 #line 945 "configure"
945 #include "confdefs.h"
949 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
950 { (eval echo configure:951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
951 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
952 if test -z "$ac_err"; then
956 echo "configure: failed program was:" >&5
957 cat conftest.$ac_ext >&5
966 ac_cv_prog_CPP="$CPP"
968 CPP="$ac_cv_prog_CPP"
970 ac_cv_prog_CPP="$CPP"
972 echo "$ac_t""$CPP" 1>&6
974 ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
975 echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
976 echo "configure:977: checking for linux/fs.h" >&5
977 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
978 echo $ac_n "(cached) $ac_c" 1>&6
980 cat > conftest.$ac_ext <<EOF
981 #line 982 "configure"
982 #include "confdefs.h"
983 #include <linux/fs.h>
985 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986 { (eval echo configure:987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
987 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
988 if test -z "$ac_err"; then
990 eval "ac_cv_header_$ac_safe=yes"
993 echo "configure: failed program was:" >&5
994 cat conftest.$ac_ext >&5
996 eval "ac_cv_header_$ac_safe=no"
1000 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1001 echo "$ac_t""yes" 1>&6
1004 echo "$ac_t""no" 1>&6
1008 if test "$linux_headers" != yes; then
1009 LINUX_INCLUDE='-I$(top_builddir)/include'
1015 # Check whether --with-ldopts or --without-ldopts was given.
1016 if test "${with_ldopts+set}" = set; then
1017 withval="$with_ldopts"
1018 echo "$ac_t""LDFLAGS is $withval" 1>&6
1024 # Check whether --with-root-prefix or --without-root-prefix was given.
1025 if test "${with_root_prefix+set}" = set; then
1026 withval="$with_root_prefix"
1027 root_prefix=$withval
1031 # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
1032 if test "${enable_dll_shlibs+set}" = set; then
1033 enableval="$enable_dll_shlibs"
1034 if test "$enableval" = "no"
1037 MAKEFILE_DLL=/dev/null
1038 echo "Disabling DLL shared libraries"
1041 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
1044 echo "Enabling DLL shared libraries"
1048 MAKEFILE_DLL=/dev/null
1050 echo "Disabling DLL shared libraries by default"
1056 # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
1057 if test "${enable_elf_shlibs+set}" = set; then
1058 enableval="$enable_elf_shlibs"
1059 if test "$enableval" = "no"
1062 MAKEFILE_ELF=/dev/null
1063 echo "Disabling ELF shared libraries"
1066 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
1069 echo "Enabling ELF shared libraries"
1073 MAKEFILE_ELF=/dev/null
1075 echo "Disabling ELF shared libraries by default"
1081 # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
1082 if test "${enable_bsd_shlibs+set}" = set; then
1083 enableval="$enable_bsd_shlibs"
1084 if test "$enableval" = "no"
1087 MAKEFILE_BSDLIB=/dev/null
1088 echo "Disabling BSD shared libraries"
1091 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
1093 echo "Enabling BSD shared libraries"
1097 MAKEFILE_BSDLIB=/dev/null
1099 echo "Disabling BSD shared libraries by default"
1105 # Check whether --enable-profile or --disable-profile was given.
1106 if test "${enable_profile+set}" = set; then
1107 enableval="$enable_profile"
1108 if test "$enableval" = "no"
1111 MAKEFILE_PROFILE=/dev/null
1112 echo "Disabling profiling libraries"
1115 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
1116 PROFILED_LIB_EXT=_p.a
1117 echo "Building profiling libraries"
1122 MAKEFILE_PROFILE=/dev/null
1123 echo "Disabling profiling libraries by default"
1129 # Check whether --enable-checker or --disable-checker was given.
1130 if test "${enable_checker+set}" = set; then
1131 enableval="$enable_checker"
1132 if test "$enableval" = "no"
1135 MAKEFILE_CHECKER=/dev/null
1136 echo "Disabling checker libraries"
1139 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
1140 echo "Building checker libraries"
1145 MAKEFILE_CHECKER=/dev/null
1146 echo "Disabling checker libraries by default"
1155 # Check whether --enable-gcc-wall or --disable-gcc-wall was given.
1156 if test "${enable_gcc_wall+set}" = set; then
1157 enableval="$enable_gcc_wall"
1158 if test "$enableval" = "no"
1161 echo "Disabling GCC warnings"
1164 echo "Enabling GCC warnings"
1169 echo "Disabling GCC warnings by default"
1174 # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
1175 if test "${enable_dynamic_e2fsck+set}" = set; then
1176 enableval="$enable_dynamic_e2fsck"
1177 if test "$enableval" = "no"
1180 echo "Building e2fsck statically"
1183 echo "Building e2fsck dynamically"
1188 echo "Building e2fsck statically by default"
1193 # Check whether --enable-fsck or --disable-fsck was given.
1194 if test "${enable_fsck+set}" = set; then
1195 enableval="$enable_fsck"
1196 if test "$enableval" = "no"
1198 FSCK_PROG='' FSCK_MAN=''
1199 echo "Not building fsck wrapper"
1201 FSCK_PROG=fsck FSCK_MAN=fsck.8
1202 echo "Building fsck wrapper"
1208 FSCK_PROG='' FSCK_MAN=''
1209 echo "Not building fsck wrapper by default"
1212 FSCK_PROG=fsck FSCK_MAN=fsck.8
1213 echo "Building fsck wrapper by default"
1220 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1222 # Check whether --enable-old-bitops or --disable-old-bitops was given.
1223 if test "${enable_old_bitops+set}" = set; then
1224 enableval="$enable_old_bitops"
1225 if test "$enableval" = "no"
1227 echo "Using new (standard) bitmask operations"
1229 cat >> confdefs.h <<\EOF
1230 #define EXT2_OLD_BITOPS 1
1233 echo "Using old (native) bitmask operations"
1238 echo "Using standard bitmask operations by default"
1243 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1244 echo "configure:1245: checking whether ${MAKE-make} sets \${MAKE}" >&5
1245 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1246 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1247 echo $ac_n "(cached) $ac_c" 1>&6
1249 cat > conftestmake <<\EOF
1251 @echo 'ac_maketemp="${MAKE}"'
1253 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1254 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1255 if test -n "$ac_maketemp"; then
1256 eval ac_cv_prog_make_${ac_make}_set=yes
1258 eval ac_cv_prog_make_${ac_make}_set=no
1262 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1263 echo "$ac_t""yes" 1>&6
1266 echo "$ac_t""no" 1>&6
1267 SET_MAKE="MAKE=${MAKE-make}"
1270 # Extract the first word of "ln", so it can be a program name with args.
1271 set dummy ln; ac_word=$2
1272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1273 echo "configure:1274: checking for $ac_word" >&5
1274 if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
1275 echo $ac_n "(cached) $ac_c" 1>&6
1279 ac_cv_path_LN="$LN" # Let the user override the test with a path.
1282 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
1285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1287 for ac_dir in $ac_dummy; do
1288 test -z "$ac_dir" && ac_dir=.
1289 if test -f $ac_dir/$ac_word; then
1290 ac_cv_path_LN="$ac_dir/$ac_word"
1295 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
1300 if test -n "$LN"; then
1301 echo "$ac_t""$LN" 1>&6
1303 echo "$ac_t""no" 1>&6
1306 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1307 echo "configure:1308: checking whether ln -s works" >&5
1308 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1309 echo $ac_n "(cached) $ac_c" 1>&6
1312 if ln -s X conftestdata 2>/dev/null
1315 ac_cv_prog_LN_S="ln -s"
1320 LN_S="$ac_cv_prog_LN_S"
1321 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1322 echo "$ac_t""yes" 1>&6
1324 echo "$ac_t""no" 1>&6
1327 # Extract the first word of "mv", so it can be a program name with args.
1328 set dummy mv; ac_word=$2
1329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1330 echo "configure:1331: checking for $ac_word" >&5
1331 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1332 echo $ac_n "(cached) $ac_c" 1>&6
1336 ac_cv_path_MV="$MV" # Let the user override the test with a path.
1339 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1342 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1344 for ac_dir in $ac_dummy; do
1345 test -z "$ac_dir" && ac_dir=.
1346 if test -f $ac_dir/$ac_word; then
1347 ac_cv_path_MV="$ac_dir/$ac_word"
1352 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1357 if test -n "$MV"; then
1358 echo "$ac_t""$MV" 1>&6
1360 echo "$ac_t""no" 1>&6
1363 # Extract the first word of "cp", so it can be a program name with args.
1364 set dummy cp; ac_word=$2
1365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1366 echo "configure:1367: checking for $ac_word" >&5
1367 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1368 echo $ac_n "(cached) $ac_c" 1>&6
1372 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1375 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1378 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1380 for ac_dir in $ac_dummy; do
1381 test -z "$ac_dir" && ac_dir=.
1382 if test -f $ac_dir/$ac_word; then
1383 ac_cv_path_CP="$ac_dir/$ac_word"
1388 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1393 if test -n "$CP"; then
1394 echo "$ac_t""$CP" 1>&6
1396 echo "$ac_t""no" 1>&6
1399 # Extract the first word of "rm", so it can be a program name with args.
1400 set dummy rm; ac_word=$2
1401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1402 echo "configure:1403: checking for $ac_word" >&5
1403 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1404 echo $ac_n "(cached) $ac_c" 1>&6
1408 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1411 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1416 for ac_dir in $ac_dummy; do
1417 test -z "$ac_dir" && ac_dir=.
1418 if test -f $ac_dir/$ac_word; then
1419 ac_cv_path_RM="$ac_dir/$ac_word"
1424 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1429 if test -n "$RM"; then
1430 echo "$ac_t""$RM" 1>&6
1432 echo "$ac_t""no" 1>&6
1435 # Extract the first word of "chmod", so it can be a program name with args.
1436 set dummy chmod; ac_word=$2
1437 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1438 echo "configure:1439: checking for $ac_word" >&5
1439 if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1444 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
1447 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
1450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1452 for ac_dir in $ac_dummy; do
1453 test -z "$ac_dir" && ac_dir=.
1454 if test -f $ac_dir/$ac_word; then
1455 ac_cv_path_CHMOD="$ac_dir/$ac_word"
1460 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
1464 CHMOD="$ac_cv_path_CHMOD"
1465 if test -n "$CHMOD"; then
1466 echo "$ac_t""$CHMOD" 1>&6
1468 echo "$ac_t""no" 1>&6
1471 # Extract the first word of "awk", so it can be a program name with args.
1472 set dummy awk; ac_word=$2
1473 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1474 echo "configure:1475: checking for $ac_word" >&5
1475 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1476 echo $ac_n "(cached) $ac_c" 1>&6
1480 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1483 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
1486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1488 for ac_dir in $ac_dummy; do
1489 test -z "$ac_dir" && ac_dir=.
1490 if test -f $ac_dir/$ac_word; then
1491 ac_cv_path_AWK="$ac_dir/$ac_word"
1496 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
1500 AWK="$ac_cv_path_AWK"
1501 if test -n "$AWK"; then
1502 echo "$ac_t""$AWK" 1>&6
1504 echo "$ac_t""no" 1>&6
1507 # Extract the first word of "sed", so it can be a program name with args.
1508 set dummy sed; ac_word=$2
1509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1510 echo "configure:1511: checking for $ac_word" >&5
1511 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1512 echo $ac_n "(cached) $ac_c" 1>&6
1516 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1519 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
1522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1524 for ac_dir in $ac_dummy; do
1525 test -z "$ac_dir" && ac_dir=.
1526 if test -f $ac_dir/$ac_word; then
1527 ac_cv_path_SED="$ac_dir/$ac_word"
1532 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1536 SED="$ac_cv_path_SED"
1537 if test -n "$SED"; then
1538 echo "$ac_t""$SED" 1>&6
1540 echo "$ac_t""no" 1>&6
1543 # Extract the first word of "perl", so it can be a program name with args.
1544 set dummy perl; ac_word=$2
1545 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1546 echo "configure:1547: checking for $ac_word" >&5
1547 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1552 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1555 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
1558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1560 for ac_dir in $ac_dummy; do
1561 test -z "$ac_dir" && ac_dir=.
1562 if test -f $ac_dir/$ac_word; then
1563 ac_cv_path_PERL="$ac_dir/$ac_word"
1568 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
1572 PERL="$ac_cv_path_PERL"
1573 if test -n "$PERL"; then
1574 echo "$ac_t""$PERL" 1>&6
1576 echo "$ac_t""no" 1>&6
1579 echo $ac_n "checking build system type""... $ac_c" 1>&6
1580 echo "configure:1581: checking build system type" >&5
1583 case "$build_alias" in
1586 NONE) build_alias=$host_alias ;;
1587 *) build_alias=$nonopt ;;
1591 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1592 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1593 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1594 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1595 echo "$ac_t""$build" 1>&6
1597 if test $host != $build; then
1598 ac_tool_prefix=${host_alias}-
1603 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1604 set dummy ${ac_tool_prefix}ar; ac_word=$2
1605 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1606 echo "configure:1607: checking for $ac_word" >&5
1607 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1608 echo $ac_n "(cached) $ac_c" 1>&6
1610 if test -n "$AR"; then
1611 ac_cv_prog_AR="$AR" # Let the user override the test.
1613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1615 for ac_dir in $ac_dummy; do
1616 test -z "$ac_dir" && ac_dir=.
1617 if test -f $ac_dir/$ac_word; then
1618 ac_cv_prog_AR="${ac_tool_prefix}ar"
1626 if test -n "$AR"; then
1627 echo "$ac_t""$AR" 1>&6
1629 echo "$ac_t""no" 1>&6
1633 if test -z "$ac_cv_prog_AR"; then
1634 if test -n "$ac_tool_prefix"; then
1635 # Extract the first word of "ar", so it can be a program name with args.
1636 set dummy ar; ac_word=$2
1637 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1638 echo "configure:1639: checking for $ac_word" >&5
1639 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1640 echo $ac_n "(cached) $ac_c" 1>&6
1642 if test -n "$AR"; then
1643 ac_cv_prog_AR="$AR" # Let the user override the test.
1645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1647 for ac_dir in $ac_dummy; do
1648 test -z "$ac_dir" && ac_dir=.
1649 if test -f $ac_dir/$ac_word; then
1655 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1659 if test -n "$AR"; then
1660 echo "$ac_t""$AR" 1>&6
1662 echo "$ac_t""no" 1>&6
1670 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1671 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1673 echo "configure:1674: checking for $ac_word" >&5
1674 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 if test -n "$RANLIB"; then
1678 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1682 for ac_dir in $ac_dummy; do
1683 test -z "$ac_dir" && ac_dir=.
1684 if test -f $ac_dir/$ac_word; then
1685 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1692 RANLIB="$ac_cv_prog_RANLIB"
1693 if test -n "$RANLIB"; then
1694 echo "$ac_t""$RANLIB" 1>&6
1696 echo "$ac_t""no" 1>&6
1700 if test -z "$ac_cv_prog_RANLIB"; then
1701 if test -n "$ac_tool_prefix"; then
1702 # Extract the first word of "ranlib", so it can be a program name with args.
1703 set dummy ranlib; ac_word=$2
1704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1705 echo "configure:1706: checking for $ac_word" >&5
1706 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1707 echo $ac_n "(cached) $ac_c" 1>&6
1709 if test -n "$RANLIB"; then
1710 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1714 for ac_dir in $ac_dummy; do
1715 test -z "$ac_dir" && ac_dir=.
1716 if test -f $ac_dir/$ac_word; then
1717 ac_cv_prog_RANLIB="ranlib"
1722 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1725 RANLIB="$ac_cv_prog_RANLIB"
1726 if test -n "$RANLIB"; then
1727 echo "$ac_t""$RANLIB" 1>&6
1729 echo "$ac_t""no" 1>&6
1737 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1738 set dummy ${ac_tool_prefix}strip; ac_word=$2
1739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1740 echo "configure:1741: checking for $ac_word" >&5
1741 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1744 if test -n "$STRIP"; then
1745 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1749 for ac_dir in $ac_dummy; do
1750 test -z "$ac_dir" && ac_dir=.
1751 if test -f $ac_dir/$ac_word; then
1752 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1759 STRIP="$ac_cv_prog_STRIP"
1760 if test -n "$STRIP"; then
1761 echo "$ac_t""$STRIP" 1>&6
1763 echo "$ac_t""no" 1>&6
1767 if test -z "$ac_cv_prog_STRIP"; then
1768 if test -n "$ac_tool_prefix"; then
1769 # Extract the first word of "strip", so it can be a program name with args.
1770 set dummy strip; ac_word=$2
1771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1772 echo "configure:1773: checking for $ac_word" >&5
1773 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1776 if test -n "$STRIP"; then
1777 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1781 for ac_dir in $ac_dummy; do
1782 test -z "$ac_dir" && ac_dir=.
1783 if test -f $ac_dir/$ac_word; then
1784 ac_cv_prog_STRIP="strip"
1789 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1792 STRIP="$ac_cv_prog_STRIP"
1793 if test -n "$STRIP"; then
1794 echo "$ac_t""$STRIP" 1>&6
1796 echo "$ac_t""no" 1>&6
1804 # Find a good install program. We prefer a C program (faster),
1805 # so one script is as good as another. But avoid the broken or
1806 # incompatible versions:
1807 # SysV /etc/install, /usr/sbin/install
1808 # SunOS /usr/etc/install
1809 # IRIX /sbin/install
1811 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1812 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1813 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1814 # ./install, which can be erroneously created by make from ./install.sh.
1815 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1816 echo "configure:1817: checking for a BSD compatible install" >&5
1817 if test -z "$INSTALL"; then
1818 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1819 echo $ac_n "(cached) $ac_c" 1>&6
1821 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1822 for ac_dir in $PATH; do
1823 # Account for people who put trailing slashes in PATH elements.
1825 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1827 # OSF1 and SCO ODT 3.0 have their own names for install.
1828 # Don't use installbsd from OSF since it installs stuff as root
1830 for ac_prog in ginstall scoinst install; do
1831 if test -f $ac_dir/$ac_prog; then
1832 if test $ac_prog = install &&
1833 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1834 # AIX install. It has an incompatible calling convention.
1837 ac_cv_path_install="$ac_dir/$ac_prog -c"
1848 if test "${ac_cv_path_install+set}" = set; then
1849 INSTALL="$ac_cv_path_install"
1851 # As a last resort, use the slow shell script. We don't cache a
1852 # path for INSTALL within a source directory, because that will
1853 # break other packages using the cache if that directory is
1854 # removed, or if the path is relative.
1855 INSTALL="$ac_install_sh"
1858 echo "$ac_t""$INSTALL" 1>&6
1860 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1861 # It thinks the first close brace ends the variable substitution.
1862 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1864 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1866 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1868 # See if we need a separate native compiler.
1869 if test $cross_compiling = no; then
1873 for ac_prog in gcc cc
1875 # Extract the first word of "$ac_prog", so it can be a program name with args.
1876 set dummy $ac_prog; ac_word=$2
1877 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1878 echo "configure:1879: checking for $ac_word" >&5
1879 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1880 echo $ac_n "(cached) $ac_c" 1>&6
1882 if test -n "$BUILD_CC"; then
1883 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1887 for ac_dir in $ac_dummy; do
1888 test -z "$ac_dir" && ac_dir=.
1889 if test -f $ac_dir/$ac_word; then
1890 ac_cv_prog_BUILD_CC="$ac_prog"
1897 BUILD_CC="$ac_cv_prog_BUILD_CC"
1898 if test -n "$BUILD_CC"; then
1899 echo "$ac_t""$BUILD_CC" 1>&6
1901 echo "$ac_t""no" 1>&6
1904 test -n "$BUILD_CC" && break
1908 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/sockio.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h
1910 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1911 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1912 echo "configure:1913: checking for $ac_hdr" >&5
1913 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1916 cat > conftest.$ac_ext <<EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1922 { (eval echo configure:1923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1924 if test -z "$ac_err"; then
1926 eval "ac_cv_header_$ac_safe=yes"
1929 echo "configure: failed program was:" >&5
1930 cat conftest.$ac_ext >&5
1932 eval "ac_cv_header_$ac_safe=no"
1936 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1937 echo "$ac_t""yes" 1>&6
1938 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1939 cat >> confdefs.h <<EOF
1940 #define $ac_tr_hdr 1
1944 echo "$ac_t""no" 1>&6
1948 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1949 echo "configure:1950: checking for vprintf" >&5
1950 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1951 echo $ac_n "(cached) $ac_c" 1>&6
1953 cat > conftest.$ac_ext <<EOF
1954 #line 1955 "configure"
1955 #include "confdefs.h"
1956 /* System header to define __stub macros and hopefully few prototypes,
1957 which can conflict with char vprintf(); below. */
1959 /* Override any gcc2 internal prototype to avoid an error. */
1960 /* We use char because int might match the return type of a gcc2
1961 builtin and then its argument prototype would still apply. */
1966 /* The GNU C library defines this for functions which it implements
1967 to always fail with ENOSYS. Some functions are actually named
1968 something starting with __ and the normal name is an alias. */
1969 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1977 if { (eval echo configure:1978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1979 eval "ac_cv_func_vprintf=yes"
1981 echo "configure: failed program was:" >&5
1982 cat conftest.$ac_ext >&5
1984 eval "ac_cv_func_vprintf=no"
1989 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1990 echo "$ac_t""yes" 1>&6
1991 cat >> confdefs.h <<\EOF
1992 #define HAVE_VPRINTF 1
1996 echo "$ac_t""no" 1>&6
1999 if test "$ac_cv_func_vprintf" != yes; then
2000 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2001 echo "configure:2002: checking for _doprnt" >&5
2002 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2005 cat > conftest.$ac_ext <<EOF
2006 #line 2007 "configure"
2007 #include "confdefs.h"
2008 /* System header to define __stub macros and hopefully few prototypes,
2009 which can conflict with char _doprnt(); below. */
2011 /* Override any gcc2 internal prototype to avoid an error. */
2012 /* We use char because int might match the return type of a gcc2
2013 builtin and then its argument prototype would still apply. */
2018 /* The GNU C library defines this for functions which it implements
2019 to always fail with ENOSYS. Some functions are actually named
2020 something starting with __ and the normal name is an alias. */
2021 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2029 if { (eval echo configure:2030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2031 eval "ac_cv_func__doprnt=yes"
2033 echo "configure: failed program was:" >&5
2034 cat conftest.$ac_ext >&5
2036 eval "ac_cv_func__doprnt=no"
2041 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2042 echo "$ac_t""yes" 1>&6
2043 cat >> confdefs.h <<\EOF
2044 #define HAVE_DOPRNT 1
2048 echo "$ac_t""no" 1>&6
2053 echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
2054 echo "configure:2055: checking whether struct dirent has a d_namlen field" >&5
2055 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2058 cat > conftest.$ac_ext <<EOF
2059 #line 2060 "configure"
2060 #include "confdefs.h"
2061 #include <sys/types.h>
2064 struct dirent de; de.d_namlen = 0;
2067 if { (eval echo configure:2068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2069 e2fsprogs_cv_struct_d_namlen=yes
2071 echo "configure: failed program was:" >&5
2072 cat conftest.$ac_ext >&5
2074 e2fsprogs_cv_struct_d_namlen=no
2079 echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
2080 if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
2081 cat >> confdefs.h <<\EOF
2082 #define HAVE_DIRENT_NAMLEN 1
2086 echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
2087 echo "configure:2088: checking whether llseek declared in unistd.h" >&5
2088 if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
2089 echo $ac_n "(cached) $ac_c" 1>&6
2091 cat > conftest.$ac_ext <<EOF
2092 #line 2093 "configure"
2093 #include "confdefs.h"
2096 extern int llseek(int);
2099 if { (eval echo configure:2100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2101 e2fsprogs_cv_have_llseek_prototype=no
2103 echo "configure: failed program was:" >&5
2104 cat conftest.$ac_ext >&5
2106 e2fsprogs_cv_have_llseek_prototype=yes
2111 echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
2112 if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
2113 cat >> confdefs.h <<\EOF
2114 #define HAVE_LLSEEK_PROTOTYPE 1
2118 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
2119 # if cross-compiling, with no cached values, just assume something common.
2120 ac_cv_sizeof_short=2
2123 ac_cv_sizeof_long_long=8
2124 echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" 1>&2
2126 echo $ac_n "checking size of short""... $ac_c" 1>&6
2127 echo "configure:2128: checking size of short" >&5
2128 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2131 if test "$cross_compiling" = yes; then
2132 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2134 cat > conftest.$ac_ext <<EOF
2135 #line 2136 "configure"
2136 #include "confdefs.h"
2140 FILE *f=fopen("conftestval", "w");
2142 fprintf(f, "%d\n", sizeof(short));
2146 if { (eval echo configure:2147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2148 ac_cv_sizeof_short=`cat conftestval`
2150 echo "configure: failed program was:" >&5
2151 cat conftest.$ac_ext >&5
2153 ac_cv_sizeof_short=0
2159 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2160 cat >> confdefs.h <<EOF
2161 #define SIZEOF_SHORT $ac_cv_sizeof_short
2165 echo $ac_n "checking size of int""... $ac_c" 1>&6
2166 echo "configure:2167: checking size of int" >&5
2167 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2168 echo $ac_n "(cached) $ac_c" 1>&6
2170 if test "$cross_compiling" = yes; then
2171 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2173 cat > conftest.$ac_ext <<EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2179 FILE *f=fopen("conftestval", "w");
2181 fprintf(f, "%d\n", sizeof(int));
2185 if { (eval echo configure:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2187 ac_cv_sizeof_int=`cat conftestval`
2189 echo "configure: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2198 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2199 cat >> confdefs.h <<EOF
2200 #define SIZEOF_INT $ac_cv_sizeof_int
2204 echo $ac_n "checking size of long""... $ac_c" 1>&6
2205 echo "configure:2206: checking size of long" >&5
2206 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2207 echo $ac_n "(cached) $ac_c" 1>&6
2209 if test "$cross_compiling" = yes; then
2210 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2212 cat > conftest.$ac_ext <<EOF
2213 #line 2214 "configure"
2214 #include "confdefs.h"
2218 FILE *f=fopen("conftestval", "w");
2220 fprintf(f, "%d\n", sizeof(long));
2224 if { (eval echo configure:2225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2226 ac_cv_sizeof_long=`cat conftestval`
2228 echo "configure: failed program was:" >&5
2229 cat conftest.$ac_ext >&5
2237 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2238 cat >> confdefs.h <<EOF
2239 #define SIZEOF_LONG $ac_cv_sizeof_long
2243 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2244 echo "configure:2245: checking size of long long" >&5
2245 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2246 echo $ac_n "(cached) $ac_c" 1>&6
2248 if test "$cross_compiling" = yes; then
2249 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2251 cat > conftest.$ac_ext <<EOF
2252 #line 2253 "configure"
2253 #include "confdefs.h"
2257 FILE *f=fopen("conftestval", "w");
2259 fprintf(f, "%d\n", sizeof(long long));
2263 if { (eval echo configure:2264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2265 ac_cv_sizeof_long_long=`cat conftestval`
2267 echo "configure: failed program was:" >&5
2268 cat conftest.$ac_ext >&5
2270 ac_cv_sizeof_long_long=0
2276 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2277 cat >> confdefs.h <<EOF
2278 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2282 SIZEOF_SHORT=$ac_cv_sizeof_short
2283 SIZEOF_INT=$ac_cv_sizeof_int
2284 SIZEOF_LONG=$ac_cv_sizeof_long
2285 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
2290 echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
2291 echo "configure:2292: checking whether struct stat has a st_flags field" >&5
2292 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
2293 echo $ac_n "(cached) $ac_c" 1>&6
2295 cat > conftest.$ac_ext <<EOF
2296 #line 2297 "configure"
2297 #include "confdefs.h"
2298 #include <sys/stat.h>
2300 struct stat stat; stat.st_flags = 0;
2303 if { (eval echo configure:2304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2305 e2fsprogs_cv_struct_st_flags=yes
2307 echo "configure: failed program was:" >&5
2308 cat conftest.$ac_ext >&5
2310 e2fsprogs_cv_struct_st_flags=no
2315 echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
2316 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
2317 echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
2318 echo "configure:2319: checking whether st_flags field is useful" >&5
2319 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
2320 echo $ac_n "(cached) $ac_c" 1>&6
2322 cat > conftest.$ac_ext <<EOF
2323 #line 2324 "configure"
2324 #include "confdefs.h"
2325 #include <sys/stat.h>
2327 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
2330 if { (eval echo configure:2331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2332 e2fsprogs_cv_struct_st_flags_immut=yes
2334 echo "configure: failed program was:" >&5
2335 cat conftest.$ac_ext >&5
2337 e2fsprogs_cv_struct_st_flags_immut=no
2342 echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
2343 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
2344 cat >> confdefs.h <<\EOF
2345 #define HAVE_STAT_FLAGS 1
2350 for ac_func in chflags getrusage llseek strdup getmntinfo strcasecmp srandom fchown mallinfo
2352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2353 echo "configure:2354: checking for $ac_func" >&5
2354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2357 cat > conftest.$ac_ext <<EOF
2358 #line 2359 "configure"
2359 #include "confdefs.h"
2360 /* System header to define __stub macros and hopefully few prototypes,
2361 which can conflict with char $ac_func(); below. */
2363 /* Override any gcc2 internal prototype to avoid an error. */
2364 /* We use char because int might match the return type of a gcc2
2365 builtin and then its argument prototype would still apply. */
2370 /* The GNU C library defines this for functions which it implements
2371 to always fail with ENOSYS. Some functions are actually named
2372 something starting with __ and the normal name is an alias. */
2373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2381 if { (eval echo configure:2382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2383 eval "ac_cv_func_$ac_func=yes"
2385 echo "configure: failed program was:" >&5
2386 cat conftest.$ac_ext >&5
2388 eval "ac_cv_func_$ac_func=no"
2393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2394 echo "$ac_t""yes" 1>&6
2395 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2396 cat >> confdefs.h <<EOF
2397 #define $ac_tr_func 1
2401 echo "$ac_t""no" 1>&6
2405 echo $ac_n "checking ino_t defined by sys/types.h""... $ac_c" 1>&6
2406 echo "configure:2407: checking ino_t defined by sys/types.h" >&5
2407 if eval "test \"`echo '$''{'e2fsprogs_cv_ino_t'+set}'`\" = set"; then
2408 echo $ac_n "(cached) $ac_c" 1>&6
2410 cat > conftest.$ac_ext <<EOF
2411 #line 2412 "configure"
2412 #include "confdefs.h"
2413 #include <sys/types.h>
2418 if { (eval echo configure:2419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2420 e2fsprogs_cv_ino_t=yes
2422 echo "configure: failed program was:" >&5
2423 cat conftest.$ac_ext >&5
2425 e2fsprogs_cv_ino_t=no
2430 echo "$ac_t""$e2fsprogs_cv_ino_t" 1>&6
2431 if test "$e2fsprogs_cv_ino_t" = yes; then
2432 cat >> confdefs.h <<\EOF
2433 #define HAVE_INO_T 1
2438 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2439 echo "configure:2440: checking for socket in -lsocket" >&5
2440 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2441 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2444 ac_save_LIBS="$LIBS"
2445 LIBS="-lsocket $LIBS"
2446 cat > conftest.$ac_ext <<EOF
2447 #line 2448 "configure"
2448 #include "confdefs.h"
2449 /* Override any gcc2 internal prototype to avoid an error. */
2450 /* We use char because int might match the return type of a gcc2
2451 builtin and then its argument prototype would still apply. */
2458 if { (eval echo configure:2459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2460 eval "ac_cv_lib_$ac_lib_var=yes"
2462 echo "configure: failed program was:" >&5
2463 cat conftest.$ac_ext >&5
2465 eval "ac_cv_lib_$ac_lib_var=no"
2468 LIBS="$ac_save_LIBS"
2471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2472 echo "$ac_t""yes" 1>&6
2475 echo "$ac_t""no" 1>&6
2479 echo $ac_n "checking for optreset""... $ac_c" 1>&6
2480 echo "configure:2481: checking for optreset" >&5
2481 if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
2482 echo $ac_n "(cached) $ac_c" 1>&6
2484 cat > conftest.$ac_ext <<EOF
2485 #line 2486 "configure"
2486 #include "confdefs.h"
2489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2490 egrep "optreset" >/dev/null 2>&1; then
2492 ac_cv_have_optreset=yes
2495 ac_cv_have_optreset=no
2500 echo "$ac_t""$ac_cv_have_optreset" 1>&6
2501 if test $ac_cv_have_optreset = yes; then
2502 cat >> confdefs.h <<\EOF
2503 #define HAVE_OPTRESET 1
2507 echo $ac_n "checking whether the ext2 ioctls compile""... $ac_c" 1>&6
2508 echo "configure:2509: checking whether the ext2 ioctls compile" >&5
2509 if eval "test \"`echo '$''{'e2fsprogs_cv_ioctl_ext2'+set}'`\" = set"; then
2510 echo $ac_n "(cached) $ac_c" 1>&6
2512 cat > conftest.$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2515 #include <linux/ext2_fs.h>
2516 #include <sys/ioctl.h>
2518 ioctl (0, EXT2_IOC_SETVERSION, 0);
2521 if { (eval echo configure:2522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2523 e2fsprogs_cv_ioctl_ext2=yes
2525 echo "configure: failed program was:" >&5
2526 cat conftest.$ac_ext >&5
2528 e2fsprogs_cv_ioctl_ext2=no
2533 echo "$ac_t""$e2fsprogs_cv_ioctl_ext2" 1>&6
2534 if test "$e2fsprogs_cv_ioctl_ext2" = yes; then
2535 cat >> confdefs.h <<\EOF
2536 #define HAVE_EXT2_IOCTLS 1
2542 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
2544 echo "On $host_os systems, root_prefix defaults to ''"
2550 if test "$prefix" = NONE ; then
2552 echo "On $host_os systems, prefix defaults to /usr"
2556 if test "$root_prefix" = NONE ; then
2557 if test "$prefix" = NONE ; then
2558 root_prefix="$ac_default_prefix"
2560 root_prefix="$prefix"
2564 echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
2565 echo "configure:2566: checking whether linker accepts -static" >&5
2566 if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
2567 echo $ac_n "(cached) $ac_c" 1>&6
2569 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
2570 cat > conftest.$ac_ext <<EOF
2571 #line 2572 "configure"
2572 #include "confdefs.h"
2578 if { (eval echo configure:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2580 ac_cv_e2fsprogs_use_static=yes
2582 echo "configure: failed program was:" >&5
2583 cat conftest.$ac_ext >&5
2585 ac_cv_e2fsprogs_use_static=no
2588 LDFLAGS=$SAVE_LDFLAGS
2593 ac_cv_e2fsprogs_use_static=no
2596 echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
2598 if test $ac_cv_e2fsprogs_use_static = yes; then
2599 LDFLAG_STATIC=-static
2602 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
2603 ET_DIR=`cd ${srcdir}/lib/et; pwd`
2606 if test "$cross_compiling" = yes ; then
2612 DO_SUBSTITUTE_SCRIPT=$srcdir/lib/do_substitute
2614 test -d lib || mkdir lib
2615 test -d include || mkdir include
2616 test -d include/linux || mkdir include/linux
2617 test -d include/asm || mkdir include/asm
2619 if test -d ${srcdir}/resize ; then
2620 rmakefile=resize/Makefile
2623 cat > confcache <<\EOF
2624 # This file is a shell script that caches the results of configure
2625 # tests run on this system so they can be shared between configure
2626 # scripts and configure runs. It is not useful on other systems.
2627 # If it contains results you don't want to keep, you may remove or edit it.
2629 # By default, configure uses ./config.cache as the cache file,
2630 # creating it if it does not exist already. You can give configure
2631 # the --cache-file=FILE option to use a different cache file; that is
2632 # what configure does when it calls configure scripts in
2633 # subdirectories, so they share the cache.
2634 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2635 # config.status only pays attention to the cache file if you give it the
2636 # --recheck option to rerun configure.
2639 # The following way of writing the cache mishandles newlines in values,
2640 # but we know of no workaround that is simple, portable, and efficient.
2641 # So, don't put newlines in cache variables' values.
2642 # Ultrix sh set writes to stderr and can't be redirected directly,
2643 # and sets the high bit in the cache file unless we assign to the vars.
2645 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2647 # `set' does not quote correctly, so add quotes (double-quote substitution
2648 # turns \\\\ into \\, and sed turns \\ into \).
2650 -e "s/'/'\\\\''/g" \
2651 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2654 # `set' quotes correctly as required by POSIX, so do not add quotes.
2655 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2658 if cmp -s $cache_file confcache; then
2661 if test -w $cache_file; then
2662 echo "updating cache $cache_file"
2663 cat confcache > $cache_file
2665 echo "not updating unwritable cache $cache_file"
2670 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2672 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2673 # Let make expand exec_prefix.
2674 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2676 # Any assignment to VPATH causes Sun make to only execute
2677 # the first set of double-colon rules, so remove it if not needed.
2678 # If there is a colon in the path, we need to keep it.
2679 if test "x$srcdir" = x.; then
2680 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2683 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2685 # Transform confdefs.h into DEFS.
2686 # Protect against shell expansion while executing Makefile rules.
2687 # Protect against Makefile macro expansion.
2688 cat > conftest.defs <<\EOF
2689 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2690 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2695 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2699 # Without the "./", some shells look in PATH for config.status.
2700 : ${CONFIG_STATUS=./config.status}
2702 echo creating $CONFIG_STATUS
2703 rm -f $CONFIG_STATUS
2704 cat > $CONFIG_STATUS <<EOF
2706 # Generated automatically by configure.
2707 # Run this file to recreate the current configuration.
2708 # This directory was configured as follows,
2709 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2711 # $0 $ac_configure_args
2713 # Compiler output produced by configure, useful for debugging
2714 # configure, is in ./config.log if it exists.
2716 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2719 case "\$ac_option" in
2720 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2721 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2722 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2723 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2724 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2726 -help | --help | --hel | --he | --h)
2727 echo "\$ac_cs_usage"; exit 0 ;;
2728 *) echo "\$ac_cs_usage"; exit 1 ;;
2732 ac_given_srcdir=$srcdir
2733 ac_given_INSTALL="$INSTALL"
2735 trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
2736 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
2737 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
2738 tests/progs/Makefile $rmakefile doc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2740 cat >> $CONFIG_STATUS <<EOF
2742 # Protect against being on the right side of a sed subst in config.status.
2743 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2744 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2748 s%@CFLAGS@%$CFLAGS%g
2749 s%@CPPFLAGS@%$CPPFLAGS%g
2750 s%@CXXFLAGS@%$CXXFLAGS%g
2751 s%@FFLAGS@%$FFLAGS%g
2753 s%@LDFLAGS@%$LDFLAGS%g
2755 s%@exec_prefix@%$exec_prefix%g
2756 s%@prefix@%$prefix%g
2757 s%@program_transform_name@%$program_transform_name%g
2758 s%@bindir@%$bindir%g
2759 s%@sbindir@%$sbindir%g
2760 s%@libexecdir@%$libexecdir%g
2761 s%@datadir@%$datadir%g
2762 s%@sysconfdir@%$sysconfdir%g
2763 s%@sharedstatedir@%$sharedstatedir%g
2764 s%@localstatedir@%$localstatedir%g
2765 s%@libdir@%$libdir%g
2766 s%@includedir@%$includedir%g
2767 s%@oldincludedir@%$oldincludedir%g
2768 s%@infodir@%$infodir%g
2769 s%@mandir@%$mandir%g
2770 /@MCONFIG@/r $MCONFIG
2772 s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
2773 s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
2774 s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
2776 s%@host_alias@%$host_alias%g
2777 s%@host_cpu@%$host_cpu%g
2778 s%@host_vendor@%$host_vendor%g
2779 s%@host_os@%$host_os%g
2782 s%@CCOPTS@%$CCOPTS%g
2784 s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
2785 s%@DLL_CMT@%$DLL_CMT%g
2786 /@MAKEFILE_DLL@/r $MAKEFILE_DLL
2788 s%@ELF_CMT@%$ELF_CMT%g
2789 /@MAKEFILE_ELF@/r $MAKEFILE_ELF
2791 s%@BSDLIB_CMT@%$BSDLIB_CMT%g
2792 /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
2793 s%@MAKEFILE_BSDLIB@%%g
2794 s%@PROFILE_CMT@%$PROFILE_CMT%g
2795 /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
2796 s%@MAKEFILE_PROFILE@%%g
2797 s%@CHECKER_CMT@%$CHECKER_CMT%g
2798 /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
2799 s%@MAKEFILE_CHECKER@%%g
2800 s%@LIB_EXT@%$LIB_EXT%g
2801 s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
2802 s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
2804 s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
2805 s%@FSCK_PROG@%$FSCK_PROG%g
2806 s%@FSCK_MAN@%$FSCK_MAN%g
2807 /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
2808 s%@MAKEFILE_LIBRARY@%%g
2809 s%@BINARY_TYPE@%$BINARY_TYPE%g
2810 s%@SET_MAKE@%$SET_MAKE%g
2821 s%@build_alias@%$build_alias%g
2822 s%@build_cpu@%$build_cpu%g
2823 s%@build_vendor@%$build_vendor%g
2824 s%@build_os@%$build_os%g
2826 s%@RANLIB@%$RANLIB%g
2828 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2829 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2830 s%@INSTALL_DATA@%$INSTALL_DATA%g
2831 s%@BUILD_CC@%$BUILD_CC%g
2832 s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
2833 s%@SIZEOF_INT@%$SIZEOF_INT%g
2834 s%@SIZEOF_LONG@%$SIZEOF_LONG%g
2835 s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
2836 s%@SOCKET_LIB@%$SOCKET_LIB%g
2837 s%@root_prefix@%$root_prefix%g
2838 s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
2839 s%@SS_DIR@%$SS_DIR%g
2840 s%@ET_DIR@%$ET_DIR%g
2841 s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
2842 /@DO_SUBSTITUTE_SCRIPT@/r $DO_SUBSTITUTE_SCRIPT
2843 s%@DO_SUBSTITUTE_SCRIPT@%%g
2848 cat >> $CONFIG_STATUS <<\EOF
2850 # Split the substitutions into bite-sized pieces for seds with
2851 # small command number limits, like on Digital OSF/1 and HP-UX.
2852 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2853 ac_file=1 # Number of current file.
2854 ac_beg=1 # First line for current file.
2855 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2858 while $ac_more_lines; do
2859 if test $ac_beg -gt 1; then
2860 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2862 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2864 if test ! -s conftest.s$ac_file; then
2866 rm -f conftest.s$ac_file
2868 if test -z "$ac_sed_cmds"; then
2869 ac_sed_cmds="sed -f conftest.s$ac_file"
2871 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2873 ac_file=`expr $ac_file + 1`
2875 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2878 if test -z "$ac_sed_cmds"; then
2883 cat >> $CONFIG_STATUS <<EOF
2885 CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
2886 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
2887 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
2888 tests/progs/Makefile $rmakefile doc/Makefile"}
2890 cat >> $CONFIG_STATUS <<\EOF
2891 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2892 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2894 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2895 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2896 *) ac_file_in="${ac_file}.in" ;;
2899 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2901 # Remove last slash and all that follows it. Not all systems have dirname.
2902 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2903 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2904 # The file is in a subdirectory.
2905 test ! -d "$ac_dir" && mkdir "$ac_dir"
2906 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2907 # A "../" for each directory in $ac_dir_suffix.
2908 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2910 ac_dir_suffix= ac_dots=
2913 case "$ac_given_srcdir" in
2915 if test -z "$ac_dots"; then top_srcdir=.
2916 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2917 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2919 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2920 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2923 case "$ac_given_INSTALL" in
2924 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2925 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2928 echo creating "$ac_file"
2930 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2932 *Makefile*) ac_comsub="1i\\
2933 # $configure_input" ;;
2937 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2939 s%@configure_input@%$configure_input%g
2940 s%@srcdir@%$srcdir%g
2941 s%@top_srcdir@%$top_srcdir%g
2942 s%@INSTALL@%$INSTALL%g
2943 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2948 cat >> $CONFIG_STATUS <<EOF
2951 cat >> $CONFIG_STATUS <<\EOF
2955 chmod +x $CONFIG_STATUS
2956 rm -fr confdefs* $ac_clean_files
2957 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1