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