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 # Check whether --with-linker or --without-linker was given.
652 if test "${with_linker+set}" = set; then
653 withval="$with_linker"
654 echo "$ac_t""LD=$withval" 1>&6
657 if test -z "$LD" ; then LD=$CC; fi
658 echo "$ac_t""LD defaults to $LD" 1>&6
662 # Check whether --with-ccopts or --without-ccopts was given.
663 if test "${with_ccopts+set}" = set; then
664 withval="$with_ccopts"
665 echo "$ac_t""CCOPTS is $withval" 1>&6
667 CFLAGS="$CFLAGS $withval"
675 # Check whether --with-ldopts or --without-ldopts was given.
676 if test "${with_ldopts+set}" = set; then
677 withval="$with_ldopts"
678 echo "$ac_t""LDFLAGS is $withval" 1>&6
684 # Check whether --with-root-prefix or --without-root-prefix was given.
685 if test "${with_root_prefix+set}" = set; then
686 withval="$with_root_prefix"
691 # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
692 if test "${enable_dll_shlibs+set}" = set; then
693 enableval="$enable_dll_shlibs"
694 if test "$enableval" = "no"
697 MAKEFILE_DLL=/dev/null
698 echo "Disabling DLL shared libraries"
701 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
704 echo "Enabling DLL shared libraries"
708 MAKEFILE_DLL=/dev/null
710 echo "Disabling DLL shared libraries by default"
716 # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
717 if test "${enable_elf_shlibs+set}" = set; then
718 enableval="$enable_elf_shlibs"
719 if test "$enableval" = "no"
722 MAKEFILE_ELF=/dev/null
723 echo "Disabling ELF shared libraries"
726 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
729 echo "Enabling ELF shared libraries"
733 MAKEFILE_ELF=/dev/null
735 echo "Disabling ELF shared libraries by default"
741 # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
742 if test "${enable_bsd_shlibs+set}" = set; then
743 enableval="$enable_bsd_shlibs"
744 if test "$enableval" = "no"
747 MAKEFILE_BSDLIB=/dev/null
748 echo "Disabling BSD shared libraries"
751 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
753 echo "Enabling BSD shared libraries"
757 MAKEFILE_BSDLIB=/dev/null
759 echo "Disabling BSD shared libraries by default"
765 # Check whether --enable-profile or --disable-profile was given.
766 if test "${enable_profile+set}" = set; then
767 enableval="$enable_profile"
768 if test "$enableval" = "no"
771 MAKEFILE_PROFILE=/dev/null
772 echo "Disabling profiling libraries"
775 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
776 PROFILED_LIB_EXT=_p.a
777 echo "Building profiling libraries"
782 MAKEFILE_PROFILE=/dev/null
783 echo "Disabling profiling libraries by default"
789 # Check whether --enable-checker or --disable-checker was given.
790 if test "${enable_checker+set}" = set; then
791 enableval="$enable_checker"
792 if test "$enableval" = "no"
795 MAKEFILE_CHECKER=/dev/null
796 echo "Disabling checker libraries"
799 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
800 echo "Building checker libraries"
805 MAKEFILE_CHECKER=/dev/null
806 echo "Disabling checker libraries by default"
815 # Check whether --enable-gcc-wall or --disable-gcc-wall was given.
816 if test "${enable_gcc_wall+set}" = set; then
817 enableval="$enable_gcc_wall"
818 if test "$enableval" = "no"
821 echo "Disabling GCC warnings"
824 echo "Enabling GCC warnings"
829 echo "Disabling GCC warnings by default"
834 # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
835 if test "${enable_dynamic_e2fsck+set}" = set; then
836 enableval="$enable_dynamic_e2fsck"
837 if test "$enableval" = "no"
840 echo "Building e2fsck statically"
843 echo "Building e2fsck dynamically"
848 echo "Building e2fsck statically by default"
853 # Check whether --enable-fsck or --disable-fsck was given.
854 if test "${enable_fsck+set}" = set; then
855 enableval="$enable_fsck"
856 if test "$enableval" = "no"
858 FSCK_PROG='' FSCK_MAN=''
859 echo "Not building fsck wrapper"
861 FSCK_PROG=fsck FSCK_MAN=fsck.8
862 echo "Building fsck wrapper"
868 FSCK_PROG='' FSCK_MAN=''
869 echo "Not building fsck wrapper by default"
872 FSCK_PROG=fsck FSCK_MAN=fsck.8
873 echo "Building fsck wrapper by default"
880 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
882 # Check whether --enable-old-bitops or --disable-old-bitops was given.
883 if test "${enable_old_bitops+set}" = set; then
884 enableval="$enable_old_bitops"
885 if test "$enableval" = "no"
887 echo "Using new (standard) bitmask operations"
889 cat >> confdefs.h <<\EOF
890 #define EXT2_OLD_BITOPS 1
893 echo "Using old (native) bitmask operations"
898 echo "Using standard bitmask operations by default"
903 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
904 echo "configure:905: checking whether ${MAKE-make} sets \${MAKE}" >&5
905 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
906 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
907 echo $ac_n "(cached) $ac_c" 1>&6
909 cat > conftestmake <<\EOF
911 @echo 'ac_maketemp="${MAKE}"'
913 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
914 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
915 if test -n "$ac_maketemp"; then
916 eval ac_cv_prog_make_${ac_make}_set=yes
918 eval ac_cv_prog_make_${ac_make}_set=no
922 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
923 echo "$ac_t""yes" 1>&6
926 echo "$ac_t""no" 1>&6
927 SET_MAKE="MAKE=${MAKE-make}"
930 # Extract the first word of "ln", so it can be a program name with args.
931 set dummy ln; ac_word=$2
932 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
933 echo "configure:934: checking for $ac_word" >&5
934 if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
935 echo $ac_n "(cached) $ac_c" 1>&6
939 ac_cv_path_LN="$LN" # Let the user override the test with a path.
942 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
947 for ac_dir in $ac_dummy; do
948 test -z "$ac_dir" && ac_dir=.
949 if test -f $ac_dir/$ac_word; then
950 ac_cv_path_LN="$ac_dir/$ac_word"
955 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
960 if test -n "$LN"; then
961 echo "$ac_t""$LN" 1>&6
963 echo "$ac_t""no" 1>&6
966 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
967 echo "configure:968: checking whether ln -s works" >&5
968 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
972 if ln -s X conftestdata 2>/dev/null
975 ac_cv_prog_LN_S="ln -s"
980 LN_S="$ac_cv_prog_LN_S"
981 if test "$ac_cv_prog_LN_S" = "ln -s"; then
982 echo "$ac_t""yes" 1>&6
984 echo "$ac_t""no" 1>&6
987 # Extract the first word of "mv", so it can be a program name with args.
988 set dummy mv; ac_word=$2
989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
990 echo "configure:991: checking for $ac_word" >&5
991 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
996 ac_cv_path_MV="$MV" # Let the user override the test with a path.
999 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1004 for ac_dir in $ac_dummy; do
1005 test -z "$ac_dir" && ac_dir=.
1006 if test -f $ac_dir/$ac_word; then
1007 ac_cv_path_MV="$ac_dir/$ac_word"
1012 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1017 if test -n "$MV"; then
1018 echo "$ac_t""$MV" 1>&6
1020 echo "$ac_t""no" 1>&6
1023 # Extract the first word of "cp", so it can be a program name with args.
1024 set dummy cp; ac_word=$2
1025 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1026 echo "configure:1027: checking for $ac_word" >&5
1027 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1028 echo $ac_n "(cached) $ac_c" 1>&6
1032 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1035 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1040 for ac_dir in $ac_dummy; do
1041 test -z "$ac_dir" && ac_dir=.
1042 if test -f $ac_dir/$ac_word; then
1043 ac_cv_path_CP="$ac_dir/$ac_word"
1048 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1053 if test -n "$CP"; then
1054 echo "$ac_t""$CP" 1>&6
1056 echo "$ac_t""no" 1>&6
1059 # Extract the first word of "rm", so it can be a program name with args.
1060 set dummy rm; ac_word=$2
1061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1062 echo "configure:1063: checking for $ac_word" >&5
1063 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1064 echo $ac_n "(cached) $ac_c" 1>&6
1068 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1071 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1076 for ac_dir in $ac_dummy; do
1077 test -z "$ac_dir" && ac_dir=.
1078 if test -f $ac_dir/$ac_word; then
1079 ac_cv_path_RM="$ac_dir/$ac_word"
1084 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1089 if test -n "$RM"; then
1090 echo "$ac_t""$RM" 1>&6
1092 echo "$ac_t""no" 1>&6
1095 # Extract the first word of "chmod", so it can be a program name with args.
1096 set dummy chmod; ac_word=$2
1097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1098 echo "configure:1099: checking for $ac_word" >&5
1099 if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1104 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
1107 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
1110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1112 for ac_dir in $ac_dummy; do
1113 test -z "$ac_dir" && ac_dir=.
1114 if test -f $ac_dir/$ac_word; then
1115 ac_cv_path_CHMOD="$ac_dir/$ac_word"
1120 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
1124 CHMOD="$ac_cv_path_CHMOD"
1125 if test -n "$CHMOD"; then
1126 echo "$ac_t""$CHMOD" 1>&6
1128 echo "$ac_t""no" 1>&6
1131 # Extract the first word of "awk", so it can be a program name with args.
1132 set dummy awk; ac_word=$2
1133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1134 echo "configure:1135: checking for $ac_word" >&5
1135 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&6
1140 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1143 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
1146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1148 for ac_dir in $ac_dummy; do
1149 test -z "$ac_dir" && ac_dir=.
1150 if test -f $ac_dir/$ac_word; then
1151 ac_cv_path_AWK="$ac_dir/$ac_word"
1156 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
1160 AWK="$ac_cv_path_AWK"
1161 if test -n "$AWK"; then
1162 echo "$ac_t""$AWK" 1>&6
1164 echo "$ac_t""no" 1>&6
1167 # Extract the first word of "sed", so it can be a program name with args.
1168 set dummy sed; ac_word=$2
1169 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1170 echo "configure:1171: checking for $ac_word" >&5
1171 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1176 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1179 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
1182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1184 for ac_dir in $ac_dummy; do
1185 test -z "$ac_dir" && ac_dir=.
1186 if test -f $ac_dir/$ac_word; then
1187 ac_cv_path_SED="$ac_dir/$ac_word"
1192 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1196 SED="$ac_cv_path_SED"
1197 if test -n "$SED"; then
1198 echo "$ac_t""$SED" 1>&6
1200 echo "$ac_t""no" 1>&6
1203 # Extract the first word of "perl", so it can be a program name with args.
1204 set dummy perl; ac_word=$2
1205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1206 echo "configure:1207: checking for $ac_word" >&5
1207 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1208 echo $ac_n "(cached) $ac_c" 1>&6
1212 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1215 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
1218 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1220 for ac_dir in $ac_dummy; do
1221 test -z "$ac_dir" && ac_dir=.
1222 if test -f $ac_dir/$ac_word; then
1223 ac_cv_path_PERL="$ac_dir/$ac_word"
1228 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
1232 PERL="$ac_cv_path_PERL"
1233 if test -n "$PERL"; then
1234 echo "$ac_t""$PERL" 1>&6
1236 echo "$ac_t""no" 1>&6
1239 echo $ac_n "checking build system type""... $ac_c" 1>&6
1240 echo "configure:1241: checking build system type" >&5
1243 case "$build_alias" in
1246 NONE) build_alias=$host_alias ;;
1247 *) build_alias=$nonopt ;;
1251 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1252 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1253 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1254 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1255 echo "$ac_t""$build" 1>&6
1257 if test $host != $build; then
1258 ac_tool_prefix=${host_alias}-
1263 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1264 set dummy ${ac_tool_prefix}ar; ac_word=$2
1265 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1266 echo "configure:1267: checking for $ac_word" >&5
1267 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1268 echo $ac_n "(cached) $ac_c" 1>&6
1270 if test -n "$AR"; then
1271 ac_cv_prog_AR="$AR" # Let the user override the test.
1273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1275 for ac_dir in $ac_dummy; do
1276 test -z "$ac_dir" && ac_dir=.
1277 if test -f $ac_dir/$ac_word; then
1278 ac_cv_prog_AR="${ac_tool_prefix}ar"
1286 if test -n "$AR"; then
1287 echo "$ac_t""$AR" 1>&6
1289 echo "$ac_t""no" 1>&6
1293 if test -z "$ac_cv_prog_AR"; then
1294 if test -n "$ac_tool_prefix"; then
1295 # Extract the first word of "ar", so it can be a program name with args.
1296 set dummy ar; ac_word=$2
1297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1298 echo "configure:1299: checking for $ac_word" >&5
1299 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 if test -n "$AR"; then
1303 ac_cv_prog_AR="$AR" # Let the user override the test.
1305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1307 for ac_dir in $ac_dummy; do
1308 test -z "$ac_dir" && ac_dir=.
1309 if test -f $ac_dir/$ac_word; then
1315 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1319 if test -n "$AR"; then
1320 echo "$ac_t""$AR" 1>&6
1322 echo "$ac_t""no" 1>&6
1330 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1331 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1332 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1333 echo "configure:1334: checking for $ac_word" >&5
1334 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1335 echo $ac_n "(cached) $ac_c" 1>&6
1337 if test -n "$RANLIB"; then
1338 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1342 for ac_dir in $ac_dummy; do
1343 test -z "$ac_dir" && ac_dir=.
1344 if test -f $ac_dir/$ac_word; then
1345 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1352 RANLIB="$ac_cv_prog_RANLIB"
1353 if test -n "$RANLIB"; then
1354 echo "$ac_t""$RANLIB" 1>&6
1356 echo "$ac_t""no" 1>&6
1360 if test -z "$ac_cv_prog_RANLIB"; then
1361 if test -n "$ac_tool_prefix"; then
1362 # Extract the first word of "ranlib", so it can be a program name with args.
1363 set dummy ranlib; ac_word=$2
1364 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1365 echo "configure:1366: checking for $ac_word" >&5
1366 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1369 if test -n "$RANLIB"; then
1370 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1374 for ac_dir in $ac_dummy; do
1375 test -z "$ac_dir" && ac_dir=.
1376 if test -f $ac_dir/$ac_word; then
1377 ac_cv_prog_RANLIB="ranlib"
1382 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1385 RANLIB="$ac_cv_prog_RANLIB"
1386 if test -n "$RANLIB"; then
1387 echo "$ac_t""$RANLIB" 1>&6
1389 echo "$ac_t""no" 1>&6
1397 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1398 set dummy ${ac_tool_prefix}strip; ac_word=$2
1399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1400 echo "configure:1401: checking for $ac_word" >&5
1401 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1404 if test -n "$STRIP"; then
1405 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1409 for ac_dir in $ac_dummy; do
1410 test -z "$ac_dir" && ac_dir=.
1411 if test -f $ac_dir/$ac_word; then
1412 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1419 STRIP="$ac_cv_prog_STRIP"
1420 if test -n "$STRIP"; then
1421 echo "$ac_t""$STRIP" 1>&6
1423 echo "$ac_t""no" 1>&6
1427 if test -z "$ac_cv_prog_STRIP"; then
1428 if test -n "$ac_tool_prefix"; then
1429 # Extract the first word of "strip", so it can be a program name with args.
1430 set dummy strip; ac_word=$2
1431 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1432 echo "configure:1433: checking for $ac_word" >&5
1433 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1434 echo $ac_n "(cached) $ac_c" 1>&6
1436 if test -n "$STRIP"; then
1437 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1441 for ac_dir in $ac_dummy; do
1442 test -z "$ac_dir" && ac_dir=.
1443 if test -f $ac_dir/$ac_word; then
1444 ac_cv_prog_STRIP="strip"
1449 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1452 STRIP="$ac_cv_prog_STRIP"
1453 if test -n "$STRIP"; then
1454 echo "$ac_t""$STRIP" 1>&6
1456 echo "$ac_t""no" 1>&6
1464 # Extract the first word of "gcc", so it can be a program name with args.
1465 set dummy gcc; ac_word=$2
1466 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1467 echo "configure:1468: checking for $ac_word" >&5
1468 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1471 if test -n "$CC"; then
1472 ac_cv_prog_CC="$CC" # Let the user override the test.
1474 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1476 for ac_dir in $ac_dummy; do
1477 test -z "$ac_dir" && ac_dir=.
1478 if test -f $ac_dir/$ac_word; then
1487 if test -n "$CC"; then
1488 echo "$ac_t""$CC" 1>&6
1490 echo "$ac_t""no" 1>&6
1493 if test -z "$CC"; then
1494 # Extract the first word of "cc", so it can be a program name with args.
1495 set dummy cc; ac_word=$2
1496 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1497 echo "configure:1498: checking for $ac_word" >&5
1498 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1501 if test -n "$CC"; then
1502 ac_cv_prog_CC="$CC" # Let the user override the test.
1504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1507 for ac_dir in $ac_dummy; do
1508 test -z "$ac_dir" && ac_dir=.
1509 if test -f $ac_dir/$ac_word; then
1510 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1511 ac_prog_rejected=yes
1519 if test $ac_prog_rejected = yes; then
1520 # We found a bogon in the path, so make sure we never use it.
1521 set dummy $ac_cv_prog_CC
1523 if test $# -gt 0; then
1524 # We chose a different compiler from the bogus one.
1525 # However, it has the same basename, so the bogon will be chosen
1526 # first if we set CC to just the basename; use the full file name.
1528 set dummy "$ac_dir/$ac_word" "$@"
1536 if test -n "$CC"; then
1537 echo "$ac_t""$CC" 1>&6
1539 echo "$ac_t""no" 1>&6
1542 if test -z "$CC"; then
1543 case "`uname -s`" in
1545 # Extract the first word of "cl", so it can be a program name with args.
1546 set dummy cl; ac_word=$2
1547 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1548 echo "configure:1549: checking for $ac_word" >&5
1549 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1550 echo $ac_n "(cached) $ac_c" 1>&6
1552 if test -n "$CC"; then
1553 ac_cv_prog_CC="$CC" # Let the user override the test.
1555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1557 for ac_dir in $ac_dummy; do
1558 test -z "$ac_dir" && ac_dir=.
1559 if test -f $ac_dir/$ac_word; then
1568 if test -n "$CC"; then
1569 echo "$ac_t""$CC" 1>&6
1571 echo "$ac_t""no" 1>&6
1576 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1579 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1580 echo "configure:1581: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1583 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1584 ac_cpp='$CPP $CPPFLAGS'
1585 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1586 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1587 cross_compiling=$ac_cv_prog_cc_cross
1589 cat > conftest.$ac_ext << EOF
1591 #line 1592 "configure"
1592 #include "confdefs.h"
1596 if { (eval echo configure:1597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1597 ac_cv_prog_cc_works=yes
1598 # If we can't run a trivial program, we are probably using a cross compiler.
1599 if (./conftest; exit) 2>/dev/null; then
1600 ac_cv_prog_cc_cross=no
1602 ac_cv_prog_cc_cross=yes
1605 echo "configure: failed program was:" >&5
1606 cat conftest.$ac_ext >&5
1607 ac_cv_prog_cc_works=no
1611 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1612 ac_cpp='$CPP $CPPFLAGS'
1613 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1614 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1615 cross_compiling=$ac_cv_prog_cc_cross
1617 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1618 if test $ac_cv_prog_cc_works = no; then
1619 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1621 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1622 echo "configure:1623: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1623 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1624 cross_compiling=$ac_cv_prog_cc_cross
1626 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1627 echo "configure:1628: checking whether we are using GNU C" >&5
1628 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1629 echo $ac_n "(cached) $ac_c" 1>&6
1631 cat > conftest.c <<EOF
1636 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1643 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1645 if test $ac_cv_prog_gcc = yes; then
1651 ac_test_CFLAGS="${CFLAGS+set}"
1652 ac_save_CFLAGS="$CFLAGS"
1654 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1655 echo "configure:1656: checking whether ${CC-cc} accepts -g" >&5
1656 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1657 echo $ac_n "(cached) $ac_c" 1>&6
1659 echo 'void f(){}' > conftest.c
1660 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1669 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1670 if test "$ac_test_CFLAGS" = set; then
1671 CFLAGS="$ac_save_CFLAGS"
1672 elif test $ac_cv_prog_cc_g = yes; then
1673 if test "$GCC" = yes; then
1679 if test "$GCC" = yes; then
1686 # Find a good install program. We prefer a C program (faster),
1687 # so one script is as good as another. But avoid the broken or
1688 # incompatible versions:
1689 # SysV /etc/install, /usr/sbin/install
1690 # SunOS /usr/etc/install
1691 # IRIX /sbin/install
1693 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1694 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1695 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1696 # ./install, which can be erroneously created by make from ./install.sh.
1697 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1698 echo "configure:1699: checking for a BSD compatible install" >&5
1699 if test -z "$INSTALL"; then
1700 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1701 echo $ac_n "(cached) $ac_c" 1>&6
1703 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1704 for ac_dir in $PATH; do
1705 # Account for people who put trailing slashes in PATH elements.
1707 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1709 # OSF1 and SCO ODT 3.0 have their own names for install.
1710 # Don't use installbsd from OSF since it installs stuff as root
1712 for ac_prog in ginstall scoinst install; do
1713 if test -f $ac_dir/$ac_prog; then
1714 if test $ac_prog = install &&
1715 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1716 # AIX install. It has an incompatible calling convention.
1719 ac_cv_path_install="$ac_dir/$ac_prog -c"
1730 if test "${ac_cv_path_install+set}" = set; then
1731 INSTALL="$ac_cv_path_install"
1733 # As a last resort, use the slow shell script. We don't cache a
1734 # path for INSTALL within a source directory, because that will
1735 # break other packages using the cache if that directory is
1736 # removed, or if the path is relative.
1737 INSTALL="$ac_install_sh"
1740 echo "$ac_t""$INSTALL" 1>&6
1742 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1743 # It thinks the first close brace ends the variable substitution.
1744 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1746 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1748 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1751 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1752 echo "configure:1753: checking how to run the C preprocessor" >&5
1753 # On Suns, sometimes $CPP names a directory.
1754 if test -n "$CPP" && test -d "$CPP"; then
1757 if test -z "$CPP"; then
1758 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1759 echo $ac_n "(cached) $ac_c" 1>&6
1761 # This must be in double quotes, not single quotes, because CPP may get
1762 # substituted into the Makefile and "${CC-cc}" will confuse make.
1764 # On the NeXT, cc -E runs the code through the compiler's parser,
1765 # not just through cpp.
1766 cat > conftest.$ac_ext <<EOF
1767 #line 1768 "configure"
1768 #include "confdefs.h"
1772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1773 { (eval echo configure:1774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1774 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1775 if test -z "$ac_err"; then
1779 echo "configure: failed program was:" >&5
1780 cat conftest.$ac_ext >&5
1782 CPP="${CC-cc} -E -traditional-cpp"
1783 cat > conftest.$ac_ext <<EOF
1784 #line 1785 "configure"
1785 #include "confdefs.h"
1789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1790 { (eval echo configure:1791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1792 if test -z "$ac_err"; then
1796 echo "configure: failed program was:" >&5
1797 cat conftest.$ac_ext >&5
1799 CPP="${CC-cc} -nologo -E"
1800 cat > conftest.$ac_ext <<EOF
1801 #line 1802 "configure"
1802 #include "confdefs.h"
1806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1807 { (eval echo configure:1808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1809 if test -z "$ac_err"; then
1813 echo "configure: failed program was:" >&5
1814 cat conftest.$ac_ext >&5
1823 ac_cv_prog_CPP="$CPP"
1825 CPP="$ac_cv_prog_CPP"
1827 ac_cv_prog_CPP="$CPP"
1829 echo "$ac_t""$CPP" 1>&6
1831 for ac_hdr in stdlib.h unistd.h stdarg.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.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
1833 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1834 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1835 echo "configure:1836: checking for $ac_hdr" >&5
1836 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1837 echo $ac_n "(cached) $ac_c" 1>&6
1839 cat > conftest.$ac_ext <<EOF
1840 #line 1841 "configure"
1841 #include "confdefs.h"
1844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1845 { (eval echo configure:1846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1847 if test -z "$ac_err"; then
1849 eval "ac_cv_header_$ac_safe=yes"
1852 echo "configure: failed program was:" >&5
1853 cat conftest.$ac_ext >&5
1855 eval "ac_cv_header_$ac_safe=no"
1859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1860 echo "$ac_t""yes" 1>&6
1861 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1862 cat >> confdefs.h <<EOF
1863 #define $ac_tr_hdr 1
1867 echo "$ac_t""no" 1>&6
1871 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1872 echo "configure:1873: checking for vprintf" >&5
1873 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1876 cat > conftest.$ac_ext <<EOF
1877 #line 1878 "configure"
1878 #include "confdefs.h"
1879 /* System header to define __stub macros and hopefully few prototypes,
1880 which can conflict with char vprintf(); below. */
1882 /* Override any gcc2 internal prototype to avoid an error. */
1883 /* We use char because int might match the return type of a gcc2
1884 builtin and then its argument prototype would still apply. */
1889 /* The GNU C library defines this for functions which it implements
1890 to always fail with ENOSYS. Some functions are actually named
1891 something starting with __ and the normal name is an alias. */
1892 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1900 if { (eval echo configure:1901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1902 eval "ac_cv_func_vprintf=yes"
1904 echo "configure: failed program was:" >&5
1905 cat conftest.$ac_ext >&5
1907 eval "ac_cv_func_vprintf=no"
1912 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1913 echo "$ac_t""yes" 1>&6
1914 cat >> confdefs.h <<\EOF
1915 #define HAVE_VPRINTF 1
1919 echo "$ac_t""no" 1>&6
1922 if test "$ac_cv_func_vprintf" != yes; then
1923 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1924 echo "configure:1925: checking for _doprnt" >&5
1925 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1926 echo $ac_n "(cached) $ac_c" 1>&6
1928 cat > conftest.$ac_ext <<EOF
1929 #line 1930 "configure"
1930 #include "confdefs.h"
1931 /* System header to define __stub macros and hopefully few prototypes,
1932 which can conflict with char _doprnt(); below. */
1934 /* Override any gcc2 internal prototype to avoid an error. */
1935 /* We use char because int might match the return type of a gcc2
1936 builtin and then its argument prototype would still apply. */
1941 /* The GNU C library defines this for functions which it implements
1942 to always fail with ENOSYS. Some functions are actually named
1943 something starting with __ and the normal name is an alias. */
1944 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1952 if { (eval echo configure:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1954 eval "ac_cv_func__doprnt=yes"
1956 echo "configure: failed program was:" >&5
1957 cat conftest.$ac_ext >&5
1959 eval "ac_cv_func__doprnt=no"
1964 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1965 echo "$ac_t""yes" 1>&6
1966 cat >> confdefs.h <<\EOF
1967 #define HAVE_DOPRNT 1
1971 echo "$ac_t""no" 1>&6
1976 echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
1977 echo "configure:1978: checking whether struct dirent has a d_namlen field" >&5
1978 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+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 #include <sys/types.h>
1987 struct dirent de; de.d_namlen = 0;
1990 if { (eval echo configure:1991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1992 e2fsprogs_cv_struct_d_namlen=yes
1994 echo "configure: failed program was:" >&5
1995 cat conftest.$ac_ext >&5
1997 e2fsprogs_cv_struct_d_namlen=no
2002 echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
2003 if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
2004 cat >> confdefs.h <<\EOF
2005 #define HAVE_DIRENT_NAMLEN 1
2009 echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
2010 echo "configure:2011: checking whether llseek declared in unistd.h" >&5
2011 if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2014 cat > conftest.$ac_ext <<EOF
2015 #line 2016 "configure"
2016 #include "confdefs.h"
2019 extern int llseek(int);
2022 if { (eval echo configure:2023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2024 e2fsprogs_cv_have_llseek_prototype=no
2026 echo "configure: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2029 e2fsprogs_cv_have_llseek_prototype=yes
2034 echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
2035 if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
2036 cat >> confdefs.h <<\EOF
2037 #define HAVE_LLSEEK_PROTOTYPE 1
2041 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
2042 # if cross-compiling, with no cached values, just assume something common.
2043 ac_cv_sizeof_short=2
2046 ac_cv_sizeof_long_long=0
2047 echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4" 1>&2
2049 echo $ac_n "checking size of short""... $ac_c" 1>&6
2050 echo "configure:2051: checking size of short" >&5
2051 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2054 if test "$cross_compiling" = yes; then
2055 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2057 cat > conftest.$ac_ext <<EOF
2058 #line 2059 "configure"
2059 #include "confdefs.h"
2063 FILE *f=fopen("conftestval", "w");
2065 fprintf(f, "%d\n", sizeof(short));
2069 if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2071 ac_cv_sizeof_short=`cat conftestval`
2073 echo "configure: failed program was:" >&5
2074 cat conftest.$ac_ext >&5
2076 ac_cv_sizeof_short=0
2082 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2083 cat >> confdefs.h <<EOF
2084 #define SIZEOF_SHORT $ac_cv_sizeof_short
2088 echo $ac_n "checking size of int""... $ac_c" 1>&6
2089 echo "configure:2090: checking size of int" >&5
2090 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2093 if test "$cross_compiling" = yes; then
2094 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2096 cat > conftest.$ac_ext <<EOF
2097 #line 2098 "configure"
2098 #include "confdefs.h"
2102 FILE *f=fopen("conftestval", "w");
2104 fprintf(f, "%d\n", sizeof(int));
2108 if { (eval echo configure:2109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2110 ac_cv_sizeof_int=`cat conftestval`
2112 echo "configure: failed program was:" >&5
2113 cat conftest.$ac_ext >&5
2121 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2122 cat >> confdefs.h <<EOF
2123 #define SIZEOF_INT $ac_cv_sizeof_int
2127 echo $ac_n "checking size of long""... $ac_c" 1>&6
2128 echo "configure:2129: checking size of long" >&5
2129 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2130 echo $ac_n "(cached) $ac_c" 1>&6
2132 if test "$cross_compiling" = yes; then
2133 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2135 cat > conftest.$ac_ext <<EOF
2136 #line 2137 "configure"
2137 #include "confdefs.h"
2141 FILE *f=fopen("conftestval", "w");
2143 fprintf(f, "%d\n", sizeof(long));
2147 if { (eval echo configure:2148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2149 ac_cv_sizeof_long=`cat conftestval`
2151 echo "configure: failed program was:" >&5
2152 cat conftest.$ac_ext >&5
2160 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2161 cat >> confdefs.h <<EOF
2162 #define SIZEOF_LONG $ac_cv_sizeof_long
2166 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2167 echo "configure:2168: checking size of long long" >&5
2168 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2169 echo $ac_n "(cached) $ac_c" 1>&6
2171 if test "$cross_compiling" = yes; then
2172 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2174 cat > conftest.$ac_ext <<EOF
2175 #line 2176 "configure"
2176 #include "confdefs.h"
2180 FILE *f=fopen("conftestval", "w");
2182 fprintf(f, "%d\n", sizeof(long long));
2186 if { (eval echo configure:2187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2188 ac_cv_sizeof_long_long=`cat conftestval`
2190 echo "configure: failed program was:" >&5
2191 cat conftest.$ac_ext >&5
2193 ac_cv_sizeof_long_long=0
2199 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2200 cat >> confdefs.h <<EOF
2201 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2205 SIZEOF_SHORT=$ac_cv_sizeof_short
2206 SIZEOF_INT=$ac_cv_sizeof_int
2207 SIZEOF_LONG=$ac_cv_sizeof_long
2208 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
2213 echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
2214 echo "configure:2215: checking whether struct stat has a st_flags field" >&5
2215 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
2216 echo $ac_n "(cached) $ac_c" 1>&6
2218 cat > conftest.$ac_ext <<EOF
2219 #line 2220 "configure"
2220 #include "confdefs.h"
2221 #include <sys/stat.h>
2223 struct stat stat; stat.st_flags = 0;
2226 if { (eval echo configure:2227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2228 e2fsprogs_cv_struct_st_flags=yes
2230 echo "configure: failed program was:" >&5
2231 cat conftest.$ac_ext >&5
2233 e2fsprogs_cv_struct_st_flags=no
2238 echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
2239 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
2240 cat >> confdefs.h <<\EOF
2241 #define HAVE_STAT_FLAGS 1
2245 for ac_func in chflags getrusage llseek strdup getmntinfo strcasecmp srandom fchown mallinfo
2247 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2248 echo "configure:2249: checking for $ac_func" >&5
2249 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2250 echo $ac_n "(cached) $ac_c" 1>&6
2252 cat > conftest.$ac_ext <<EOF
2253 #line 2254 "configure"
2254 #include "confdefs.h"
2255 /* System header to define __stub macros and hopefully few prototypes,
2256 which can conflict with char $ac_func(); below. */
2258 /* Override any gcc2 internal prototype to avoid an error. */
2259 /* We use char because int might match the return type of a gcc2
2260 builtin and then its argument prototype would still apply. */
2265 /* The GNU C library defines this for functions which it implements
2266 to always fail with ENOSYS. Some functions are actually named
2267 something starting with __ and the normal name is an alias. */
2268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2276 if { (eval echo configure:2277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2278 eval "ac_cv_func_$ac_func=yes"
2280 echo "configure: failed program was:" >&5
2281 cat conftest.$ac_ext >&5
2283 eval "ac_cv_func_$ac_func=no"
2288 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2289 echo "$ac_t""yes" 1>&6
2290 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2291 cat >> confdefs.h <<EOF
2292 #define $ac_tr_func 1
2296 echo "$ac_t""no" 1>&6
2300 echo $ac_n "checking ino_t defined by sys/types.h""... $ac_c" 1>&6
2301 echo "configure:2302: checking ino_t defined by sys/types.h" >&5
2302 if eval "test \"`echo '$''{'e2fsprogs_cv_ino_t'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2308 #include <sys/types.h>
2313 if { (eval echo configure:2314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2315 e2fsprogs_cv_ino_t=yes
2317 echo "configure: failed program was:" >&5
2318 cat conftest.$ac_ext >&5
2320 e2fsprogs_cv_ino_t=no
2325 echo "$ac_t""$e2fsprogs_cv_ino_t" 1>&6
2326 if test "$e2fsprogs_cv_ino_t" = yes; then
2327 cat >> confdefs.h <<\EOF
2328 #define HAVE_INO_T 1
2332 ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
2333 echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
2334 echo "configure:2335: checking for linux/fs.h" >&5
2335 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2338 cat > conftest.$ac_ext <<EOF
2339 #line 2340 "configure"
2340 #include "confdefs.h"
2341 #include <linux/fs.h>
2343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2344 { (eval echo configure:2345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2346 if test -z "$ac_err"; then
2348 eval "ac_cv_header_$ac_safe=yes"
2351 echo "configure: failed program was:" >&5
2352 cat conftest.$ac_ext >&5
2354 eval "ac_cv_header_$ac_safe=no"
2358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2359 echo "$ac_t""yes" 1>&6
2362 echo "$ac_t""no" 1>&6
2366 if test "$linux_headers" = yes; then
2367 cat >> confdefs.h <<\EOF
2368 #define HAVE_LINUX_FS_H 1
2372 LINUX_INCLUDE='-I$(top_srcdir)/include -I$(top_builddir)/include'
2373 # Use this include directory with test compiles in the configure script too.
2374 CPPFLAGS="$CPPFLAGS -I$srcdir/include -I./include"
2378 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2379 echo "configure:2380: checking for socket in -lsocket" >&5
2380 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2381 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2382 echo $ac_n "(cached) $ac_c" 1>&6
2384 ac_save_LIBS="$LIBS"
2385 LIBS="-lsocket $LIBS"
2386 cat > conftest.$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2389 /* Override any gcc2 internal prototype to avoid an error. */
2390 /* We use char because int might match the return type of a gcc2
2391 builtin and then its argument prototype would still apply. */
2398 if { (eval echo configure:2399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2400 eval "ac_cv_lib_$ac_lib_var=yes"
2402 echo "configure: failed program was:" >&5
2403 cat conftest.$ac_ext >&5
2405 eval "ac_cv_lib_$ac_lib_var=no"
2408 LIBS="$ac_save_LIBS"
2411 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2412 echo "$ac_t""yes" 1>&6
2415 echo "$ac_t""no" 1>&6
2419 echo $ac_n "checking for optreset""... $ac_c" 1>&6
2420 echo "configure:2421: checking for optreset" >&5
2421 if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2424 cat > conftest.$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2430 egrep "optreset" >/dev/null 2>&1; then
2432 ac_cv_have_optreset=yes
2435 ac_cv_have_optreset=no
2440 echo "$ac_t""$ac_cv_have_optreset" 1>&6
2441 if test $ac_cv_have_optreset = yes; then
2442 cat >> confdefs.h <<\EOF
2443 #define HAVE_OPTRESET 1
2447 echo $ac_n "checking whether the ext2 ioctls compile""... $ac_c" 1>&6
2448 echo "configure:2449: checking whether the ext2 ioctls compile" >&5
2449 if eval "test \"`echo '$''{'e2fsprogs_cv_ioctl_ext2'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2452 cat > conftest.$ac_ext <<EOF
2453 #line 2454 "configure"
2454 #include "confdefs.h"
2455 #include <linux/ext2_fs.h>
2456 #include <sys/ioctl.h>
2458 ioctl (0, EXT2_IOC_SETVERSION, 0);
2461 if { (eval echo configure:2462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2463 e2fsprogs_cv_ioctl_ext2=yes
2465 echo "configure: failed program was:" >&5
2466 cat conftest.$ac_ext >&5
2468 e2fsprogs_cv_ioctl_ext2=no
2473 echo "$ac_t""$e2fsprogs_cv_ioctl_ext2" 1>&6
2474 if test "$e2fsprogs_cv_ioctl_ext2" = yes; then
2475 cat >> confdefs.h <<\EOF
2476 #define HAVE_EXT2_IOCTLS 1
2480 echo $ac_n "checking whether struct ext2_inode has an i_version field""... $ac_c" 1>&6
2481 echo "configure:2482: checking whether struct ext2_inode has an i_version field" >&5
2482 if eval "test \"`echo '$''{'e2fsprogs_cv_ext2_inode_version'+set}'`\" = set"; then
2483 echo $ac_n "(cached) $ac_c" 1>&6
2485 cat > conftest.$ac_ext <<EOF
2486 #line 2487 "configure"
2487 #include "confdefs.h"
2488 #include <linux/ext2_fs.h>
2490 struct ext2_inode e2i; e2i.i_version=0;
2493 if { (eval echo configure:2494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2495 e2fsprogs_cv_ext2_inode_version=yes
2497 echo "configure: failed program was:" >&5
2498 cat conftest.$ac_ext >&5
2500 e2fsprogs_cv_ext2_inode_version=no
2505 echo "$ac_t""$e2fsprogs_cv_ext2_inode_version" 1>&6
2506 if test "$e2fsprogs_cv_ext2_inode_version" = yes; then
2507 cat >> confdefs.h <<\EOF
2508 #define HAVE_EXT2_INODE_VERSION 1
2514 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
2516 echo "On $host_os systems, root_prefix defaults to ''"
2522 if test "$prefix" = NONE ; then
2524 echo "On $host_os systems, prefix defaults to /usr"
2528 if test "$root_prefix" = NONE ; then
2529 if test "$prefix" = NONE ; then
2530 root_prefix="$ac_default_prefix"
2532 root_prefix="$prefix"
2536 echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
2537 echo "configure:2538: checking whether linker accepts -static" >&5
2538 if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
2539 echo $ac_n "(cached) $ac_c" 1>&6
2541 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
2542 cat > conftest.$ac_ext <<EOF
2543 #line 2544 "configure"
2544 #include "confdefs.h"
2550 if { (eval echo configure:2551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2552 ac_cv_e2fsprogs_use_static=yes
2554 echo "configure: failed program was:" >&5
2555 cat conftest.$ac_ext >&5
2557 ac_cv_e2fsprogs_use_static=no
2560 LDFLAGS=$SAVE_LDFLAGS
2565 ac_cv_e2fsprogs_use_static=no
2568 echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
2570 if test $ac_cv_e2fsprogs_use_static = yes; then
2571 LDFLAG_STATIC=-static
2574 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
2575 ET_DIR=`cd ${srcdir}/lib/et; pwd`
2578 if test "$cross_compiling" = yes ; then
2584 DO_SUBSTITUTE_SCRIPT=$srcdir/lib/do_substitute
2586 test -d lib || mkdir lib
2587 test -d include || mkdir include
2588 test -d include/linux || mkdir include/linux
2589 test -d include/asm || mkdir include/asm
2591 if test -d ${srcdir}/resize ; then
2592 rmakefile=resize/Makefile
2595 cat > confcache <<\EOF
2596 # This file is a shell script that caches the results of configure
2597 # tests run on this system so they can be shared between configure
2598 # scripts and configure runs. It is not useful on other systems.
2599 # If it contains results you don't want to keep, you may remove or edit it.
2601 # By default, configure uses ./config.cache as the cache file,
2602 # creating it if it does not exist already. You can give configure
2603 # the --cache-file=FILE option to use a different cache file; that is
2604 # what configure does when it calls configure scripts in
2605 # subdirectories, so they share the cache.
2606 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2607 # config.status only pays attention to the cache file if you give it the
2608 # --recheck option to rerun configure.
2611 # The following way of writing the cache mishandles newlines in values,
2612 # but we know of no workaround that is simple, portable, and efficient.
2613 # So, don't put newlines in cache variables' values.
2614 # Ultrix sh set writes to stderr and can't be redirected directly,
2615 # and sets the high bit in the cache file unless we assign to the vars.
2617 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2619 # `set' does not quote correctly, so add quotes (double-quote substitution
2620 # turns \\\\ into \\, and sed turns \\ into \).
2622 -e "s/'/'\\\\''/g" \
2623 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2626 # `set' quotes correctly as required by POSIX, so do not add quotes.
2627 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2630 if cmp -s $cache_file confcache; then
2633 if test -w $cache_file; then
2634 echo "updating cache $cache_file"
2635 cat confcache > $cache_file
2637 echo "not updating unwritable cache $cache_file"
2642 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2644 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2645 # Let make expand exec_prefix.
2646 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2648 # Any assignment to VPATH causes Sun make to only execute
2649 # the first set of double-colon rules, so remove it if not needed.
2650 # If there is a colon in the path, we need to keep it.
2651 if test "x$srcdir" = x.; then
2652 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2655 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2657 # Transform confdefs.h into DEFS.
2658 # Protect against shell expansion while executing Makefile rules.
2659 # Protect against Makefile macro expansion.
2660 cat > conftest.defs <<\EOF
2661 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2662 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2667 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2671 # Without the "./", some shells look in PATH for config.status.
2672 : ${CONFIG_STATUS=./config.status}
2674 echo creating $CONFIG_STATUS
2675 rm -f $CONFIG_STATUS
2676 cat > $CONFIG_STATUS <<EOF
2678 # Generated automatically by configure.
2679 # Run this file to recreate the current configuration.
2680 # This directory was configured as follows,
2681 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2683 # $0 $ac_configure_args
2685 # Compiler output produced by configure, useful for debugging
2686 # configure, is in ./config.log if it exists.
2688 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2691 case "\$ac_option" in
2692 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2693 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2694 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2695 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2696 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2698 -help | --help | --hel | --he | --h)
2699 echo "\$ac_cs_usage"; exit 0 ;;
2700 *) echo "\$ac_cs_usage"; exit 1 ;;
2704 ac_given_srcdir=$srcdir
2705 ac_given_INSTALL="$INSTALL"
2707 trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
2708 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
2709 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
2710 tests/progs/Makefile $rmakefile doc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2712 cat >> $CONFIG_STATUS <<EOF
2714 # Protect against being on the right side of a sed subst in config.status.
2715 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2716 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2720 s%@CFLAGS@%$CFLAGS%g
2721 s%@CPPFLAGS@%$CPPFLAGS%g
2722 s%@CXXFLAGS@%$CXXFLAGS%g
2723 s%@FFLAGS@%$FFLAGS%g
2725 s%@LDFLAGS@%$LDFLAGS%g
2727 s%@exec_prefix@%$exec_prefix%g
2728 s%@prefix@%$prefix%g
2729 s%@program_transform_name@%$program_transform_name%g
2730 s%@bindir@%$bindir%g
2731 s%@sbindir@%$sbindir%g
2732 s%@libexecdir@%$libexecdir%g
2733 s%@datadir@%$datadir%g
2734 s%@sysconfdir@%$sysconfdir%g
2735 s%@sharedstatedir@%$sharedstatedir%g
2736 s%@localstatedir@%$localstatedir%g
2737 s%@libdir@%$libdir%g
2738 s%@includedir@%$includedir%g
2739 s%@oldincludedir@%$oldincludedir%g
2740 s%@infodir@%$infodir%g
2741 s%@mandir@%$mandir%g
2742 /@MCONFIG@/r $MCONFIG
2744 s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
2745 s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
2746 s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
2748 s%@host_alias@%$host_alias%g
2749 s%@host_cpu@%$host_cpu%g
2750 s%@host_vendor@%$host_vendor%g
2751 s%@host_os@%$host_os%g
2754 s%@CCOPTS@%$CCOPTS%g
2755 s%@DLL_CMT@%$DLL_CMT%g
2756 /@MAKEFILE_DLL@/r $MAKEFILE_DLL
2758 s%@ELF_CMT@%$ELF_CMT%g
2759 /@MAKEFILE_ELF@/r $MAKEFILE_ELF
2761 s%@BSDLIB_CMT@%$BSDLIB_CMT%g
2762 /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
2763 s%@MAKEFILE_BSDLIB@%%g
2764 s%@PROFILE_CMT@%$PROFILE_CMT%g
2765 /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
2766 s%@MAKEFILE_PROFILE@%%g
2767 s%@CHECKER_CMT@%$CHECKER_CMT%g
2768 /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
2769 s%@MAKEFILE_CHECKER@%%g
2770 s%@LIB_EXT@%$LIB_EXT%g
2771 s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
2772 s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
2774 s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
2775 s%@FSCK_PROG@%$FSCK_PROG%g
2776 s%@FSCK_MAN@%$FSCK_MAN%g
2777 /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
2778 s%@MAKEFILE_LIBRARY@%%g
2779 s%@BINARY_TYPE@%$BINARY_TYPE%g
2780 s%@SET_MAKE@%$SET_MAKE%g
2791 s%@build_alias@%$build_alias%g
2792 s%@build_cpu@%$build_cpu%g
2793 s%@build_vendor@%$build_vendor%g
2794 s%@build_os@%$build_os%g
2796 s%@RANLIB@%$RANLIB%g
2798 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2799 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2800 s%@INSTALL_DATA@%$INSTALL_DATA%g
2802 s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
2803 s%@SIZEOF_INT@%$SIZEOF_INT%g
2804 s%@SIZEOF_LONG@%$SIZEOF_LONG%g
2805 s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
2806 s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
2807 s%@SOCKET_LIB@%$SOCKET_LIB%g
2808 s%@root_prefix@%$root_prefix%g
2809 s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
2810 s%@SS_DIR@%$SS_DIR%g
2811 s%@ET_DIR@%$ET_DIR%g
2812 s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
2813 /@DO_SUBSTITUTE_SCRIPT@/r $DO_SUBSTITUTE_SCRIPT
2814 s%@DO_SUBSTITUTE_SCRIPT@%%g
2819 cat >> $CONFIG_STATUS <<\EOF
2821 # Split the substitutions into bite-sized pieces for seds with
2822 # small command number limits, like on Digital OSF/1 and HP-UX.
2823 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2824 ac_file=1 # Number of current file.
2825 ac_beg=1 # First line for current file.
2826 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2829 while $ac_more_lines; do
2830 if test $ac_beg -gt 1; then
2831 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2833 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2835 if test ! -s conftest.s$ac_file; then
2837 rm -f conftest.s$ac_file
2839 if test -z "$ac_sed_cmds"; then
2840 ac_sed_cmds="sed -f conftest.s$ac_file"
2842 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2844 ac_file=`expr $ac_file + 1`
2846 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2849 if test -z "$ac_sed_cmds"; then
2854 cat >> $CONFIG_STATUS <<EOF
2856 CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
2857 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
2858 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
2859 tests/progs/Makefile $rmakefile doc/Makefile"}
2861 cat >> $CONFIG_STATUS <<\EOF
2862 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2863 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2865 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2866 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2867 *) ac_file_in="${ac_file}.in" ;;
2870 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2872 # Remove last slash and all that follows it. Not all systems have dirname.
2873 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2874 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2875 # The file is in a subdirectory.
2876 test ! -d "$ac_dir" && mkdir "$ac_dir"
2877 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2878 # A "../" for each directory in $ac_dir_suffix.
2879 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2881 ac_dir_suffix= ac_dots=
2884 case "$ac_given_srcdir" in
2886 if test -z "$ac_dots"; then top_srcdir=.
2887 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2888 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2890 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2891 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2894 case "$ac_given_INSTALL" in
2895 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2896 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2899 echo creating "$ac_file"
2901 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2903 *Makefile*) ac_comsub="1i\\
2904 # $configure_input" ;;
2908 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2910 s%@configure_input@%$configure_input%g
2911 s%@srcdir@%$srcdir%g
2912 s%@top_srcdir@%$top_srcdir%g
2913 s%@INSTALL@%$INSTALL%g
2914 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2919 cat >> $CONFIG_STATUS <<EOF
2922 cat >> $CONFIG_STATUS <<\EOF
2926 chmod +x $CONFIG_STATUS
2927 rm -fr confdefs* $ac_clean_files
2928 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1