3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.4
5 # Copyright (C) 1992, 1993, 1994 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 --enable-dll-shlibs select DLL libraries"
17 --enable-elf-shlibs select ELF shared libraries"
19 --enable-bsd-shlibs select BSD shared libraries"
21 --enable-profile build profiling libraries"
23 --enable-checker build checker libraries"
25 --enable-gcc-wall enable GCC anal warnings"
27 # Initialize some variables set by options.
28 # The variables have the same names as the options, with
29 # dashes changed to underlines.
31 cache_file=./config.cache
40 program_transform_name=s,x,x,
49 # Initialize some other variables.
56 # If the previous option needs an argument, assign it.
57 if test -n "$ac_prev"; then
58 eval "$ac_prev=\$ac_option"
64 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
68 # Accept the important Cygnus configure options, so we can diagnose typos.
72 -build | --build | --buil | --bui | --bu | --b)
74 -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
77 -cache-file | --cache-file | --cache-fil | --cache-fi \
78 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
80 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
81 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
82 cache_file="$ac_optarg" ;;
84 -disable-* | --disable-*)
85 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
86 # Reject names that are not valid shell variable names.
87 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
88 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
90 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
91 eval "enable_${ac_feature}=no" ;;
93 -enable-* | --enable-*)
94 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
95 # Reject names that are not valid shell variable names.
96 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
97 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
99 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
104 eval "enable_${ac_feature}='$ac_optarg'" ;;
106 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
107 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
108 | --exec | --exe | --ex)
109 ac_prev=exec_prefix ;;
110 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
111 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
112 | --exec=* | --exe=* | --ex=*)
113 exec_prefix="$ac_optarg" ;;
115 -gas | --gas | --ga | --g)
116 # Obsolete; use --with-gas.
119 -help | --help | --hel | --he)
120 # Omit some internal or obsolete options to make the list less imposing.
121 # This message is too long to be a string in the A/UX 3.1 sh.
123 Usage: configure [options] [host]
124 Options: [defaults in brackets after descriptions]
126 --cache-file=FILE cache test results in FILE
127 --help print this message
128 --no-create do not create output files
129 --quiet, --silent do not print \`checking...' messages
130 --version print the version of autoconf that created configure
131 Directory and file names:
132 --prefix=PREFIX install architecture-independent files in PREFIX
134 --exec-prefix=PREFIX install architecture-dependent files in PREFIX
136 --srcdir=DIR find the sources in DIR [configure dir or ..]
137 --program-prefix=PREFIX prepend PREFIX to installed program names
138 --program-suffix=SUFFIX append SUFFIX to installed program names
139 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
141 --build=BUILD configure for building on BUILD [BUILD=HOST]
142 --host=HOST configure for HOST [guessed]
143 --target=TARGET configure for TARGET [TARGET=HOST]
144 Features and packages:
145 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
146 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
147 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
148 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
149 --x-includes=DIR X include files are in DIR
150 --x-libraries=DIR X library files are in DIR
151 --enable and --with options recognized:$ac_help
155 -host | --host | --hos | --ho)
157 -host=* | --host=* | --hos=* | --ho=*)
161 # Obsolete; use --without-fp.
164 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
168 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
169 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
172 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
174 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
175 prefix="$ac_optarg" ;;
177 -program-prefix | --program-prefix | --program-prefi | --program-pref \
178 | --program-pre | --program-pr | --program-p)
179 ac_prev=program_prefix ;;
180 -program-prefix=* | --program-prefix=* | --program-prefi=* \
181 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
182 program_prefix="$ac_optarg" ;;
184 -program-suffix | --program-suffix | --program-suffi | --program-suff \
185 | --program-suf | --program-su | --program-s)
186 ac_prev=program_suffix ;;
187 -program-suffix=* | --program-suffix=* | --program-suffi=* \
188 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
189 program_suffix="$ac_optarg" ;;
191 -program-transform-name | --program-transform-name \
192 | --program-transform-nam | --program-transform-na \
193 | --program-transform-n | --program-transform- \
194 | --program-transform | --program-transfor \
195 | --program-transfo | --program-transf \
196 | --program-trans | --program-tran \
197 | --progr-tra | --program-tr | --program-t)
198 ac_prev=program_transform_name ;;
199 -program-transform-name=* | --program-transform-name=* \
200 | --program-transform-nam=* | --program-transform-na=* \
201 | --program-transform-n=* | --program-transform-=* \
202 | --program-transform=* | --program-transfor=* \
203 | --program-transfo=* | --program-transf=* \
204 | --program-trans=* | --program-tran=* \
205 | --progr-tra=* | --program-tr=* | --program-t=*)
206 program_transform_name="$ac_optarg" ;;
208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
209 | -silent | --silent | --silen | --sile | --sil)
212 -site | --site | --sit)
214 -site=* | --site=* | --sit=*)
217 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
219 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
220 srcdir="$ac_optarg" ;;
222 -target | --target | --targe | --targ | --tar | --ta | --t)
224 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
225 target="$ac_optarg" ;;
227 -v | -verbose | --verbose | --verbos | --verbo | --verb)
230 -version | --version | --versio | --versi | --vers)
231 echo "configure generated by autoconf version 2.4"
235 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
236 # Reject names that are not valid shell variable names.
237 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
238 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
240 ac_package=`echo $ac_package| sed 's/-/_/g'`
245 eval "with_${ac_package}='$ac_optarg'" ;;
247 -without-* | --without-*)
248 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
249 # Reject names that are not valid shell variable names.
250 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
251 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
253 ac_package=`echo $ac_package| sed 's/-/_/g'`
254 eval "with_${ac_package}=no" ;;
257 # Obsolete; use --with-x.
260 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
261 | --x-incl | --x-inc | --x-in | --x-i)
262 ac_prev=x_includes ;;
263 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
264 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
265 x_includes="$ac_optarg" ;;
267 -x-libraries | --x-libraries | --x-librarie | --x-librari \
268 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
269 ac_prev=x_libraries ;;
270 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
271 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
272 x_libraries="$ac_optarg" ;;
274 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
278 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
279 echo "configure: warning: $ac_option: invalid host type" 1>&2
281 if test "x$nonopt" != xNONE; then
282 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
290 if test -n "$ac_prev"; then
291 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
294 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
296 # File descriptor usage:
299 # 2 errors and warnings
300 # 3 some systems may open it to /dev/tty
301 # 4 used on the Kubota Titan
302 # 6 checking for... messages and results
303 # 5 compiler messages saved in config.log
304 if test "$silent" = yes; then
312 This file contains any messages produced by compilers while
313 running configure, to aid debugging if configure makes a mistake.
316 # Strip out --no-create and --no-recursion so they do not pile up.
317 # Also quote any args containing shell metacharacters.
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
323 | --no-cr | --no-c) ;;
324 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
325 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
326 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
327 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
328 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
333 # Only set LANG and LC_ALL to C if already set.
334 # These must not be set unconditionally because not all systems understand
335 # e.g. LANG=C (notably SCO).
336 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
337 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
339 # confdefs.h avoids OS command line length limits that DEFS can exceed.
340 rm -rf conftest* confdefs.h
341 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
344 # A filename unique to this package, relative to the directory that
345 # configure is in, which we can look for to find out if srcdir is correct.
346 ac_unique_file=version.h
348 # Find the source files, if location was not specified.
349 if test -z "$srcdir"; then
350 ac_srcdir_defaulted=yes
351 # Try the directory containing this script, then its parent.
353 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
354 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
356 if test ! -r $srcdir/$ac_unique_file; then
360 ac_srcdir_defaulted=no
362 if test ! -r $srcdir/$ac_unique_file; then
363 if test "$ac_srcdir_defaulted" = yes; then
364 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
366 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
369 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
371 # Prefer explicitly selected file to automatically selected ones.
372 if test -z "$CONFIG_SITE"; then
373 if test "x$prefix" != xNONE; then
374 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
376 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
379 for ac_site_file in $CONFIG_SITE; do
380 if test -r "$ac_site_file"; then
381 echo "loading site script $ac_site_file"
386 if test -r "$cache_file"; then
387 echo "loading cache $cache_file"
390 echo "creating cache $cache_file"
395 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
396 ac_cpp='$CPP $CPPFLAGS'
397 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
398 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
400 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
401 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
402 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
409 ac_n= ac_c='\c' ac_t=
415 # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
416 enableval="$enable_dll_shlibs"
417 if test -n "$enableval"; then
418 if test "$enableval" = "no"
421 MAKEFILE_DLL=/dev/null
422 echo "Disabling DLL shared libraries"
425 MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
426 echo "Enabling DLL shared libraries"
430 MAKEFILE_DLL=/dev/null
432 echo "Disabling DLL shared libraries by default"
438 # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
439 enableval="$enable_elf_shlibs"
440 if test -n "$enableval"; then
441 if test "$enableval" = "no"
444 MAKEFILE_ELF=/dev/null
445 echo "Disabling ELF shared libraries"
448 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
449 echo "Enabling ELF shared libraries"
453 MAKEFILE_ELF=/dev/null
455 echo "Disabling ELF shared libraries by default"
461 # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
462 enableval="$enable_bsd_shlibs"
463 if test -n "$enableval"; then
464 if test "$enableval" = "no"
467 MAKEFILE_BSDLIB=/dev/null
468 echo "Disabling BSD shared libraries"
471 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
472 echo "Enabling BSD shared libraries"
476 MAKEFILE_BSDLIB=/dev/null
478 echo "Disabling BSD shared libraries by default"
484 # Check whether --enable-profile or --disable-profile was given.
485 enableval="$enable_profile"
486 if test -n "$enableval"; then
487 if test "$enableval" = "no"
490 MAKEFILE_PROFILE=/dev/null
491 echo "Disabling profiling libraries"
494 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
495 echo "Building profiling libraries"
500 MAKEFILE_PROFILE=/dev/null
501 echo "Disabling profiling libraries by default"
507 # Check whether --enable-checker or --disable-checker was given.
508 enableval="$enable_checker"
509 if test -n "$enableval"; then
510 if test "$enableval" = "no"
513 MAKEFILE_CHECKER=/dev/null
514 echo "Disabling checker libraries"
517 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
518 echo "Building checker libraries"
523 MAKEFILE_CHECKER=/dev/null
524 echo "Disabling checker libraries by default"
530 # Check whether --enable-gcc-wall or --disable-gcc-wall was given.
531 enableval="$enable_gcc_wall"
532 if test -n "$enableval"; then
533 if test "$enableval" = "no"
536 echo "Disabling GCC warnings"
539 echo "Enabling GCC warnings"
544 echo "Disabling GCC warnings by default"
549 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
551 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
552 set dummy ${MAKE-make}; ac_make=$2
553 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
554 echo $ac_n "(cached) $ac_c" 1>&6
556 cat > conftestmake <<\EOF
558 @echo 'ac_maketemp="${MAKE}"'
560 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
561 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
562 if test -n "$ac_maketemp"; then
563 eval ac_cv_prog_make_${ac_make}_set=yes
565 eval ac_cv_prog_make_${ac_make}_set=no
569 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
570 echo "$ac_t""yes" 1>&6
573 echo "$ac_t""no" 1>&6
574 SET_MAKE="MAKE=${MAKE-make}"
577 # Extract the first word of "ln", so it can be a program name with args.
578 set dummy ln; ac_word=$2
579 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
580 if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
581 echo $ac_n "(cached) $ac_c" 1>&6
585 ac_cv_path_LN="$LN" # Let the user override the test with a path.
588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
589 for ac_dir in $PATH; do
590 test -z "$ac_dir" && ac_dir=.
591 if test -f $ac_dir/$ac_word; then
592 ac_cv_path_LN="$ac_dir/$ac_word"
597 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
602 if test -n "$LN"; then
603 echo "$ac_t""$LN" 1>&6
605 echo "$ac_t""no" 1>&6
608 # Extract the first word of "mv", so it can be a program name with args.
609 set dummy mv; ac_word=$2
610 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
611 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
612 echo $ac_n "(cached) $ac_c" 1>&6
616 ac_cv_path_MV="$MV" # Let the user override the test with a path.
619 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
620 for ac_dir in $PATH; do
621 test -z "$ac_dir" && ac_dir=.
622 if test -f $ac_dir/$ac_word; then
623 ac_cv_path_MV="$ac_dir/$ac_word"
628 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
633 if test -n "$MV"; then
634 echo "$ac_t""$MV" 1>&6
636 echo "$ac_t""no" 1>&6
639 # Extract the first word of "cp", so it can be a program name with args.
640 set dummy cp; ac_word=$2
641 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
642 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
643 echo $ac_n "(cached) $ac_c" 1>&6
647 ac_cv_path_CP="$CP" # Let the user override the test with a path.
650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
651 for ac_dir in $PATH; do
652 test -z "$ac_dir" && ac_dir=.
653 if test -f $ac_dir/$ac_word; then
654 ac_cv_path_CP="$ac_dir/$ac_word"
659 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
664 if test -n "$CP"; then
665 echo "$ac_t""$CP" 1>&6
667 echo "$ac_t""no" 1>&6
670 # Extract the first word of "rm", so it can be a program name with args.
671 set dummy rm; ac_word=$2
672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
673 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
674 echo $ac_n "(cached) $ac_c" 1>&6
678 ac_cv_path_RM="$RM" # Let the user override the test with a path.
681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
682 for ac_dir in $PATH; do
683 test -z "$ac_dir" && ac_dir=.
684 if test -f $ac_dir/$ac_word; then
685 ac_cv_path_RM="$ac_dir/$ac_word"
690 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
695 if test -n "$RM"; then
696 echo "$ac_t""$RM" 1>&6
698 echo "$ac_t""no" 1>&6
701 # Extract the first word of "chmod", so it can be a program name with args.
702 set dummy chmod; ac_word=$2
703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
704 if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
705 echo $ac_n "(cached) $ac_c" 1>&6
709 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
713 for ac_dir in $PATH; do
714 test -z "$ac_dir" && ac_dir=.
715 if test -f $ac_dir/$ac_word; then
716 ac_cv_path_CHMOD="$ac_dir/$ac_word"
721 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
725 CHMOD="$ac_cv_path_CHMOD"
726 if test -n "$CHMOD"; then
727 echo "$ac_t""$CHMOD" 1>&6
729 echo "$ac_t""no" 1>&6
732 # Extract the first word of "awk", so it can be a program name with args.
733 set dummy awk; ac_word=$2
734 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
735 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6
740 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
743 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
744 for ac_dir in $PATH; do
745 test -z "$ac_dir" && ac_dir=.
746 if test -f $ac_dir/$ac_word; then
747 ac_cv_path_AWK="$ac_dir/$ac_word"
752 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
756 AWK="$ac_cv_path_AWK"
757 if test -n "$AWK"; then
758 echo "$ac_t""$AWK" 1>&6
760 echo "$ac_t""no" 1>&6
763 # Extract the first word of "sed", so it can be a program name with args.
764 set dummy sed; ac_word=$2
765 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
766 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
767 echo $ac_n "(cached) $ac_c" 1>&6
771 ac_cv_path_SED="$SED" # Let the user override the test with a path.
774 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
775 for ac_dir in $PATH; do
776 test -z "$ac_dir" && ac_dir=.
777 if test -f $ac_dir/$ac_word; then
778 ac_cv_path_SED="$ac_dir/$ac_word"
783 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
787 SED="$ac_cv_path_SED"
788 if test -n "$SED"; then
789 echo "$ac_t""$SED" 1>&6
791 echo "$ac_t""no" 1>&6
795 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
796 if test -f $ac_dir/install-sh; then
798 ac_install_sh="$ac_aux_dir/install-sh -c"
800 elif test -f $ac_dir/install.sh; then
802 ac_install_sh="$ac_aux_dir/install.sh -c"
806 if test -z "$ac_aux_dir"; then
807 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
809 ac_config_guess=$ac_aux_dir/config.guess
810 ac_config_sub=$ac_aux_dir/config.sub
811 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
814 # Make sure we can run config.sub.
815 if $ac_config_sub sun4 >/dev/null 2>&1; then :
816 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
819 echo $ac_n "checking host system type""... $ac_c" 1>&6
822 case "$host_alias" in
826 if host_alias=`$ac_config_guess`; then :
827 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
829 *) host_alias=$nonopt ;;
833 host=`$ac_config_sub $host_alias`
834 host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
835 host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
836 host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
837 echo "$ac_t""$host" 1>&6
839 echo $ac_n "checking build system type""... $ac_c" 1>&6
842 case "$build_alias" in
845 NONE) build_alias=$host_alias ;;
846 *) build_alias=$nonopt ;;
850 build=`$ac_config_sub $build_alias`
851 build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
852 build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
853 build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
854 echo "$ac_t""$build" 1>&6
856 if test $host != $build; then
857 ac_tool_prefix=${host_alias}-
862 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
863 set dummy ${ac_tool_prefix}ar; ac_word=$2
864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
865 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
868 if test -n "$AR"; then
869 ac_cv_prog_AR="$AR" # Let the user override the test.
871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
872 for ac_dir in $PATH; do
873 test -z "$ac_dir" && ac_dir=.
874 if test -f $ac_dir/$ac_word; then
875 ac_cv_prog_AR="${ac_tool_prefix}ar"
883 if test -n "$AR"; then
884 echo "$ac_t""$AR" 1>&6
886 echo "$ac_t""no" 1>&6
890 if test -z "$ac_cv_prog_AR"; then
891 if test -n "$ac_tool_prefix"; then
892 # Extract the first word of "ar", so it can be a program name with args.
893 set dummy ar; ac_word=$2
894 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
895 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
898 if test -n "$AR"; then
899 ac_cv_prog_AR="$AR" # Let the user override the test.
901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
902 for ac_dir in $PATH; do
903 test -z "$ac_dir" && ac_dir=.
904 if test -f $ac_dir/$ac_word; then
910 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
914 if test -n "$AR"; then
915 echo "$ac_t""$AR" 1>&6
917 echo "$ac_t""no" 1>&6
925 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
926 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
928 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
929 echo $ac_n "(cached) $ac_c" 1>&6
931 if test -n "$RANLIB"; then
932 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
934 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
935 for ac_dir in $PATH; do
936 test -z "$ac_dir" && ac_dir=.
937 if test -f $ac_dir/$ac_word; then
938 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
945 RANLIB="$ac_cv_prog_RANLIB"
946 if test -n "$RANLIB"; then
947 echo "$ac_t""$RANLIB" 1>&6
949 echo "$ac_t""no" 1>&6
953 if test -z "$ac_cv_prog_RANLIB"; then
954 if test -n "$ac_tool_prefix"; then
955 # Extract the first word of "ranlib", so it can be a program name with args.
956 set dummy ranlib; ac_word=$2
957 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
958 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
961 if test -n "$RANLIB"; then
962 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
965 for ac_dir in $PATH; do
966 test -z "$ac_dir" && ac_dir=.
967 if test -f $ac_dir/$ac_word; then
968 ac_cv_prog_RANLIB="ranlib"
973 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
976 RANLIB="$ac_cv_prog_RANLIB"
977 if test -n "$RANLIB"; then
978 echo "$ac_t""$RANLIB" 1>&6
980 echo "$ac_t""no" 1>&6
988 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
989 set dummy ${ac_tool_prefix}strip; ac_word=$2
990 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
991 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
994 if test -n "$STRIP"; then
995 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
998 for ac_dir in $PATH; do
999 test -z "$ac_dir" && ac_dir=.
1000 if test -f $ac_dir/$ac_word; then
1001 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1008 STRIP="$ac_cv_prog_STRIP"
1009 if test -n "$STRIP"; then
1010 echo "$ac_t""$STRIP" 1>&6
1012 echo "$ac_t""no" 1>&6
1016 if test -z "$ac_cv_prog_STRIP"; then
1017 if test -n "$ac_tool_prefix"; then
1018 # Extract the first word of "strip", so it can be a program name with args.
1019 set dummy strip; ac_word=$2
1020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1021 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1022 echo $ac_n "(cached) $ac_c" 1>&6
1024 if test -n "$STRIP"; then
1025 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1028 for ac_dir in $PATH; do
1029 test -z "$ac_dir" && ac_dir=.
1030 if test -f $ac_dir/$ac_word; then
1031 ac_cv_prog_STRIP="strip"
1036 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1039 STRIP="$ac_cv_prog_STRIP"
1040 if test -n "$STRIP"; then
1041 echo "$ac_t""$STRIP" 1>&6
1043 echo "$ac_t""no" 1>&6
1051 # Extract the first word of "gcc", so it can be a program name with args.
1052 set dummy gcc; ac_word=$2
1053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1054 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1055 echo $ac_n "(cached) $ac_c" 1>&6
1057 if test -n "$CC"; then
1058 ac_cv_prog_CC="$CC" # Let the user override the test.
1060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1061 for ac_dir in $PATH; do
1062 test -z "$ac_dir" && ac_dir=.
1063 if test -f $ac_dir/$ac_word; then
1069 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
1073 if test -n "$CC"; then
1074 echo "$ac_t""$CC" 1>&6
1076 echo "$ac_t""no" 1>&6
1080 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1081 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1082 echo $ac_n "(cached) $ac_c" 1>&6
1084 cat > conftest.c <<EOF
1089 if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
1095 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1096 if test $ac_cv_prog_gcc = yes; then
1098 if test "${CFLAGS+set}" != set; then
1099 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1100 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
1101 echo $ac_n "(cached) $ac_c" 1>&6
1103 echo 'void f(){}' > conftest.c
1104 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1105 ac_cv_prog_gcc_g=yes
1112 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
1113 if test $ac_cv_prog_gcc_g = yes; then
1121 test "${CFLAGS+set}" = set || CFLAGS="-g"
1124 # Find a good install program. We prefer a C program (faster),
1125 # so one script is as good as another. But avoid the broken or
1126 # incompatible versions:
1127 # SysV /etc/install, /usr/sbin/install
1128 # SunOS /usr/etc/install
1129 # IRIX /sbin/install
1131 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1132 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1133 # ./install, which can be erroneously created by make from ./install.sh.
1134 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1135 if test -z "$INSTALL"; then
1136 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1137 echo $ac_n "(cached) $ac_c" 1>&6
1139 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1140 for ac_dir in $PATH; do
1141 # Account for people who put trailing slashes in PATH elements.
1143 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1145 # OSF1 and SCO ODT 3.0 have their own names for install.
1146 for ac_prog in ginstall installbsd scoinst install; do
1147 if test -f $ac_dir/$ac_prog; then
1148 if test $ac_prog = install &&
1149 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1150 # AIX install. It has an incompatible calling convention.
1151 # OSF/1 installbsd also uses dspmsg, but is usable.
1154 ac_cv_path_install="$ac_dir/$ac_prog -c"
1163 # As a last resort, use the slow shell script.
1164 test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
1166 INSTALL="$ac_cv_path_install"
1168 echo "$ac_t""$INSTALL" 1>&6
1170 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1171 # It thinks the first close brace ends the variable substitution.
1172 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1174 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1176 # If we cannot run a trivial program, we must be cross compiling.
1177 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1178 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1181 if test "$cross_compiling" = yes; then
1184 cat > conftest.$ac_ext <<EOF
1185 #line 1186 "configure"
1186 #include "confdefs.h"
1190 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1198 cross_compiling=$ac_cv_c_cross
1199 echo "$ac_t""$ac_cv_c_cross" 1>&6
1201 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1202 # On Suns, sometimes $CPP names a directory.
1203 if test -n "$CPP" && test -d "$CPP"; then
1206 if test -z "$CPP"; then
1207 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1208 echo $ac_n "(cached) $ac_c" 1>&6
1210 # This must be in double quotes, not single quotes, because CPP may get
1211 # substituted into the Makefile and "${CC-cc}" will confuse make.
1213 # On the NeXT, cc -E runs the code through the compiler's parser,
1214 # not just through cpp.
1215 cat > conftest.$ac_ext <<EOF
1216 #line 1217 "configure"
1217 #include "confdefs.h"
1221 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1222 ac_err=`grep -v '^ *+' conftest.out`
1223 if test -z "$ac_err"; then
1228 CPP="${CC-cc} -E -traditional-cpp"
1229 cat > conftest.$ac_ext <<EOF
1230 #line 1231 "configure"
1231 #include "confdefs.h"
1235 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1236 ac_err=`grep -v '^ *+' conftest.out`
1237 if test -z "$ac_err"; then
1247 ac_cv_prog_CPP="$CPP"
1249 CPP="$ac_cv_prog_CPP"
1251 ac_cv_prog_CPP="$CPP"
1253 echo "$ac_t""$CPP" 1>&6
1255 for ac_hdr in stdlib.h unistd.h stdarg.h errno.h mntent.h dirent.h getopt.h linux/fd.h sys/disklabel.h
1257 ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1258 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1259 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1262 cat > conftest.$ac_ext <<EOF
1263 #line 1264 "configure"
1264 #include "confdefs.h"
1267 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1268 ac_err=`grep -v '^ *+' conftest.out`
1269 if test -z "$ac_err"; then
1271 eval "ac_cv_header_$ac_safe=yes"
1275 eval "ac_cv_header_$ac_safe=no"
1279 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1280 echo "$ac_t""yes" 1>&6
1281 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
1282 cat >> confdefs.h <<EOF
1283 #define $ac_tr_hdr 1
1287 echo "$ac_t""no" 1>&6
1291 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1292 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1293 echo $ac_n "(cached) $ac_c" 1>&6
1295 cat > conftest.$ac_ext <<EOF
1296 #line 1297 "configure"
1297 #include "confdefs.h"
1298 /* System header to define __stub macros and hopefully few prototypes,
1299 which can conflict with char vprintf(); below. */
1301 /* Override any gcc2 internal prototype to avoid an error. */
1304 int main() { return 0; }
1307 /* The GNU C library defines this for functions which it implements
1308 to always fail with ENOSYS. Some functions are actually named
1309 something starting with __ and the normal name is an alias. */
1310 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1318 if eval $ac_link; then
1320 eval "ac_cv_func_vprintf=yes"
1323 eval "ac_cv_func_vprintf=no"
1328 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1329 echo "$ac_t""yes" 1>&6
1330 cat >> confdefs.h <<\EOF
1331 #define HAVE_VPRINTF 1
1335 echo "$ac_t""no" 1>&6
1338 if test "$ac_cv_func_vprintf" != yes; then
1339 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1340 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1343 cat > conftest.$ac_ext <<EOF
1344 #line 1345 "configure"
1345 #include "confdefs.h"
1346 /* System header to define __stub macros and hopefully few prototypes,
1347 which can conflict with char _doprnt(); below. */
1349 /* Override any gcc2 internal prototype to avoid an error. */
1352 int main() { return 0; }
1355 /* The GNU C library defines this for functions which it implements
1356 to always fail with ENOSYS. Some functions are actually named
1357 something starting with __ and the normal name is an alias. */
1358 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1366 if eval $ac_link; then
1368 eval "ac_cv_func__doprnt=yes"
1371 eval "ac_cv_func__doprnt=no"
1376 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1377 echo "$ac_t""yes" 1>&6
1378 cat >> confdefs.h <<\EOF
1379 #define HAVE_DOPRNT 1
1383 echo "$ac_t""no" 1>&6
1388 echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
1389 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
1390 echo $ac_n "(cached) $ac_c" 1>&6
1392 cat > conftest.$ac_ext <<EOF
1393 #line 1394 "configure"
1394 #include "confdefs.h"
1395 #include <sys/types.h>
1397 int main() { return 0; }
1399 struct dirent de; de.d_namlen = 0;
1402 if eval $ac_compile; then
1404 e2fsprogs_cv_struct_d_namlen=yes
1407 e2fsprogs_cv_struct_d_namlen=no
1413 echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
1414 if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
1415 cat >> confdefs.h <<\EOF
1416 #define HAVE_DIRENT_NAMLEN 1
1420 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
1421 # if cross-compiling, with no cached values, just assume something common.
1422 ac_cv_sizeof_short=2
1425 echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4" 1>&2
1427 echo $ac_n "checking size of short""... $ac_c" 1>&6
1428 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1431 if test "$cross_compiling" = yes; then
1432 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1434 cat > conftest.$ac_ext <<EOF
1435 #line 1436 "configure"
1436 #include "confdefs.h"
1440 FILE *f=fopen("conftestval", "w");
1442 fprintf(f, "%d\n", sizeof(short));
1447 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1448 ac_cv_sizeof_short=`cat conftestval`
1450 ac_cv_sizeof_short=0
1455 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1456 cat >> confdefs.h <<EOF
1457 #define SIZEOF_SHORT $ac_cv_sizeof_short
1461 echo $ac_n "checking size of int""... $ac_c" 1>&6
1462 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1465 if test "$cross_compiling" = yes; then
1466 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1468 cat > conftest.$ac_ext <<EOF
1469 #line 1470 "configure"
1470 #include "confdefs.h"
1474 FILE *f=fopen("conftestval", "w");
1476 fprintf(f, "%d\n", sizeof(int));
1481 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1482 ac_cv_sizeof_int=`cat conftestval`
1489 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1490 cat >> confdefs.h <<EOF
1491 #define SIZEOF_INT $ac_cv_sizeof_int
1495 echo $ac_n "checking size of long""... $ac_c" 1>&6
1496 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1499 if test "$cross_compiling" = yes; then
1500 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1502 cat > conftest.$ac_ext <<EOF
1503 #line 1504 "configure"
1504 #include "confdefs.h"
1508 FILE *f=fopen("conftestval", "w");
1510 fprintf(f, "%d\n", sizeof(long));
1515 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1516 ac_cv_sizeof_long=`cat conftestval`
1523 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1524 cat >> confdefs.h <<EOF
1525 #define SIZEOF_LONG $ac_cv_sizeof_long
1529 SIZEOF_SHORT=$ac_cv_sizeof_short
1530 SIZEOF_INT=$ac_cv_sizeof_int
1531 SIZEOF_LONG=$ac_cv_sizeof_long
1535 echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
1536 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
1537 echo $ac_n "(cached) $ac_c" 1>&6
1539 cat > conftest.$ac_ext <<EOF
1540 #line 1541 "configure"
1541 #include "confdefs.h"
1542 #include <sys/stat.h>
1543 int main() { return 0; }
1545 struct stat stat; stat.st_flags = 0;
1548 if eval $ac_compile; then
1550 e2fsprogs_cv_struct_st_flags=yes
1553 e2fsprogs_cv_struct_st_flags=no
1559 echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
1560 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
1561 cat >> confdefs.h <<\EOF
1562 #define HAVE_STAT_FLAGS 1
1566 for ac_func in chflags getrusage llseek strdup getmntinfo
1568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1570 echo $ac_n "(cached) $ac_c" 1>&6
1572 cat > conftest.$ac_ext <<EOF
1573 #line 1574 "configure"
1574 #include "confdefs.h"
1575 /* System header to define __stub macros and hopefully few prototypes,
1576 which can conflict with char $ac_func(); below. */
1578 /* Override any gcc2 internal prototype to avoid an error. */
1581 int main() { return 0; }
1584 /* The GNU C library defines this for functions which it implements
1585 to always fail with ENOSYS. Some functions are actually named
1586 something starting with __ and the normal name is an alias. */
1587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1595 if eval $ac_link; then
1597 eval "ac_cv_func_$ac_func=yes"
1600 eval "ac_cv_func_$ac_func=no"
1605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1606 echo "$ac_t""yes" 1>&6
1607 ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
1608 cat >> confdefs.h <<EOF
1609 #define $ac_tr_func 1
1613 echo "$ac_t""no" 1>&6
1617 ac_safe=`echo "linux/fs.h" | tr './\055' '___'`
1618 echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
1619 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1622 cat > conftest.$ac_ext <<EOF
1623 #line 1624 "configure"
1624 #include "confdefs.h"
1625 #include <linux/fs.h>
1627 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1628 ac_err=`grep -v '^ *+' conftest.out`
1629 if test -z "$ac_err"; then
1631 eval "ac_cv_header_$ac_safe=yes"
1635 eval "ac_cv_header_$ac_safe=no"
1639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1640 echo "$ac_t""yes" 1>&6
1643 echo "$ac_t""no" 1>&6
1648 if test "$linux_headers" = yes; then
1649 cat >> confdefs.h <<\EOF
1650 #define HAVE_LINUX_FS_H 1
1653 # These are some programs that depend on having linux headers around, and
1654 # won't work otherwise. So we only compile them if we can.
1655 EXTRA_PROGS="$EXTRA_PROGS flushb"
1657 LINUX_INCLUDE='-I$(top_srcdir)/include -I$(top_builddir)/include'
1658 # Use this include directory with test compiles in the configure script too.
1659 CPPFLAGS="$CPPFLAGS -I$srcdir/include -I./include"
1662 echo $ac_n "checking for optreset""... $ac_c" 1>&6
1663 if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
1664 echo $ac_n "(cached) $ac_c" 1>&6
1666 cat > conftest.$ac_ext <<EOF
1667 #line 1668 "configure"
1668 #include "confdefs.h"
1671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1672 egrep "optreset" >/dev/null 2>&1; then
1674 ac_cv_have_optreset=yes
1677 ac_cv_have_optreset=no
1682 echo "$ac_t""$ac_cv_have_optreset" 1>&6
1683 if test $ac_cv_have_optreset = yes; then
1684 cat >> confdefs.h <<\EOF
1685 #define HAVE_OPTRESET 1
1689 echo $ac_n "checking whether struct ext2_inode has frags fields""... $ac_c" 1>&6
1690 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_ext2_inode_frags'+set}'`\" = set"; then
1691 echo $ac_n "(cached) $ac_c" 1>&6
1693 cat > conftest.$ac_ext <<EOF
1694 #line 1695 "configure"
1695 #include "confdefs.h"
1696 #include <linux/ext2_fs.h>
1697 int main() { return 0; }
1699 struct ext2_inode i; i.i_frag = i.i_fsize = 0;
1702 if eval $ac_compile; then
1704 e2fsprogs_cv_struct_ext2_inode_frags=yes
1707 e2fsprogs_cv_struct_ext2_inode_frags=no
1713 echo "$ac_t""$e2fsprogs_cv_struct_ext2_inode_frags" 1>&6
1714 if test "$e2fsprogs_cv_struct_ext2_inode_frags" = yes; then
1715 cat >> confdefs.h <<\EOF
1716 #define HAVE_EXT2_FRAGS 1
1720 echo $ac_n "checking whether the ext2 ioctls compile""... $ac_c" 1>&6
1721 if eval "test \"`echo '$''{'e2fsprogs_cv_ioctl_ext2'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1724 cat > conftest.$ac_ext <<EOF
1725 #line 1726 "configure"
1726 #include "confdefs.h"
1727 #include <linux/ext2_fs.h>
1728 #include <sys/ioctl.h>
1729 int main() { return 0; }
1731 ioctl (0, EXT2_IOC_SETVERSION, 0);
1734 if eval $ac_compile; then
1736 e2fsprogs_cv_ioctl_ext2=yes
1739 e2fsprogs_cv_ioctl_ext2=no
1745 echo "$ac_t""$e2fsprogs_cv_ioctl_ext2" 1>&6
1746 if test "$e2fsprogs_cv_ioctl_ext2" = yes; then
1747 cat >> confdefs.h <<\EOF
1748 #define HAVE_EXT2_IOCTLS 1
1755 if test "$prefix" = NONE ; then
1757 echo "On Linux systems, prefix defaults to '/'"
1765 LDFLAG_STATIC=-static
1766 echo "On Linux systems, assume -static works"
1770 if test "$prefix" = / ; then
1773 usr_prefix="\${prefix}"
1776 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
1777 ET_DIR=`cd ${srcdir}/lib/et; pwd`
1780 if test "$cross_compiling" = yes ; then
1786 test -d lib || mkdir lib
1787 test -d include || mkdir include
1788 test -d include/linux || mkdir include/linux
1790 cat > confcache <<\EOF
1791 # This file is a shell script that caches the results of configure
1792 # tests run on this system so they can be shared between configure
1793 # scripts and configure runs. It is not useful on other systems.
1794 # If it contains results you don't want to keep, you may remove or edit it.
1796 # By default, configure uses ./config.cache as the cache file,
1797 # creating it if it does not exist already. You can give configure
1798 # the --cache-file=FILE option to use a different cache file; that is
1799 # what configure does when it calls configure scripts in
1800 # subdirectories, so they share the cache.
1801 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1802 # config.status only pays attention to the cache file if you give it the
1803 # --recheck option to rerun configure.
1806 # Ultrix sh set writes to stderr and can't be redirected directly,
1807 # and sets the high bit in the cache file unless we assign to the vars.
1809 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
1811 if cmp -s $cache_file confcache; then
1814 if test -w $cache_file; then
1815 echo "updating cache $cache_file"
1816 cat confcache > $cache_file
1818 echo "not updating unwritable cache $cache_file"
1823 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1825 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1826 # Let make expand exec_prefix.
1827 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1829 # Any assignment to VPATH causes Sun make to only execute
1830 # the first set of double-colon rules, so remove it if not needed.
1831 # If there is a colon in the path, we need to keep it.
1832 if test "x$srcdir" = x.; then
1833 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1836 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1838 # Transform confdefs.h into DEFS.
1839 # Protect against shell expansion while executing Makefile rules.
1840 # Protect against Makefile macro expansion.
1841 cat > conftest.defs <<\EOF
1842 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g
1843 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1848 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1852 # Without the "./", some shells look in PATH for config.status.
1853 : ${CONFIG_STATUS=./config.status}
1855 echo creating $CONFIG_STATUS
1856 rm -f $CONFIG_STATUS
1857 cat > $CONFIG_STATUS <<EOF
1859 # Generated automatically by configure.
1860 # Run this file to recreate the current configuration.
1861 # This directory was configured as follows,
1862 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1864 # $0 $ac_configure_args
1866 # Compiler output produced by configure, useful for debugging
1867 # configure, is in ./config.log if it exists.
1869 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1872 case "\$ac_option" in
1873 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1874 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1875 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1876 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1877 echo "$CONFIG_STATUS generated by autoconf version 2.4"
1879 -help | --help | --hel | --he | --h)
1880 echo "\$ac_cs_usage"; exit 0 ;;
1881 *) echo "\$ac_cs_usage"; exit 1 ;;
1885 ac_given_srcdir=$srcdir
1886 ac_given_INSTALL="$INSTALL"
1888 trap 'rm -fr `echo "MCONFIG include/linux/types.h Makefile lib/et/Makefile
1889 lib/et/compile_et.sh lib/ss/Makefile lib/ss/mk_cmds.sh
1890 lib/ext2fs/Makefile lib/e2p/Makefile misc/Makefile
1891 e2fsck/Makefile debugfs/Makefile tests/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1893 # Protect against being on the right side of a sed subst in config.status.
1894 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
1895 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
1898 s%@CFLAGS@%$CFLAGS%g
1899 s%@CPPFLAGS@%$CPPFLAGS%g
1900 s%@CXXFLAGS@%$CXXFLAGS%g
1902 s%@LDFLAGS@%$LDFLAGS%g
1904 s%@exec_prefix@%$exec_prefix%g
1905 s%@prefix@%$prefix%g
1906 s%@program_transform_name@%$program_transform_name%g
1907 /@MCONFIG@/r $MCONFIG
1909 s%@DLL_CMT@%$DLL_CMT%g
1910 /@MAKEFILE_DLL@/r $MAKEFILE_DLL
1912 s%@ELF_CMT@%$ELF_CMT%g
1913 /@MAKEFILE_ELF@/r $MAKEFILE_ELF
1915 s%@BSDLIB_CMT@%$BSDLIB_CMT%g
1916 /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
1917 s%@MAKEFILE_BSDLIB@%%g
1918 s%@PROFILE_CMT@%$PROFILE_CMT%g
1919 /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
1920 s%@MAKEFILE_PROFILE@%%g
1921 s%@CHECKER_CMT@%$CHECKER_CMT%g
1922 /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
1923 s%@MAKEFILE_CHECKER@%%g
1925 /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
1926 s%@MAKEFILE_LIBRARY@%%g
1927 s%@SET_MAKE@%$SET_MAKE%g
1936 s%@host_alias@%$host_alias%g
1937 s%@host_cpu@%$host_cpu%g
1938 s%@host_vendor@%$host_vendor%g
1939 s%@host_os@%$host_os%g
1941 s%@build_alias@%$build_alias%g
1942 s%@build_cpu@%$build_cpu%g
1943 s%@build_vendor@%$build_vendor%g
1944 s%@build_os@%$build_os%g
1946 s%@RANLIB@%$RANLIB%g
1949 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1950 s%@INSTALL_DATA@%$INSTALL_DATA%g
1952 s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
1953 s%@SIZEOF_INT@%$SIZEOF_INT%g
1954 s%@SIZEOF_LONG@%$SIZEOF_LONG%g
1955 s%@EXTRA_PROGS@%$EXTRA_PROGS%g
1956 s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
1957 s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
1958 s%@usr_prefix@%$usr_prefix%g
1959 s%@SS_DIR@%$SS_DIR%g
1960 s%@ET_DIR@%$ET_DIR%g
1961 s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
1965 cat >> $CONFIG_STATUS <<EOF
1967 CONFIG_FILES=\${CONFIG_FILES-"MCONFIG include/linux/types.h Makefile lib/et/Makefile
1968 lib/et/compile_et.sh lib/ss/Makefile lib/ss/mk_cmds.sh
1969 lib/ext2fs/Makefile lib/e2p/Makefile misc/Makefile
1970 e2fsck/Makefile debugfs/Makefile tests/Makefile"}
1972 cat >> $CONFIG_STATUS <<\EOF
1973 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1974 # Support "outfile[:infile]", defaulting infile="outfile.in".
1976 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1977 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1978 *) ac_file_in="${ac_file}.in" ;;
1981 # Adjust relative srcdir, etc. for subdirectories.
1983 # Remove last slash and all that follows it. Not all systems have dirname.
1984 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1985 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1986 # The file is in a subdirectory.
1987 test ! -d "$ac_dir" && mkdir "$ac_dir"
1988 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1989 # A "../" for each directory in $ac_dir_suffix.
1990 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1992 ac_dir_suffix= ac_dots=
1995 case "$ac_given_srcdir" in
1997 if test -z "$ac_dots"; then top_srcdir=.
1998 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1999 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2001 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2002 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2005 case "$ac_given_INSTALL" in
2006 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2007 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2009 echo creating "$ac_file"
2011 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2013 *Makefile*) ac_comsub="1i\\
2014 # $configure_input" ;;
2018 s%@configure_input@%$configure_input%g
2019 s%@srcdir@%$srcdir%g
2020 s%@top_srcdir@%$top_srcdir%g
2021 s%@INSTALL@%$INSTALL%g
2022 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
2030 chmod +x $CONFIG_STATUS
2031 rm -fr confdefs* $ac_clean_files
2032 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1