Whamcloud - gitweb
2ddac62bc5645debc9208eee1d8eb9846ccab40f
[tools/e2fsprogs.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-cc=COMPILER      select compiler to use"
16 ac_help="$ac_help
17   --with-linker=LINKER    select linker to use"
18 ac_help="$ac_help
19   --with-ccopts=CCOPTS    select compiler command line options"
20 ac_help="$ac_help
21   --with-ldopts=LDOPTS    select linker command line options"
22 ac_help="$ac_help
23   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
24 ac_help="$ac_help
25   --enable-dll-shlibs     select DLL libraries"
26 ac_help="$ac_help
27   --enable-elf-shlibs     select ELF shared libraries"
28 ac_help="$ac_help
29   --enable-bsd-shlibs     select BSD shared libraries"
30 ac_help="$ac_help
31   --enable-profile        build profiling libraries"
32 ac_help="$ac_help
33   --enable-checker        build checker libraries"
34 ac_help="$ac_help
35   --enable-gcc-wall       enable GCC anal warnings (DON'T USE IN PRODUCTION)"
36 ac_help="$ac_help
37   --enable-dynamic-e2fsck build e2fsck dynamically"
38 ac_help="$ac_help
39   --enable-fsck           build fsck wrapper program"
40 ac_help="$ac_help
41   --enable-old-bitops     Use old (non-standard but native) bitmask operations"
42
43 # Initialize some variables set by options.
44 # The variables have the same names as the options, with
45 # dashes changed to underlines.
46 build=NONE
47 cache_file=./config.cache
48 exec_prefix=NONE
49 host=NONE
50 no_create=
51 nonopt=NONE
52 no_recursion=
53 prefix=NONE
54 program_prefix=NONE
55 program_suffix=NONE
56 program_transform_name=s,x,x,
57 silent=
58 site=
59 srcdir=
60 target=NONE
61 verbose=
62 x_includes=NONE
63 x_libraries=NONE
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'
76
77 # Initialize some other variables.
78 subdirs=
79 MFLAGS= MAKEFLAGS=
80 SHELL=${CONFIG_SHELL-/bin/sh}
81 # Maximum number of lines to put in a shell here document.
82 ac_max_here_lines=12
83
84 ac_prev=
85 for ac_option
86 do
87
88   # If the previous option needs an argument, assign it.
89   if test -n "$ac_prev"; then
90     eval "$ac_prev=\$ac_option"
91     ac_prev=
92     continue
93   fi
94
95   case "$ac_option" in
96   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
97   *) ac_optarg= ;;
98   esac
99
100   # Accept the important Cygnus configure options, so we can diagnose typos.
101
102   case "$ac_option" in
103
104   -bindir | --bindir | --bindi | --bind | --bin | --bi)
105     ac_prev=bindir ;;
106   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
107     bindir="$ac_optarg" ;;
108
109   -build | --build | --buil | --bui | --bu)
110     ac_prev=build ;;
111   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
112     build="$ac_optarg" ;;
113
114   -cache-file | --cache-file | --cache-fil | --cache-fi \
115   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
116     ac_prev=cache_file ;;
117   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
118   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
119     cache_file="$ac_optarg" ;;
120
121   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
122     ac_prev=datadir ;;
123   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
124   | --da=*)
125     datadir="$ac_optarg" ;;
126
127   -disable-* | --disable-*)
128     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
129     # Reject names that are not valid shell variable names.
130     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
131       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132     fi
133     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134     eval "enable_${ac_feature}=no" ;;
135
136   -enable-* | --enable-*)
137     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
138     # Reject names that are not valid shell variable names.
139     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
140       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141     fi
142     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
143     case "$ac_option" in
144       *=*) ;;
145       *) ac_optarg=yes ;;
146     esac
147     eval "enable_${ac_feature}='$ac_optarg'" ;;
148
149   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
150   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
151   | --exec | --exe | --ex)
152     ac_prev=exec_prefix ;;
153   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
154   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
155   | --exec=* | --exe=* | --ex=*)
156     exec_prefix="$ac_optarg" ;;
157
158   -gas | --gas | --ga | --g)
159     # Obsolete; use --with-gas.
160     with_gas=yes ;;
161
162   -help | --help | --hel | --he)
163     # Omit some internal or obsolete options to make the list less imposing.
164     # This message is too long to be a string in the A/UX 3.1 sh.
165     cat << EOF
166 Usage: configure [options] [host]
167 Options: [defaults in brackets after descriptions]
168 Configuration:
169   --cache-file=FILE       cache test results in FILE
170   --help                  print this message
171   --no-create             do not create output files
172   --quiet, --silent       do not print \`checking...' messages
173   --version               print the version of autoconf that created configure
174 Directory and file names:
175   --prefix=PREFIX         install architecture-independent files in PREFIX
176                           [$ac_default_prefix]
177   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
178                           [same as prefix]
179   --bindir=DIR            user executables in DIR [EPREFIX/bin]
180   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
181   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
182   --datadir=DIR           read-only architecture-independent data in DIR
183                           [PREFIX/share]
184   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
185   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
186                           [PREFIX/com]
187   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
188   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
189   --includedir=DIR        C header files in DIR [PREFIX/include]
190   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
191   --infodir=DIR           info documentation in DIR [PREFIX/info]
192   --mandir=DIR            man documentation in DIR [PREFIX/man]
193   --srcdir=DIR            find the sources in DIR [configure dir or ..]
194   --program-prefix=PREFIX prepend PREFIX to installed program names
195   --program-suffix=SUFFIX append SUFFIX to installed program names
196   --program-transform-name=PROGRAM
197                           run sed PROGRAM on installed program names
198 EOF
199     cat << EOF
200 Host type:
201   --build=BUILD           configure for building on BUILD [BUILD=HOST]
202   --host=HOST             configure for HOST [guessed]
203   --target=TARGET         configure for TARGET [TARGET=HOST]
204 Features and packages:
205   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
206   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
207   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
208   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
209   --x-includes=DIR        X include files are in DIR
210   --x-libraries=DIR       X library files are in DIR
211 EOF
212     if test -n "$ac_help"; then
213       echo "--enable and --with options recognized:$ac_help"
214     fi
215     exit 0 ;;
216
217   -host | --host | --hos | --ho)
218     ac_prev=host ;;
219   -host=* | --host=* | --hos=* | --ho=*)
220     host="$ac_optarg" ;;
221
222   -includedir | --includedir | --includedi | --included | --include \
223   | --includ | --inclu | --incl | --inc)
224     ac_prev=includedir ;;
225   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
226   | --includ=* | --inclu=* | --incl=* | --inc=*)
227     includedir="$ac_optarg" ;;
228
229   -infodir | --infodir | --infodi | --infod | --info | --inf)
230     ac_prev=infodir ;;
231   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
232     infodir="$ac_optarg" ;;
233
234   -libdir | --libdir | --libdi | --libd)
235     ac_prev=libdir ;;
236   -libdir=* | --libdir=* | --libdi=* | --libd=*)
237     libdir="$ac_optarg" ;;
238
239   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
240   | --libexe | --libex | --libe)
241     ac_prev=libexecdir ;;
242   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
243   | --libexe=* | --libex=* | --libe=*)
244     libexecdir="$ac_optarg" ;;
245
246   -localstatedir | --localstatedir | --localstatedi | --localstated \
247   | --localstate | --localstat | --localsta | --localst \
248   | --locals | --local | --loca | --loc | --lo)
249     ac_prev=localstatedir ;;
250   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
251   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
252   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
253     localstatedir="$ac_optarg" ;;
254
255   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
256     ac_prev=mandir ;;
257   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
258     mandir="$ac_optarg" ;;
259
260   -nfp | --nfp | --nf)
261     # Obsolete; use --without-fp.
262     with_fp=no ;;
263
264   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
265   | --no-cr | --no-c)
266     no_create=yes ;;
267
268   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
269   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
270     no_recursion=yes ;;
271
272   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
273   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
274   | --oldin | --oldi | --old | --ol | --o)
275     ac_prev=oldincludedir ;;
276   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
277   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
278   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
279     oldincludedir="$ac_optarg" ;;
280
281   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
282     ac_prev=prefix ;;
283   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
284     prefix="$ac_optarg" ;;
285
286   -program-prefix | --program-prefix | --program-prefi | --program-pref \
287   | --program-pre | --program-pr | --program-p)
288     ac_prev=program_prefix ;;
289   -program-prefix=* | --program-prefix=* | --program-prefi=* \
290   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
291     program_prefix="$ac_optarg" ;;
292
293   -program-suffix | --program-suffix | --program-suffi | --program-suff \
294   | --program-suf | --program-su | --program-s)
295     ac_prev=program_suffix ;;
296   -program-suffix=* | --program-suffix=* | --program-suffi=* \
297   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
298     program_suffix="$ac_optarg" ;;
299
300   -program-transform-name | --program-transform-name \
301   | --program-transform-nam | --program-transform-na \
302   | --program-transform-n | --program-transform- \
303   | --program-transform | --program-transfor \
304   | --program-transfo | --program-transf \
305   | --program-trans | --program-tran \
306   | --progr-tra | --program-tr | --program-t)
307     ac_prev=program_transform_name ;;
308   -program-transform-name=* | --program-transform-name=* \
309   | --program-transform-nam=* | --program-transform-na=* \
310   | --program-transform-n=* | --program-transform-=* \
311   | --program-transform=* | --program-transfor=* \
312   | --program-transfo=* | --program-transf=* \
313   | --program-trans=* | --program-tran=* \
314   | --progr-tra=* | --program-tr=* | --program-t=*)
315     program_transform_name="$ac_optarg" ;;
316
317   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
318   | -silent | --silent | --silen | --sile | --sil)
319     silent=yes ;;
320
321   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
322     ac_prev=sbindir ;;
323   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
324   | --sbi=* | --sb=*)
325     sbindir="$ac_optarg" ;;
326
327   -sharedstatedir | --sharedstatedir | --sharedstatedi \
328   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
329   | --sharedst | --shareds | --shared | --share | --shar \
330   | --sha | --sh)
331     ac_prev=sharedstatedir ;;
332   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
333   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
334   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
335   | --sha=* | --sh=*)
336     sharedstatedir="$ac_optarg" ;;
337
338   -site | --site | --sit)
339     ac_prev=site ;;
340   -site=* | --site=* | --sit=*)
341     site="$ac_optarg" ;;
342
343   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
344     ac_prev=srcdir ;;
345   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
346     srcdir="$ac_optarg" ;;
347
348   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
349   | --syscon | --sysco | --sysc | --sys | --sy)
350     ac_prev=sysconfdir ;;
351   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
352   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
353     sysconfdir="$ac_optarg" ;;
354
355   -target | --target | --targe | --targ | --tar | --ta | --t)
356     ac_prev=target ;;
357   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
358     target="$ac_optarg" ;;
359
360   -v | -verbose | --verbose | --verbos | --verbo | --verb)
361     verbose=yes ;;
362
363   -version | --version | --versio | --versi | --vers)
364     echo "configure generated by autoconf version 2.13"
365     exit 0 ;;
366
367   -with-* | --with-*)
368     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369     # Reject names that are not valid shell variable names.
370     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372     fi
373     ac_package=`echo $ac_package| sed 's/-/_/g'`
374     case "$ac_option" in
375       *=*) ;;
376       *) ac_optarg=yes ;;
377     esac
378     eval "with_${ac_package}='$ac_optarg'" ;;
379
380   -without-* | --without-*)
381     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
382     # Reject names that are not valid shell variable names.
383     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385     fi
386     ac_package=`echo $ac_package| sed 's/-/_/g'`
387     eval "with_${ac_package}=no" ;;
388
389   --x)
390     # Obsolete; use --with-x.
391     with_x=yes ;;
392
393   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
394   | --x-incl | --x-inc | --x-in | --x-i)
395     ac_prev=x_includes ;;
396   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
397   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
398     x_includes="$ac_optarg" ;;
399
400   -x-libraries | --x-libraries | --x-librarie | --x-librari \
401   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
402     ac_prev=x_libraries ;;
403   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
404   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
405     x_libraries="$ac_optarg" ;;
406
407   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408     ;;
409
410   *)
411     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412       echo "configure: warning: $ac_option: invalid host type" 1>&2
413     fi
414     if test "x$nonopt" != xNONE; then
415       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416     fi
417     nonopt="$ac_option"
418     ;;
419
420   esac
421 done
422
423 if test -n "$ac_prev"; then
424   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
425 fi
426
427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
428
429 # File descriptor usage:
430 # 0 standard input
431 # 1 file creation
432 # 2 errors and warnings
433 # 3 some systems may open it to /dev/tty
434 # 4 used on the Kubota Titan
435 # 6 checking for... messages and results
436 # 5 compiler messages saved in config.log
437 if test "$silent" = yes; then
438   exec 6>/dev/null
439 else
440   exec 6>&1
441 fi
442 exec 5>./config.log
443
444 echo "\
445 This file contains any messages produced by compilers while
446 running configure, to aid debugging if configure makes a mistake.
447 " 1>&5
448
449 # Strip out --no-create and --no-recursion so they do not pile up.
450 # Also quote any args containing shell metacharacters.
451 ac_configure_args=
452 for ac_arg
453 do
454   case "$ac_arg" in
455   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
456   | --no-cr | --no-c) ;;
457   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
458   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
459   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
461   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
462   esac
463 done
464
465 # NLS nuisances.
466 # Only set these to C if already set.  These must not be set unconditionally
467 # because not all systems understand e.g. LANG=C (notably SCO).
468 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469 # Non-C LC_CTYPE values break the ctype check.
470 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
471 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
472 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
473 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
474
475 # confdefs.h avoids OS command line length limits that DEFS can exceed.
476 rm -rf conftest* confdefs.h
477 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
478 echo > confdefs.h
479
480 # A filename unique to this package, relative to the directory that
481 # configure is in, which we can look for to find out if srcdir is correct.
482 ac_unique_file=version.h
483
484 # Find the source files, if location was not specified.
485 if test -z "$srcdir"; then
486   ac_srcdir_defaulted=yes
487   # Try the directory containing this script, then its parent.
488   ac_prog=$0
489   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
491   srcdir=$ac_confdir
492   if test ! -r $srcdir/$ac_unique_file; then
493     srcdir=..
494   fi
495 else
496   ac_srcdir_defaulted=no
497 fi
498 if test ! -r $srcdir/$ac_unique_file; then
499   if test "$ac_srcdir_defaulted" = yes; then
500     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
501   else
502     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
503   fi
504 fi
505 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
506
507 # Prefer explicitly selected file to automatically selected ones.
508 if test -z "$CONFIG_SITE"; then
509   if test "x$prefix" != xNONE; then
510     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
511   else
512     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
513   fi
514 fi
515 for ac_site_file in $CONFIG_SITE; do
516   if test -r "$ac_site_file"; then
517     echo "loading site script $ac_site_file"
518     . "$ac_site_file"
519   fi
520 done
521
522 if test -r "$cache_file"; then
523   echo "loading cache $cache_file"
524   . $cache_file
525 else
526   echo "creating cache $cache_file"
527   > $cache_file
528 fi
529
530 ac_ext=c
531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
532 ac_cpp='$CPP $CPPFLAGS'
533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
535 cross_compiling=$ac_cv_prog_cc_cross
536
537 ac_exeext=
538 ac_objext=o
539 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
540   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
541   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
542     ac_n= ac_c='
543 ' ac_t='        '
544   else
545     ac_n=-n ac_c= ac_t=
546   fi
547 else
548   ac_n= ac_c='\c' ac_t=
549 fi
550
551
552
553 MCONFIG=./MCONFIG
554
555 BINARY_TYPE=bin
556 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
557         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
558 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
559         | tr \" " "`
560 MONTH=`echo $DATE | awk -F- '{print $2}'`
561 YEAR=`echo $DATE | awk -F- '{print $3}'`
562
563 if expr $YEAR ">" 1900 > /dev/null ; then
564         E2FSPROGS_YEAR=$YEAR
565 elif expr $YEAR ">" 90 >/dev/null ; then
566         E2FSPROGS_YEAR=19$YEAR
567 else
568         E2FSPROGS_YEAR=20$YEAR
569 fi
570
571 case $MONTH in
572 Jan)    E2FSPROGS_MONTH="January" ;;
573 Feb)    E2FSPROGS_MONTH="February" ;;
574 Mar)    E2FSPROGS_MONTH="March" ;;
575 Apr)    E2FSPROGS_MONTH="April" ;;
576 May)    E2FSPROGS_MONTH="May" ;;
577 Jun)    E2FSPROGS_MONTH="June" ;;
578 Jul)    E2FSPROGS_MONTH="July" ;;
579 Aug)    E2FSPROGS_MONTH="August" ;;
580 Sep)    E2FSPROGS_MONTH="September" ;;
581 Oct)    E2FSPROGS_MONTH="October" ;;
582 Nov)    E2FSPROGS_MONTH="November" ;;
583 Dec)    E2FSPROGS_MONTH="December" ;;
584 *)      echo "Unknown month $MONTH??" ;;
585 esac
586
587 unset DATE MONTH YEAR
588 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
589 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
590
591
592
593
594 ac_aux_dir=
595 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
596   if test -f $ac_dir/install-sh; then
597     ac_aux_dir=$ac_dir
598     ac_install_sh="$ac_aux_dir/install-sh -c"
599     break
600   elif test -f $ac_dir/install.sh; then
601     ac_aux_dir=$ac_dir
602     ac_install_sh="$ac_aux_dir/install.sh -c"
603     break
604   fi
605 done
606 if test -z "$ac_aux_dir"; then
607   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
608 fi
609 ac_config_guess=$ac_aux_dir/config.guess
610 ac_config_sub=$ac_aux_dir/config.sub
611 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
612
613
614 # Make sure we can run config.sub.
615 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
616 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
617 fi
618
619 echo $ac_n "checking host system type""... $ac_c" 1>&6
620 echo "configure:621: checking host system type" >&5
621
622 host_alias=$host
623 case "$host_alias" in
624 NONE)
625   case $nonopt in
626   NONE)
627     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
628     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
629     fi ;;
630   *) host_alias=$nonopt ;;
631   esac ;;
632 esac
633
634 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
635 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
636 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
637 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
638 echo "$ac_t""$host" 1>&6
639
640 # Check whether --with-cc or --without-cc was given.
641 if test "${with_cc+set}" = set; then
642   withval="$with_cc"
643   echo "$ac_t""CC=$withval" 1>&6
644 CC=$withval
645 else
646   if test -z "$CC" ; then CC=cc; fi
647 echo "$ac_t""CC defaults to $CC" 1>&6
648 fi
649 export CC
650
651 # Extract the first word of "gcc", so it can be a program name with args.
652 set dummy gcc; ac_word=$2
653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
654 echo "configure:655: checking for $ac_word" >&5
655 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
656   echo $ac_n "(cached) $ac_c" 1>&6
657 else
658   if test -n "$CC"; then
659   ac_cv_prog_CC="$CC" # Let the user override the test.
660 else
661   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
662   ac_dummy="$PATH"
663   for ac_dir in $ac_dummy; do
664     test -z "$ac_dir" && ac_dir=.
665     if test -f $ac_dir/$ac_word; then
666       ac_cv_prog_CC="gcc"
667       break
668     fi
669   done
670   IFS="$ac_save_ifs"
671 fi
672 fi
673 CC="$ac_cv_prog_CC"
674 if test -n "$CC"; then
675   echo "$ac_t""$CC" 1>&6
676 else
677   echo "$ac_t""no" 1>&6
678 fi
679
680 if test -z "$CC"; then
681   # Extract the first word of "cc", so it can be a program name with args.
682 set dummy cc; ac_word=$2
683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
684 echo "configure:685: checking for $ac_word" >&5
685 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
686   echo $ac_n "(cached) $ac_c" 1>&6
687 else
688   if test -n "$CC"; then
689   ac_cv_prog_CC="$CC" # Let the user override the test.
690 else
691   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
692   ac_prog_rejected=no
693   ac_dummy="$PATH"
694   for ac_dir in $ac_dummy; do
695     test -z "$ac_dir" && ac_dir=.
696     if test -f $ac_dir/$ac_word; then
697       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
698         ac_prog_rejected=yes
699         continue
700       fi
701       ac_cv_prog_CC="cc"
702       break
703     fi
704   done
705   IFS="$ac_save_ifs"
706 if test $ac_prog_rejected = yes; then
707   # We found a bogon in the path, so make sure we never use it.
708   set dummy $ac_cv_prog_CC
709   shift
710   if test $# -gt 0; then
711     # We chose a different compiler from the bogus one.
712     # However, it has the same basename, so the bogon will be chosen
713     # first if we set CC to just the basename; use the full file name.
714     shift
715     set dummy "$ac_dir/$ac_word" "$@"
716     shift
717     ac_cv_prog_CC="$@"
718   fi
719 fi
720 fi
721 fi
722 CC="$ac_cv_prog_CC"
723 if test -n "$CC"; then
724   echo "$ac_t""$CC" 1>&6
725 else
726   echo "$ac_t""no" 1>&6
727 fi
728
729   if test -z "$CC"; then
730     case "`uname -s`" in
731     *win32* | *WIN32*)
732       # Extract the first word of "cl", so it can be a program name with args.
733 set dummy cl; ac_word=$2
734 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
735 echo "configure:736: checking for $ac_word" >&5
736 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
737   echo $ac_n "(cached) $ac_c" 1>&6
738 else
739   if test -n "$CC"; then
740   ac_cv_prog_CC="$CC" # Let the user override the test.
741 else
742   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
743   ac_dummy="$PATH"
744   for ac_dir in $ac_dummy; do
745     test -z "$ac_dir" && ac_dir=.
746     if test -f $ac_dir/$ac_word; then
747       ac_cv_prog_CC="cl"
748       break
749     fi
750   done
751   IFS="$ac_save_ifs"
752 fi
753 fi
754 CC="$ac_cv_prog_CC"
755 if test -n "$CC"; then
756   echo "$ac_t""$CC" 1>&6
757 else
758   echo "$ac_t""no" 1>&6
759 fi
760  ;;
761     esac
762   fi
763   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
764 fi
765
766 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
767 echo "configure:768: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
768
769 ac_ext=c
770 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
771 ac_cpp='$CPP $CPPFLAGS'
772 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
773 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
774 cross_compiling=$ac_cv_prog_cc_cross
775
776 cat > conftest.$ac_ext << EOF
777
778 #line 779 "configure"
779 #include "confdefs.h"
780
781 main(){return(0);}
782 EOF
783 if { (eval echo configure:784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
784   ac_cv_prog_cc_works=yes
785   # If we can't run a trivial program, we are probably using a cross compiler.
786   if (./conftest; exit) 2>/dev/null; then
787     ac_cv_prog_cc_cross=no
788   else
789     ac_cv_prog_cc_cross=yes
790   fi
791 else
792   echo "configure: failed program was:" >&5
793   cat conftest.$ac_ext >&5
794   ac_cv_prog_cc_works=no
795 fi
796 rm -fr conftest*
797 ac_ext=c
798 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
799 ac_cpp='$CPP $CPPFLAGS'
800 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
801 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
802 cross_compiling=$ac_cv_prog_cc_cross
803
804 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
805 if test $ac_cv_prog_cc_works = no; then
806   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
807 fi
808 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
809 echo "configure:810: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
810 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
811 cross_compiling=$ac_cv_prog_cc_cross
812
813 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
814 echo "configure:815: checking whether we are using GNU C" >&5
815 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
816   echo $ac_n "(cached) $ac_c" 1>&6
817 else
818   cat > conftest.c <<EOF
819 #ifdef __GNUC__
820   yes;
821 #endif
822 EOF
823 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
824   ac_cv_prog_gcc=yes
825 else
826   ac_cv_prog_gcc=no
827 fi
828 fi
829
830 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
831
832 if test $ac_cv_prog_gcc = yes; then
833   GCC=yes
834 else
835   GCC=
836 fi
837
838 ac_test_CFLAGS="${CFLAGS+set}"
839 ac_save_CFLAGS="$CFLAGS"
840 CFLAGS=
841 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
842 echo "configure:843: checking whether ${CC-cc} accepts -g" >&5
843 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
844   echo $ac_n "(cached) $ac_c" 1>&6
845 else
846   echo 'void f(){}' > conftest.c
847 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
848   ac_cv_prog_cc_g=yes
849 else
850   ac_cv_prog_cc_g=no
851 fi
852 rm -f conftest*
853
854 fi
855
856 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
857 if test "$ac_test_CFLAGS" = set; then
858   CFLAGS="$ac_save_CFLAGS"
859 elif test $ac_cv_prog_cc_g = yes; then
860   if test "$GCC" = yes; then
861     CFLAGS="-g -O2"
862   else
863     CFLAGS="-g"
864   fi
865 else
866   if test "$GCC" = yes; then
867     CFLAGS="-O2"
868   else
869     CFLAGS=
870   fi
871 fi
872
873 # Check whether --with-linker or --without-linker was given.
874 if test "${with_linker+set}" = set; then
875   withval="$with_linker"
876   echo "$ac_t""LD=$withval" 1>&6
877 LD=$withval
878 else
879   if test -z "$LD" ; then LD=$CC; fi
880 echo "$ac_t""LD defaults to $LD" 1>&6
881 fi
882 export LD
883
884 # Check whether --with-ccopts or --without-ccopts was given.
885 if test "${with_ccopts+set}" = set; then
886   withval="$with_ccopts"
887   echo "$ac_t""CCOPTS is $withval" 1>&6
888 CCOPTS=$withval
889 CFLAGS="$CFLAGS $withval"
890 else
891   CCOPTS=
892 fi
893
894 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
895 echo "configure:896: checking how to run the C preprocessor" >&5
896 # On Suns, sometimes $CPP names a directory.
897 if test -n "$CPP" && test -d "$CPP"; then
898   CPP=
899 fi
900 if test -z "$CPP"; then
901 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
902   echo $ac_n "(cached) $ac_c" 1>&6
903 else
904     # This must be in double quotes, not single quotes, because CPP may get
905   # substituted into the Makefile and "${CC-cc}" will confuse make.
906   CPP="${CC-cc} -E"
907   # On the NeXT, cc -E runs the code through the compiler's parser,
908   # not just through cpp.
909   cat > conftest.$ac_ext <<EOF
910 #line 911 "configure"
911 #include "confdefs.h"
912 #include <assert.h>
913 Syntax Error
914 EOF
915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
916 { (eval echo configure:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
918 if test -z "$ac_err"; then
919   :
920 else
921   echo "$ac_err" >&5
922   echo "configure: failed program was:" >&5
923   cat conftest.$ac_ext >&5
924   rm -rf conftest*
925   CPP="${CC-cc} -E -traditional-cpp"
926   cat > conftest.$ac_ext <<EOF
927 #line 928 "configure"
928 #include "confdefs.h"
929 #include <assert.h>
930 Syntax Error
931 EOF
932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
933 { (eval echo configure:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
935 if test -z "$ac_err"; then
936   :
937 else
938   echo "$ac_err" >&5
939   echo "configure: failed program was:" >&5
940   cat conftest.$ac_ext >&5
941   rm -rf conftest*
942   CPP="${CC-cc} -nologo -E"
943   cat > conftest.$ac_ext <<EOF
944 #line 945 "configure"
945 #include "confdefs.h"
946 #include <assert.h>
947 Syntax Error
948 EOF
949 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
950 { (eval echo configure:951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
951 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
952 if test -z "$ac_err"; then
953   :
954 else
955   echo "$ac_err" >&5
956   echo "configure: failed program was:" >&5
957   cat conftest.$ac_ext >&5
958   rm -rf conftest*
959   CPP=/lib/cpp
960 fi
961 rm -f conftest*
962 fi
963 rm -f conftest*
964 fi
965 rm -f conftest*
966   ac_cv_prog_CPP="$CPP"
967 fi
968   CPP="$ac_cv_prog_CPP"
969 else
970   ac_cv_prog_CPP="$CPP"
971 fi
972 echo "$ac_t""$CPP" 1>&6
973
974 ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
975 echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
976 echo "configure:977: checking for linux/fs.h" >&5
977 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
978   echo $ac_n "(cached) $ac_c" 1>&6
979 else
980   cat > conftest.$ac_ext <<EOF
981 #line 982 "configure"
982 #include "confdefs.h"
983 #include <linux/fs.h>
984 EOF
985 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
986 { (eval echo configure:987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
987 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
988 if test -z "$ac_err"; then
989   rm -rf conftest*
990   eval "ac_cv_header_$ac_safe=yes"
991 else
992   echo "$ac_err" >&5
993   echo "configure: failed program was:" >&5
994   cat conftest.$ac_ext >&5
995   rm -rf conftest*
996   eval "ac_cv_header_$ac_safe=no"
997 fi
998 rm -f conftest*
999 fi
1000 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1001   echo "$ac_t""yes" 1>&6
1002   linux_headers=yes
1003 else
1004   echo "$ac_t""no" 1>&6
1005 linux_headers=no
1006 fi
1007
1008 if test "$linux_headers" != yes; then
1009   LINUX_INCLUDE='-I$(top_builddir)/include'
1010 fi
1011
1012 LIB_EXT=.a
1013 STATIC_LIB_EXT=.a
1014 PROFILE_LIB_EXT=.a
1015 # Check whether --with-ldopts or --without-ldopts was given.
1016 if test "${with_ldopts+set}" = set; then
1017   withval="$with_ldopts"
1018   echo "$ac_t""LDFLAGS is $withval" 1>&6
1019 LDFLAGS=$withval
1020 else
1021   LDFLAGS=
1022 fi
1023
1024 # Check whether --with-root-prefix or --without-root-prefix was given.
1025 if test "${with_root_prefix+set}" = set; then
1026   withval="$with_root_prefix"
1027   root_prefix=$withval
1028 else
1029   root_prefix=NONE
1030 fi
1031 # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
1032 if test "${enable_dll_shlibs+set}" = set; then
1033   enableval="$enable_dll_shlibs"
1034   if test "$enableval" = "no"
1035 then
1036         DLL_CMT=#
1037         MAKEFILE_DLL=/dev/null
1038         echo "Disabling DLL shared libraries"
1039 else
1040         DLL_CMT=
1041         MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
1042         BINARY_TYPE=dllbin
1043         LIB_EXT=.sa
1044         echo "Enabling DLL shared libraries"
1045 fi
1046
1047 else
1048   MAKEFILE_DLL=/dev/null
1049 DLL_CMT=#
1050 echo "Disabling DLL shared libraries by default"
1051
1052 fi
1053
1054
1055
1056 # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
1057 if test "${enable_elf_shlibs+set}" = set; then
1058   enableval="$enable_elf_shlibs"
1059   if test "$enableval" = "no"
1060 then
1061         ELF_CMT=#
1062         MAKEFILE_ELF=/dev/null
1063         echo "Disabling ELF shared libraries"
1064 else
1065         ELF_CMT=
1066         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
1067         BINARY_TYPE=elfbin
1068         LIB_EXT=.so
1069         echo "Enabling ELF shared libraries"
1070 fi
1071
1072 else
1073   MAKEFILE_ELF=/dev/null
1074 ELF_CMT=#
1075 echo "Disabling ELF shared libraries by default"
1076
1077 fi
1078
1079
1080
1081 # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
1082 if test "${enable_bsd_shlibs+set}" = set; then
1083   enableval="$enable_bsd_shlibs"
1084   if test "$enableval" = "no"
1085 then
1086         BSDLIB_CMT=#
1087         MAKEFILE_BSDLIB=/dev/null
1088         echo "Disabling BSD shared libraries"
1089 else
1090         BSDLIB_CMT=
1091         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
1092         LIB_EXT=.so
1093         echo "Enabling BSD shared libraries"
1094 fi
1095
1096 else
1097   MAKEFILE_BSDLIB=/dev/null
1098 BSDLIB_CMT=#
1099 echo "Disabling BSD shared libraries by default"
1100
1101 fi
1102
1103
1104
1105 # Check whether --enable-profile or --disable-profile was given.
1106 if test "${enable_profile+set}" = set; then
1107   enableval="$enable_profile"
1108   if test "$enableval" = "no"
1109 then
1110         PROFILE_CMT=#
1111         MAKEFILE_PROFILE=/dev/null
1112         echo "Disabling profiling libraries"
1113 else
1114         PROFILE_CMT=
1115         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
1116         PROFILED_LIB_EXT=_p.a
1117         echo "Building profiling libraries"
1118 fi
1119
1120 else
1121   PROFILE_CMT=#
1122 MAKEFILE_PROFILE=/dev/null
1123 echo "Disabling profiling libraries by default"
1124
1125 fi
1126
1127
1128
1129 # Check whether --enable-checker or --disable-checker was given.
1130 if test "${enable_checker+set}" = set; then
1131   enableval="$enable_checker"
1132   if test "$enableval" = "no"
1133 then
1134         CHECKER_CMT=#
1135         MAKEFILE_CHECKER=/dev/null
1136         echo "Disabling checker libraries"
1137 else
1138         CHECKER_CMT=
1139         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
1140         echo "Building checker libraries"
1141 fi
1142
1143 else
1144   CHECKER_CMT=#
1145 MAKEFILE_CHECKER=/dev/null
1146 echo "Disabling checker libraries by default"
1147
1148 fi
1149
1150
1151
1152
1153
1154
1155 # Check whether --enable-gcc-wall or --disable-gcc-wall was given.
1156 if test "${enable_gcc_wall+set}" = set; then
1157   enableval="$enable_gcc_wall"
1158   if test "$enableval" = "no"
1159 then
1160         W=#
1161         echo "Disabling GCC warnings"
1162 else
1163         W=
1164         echo "Enabling GCC warnings"
1165 fi
1166
1167 else
1168   W=#
1169 echo "Disabling GCC warnings by default"
1170
1171 fi
1172
1173
1174 # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
1175 if test "${enable_dynamic_e2fsck+set}" = set; then
1176   enableval="$enable_dynamic_e2fsck"
1177   if test "$enableval" = "no"
1178 then
1179         E2FSCK_TYPE=static
1180         echo "Building e2fsck statically"
1181 else
1182         E2FSCK_TYPE=shared
1183         echo "Building e2fsck dynamically"
1184 fi
1185
1186 else
1187   E2FSCK_TYPE=static
1188 echo "Building e2fsck statically by default"
1189
1190 fi
1191
1192
1193 # Check whether --enable-fsck or --disable-fsck was given.
1194 if test "${enable_fsck+set}" = set; then
1195   enableval="$enable_fsck"
1196   if test "$enableval" = "no"
1197 then
1198         FSCK_PROG='' FSCK_MAN=''
1199         echo "Not building fsck wrapper"
1200 else
1201         FSCK_PROG=fsck FSCK_MAN=fsck.8
1202         echo "Building fsck wrapper"
1203 fi
1204
1205 else
1206   case "$host_os" in
1207   gnu*)
1208     FSCK_PROG='' FSCK_MAN=''
1209     echo "Not building fsck wrapper by default"
1210     ;;
1211   *)
1212     FSCK_PROG=fsck FSCK_MAN=fsck.8
1213     echo "Building fsck wrapper by default"
1214 esac
1215
1216 fi
1217
1218
1219
1220 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1221
1222 # Check whether --enable-old-bitops or --disable-old-bitops was given.
1223 if test "${enable_old_bitops+set}" = set; then
1224   enableval="$enable_old_bitops"
1225   if test "$enableval" = "no"
1226 then
1227         echo "Using new (standard) bitmask operations"
1228 else
1229         cat >> confdefs.h <<\EOF
1230 #define EXT2_OLD_BITOPS 1
1231 EOF
1232
1233         echo "Using old (native) bitmask operations"
1234
1235 fi
1236
1237 else
1238   echo "Using standard bitmask operations by default"
1239
1240 fi
1241
1242
1243 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1244 echo "configure:1245: checking whether ${MAKE-make} sets \${MAKE}" >&5
1245 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1246 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1247   echo $ac_n "(cached) $ac_c" 1>&6
1248 else
1249   cat > conftestmake <<\EOF
1250 all:
1251         @echo 'ac_maketemp="${MAKE}"'
1252 EOF
1253 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1254 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1255 if test -n "$ac_maketemp"; then
1256   eval ac_cv_prog_make_${ac_make}_set=yes
1257 else
1258   eval ac_cv_prog_make_${ac_make}_set=no
1259 fi
1260 rm -f conftestmake
1261 fi
1262 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1263   echo "$ac_t""yes" 1>&6
1264   SET_MAKE=
1265 else
1266   echo "$ac_t""no" 1>&6
1267   SET_MAKE="MAKE=${MAKE-make}"
1268 fi
1269
1270 # Extract the first word of "ln", so it can be a program name with args.
1271 set dummy ln; ac_word=$2
1272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1273 echo "configure:1274: checking for $ac_word" >&5
1274 if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
1275   echo $ac_n "(cached) $ac_c" 1>&6
1276 else
1277   case "$LN" in
1278   /*)
1279   ac_cv_path_LN="$LN" # Let the user override the test with a path.
1280   ;;
1281   ?:/*)                  
1282   ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
1283   ;;
1284   *)
1285   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1286   ac_dummy="$PATH"
1287   for ac_dir in $ac_dummy; do 
1288     test -z "$ac_dir" && ac_dir=.
1289     if test -f $ac_dir/$ac_word; then
1290       ac_cv_path_LN="$ac_dir/$ac_word"
1291       break
1292     fi
1293   done
1294   IFS="$ac_save_ifs"
1295   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
1296   ;;
1297 esac
1298 fi
1299 LN="$ac_cv_path_LN"
1300 if test -n "$LN"; then
1301   echo "$ac_t""$LN" 1>&6
1302 else
1303   echo "$ac_t""no" 1>&6
1304 fi
1305
1306 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1307 echo "configure:1308: checking whether ln -s works" >&5
1308 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1309   echo $ac_n "(cached) $ac_c" 1>&6
1310 else
1311   rm -f conftestdata
1312 if ln -s X conftestdata 2>/dev/null
1313 then
1314   rm -f conftestdata
1315   ac_cv_prog_LN_S="ln -s"
1316 else
1317   ac_cv_prog_LN_S=ln
1318 fi
1319 fi
1320 LN_S="$ac_cv_prog_LN_S"
1321 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1322   echo "$ac_t""yes" 1>&6
1323 else
1324   echo "$ac_t""no" 1>&6
1325 fi
1326
1327 # Extract the first word of "mv", so it can be a program name with args.
1328 set dummy mv; ac_word=$2
1329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1330 echo "configure:1331: checking for $ac_word" >&5
1331 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1332   echo $ac_n "(cached) $ac_c" 1>&6
1333 else
1334   case "$MV" in
1335   /*)
1336   ac_cv_path_MV="$MV" # Let the user override the test with a path.
1337   ;;
1338   ?:/*)                  
1339   ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1340   ;;
1341   *)
1342   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1343   ac_dummy="$PATH"
1344   for ac_dir in $ac_dummy; do 
1345     test -z "$ac_dir" && ac_dir=.
1346     if test -f $ac_dir/$ac_word; then
1347       ac_cv_path_MV="$ac_dir/$ac_word"
1348       break
1349     fi
1350   done
1351   IFS="$ac_save_ifs"
1352   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
1353   ;;
1354 esac
1355 fi
1356 MV="$ac_cv_path_MV"
1357 if test -n "$MV"; then
1358   echo "$ac_t""$MV" 1>&6
1359 else
1360   echo "$ac_t""no" 1>&6
1361 fi
1362
1363 # Extract the first word of "cp", so it can be a program name with args.
1364 set dummy cp; ac_word=$2
1365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1366 echo "configure:1367: checking for $ac_word" >&5
1367 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1368   echo $ac_n "(cached) $ac_c" 1>&6
1369 else
1370   case "$CP" in
1371   /*)
1372   ac_cv_path_CP="$CP" # Let the user override the test with a path.
1373   ;;
1374   ?:/*)                  
1375   ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1376   ;;
1377   *)
1378   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1379   ac_dummy="$PATH"
1380   for ac_dir in $ac_dummy; do 
1381     test -z "$ac_dir" && ac_dir=.
1382     if test -f $ac_dir/$ac_word; then
1383       ac_cv_path_CP="$ac_dir/$ac_word"
1384       break
1385     fi
1386   done
1387   IFS="$ac_save_ifs"
1388   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1389   ;;
1390 esac
1391 fi
1392 CP="$ac_cv_path_CP"
1393 if test -n "$CP"; then
1394   echo "$ac_t""$CP" 1>&6
1395 else
1396   echo "$ac_t""no" 1>&6
1397 fi
1398
1399 # Extract the first word of "rm", so it can be a program name with args.
1400 set dummy rm; ac_word=$2
1401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1402 echo "configure:1403: checking for $ac_word" >&5
1403 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1404   echo $ac_n "(cached) $ac_c" 1>&6
1405 else
1406   case "$RM" in
1407   /*)
1408   ac_cv_path_RM="$RM" # Let the user override the test with a path.
1409   ;;
1410   ?:/*)                  
1411   ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1412   ;;
1413   *)
1414   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1415   ac_dummy="$PATH"
1416   for ac_dir in $ac_dummy; do 
1417     test -z "$ac_dir" && ac_dir=.
1418     if test -f $ac_dir/$ac_word; then
1419       ac_cv_path_RM="$ac_dir/$ac_word"
1420       break
1421     fi
1422   done
1423   IFS="$ac_save_ifs"
1424   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1425   ;;
1426 esac
1427 fi
1428 RM="$ac_cv_path_RM"
1429 if test -n "$RM"; then
1430   echo "$ac_t""$RM" 1>&6
1431 else
1432   echo "$ac_t""no" 1>&6
1433 fi
1434
1435 # Extract the first word of "chmod", so it can be a program name with args.
1436 set dummy chmod; ac_word=$2
1437 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1438 echo "configure:1439: checking for $ac_word" >&5
1439 if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
1440   echo $ac_n "(cached) $ac_c" 1>&6
1441 else
1442   case "$CHMOD" in
1443   /*)
1444   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
1445   ;;
1446   ?:/*)                  
1447   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
1448   ;;
1449   *)
1450   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1451   ac_dummy="$PATH"
1452   for ac_dir in $ac_dummy; do 
1453     test -z "$ac_dir" && ac_dir=.
1454     if test -f $ac_dir/$ac_word; then
1455       ac_cv_path_CHMOD="$ac_dir/$ac_word"
1456       break
1457     fi
1458   done
1459   IFS="$ac_save_ifs"
1460   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
1461   ;;
1462 esac
1463 fi
1464 CHMOD="$ac_cv_path_CHMOD"
1465 if test -n "$CHMOD"; then
1466   echo "$ac_t""$CHMOD" 1>&6
1467 else
1468   echo "$ac_t""no" 1>&6
1469 fi
1470
1471 # Extract the first word of "awk", so it can be a program name with args.
1472 set dummy awk; ac_word=$2
1473 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1474 echo "configure:1475: checking for $ac_word" >&5
1475 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
1476   echo $ac_n "(cached) $ac_c" 1>&6
1477 else
1478   case "$AWK" in
1479   /*)
1480   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
1481   ;;
1482   ?:/*)                  
1483   ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
1484   ;;
1485   *)
1486   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1487   ac_dummy="$PATH"
1488   for ac_dir in $ac_dummy; do 
1489     test -z "$ac_dir" && ac_dir=.
1490     if test -f $ac_dir/$ac_word; then
1491       ac_cv_path_AWK="$ac_dir/$ac_word"
1492       break
1493     fi
1494   done
1495   IFS="$ac_save_ifs"
1496   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
1497   ;;
1498 esac
1499 fi
1500 AWK="$ac_cv_path_AWK"
1501 if test -n "$AWK"; then
1502   echo "$ac_t""$AWK" 1>&6
1503 else
1504   echo "$ac_t""no" 1>&6
1505 fi
1506
1507 # Extract the first word of "sed", so it can be a program name with args.
1508 set dummy sed; ac_word=$2
1509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1510 echo "configure:1511: checking for $ac_word" >&5
1511 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1512   echo $ac_n "(cached) $ac_c" 1>&6
1513 else
1514   case "$SED" in
1515   /*)
1516   ac_cv_path_SED="$SED" # Let the user override the test with a path.
1517   ;;
1518   ?:/*)                  
1519   ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
1520   ;;
1521   *)
1522   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1523   ac_dummy="$PATH"
1524   for ac_dir in $ac_dummy; do 
1525     test -z "$ac_dir" && ac_dir=.
1526     if test -f $ac_dir/$ac_word; then
1527       ac_cv_path_SED="$ac_dir/$ac_word"
1528       break
1529     fi
1530   done
1531   IFS="$ac_save_ifs"
1532   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
1533   ;;
1534 esac
1535 fi
1536 SED="$ac_cv_path_SED"
1537 if test -n "$SED"; then
1538   echo "$ac_t""$SED" 1>&6
1539 else
1540   echo "$ac_t""no" 1>&6
1541 fi
1542
1543 # Extract the first word of "perl", so it can be a program name with args.
1544 set dummy perl; ac_word=$2
1545 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1546 echo "configure:1547: checking for $ac_word" >&5
1547 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1548   echo $ac_n "(cached) $ac_c" 1>&6
1549 else
1550   case "$PERL" in
1551   /*)
1552   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1553   ;;
1554   ?:/*)                  
1555   ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
1556   ;;
1557   *)
1558   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1559   ac_dummy="$PATH"
1560   for ac_dir in $ac_dummy; do 
1561     test -z "$ac_dir" && ac_dir=.
1562     if test -f $ac_dir/$ac_word; then
1563       ac_cv_path_PERL="$ac_dir/$ac_word"
1564       break
1565     fi
1566   done
1567   IFS="$ac_save_ifs"
1568   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
1569   ;;
1570 esac
1571 fi
1572 PERL="$ac_cv_path_PERL"
1573 if test -n "$PERL"; then
1574   echo "$ac_t""$PERL" 1>&6
1575 else
1576   echo "$ac_t""no" 1>&6
1577 fi
1578
1579 echo $ac_n "checking build system type""... $ac_c" 1>&6
1580 echo "configure:1581: checking build system type" >&5
1581
1582 build_alias=$build
1583 case "$build_alias" in
1584 NONE)
1585   case $nonopt in
1586   NONE) build_alias=$host_alias ;;
1587   *) build_alias=$nonopt ;;
1588   esac ;;
1589 esac
1590
1591 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1592 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1593 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1594 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1595 echo "$ac_t""$build" 1>&6
1596
1597 if test $host != $build; then
1598   ac_tool_prefix=${host_alias}-
1599 else
1600   ac_tool_prefix=
1601 fi
1602
1603 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1604 set dummy ${ac_tool_prefix}ar; ac_word=$2
1605 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1606 echo "configure:1607: checking for $ac_word" >&5
1607 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1608   echo $ac_n "(cached) $ac_c" 1>&6
1609 else
1610   if test -n "$AR"; then
1611   ac_cv_prog_AR="$AR" # Let the user override the test.
1612 else
1613   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1614   ac_dummy="$PATH"
1615   for ac_dir in $ac_dummy; do
1616     test -z "$ac_dir" && ac_dir=.
1617     if test -f $ac_dir/$ac_word; then
1618       ac_cv_prog_AR="${ac_tool_prefix}ar"
1619       break
1620     fi
1621   done
1622   IFS="$ac_save_ifs"
1623 fi
1624 fi
1625 AR="$ac_cv_prog_AR"
1626 if test -n "$AR"; then
1627   echo "$ac_t""$AR" 1>&6
1628 else
1629   echo "$ac_t""no" 1>&6
1630 fi
1631
1632
1633 if test -z "$ac_cv_prog_AR"; then
1634 if test -n "$ac_tool_prefix"; then
1635   # Extract the first word of "ar", so it can be a program name with args.
1636 set dummy ar; ac_word=$2
1637 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1638 echo "configure:1639: checking for $ac_word" >&5
1639 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1640   echo $ac_n "(cached) $ac_c" 1>&6
1641 else
1642   if test -n "$AR"; then
1643   ac_cv_prog_AR="$AR" # Let the user override the test.
1644 else
1645   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1646   ac_dummy="$PATH"
1647   for ac_dir in $ac_dummy; do
1648     test -z "$ac_dir" && ac_dir=.
1649     if test -f $ac_dir/$ac_word; then
1650       ac_cv_prog_AR="ar"
1651       break
1652     fi
1653   done
1654   IFS="$ac_save_ifs"
1655   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1656 fi
1657 fi
1658 AR="$ac_cv_prog_AR"
1659 if test -n "$AR"; then
1660   echo "$ac_t""$AR" 1>&6
1661 else
1662   echo "$ac_t""no" 1>&6
1663 fi
1664
1665 else
1666   AR="ar"
1667 fi
1668 fi
1669
1670 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1671 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1673 echo "configure:1674: checking for $ac_word" >&5
1674 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1675   echo $ac_n "(cached) $ac_c" 1>&6
1676 else
1677   if test -n "$RANLIB"; then
1678   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1679 else
1680   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1681   ac_dummy="$PATH"
1682   for ac_dir in $ac_dummy; do
1683     test -z "$ac_dir" && ac_dir=.
1684     if test -f $ac_dir/$ac_word; then
1685       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1686       break
1687     fi
1688   done
1689   IFS="$ac_save_ifs"
1690 fi
1691 fi
1692 RANLIB="$ac_cv_prog_RANLIB"
1693 if test -n "$RANLIB"; then
1694   echo "$ac_t""$RANLIB" 1>&6
1695 else
1696   echo "$ac_t""no" 1>&6
1697 fi
1698
1699
1700 if test -z "$ac_cv_prog_RANLIB"; then
1701 if test -n "$ac_tool_prefix"; then
1702   # Extract the first word of "ranlib", so it can be a program name with args.
1703 set dummy ranlib; ac_word=$2
1704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1705 echo "configure:1706: checking for $ac_word" >&5
1706 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1707   echo $ac_n "(cached) $ac_c" 1>&6
1708 else
1709   if test -n "$RANLIB"; then
1710   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1711 else
1712   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1713   ac_dummy="$PATH"
1714   for ac_dir in $ac_dummy; do
1715     test -z "$ac_dir" && ac_dir=.
1716     if test -f $ac_dir/$ac_word; then
1717       ac_cv_prog_RANLIB="ranlib"
1718       break
1719     fi
1720   done
1721   IFS="$ac_save_ifs"
1722   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1723 fi
1724 fi
1725 RANLIB="$ac_cv_prog_RANLIB"
1726 if test -n "$RANLIB"; then
1727   echo "$ac_t""$RANLIB" 1>&6
1728 else
1729   echo "$ac_t""no" 1>&6
1730 fi
1731
1732 else
1733   RANLIB=":"
1734 fi
1735 fi
1736
1737 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1738 set dummy ${ac_tool_prefix}strip; ac_word=$2
1739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1740 echo "configure:1741: checking for $ac_word" >&5
1741 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1742   echo $ac_n "(cached) $ac_c" 1>&6
1743 else
1744   if test -n "$STRIP"; then
1745   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1746 else
1747   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1748   ac_dummy="$PATH"
1749   for ac_dir in $ac_dummy; do
1750     test -z "$ac_dir" && ac_dir=.
1751     if test -f $ac_dir/$ac_word; then
1752       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1753       break
1754     fi
1755   done
1756   IFS="$ac_save_ifs"
1757 fi
1758 fi
1759 STRIP="$ac_cv_prog_STRIP"
1760 if test -n "$STRIP"; then
1761   echo "$ac_t""$STRIP" 1>&6
1762 else
1763   echo "$ac_t""no" 1>&6
1764 fi
1765
1766
1767 if test -z "$ac_cv_prog_STRIP"; then
1768 if test -n "$ac_tool_prefix"; then
1769   # Extract the first word of "strip", so it can be a program name with args.
1770 set dummy strip; ac_word=$2
1771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1772 echo "configure:1773: checking for $ac_word" >&5
1773 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1774   echo $ac_n "(cached) $ac_c" 1>&6
1775 else
1776   if test -n "$STRIP"; then
1777   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1778 else
1779   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1780   ac_dummy="$PATH"
1781   for ac_dir in $ac_dummy; do
1782     test -z "$ac_dir" && ac_dir=.
1783     if test -f $ac_dir/$ac_word; then
1784       ac_cv_prog_STRIP="strip"
1785       break
1786     fi
1787   done
1788   IFS="$ac_save_ifs"
1789   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1790 fi
1791 fi
1792 STRIP="$ac_cv_prog_STRIP"
1793 if test -n "$STRIP"; then
1794   echo "$ac_t""$STRIP" 1>&6
1795 else
1796   echo "$ac_t""no" 1>&6
1797 fi
1798
1799 else
1800   STRIP=":"
1801 fi
1802 fi
1803
1804 # Find a good install program.  We prefer a C program (faster),
1805 # so one script is as good as another.  But avoid the broken or
1806 # incompatible versions:
1807 # SysV /etc/install, /usr/sbin/install
1808 # SunOS /usr/etc/install
1809 # IRIX /sbin/install
1810 # AIX /bin/install
1811 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1812 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1813 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1814 # ./install, which can be erroneously created by make from ./install.sh.
1815 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1816 echo "configure:1817: checking for a BSD compatible install" >&5
1817 if test -z "$INSTALL"; then
1818 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1819   echo $ac_n "(cached) $ac_c" 1>&6
1820 else
1821     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1822   for ac_dir in $PATH; do
1823     # Account for people who put trailing slashes in PATH elements.
1824     case "$ac_dir/" in
1825     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1826     *)
1827       # OSF1 and SCO ODT 3.0 have their own names for install.
1828       # Don't use installbsd from OSF since it installs stuff as root
1829       # by default.
1830       for ac_prog in ginstall scoinst install; do
1831         if test -f $ac_dir/$ac_prog; then
1832           if test $ac_prog = install &&
1833             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1834             # AIX install.  It has an incompatible calling convention.
1835             :
1836           else
1837             ac_cv_path_install="$ac_dir/$ac_prog -c"
1838             break 2
1839           fi
1840         fi
1841       done
1842       ;;
1843     esac
1844   done
1845   IFS="$ac_save_IFS"
1846
1847 fi
1848   if test "${ac_cv_path_install+set}" = set; then
1849     INSTALL="$ac_cv_path_install"
1850   else
1851     # As a last resort, use the slow shell script.  We don't cache a
1852     # path for INSTALL within a source directory, because that will
1853     # break other packages using the cache if that directory is
1854     # removed, or if the path is relative.
1855     INSTALL="$ac_install_sh"
1856   fi
1857 fi
1858 echo "$ac_t""$INSTALL" 1>&6
1859
1860 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1861 # It thinks the first close brace ends the variable substitution.
1862 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1863
1864 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1865
1866 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1867
1868 # See if we need a separate native compiler.
1869 if test $cross_compiling = no; then
1870   BUILD_CC="$CC"
1871   
1872 else
1873   for ac_prog in gcc cc
1874 do
1875 # Extract the first word of "$ac_prog", so it can be a program name with args.
1876 set dummy $ac_prog; ac_word=$2
1877 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1878 echo "configure:1879: checking for $ac_word" >&5
1879 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
1880   echo $ac_n "(cached) $ac_c" 1>&6
1881 else
1882   if test -n "$BUILD_CC"; then
1883   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1884 else
1885   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1886   ac_dummy="$PATH"
1887   for ac_dir in $ac_dummy; do
1888     test -z "$ac_dir" && ac_dir=.
1889     if test -f $ac_dir/$ac_word; then
1890       ac_cv_prog_BUILD_CC="$ac_prog"
1891       break
1892     fi
1893   done
1894   IFS="$ac_save_ifs"
1895 fi
1896 fi
1897 BUILD_CC="$ac_cv_prog_BUILD_CC"
1898 if test -n "$BUILD_CC"; then
1899   echo "$ac_t""$BUILD_CC" 1>&6
1900 else
1901   echo "$ac_t""no" 1>&6
1902 fi
1903
1904 test -n "$BUILD_CC" && break
1905 done
1906
1907 fi
1908 for ac_hdr in stdlib.h unistd.h stdarg.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/sockio.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h
1909 do
1910 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1911 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1912 echo "configure:1913: checking for $ac_hdr" >&5
1913 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1914   echo $ac_n "(cached) $ac_c" 1>&6
1915 else
1916   cat > conftest.$ac_ext <<EOF
1917 #line 1918 "configure"
1918 #include "confdefs.h"
1919 #include <$ac_hdr>
1920 EOF
1921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1922 { (eval echo configure:1923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1924 if test -z "$ac_err"; then
1925   rm -rf conftest*
1926   eval "ac_cv_header_$ac_safe=yes"
1927 else
1928   echo "$ac_err" >&5
1929   echo "configure: failed program was:" >&5
1930   cat conftest.$ac_ext >&5
1931   rm -rf conftest*
1932   eval "ac_cv_header_$ac_safe=no"
1933 fi
1934 rm -f conftest*
1935 fi
1936 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1937   echo "$ac_t""yes" 1>&6
1938     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1939   cat >> confdefs.h <<EOF
1940 #define $ac_tr_hdr 1
1941 EOF
1942  
1943 else
1944   echo "$ac_t""no" 1>&6
1945 fi
1946 done
1947
1948 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1949 echo "configure:1950: checking for vprintf" >&5
1950 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1951   echo $ac_n "(cached) $ac_c" 1>&6
1952 else
1953   cat > conftest.$ac_ext <<EOF
1954 #line 1955 "configure"
1955 #include "confdefs.h"
1956 /* System header to define __stub macros and hopefully few prototypes,
1957     which can conflict with char vprintf(); below.  */
1958 #include <assert.h>
1959 /* Override any gcc2 internal prototype to avoid an error.  */
1960 /* We use char because int might match the return type of a gcc2
1961     builtin and then its argument prototype would still apply.  */
1962 char vprintf();
1963
1964 int main() {
1965
1966 /* The GNU C library defines this for functions which it implements
1967     to always fail with ENOSYS.  Some functions are actually named
1968     something starting with __ and the normal name is an alias.  */
1969 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1970 choke me
1971 #else
1972 vprintf();
1973 #endif
1974
1975 ; return 0; }
1976 EOF
1977 if { (eval echo configure:1978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1978   rm -rf conftest*
1979   eval "ac_cv_func_vprintf=yes"
1980 else
1981   echo "configure: failed program was:" >&5
1982   cat conftest.$ac_ext >&5
1983   rm -rf conftest*
1984   eval "ac_cv_func_vprintf=no"
1985 fi
1986 rm -f conftest*
1987 fi
1988
1989 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1990   echo "$ac_t""yes" 1>&6
1991   cat >> confdefs.h <<\EOF
1992 #define HAVE_VPRINTF 1
1993 EOF
1994
1995 else
1996   echo "$ac_t""no" 1>&6
1997 fi
1998
1999 if test "$ac_cv_func_vprintf" != yes; then
2000 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2001 echo "configure:2002: checking for _doprnt" >&5
2002 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2003   echo $ac_n "(cached) $ac_c" 1>&6
2004 else
2005   cat > conftest.$ac_ext <<EOF
2006 #line 2007 "configure"
2007 #include "confdefs.h"
2008 /* System header to define __stub macros and hopefully few prototypes,
2009     which can conflict with char _doprnt(); below.  */
2010 #include <assert.h>
2011 /* Override any gcc2 internal prototype to avoid an error.  */
2012 /* We use char because int might match the return type of a gcc2
2013     builtin and then its argument prototype would still apply.  */
2014 char _doprnt();
2015
2016 int main() {
2017
2018 /* The GNU C library defines this for functions which it implements
2019     to always fail with ENOSYS.  Some functions are actually named
2020     something starting with __ and the normal name is an alias.  */
2021 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2022 choke me
2023 #else
2024 _doprnt();
2025 #endif
2026
2027 ; return 0; }
2028 EOF
2029 if { (eval echo configure:2030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2030   rm -rf conftest*
2031   eval "ac_cv_func__doprnt=yes"
2032 else
2033   echo "configure: failed program was:" >&5
2034   cat conftest.$ac_ext >&5
2035   rm -rf conftest*
2036   eval "ac_cv_func__doprnt=no"
2037 fi
2038 rm -f conftest*
2039 fi
2040
2041 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2042   echo "$ac_t""yes" 1>&6
2043   cat >> confdefs.h <<\EOF
2044 #define HAVE_DOPRNT 1
2045 EOF
2046
2047 else
2048   echo "$ac_t""no" 1>&6
2049 fi
2050
2051 fi
2052
2053 echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
2054 echo "configure:2055: checking whether struct dirent has a d_namlen field" >&5
2055 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
2056   echo $ac_n "(cached) $ac_c" 1>&6
2057 else
2058   cat > conftest.$ac_ext <<EOF
2059 #line 2060 "configure"
2060 #include "confdefs.h"
2061 #include <sys/types.h>
2062 #include <dirent.h>
2063 int main() {
2064 struct dirent de; de.d_namlen = 0;
2065 ; return 0; }
2066 EOF
2067 if { (eval echo configure:2068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2068   rm -rf conftest*
2069   e2fsprogs_cv_struct_d_namlen=yes
2070 else
2071   echo "configure: failed program was:" >&5
2072   cat conftest.$ac_ext >&5
2073   rm -rf conftest*
2074   e2fsprogs_cv_struct_d_namlen=no
2075 fi
2076 rm -f conftest*
2077 fi
2078
2079 echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
2080 if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
2081   cat >> confdefs.h <<\EOF
2082 #define HAVE_DIRENT_NAMLEN 1
2083 EOF
2084
2085 fi
2086 echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
2087 echo "configure:2088: checking whether llseek declared in unistd.h" >&5
2088 if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
2089   echo $ac_n "(cached) $ac_c" 1>&6
2090 else
2091   cat > conftest.$ac_ext <<EOF
2092 #line 2093 "configure"
2093 #include "confdefs.h"
2094 #include <unistd.h>
2095 int main() {
2096 extern int llseek(int);
2097 ; return 0; }
2098 EOF
2099 if { (eval echo configure:2100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2100   rm -rf conftest*
2101   e2fsprogs_cv_have_llseek_prototype=no
2102 else
2103   echo "configure: failed program was:" >&5
2104   cat conftest.$ac_ext >&5
2105   rm -rf conftest*
2106   e2fsprogs_cv_have_llseek_prototype=yes
2107 fi
2108 rm -f conftest*
2109 fi
2110
2111 echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
2112 if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
2113    cat >> confdefs.h <<\EOF
2114 #define HAVE_LLSEEK_PROTOTYPE 1
2115 EOF
2116
2117 fi
2118 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
2119   # if cross-compiling, with no cached values, just assume something common. 
2120   ac_cv_sizeof_short=2
2121   ac_cv_sizeof_int=4
2122   ac_cv_sizeof_long=4
2123   ac_cv_sizeof_long_long=8
2124   echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" 1>&2
2125 fi
2126 echo $ac_n "checking size of short""... $ac_c" 1>&6
2127 echo "configure:2128: checking size of short" >&5
2128 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2129   echo $ac_n "(cached) $ac_c" 1>&6
2130 else
2131   if test "$cross_compiling" = yes; then
2132     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2133 else
2134   cat > conftest.$ac_ext <<EOF
2135 #line 2136 "configure"
2136 #include "confdefs.h"
2137 #include <stdio.h>
2138 main()
2139 {
2140   FILE *f=fopen("conftestval", "w");
2141   if (!f) exit(1);
2142   fprintf(f, "%d\n", sizeof(short));
2143   exit(0);
2144 }
2145 EOF
2146 if { (eval echo configure:2147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2147 then
2148   ac_cv_sizeof_short=`cat conftestval`
2149 else
2150   echo "configure: failed program was:" >&5
2151   cat conftest.$ac_ext >&5
2152   rm -fr conftest*
2153   ac_cv_sizeof_short=0
2154 fi
2155 rm -fr conftest*
2156 fi
2157
2158 fi
2159 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2160 cat >> confdefs.h <<EOF
2161 #define SIZEOF_SHORT $ac_cv_sizeof_short
2162 EOF
2163
2164
2165 echo $ac_n "checking size of int""... $ac_c" 1>&6
2166 echo "configure:2167: checking size of int" >&5
2167 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2168   echo $ac_n "(cached) $ac_c" 1>&6
2169 else
2170   if test "$cross_compiling" = yes; then
2171     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2172 else
2173   cat > conftest.$ac_ext <<EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2176 #include <stdio.h>
2177 main()
2178 {
2179   FILE *f=fopen("conftestval", "w");
2180   if (!f) exit(1);
2181   fprintf(f, "%d\n", sizeof(int));
2182   exit(0);
2183 }
2184 EOF
2185 if { (eval echo configure:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2186 then
2187   ac_cv_sizeof_int=`cat conftestval`
2188 else
2189   echo "configure: failed program was:" >&5
2190   cat conftest.$ac_ext >&5
2191   rm -fr conftest*
2192   ac_cv_sizeof_int=0
2193 fi
2194 rm -fr conftest*
2195 fi
2196
2197 fi
2198 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2199 cat >> confdefs.h <<EOF
2200 #define SIZEOF_INT $ac_cv_sizeof_int
2201 EOF
2202
2203
2204 echo $ac_n "checking size of long""... $ac_c" 1>&6
2205 echo "configure:2206: checking size of long" >&5
2206 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2207   echo $ac_n "(cached) $ac_c" 1>&6
2208 else
2209   if test "$cross_compiling" = yes; then
2210     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2211 else
2212   cat > conftest.$ac_ext <<EOF
2213 #line 2214 "configure"
2214 #include "confdefs.h"
2215 #include <stdio.h>
2216 main()
2217 {
2218   FILE *f=fopen("conftestval", "w");
2219   if (!f) exit(1);
2220   fprintf(f, "%d\n", sizeof(long));
2221   exit(0);
2222 }
2223 EOF
2224 if { (eval echo configure:2225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2225 then
2226   ac_cv_sizeof_long=`cat conftestval`
2227 else
2228   echo "configure: failed program was:" >&5
2229   cat conftest.$ac_ext >&5
2230   rm -fr conftest*
2231   ac_cv_sizeof_long=0
2232 fi
2233 rm -fr conftest*
2234 fi
2235
2236 fi
2237 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2238 cat >> confdefs.h <<EOF
2239 #define SIZEOF_LONG $ac_cv_sizeof_long
2240 EOF
2241
2242
2243 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2244 echo "configure:2245: checking size of long long" >&5
2245 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2246   echo $ac_n "(cached) $ac_c" 1>&6
2247 else
2248   if test "$cross_compiling" = yes; then
2249     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2250 else
2251   cat > conftest.$ac_ext <<EOF
2252 #line 2253 "configure"
2253 #include "confdefs.h"
2254 #include <stdio.h>
2255 main()
2256 {
2257   FILE *f=fopen("conftestval", "w");
2258   if (!f) exit(1);
2259   fprintf(f, "%d\n", sizeof(long long));
2260   exit(0);
2261 }
2262 EOF
2263 if { (eval echo configure:2264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2264 then
2265   ac_cv_sizeof_long_long=`cat conftestval`
2266 else
2267   echo "configure: failed program was:" >&5
2268   cat conftest.$ac_ext >&5
2269   rm -fr conftest*
2270   ac_cv_sizeof_long_long=0
2271 fi
2272 rm -fr conftest*
2273 fi
2274
2275 fi
2276 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2277 cat >> confdefs.h <<EOF
2278 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2279 EOF
2280
2281
2282 SIZEOF_SHORT=$ac_cv_sizeof_short
2283 SIZEOF_INT=$ac_cv_sizeof_int
2284 SIZEOF_LONG=$ac_cv_sizeof_long
2285 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
2286
2287
2288
2289
2290 echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
2291 echo "configure:2292: checking whether struct stat has a st_flags field" >&5
2292 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
2293   echo $ac_n "(cached) $ac_c" 1>&6
2294 else
2295   cat > conftest.$ac_ext <<EOF
2296 #line 2297 "configure"
2297 #include "confdefs.h"
2298 #include <sys/stat.h>
2299 int main() {
2300 struct stat stat; stat.st_flags = 0;
2301 ; return 0; }
2302 EOF
2303 if { (eval echo configure:2304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2304   rm -rf conftest*
2305   e2fsprogs_cv_struct_st_flags=yes
2306 else
2307   echo "configure: failed program was:" >&5
2308   cat conftest.$ac_ext >&5
2309   rm -rf conftest*
2310   e2fsprogs_cv_struct_st_flags=no
2311 fi
2312 rm -f conftest*
2313 fi
2314
2315 echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
2316 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
2317   echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
2318 echo "configure:2319: checking whether st_flags field is useful" >&5
2319   if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
2320   echo $ac_n "(cached) $ac_c" 1>&6
2321 else
2322   cat > conftest.$ac_ext <<EOF
2323 #line 2324 "configure"
2324 #include "confdefs.h"
2325 #include <sys/stat.h>
2326 int main() {
2327 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
2328 ; return 0; }
2329 EOF
2330 if { (eval echo configure:2331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2331   rm -rf conftest*
2332   e2fsprogs_cv_struct_st_flags_immut=yes
2333 else
2334   echo "configure: failed program was:" >&5
2335   cat conftest.$ac_ext >&5
2336   rm -rf conftest*
2337   e2fsprogs_cv_struct_st_flags_immut=no
2338 fi
2339 rm -f conftest*
2340 fi
2341
2342   echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
2343   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
2344           cat >> confdefs.h <<\EOF
2345 #define HAVE_STAT_FLAGS 1
2346 EOF
2347
2348   fi
2349 fi
2350 for ac_func in chflags getrusage llseek strdup getmntinfo strcasecmp srandom fchown mallinfo
2351 do
2352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2353 echo "configure:2354: checking for $ac_func" >&5
2354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2355   echo $ac_n "(cached) $ac_c" 1>&6
2356 else
2357   cat > conftest.$ac_ext <<EOF
2358 #line 2359 "configure"
2359 #include "confdefs.h"
2360 /* System header to define __stub macros and hopefully few prototypes,
2361     which can conflict with char $ac_func(); below.  */
2362 #include <assert.h>
2363 /* Override any gcc2 internal prototype to avoid an error.  */
2364 /* We use char because int might match the return type of a gcc2
2365     builtin and then its argument prototype would still apply.  */
2366 char $ac_func();
2367
2368 int main() {
2369
2370 /* The GNU C library defines this for functions which it implements
2371     to always fail with ENOSYS.  Some functions are actually named
2372     something starting with __ and the normal name is an alias.  */
2373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2374 choke me
2375 #else
2376 $ac_func();
2377 #endif
2378
2379 ; return 0; }
2380 EOF
2381 if { (eval echo configure:2382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2382   rm -rf conftest*
2383   eval "ac_cv_func_$ac_func=yes"
2384 else
2385   echo "configure: failed program was:" >&5
2386   cat conftest.$ac_ext >&5
2387   rm -rf conftest*
2388   eval "ac_cv_func_$ac_func=no"
2389 fi
2390 rm -f conftest*
2391 fi
2392
2393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2394   echo "$ac_t""yes" 1>&6
2395     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2396   cat >> confdefs.h <<EOF
2397 #define $ac_tr_func 1
2398 EOF
2399  
2400 else
2401   echo "$ac_t""no" 1>&6
2402 fi
2403 done
2404
2405 echo $ac_n "checking ino_t defined by sys/types.h""... $ac_c" 1>&6
2406 echo "configure:2407: checking ino_t defined by sys/types.h" >&5
2407 if eval "test \"`echo '$''{'e2fsprogs_cv_ino_t'+set}'`\" = set"; then
2408   echo $ac_n "(cached) $ac_c" 1>&6
2409 else
2410   cat > conftest.$ac_ext <<EOF
2411 #line 2412 "configure"
2412 #include "confdefs.h"
2413 #include <sys/types.h>
2414 int main() {
2415 ino_t ino; ino = 0;
2416 ; return 0; }
2417 EOF
2418 if { (eval echo configure:2419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2419   rm -rf conftest*
2420   e2fsprogs_cv_ino_t=yes
2421 else
2422   echo "configure: failed program was:" >&5
2423   cat conftest.$ac_ext >&5
2424   rm -rf conftest*
2425   e2fsprogs_cv_ino_t=no
2426 fi
2427 rm -f conftest*
2428 fi
2429
2430 echo "$ac_t""$e2fsprogs_cv_ino_t" 1>&6
2431 if test "$e2fsprogs_cv_ino_t" = yes; then
2432    cat >> confdefs.h <<\EOF
2433 #define HAVE_INO_T 1
2434 EOF
2435
2436 fi
2437 SOCKET_LIB=''
2438 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2439 echo "configure:2440: checking for socket in -lsocket" >&5
2440 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2441 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2442   echo $ac_n "(cached) $ac_c" 1>&6
2443 else
2444   ac_save_LIBS="$LIBS"
2445 LIBS="-lsocket  $LIBS"
2446 cat > conftest.$ac_ext <<EOF
2447 #line 2448 "configure"
2448 #include "confdefs.h"
2449 /* Override any gcc2 internal prototype to avoid an error.  */
2450 /* We use char because int might match the return type of a gcc2
2451     builtin and then its argument prototype would still apply.  */
2452 char socket();
2453
2454 int main() {
2455 socket()
2456 ; return 0; }
2457 EOF
2458 if { (eval echo configure:2459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2459   rm -rf conftest*
2460   eval "ac_cv_lib_$ac_lib_var=yes"
2461 else
2462   echo "configure: failed program was:" >&5
2463   cat conftest.$ac_ext >&5
2464   rm -rf conftest*
2465   eval "ac_cv_lib_$ac_lib_var=no"
2466 fi
2467 rm -f conftest*
2468 LIBS="$ac_save_LIBS"
2469
2470 fi
2471 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2472   echo "$ac_t""yes" 1>&6
2473   SOCKET_LIB=-lsocket
2474 else
2475   echo "$ac_t""no" 1>&6
2476 fi
2477
2478
2479 echo $ac_n "checking for optreset""... $ac_c" 1>&6
2480 echo "configure:2481: checking for optreset" >&5
2481 if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
2482   echo $ac_n "(cached) $ac_c" 1>&6
2483 else
2484   cat > conftest.$ac_ext <<EOF
2485 #line 2486 "configure"
2486 #include "confdefs.h"
2487 #include <unistd.h>
2488 EOF
2489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2490   egrep "optreset" >/dev/null 2>&1; then
2491   rm -rf conftest*
2492   ac_cv_have_optreset=yes
2493 else
2494   rm -rf conftest*
2495   ac_cv_have_optreset=no
2496 fi
2497 rm -f conftest*
2498
2499 fi
2500 echo "$ac_t""$ac_cv_have_optreset" 1>&6
2501 if test $ac_cv_have_optreset = yes; then
2502   cat >> confdefs.h <<\EOF
2503 #define HAVE_OPTRESET 1
2504 EOF
2505
2506 fi
2507 echo $ac_n "checking whether the ext2 ioctls compile""... $ac_c" 1>&6
2508 echo "configure:2509: checking whether the ext2 ioctls compile" >&5
2509 if eval "test \"`echo '$''{'e2fsprogs_cv_ioctl_ext2'+set}'`\" = set"; then
2510   echo $ac_n "(cached) $ac_c" 1>&6
2511 else
2512   cat > conftest.$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2515 #include <linux/ext2_fs.h>
2516 #include <sys/ioctl.h>
2517 int main() {
2518 ioctl (0, EXT2_IOC_SETVERSION, 0);
2519 ; return 0; }
2520 EOF
2521 if { (eval echo configure:2522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2522   rm -rf conftest*
2523   e2fsprogs_cv_ioctl_ext2=yes
2524 else
2525   echo "configure: failed program was:" >&5
2526   cat conftest.$ac_ext >&5
2527   rm -rf conftest*
2528   e2fsprogs_cv_ioctl_ext2=no
2529 fi
2530 rm -f conftest*
2531 fi
2532
2533 echo "$ac_t""$e2fsprogs_cv_ioctl_ext2" 1>&6
2534 if test "$e2fsprogs_cv_ioctl_ext2" = yes; then
2535   cat >> confdefs.h <<\EOF
2536 #define HAVE_EXT2_IOCTLS 1
2537 EOF
2538
2539 fi
2540 case "$host_os" in
2541 linux* | gnu*)
2542         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
2543                 root_prefix="";
2544                 echo "On $host_os systems, root_prefix defaults to ''"
2545         fi
2546         ;;
2547 esac
2548 case "$host_os" in
2549 linux* | gnu*)
2550         if test "$prefix" = NONE ; then
2551                 prefix="/usr";
2552                 echo "On $host_os systems, prefix defaults to /usr"
2553         fi
2554 ;;
2555 esac
2556 if test "$root_prefix" = NONE ; then
2557         if test "$prefix" = NONE ; then
2558                 root_prefix="$ac_default_prefix"
2559         else
2560                 root_prefix="$prefix"
2561         fi
2562 fi
2563
2564 echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
2565 echo "configure:2566: checking whether linker accepts -static" >&5
2566 if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
2567   echo $ac_n "(cached) $ac_c" 1>&6
2568 else
2569   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
2570 cat > conftest.$ac_ext <<EOF
2571 #line 2572 "configure"
2572 #include "confdefs.h"
2573 #include <stdio.h>
2574 int main() {
2575 fflush(stdout);
2576 ; return 0; }
2577 EOF
2578 if { (eval echo configure:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2579   rm -rf conftest*
2580   ac_cv_e2fsprogs_use_static=yes
2581 else
2582   echo "configure: failed program was:" >&5
2583   cat conftest.$ac_ext >&5
2584   rm -rf conftest*
2585   ac_cv_e2fsprogs_use_static=no
2586 fi
2587 rm -f conftest*
2588 LDFLAGS=$SAVE_LDFLAGS
2589 fi
2590
2591 case "$host_os" in
2592 solaris2.*)
2593         ac_cv_e2fsprogs_use_static=no   
2594 ;;
2595 esac
2596 echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
2597 LDFLAG_STATIC=
2598 if test $ac_cv_e2fsprogs_use_static = yes; then
2599         LDFLAG_STATIC=-static
2600 fi
2601
2602 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
2603 ET_DIR=`cd ${srcdir}/lib/et; pwd`
2604
2605
2606 if test "$cross_compiling" = yes ; then
2607   DO_TEST_SUITE=
2608 else
2609   DO_TEST_SUITE=check
2610 fi
2611
2612 DO_SUBSTITUTE_SCRIPT=$srcdir/lib/do_substitute
2613
2614 test -d lib || mkdir lib
2615 test -d include || mkdir include
2616 test -d include/linux || mkdir include/linux
2617 test -d include/asm || mkdir include/asm
2618 rmakefile=
2619 if test -d ${srcdir}/resize ; then
2620    rmakefile=resize/Makefile
2621 fi
2622 trap '' 1 2 15
2623 cat > confcache <<\EOF
2624 # This file is a shell script that caches the results of configure
2625 # tests run on this system so they can be shared between configure
2626 # scripts and configure runs.  It is not useful on other systems.
2627 # If it contains results you don't want to keep, you may remove or edit it.
2628 #
2629 # By default, configure uses ./config.cache as the cache file,
2630 # creating it if it does not exist already.  You can give configure
2631 # the --cache-file=FILE option to use a different cache file; that is
2632 # what configure does when it calls configure scripts in
2633 # subdirectories, so they share the cache.
2634 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2635 # config.status only pays attention to the cache file if you give it the
2636 # --recheck option to rerun configure.
2637 #
2638 EOF
2639 # The following way of writing the cache mishandles newlines in values,
2640 # but we know of no workaround that is simple, portable, and efficient.
2641 # So, don't put newlines in cache variables' values.
2642 # Ultrix sh set writes to stderr and can't be redirected directly,
2643 # and sets the high bit in the cache file unless we assign to the vars.
2644 (set) 2>&1 |
2645   case `(ac_space=' '; set | grep ac_space) 2>&1` in
2646   *ac_space=\ *)
2647     # `set' does not quote correctly, so add quotes (double-quote substitution
2648     # turns \\\\ into \\, and sed turns \\ into \).
2649     sed -n \
2650       -e "s/'/'\\\\''/g" \
2651       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2652     ;;
2653   *)
2654     # `set' quotes correctly as required by POSIX, so do not add quotes.
2655     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2656     ;;
2657   esac >> confcache
2658 if cmp -s $cache_file confcache; then
2659   :
2660 else
2661   if test -w $cache_file; then
2662     echo "updating cache $cache_file"
2663     cat confcache > $cache_file
2664   else
2665     echo "not updating unwritable cache $cache_file"
2666   fi
2667 fi
2668 rm -f confcache
2669
2670 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2671
2672 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2673 # Let make expand exec_prefix.
2674 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2675
2676 # Any assignment to VPATH causes Sun make to only execute
2677 # the first set of double-colon rules, so remove it if not needed.
2678 # If there is a colon in the path, we need to keep it.
2679 if test "x$srcdir" = x.; then
2680   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2681 fi
2682
2683 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2684
2685 # Transform confdefs.h into DEFS.
2686 # Protect against shell expansion while executing Makefile rules.
2687 # Protect against Makefile macro expansion.
2688 cat > conftest.defs <<\EOF
2689 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2690 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
2691 s%\[%\\&%g
2692 s%\]%\\&%g
2693 s%\$%$$%g
2694 EOF
2695 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2696 rm -f conftest.defs
2697
2698
2699 # Without the "./", some shells look in PATH for config.status.
2700 : ${CONFIG_STATUS=./config.status}
2701
2702 echo creating $CONFIG_STATUS
2703 rm -f $CONFIG_STATUS
2704 cat > $CONFIG_STATUS <<EOF
2705 #! /bin/sh
2706 # Generated automatically by configure.
2707 # Run this file to recreate the current configuration.
2708 # This directory was configured as follows,
2709 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2710 #
2711 # $0 $ac_configure_args
2712 #
2713 # Compiler output produced by configure, useful for debugging
2714 # configure, is in ./config.log if it exists.
2715
2716 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2717 for ac_option
2718 do
2719   case "\$ac_option" in
2720   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2721     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2722     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2723   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2724     echo "$CONFIG_STATUS generated by autoconf version 2.13"
2725     exit 0 ;;
2726   -help | --help | --hel | --he | --h)
2727     echo "\$ac_cs_usage"; exit 0 ;;
2728   *) echo "\$ac_cs_usage"; exit 1 ;;
2729   esac
2730 done
2731
2732 ac_given_srcdir=$srcdir
2733 ac_given_INSTALL="$INSTALL"
2734
2735 trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile 
2736         lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
2737         misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile 
2738         tests/progs/Makefile $rmakefile doc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2739 EOF
2740 cat >> $CONFIG_STATUS <<EOF
2741
2742 # Protect against being on the right side of a sed subst in config.status.
2743 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2744  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2745 $ac_vpsub
2746 $extrasub
2747 s%@SHELL@%$SHELL%g
2748 s%@CFLAGS@%$CFLAGS%g
2749 s%@CPPFLAGS@%$CPPFLAGS%g
2750 s%@CXXFLAGS@%$CXXFLAGS%g
2751 s%@FFLAGS@%$FFLAGS%g
2752 s%@DEFS@%$DEFS%g
2753 s%@LDFLAGS@%$LDFLAGS%g
2754 s%@LIBS@%$LIBS%g
2755 s%@exec_prefix@%$exec_prefix%g
2756 s%@prefix@%$prefix%g
2757 s%@program_transform_name@%$program_transform_name%g
2758 s%@bindir@%$bindir%g
2759 s%@sbindir@%$sbindir%g
2760 s%@libexecdir@%$libexecdir%g
2761 s%@datadir@%$datadir%g
2762 s%@sysconfdir@%$sysconfdir%g
2763 s%@sharedstatedir@%$sharedstatedir%g
2764 s%@localstatedir@%$localstatedir%g
2765 s%@libdir@%$libdir%g
2766 s%@includedir@%$includedir%g
2767 s%@oldincludedir@%$oldincludedir%g
2768 s%@infodir@%$infodir%g
2769 s%@mandir@%$mandir%g
2770 /@MCONFIG@/r $MCONFIG
2771 s%@MCONFIG@%%g
2772 s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
2773 s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
2774 s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
2775 s%@host@%$host%g
2776 s%@host_alias@%$host_alias%g
2777 s%@host_cpu@%$host_cpu%g
2778 s%@host_vendor@%$host_vendor%g
2779 s%@host_os@%$host_os%g
2780 s%@CC@%$CC%g
2781 s%@LD@%$LD%g
2782 s%@CCOPTS@%$CCOPTS%g
2783 s%@CPP@%$CPP%g
2784 s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
2785 s%@DLL_CMT@%$DLL_CMT%g
2786 /@MAKEFILE_DLL@/r $MAKEFILE_DLL
2787 s%@MAKEFILE_DLL@%%g
2788 s%@ELF_CMT@%$ELF_CMT%g
2789 /@MAKEFILE_ELF@/r $MAKEFILE_ELF
2790 s%@MAKEFILE_ELF@%%g
2791 s%@BSDLIB_CMT@%$BSDLIB_CMT%g
2792 /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
2793 s%@MAKEFILE_BSDLIB@%%g
2794 s%@PROFILE_CMT@%$PROFILE_CMT%g
2795 /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
2796 s%@MAKEFILE_PROFILE@%%g
2797 s%@CHECKER_CMT@%$CHECKER_CMT%g
2798 /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
2799 s%@MAKEFILE_CHECKER@%%g
2800 s%@LIB_EXT@%$LIB_EXT%g
2801 s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
2802 s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
2803 s%@W@%$W%g
2804 s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
2805 s%@FSCK_PROG@%$FSCK_PROG%g
2806 s%@FSCK_MAN@%$FSCK_MAN%g
2807 /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
2808 s%@MAKEFILE_LIBRARY@%%g
2809 s%@BINARY_TYPE@%$BINARY_TYPE%g
2810 s%@SET_MAKE@%$SET_MAKE%g
2811 s%@LN@%$LN%g
2812 s%@LN_S@%$LN_S%g
2813 s%@MV@%$MV%g
2814 s%@CP@%$CP%g
2815 s%@RM@%$RM%g
2816 s%@CHMOD@%$CHMOD%g
2817 s%@AWK@%$AWK%g
2818 s%@SED@%$SED%g
2819 s%@PERL@%$PERL%g
2820 s%@build@%$build%g
2821 s%@build_alias@%$build_alias%g
2822 s%@build_cpu@%$build_cpu%g
2823 s%@build_vendor@%$build_vendor%g
2824 s%@build_os@%$build_os%g
2825 s%@AR@%$AR%g
2826 s%@RANLIB@%$RANLIB%g
2827 s%@STRIP@%$STRIP%g
2828 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2829 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2830 s%@INSTALL_DATA@%$INSTALL_DATA%g
2831 s%@BUILD_CC@%$BUILD_CC%g
2832 s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
2833 s%@SIZEOF_INT@%$SIZEOF_INT%g
2834 s%@SIZEOF_LONG@%$SIZEOF_LONG%g
2835 s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
2836 s%@SOCKET_LIB@%$SOCKET_LIB%g
2837 s%@root_prefix@%$root_prefix%g
2838 s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
2839 s%@SS_DIR@%$SS_DIR%g
2840 s%@ET_DIR@%$ET_DIR%g
2841 s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
2842 /@DO_SUBSTITUTE_SCRIPT@/r $DO_SUBSTITUTE_SCRIPT
2843 s%@DO_SUBSTITUTE_SCRIPT@%%g
2844
2845 CEOF
2846 EOF
2847
2848 cat >> $CONFIG_STATUS <<\EOF
2849
2850 # Split the substitutions into bite-sized pieces for seds with
2851 # small command number limits, like on Digital OSF/1 and HP-UX.
2852 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2853 ac_file=1 # Number of current file.
2854 ac_beg=1 # First line for current file.
2855 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2856 ac_more_lines=:
2857 ac_sed_cmds=""
2858 while $ac_more_lines; do
2859   if test $ac_beg -gt 1; then
2860     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2861   else
2862     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2863   fi
2864   if test ! -s conftest.s$ac_file; then
2865     ac_more_lines=false
2866     rm -f conftest.s$ac_file
2867   else
2868     if test -z "$ac_sed_cmds"; then
2869       ac_sed_cmds="sed -f conftest.s$ac_file"
2870     else
2871       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2872     fi
2873     ac_file=`expr $ac_file + 1`
2874     ac_beg=$ac_end
2875     ac_end=`expr $ac_end + $ac_max_sed_cmds`
2876   fi
2877 done
2878 if test -z "$ac_sed_cmds"; then
2879   ac_sed_cmds=cat
2880 fi
2881 EOF
2882
2883 cat >> $CONFIG_STATUS <<EOF
2884
2885 CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile 
2886         lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
2887         misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile 
2888         tests/progs/Makefile $rmakefile doc/Makefile"}
2889 EOF
2890 cat >> $CONFIG_STATUS <<\EOF
2891 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2892   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2893   case "$ac_file" in
2894   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2895        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2896   *) ac_file_in="${ac_file}.in" ;;
2897   esac
2898
2899   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2900
2901   # Remove last slash and all that follows it.  Not all systems have dirname.
2902   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2903   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2904     # The file is in a subdirectory.
2905     test ! -d "$ac_dir" && mkdir "$ac_dir"
2906     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2907     # A "../" for each directory in $ac_dir_suffix.
2908     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2909   else
2910     ac_dir_suffix= ac_dots=
2911   fi
2912
2913   case "$ac_given_srcdir" in
2914   .)  srcdir=.
2915       if test -z "$ac_dots"; then top_srcdir=.
2916       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2917   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2918   *) # Relative path.
2919     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2920     top_srcdir="$ac_dots$ac_given_srcdir" ;;
2921   esac
2922
2923   case "$ac_given_INSTALL" in
2924   [/$]*) INSTALL="$ac_given_INSTALL" ;;
2925   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2926   esac
2927
2928   echo creating "$ac_file"
2929   rm -f "$ac_file"
2930   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2931   case "$ac_file" in
2932   *Makefile*) ac_comsub="1i\\
2933 # $configure_input" ;;
2934   *) ac_comsub= ;;
2935   esac
2936
2937   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2938   sed -e "$ac_comsub
2939 s%@configure_input@%$configure_input%g
2940 s%@srcdir@%$srcdir%g
2941 s%@top_srcdir@%$top_srcdir%g
2942 s%@INSTALL@%$INSTALL%g
2943 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2944 fi; done
2945 rm -f conftest.s*
2946
2947 EOF
2948 cat >> $CONFIG_STATUS <<EOF
2949
2950 EOF
2951 cat >> $CONFIG_STATUS <<\EOF
2952
2953 exit 0
2954 EOF
2955 chmod +x $CONFIG_STATUS
2956 rm -fr confdefs* $ac_clean_files
2957 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2958