]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - configure
ChangeLog, Makefile.in, configure.in, MCONFIG.in, configure, wordwrap.pl:
[thirdparty/e2fsprogs.git] / configure
CommitLineData
50e1e10f
TT
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
a4bf69d9 4# Generated automatically using autoconf version 2.13
21c84b71 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
50e1e10f
TT
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:
74becf3c
TT
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"
fc6d9d51 22ac_help="$ac_help
a4b2d3ce 23 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
50e1e10f 24ac_help="$ac_help
a4d09610 25 --enable-dll-shlibs select DLL libraries"
50e1e10f 26ac_help="$ac_help
a4d09610 27 --enable-elf-shlibs select ELF shared libraries"
50e1e10f 28ac_help="$ac_help
a4d09610 29 --enable-bsd-shlibs select BSD shared libraries"
50e1e10f 30ac_help="$ac_help
a4d09610 31 --enable-profile build profiling libraries"
50e1e10f 32ac_help="$ac_help
a4d09610 33 --enable-checker build checker libraries"
50e1e10f 34ac_help="$ac_help
b0b9c4de 35 --enable-gcc-wall enable GCC anal warnings (DON'T USE IN PRODUCTION)"
a4d09610
TT
36ac_help="$ac_help
37 --enable-dynamic-e2fsck build e2fsck dynamically"
fc6d9d51
TT
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"
50e1e10f
TT
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
21c84b71
TT
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'
50e1e10f
TT
76
77# Initialize some other variables.
78subdirs=
21c84b71 79MFLAGS= MAKEFLAGS=
a4bf69d9 80SHELL=${CONFIG_SHELL-/bin/sh}
21c84b71
TT
81# Maximum number of lines to put in a shell here document.
82ac_max_here_lines=12
50e1e10f
TT
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
21c84b71
TT
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)
50e1e10f 110 ac_prev=build ;;
21c84b71 111 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
50e1e10f
TT
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
21c84b71
TT
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
50e1e10f
TT
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]
21c84b71 177 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
50e1e10f 178 [same as prefix]
21c84b71
TT
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]
50e1e10f
TT
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
21c84b71
TT
196 --program-transform-name=PROGRAM
197 run sed PROGRAM on installed program names
198EOF
199 cat << EOF
50e1e10f
TT
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
50e1e10f 211EOF
21c84b71
TT
212 if test -n "$ac_help"; then
213 echo "--enable and --with options recognized:$ac_help"
214 fi
50e1e10f
TT
215 exit 0 ;;
216
217 -host | --host | --hos | --ho)
218 ac_prev=host ;;
219 -host=* | --host=* | --hos=* | --ho=*)
220 host="$ac_optarg" ;;
221
21c84b71
TT
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
50e1e10f
TT
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
21c84b71
TT
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
50e1e10f
TT
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
21c84b71
TT
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
50e1e10f
TT
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
21c84b71
TT
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
50e1e10f
TT
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)
a4bf69d9 364 echo "configure generated by autoconf version 2.13"
50e1e10f
TT
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
21c84b71 410 *)
50e1e10f
TT
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.
21c84b71
TT
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.
50e1e10f 470if test "${LANG+set}" = set; then LANG=C; export LANG; fi
21c84b71
TT
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
50e1e10f
TT
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'
21c84b71 533ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
a4bf69d9 534ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21c84b71 535cross_compiling=$ac_cv_prog_cc_cross
50e1e10f 536
a4bf69d9
TT
537ac_exeext=
538ac_objext=o
50e1e10f
TT
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
a4b2d3ce 552
50e1e10f
TT
553MCONFIG=./MCONFIG
554
74becf3c
TT
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
14790ed7
TT
563if expr $YEAR ">" 1900 > /dev/null ; then
564 E2FSPROGS_YEAR=$YEAR
565elif expr $YEAR ">" 90 >/dev/null ; then
74becf3c
TT
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
fc6d9d51
TT
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.
a4bf69d9 615if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
fc6d9d51
TT
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
a4bf69d9 620echo "configure:621: checking host system type" >&5
fc6d9d51
TT
621
622host_alias=$host
623case "$host_alias" in
624NONE)
625 case $nonopt in
626 NONE)
a4bf69d9 627 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
fc6d9d51
TT
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
a4bf69d9 634host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
21c84b71
TT
635host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
636host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
637host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
fc6d9d51
TT
638echo "$ac_t""$host" 1>&6
639
74becf3c 640# Check whether --with-cc or --without-cc was given.
21c84b71
TT
641if test "${with_cc+set}" = set; then
642 withval="$with_cc"
74becf3c
TT
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.
21c84b71
TT
652if test "${with_linker+set}" = set; then
653 withval="$with_linker"
74becf3c
TT
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.
21c84b71
TT
663if test "${with_ccopts+set}" = set; then
664 withval="$with_ccopts"
74becf3c
TT
665 echo "$ac_t""CCOPTS is $withval" 1>&6
666CCOPTS=$withval
667CFLAGS="$CFLAGS $withval"
668else
669 CCOPTS=
670fi
671
a4d09610
TT
672LIB_EXT=.a
673STATIC_LIB_EXT=.a
674PROFILE_LIB_EXT=.a
74becf3c 675# Check whether --with-ldopts or --without-ldopts was given.
21c84b71
TT
676if test "${with_ldopts+set}" = set; then
677 withval="$with_ldopts"
74becf3c
TT
678 echo "$ac_t""LDFLAGS is $withval" 1>&6
679LDFLAGS=$withval
680else
681 LDFLAGS=
682fi
683
a4b2d3ce
TT
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
fc6d9d51 688else
a4b2d3ce 689 root_prefix=NONE
fc6d9d51 690fi
50e1e10f 691# Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
21c84b71
TT
692if test "${enable_dll_shlibs+set}" = set; then
693 enableval="$enable_dll_shlibs"
50e1e10f
TT
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
74becf3c 702 BINARY_TYPE=dllbin
a4d09610 703 LIB_EXT=.sa
50e1e10f
TT
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.
21c84b71
TT
717if test "${enable_elf_shlibs+set}" = set; then
718 enableval="$enable_elf_shlibs"
50e1e10f
TT
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
74becf3c 727 BINARY_TYPE=elfbin
a4d09610 728 LIB_EXT=.so
50e1e10f
TT
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.
21c84b71
TT
742if test "${enable_bsd_shlibs+set}" = set; then
743 enableval="$enable_bsd_shlibs"
50e1e10f
TT
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
a4d09610 752 LIB_EXT=.so
50e1e10f
TT
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.
21c84b71
TT
766if test "${enable_profile+set}" = set; then
767 enableval="$enable_profile"
50e1e10f
TT
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
a4d09610 776 PROFILED_LIB_EXT=_p.a
50e1e10f
TT
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.
21c84b71
TT
790if test "${enable_checker+set}" = set; then
791 enableval="$enable_checker"
50e1e10f
TT
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
a4d09610
TT
812
813
814
50e1e10f 815# Check whether --enable-gcc-wall or --disable-gcc-wall was given.
21c84b71
TT
816if test "${enable_gcc_wall+set}" = set; then
817 enableval="$enable_gcc_wall"
50e1e10f
TT
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
a4d09610 834# Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
21c84b71
TT
835if test "${enable_dynamic_e2fsck+set}" = set; then
836 enableval="$enable_dynamic_e2fsck"
a4d09610
TT
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
fc6d9d51 853# Check whether --enable-fsck or --disable-fsck was given.
21c84b71
TT
854if test "${enable_fsck+set}" = set; then
855 enableval="$enable_fsck"
fc6d9d51
TT
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
50e1e10f
TT
880MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
881
fc6d9d51 882# Check whether --enable-old-bitops or --disable-old-bitops was given.
21c84b71
TT
883if test "${enable_old_bitops+set}" = set; then
884 enableval="$enable_old_bitops"
fc6d9d51
TT
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
74becf3c 902
50e1e10f 903echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
a4bf69d9 904echo "configure:905: checking whether ${MAKE-make} sets \${MAKE}" >&5
21c84b71 905set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
50e1e10f
TT
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
a4bf69d9 933echo "configure:934: checking for $ac_word" >&5
50e1e10f
TT
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 ;;
a4bf69d9
TT
941 ?:/*)
942 ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
943 ;;
50e1e10f 944 *)
a4bf69d9
TT
945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
946 ac_dummy="$PATH"
947 for ac_dir in $ac_dummy; do
50e1e10f
TT
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
fc6d9d51 966echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
a4bf69d9 967echo "configure:968: checking whether ln -s works" >&5
fc6d9d51
TT
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
50e1e10f
TT
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
a4bf69d9 990echo "configure:991: checking for $ac_word" >&5
50e1e10f
TT
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 ;;
a4bf69d9
TT
998 ?:/*)
999 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1000 ;;
50e1e10f 1001 *)
a4bf69d9
TT
1002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1003 ac_dummy="$PATH"
1004 for ac_dir in $ac_dummy; do
50e1e10f
TT
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
a4bf69d9 1026echo "configure:1027: checking for $ac_word" >&5
50e1e10f
TT
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 ;;
a4bf69d9
TT
1034 ?:/*)
1035 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1036 ;;
50e1e10f 1037 *)
a4bf69d9
TT
1038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1039 ac_dummy="$PATH"
1040 for ac_dir in $ac_dummy; do
50e1e10f
TT
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
a4bf69d9 1062echo "configure:1063: checking for $ac_word" >&5
50e1e10f
TT
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 ;;
a4bf69d9
TT
1070 ?:/*)
1071 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1072 ;;
50e1e10f 1073 *)
a4bf69d9
TT
1074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1075 ac_dummy="$PATH"
1076 for ac_dir in $ac_dummy; do
50e1e10f
TT
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
a4bf69d9 1098echo "configure:1099: checking for $ac_word" >&5
50e1e10f
TT
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 ;;
a4bf69d9
TT
1106 ?:/*)
1107 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
1108 ;;
50e1e10f 1109 *)
a4bf69d9
TT
1110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1111 ac_dummy="$PATH"
1112 for ac_dir in $ac_dummy; do
50e1e10f
TT
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
a4bf69d9 1134echo "configure:1135: checking for $ac_word" >&5
50e1e10f
TT
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 ;;
a4bf69d9
TT
1142 ?:/*)
1143 ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
1144 ;;
50e1e10f 1145 *)
a4bf69d9
TT
1146 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1147 ac_dummy="$PATH"
1148 for ac_dir in $ac_dummy; do
50e1e10f
TT
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
a4bf69d9 1170echo "configure:1171: checking for $ac_word" >&5
50e1e10f
TT
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 ;;
a4bf69d9
TT
1178 ?:/*)
1179 ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
1180 ;;
50e1e10f 1181 *)
a4bf69d9
TT
1182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1183 ac_dummy="$PATH"
1184 for ac_dir in $ac_dummy; do
50e1e10f
TT
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
9d564f73
TT
1203# Extract the first word of "perl", so it can be a program name with args.
1204set dummy perl; ac_word=$2
1205echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1206echo "configure:1207: checking for $ac_word" >&5
1207if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1208 echo $ac_n "(cached) $ac_c" 1>&6
1209else
1210 case "$PERL" in
1211 /*)
1212 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1213 ;;
1214 ?:/*)
1215 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
1216 ;;
1217 *)
1218 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1219 ac_dummy="$PATH"
1220 for ac_dir in $ac_dummy; do
1221 test -z "$ac_dir" && ac_dir=.
1222 if test -f $ac_dir/$ac_word; then
1223 ac_cv_path_PERL="$ac_dir/$ac_word"
1224 break
1225 fi
1226 done
1227 IFS="$ac_save_ifs"
1228 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
1229 ;;
1230esac
1231fi
1232PERL="$ac_cv_path_PERL"
1233if test -n "$PERL"; then
1234 echo "$ac_t""$PERL" 1>&6
1235else
1236 echo "$ac_t""no" 1>&6
1237fi
1238
50e1e10f 1239echo $ac_n "checking build system type""... $ac_c" 1>&6
9d564f73 1240echo "configure:1241: checking build system type" >&5
50e1e10f
TT
1241
1242build_alias=$build
1243case "$build_alias" in
1244NONE)
1245 case $nonopt in
1246 NONE) build_alias=$host_alias ;;
1247 *) build_alias=$nonopt ;;
1248 esac ;;
1249esac
1250
a4bf69d9 1251build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
21c84b71
TT
1252build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1253build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1254build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
50e1e10f
TT
1255echo "$ac_t""$build" 1>&6
1256
1257if test $host != $build; then
1258 ac_tool_prefix=${host_alias}-
1259else
1260 ac_tool_prefix=
1261fi
1262
1263# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1264set dummy ${ac_tool_prefix}ar; ac_word=$2
1265echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9d564f73 1266echo "configure:1267: checking for $ac_word" >&5
50e1e10f
TT
1267if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1268 echo $ac_n "(cached) $ac_c" 1>&6
1269else
1270 if test -n "$AR"; then
1271 ac_cv_prog_AR="$AR" # Let the user override the test.
1272else
a4bf69d9
TT
1273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1274 ac_dummy="$PATH"
1275 for ac_dir in $ac_dummy; do
50e1e10f
TT
1276 test -z "$ac_dir" && ac_dir=.
1277 if test -f $ac_dir/$ac_word; then
1278 ac_cv_prog_AR="${ac_tool_prefix}ar"
1279 break
1280 fi
1281 done
1282 IFS="$ac_save_ifs"
1283fi
1284fi
1285AR="$ac_cv_prog_AR"
1286if test -n "$AR"; then
1287 echo "$ac_t""$AR" 1>&6
1288else
1289 echo "$ac_t""no" 1>&6
1290fi
1291
1292
1293if test -z "$ac_cv_prog_AR"; then
1294if test -n "$ac_tool_prefix"; then
1295 # Extract the first word of "ar", so it can be a program name with args.
1296set dummy ar; ac_word=$2
1297echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9d564f73 1298echo "configure:1299: checking for $ac_word" >&5
50e1e10f
TT
1299if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1301else
1302 if test -n "$AR"; then
1303 ac_cv_prog_AR="$AR" # Let the user override the test.
1304else
a4bf69d9
TT
1305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1306 ac_dummy="$PATH"
1307 for ac_dir in $ac_dummy; do
50e1e10f
TT
1308 test -z "$ac_dir" && ac_dir=.
1309 if test -f $ac_dir/$ac_word; then
1310 ac_cv_prog_AR="ar"
1311 break
1312 fi
1313 done
1314 IFS="$ac_save_ifs"
1315 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1316fi
1317fi
1318AR="$ac_cv_prog_AR"
1319if test -n "$AR"; then
1320 echo "$ac_t""$AR" 1>&6
1321else
1322 echo "$ac_t""no" 1>&6
1323fi
1324
1325else
1326 AR="ar"
1327fi
1328fi
1329
1330# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1331set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1332echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9d564f73 1333echo "configure:1334: checking for $ac_word" >&5
50e1e10f
TT
1334if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1335 echo $ac_n "(cached) $ac_c" 1>&6
1336else
1337 if test -n "$RANLIB"; then
1338 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1339else
a4bf69d9
TT
1340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1341 ac_dummy="$PATH"
1342 for ac_dir in $ac_dummy; do
50e1e10f
TT
1343 test -z "$ac_dir" && ac_dir=.
1344 if test -f $ac_dir/$ac_word; then
1345 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1346 break
1347 fi
1348 done
1349 IFS="$ac_save_ifs"
1350fi
1351fi
1352RANLIB="$ac_cv_prog_RANLIB"
1353if test -n "$RANLIB"; then
1354 echo "$ac_t""$RANLIB" 1>&6
1355else
1356 echo "$ac_t""no" 1>&6
1357fi
1358
1359
1360if test -z "$ac_cv_prog_RANLIB"; then
1361if test -n "$ac_tool_prefix"; then
1362 # Extract the first word of "ranlib", so it can be a program name with args.
1363set dummy ranlib; ac_word=$2
1364echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9d564f73 1365echo "configure:1366: checking for $ac_word" >&5
50e1e10f
TT
1366if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1368else
1369 if test -n "$RANLIB"; then
1370 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1371else
a4bf69d9
TT
1372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1373 ac_dummy="$PATH"
1374 for ac_dir in $ac_dummy; do
50e1e10f
TT
1375 test -z "$ac_dir" && ac_dir=.
1376 if test -f $ac_dir/$ac_word; then
1377 ac_cv_prog_RANLIB="ranlib"
1378 break
1379 fi
1380 done
1381 IFS="$ac_save_ifs"
1382 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1383fi
1384fi
1385RANLIB="$ac_cv_prog_RANLIB"
1386if test -n "$RANLIB"; then
1387 echo "$ac_t""$RANLIB" 1>&6
1388else
1389 echo "$ac_t""no" 1>&6
1390fi
1391
1392else
1393 RANLIB=":"
1394fi
1395fi
1396
1397# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1398set dummy ${ac_tool_prefix}strip; ac_word=$2
1399echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9d564f73 1400echo "configure:1401: checking for $ac_word" >&5
50e1e10f
TT
1401if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1403else
1404 if test -n "$STRIP"; then
1405 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1406else
a4bf69d9
TT
1407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1408 ac_dummy="$PATH"
1409 for ac_dir in $ac_dummy; do
50e1e10f
TT
1410 test -z "$ac_dir" && ac_dir=.
1411 if test -f $ac_dir/$ac_word; then
1412 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1413 break
1414 fi
1415 done
1416 IFS="$ac_save_ifs"
1417fi
1418fi
1419STRIP="$ac_cv_prog_STRIP"
1420if test -n "$STRIP"; then
1421 echo "$ac_t""$STRIP" 1>&6
1422else
1423 echo "$ac_t""no" 1>&6
1424fi
1425
1426
1427if test -z "$ac_cv_prog_STRIP"; then
1428if test -n "$ac_tool_prefix"; then
1429 # Extract the first word of "strip", so it can be a program name with args.
1430set dummy strip; ac_word=$2
1431echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9d564f73 1432echo "configure:1433: checking for $ac_word" >&5
50e1e10f
TT
1433if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1434 echo $ac_n "(cached) $ac_c" 1>&6
1435else
1436 if test -n "$STRIP"; then
1437 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1438else
a4bf69d9
TT
1439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1440 ac_dummy="$PATH"
1441 for ac_dir in $ac_dummy; do
50e1e10f
TT
1442 test -z "$ac_dir" && ac_dir=.
1443 if test -f $ac_dir/$ac_word; then
1444 ac_cv_prog_STRIP="strip"
1445 break
1446 fi
1447 done
1448 IFS="$ac_save_ifs"
1449 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1450fi
1451fi
1452STRIP="$ac_cv_prog_STRIP"
1453if test -n "$STRIP"; then
1454 echo "$ac_t""$STRIP" 1>&6
1455else
1456 echo "$ac_t""no" 1>&6
1457fi
1458
1459else
1460 STRIP=":"
1461fi
1462fi
1463
1464# Extract the first word of "gcc", so it can be a program name with args.
1465set dummy gcc; ac_word=$2
1466echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9d564f73 1467echo "configure:1468: checking for $ac_word" >&5
50e1e10f
TT
1468if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1470else
1471 if test -n "$CC"; then
1472 ac_cv_prog_CC="$CC" # Let the user override the test.
1473else
a4bf69d9
TT
1474 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1475 ac_dummy="$PATH"
1476 for ac_dir in $ac_dummy; do
50e1e10f
TT
1477 test -z "$ac_dir" && ac_dir=.
1478 if test -f $ac_dir/$ac_word; then
1479 ac_cv_prog_CC="gcc"
1480 break
1481 fi
1482 done
1483 IFS="$ac_save_ifs"
50e1e10f
TT
1484fi
1485fi
1486CC="$ac_cv_prog_CC"
1487if test -n "$CC"; then
1488 echo "$ac_t""$CC" 1>&6
1489else
1490 echo "$ac_t""no" 1>&6
1491fi
1492
21c84b71
TT
1493if test -z "$CC"; then
1494 # Extract the first word of "cc", so it can be a program name with args.
1495set dummy cc; ac_word=$2
1496echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9d564f73 1497echo "configure:1498: checking for $ac_word" >&5
21c84b71
TT
1498if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1500else
1501 if test -n "$CC"; then
1502 ac_cv_prog_CC="$CC" # Let the user override the test.
1503else
a4bf69d9 1504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
21c84b71 1505 ac_prog_rejected=no
a4bf69d9
TT
1506 ac_dummy="$PATH"
1507 for ac_dir in $ac_dummy; do
21c84b71
TT
1508 test -z "$ac_dir" && ac_dir=.
1509 if test -f $ac_dir/$ac_word; then
1510 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1511 ac_prog_rejected=yes
1512 continue
1513 fi
1514 ac_cv_prog_CC="cc"
1515 break
1516 fi
1517 done
1518 IFS="$ac_save_ifs"
1519if test $ac_prog_rejected = yes; then
1520 # We found a bogon in the path, so make sure we never use it.
1521 set dummy $ac_cv_prog_CC
1522 shift
1523 if test $# -gt 0; then
1524 # We chose a different compiler from the bogus one.
1525 # However, it has the same basename, so the bogon will be chosen
1526 # first if we set CC to just the basename; use the full file name.
1527 shift
1528 set dummy "$ac_dir/$ac_word" "$@"
1529 shift
1530 ac_cv_prog_CC="$@"
1531 fi
1532fi
1533fi
1534fi
1535CC="$ac_cv_prog_CC"
1536if test -n "$CC"; then
1537 echo "$ac_t""$CC" 1>&6
1538else
1539 echo "$ac_t""no" 1>&6
1540fi
1541
a4bf69d9
TT
1542 if test -z "$CC"; then
1543 case "`uname -s`" in
1544 *win32* | *WIN32*)
1545 # Extract the first word of "cl", so it can be a program name with args.
1546set dummy cl; ac_word=$2
1547echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9d564f73 1548echo "configure:1549: checking for $ac_word" >&5
a4bf69d9
TT
1549if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1550 echo $ac_n "(cached) $ac_c" 1>&6
1551else
1552 if test -n "$CC"; then
1553 ac_cv_prog_CC="$CC" # Let the user override the test.
1554else
1555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1556 ac_dummy="$PATH"
1557 for ac_dir in $ac_dummy; do
1558 test -z "$ac_dir" && ac_dir=.
1559 if test -f $ac_dir/$ac_word; then
1560 ac_cv_prog_CC="cl"
1561 break
1562 fi
1563 done
1564 IFS="$ac_save_ifs"
1565fi
1566fi
1567CC="$ac_cv_prog_CC"
1568if test -n "$CC"; then
1569 echo "$ac_t""$CC" 1>&6
1570else
1571 echo "$ac_t""no" 1>&6
1572fi
1573 ;;
1574 esac
1575 fi
21c84b71
TT
1576 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1577fi
1578
1579echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
9d564f73 1580echo "configure:1581: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
21c84b71
TT
1581
1582ac_ext=c
1583# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1584ac_cpp='$CPP $CPPFLAGS'
1585ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
a4bf69d9 1586ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
21c84b71
TT
1587cross_compiling=$ac_cv_prog_cc_cross
1588
a4bf69d9
TT
1589cat > conftest.$ac_ext << EOF
1590
9d564f73 1591#line 1592 "configure"
21c84b71 1592#include "confdefs.h"
a4bf69d9 1593
21c84b71
TT
1594main(){return(0);}
1595EOF
9d564f73 1596if { (eval echo configure:1597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21c84b71
TT
1597 ac_cv_prog_cc_works=yes
1598 # If we can't run a trivial program, we are probably using a cross compiler.
1599 if (./conftest; exit) 2>/dev/null; then
1600 ac_cv_prog_cc_cross=no
1601 else
1602 ac_cv_prog_cc_cross=yes
1603 fi
1604else
1605 echo "configure: failed program was:" >&5
1606 cat conftest.$ac_ext >&5
1607 ac_cv_prog_cc_works=no
1608fi
1609rm -fr conftest*
a4bf69d9
TT
1610ac_ext=c
1611# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1612ac_cpp='$CPP $CPPFLAGS'
1613ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1614ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1615cross_compiling=$ac_cv_prog_cc_cross
21c84b71
TT
1616
1617echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1618if test $ac_cv_prog_cc_works = no; then
1619 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1620fi
1621echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9d564f73 1622echo "configure:1623: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
21c84b71
TT
1623echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1624cross_compiling=$ac_cv_prog_cc_cross
50e1e10f
TT
1625
1626echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
9d564f73 1627echo "configure:1628: checking whether we are using GNU C" >&5
50e1e10f
TT
1628if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1629 echo $ac_n "(cached) $ac_c" 1>&6
1630else
1631 cat > conftest.c <<EOF
1632#ifdef __GNUC__
1633 yes;
1634#endif
1635EOF
9d564f73 1636if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
50e1e10f
TT
1637 ac_cv_prog_gcc=yes
1638else
1639 ac_cv_prog_gcc=no
1640fi
1641fi
21c84b71 1642
50e1e10f 1643echo "$ac_t""$ac_cv_prog_gcc" 1>&6
21c84b71 1644
50e1e10f
TT
1645if test $ac_cv_prog_gcc = yes; then
1646 GCC=yes
a4bf69d9
TT
1647else
1648 GCC=
1649fi
1650
1651ac_test_CFLAGS="${CFLAGS+set}"
1652ac_save_CFLAGS="$CFLAGS"
1653CFLAGS=
1654echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
9d564f73 1655echo "configure:1656: checking whether ${CC-cc} accepts -g" >&5
21c84b71 1656if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
50e1e10f
TT
1657 echo $ac_n "(cached) $ac_c" 1>&6
1658else
1659 echo 'void f(){}' > conftest.c
1660if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
21c84b71 1661 ac_cv_prog_cc_g=yes
50e1e10f 1662else
21c84b71 1663 ac_cv_prog_cc_g=no
50e1e10f
TT
1664fi
1665rm -f conftest*
1666
1667fi
21c84b71
TT
1668
1669echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
a4bf69d9
TT
1670if test "$ac_test_CFLAGS" = set; then
1671 CFLAGS="$ac_save_CFLAGS"
1672elif test $ac_cv_prog_cc_g = yes; then
1673 if test "$GCC" = yes; then
21c84b71
TT
1674 CFLAGS="-g -O2"
1675 else
a4bf69d9 1676 CFLAGS="-g"
50e1e10f
TT
1677 fi
1678else
a4bf69d9
TT
1679 if test "$GCC" = yes; then
1680 CFLAGS="-O2"
1681 else
1682 CFLAGS=
1683 fi
50e1e10f
TT
1684fi
1685
1686# Find a good install program. We prefer a C program (faster),
1687# so one script is as good as another. But avoid the broken or
1688# incompatible versions:
1689# SysV /etc/install, /usr/sbin/install
1690# SunOS /usr/etc/install
1691# IRIX /sbin/install
1692# AIX /bin/install
a4bf69d9 1693# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
50e1e10f
TT
1694# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1695# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1696# ./install, which can be erroneously created by make from ./install.sh.
1697echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9d564f73 1698echo "configure:1699: checking for a BSD compatible install" >&5
50e1e10f
TT
1699if test -z "$INSTALL"; then
1700if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1701 echo $ac_n "(cached) $ac_c" 1>&6
1702else
a4bf69d9 1703 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
50e1e10f
TT
1704 for ac_dir in $PATH; do
1705 # Account for people who put trailing slashes in PATH elements.
1706 case "$ac_dir/" in
1707 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1708 *)
1709 # OSF1 and SCO ODT 3.0 have their own names for install.
a4bf69d9
TT
1710 # Don't use installbsd from OSF since it installs stuff as root
1711 # by default.
1712 for ac_prog in ginstall scoinst install; do
50e1e10f
TT
1713 if test -f $ac_dir/$ac_prog; then
1714 if test $ac_prog = install &&
1715 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1716 # AIX install. It has an incompatible calling convention.
50e1e10f
TT
1717 :
1718 else
1719 ac_cv_path_install="$ac_dir/$ac_prog -c"
1720 break 2
1721 fi
1722 fi
1723 done
1724 ;;
1725 esac
1726 done
21c84b71
TT
1727 IFS="$ac_save_IFS"
1728
50e1e10f 1729fi
21c84b71
TT
1730 if test "${ac_cv_path_install+set}" = set; then
1731 INSTALL="$ac_cv_path_install"
1732 else
1733 # As a last resort, use the slow shell script. We don't cache a
1734 # path for INSTALL within a source directory, because that will
1735 # break other packages using the cache if that directory is
1736 # removed, or if the path is relative.
1737 INSTALL="$ac_install_sh"
1738 fi
50e1e10f
TT
1739fi
1740echo "$ac_t""$INSTALL" 1>&6
1741
1742# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1743# It thinks the first close brace ends the variable substitution.
1744test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1745
a4bf69d9
TT
1746test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1747
50e1e10f
TT
1748test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1749
50e1e10f
TT
1750
1751echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
9d564f73 1752echo "configure:1753: checking how to run the C preprocessor" >&5
50e1e10f
TT
1753# On Suns, sometimes $CPP names a directory.
1754if test -n "$CPP" && test -d "$CPP"; then
1755 CPP=
1756fi
1757if test -z "$CPP"; then
1758if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1759 echo $ac_n "(cached) $ac_c" 1>&6
1760else
1761 # This must be in double quotes, not single quotes, because CPP may get
1762 # substituted into the Makefile and "${CC-cc}" will confuse make.
1763 CPP="${CC-cc} -E"
1764 # On the NeXT, cc -E runs the code through the compiler's parser,
1765 # not just through cpp.
1766 cat > conftest.$ac_ext <<EOF
9d564f73 1767#line 1768 "configure"
50e1e10f
TT
1768#include "confdefs.h"
1769#include <assert.h>
1770Syntax Error
1771EOF
21c84b71 1772ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9d564f73 1773{ (eval echo configure:1774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a4bf69d9 1774ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
50e1e10f
TT
1775if test -z "$ac_err"; then
1776 :
1777else
1778 echo "$ac_err" >&5
21c84b71
TT
1779 echo "configure: failed program was:" >&5
1780 cat conftest.$ac_ext >&5
50e1e10f
TT
1781 rm -rf conftest*
1782 CPP="${CC-cc} -E -traditional-cpp"
1783 cat > conftest.$ac_ext <<EOF
9d564f73 1784#line 1785 "configure"
a4bf69d9
TT
1785#include "confdefs.h"
1786#include <assert.h>
1787Syntax Error
1788EOF
1789ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9d564f73 1790{ (eval echo configure:1791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a4bf69d9
TT
1791ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1792if test -z "$ac_err"; then
1793 :
1794else
1795 echo "$ac_err" >&5
1796 echo "configure: failed program was:" >&5
1797 cat conftest.$ac_ext >&5
1798 rm -rf conftest*
1799 CPP="${CC-cc} -nologo -E"
1800 cat > conftest.$ac_ext <<EOF
9d564f73 1801#line 1802 "configure"
50e1e10f
TT
1802#include "confdefs.h"
1803#include <assert.h>
1804Syntax Error
1805EOF
21c84b71 1806ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9d564f73 1807{ (eval echo configure:1808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a4bf69d9 1808ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
50e1e10f
TT
1809if test -z "$ac_err"; then
1810 :
1811else
1812 echo "$ac_err" >&5
21c84b71
TT
1813 echo "configure: failed program was:" >&5
1814 cat conftest.$ac_ext >&5
50e1e10f
TT
1815 rm -rf conftest*
1816 CPP=/lib/cpp
1817fi
1818rm -f conftest*
1819fi
a4bf69d9
TT
1820rm -f conftest*
1821fi
50e1e10f
TT
1822rm -f conftest*
1823 ac_cv_prog_CPP="$CPP"
1824fi
1825 CPP="$ac_cv_prog_CPP"
1826else
1827 ac_cv_prog_CPP="$CPP"
1828fi
1829echo "$ac_t""$CPP" 1>&6
1830
a4bf69d9 1831for 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
50e1e10f 1832do
21c84b71 1833ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
50e1e10f 1834echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9d564f73 1835echo "configure:1836: checking for $ac_hdr" >&5
50e1e10f
TT
1836if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1837 echo $ac_n "(cached) $ac_c" 1>&6
1838else
1839 cat > conftest.$ac_ext <<EOF
9d564f73 1840#line 1841 "configure"
50e1e10f
TT
1841#include "confdefs.h"
1842#include <$ac_hdr>
1843EOF
21c84b71 1844ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9d564f73 1845{ (eval echo configure:1846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a4bf69d9 1846ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
50e1e10f
TT
1847if test -z "$ac_err"; then
1848 rm -rf conftest*
1849 eval "ac_cv_header_$ac_safe=yes"
1850else
1851 echo "$ac_err" >&5
21c84b71
TT
1852 echo "configure: failed program was:" >&5
1853 cat conftest.$ac_ext >&5
50e1e10f
TT
1854 rm -rf conftest*
1855 eval "ac_cv_header_$ac_safe=no"
1856fi
1857rm -f conftest*
1858fi
1859if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1860 echo "$ac_t""yes" 1>&6
21c84b71 1861 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
50e1e10f
TT
1862 cat >> confdefs.h <<EOF
1863#define $ac_tr_hdr 1
1864EOF
1865
1866else
1867 echo "$ac_t""no" 1>&6
1868fi
1869done
1870
1871echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9d564f73 1872echo "configure:1873: checking for vprintf" >&5
50e1e10f
TT
1873if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1874 echo $ac_n "(cached) $ac_c" 1>&6
1875else
1876 cat > conftest.$ac_ext <<EOF
9d564f73 1877#line 1878 "configure"
50e1e10f
TT
1878#include "confdefs.h"
1879/* System header to define __stub macros and hopefully few prototypes,
1880 which can conflict with char vprintf(); below. */
1881#include <assert.h>
1882/* Override any gcc2 internal prototype to avoid an error. */
21c84b71
TT
1883/* We use char because int might match the return type of a gcc2
1884 builtin and then its argument prototype would still apply. */
1885char vprintf();
50e1e10f 1886
21c84b71 1887int main() {
50e1e10f
TT
1888
1889/* The GNU C library defines this for functions which it implements
1890 to always fail with ENOSYS. Some functions are actually named
1891 something starting with __ and the normal name is an alias. */
1892#if defined (__stub_vprintf) || defined (__stub___vprintf)
1893choke me
1894#else
1895vprintf();
1896#endif
1897
1898; return 0; }
1899EOF
9d564f73 1900if { (eval echo configure:1901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
50e1e10f
TT
1901 rm -rf conftest*
1902 eval "ac_cv_func_vprintf=yes"
1903else
21c84b71
TT
1904 echo "configure: failed program was:" >&5
1905 cat conftest.$ac_ext >&5
50e1e10f
TT
1906 rm -rf conftest*
1907 eval "ac_cv_func_vprintf=no"
1908fi
1909rm -f conftest*
50e1e10f 1910fi
21c84b71 1911
50e1e10f
TT
1912if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1913 echo "$ac_t""yes" 1>&6
1914 cat >> confdefs.h <<\EOF
1915#define HAVE_VPRINTF 1
1916EOF
1917
1918else
1919 echo "$ac_t""no" 1>&6
1920fi
1921
1922if test "$ac_cv_func_vprintf" != yes; then
1923echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9d564f73 1924echo "configure:1925: checking for _doprnt" >&5
50e1e10f
TT
1925if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1926 echo $ac_n "(cached) $ac_c" 1>&6
1927else
1928 cat > conftest.$ac_ext <<EOF
9d564f73 1929#line 1930 "configure"
50e1e10f
TT
1930#include "confdefs.h"
1931/* System header to define __stub macros and hopefully few prototypes,
1932 which can conflict with char _doprnt(); below. */
1933#include <assert.h>
1934/* Override any gcc2 internal prototype to avoid an error. */
21c84b71
TT
1935/* We use char because int might match the return type of a gcc2
1936 builtin and then its argument prototype would still apply. */
1937char _doprnt();
50e1e10f 1938
21c84b71 1939int main() {
50e1e10f
TT
1940
1941/* The GNU C library defines this for functions which it implements
1942 to always fail with ENOSYS. Some functions are actually named
1943 something starting with __ and the normal name is an alias. */
1944#if defined (__stub__doprnt) || defined (__stub____doprnt)
1945choke me
1946#else
1947_doprnt();
1948#endif
1949
1950; return 0; }
1951EOF
9d564f73 1952if { (eval echo configure:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
50e1e10f
TT
1953 rm -rf conftest*
1954 eval "ac_cv_func__doprnt=yes"
1955else
21c84b71
TT
1956 echo "configure: failed program was:" >&5
1957 cat conftest.$ac_ext >&5
50e1e10f
TT
1958 rm -rf conftest*
1959 eval "ac_cv_func__doprnt=no"
1960fi
1961rm -f conftest*
50e1e10f 1962fi
21c84b71 1963
50e1e10f
TT
1964if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1965 echo "$ac_t""yes" 1>&6
1966 cat >> confdefs.h <<\EOF
1967#define HAVE_DOPRNT 1
1968EOF
1969
1970else
1971 echo "$ac_t""no" 1>&6
1972fi
1973
1974fi
1975
1976echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6
9d564f73 1977echo "configure:1978: checking whether struct dirent has a d_namlen field" >&5
50e1e10f
TT
1978if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then
1979 echo $ac_n "(cached) $ac_c" 1>&6
1980else
1981 cat > conftest.$ac_ext <<EOF
9d564f73 1982#line 1983 "configure"
50e1e10f
TT
1983#include "confdefs.h"
1984#include <sys/types.h>
1985#include <dirent.h>
21c84b71 1986int main() {
50e1e10f
TT
1987struct dirent de; de.d_namlen = 0;
1988; return 0; }
1989EOF
9d564f73 1990if { (eval echo configure:1991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
50e1e10f
TT
1991 rm -rf conftest*
1992 e2fsprogs_cv_struct_d_namlen=yes
1993else
21c84b71
TT
1994 echo "configure: failed program was:" >&5
1995 cat conftest.$ac_ext >&5
50e1e10f
TT
1996 rm -rf conftest*
1997 e2fsprogs_cv_struct_d_namlen=no
1998fi
1999rm -f conftest*
50e1e10f
TT
2000fi
2001
2002echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6
2003if test "$e2fsprogs_cv_struct_d_namlen" = yes; then
2004 cat >> confdefs.h <<\EOF
2005#define HAVE_DIRENT_NAMLEN 1
2006EOF
2007
b0b9c4de
TT
2008fi
2009echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
9d564f73 2010echo "configure:2011: checking whether llseek declared in unistd.h" >&5
b0b9c4de
TT
2011if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
2012 echo $ac_n "(cached) $ac_c" 1>&6
2013else
2014 cat > conftest.$ac_ext <<EOF
9d564f73 2015#line 2016 "configure"
b0b9c4de
TT
2016#include "confdefs.h"
2017#include <unistd.h>
2018int main() {
2019extern int llseek(int);
2020; return 0; }
2021EOF
9d564f73 2022if { (eval echo configure:2023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b0b9c4de
TT
2023 rm -rf conftest*
2024 e2fsprogs_cv_have_llseek_prototype=no
2025else
2026 echo "configure: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2028 rm -rf conftest*
2029 e2fsprogs_cv_have_llseek_prototype=yes
2030fi
2031rm -f conftest*
2032fi
2033
2034echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
2035if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
2036 cat >> confdefs.h <<\EOF
2037#define HAVE_LLSEEK_PROTOTYPE 1
2038EOF
2039
50e1e10f
TT
2040fi
2041if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
2042 # if cross-compiling, with no cached values, just assume something common.
2043 ac_cv_sizeof_short=2
2044 ac_cv_sizeof_int=4
2045 ac_cv_sizeof_long=4
fc6d9d51 2046 ac_cv_sizeof_long_long=0
50e1e10f
TT
2047 echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4" 1>&2
2048fi
2049echo $ac_n "checking size of short""... $ac_c" 1>&6
9d564f73 2050echo "configure:2051: checking size of short" >&5
50e1e10f
TT
2051if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2053else
2054 if test "$cross_compiling" = yes; then
2055 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2056else
21c84b71 2057 cat > conftest.$ac_ext <<EOF
9d564f73 2058#line 2059 "configure"
50e1e10f
TT
2059#include "confdefs.h"
2060#include <stdio.h>
2061main()
2062{
2063 FILE *f=fopen("conftestval", "w");
2064 if (!f) exit(1);
2065 fprintf(f, "%d\n", sizeof(short));
2066 exit(0);
2067}
2068EOF
9d564f73 2069if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21c84b71 2070then
50e1e10f
TT
2071 ac_cv_sizeof_short=`cat conftestval`
2072else
21c84b71
TT
2073 echo "configure: failed program was:" >&5
2074 cat conftest.$ac_ext >&5
2075 rm -fr conftest*
50e1e10f
TT
2076 ac_cv_sizeof_short=0
2077fi
50e1e10f 2078rm -fr conftest*
21c84b71
TT
2079fi
2080
50e1e10f
TT
2081fi
2082echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2083cat >> confdefs.h <<EOF
2084#define SIZEOF_SHORT $ac_cv_sizeof_short
2085EOF
2086
2087
2088echo $ac_n "checking size of int""... $ac_c" 1>&6
9d564f73 2089echo "configure:2090: checking size of int" >&5
50e1e10f
TT
2090if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2092else
2093 if test "$cross_compiling" = yes; then
2094 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2095else
21c84b71 2096 cat > conftest.$ac_ext <<EOF
9d564f73 2097#line 2098 "configure"
50e1e10f
TT
2098#include "confdefs.h"
2099#include <stdio.h>
2100main()
2101{
2102 FILE *f=fopen("conftestval", "w");
2103 if (!f) exit(1);
2104 fprintf(f, "%d\n", sizeof(int));
2105 exit(0);
2106}
2107EOF
9d564f73 2108if { (eval echo configure:2109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21c84b71 2109then
50e1e10f
TT
2110 ac_cv_sizeof_int=`cat conftestval`
2111else
21c84b71
TT
2112 echo "configure: failed program was:" >&5
2113 cat conftest.$ac_ext >&5
2114 rm -fr conftest*
50e1e10f
TT
2115 ac_cv_sizeof_int=0
2116fi
50e1e10f 2117rm -fr conftest*
21c84b71
TT
2118fi
2119
50e1e10f
TT
2120fi
2121echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2122cat >> confdefs.h <<EOF
2123#define SIZEOF_INT $ac_cv_sizeof_int
2124EOF
2125
2126
2127echo $ac_n "checking size of long""... $ac_c" 1>&6
9d564f73 2128echo "configure:2129: checking size of long" >&5
50e1e10f
TT
2129if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2130 echo $ac_n "(cached) $ac_c" 1>&6
2131else
2132 if test "$cross_compiling" = yes; then
2133 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2134else
21c84b71 2135 cat > conftest.$ac_ext <<EOF
9d564f73 2136#line 2137 "configure"
50e1e10f
TT
2137#include "confdefs.h"
2138#include <stdio.h>
2139main()
2140{
2141 FILE *f=fopen("conftestval", "w");
2142 if (!f) exit(1);
2143 fprintf(f, "%d\n", sizeof(long));
2144 exit(0);
2145}
2146EOF
9d564f73 2147if { (eval echo configure:2148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21c84b71 2148then
50e1e10f
TT
2149 ac_cv_sizeof_long=`cat conftestval`
2150else
21c84b71
TT
2151 echo "configure: failed program was:" >&5
2152 cat conftest.$ac_ext >&5
2153 rm -fr conftest*
50e1e10f
TT
2154 ac_cv_sizeof_long=0
2155fi
50e1e10f 2156rm -fr conftest*
21c84b71
TT
2157fi
2158
50e1e10f
TT
2159fi
2160echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2161cat >> confdefs.h <<EOF
2162#define SIZEOF_LONG $ac_cv_sizeof_long
2163EOF
2164
2165
fc6d9d51 2166echo $ac_n "checking size of long long""... $ac_c" 1>&6
9d564f73 2167echo "configure:2168: checking size of long long" >&5
fc6d9d51
TT
2168if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2169 echo $ac_n "(cached) $ac_c" 1>&6
2170else
2171 if test "$cross_compiling" = yes; then
2172 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2173else
21c84b71 2174 cat > conftest.$ac_ext <<EOF
9d564f73 2175#line 2176 "configure"
fc6d9d51
TT
2176#include "confdefs.h"
2177#include <stdio.h>
2178main()
2179{
2180 FILE *f=fopen("conftestval", "w");
2181 if (!f) exit(1);
2182 fprintf(f, "%d\n", sizeof(long long));
2183 exit(0);
2184}
2185EOF
9d564f73 2186if { (eval echo configure:2187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21c84b71 2187then
fc6d9d51
TT
2188 ac_cv_sizeof_long_long=`cat conftestval`
2189else
21c84b71
TT
2190 echo "configure: failed program was:" >&5
2191 cat conftest.$ac_ext >&5
2192 rm -fr conftest*
fc6d9d51
TT
2193 ac_cv_sizeof_long_long=0
2194fi
fc6d9d51 2195rm -fr conftest*
21c84b71
TT
2196fi
2197
fc6d9d51
TT
2198fi
2199echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2200cat >> confdefs.h <<EOF
2201#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2202EOF
2203
2204
50e1e10f
TT
2205SIZEOF_SHORT=$ac_cv_sizeof_short
2206SIZEOF_INT=$ac_cv_sizeof_int
2207SIZEOF_LONG=$ac_cv_sizeof_long
fc6d9d51
TT
2208SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
2209
50e1e10f
TT
2210
2211
2212
2213echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
9d564f73 2214echo "configure:2215: checking whether struct stat has a st_flags field" >&5
50e1e10f
TT
2215if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
2216 echo $ac_n "(cached) $ac_c" 1>&6
2217else
2218 cat > conftest.$ac_ext <<EOF
9d564f73 2219#line 2220 "configure"
50e1e10f
TT
2220#include "confdefs.h"
2221#include <sys/stat.h>
21c84b71 2222int main() {
50e1e10f
TT
2223struct stat stat; stat.st_flags = 0;
2224; return 0; }
2225EOF
9d564f73 2226if { (eval echo configure:2227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
50e1e10f
TT
2227 rm -rf conftest*
2228 e2fsprogs_cv_struct_st_flags=yes
2229else
21c84b71
TT
2230 echo "configure: failed program was:" >&5
2231 cat conftest.$ac_ext >&5
50e1e10f
TT
2232 rm -rf conftest*
2233 e2fsprogs_cv_struct_st_flags=no
2234fi
2235rm -f conftest*
50e1e10f
TT
2236fi
2237
2238echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
2239if test "$e2fsprogs_cv_struct_st_flags" = yes; then
2240 cat >> confdefs.h <<\EOF
2241#define HAVE_STAT_FLAGS 1
2242EOF
2243
2244fi
a4bf69d9 2245for ac_func in chflags getrusage llseek strdup getmntinfo strcasecmp srandom fchown mallinfo
50e1e10f
TT
2246do
2247echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9d564f73 2248echo "configure:2249: checking for $ac_func" >&5
50e1e10f
TT
2249if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2250 echo $ac_n "(cached) $ac_c" 1>&6
2251else
2252 cat > conftest.$ac_ext <<EOF
9d564f73 2253#line 2254 "configure"
50e1e10f
TT
2254#include "confdefs.h"
2255/* System header to define __stub macros and hopefully few prototypes,
2256 which can conflict with char $ac_func(); below. */
2257#include <assert.h>
2258/* Override any gcc2 internal prototype to avoid an error. */
21c84b71
TT
2259/* We use char because int might match the return type of a gcc2
2260 builtin and then its argument prototype would still apply. */
2261char $ac_func();
50e1e10f 2262
21c84b71 2263int main() {
50e1e10f
TT
2264
2265/* The GNU C library defines this for functions which it implements
2266 to always fail with ENOSYS. Some functions are actually named
2267 something starting with __ and the normal name is an alias. */
2268#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2269choke me
2270#else
2271$ac_func();
2272#endif
2273
2274; return 0; }
2275EOF
9d564f73 2276if { (eval echo configure:2277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
50e1e10f
TT
2277 rm -rf conftest*
2278 eval "ac_cv_func_$ac_func=yes"
2279else
21c84b71
TT
2280 echo "configure: failed program was:" >&5
2281 cat conftest.$ac_ext >&5
50e1e10f
TT
2282 rm -rf conftest*
2283 eval "ac_cv_func_$ac_func=no"
2284fi
2285rm -f conftest*
50e1e10f 2286fi
21c84b71 2287
50e1e10f
TT
2288if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2289 echo "$ac_t""yes" 1>&6
21c84b71 2290 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50e1e10f
TT
2291 cat >> confdefs.h <<EOF
2292#define $ac_tr_func 1
2293EOF
2294
2295else
2296 echo "$ac_t""no" 1>&6
2297fi
2298done
2299
fc6d9d51 2300echo $ac_n "checking ino_t defined by sys/types.h""... $ac_c" 1>&6
9d564f73 2301echo "configure:2302: checking ino_t defined by sys/types.h" >&5
fc6d9d51
TT
2302if eval "test \"`echo '$''{'e2fsprogs_cv_ino_t'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2304else
2305 cat > conftest.$ac_ext <<EOF
9d564f73 2306#line 2307 "configure"
fc6d9d51
TT
2307#include "confdefs.h"
2308#include <sys/types.h>
21c84b71 2309int main() {
fc6d9d51
TT
2310ino_t ino; ino = 0;
2311; return 0; }
2312EOF
9d564f73 2313if { (eval echo configure:2314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
fc6d9d51
TT
2314 rm -rf conftest*
2315 e2fsprogs_cv_ino_t=yes
2316else
21c84b71
TT
2317 echo "configure: failed program was:" >&5
2318 cat conftest.$ac_ext >&5
fc6d9d51
TT
2319 rm -rf conftest*
2320 e2fsprogs_cv_ino_t=no
2321fi
2322rm -f conftest*
fc6d9d51
TT
2323fi
2324
2325echo "$ac_t""$e2fsprogs_cv_ino_t" 1>&6
2326if test "$e2fsprogs_cv_ino_t" = yes; then
2327 cat >> confdefs.h <<\EOF
2328#define HAVE_INO_T 1
2329EOF
2330
2331fi
21c84b71 2332ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
50e1e10f 2333echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
9d564f73 2334echo "configure:2335: checking for linux/fs.h" >&5
50e1e10f
TT
2335if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2337else
2338 cat > conftest.$ac_ext <<EOF
9d564f73 2339#line 2340 "configure"
50e1e10f
TT
2340#include "confdefs.h"
2341#include <linux/fs.h>
2342EOF
21c84b71 2343ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9d564f73 2344{ (eval echo configure:2345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
a4bf69d9 2345ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
50e1e10f
TT
2346if test -z "$ac_err"; then
2347 rm -rf conftest*
2348 eval "ac_cv_header_$ac_safe=yes"
2349else
2350 echo "$ac_err" >&5
21c84b71
TT
2351 echo "configure: failed program was:" >&5
2352 cat conftest.$ac_ext >&5
50e1e10f
TT
2353 rm -rf conftest*
2354 eval "ac_cv_header_$ac_safe=no"
2355fi
2356rm -f conftest*
2357fi
2358if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2359 echo "$ac_t""yes" 1>&6
2360 linux_headers=yes
2361else
2362 echo "$ac_t""no" 1>&6
2363linux_headers=no
2364fi
2365
50e1e10f
TT
2366if test "$linux_headers" = yes; then
2367 cat >> confdefs.h <<\EOF
2368#define HAVE_LINUX_FS_H 1
2369EOF
2370
50e1e10f
TT
2371else
2372 LINUX_INCLUDE='-I$(top_srcdir)/include -I$(top_builddir)/include'
2373 # Use this include directory with test compiles in the configure script too.
2374 CPPFLAGS="$CPPFLAGS -I$srcdir/include -I./include"
2375fi
2376
fc6d9d51 2377SOCKET_LIB=''
21c84b71 2378echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
9d564f73 2379echo "configure:2380: checking for socket in -lsocket" >&5
21c84b71
TT
2380ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2381if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
50e1e10f
TT
2382 echo $ac_n "(cached) $ac_c" 1>&6
2383else
fc6d9d51
TT
2384 ac_save_LIBS="$LIBS"
2385LIBS="-lsocket $LIBS"
2386cat > conftest.$ac_ext <<EOF
9d564f73 2387#line 2388 "configure"
50e1e10f 2388#include "confdefs.h"
21c84b71
TT
2389/* Override any gcc2 internal prototype to avoid an error. */
2390/* We use char because int might match the return type of a gcc2
2391 builtin and then its argument prototype would still apply. */
2392char socket();
fc6d9d51 2393
21c84b71 2394int main() {
fc6d9d51
TT
2395socket()
2396; return 0; }
50e1e10f 2397EOF
9d564f73 2398if { (eval echo configure:2399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
50e1e10f 2399 rm -rf conftest*
21c84b71 2400 eval "ac_cv_lib_$ac_lib_var=yes"
50e1e10f 2401else
21c84b71
TT
2402 echo "configure: failed program was:" >&5
2403 cat conftest.$ac_ext >&5
50e1e10f 2404 rm -rf conftest*
21c84b71 2405 eval "ac_cv_lib_$ac_lib_var=no"
50e1e10f
TT
2406fi
2407rm -f conftest*
fc6d9d51 2408LIBS="$ac_save_LIBS"
50e1e10f
TT
2409
2410fi
21c84b71 2411if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
fc6d9d51
TT
2412 echo "$ac_t""yes" 1>&6
2413 SOCKET_LIB=-lsocket
2414else
2415 echo "$ac_t""no" 1>&6
50e1e10f 2416fi
fc6d9d51
TT
2417
2418
2419echo $ac_n "checking for optreset""... $ac_c" 1>&6
9d564f73 2420echo "configure:2421: checking for optreset" >&5
fc6d9d51 2421if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
50e1e10f
TT
2422 echo $ac_n "(cached) $ac_c" 1>&6
2423else
2424 cat > conftest.$ac_ext <<EOF
9d564f73 2425#line 2426 "configure"
50e1e10f 2426#include "confdefs.h"
fc6d9d51 2427#include <unistd.h>
50e1e10f 2428EOF
fc6d9d51
TT
2429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2430 egrep "optreset" >/dev/null 2>&1; then
50e1e10f 2431 rm -rf conftest*
fc6d9d51 2432 ac_cv_have_optreset=yes
50e1e10f
TT
2433else
2434 rm -rf conftest*
fc6d9d51 2435 ac_cv_have_optreset=no
50e1e10f
TT
2436fi
2437rm -f conftest*
2438
2439fi
fc6d9d51
TT
2440echo "$ac_t""$ac_cv_have_optreset" 1>&6
2441if test $ac_cv_have_optreset = yes; then
50e1e10f 2442 cat >> confdefs.h <<\EOF
fc6d9d51 2443#define HAVE_OPTRESET 1
50e1e10f
TT
2444EOF
2445
2446fi
2447echo $ac_n "checking whether the ext2 ioctls compile""... $ac_c" 1>&6
9d564f73 2448echo "configure:2449: checking whether the ext2 ioctls compile" >&5
50e1e10f
TT
2449if eval "test \"`echo '$''{'e2fsprogs_cv_ioctl_ext2'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2451else
2452 cat > conftest.$ac_ext <<EOF
9d564f73 2453#line 2454 "configure"
50e1e10f
TT
2454#include "confdefs.h"
2455#include <linux/ext2_fs.h>
2456#include <sys/ioctl.h>
21c84b71 2457int main() {
50e1e10f
TT
2458ioctl (0, EXT2_IOC_SETVERSION, 0);
2459; return 0; }
2460EOF
9d564f73 2461if { (eval echo configure:2462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
50e1e10f
TT
2462 rm -rf conftest*
2463 e2fsprogs_cv_ioctl_ext2=yes
2464else
21c84b71
TT
2465 echo "configure: failed program was:" >&5
2466 cat conftest.$ac_ext >&5
50e1e10f
TT
2467 rm -rf conftest*
2468 e2fsprogs_cv_ioctl_ext2=no
2469fi
2470rm -f conftest*
50e1e10f
TT
2471fi
2472
2473echo "$ac_t""$e2fsprogs_cv_ioctl_ext2" 1>&6
2474if test "$e2fsprogs_cv_ioctl_ext2" = yes; then
2475 cat >> confdefs.h <<\EOF
2476#define HAVE_EXT2_IOCTLS 1
2477EOF
2478
6670495a
TT
2479fi
2480echo $ac_n "checking whether struct ext2_inode has an i_version field""... $ac_c" 1>&6
9d564f73 2481echo "configure:2482: checking whether struct ext2_inode has an i_version field" >&5
6670495a
TT
2482if eval "test \"`echo '$''{'e2fsprogs_cv_ext2_inode_version'+set}'`\" = set"; then
2483 echo $ac_n "(cached) $ac_c" 1>&6
2484else
2485 cat > conftest.$ac_ext <<EOF
9d564f73 2486#line 2487 "configure"
6670495a
TT
2487#include "confdefs.h"
2488#include <linux/ext2_fs.h>
2489int main() {
2490struct ext2_inode e2i; e2i.i_version=0;
2491; return 0; }
2492EOF
9d564f73 2493if { (eval echo configure:2494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6670495a
TT
2494 rm -rf conftest*
2495 e2fsprogs_cv_ext2_inode_version=yes
2496else
2497 echo "configure: failed program was:" >&5
2498 cat conftest.$ac_ext >&5
2499 rm -rf conftest*
2500 e2fsprogs_cv_ext2_inode_version=no
2501fi
2502rm -f conftest*
2503fi
2504
2505echo "$ac_t""$e2fsprogs_cv_ext2_inode_version" 1>&6
2506if test "$e2fsprogs_cv_ext2_inode_version" = yes; then
2507 cat >> confdefs.h <<\EOF
2508#define HAVE_EXT2_INODE_VERSION 1
2509EOF
2510
50e1e10f 2511fi
50e1e10f
TT
2512case "$host_os" in
2513linux*)
a4b2d3ce
TT
2514 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
2515 root_prefix="";
2516 echo "On $host_os systems, root_prefix defaults to ''"
fc6d9d51
TT
2517 fi
2518 ;;
2519esac
fc6d9d51
TT
2520case "$host_os" in
2521linux* | gnu*)
2522 if test "$prefix" = NONE ; then
a4b2d3ce
TT
2523 prefix="/usr";
2524 echo "On $host_os systems, prefix defaults to /usr"
50e1e10f
TT
2525 fi
2526;;
2527esac
a4b2d3ce 2528if test "$root_prefix" = NONE ; then
ffe1991f 2529 if test "$prefix" = NONE ; then
a4b2d3ce
TT
2530 root_prefix="$ac_default_prefix"
2531 else
2532 root_prefix="$prefix"
2533 fi
2534fi
2535
ae851482 2536echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
9d564f73 2537echo "configure:2538: checking whether linker accepts -static" >&5
ae851482
TT
2538if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
2539 echo $ac_n "(cached) $ac_c" 1>&6
2540else
2541 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
2542cat > conftest.$ac_ext <<EOF
9d564f73 2543#line 2544 "configure"
ae851482
TT
2544#include "confdefs.h"
2545#include <stdio.h>
2546int main() {
2547fflush(stdout);
2548; return 0; }
2549EOF
9d564f73 2550if { (eval echo configure:2551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ae851482
TT
2551 rm -rf conftest*
2552 ac_cv_e2fsprogs_use_static=yes
2553else
2554 echo "configure: failed program was:" >&5
2555 cat conftest.$ac_ext >&5
2556 rm -rf conftest*
2557 ac_cv_e2fsprogs_use_static=no
2558fi
2559rm -f conftest*
2560LDFLAGS=$SAVE_LDFLAGS
2561fi
50e1e10f 2562
defde784
TT
2563case "$host_os" in
2564solaris2.*)
2565 ac_cv_e2fsprogs_use_static=no
2566;;
2567esac
ae851482 2568echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
74becf3c 2569LDFLAG_STATIC=
ae851482 2570if test $ac_cv_e2fsprogs_use_static = yes; then
50e1e10f 2571 LDFLAG_STATIC=-static
ae851482 2572fi
50e1e10f 2573
50e1e10f
TT
2574SS_DIR=`cd ${srcdir}/lib/ss; pwd`
2575ET_DIR=`cd ${srcdir}/lib/et; pwd`
2576
2577
2578if test "$cross_compiling" = yes ; then
2579 DO_TEST_SUITE=
2580else
2581 DO_TEST_SUITE=check
2582fi
2583
a4d09610
TT
2584DO_SUBSTITUTE_SCRIPT=$srcdir/lib/do_substitute
2585
50e1e10f
TT
2586test -d lib || mkdir lib
2587test -d include || mkdir include
2588test -d include/linux || mkdir include/linux
defde784 2589test -d include/asm || mkdir include/asm
bc210074
TT
2590rmakefile=
2591if test -d ${srcdir}/resize ; then
2592 rmakefile=resize/Makefile
2593fi
50e1e10f
TT
2594trap '' 1 2 15
2595cat > confcache <<\EOF
2596# This file is a shell script that caches the results of configure
2597# tests run on this system so they can be shared between configure
2598# scripts and configure runs. It is not useful on other systems.
2599# If it contains results you don't want to keep, you may remove or edit it.
2600#
2601# By default, configure uses ./config.cache as the cache file,
2602# creating it if it does not exist already. You can give configure
2603# the --cache-file=FILE option to use a different cache file; that is
2604# what configure does when it calls configure scripts in
2605# subdirectories, so they share the cache.
2606# Giving --cache-file=/dev/null disables caching, for debugging configure.
2607# config.status only pays attention to the cache file if you give it the
2608# --recheck option to rerun configure.
2609#
2610EOF
21c84b71
TT
2611# The following way of writing the cache mishandles newlines in values,
2612# but we know of no workaround that is simple, portable, and efficient.
2613# So, don't put newlines in cache variables' values.
50e1e10f
TT
2614# Ultrix sh set writes to stderr and can't be redirected directly,
2615# and sets the high bit in the cache file unless we assign to the vars.
2616(set) 2>&1 |
a4bf69d9 2617 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21c84b71
TT
2618 *ac_space=\ *)
2619 # `set' does not quote correctly, so add quotes (double-quote substitution
2620 # turns \\\\ into \\, and sed turns \\ into \).
2621 sed -n \
2622 -e "s/'/'\\\\''/g" \
2623 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2624 ;;
2625 *)
2626 # `set' quotes correctly as required by POSIX, so do not add quotes.
2627 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2628 ;;
2629 esac >> confcache
50e1e10f
TT
2630if cmp -s $cache_file confcache; then
2631 :
2632else
2633 if test -w $cache_file; then
2634 echo "updating cache $cache_file"
2635 cat confcache > $cache_file
2636 else
2637 echo "not updating unwritable cache $cache_file"
2638 fi
2639fi
2640rm -f confcache
2641
2642trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2643
2644test "x$prefix" = xNONE && prefix=$ac_default_prefix
2645# Let make expand exec_prefix.
2646test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2647
2648# Any assignment to VPATH causes Sun make to only execute
2649# the first set of double-colon rules, so remove it if not needed.
2650# If there is a colon in the path, we need to keep it.
2651if test "x$srcdir" = x.; then
2652 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2653fi
2654
2655trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2656
2657# Transform confdefs.h into DEFS.
2658# Protect against shell expansion while executing Makefile rules.
2659# Protect against Makefile macro expansion.
2660cat > conftest.defs <<\EOF
21c84b71 2661s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
50e1e10f
TT
2662s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2663s%\[%\\&%g
2664s%\]%\\&%g
2665s%\$%$$%g
2666EOF
2667DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2668rm -f conftest.defs
2669
2670
2671# Without the "./", some shells look in PATH for config.status.
2672: ${CONFIG_STATUS=./config.status}
2673
2674echo creating $CONFIG_STATUS
2675rm -f $CONFIG_STATUS
2676cat > $CONFIG_STATUS <<EOF
2677#! /bin/sh
2678# Generated automatically by configure.
2679# Run this file to recreate the current configuration.
2680# This directory was configured as follows,
2681# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2682#
2683# $0 $ac_configure_args
2684#
2685# Compiler output produced by configure, useful for debugging
2686# configure, is in ./config.log if it exists.
2687
2688ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2689for ac_option
2690do
2691 case "\$ac_option" in
2692 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2693 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2694 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2695 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
a4bf69d9 2696 echo "$CONFIG_STATUS generated by autoconf version 2.13"
50e1e10f
TT
2697 exit 0 ;;
2698 -help | --help | --hel | --he | --h)
2699 echo "\$ac_cs_usage"; exit 0 ;;
2700 *) echo "\$ac_cs_usage"; exit 1 ;;
2701 esac
2702done
2703
2704ac_given_srcdir=$srcdir
2705ac_given_INSTALL="$INSTALL"
2706
44339bdf 2707trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
fc6d9d51
TT
2708 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
2709 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
bc210074 2710 tests/progs/Makefile $rmakefile doc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
21c84b71
TT
2711EOF
2712cat >> $CONFIG_STATUS <<EOF
50e1e10f 2713
21c84b71
TT
2714# Protect against being on the right side of a sed subst in config.status.
2715sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2716 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
50e1e10f
TT
2717$ac_vpsub
2718$extrasub
a4bf69d9 2719s%@SHELL@%$SHELL%g
50e1e10f
TT
2720s%@CFLAGS@%$CFLAGS%g
2721s%@CPPFLAGS@%$CPPFLAGS%g
2722s%@CXXFLAGS@%$CXXFLAGS%g
a4bf69d9 2723s%@FFLAGS@%$FFLAGS%g
50e1e10f
TT
2724s%@DEFS@%$DEFS%g
2725s%@LDFLAGS@%$LDFLAGS%g
2726s%@LIBS@%$LIBS%g
2727s%@exec_prefix@%$exec_prefix%g
2728s%@prefix@%$prefix%g
2729s%@program_transform_name@%$program_transform_name%g
21c84b71
TT
2730s%@bindir@%$bindir%g
2731s%@sbindir@%$sbindir%g
2732s%@libexecdir@%$libexecdir%g
2733s%@datadir@%$datadir%g
2734s%@sysconfdir@%$sysconfdir%g
2735s%@sharedstatedir@%$sharedstatedir%g
2736s%@localstatedir@%$localstatedir%g
2737s%@libdir@%$libdir%g
2738s%@includedir@%$includedir%g
2739s%@oldincludedir@%$oldincludedir%g
2740s%@infodir@%$infodir%g
2741s%@mandir@%$mandir%g
50e1e10f
TT
2742/@MCONFIG@/r $MCONFIG
2743s%@MCONFIG@%%g
74becf3c
TT
2744s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
2745s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
2746s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
fc6d9d51
TT
2747s%@host@%$host%g
2748s%@host_alias@%$host_alias%g
2749s%@host_cpu@%$host_cpu%g
2750s%@host_vendor@%$host_vendor%g
2751s%@host_os@%$host_os%g
74becf3c
TT
2752s%@CC@%$CC%g
2753s%@LD@%$LD%g
2754s%@CCOPTS@%$CCOPTS%g
50e1e10f
TT
2755s%@DLL_CMT@%$DLL_CMT%g
2756/@MAKEFILE_DLL@/r $MAKEFILE_DLL
2757s%@MAKEFILE_DLL@%%g
2758s%@ELF_CMT@%$ELF_CMT%g
2759/@MAKEFILE_ELF@/r $MAKEFILE_ELF
2760s%@MAKEFILE_ELF@%%g
2761s%@BSDLIB_CMT@%$BSDLIB_CMT%g
2762/@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
2763s%@MAKEFILE_BSDLIB@%%g
2764s%@PROFILE_CMT@%$PROFILE_CMT%g
2765/@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
2766s%@MAKEFILE_PROFILE@%%g
2767s%@CHECKER_CMT@%$CHECKER_CMT%g
2768/@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
2769s%@MAKEFILE_CHECKER@%%g
a4d09610
TT
2770s%@LIB_EXT@%$LIB_EXT%g
2771s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
2772s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
50e1e10f 2773s%@W@%$W%g
a4d09610 2774s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
fc6d9d51
TT
2775s%@FSCK_PROG@%$FSCK_PROG%g
2776s%@FSCK_MAN@%$FSCK_MAN%g
50e1e10f
TT
2777/@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
2778s%@MAKEFILE_LIBRARY@%%g
74becf3c 2779s%@BINARY_TYPE@%$BINARY_TYPE%g
50e1e10f
TT
2780s%@SET_MAKE@%$SET_MAKE%g
2781s%@LN@%$LN%g
fc6d9d51 2782s%@LN_S@%$LN_S%g
50e1e10f
TT
2783s%@MV@%$MV%g
2784s%@CP@%$CP%g
2785s%@RM@%$RM%g
2786s%@CHMOD@%$CHMOD%g
2787s%@AWK@%$AWK%g
2788s%@SED@%$SED%g
9d564f73 2789s%@PERL@%$PERL%g
50e1e10f
TT
2790s%@build@%$build%g
2791s%@build_alias@%$build_alias%g
2792s%@build_cpu@%$build_cpu%g
2793s%@build_vendor@%$build_vendor%g
2794s%@build_os@%$build_os%g
2795s%@AR@%$AR%g
2796s%@RANLIB@%$RANLIB%g
2797s%@STRIP@%$STRIP%g
50e1e10f 2798s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
a4bf69d9 2799s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
50e1e10f
TT
2800s%@INSTALL_DATA@%$INSTALL_DATA%g
2801s%@CPP@%$CPP%g
2802s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
2803s%@SIZEOF_INT@%$SIZEOF_INT%g
2804s%@SIZEOF_LONG@%$SIZEOF_LONG%g
fc6d9d51 2805s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
50e1e10f 2806s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
fc6d9d51 2807s%@SOCKET_LIB@%$SOCKET_LIB%g
a4b2d3ce 2808s%@root_prefix@%$root_prefix%g
fc6d9d51 2809s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
50e1e10f
TT
2810s%@SS_DIR@%$SS_DIR%g
2811s%@ET_DIR@%$ET_DIR%g
2812s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
a4d09610
TT
2813/@DO_SUBSTITUTE_SCRIPT@/r $DO_SUBSTITUTE_SCRIPT
2814s%@DO_SUBSTITUTE_SCRIPT@%%g
50e1e10f
TT
2815
2816CEOF
2817EOF
21c84b71
TT
2818
2819cat >> $CONFIG_STATUS <<\EOF
2820
2821# Split the substitutions into bite-sized pieces for seds with
2822# small command number limits, like on Digital OSF/1 and HP-UX.
2823ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2824ac_file=1 # Number of current file.
2825ac_beg=1 # First line for current file.
2826ac_end=$ac_max_sed_cmds # Line after last line for current file.
2827ac_more_lines=:
2828ac_sed_cmds=""
2829while $ac_more_lines; do
2830 if test $ac_beg -gt 1; then
2831 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2832 else
2833 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2834 fi
2835 if test ! -s conftest.s$ac_file; then
2836 ac_more_lines=false
2837 rm -f conftest.s$ac_file
2838 else
2839 if test -z "$ac_sed_cmds"; then
2840 ac_sed_cmds="sed -f conftest.s$ac_file"
2841 else
2842 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2843 fi
2844 ac_file=`expr $ac_file + 1`
2845 ac_beg=$ac_end
2846 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2847 fi
2848done
2849if test -z "$ac_sed_cmds"; then
2850 ac_sed_cmds=cat
2851fi
2852EOF
2853
50e1e10f
TT
2854cat >> $CONFIG_STATUS <<EOF
2855
44339bdf 2856CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile
fc6d9d51
TT
2857 lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
2858 misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile
bc210074 2859 tests/progs/Makefile $rmakefile doc/Makefile"}
50e1e10f
TT
2860EOF
2861cat >> $CONFIG_STATUS <<\EOF
2862for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
21c84b71 2863 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50e1e10f 2864 case "$ac_file" in
21c84b71 2865 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
50e1e10f
TT
2866 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2867 *) ac_file_in="${ac_file}.in" ;;
2868 esac
2869
21c84b71 2870 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
50e1e10f
TT
2871
2872 # Remove last slash and all that follows it. Not all systems have dirname.
2873 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2874 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2875 # The file is in a subdirectory.
2876 test ! -d "$ac_dir" && mkdir "$ac_dir"
2877 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2878 # A "../" for each directory in $ac_dir_suffix.
2879 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2880 else
2881 ac_dir_suffix= ac_dots=
2882 fi
2883
2884 case "$ac_given_srcdir" in
2885 .) srcdir=.
2886 if test -z "$ac_dots"; then top_srcdir=.
2887 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2888 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2889 *) # Relative path.
2890 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2891 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2892 esac
2893
2894 case "$ac_given_INSTALL" in
2895 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2896 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2897 esac
21c84b71 2898
50e1e10f
TT
2899 echo creating "$ac_file"
2900 rm -f "$ac_file"
2901 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2902 case "$ac_file" in
2903 *Makefile*) ac_comsub="1i\\
2904# $configure_input" ;;
2905 *) ac_comsub= ;;
2906 esac
21c84b71
TT
2907
2908 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
50e1e10f
TT
2909 sed -e "$ac_comsub
2910s%@configure_input@%$configure_input%g
2911s%@srcdir@%$srcdir%g
2912s%@top_srcdir@%$top_srcdir%g
2913s%@INSTALL@%$INSTALL%g
21c84b71 2914" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
50e1e10f 2915fi; done
21c84b71 2916rm -f conftest.s*
50e1e10f 2917
21c84b71
TT
2918EOF
2919cat >> $CONFIG_STATUS <<EOF
50e1e10f 2920
21c84b71
TT
2921EOF
2922cat >> $CONFIG_STATUS <<\EOF
50e1e10f
TT
2923
2924exit 0
2925EOF
2926chmod +x $CONFIG_STATUS
2927rm -fr confdefs* $ac_clean_files
2928test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2929