3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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-usr-prefx=PREFIX specify a prefix corresponding to /usr (default ${prefix})"
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 # Maximum number of lines to put in a shell here document.
87 # If the previous option needs an argument, assign it.
88 if test -n "$ac_prev"; then
89 eval "$ac_prev=\$ac_option"
95 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
99 # Accept the important Cygnus configure options, so we can diagnose typos.
103 -bindir | --bindir | --bindi | --bind | --bin | --bi)
105 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
106 bindir="$ac_optarg" ;;
108 -build | --build | --buil | --bui | --bu)
110 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
111 build="$ac_optarg" ;;
113 -cache-file | --cache-file | --cache-fil | --cache-fi \
114 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
115 ac_prev=cache_file ;;
116 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
117 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
118 cache_file="$ac_optarg" ;;
120 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
122 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
124 datadir="$ac_optarg" ;;
126 -disable-* | --disable-*)
127 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}=no" ;;
135 -enable-* | --enable-*)
136 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
137 # Reject names that are not valid shell variable names.
138 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
139 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 eval "enable_${ac_feature}='$ac_optarg'" ;;
148 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
149 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
150 | --exec | --exe | --ex)
151 ac_prev=exec_prefix ;;
152 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
153 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
154 | --exec=* | --exe=* | --ex=*)
155 exec_prefix="$ac_optarg" ;;
157 -gas | --gas | --ga | --g)
158 # Obsolete; use --with-gas.
161 -help | --help | --hel | --he)
162 # Omit some internal or obsolete options to make the list less imposing.
163 # This message is too long to be a string in the A/UX 3.1 sh.
165 Usage: configure [options] [host]
166 Options: [defaults in brackets after descriptions]
168 --cache-file=FILE cache test results in FILE
169 --help print this message
170 --no-create do not create output files
171 --quiet, --silent do not print \`checking...' messages
172 --version print the version of autoconf that created configure
173 Directory and file names:
174 --prefix=PREFIX install architecture-independent files in PREFIX
176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
178 --bindir=DIR user executables in DIR [EPREFIX/bin]
179 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
180 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
181 --datadir=DIR read-only architecture-independent data in DIR
183 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
184 --sharedstatedir=DIR modifiable architecture-independent data in DIR
186 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
187 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
188 --includedir=DIR C header files in DIR [PREFIX/include]
189 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
190 --infodir=DIR info documentation in DIR [PREFIX/info]
191 --mandir=DIR man documentation in DIR [PREFIX/man]
192 --srcdir=DIR find the sources in DIR [configure dir or ..]
193 --program-prefix=PREFIX prepend PREFIX to installed program names
194 --program-suffix=SUFFIX append SUFFIX to installed program names
195 --program-transform-name=PROGRAM
196 run sed PROGRAM on installed program names
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
203 Features and packages:
204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
206 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
207 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
208 --x-includes=DIR X include files are in DIR
209 --x-libraries=DIR X library files are in DIR
211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
216 -host | --host | --hos | --ho)
218 -host=* | --host=* | --hos=* | --ho=*)
221 -includedir | --includedir | --includedi | --included | --include \
222 | --includ | --inclu | --incl | --inc)
223 ac_prev=includedir ;;
224 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
225 | --includ=* | --inclu=* | --incl=* | --inc=*)
226 includedir="$ac_optarg" ;;
228 -infodir | --infodir | --infodi | --infod | --info | --inf)
230 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
231 infodir="$ac_optarg" ;;
233 -libdir | --libdir | --libdi | --libd)
235 -libdir=* | --libdir=* | --libdi=* | --libd=*)
236 libdir="$ac_optarg" ;;
238 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
239 | --libexe | --libex | --libe)
240 ac_prev=libexecdir ;;
241 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
242 | --libexe=* | --libex=* | --libe=*)
243 libexecdir="$ac_optarg" ;;
245 -localstatedir | --localstatedir | --localstatedi | --localstated \
246 | --localstate | --localstat | --localsta | --localst \
247 | --locals | --local | --loca | --loc | --lo)
248 ac_prev=localstatedir ;;
249 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
250 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
251 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
252 localstatedir="$ac_optarg" ;;
254 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
256 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
257 mandir="$ac_optarg" ;;
260 # Obsolete; use --without-fp.
263 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
267 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
268 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
271 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
272 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
273 | --oldin | --oldi | --old | --ol | --o)
274 ac_prev=oldincludedir ;;
275 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
276 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
277 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
278 oldincludedir="$ac_optarg" ;;
280 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
282 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
283 prefix="$ac_optarg" ;;
285 -program-prefix | --program-prefix | --program-prefi | --program-pref \
286 | --program-pre | --program-pr | --program-p)
287 ac_prev=program_prefix ;;
288 -program-prefix=* | --program-prefix=* | --program-prefi=* \
289 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
290 program_prefix="$ac_optarg" ;;
292 -program-suffix | --program-suffix | --program-suffi | --program-suff \
293 | --program-suf | --program-su | --program-s)
294 ac_prev=program_suffix ;;
295 -program-suffix=* | --program-suffix=* | --program-suffi=* \
296 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
297 program_suffix="$ac_optarg" ;;
299 -program-transform-name | --program-transform-name \
300 | --program-transform-nam | --program-transform-na \
301 | --program-transform-n | --program-transform- \
302 | --program-transform | --program-transfor \
303 | --program-transfo | --program-transf \
304 | --program-trans | --program-tran \
305 | --progr-tra | --program-tr | --program-t)
306 ac_prev=program_transform_name ;;
307 -program-transform-name=* | --program-transform-name=* \
308 | --program-transform-nam=* | --program-transform-na=* \
309 | --program-transform-n=* | --program-transform-=* \
310 | --program-transform=* | --program-transfor=* \
311 | --program-transfo=* | --program-transf=* \
312 | --program-trans=* | --program-tran=* \
313 | --progr-tra=* | --program-tr=* | --program-t=*)
314 program_transform_name="$ac_optarg" ;;
316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
317 | -silent | --silent | --silen | --sile | --sil)
320 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
322 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
324 sbindir="$ac_optarg" ;;
326 -sharedstatedir | --sharedstatedir | --sharedstatedi \
327 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
328 | --sharedst | --shareds | --shared | --share | --shar \
330 ac_prev=sharedstatedir ;;
331 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
332 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
333 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
335 sharedstatedir="$ac_optarg" ;;
337 -site | --site | --sit)
339 -site=* | --site=* | --sit=*)
342 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
344 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
345 srcdir="$ac_optarg" ;;
347 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
348 | --syscon | --sysco | --sysc | --sys | --sy)
349 ac_prev=sysconfdir ;;
350 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
351 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
352 sysconfdir="$ac_optarg" ;;
354 -target | --target | --targe | --targ | --tar | --ta | --t)
356 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
357 target="$ac_optarg" ;;
359 -v | -verbose | --verbose | --verbos | --verbo | --verb)
362 -version | --version | --versio | --versi | --vers)
363 echo "configure generated by autoconf version 2.12"
367 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 eval "with_${ac_package}='$ac_optarg'" ;;
379 -without-* | --without-*)
380 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}=no" ;;
389 # Obsolete; use --with-x.
392 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
393 | --x-incl | --x-inc | --x-in | --x-i)
394 ac_prev=x_includes ;;
395 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
396 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
397 x_includes="$ac_optarg" ;;
399 -x-libraries | --x-libraries | --x-librarie | --x-librari \
400 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
401 ac_prev=x_libraries ;;
402 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
403 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
404 x_libraries="$ac_optarg" ;;
406 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
410 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
411 echo "configure: warning: $ac_option: invalid host type" 1>&2
413 if test "x$nonopt" != xNONE; then
414 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
422 if test -n "$ac_prev"; then
423 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
426 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
428 # File descriptor usage:
431 # 2 errors and warnings
432 # 3 some systems may open it to /dev/tty
433 # 4 used on the Kubota Titan
434 # 6 checking for... messages and results
435 # 5 compiler messages saved in config.log
436 if test "$silent" = yes; then
444 This file contains any messages produced by compilers while
445 running configure, to aid debugging if configure makes a mistake.
448 # Strip out --no-create and --no-recursion so they do not pile up.
449 # Also quote any args containing shell metacharacters.
454 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
455 | --no-cr | --no-c) ;;
456 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
457 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
458 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
459 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
460 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
465 # Only set these to C if already set. These must not be set unconditionally
466 # because not all systems understand e.g. LANG=C (notably SCO).
467 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
468 # Non-C LC_CTYPE values break the ctype check.
469 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
470 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
471 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
472 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
474 # confdefs.h avoids OS command line length limits that DEFS can exceed.
475 rm -rf conftest* confdefs.h
476 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
479 # A filename unique to this package, relative to the directory that
480 # configure is in, which we can look for to find out if srcdir is correct.
481 ac_unique_file=version.h
483 # Find the source files, if location was not specified.
484 if test -z "$srcdir"; then
485 ac_srcdir_defaulted=yes
486 # Try the directory containing this script, then its parent.
488 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
489 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
491 if test ! -r $srcdir/$ac_unique_file; then
495 ac_srcdir_defaulted=no
497 if test ! -r $srcdir/$ac_unique_file; then
498 if test "$ac_srcdir_defaulted" = yes; then
499 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
501 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
504 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
506 # Prefer explicitly selected file to automatically selected ones.
507 if test -z "$CONFIG_SITE"; then
508 if test "x$prefix" != xNONE; then
509 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
511 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514 for ac_site_file in $CONFIG_SITE; do
515 if test -r "$ac_site_file"; then
516 echo "loading site script $ac_site_file"
521 if test -r "$cache_file"; then
522 echo "loading cache $cache_file"
525 echo "creating cache $cache_file"
530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
531 ac_cpp='$CPP $CPPFLAGS'
532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
533 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
534 cross_compiling=$ac_cv_prog_cc_cross
536 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
537 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
545 ac_n= ac_c='\c' ac_t=
552 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
553 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
554 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
556 MONTH=`echo $DATE | awk -F- '{print $2}'`
557 YEAR=`echo $DATE | awk -F- '{print $3}'`
559 if expr $YEAR ">" 90 >/dev/null ; then
560 E2FSPROGS_YEAR=19$YEAR
562 E2FSPROGS_YEAR=20$YEAR
566 Jan) E2FSPROGS_MONTH="January" ;;
567 Feb) E2FSPROGS_MONTH="February" ;;
568 Mar) E2FSPROGS_MONTH="March" ;;
569 Apr) E2FSPROGS_MONTH="April" ;;
570 May) E2FSPROGS_MONTH="May" ;;
571 Jun) E2FSPROGS_MONTH="June" ;;
572 Jul) E2FSPROGS_MONTH="July" ;;
573 Aug) E2FSPROGS_MONTH="August" ;;
574 Sep) E2FSPROGS_MONTH="September" ;;
575 Oct) E2FSPROGS_MONTH="October" ;;
576 Nov) E2FSPROGS_MONTH="November" ;;
577 Dec) E2FSPROGS_MONTH="December" ;;
578 *) echo "Unknown month $MONTH??" ;;
581 unset DATE MONTH YEAR
582 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
583 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
589 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
590 if test -f $ac_dir/install-sh; then
592 ac_install_sh="$ac_aux_dir/install-sh -c"
594 elif test -f $ac_dir/install.sh; then
596 ac_install_sh="$ac_aux_dir/install.sh -c"
600 if test -z "$ac_aux_dir"; then
601 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
603 ac_config_guess=$ac_aux_dir/config.guess
604 ac_config_sub=$ac_aux_dir/config.sub
605 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
608 # Make sure we can run config.sub.
609 if $ac_config_sub sun4 >/dev/null 2>&1; then :
610 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
613 echo $ac_n "checking host system type""... $ac_c" 1>&6
614 echo "configure:615: checking host system type" >&5
617 case "$host_alias" in
621 if host_alias=`$ac_config_guess`; then :
622 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
624 *) host_alias=$nonopt ;;
628 host=`$ac_config_sub $host_alias`
629 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
630 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
631 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
632 echo "$ac_t""$host" 1>&6
634 # Check whether --with-cc or --without-cc was given.
635 if test "${with_cc+set}" = set; then
637 echo "$ac_t""CC=$withval" 1>&6
640 if test -z "$CC" ; then CC=cc; fi
641 echo "$ac_t""CC defaults to $CC" 1>&6
645 # Check whether --with-linker or --without-linker was given.
646 if test "${with_linker+set}" = set; then
647 withval="$with_linker"
648 echo "$ac_t""LD=$withval" 1>&6
651 if test -z "$LD" ; then LD=$CC; fi
652 echo "$ac_t""LD defaults to $LD" 1>&6
656 # Check whether --with-ccopts or --without-ccopts was given.
657 if test "${with_ccopts+set}" = set; then
658 withval="$with_ccopts"
659 echo "$ac_t""CCOPTS is $withval" 1>&6
661 CFLAGS="$CFLAGS $withval"
669 # Check whether --with-ldopts or --without-ldopts was given.
670 if test "${with_ldopts+set}" = set; then
671 withval="$with_ldopts"
672 echo "$ac_t""LDFLAGS is $withval" 1>&6
678 # Check whether --with-usr-prefix or --without-usr-prefix was given.
679 if test "${with_usr_prefix+set}" = set; then
680 withval="$with_usr_prefix"
685 # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
686 if test "${enable_dll_shlibs+set}" = set; then
687 enableval="$enable_dll_shlibs"
688 if test "$enableval" = "no"
691 MAKEFILE_DLL=/dev/null
692 echo "Disabling DLL shared libraries"
695 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
698 echo "Enabling DLL shared libraries"
702 MAKEFILE_DLL=/dev/null
704 echo "Disabling DLL shared libraries by default"
710 # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
711 if test "${enable_elf_shlibs+set}" = set; then
712 enableval="$enable_elf_shlibs"
713 if test "$enableval" = "no"
716 MAKEFILE_ELF=/dev/null
717 echo "Disabling ELF shared libraries"
720 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
723 echo "Enabling ELF shared libraries"
727 MAKEFILE_ELF=/dev/null
729 echo "Disabling ELF shared libraries by default"
735 # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
736 if test "${enable_bsd_shlibs+set}" = set; then
737 enableval="$enable_bsd_shlibs"
738 if test "$enableval" = "no"
741 MAKEFILE_BSDLIB=/dev/null
742 echo "Disabling BSD shared libraries"
745 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
747 echo "Enabling BSD shared libraries"
751 MAKEFILE_BSDLIB=/dev/null
753 echo "Disabling BSD shared libraries by default"
759 # Check whether --enable-profile or --disable-profile was given.
760 if test "${enable_profile+set}" = set; then
761 enableval="$enable_profile"
762 if test "$enableval" = "no"
765 MAKEFILE_PROFILE=/dev/null
766 echo "Disabling profiling libraries"
769 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
770 PROFILED_LIB_EXT=_p.a
771 echo "Building profiling libraries"
776 MAKEFILE_PROFILE=/dev/null
777 echo "Disabling profiling libraries by default"
783 # Check whether --enable-checker or --disable-checker was given.
784 if test "${enable_checker+set}" = set; then
785 enableval="$enable_checker"
786 if test "$enableval" = "no"
789 MAKEFILE_CHECKER=/dev/null
790 echo "Disabling checker libraries"
793 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
794 echo "Building checker libraries"
799 MAKEFILE_CHECKER=/dev/null
800 echo "Disabling checker libraries by default"
809 # Check whether --enable-gcc-wall or --disable-gcc-wall was given.
810 if test "${enable_gcc_wall+set}" = set; then
811 enableval="$enable_gcc_wall"
812 if test "$enableval" = "no"
815 echo "Disabling GCC warnings"
818 echo "Enabling GCC warnings"
823 echo "Disabling GCC warnings by default"
828 # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
829 if test "${enable_dynamic_e2fsck+set}" = set; then
830 enableval="$enable_dynamic_e2fsck"
831 if test "$enableval" = "no"
834 echo "Building e2fsck statically"
837 echo "Building e2fsck dynamically"
842 echo "Building e2fsck statically by default"
847 # Check whether --enable-fsck or --disable-fsck was given.
848 if test "${enable_fsck+set}" = set; then
849 enableval="$enable_fsck"
850 if test "$enableval" = "no"
852 FSCK_PROG='' FSCK_MAN=''
853 echo "Not building fsck wrapper"
855 FSCK_PROG=fsck FSCK_MAN=fsck.8
856 echo "Building fsck wrapper"
862 FSCK_PROG='' FSCK_MAN=''
863 echo "Not building fsck wrapper by default"
866 FSCK_PROG=fsck FSCK_MAN=fsck.8
867 echo "Building fsck wrapper by default"
874 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
876 # Check whether --enable-old-bitops or --disable-old-bitops was given.
877 if test "${enable_old_bitops+set}" = set; then
878 enableval="$enable_old_bitops"
879 if test "$enableval" = "no"
881 echo "Using new (standard) bitmask operations"
883 cat >> confdefs.h <<\EOF
884 #define EXT2_OLD_BITOPS 1
887 echo "Using old (native) bitmask operations"
892 echo "Using standard bitmask operations by default"
897 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
898 echo "configure:899: checking whether ${MAKE-make} sets \${MAKE}" >&5
899 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
900 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
901 echo $ac_n "(cached) $ac_c" 1>&6
903 cat > conftestmake <<\EOF
905 @echo 'ac_maketemp="${MAKE}"'
907 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
908 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
909 if test -n "$ac_maketemp"; then
910 eval ac_cv_prog_make_${ac_make}_set=yes
912 eval ac_cv_prog_make_${ac_make}_set=no
916 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
917 echo "$ac_t""yes" 1>&6
920 echo "$ac_t""no" 1>&6
921 SET_MAKE="MAKE=${MAKE-make}"
924 # Extract the first word of "ln", so it can be a program name with args.
925 set dummy ln; ac_word=$2
926 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
927 echo "configure:928: checking for $ac_word" >&5
928 if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
929 echo $ac_n "(cached) $ac_c" 1>&6
933 ac_cv_path_LN="$LN" # Let the user override the test with a path.
936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
937 for ac_dir in $PATH; do
938 test -z "$ac_dir" && ac_dir=.
939 if test -f $ac_dir/$ac_word; then
940 ac_cv_path_LN="$ac_dir/$ac_word"
945 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
950 if test -n "$LN"; then
951 echo "$ac_t""$LN" 1>&6
953 echo "$ac_t""no" 1>&6
956 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
957 echo "configure:958: checking whether ln -s works" >&5
958 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
962 if ln -s X conftestdata 2>/dev/null
965 ac_cv_prog_LN_S="ln -s"
970 LN_S="$ac_cv_prog_LN_S"
971 if test "$ac_cv_prog_LN_S" = "ln -s"; then
972 echo "$ac_t""yes" 1>&6
974 echo "$ac_t""no" 1>&6
977 # Extract the first word of "mv", so it can be a program name with args.
978 set dummy mv; ac_word=$2
979 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
980 echo "configure:981: checking for $ac_word" >&5
981 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
982 echo $ac_n "(cached) $ac_c" 1>&6
986 ac_cv_path_MV="$MV" # Let the user override the test with a path.
989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
990 for ac_dir in $PATH; do
991 test -z "$ac_dir" && ac_dir=.
992 if test -f $ac_dir/$ac_word; then
993 ac_cv_path_MV="$ac_dir/$ac_word"
998 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1003 if test -n "$MV"; then
1004 echo "$ac_t""$MV" 1>&6
1006 echo "$ac_t""no" 1>&6
1009 # Extract the first word of "cp", so it can be a program name with args.
1010 set dummy cp; ac_word=$2
1011 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1012 echo "configure:1013: checking for $ac_word" >&5
1013 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1014 echo $ac_n "(cached) $ac_c" 1>&6
1018 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1021 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1022 for ac_dir in $PATH; do
1023 test -z "$ac_dir" && ac_dir=.
1024 if test -f $ac_dir/$ac_word; then
1025 ac_cv_path_CP="$ac_dir/$ac_word"
1030 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1035 if test -n "$CP"; then
1036 echo "$ac_t""$CP" 1>&6
1038 echo "$ac_t""no" 1>&6
1041 # Extract the first word of "rm", so it can be a program name with args.
1042 set dummy rm; ac_word=$2
1043 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1044 echo "configure:1045: checking for $ac_word" >&5
1045 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1046 echo $ac_n "(cached) $ac_c" 1>&6
1050 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1054 for ac_dir in $PATH; do
1055 test -z "$ac_dir" && ac_dir=.
1056 if test -f $ac_dir/$ac_word; then
1057 ac_cv_path_RM="$ac_dir/$ac_word"
1062 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1067 if test -n "$RM"; then
1068 echo "$ac_t""$RM" 1>&6
1070 echo "$ac_t""no" 1>&6
1073 # Extract the first word of "chmod", so it can be a program name with args.
1074 set dummy chmod; ac_word=$2
1075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1076 echo "configure:1077: checking for $ac_word" >&5
1077 if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
1078 echo $ac_n "(cached) $ac_c" 1>&6
1082 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
1085 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1086 for ac_dir in $PATH; do
1087 test -z "$ac_dir" && ac_dir=.
1088 if test -f $ac_dir/$ac_word; then
1089 ac_cv_path_CHMOD="$ac_dir/$ac_word"
1094 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
1098 CHMOD="$ac_cv_path_CHMOD"
1099 if test -n "$CHMOD"; then
1100 echo "$ac_t""$CHMOD" 1>&6
1102 echo "$ac_t""no" 1>&6
1105 # Extract the first word of "awk", so it can be a program name with args.
1106 set dummy awk; ac_word=$2
1107 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1108 echo "configure:1109: checking for $ac_word" >&5
1109 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1110 echo $ac_n "(cached) $ac_c" 1>&6
1114 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1118 for ac_dir in $PATH; do
1119 test -z "$ac_dir" && ac_dir=.
1120 if test -f $ac_dir/$ac_word; then
1121 ac_cv_path_AWK="$ac_dir/$ac_word"
1126 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
1130 AWK="$ac_cv_path_AWK"
1131 if test -n "$AWK"; then
1132 echo "$ac_t""$AWK" 1>&6
1134 echo "$ac_t""no" 1>&6
1137 # Extract the first word of "sed", so it can be a program name with args.
1138 set dummy sed; ac_word=$2
1139 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1140 echo "configure:1141: checking for $ac_word" >&5
1141 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1142 echo $ac_n "(cached) $ac_c" 1>&6
1146 ac_cv_path_SED="$SED" # Let the user override the test with a path.
1149 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1150 for ac_dir in $PATH; do
1151 test -z "$ac_dir" && ac_dir=.
1152 if test -f $ac_dir/$ac_word; then
1153 ac_cv_path_SED="$ac_dir/$ac_word"
1158 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1162 SED="$ac_cv_path_SED"
1163 if test -n "$SED"; then
1164 echo "$ac_t""$SED" 1>&6
1166 echo "$ac_t""no" 1>&6
1169 echo $ac_n "checking build system type""... $ac_c" 1>&6
1170 echo "configure:1171: checking build system type" >&5
1173 case "$build_alias" in
1176 NONE) build_alias=$host_alias ;;
1177 *) build_alias=$nonopt ;;
1181 build=`$ac_config_sub $build_alias`
1182 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1183 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1184 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1185 echo "$ac_t""$build" 1>&6
1187 if test $host != $build; then
1188 ac_tool_prefix=${host_alias}-
1193 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1194 set dummy ${ac_tool_prefix}ar; ac_word=$2
1195 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1196 echo "configure:1197: checking for $ac_word" >&5
1197 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1200 if test -n "$AR"; then
1201 ac_cv_prog_AR="$AR" # Let the user override the test.
1203 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1204 for ac_dir in $PATH; do
1205 test -z "$ac_dir" && ac_dir=.
1206 if test -f $ac_dir/$ac_word; then
1207 ac_cv_prog_AR="${ac_tool_prefix}ar"
1215 if test -n "$AR"; then
1216 echo "$ac_t""$AR" 1>&6
1218 echo "$ac_t""no" 1>&6
1222 if test -z "$ac_cv_prog_AR"; then
1223 if test -n "$ac_tool_prefix"; then
1224 # Extract the first word of "ar", so it can be a program name with args.
1225 set dummy ar; ac_word=$2
1226 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1227 echo "configure:1228: checking for $ac_word" >&5
1228 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1229 echo $ac_n "(cached) $ac_c" 1>&6
1231 if test -n "$AR"; then
1232 ac_cv_prog_AR="$AR" # Let the user override the test.
1234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1235 for ac_dir in $PATH; do
1236 test -z "$ac_dir" && ac_dir=.
1237 if test -f $ac_dir/$ac_word; then
1243 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1247 if test -n "$AR"; then
1248 echo "$ac_t""$AR" 1>&6
1250 echo "$ac_t""no" 1>&6
1258 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1259 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1260 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1261 echo "configure:1262: checking for $ac_word" >&5
1262 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1265 if test -n "$RANLIB"; then
1266 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1268 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1269 for ac_dir in $PATH; do
1270 test -z "$ac_dir" && ac_dir=.
1271 if test -f $ac_dir/$ac_word; then
1272 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1279 RANLIB="$ac_cv_prog_RANLIB"
1280 if test -n "$RANLIB"; then
1281 echo "$ac_t""$RANLIB" 1>&6
1283 echo "$ac_t""no" 1>&6
1287 if test -z "$ac_cv_prog_RANLIB"; then
1288 if test -n "$ac_tool_prefix"; then
1289 # Extract the first word of "ranlib", so it can be a program name with args.
1290 set dummy ranlib; ac_word=$2
1291 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1292 echo "configure:1293: checking for $ac_word" >&5
1293 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1294 echo $ac_n "(cached) $ac_c" 1>&6
1296 if test -n "$RANLIB"; then
1297 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1300 for ac_dir in $PATH; do
1301 test -z "$ac_dir" && ac_dir=.
1302 if test -f $ac_dir/$ac_word; then
1303 ac_cv_prog_RANLIB="ranlib"
1308 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1311 RANLIB="$ac_cv_prog_RANLIB"
1312 if test -n "$RANLIB"; then
1313 echo "$ac_t""$RANLIB" 1>&6
1315 echo "$ac_t""no" 1>&6
1323 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1324 set dummy ${ac_tool_prefix}strip; ac_word=$2
1325 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1326 echo "configure:1327: checking for $ac_word" >&5
1327 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1330 if test -n "$STRIP"; then
1331 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1333 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1334 for ac_dir in $PATH; do
1335 test -z "$ac_dir" && ac_dir=.
1336 if test -f $ac_dir/$ac_word; then
1337 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1344 STRIP="$ac_cv_prog_STRIP"
1345 if test -n "$STRIP"; then
1346 echo "$ac_t""$STRIP" 1>&6
1348 echo "$ac_t""no" 1>&6
1352 if test -z "$ac_cv_prog_STRIP"; then
1353 if test -n "$ac_tool_prefix"; then
1354 # Extract the first word of "strip", so it can be a program name with args.
1355 set dummy strip; ac_word=$2
1356 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1357 echo "configure:1358: checking for $ac_word" >&5
1358 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1361 if test -n "$STRIP"; then
1362 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1364 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1365 for ac_dir in $PATH; do
1366 test -z "$ac_dir" && ac_dir=.
1367 if test -f $ac_dir/$ac_word; then
1368 ac_cv_prog_STRIP="strip"
1373 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1376 STRIP="$ac_cv_prog_STRIP"
1377 if test -n "$STRIP"; then
1378 echo "$ac_t""$STRIP" 1>&6
1380 echo "$ac_t""no" 1>&6
1388 # Extract the first word of "gcc", so it can be a program name with args.
1389 set dummy gcc; ac_word=$2
1390 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1391 echo "configure:1392: checking for $ac_word" >&5
1392 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1395 if test -n "$CC"; then
1396 ac_cv_prog_CC="$CC" # Let the user override the test.
1398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1399 for ac_dir in $PATH; do
1400 test -z "$ac_dir" && ac_dir=.
1401 if test -f $ac_dir/$ac_word; then
1410 if test -n "$CC"; then
1411 echo "$ac_t""$CC" 1>&6
1413 echo "$ac_t""no" 1>&6
1416 if test -z "$CC"; then
1417 # Extract the first word of "cc", so it can be a program name with args.
1418 set dummy cc; ac_word=$2
1419 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1420 echo "configure:1421: checking for $ac_word" >&5
1421 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1424 if test -n "$CC"; then
1425 ac_cv_prog_CC="$CC" # Let the user override the test.
1427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1429 for ac_dir in $PATH; do
1430 test -z "$ac_dir" && ac_dir=.
1431 if test -f $ac_dir/$ac_word; then
1432 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1433 ac_prog_rejected=yes
1441 if test $ac_prog_rejected = yes; then
1442 # We found a bogon in the path, so make sure we never use it.
1443 set dummy $ac_cv_prog_CC
1445 if test $# -gt 0; then
1446 # We chose a different compiler from the bogus one.
1447 # However, it has the same basename, so the bogon will be chosen
1448 # first if we set CC to just the basename; use the full file name.
1450 set dummy "$ac_dir/$ac_word" "$@"
1458 if test -n "$CC"; then
1459 echo "$ac_t""$CC" 1>&6
1461 echo "$ac_t""no" 1>&6
1464 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1467 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1468 echo "configure:1469: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1471 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1472 ac_cpp='$CPP $CPPFLAGS'
1473 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1474 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1475 cross_compiling=$ac_cv_prog_cc_cross
1477 cat > conftest.$ac_ext <<EOF
1478 #line 1479 "configure"
1479 #include "confdefs.h"
1482 if { (eval echo configure:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1483 ac_cv_prog_cc_works=yes
1484 # If we can't run a trivial program, we are probably using a cross compiler.
1485 if (./conftest; exit) 2>/dev/null; then
1486 ac_cv_prog_cc_cross=no
1488 ac_cv_prog_cc_cross=yes
1491 echo "configure: failed program was:" >&5
1492 cat conftest.$ac_ext >&5
1493 ac_cv_prog_cc_works=no
1497 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1498 if test $ac_cv_prog_cc_works = no; then
1499 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1501 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1502 echo "configure:1503: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1503 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1504 cross_compiling=$ac_cv_prog_cc_cross
1506 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1507 echo "configure:1508: checking whether we are using GNU C" >&5
1508 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1511 cat > conftest.c <<EOF
1516 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1523 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1525 if test $ac_cv_prog_gcc = yes; then
1527 ac_test_CFLAGS="${CFLAGS+set}"
1528 ac_save_CFLAGS="$CFLAGS"
1530 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1531 echo "configure:1532: checking whether ${CC-cc} accepts -g" >&5
1532 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1533 echo $ac_n "(cached) $ac_c" 1>&6
1535 echo 'void f(){}' > conftest.c
1536 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1545 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1546 if test "$ac_test_CFLAGS" = set; then
1547 CFLAGS="$ac_save_CFLAGS"
1548 elif test $ac_cv_prog_cc_g = yes; then
1555 test "${CFLAGS+set}" = set || CFLAGS="-g"
1558 # Find a good install program. We prefer a C program (faster),
1559 # so one script is as good as another. But avoid the broken or
1560 # incompatible versions:
1561 # SysV /etc/install, /usr/sbin/install
1562 # SunOS /usr/etc/install
1563 # IRIX /sbin/install
1565 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1566 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1567 # ./install, which can be erroneously created by make from ./install.sh.
1568 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1569 echo "configure:1570: checking for a BSD compatible install" >&5
1570 if test -z "$INSTALL"; then
1571 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1572 echo $ac_n "(cached) $ac_c" 1>&6
1574 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1575 for ac_dir in $PATH; do
1576 # Account for people who put trailing slashes in PATH elements.
1578 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1580 # OSF1 and SCO ODT 3.0 have their own names for install.
1581 for ac_prog in ginstall installbsd scoinst install; do
1582 if test -f $ac_dir/$ac_prog; then
1583 if test $ac_prog = install &&
1584 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1585 # AIX install. It has an incompatible calling convention.
1586 # OSF/1 installbsd also uses dspmsg, but is usable.
1589 ac_cv_path_install="$ac_dir/$ac_prog -c"
1600 if test "${ac_cv_path_install+set}" = set; then
1601 INSTALL="$ac_cv_path_install"
1603 # As a last resort, use the slow shell script. We don't cache a
1604 # path for INSTALL within a source directory, because that will
1605 # break other packages using the cache if that directory is
1606 # removed, or if the path is relative.
1607 INSTALL="$ac_install_sh"
1610 echo "$ac_t""$INSTALL" 1>&6
1612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1613 # It thinks the first close brace ends the variable substitution.
1614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1616 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1619 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1620 echo "configure:1621: checking how to run the C preprocessor" >&5
1621 # On Suns, sometimes $CPP names a directory.
1622 if test -n "$CPP" && test -d "$CPP"; then
1625 if test -z "$CPP"; then
1626 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1627 echo $ac_n "(cached) $ac_c" 1>&6
1629 # This must be in double quotes, not single quotes, because CPP may get
1630 # substituted into the Makefile and "${CC-cc}" will confuse make.
1632 # On the NeXT, cc -E runs the code through the compiler's parser,
1633 # not just through cpp.
1634 cat > conftest.$ac_ext <<EOF
1635 #line 1636 "configure"
1636 #include "confdefs.h"
1640 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1641 { (eval echo configure:1642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1642 ac_err=`grep -v '^ *+' conftest.out`
1643 if test -z "$ac_err"; then
1647 echo "configure: failed program was:" >&5
1648 cat conftest.$ac_ext >&5
1650 CPP="${CC-cc} -E -traditional-cpp"
1651 cat > conftest.$ac_ext <<EOF
1652 #line 1653 "configure"
1653 #include "confdefs.h"
1657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1658 { (eval echo configure:1659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1659 ac_err=`grep -v '^ *+' conftest.out`
1660 if test -z "$ac_err"; then
1664 echo "configure: failed program was:" >&5
1665 cat conftest.$ac_ext >&5
1672 ac_cv_prog_CPP="$CPP"
1674 CPP="$ac_cv_prog_CPP"
1676 ac_cv_prog_CPP="$CPP"
1678 echo "$ac_t""$CPP" 1>&6
1680 for ac_hdr in stdlib.h unistd.h stdarg.h errno.h mntent.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
1682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1684 echo "configure:1685: checking for $ac_hdr" >&5
1685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1686 echo $ac_n "(cached) $ac_c" 1>&6
1688 cat > conftest.$ac_ext <<EOF
1689 #line 1690 "configure"
1690 #include "confdefs.h"
1693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1694 { (eval echo configure:1695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1695 ac_err=`grep -v '^ *+' conftest.out`
1696 if test -z "$ac_err"; then
1698 eval "ac_cv_header_$ac_safe=yes"
1701 echo "configure: failed program was:" >&5
1702 cat conftest.$ac_ext >&5
1704 eval "ac_cv_header_$ac_safe=no"
1708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1709 echo "$ac_t""yes" 1>&6
1710 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1711 cat >> confdefs.h <<EOF
1712 #define $ac_tr_hdr 1
1716 echo "$ac_t""no" 1>&6
1720 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1721 echo "configure:1722: checking for vprintf" >&5
1722 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1723 echo $ac_n "(cached) $ac_c" 1>&6
1725 cat > conftest.$ac_ext <<EOF
1726 #line 1727 "configure"
1727 #include "confdefs.h"
1728 /* System header to define __stub macros and hopefully few prototypes,
1729 which can conflict with char vprintf(); below. */
1731 /* Override any gcc2 internal prototype to avoid an error. */
1732 /* We use char because int might match the return type of a gcc2
1733 builtin and then its argument prototype would still apply. */
1738 /* The GNU C library defines this for functions which it implements
1739 to always fail with ENOSYS. Some functions are actually named
1740 something starting with __ and the normal name is an alias. */
1741 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1749 if { (eval echo configure:1750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1751 eval "ac_cv_func_vprintf=yes"
1753 echo "configure: failed program was:" >&5
1754 cat conftest.$ac_ext >&5
1756 eval "ac_cv_func_vprintf=no"
1761 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1762 echo "$ac_t""yes" 1>&6
1763 cat >> confdefs.h <<\EOF
1764 #define HAVE_VPRINTF 1
1768 echo "$ac_t""no" 1>&6
1771 if test "$ac_cv_func_vprintf" != yes; then
1772 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1773 echo "configure:1774: checking for _doprnt" >&5
1774 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1777 cat > conftest.$ac_ext <<EOF
1778 #line 1779 "configure"
1779 #include "confdefs.h"
1780 /* System header to define __stub macros and hopefully few prototypes,
1781 which can conflict with char _doprnt(); below. */
1783 /* Override any gcc2 internal prototype to avoid an error. */
1784 /* We use char because int might match the return type of a gcc2
1785 builtin and then its argument prototype would still apply. */
1790 /* The GNU C library defines this for functions which it implements
1791 to always fail with ENOSYS. Some functions are actually named
1792 something starting with __ and the normal name is an alias. */
1793 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1801 if { (eval echo configure:1802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1803 eval "ac_cv_func__doprnt=yes"
1805 echo "configure: failed program was:" >&5
1806 cat conftest.$ac_ext >&5
1808 eval "ac_cv_func__doprnt=no"
1813 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1814 echo "$ac_t""yes" 1>&6
1815 cat >> confdefs.h <<\EOF
1816 #define HAVE_DOPRNT 1
1820 echo "$ac_t""no" 1>&6
1825 echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
1826 echo "configure:1827: checking whether struct dirent has a d_namlen field" >&5
1827 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
1828 echo $ac_n "(cached) $ac_c" 1>&6
1830 cat > conftest.$ac_ext <<EOF
1831 #line 1832 "configure"
1832 #include "confdefs.h"
1833 #include <sys/types.h>
1836 struct dirent de; de.d_namlen = 0;
1839 if { (eval echo configure:1840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1841 e2fsprogs_cv_struct_d_namlen=yes
1843 echo "configure: failed program was:" >&5
1844 cat conftest.$ac_ext >&5
1846 e2fsprogs_cv_struct_d_namlen=no
1851 echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
1852 if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
1853 cat >> confdefs.h <<\EOF
1854 #define HAVE_DIRENT_NAMLEN 1
1858 echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
1859 echo "configure:1860: checking whether llseek declared in unistd.h" >&5
1860 if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1863 cat > conftest.$ac_ext <<EOF
1864 #line 1865 "configure"
1865 #include "confdefs.h"
1868 extern int llseek(int);
1871 if { (eval echo configure:1872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1873 e2fsprogs_cv_have_llseek_prototype=no
1875 echo "configure: failed program was:" >&5
1876 cat conftest.$ac_ext >&5
1878 e2fsprogs_cv_have_llseek_prototype=yes
1883 echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
1884 if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
1885 cat >> confdefs.h <<\EOF
1886 #define HAVE_LLSEEK_PROTOTYPE 1
1890 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
1891 # if cross-compiling, with no cached values, just assume something common.
1892 ac_cv_sizeof_short=2
1895 ac_cv_sizeof_long_long=0
1896 echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4" 1>&2
1898 echo $ac_n "checking size of short""... $ac_c" 1>&6
1899 echo "configure:1900: checking size of short" >&5
1900 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1901 echo $ac_n "(cached) $ac_c" 1>&6
1903 if test "$cross_compiling" = yes; then
1904 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1906 cat > conftest.$ac_ext <<EOF
1907 #line 1908 "configure"
1908 #include "confdefs.h"
1912 FILE *f=fopen("conftestval", "w");
1914 fprintf(f, "%d\n", sizeof(short));
1918 if { (eval echo configure:1919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1920 ac_cv_sizeof_short=`cat conftestval`
1922 echo "configure: failed program was:" >&5
1923 cat conftest.$ac_ext >&5
1925 ac_cv_sizeof_short=0
1931 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1932 cat >> confdefs.h <<EOF
1933 #define SIZEOF_SHORT $ac_cv_sizeof_short
1937 echo $ac_n "checking size of int""... $ac_c" 1>&6
1938 echo "configure:1939: checking size of int" >&5
1939 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1942 if test "$cross_compiling" = yes; then
1943 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1945 cat > conftest.$ac_ext <<EOF
1946 #line 1947 "configure"
1947 #include "confdefs.h"
1951 FILE *f=fopen("conftestval", "w");
1953 fprintf(f, "%d\n", sizeof(int));
1957 if { (eval echo configure:1958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1959 ac_cv_sizeof_int=`cat conftestval`
1961 echo "configure: failed program was:" >&5
1962 cat conftest.$ac_ext >&5
1970 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1971 cat >> confdefs.h <<EOF
1972 #define SIZEOF_INT $ac_cv_sizeof_int
1976 echo $ac_n "checking size of long""... $ac_c" 1>&6
1977 echo "configure:1978: checking size of long" >&5
1978 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1979 echo $ac_n "(cached) $ac_c" 1>&6
1981 if test "$cross_compiling" = yes; then
1982 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1984 cat > conftest.$ac_ext <<EOF
1985 #line 1986 "configure"
1986 #include "confdefs.h"
1990 FILE *f=fopen("conftestval", "w");
1992 fprintf(f, "%d\n", sizeof(long));
1996 if { (eval echo configure:1997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1998 ac_cv_sizeof_long=`cat conftestval`
2000 echo "configure: failed program was:" >&5
2001 cat conftest.$ac_ext >&5
2009 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2010 cat >> confdefs.h <<EOF
2011 #define SIZEOF_LONG $ac_cv_sizeof_long
2015 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2016 echo "configure:2017: checking size of long long" >&5
2017 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2018 echo $ac_n "(cached) $ac_c" 1>&6
2020 if test "$cross_compiling" = yes; then
2021 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2023 cat > conftest.$ac_ext <<EOF
2024 #line 2025 "configure"
2025 #include "confdefs.h"
2029 FILE *f=fopen("conftestval", "w");
2031 fprintf(f, "%d\n", sizeof(long long));
2035 if { (eval echo configure:2036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2037 ac_cv_sizeof_long_long=`cat conftestval`
2039 echo "configure: failed program was:" >&5
2040 cat conftest.$ac_ext >&5
2042 ac_cv_sizeof_long_long=0
2048 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2049 cat >> confdefs.h <<EOF
2050 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2054 SIZEOF_SHORT=$ac_cv_sizeof_short
2055 SIZEOF_INT=$ac_cv_sizeof_int
2056 SIZEOF_LONG=$ac_cv_sizeof_long
2057 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
2062 echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
2063 echo "configure:2064: checking whether struct stat has a st_flags field" >&5
2064 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2067 cat > conftest.$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2070 #include <sys/stat.h>
2072 struct stat stat; stat.st_flags = 0;
2075 if { (eval echo configure:2076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2077 e2fsprogs_cv_struct_st_flags=yes
2079 echo "configure: failed program was:" >&5
2080 cat conftest.$ac_ext >&5
2082 e2fsprogs_cv_struct_st_flags=no
2087 echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
2088 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
2089 cat >> confdefs.h <<\EOF
2090 #define HAVE_STAT_FLAGS 1
2094 for ac_func in chflags getrusage llseek strdup getmntinfo strcasecmp srandom fchown
2096 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2097 echo "configure:2098: checking for $ac_func" >&5
2098 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2101 cat > conftest.$ac_ext <<EOF
2102 #line 2103 "configure"
2103 #include "confdefs.h"
2104 /* System header to define __stub macros and hopefully few prototypes,
2105 which can conflict with char $ac_func(); below. */
2107 /* Override any gcc2 internal prototype to avoid an error. */
2108 /* We use char because int might match the return type of a gcc2
2109 builtin and then its argument prototype would still apply. */
2114 /* The GNU C library defines this for functions which it implements
2115 to always fail with ENOSYS. Some functions are actually named
2116 something starting with __ and the normal name is an alias. */
2117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2125 if { (eval echo configure:2126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2127 eval "ac_cv_func_$ac_func=yes"
2129 echo "configure: failed program was:" >&5
2130 cat conftest.$ac_ext >&5
2132 eval "ac_cv_func_$ac_func=no"
2137 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2138 echo "$ac_t""yes" 1>&6
2139 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2140 cat >> confdefs.h <<EOF
2141 #define $ac_tr_func 1
2145 echo "$ac_t""no" 1>&6
2149 echo $ac_n "checking ino_t defined by sys/types.h""... $ac_c" 1>&6
2150 echo "configure:2151: checking ino_t defined by sys/types.h" >&5
2151 if eval "test \"`echo '$''{'e2fsprogs_cv_ino_t'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2154 cat > conftest.$ac_ext <<EOF
2155 #line 2156 "configure"
2156 #include "confdefs.h"
2157 #include <sys/types.h>
2162 if { (eval echo configure:2163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2164 e2fsprogs_cv_ino_t=yes
2166 echo "configure: failed program was:" >&5
2167 cat conftest.$ac_ext >&5
2169 e2fsprogs_cv_ino_t=no
2174 echo "$ac_t""$e2fsprogs_cv_ino_t" 1>&6
2175 if test "$e2fsprogs_cv_ino_t" = yes; then
2176 cat >> confdefs.h <<\EOF
2177 #define HAVE_INO_T 1
2181 ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
2182 echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
2183 echo "configure:2184: checking for linux/fs.h" >&5
2184 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2185 echo $ac_n "(cached) $ac_c" 1>&6
2187 cat > conftest.$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 #include <linux/fs.h>
2192 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2193 { (eval echo configure:2194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2194 ac_err=`grep -v '^ *+' conftest.out`
2195 if test -z "$ac_err"; then
2197 eval "ac_cv_header_$ac_safe=yes"
2200 echo "configure: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2203 eval "ac_cv_header_$ac_safe=no"
2207 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2208 echo "$ac_t""yes" 1>&6
2211 echo "$ac_t""no" 1>&6
2215 if test "$linux_headers" = yes; then
2216 cat >> confdefs.h <<\EOF
2217 #define HAVE_LINUX_FS_H 1
2221 LINUX_INCLUDE='-I$(top_srcdir)/include -I$(top_builddir)/include'
2222 # Use this include directory with test compiles in the configure script too.
2223 CPPFLAGS="$CPPFLAGS -I$srcdir/include -I./include"
2227 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2228 echo "configure:2229: checking for socket in -lsocket" >&5
2229 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2231 echo $ac_n "(cached) $ac_c" 1>&6
2233 ac_save_LIBS="$LIBS"
2234 LIBS="-lsocket $LIBS"
2235 cat > conftest.$ac_ext <<EOF
2236 #line 2237 "configure"
2237 #include "confdefs.h"
2238 /* Override any gcc2 internal prototype to avoid an error. */
2239 /* We use char because int might match the return type of a gcc2
2240 builtin and then its argument prototype would still apply. */
2247 if { (eval echo configure:2248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2249 eval "ac_cv_lib_$ac_lib_var=yes"
2251 echo "configure: failed program was:" >&5
2252 cat conftest.$ac_ext >&5
2254 eval "ac_cv_lib_$ac_lib_var=no"
2257 LIBS="$ac_save_LIBS"
2260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2261 echo "$ac_t""yes" 1>&6
2264 echo "$ac_t""no" 1>&6
2268 echo $ac_n "checking for optreset""... $ac_c" 1>&6
2269 echo "configure:2270: checking for optreset" >&5
2270 if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2273 cat > conftest.$ac_ext <<EOF
2274 #line 2275 "configure"
2275 #include "confdefs.h"
2278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2279 egrep "optreset" >/dev/null 2>&1; then
2281 ac_cv_have_optreset=yes
2284 ac_cv_have_optreset=no
2289 echo "$ac_t""$ac_cv_have_optreset" 1>&6
2290 if test $ac_cv_have_optreset = yes; then
2291 cat >> confdefs.h <<\EOF
2292 #define HAVE_OPTRESET 1
2296 echo $ac_n "checking whether the ext2 ioctls compile""... $ac_c" 1>&6
2297 echo "configure:2298: checking whether the ext2 ioctls compile" >&5
2298 if eval "test \"`echo '$''{'e2fsprogs_cv_ioctl_ext2'+set}'`\" = set"; then
2299 echo $ac_n "(cached) $ac_c" 1>&6
2301 cat > conftest.$ac_ext <<EOF
2302 #line 2303 "configure"
2303 #include "confdefs.h"
2304 #include <linux/ext2_fs.h>
2305 #include <sys/ioctl.h>
2307 ioctl (0, EXT2_IOC_SETVERSION, 0);
2310 if { (eval echo configure:2311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2312 e2fsprogs_cv_ioctl_ext2=yes
2314 echo "configure: failed program was:" >&5
2315 cat conftest.$ac_ext >&5
2317 e2fsprogs_cv_ioctl_ext2=no
2322 echo "$ac_t""$e2fsprogs_cv_ioctl_ext2" 1>&6
2323 if test "$e2fsprogs_cv_ioctl_ext2" = yes; then
2324 cat >> confdefs.h <<\EOF
2325 #define HAVE_EXT2_IOCTLS 1
2331 if test "$prefix" = NONE ; then
2332 usr_prefix="\${prefix}/usr";
2333 echo "On $host_os systems, usr_prefix defaults to $usr_prefix"
2337 if test "$usr_prefix" = NONE ; then
2338 usr_prefix="\${prefix}"
2343 if test "$prefix" = NONE ; then
2345 echo "On $host_os systems, prefix defaults to ''"
2349 echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
2350 echo "configure:2351: checking whether linker accepts -static" >&5
2351 if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
2352 echo $ac_n "(cached) $ac_c" 1>&6
2354 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
2355 cat > conftest.$ac_ext <<EOF
2356 #line 2357 "configure"
2357 #include "confdefs.h"
2363 if { (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2365 ac_cv_e2fsprogs_use_static=yes
2367 echo "configure: failed program was:" >&5
2368 cat conftest.$ac_ext >&5
2370 ac_cv_e2fsprogs_use_static=no
2373 LDFLAGS=$SAVE_LDFLAGS
2376 echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
2378 if test $ac_cv_e2fsprogs_use_static = yes; then
2379 LDFLAG_STATIC=-static
2382 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
2383 ET_DIR=`cd ${srcdir}/lib/et; pwd`
2386 if test "$cross_compiling" = yes ; then
2392 DO_SUBSTITUTE_SCRIPT=$srcdir/lib/do_substitute
2394 test -d lib || mkdir lib
2395 test -d include || mkdir include
2396 test -d include/linux || mkdir include/linux
2398 if test -d ${srcdir}/resize ; then
2399 rmakefile=resize/Makefile
2402 cat > confcache <<\EOF
2403 # This file is a shell script that caches the results of configure
2404 # tests run on this system so they can be shared between configure
2405 # scripts and configure runs. It is not useful on other systems.
2406 # If it contains results you don't want to keep, you may remove or edit it.
2408 # By default, configure uses ./config.cache as the cache file,
2409 # creating it if it does not exist already. You can give configure
2410 # the --cache-file=FILE option to use a different cache file; that is
2411 # what configure does when it calls configure scripts in
2412 # subdirectories, so they share the cache.
2413 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2414 # config.status only pays attention to the cache file if you give it the
2415 # --recheck option to rerun configure.
2418 # The following way of writing the cache mishandles newlines in values,
2419 # but we know of no workaround that is simple, portable, and efficient.
2420 # So, don't put newlines in cache variables' values.
2421 # Ultrix sh set writes to stderr and can't be redirected directly,
2422 # and sets the high bit in the cache file unless we assign to the vars.
2424 case `(ac_space=' '; set) 2>&1` in
2426 # `set' does not quote correctly, so add quotes (double-quote substitution
2427 # turns \\\\ into \\, and sed turns \\ into \).
2429 -e "s/'/'\\\\''/g" \
2430 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2433 # `set' quotes correctly as required by POSIX, so do not add quotes.
2434 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2437 if cmp -s $cache_file confcache; then
2440 if test -w $cache_file; then
2441 echo "updating cache $cache_file"
2442 cat confcache > $cache_file
2444 echo "not updating unwritable cache $cache_file"
2449 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2451 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2452 # Let make expand exec_prefix.
2453 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2455 # Any assignment to VPATH causes Sun make to only execute
2456 # the first set of double-colon rules, so remove it if not needed.
2457 # If there is a colon in the path, we need to keep it.
2458 if test "x$srcdir" = x.; then
2459 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2462 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2464 # Transform confdefs.h into DEFS.
2465 # Protect against shell expansion while executing Makefile rules.
2466 # Protect against Makefile macro expansion.
2467 cat > conftest.defs <<\EOF
2468 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2469 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2474 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2478 # Without the "./", some shells look in PATH for config.status.
2479 : ${CONFIG_STATUS=./config.status}
2481 echo creating $CONFIG_STATUS
2482 rm -f $CONFIG_STATUS
2483 cat > $CONFIG_STATUS <<EOF
2485 # Generated automatically by configure.
2486 # Run this file to recreate the current configuration.
2487 # This directory was configured as follows,
2488 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2490 # $0 $ac_configure_args
2492 # Compiler output produced by configure, useful for debugging
2493 # configure, is in ./config.log if it exists.
2495 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2498 case "\$ac_option" in
2499 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2500 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2501 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2502 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2503 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2505 -help | --help | --hel | --he | --h)
2506 echo "\$ac_cs_usage"; exit 0 ;;
2507 *) echo "\$ac_cs_usage"; exit 1 ;;
2511 ac_given_srcdir=$srcdir
2512 ac_given_INSTALL="$INSTALL"
2514 trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
2515 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
2516 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
2517 tests/progs/Makefile $rmakefile doc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2519 cat >> $CONFIG_STATUS <<EOF
2521 # Protect against being on the right side of a sed subst in config.status.
2522 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2523 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2526 s%@CFLAGS@%$CFLAGS%g
2527 s%@CPPFLAGS@%$CPPFLAGS%g
2528 s%@CXXFLAGS@%$CXXFLAGS%g
2530 s%@LDFLAGS@%$LDFLAGS%g
2532 s%@exec_prefix@%$exec_prefix%g
2533 s%@prefix@%$prefix%g
2534 s%@program_transform_name@%$program_transform_name%g
2535 s%@bindir@%$bindir%g
2536 s%@sbindir@%$sbindir%g
2537 s%@libexecdir@%$libexecdir%g
2538 s%@datadir@%$datadir%g
2539 s%@sysconfdir@%$sysconfdir%g
2540 s%@sharedstatedir@%$sharedstatedir%g
2541 s%@localstatedir@%$localstatedir%g
2542 s%@libdir@%$libdir%g
2543 s%@includedir@%$includedir%g
2544 s%@oldincludedir@%$oldincludedir%g
2545 s%@infodir@%$infodir%g
2546 s%@mandir@%$mandir%g
2547 /@MCONFIG@/r $MCONFIG
2549 s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
2550 s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
2551 s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
2553 s%@host_alias@%$host_alias%g
2554 s%@host_cpu@%$host_cpu%g
2555 s%@host_vendor@%$host_vendor%g
2556 s%@host_os@%$host_os%g
2559 s%@CCOPTS@%$CCOPTS%g
2560 s%@DLL_CMT@%$DLL_CMT%g
2561 /@MAKEFILE_DLL@/r $MAKEFILE_DLL
2563 s%@ELF_CMT@%$ELF_CMT%g
2564 /@MAKEFILE_ELF@/r $MAKEFILE_ELF
2566 s%@BSDLIB_CMT@%$BSDLIB_CMT%g
2567 /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
2568 s%@MAKEFILE_BSDLIB@%%g
2569 s%@PROFILE_CMT@%$PROFILE_CMT%g
2570 /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
2571 s%@MAKEFILE_PROFILE@%%g
2572 s%@CHECKER_CMT@%$CHECKER_CMT%g
2573 /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
2574 s%@MAKEFILE_CHECKER@%%g
2575 s%@LIB_EXT@%$LIB_EXT%g
2576 s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
2577 s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
2579 s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
2580 s%@FSCK_PROG@%$FSCK_PROG%g
2581 s%@FSCK_MAN@%$FSCK_MAN%g
2582 /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
2583 s%@MAKEFILE_LIBRARY@%%g
2584 s%@BINARY_TYPE@%$BINARY_TYPE%g
2585 s%@SET_MAKE@%$SET_MAKE%g
2595 s%@build_alias@%$build_alias%g
2596 s%@build_cpu@%$build_cpu%g
2597 s%@build_vendor@%$build_vendor%g
2598 s%@build_os@%$build_os%g
2600 s%@RANLIB@%$RANLIB%g
2602 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2603 s%@INSTALL_DATA@%$INSTALL_DATA%g
2605 s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
2606 s%@SIZEOF_INT@%$SIZEOF_INT%g
2607 s%@SIZEOF_LONG@%$SIZEOF_LONG%g
2608 s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
2609 s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
2610 s%@SOCKET_LIB@%$SOCKET_LIB%g
2611 s%@usr_prefix@%$usr_prefix%g
2612 s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
2613 s%@SS_DIR@%$SS_DIR%g
2614 s%@ET_DIR@%$ET_DIR%g
2615 s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
2616 /@DO_SUBSTITUTE_SCRIPT@/r $DO_SUBSTITUTE_SCRIPT
2617 s%@DO_SUBSTITUTE_SCRIPT@%%g
2622 cat >> $CONFIG_STATUS <<\EOF
2624 # Split the substitutions into bite-sized pieces for seds with
2625 # small command number limits, like on Digital OSF/1 and HP-UX.
2626 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2627 ac_file=1 # Number of current file.
2628 ac_beg=1 # First line for current file.
2629 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2632 while $ac_more_lines; do
2633 if test $ac_beg -gt 1; then
2634 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2636 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2638 if test ! -s conftest.s$ac_file; then
2640 rm -f conftest.s$ac_file
2642 if test -z "$ac_sed_cmds"; then
2643 ac_sed_cmds="sed -f conftest.s$ac_file"
2645 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2647 ac_file=`expr $ac_file + 1`
2649 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2652 if test -z "$ac_sed_cmds"; then
2657 cat >> $CONFIG_STATUS <<EOF
2659 CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
2660 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
2661 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
2662 tests/progs/Makefile $rmakefile doc/Makefile"}
2664 cat >> $CONFIG_STATUS <<\EOF
2665 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2666 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2668 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2669 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2670 *) ac_file_in="${ac_file}.in" ;;
2673 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2675 # Remove last slash and all that follows it. Not all systems have dirname.
2676 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2677 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2678 # The file is in a subdirectory.
2679 test ! -d "$ac_dir" && mkdir "$ac_dir"
2680 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2681 # A "../" for each directory in $ac_dir_suffix.
2682 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2684 ac_dir_suffix= ac_dots=
2687 case "$ac_given_srcdir" in
2689 if test -z "$ac_dots"; then top_srcdir=.
2690 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2691 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2693 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2694 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2697 case "$ac_given_INSTALL" in
2698 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2699 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2702 echo creating "$ac_file"
2704 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2706 *Makefile*) ac_comsub="1i\\
2707 # $configure_input" ;;
2711 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2713 s%@configure_input@%$configure_input%g
2714 s%@srcdir@%$srcdir%g
2715 s%@top_srcdir@%$top_srcdir%g
2716 s%@INSTALL@%$INSTALL%g
2717 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2722 cat >> $CONFIG_STATUS <<EOF
2725 cat >> $CONFIG_STATUS <<\EOF
2729 chmod +x $CONFIG_STATUS
2730 rm -fr confdefs* $ac_clean_files
2731 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1